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 | # Factoring default headers for most tests.
|
---|
580 | ac_includes_default="\
|
---|
581 | #include <stdio.h>
|
---|
582 | #ifdef HAVE_SYS_TYPES_H
|
---|
583 | # include <sys/types.h>
|
---|
584 | #endif
|
---|
585 | #ifdef HAVE_SYS_STAT_H
|
---|
586 | # include <sys/stat.h>
|
---|
587 | #endif
|
---|
588 | #ifdef STDC_HEADERS
|
---|
589 | # include <stdlib.h>
|
---|
590 | # include <stddef.h>
|
---|
591 | #else
|
---|
592 | # ifdef HAVE_STDLIB_H
|
---|
593 | # include <stdlib.h>
|
---|
594 | # endif
|
---|
595 | #endif
|
---|
596 | #ifdef HAVE_STRING_H
|
---|
597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
598 | # include <memory.h>
|
---|
599 | # endif
|
---|
600 | # include <string.h>
|
---|
601 | #endif
|
---|
602 | #ifdef HAVE_STRINGS_H
|
---|
603 | # include <strings.h>
|
---|
604 | #endif
|
---|
605 | #ifdef HAVE_INTTYPES_H
|
---|
606 | # include <inttypes.h>
|
---|
607 | #endif
|
---|
608 | #ifdef HAVE_STDINT_H
|
---|
609 | # include <stdint.h>
|
---|
610 | #endif
|
---|
611 | #ifdef HAVE_UNISTD_H
|
---|
612 | # include <unistd.h>
|
---|
613 | #endif"
|
---|
614 |
|
---|
615 | ac_subst_vars='SHELL
|
---|
616 | PATH_SEPARATOR
|
---|
617 | PACKAGE_NAME
|
---|
618 | PACKAGE_TARNAME
|
---|
619 | PACKAGE_VERSION
|
---|
620 | PACKAGE_STRING
|
---|
621 | PACKAGE_BUGREPORT
|
---|
622 | exec_prefix
|
---|
623 | prefix
|
---|
624 | program_transform_name
|
---|
625 | bindir
|
---|
626 | sbindir
|
---|
627 | libexecdir
|
---|
628 | datarootdir
|
---|
629 | datadir
|
---|
630 | sysconfdir
|
---|
631 | sharedstatedir
|
---|
632 | localstatedir
|
---|
633 | includedir
|
---|
634 | oldincludedir
|
---|
635 | docdir
|
---|
636 | infodir
|
---|
637 | htmldir
|
---|
638 | dvidir
|
---|
639 | pdfdir
|
---|
640 | psdir
|
---|
641 | libdir
|
---|
642 | localedir
|
---|
643 | mandir
|
---|
644 | DEFS
|
---|
645 | ECHO_C
|
---|
646 | ECHO_N
|
---|
647 | ECHO_T
|
---|
648 | LIBS
|
---|
649 | build_alias
|
---|
650 | host_alias
|
---|
651 | target_alias
|
---|
652 | PACKAGE
|
---|
653 | VERSION
|
---|
654 | USE_FASTCGI
|
---|
655 | USE_LANGACTION
|
---|
656 | USE_CORBA
|
---|
657 | MICO_DIR
|
---|
658 | ENABLE_JAVA
|
---|
659 | USE_Z3950
|
---|
660 | USE_YAZ
|
---|
661 | USE_WVWARE
|
---|
662 | USE_JDBM
|
---|
663 | USE_GDBM
|
---|
664 | ENABLE_ACCENTFOLD
|
---|
665 | USE_SQLITE
|
---|
666 | USE_RSS
|
---|
667 | USE_APACHE_HTTPD
|
---|
668 | ENABLE_JNI
|
---|
669 | ENABLE_MG
|
---|
670 | ENABLE_MGPP
|
---|
671 | ENABLE_LUCENE
|
---|
672 | ENABLE_GNOMELIB_EXT
|
---|
673 | LDFLAGS
|
---|
674 | CFLAGS
|
---|
675 | CC
|
---|
676 | CPPFLAGS
|
---|
677 | ac_ct_CC
|
---|
678 | EXEEXT
|
---|
679 | OBJEXT
|
---|
680 | CXX
|
---|
681 | CXXFLAGS
|
---|
682 | ac_ct_CXX
|
---|
683 | AWK
|
---|
684 | YACC
|
---|
685 | YFLAGS
|
---|
686 | build
|
---|
687 | build_cpu
|
---|
688 | build_vendor
|
---|
689 | build_os
|
---|
690 | host
|
---|
691 | host_cpu
|
---|
692 | host_vendor
|
---|
693 | host_os
|
---|
694 | target
|
---|
695 | target_cpu
|
---|
696 | target_vendor
|
---|
697 | target_os
|
---|
698 | INSTALL_PROGRAM
|
---|
699 | INSTALL_SCRIPT
|
---|
700 | INSTALL_DATA
|
---|
701 | LN_S
|
---|
702 | SET_MAKE
|
---|
703 | RANLIB
|
---|
704 | ARCH_DEP_FLAGS
|
---|
705 | MICO_VER
|
---|
706 | CPP
|
---|
707 | GREP
|
---|
708 | EGREP
|
---|
709 | U
|
---|
710 | ANSI2KNR
|
---|
711 | ALLOCA
|
---|
712 | LIBOBJS
|
---|
713 | STATIC
|
---|
714 | gsdlos
|
---|
715 | MODULEDIRS
|
---|
716 | subdirs
|
---|
717 | LTLIBOBJS'
|
---|
718 | ac_subst_files=''
|
---|
719 | ac_precious_vars='build_alias
|
---|
720 | host_alias
|
---|
721 | target_alias
|
---|
722 | CC
|
---|
723 | CFLAGS
|
---|
724 | LDFLAGS
|
---|
725 | LIBS
|
---|
726 | CPPFLAGS
|
---|
727 | CXX
|
---|
728 | CXXFLAGS
|
---|
729 | CCC
|
---|
730 | YACC
|
---|
731 | YFLAGS
|
---|
732 | CPP'
|
---|
733 | ac_subdirs_all='common-src
|
---|
734 | build-src
|
---|
735 | runtime-src'
|
---|
736 |
|
---|
737 | # Initialize some variables set by options.
|
---|
738 | ac_init_help=
|
---|
739 | ac_init_version=false
|
---|
740 | # The variables have the same names as the options, with
|
---|
741 | # dashes changed to underlines.
|
---|
742 | cache_file=/dev/null
|
---|
743 | exec_prefix=NONE
|
---|
744 | no_create=
|
---|
745 | no_recursion=
|
---|
746 | prefix=NONE
|
---|
747 | program_prefix=NONE
|
---|
748 | program_suffix=NONE
|
---|
749 | program_transform_name=s,x,x,
|
---|
750 | silent=
|
---|
751 | site=
|
---|
752 | srcdir=
|
---|
753 | verbose=
|
---|
754 | x_includes=NONE
|
---|
755 | x_libraries=NONE
|
---|
756 |
|
---|
757 | # Installation directory options.
|
---|
758 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
759 | # and all the variables that are supposed to be based on exec_prefix
|
---|
760 | # by default will actually change.
|
---|
761 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
762 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
763 | bindir='${exec_prefix}/bin'
|
---|
764 | sbindir='${exec_prefix}/sbin'
|
---|
765 | libexecdir='${exec_prefix}/libexec'
|
---|
766 | datarootdir='${prefix}/share'
|
---|
767 | datadir='${datarootdir}'
|
---|
768 | sysconfdir='${prefix}/etc'
|
---|
769 | sharedstatedir='${prefix}/com'
|
---|
770 | localstatedir='${prefix}/var'
|
---|
771 | includedir='${prefix}/include'
|
---|
772 | oldincludedir='/usr/include'
|
---|
773 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
774 | infodir='${datarootdir}/info'
|
---|
775 | htmldir='${docdir}'
|
---|
776 | dvidir='${docdir}'
|
---|
777 | pdfdir='${docdir}'
|
---|
778 | psdir='${docdir}'
|
---|
779 | libdir='${exec_prefix}/lib'
|
---|
780 | localedir='${datarootdir}/locale'
|
---|
781 | mandir='${datarootdir}/man'
|
---|
782 |
|
---|
783 | ac_prev=
|
---|
784 | ac_dashdash=
|
---|
785 | for ac_option
|
---|
786 | do
|
---|
787 | # If the previous option needs an argument, assign it.
|
---|
788 | if test -n "$ac_prev"; then
|
---|
789 | eval $ac_prev=\$ac_option
|
---|
790 | ac_prev=
|
---|
791 | continue
|
---|
792 | fi
|
---|
793 |
|
---|
794 | case $ac_option in
|
---|
795 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
796 | *) ac_optarg=yes ;;
|
---|
797 | esac
|
---|
798 |
|
---|
799 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
800 |
|
---|
801 | case $ac_dashdash$ac_option in
|
---|
802 | --)
|
---|
803 | ac_dashdash=yes ;;
|
---|
804 |
|
---|
805 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
806 | ac_prev=bindir ;;
|
---|
807 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
808 | bindir=$ac_optarg ;;
|
---|
809 |
|
---|
810 | -build | --build | --buil | --bui | --bu)
|
---|
811 | ac_prev=build_alias ;;
|
---|
812 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
813 | build_alias=$ac_optarg ;;
|
---|
814 |
|
---|
815 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
816 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
817 | ac_prev=cache_file ;;
|
---|
818 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
819 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
820 | cache_file=$ac_optarg ;;
|
---|
821 |
|
---|
822 | --config-cache | -C)
|
---|
823 | cache_file=config.cache ;;
|
---|
824 |
|
---|
825 | -datadir | --datadir | --datadi | --datad)
|
---|
826 | ac_prev=datadir ;;
|
---|
827 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
828 | datadir=$ac_optarg ;;
|
---|
829 |
|
---|
830 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
831 | | --dataroo | --dataro | --datar)
|
---|
832 | ac_prev=datarootdir ;;
|
---|
833 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
834 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
835 | datarootdir=$ac_optarg ;;
|
---|
836 |
|
---|
837 | -disable-* | --disable-*)
|
---|
838 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
839 | # Reject names that are not valid shell variable names.
|
---|
840 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
842 | { (exit 1); exit 1; }; }
|
---|
843 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
844 | eval enable_$ac_feature=no ;;
|
---|
845 |
|
---|
846 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
847 | ac_prev=docdir ;;
|
---|
848 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
849 | docdir=$ac_optarg ;;
|
---|
850 |
|
---|
851 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
852 | ac_prev=dvidir ;;
|
---|
853 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
854 | dvidir=$ac_optarg ;;
|
---|
855 |
|
---|
856 | -enable-* | --enable-*)
|
---|
857 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
858 | # Reject names that are not valid shell variable names.
|
---|
859 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
860 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
861 | { (exit 1); exit 1; }; }
|
---|
862 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
863 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
864 |
|
---|
865 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
866 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
867 | | --exec | --exe | --ex)
|
---|
868 | ac_prev=exec_prefix ;;
|
---|
869 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
870 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
871 | | --exec=* | --exe=* | --ex=*)
|
---|
872 | exec_prefix=$ac_optarg ;;
|
---|
873 |
|
---|
874 | -gas | --gas | --ga | --g)
|
---|
875 | # Obsolete; use --with-gas.
|
---|
876 | with_gas=yes ;;
|
---|
877 |
|
---|
878 | -help | --help | --hel | --he | -h)
|
---|
879 | ac_init_help=long ;;
|
---|
880 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
881 | ac_init_help=recursive ;;
|
---|
882 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
883 | ac_init_help=short ;;
|
---|
884 |
|
---|
885 | -host | --host | --hos | --ho)
|
---|
886 | ac_prev=host_alias ;;
|
---|
887 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
888 | host_alias=$ac_optarg ;;
|
---|
889 |
|
---|
890 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
891 | ac_prev=htmldir ;;
|
---|
892 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
893 | | --ht=*)
|
---|
894 | htmldir=$ac_optarg ;;
|
---|
895 |
|
---|
896 | -includedir | --includedir | --includedi | --included | --include \
|
---|
897 | | --includ | --inclu | --incl | --inc)
|
---|
898 | ac_prev=includedir ;;
|
---|
899 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
900 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
901 | includedir=$ac_optarg ;;
|
---|
902 |
|
---|
903 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
904 | ac_prev=infodir ;;
|
---|
905 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
906 | infodir=$ac_optarg ;;
|
---|
907 |
|
---|
908 | -libdir | --libdir | --libdi | --libd)
|
---|
909 | ac_prev=libdir ;;
|
---|
910 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
911 | libdir=$ac_optarg ;;
|
---|
912 |
|
---|
913 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
914 | | --libexe | --libex | --libe)
|
---|
915 | ac_prev=libexecdir ;;
|
---|
916 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
917 | | --libexe=* | --libex=* | --libe=*)
|
---|
918 | libexecdir=$ac_optarg ;;
|
---|
919 |
|
---|
920 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
921 | ac_prev=localedir ;;
|
---|
922 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
923 | localedir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
926 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
927 | ac_prev=localstatedir ;;
|
---|
928 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
929 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
930 | localstatedir=$ac_optarg ;;
|
---|
931 |
|
---|
932 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
933 | ac_prev=mandir ;;
|
---|
934 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
935 | mandir=$ac_optarg ;;
|
---|
936 |
|
---|
937 | -nfp | --nfp | --nf)
|
---|
938 | # Obsolete; use --without-fp.
|
---|
939 | with_fp=no ;;
|
---|
940 |
|
---|
941 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
942 | | --no-cr | --no-c | -n)
|
---|
943 | no_create=yes ;;
|
---|
944 |
|
---|
945 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
946 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
947 | no_recursion=yes ;;
|
---|
948 |
|
---|
949 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
950 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
951 | | --oldin | --oldi | --old | --ol | --o)
|
---|
952 | ac_prev=oldincludedir ;;
|
---|
953 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
954 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
955 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
956 | oldincludedir=$ac_optarg ;;
|
---|
957 |
|
---|
958 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
959 | ac_prev=prefix ;;
|
---|
960 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
961 | prefix=$ac_optarg ;;
|
---|
962 |
|
---|
963 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
964 | | --program-pre | --program-pr | --program-p)
|
---|
965 | ac_prev=program_prefix ;;
|
---|
966 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
967 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
968 | program_prefix=$ac_optarg ;;
|
---|
969 |
|
---|
970 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
971 | | --program-suf | --program-su | --program-s)
|
---|
972 | ac_prev=program_suffix ;;
|
---|
973 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
974 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
975 | program_suffix=$ac_optarg ;;
|
---|
976 |
|
---|
977 | -program-transform-name | --program-transform-name \
|
---|
978 | | --program-transform-nam | --program-transform-na \
|
---|
979 | | --program-transform-n | --program-transform- \
|
---|
980 | | --program-transform | --program-transfor \
|
---|
981 | | --program-transfo | --program-transf \
|
---|
982 | | --program-trans | --program-tran \
|
---|
983 | | --progr-tra | --program-tr | --program-t)
|
---|
984 | ac_prev=program_transform_name ;;
|
---|
985 | -program-transform-name=* | --program-transform-name=* \
|
---|
986 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
987 | | --program-transform-n=* | --program-transform-=* \
|
---|
988 | | --program-transform=* | --program-transfor=* \
|
---|
989 | | --program-transfo=* | --program-transf=* \
|
---|
990 | | --program-trans=* | --program-tran=* \
|
---|
991 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
992 | program_transform_name=$ac_optarg ;;
|
---|
993 |
|
---|
994 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
995 | ac_prev=pdfdir ;;
|
---|
996 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
997 | pdfdir=$ac_optarg ;;
|
---|
998 |
|
---|
999 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1000 | ac_prev=psdir ;;
|
---|
1001 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1002 | psdir=$ac_optarg ;;
|
---|
1003 |
|
---|
1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1005 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1006 | silent=yes ;;
|
---|
1007 |
|
---|
1008 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1009 | ac_prev=sbindir ;;
|
---|
1010 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1011 | | --sbi=* | --sb=*)
|
---|
1012 | sbindir=$ac_optarg ;;
|
---|
1013 |
|
---|
1014 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1015 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1016 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1017 | | --sha | --sh)
|
---|
1018 | ac_prev=sharedstatedir ;;
|
---|
1019 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1020 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1021 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1022 | | --sha=* | --sh=*)
|
---|
1023 | sharedstatedir=$ac_optarg ;;
|
---|
1024 |
|
---|
1025 | -site | --site | --sit)
|
---|
1026 | ac_prev=site ;;
|
---|
1027 | -site=* | --site=* | --sit=*)
|
---|
1028 | site=$ac_optarg ;;
|
---|
1029 |
|
---|
1030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1031 | ac_prev=srcdir ;;
|
---|
1032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1033 | srcdir=$ac_optarg ;;
|
---|
1034 |
|
---|
1035 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1036 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1037 | ac_prev=sysconfdir ;;
|
---|
1038 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1039 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1040 | sysconfdir=$ac_optarg ;;
|
---|
1041 |
|
---|
1042 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1043 | ac_prev=target_alias ;;
|
---|
1044 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1045 | target_alias=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1048 | verbose=yes ;;
|
---|
1049 |
|
---|
1050 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1051 | ac_init_version=: ;;
|
---|
1052 |
|
---|
1053 | -with-* | --with-*)
|
---|
1054 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1055 | # Reject names that are not valid shell variable names.
|
---|
1056 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1057 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1058 | { (exit 1); exit 1; }; }
|
---|
1059 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1060 | eval with_$ac_package=\$ac_optarg ;;
|
---|
1061 |
|
---|
1062 | -without-* | --without-*)
|
---|
1063 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1064 | # Reject names that are not valid shell variable names.
|
---|
1065 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1066 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1067 | { (exit 1); exit 1; }; }
|
---|
1068 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1069 | eval with_$ac_package=no ;;
|
---|
1070 |
|
---|
1071 | --x)
|
---|
1072 | # Obsolete; use --with-x.
|
---|
1073 | with_x=yes ;;
|
---|
1074 |
|
---|
1075 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1076 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1077 | ac_prev=x_includes ;;
|
---|
1078 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1079 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1080 | x_includes=$ac_optarg ;;
|
---|
1081 |
|
---|
1082 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1083 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1084 | ac_prev=x_libraries ;;
|
---|
1085 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1086 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1087 | x_libraries=$ac_optarg ;;
|
---|
1088 |
|
---|
1089 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
1090 | Try \`$0 --help' for more information." >&2
|
---|
1091 | { (exit 1); exit 1; }; }
|
---|
1092 | ;;
|
---|
1093 |
|
---|
1094 | *=*)
|
---|
1095 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1096 | # Reject names that are not valid shell variable names.
|
---|
1097 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
1098 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
1099 | { (exit 1); exit 1; }; }
|
---|
1100 | eval $ac_envvar=\$ac_optarg
|
---|
1101 | export $ac_envvar ;;
|
---|
1102 |
|
---|
1103 | *)
|
---|
1104 | # FIXME: should be removed in autoconf 3.0.
|
---|
1105 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1106 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1107 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1108 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1109 | ;;
|
---|
1110 |
|
---|
1111 | esac
|
---|
1112 | done
|
---|
1113 |
|
---|
1114 | if test -n "$ac_prev"; then
|
---|
1115 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1116 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
1117 | { (exit 1); exit 1; }; }
|
---|
1118 | fi
|
---|
1119 |
|
---|
1120 | # Be sure to have absolute directory names.
|
---|
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1124 | libdir localedir mandir
|
---|
1125 | do
|
---|
1126 | eval ac_val=\$$ac_var
|
---|
1127 | case $ac_val in
|
---|
1128 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1129 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1130 | esac
|
---|
1131 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
1132 | { (exit 1); exit 1; }; }
|
---|
1133 | done
|
---|
1134 |
|
---|
1135 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1136 | # used to hold the argument of --host etc.
|
---|
1137 | # FIXME: To remove some day.
|
---|
1138 | build=$build_alias
|
---|
1139 | host=$host_alias
|
---|
1140 | target=$target_alias
|
---|
1141 |
|
---|
1142 | # FIXME: To remove some day.
|
---|
1143 | if test "x$host_alias" != x; then
|
---|
1144 | if test "x$build_alias" = x; then
|
---|
1145 | cross_compiling=maybe
|
---|
1146 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
1147 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
1148 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1149 | cross_compiling=yes
|
---|
1150 | fi
|
---|
1151 | fi
|
---|
1152 |
|
---|
1153 | ac_tool_prefix=
|
---|
1154 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1155 |
|
---|
1156 | test "$silent" = yes && exec 6>/dev/null
|
---|
1157 |
|
---|
1158 |
|
---|
1159 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1160 | ac_ls_di=`ls -di .` &&
|
---|
1161 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1162 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
1163 | { (exit 1); exit 1; }; }
|
---|
1164 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1165 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
1166 | { (exit 1); exit 1; }; }
|
---|
1167 |
|
---|
1168 |
|
---|
1169 | # Find the source files, if location was not specified.
|
---|
1170 | if test -z "$srcdir"; then
|
---|
1171 | ac_srcdir_defaulted=yes
|
---|
1172 | # Try the directory containing this script, then the parent directory.
|
---|
1173 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
1174 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1175 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
1176 | X"$0" : 'X\(//\)$' \| \
|
---|
1177 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1178 | echo X"$0" |
|
---|
1179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1180 | s//\1/
|
---|
1181 | q
|
---|
1182 | }
|
---|
1183 | /^X\(\/\/\)[^/].*/{
|
---|
1184 | s//\1/
|
---|
1185 | q
|
---|
1186 | }
|
---|
1187 | /^X\(\/\/\)$/{
|
---|
1188 | s//\1/
|
---|
1189 | q
|
---|
1190 | }
|
---|
1191 | /^X\(\/\).*/{
|
---|
1192 | s//\1/
|
---|
1193 | q
|
---|
1194 | }
|
---|
1195 | s/.*/./; q'`
|
---|
1196 | srcdir=$ac_confdir
|
---|
1197 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1198 | srcdir=..
|
---|
1199 | fi
|
---|
1200 | else
|
---|
1201 | ac_srcdir_defaulted=no
|
---|
1202 | fi
|
---|
1203 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1204 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1205 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
1206 | { (exit 1); exit 1; }; }
|
---|
1207 | fi
|
---|
1208 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1209 | ac_abs_confdir=`(
|
---|
1210 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
1211 | { (exit 1); exit 1; }; }
|
---|
1212 | pwd)`
|
---|
1213 | # When building in place, set srcdir=.
|
---|
1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1215 | srcdir=.
|
---|
1216 | fi
|
---|
1217 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1218 | # Double slashes in file names in object file debugging info
|
---|
1219 | # mess up M-x gdb in Emacs.
|
---|
1220 | case $srcdir in
|
---|
1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1222 | esac
|
---|
1223 | for ac_var in $ac_precious_vars; do
|
---|
1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1225 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1228 | done
|
---|
1229 |
|
---|
1230 | #
|
---|
1231 | # Report the --help message.
|
---|
1232 | #
|
---|
1233 | if test "$ac_init_help" = "long"; then
|
---|
1234 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1235 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1236 | cat <<_ACEOF
|
---|
1237 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1238 |
|
---|
1239 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1240 |
|
---|
1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1242 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1243 |
|
---|
1244 | Defaults for the options are specified in brackets.
|
---|
1245 |
|
---|
1246 | Configuration:
|
---|
1247 | -h, --help display this help and exit
|
---|
1248 | --help=short display options specific to this package
|
---|
1249 | --help=recursive display the short help of all the included packages
|
---|
1250 | -V, --version display version information and exit
|
---|
1251 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
1252 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1253 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1254 | -n, --no-create do not create output files
|
---|
1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1256 |
|
---|
1257 | Installation directories:
|
---|
1258 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1259 | [$ac_default_prefix]
|
---|
1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1261 | [PREFIX]
|
---|
1262 |
|
---|
1263 | By default, \`make install' will install all the files in
|
---|
1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1266 | for instance \`--prefix=\$HOME'.
|
---|
1267 |
|
---|
1268 | For better control, use the options below.
|
---|
1269 |
|
---|
1270 | Fine tuning of the installation directories:
|
---|
1271 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1272 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1273 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1277 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1278 | --includedir=DIR C header files [PREFIX/include]
|
---|
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1282 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1284 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1286 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1287 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1288 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1289 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1290 | _ACEOF
|
---|
1291 |
|
---|
1292 | cat <<\_ACEOF
|
---|
1293 |
|
---|
1294 | System types:
|
---|
1295 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1296 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1297 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1298 | _ACEOF
|
---|
1299 | fi
|
---|
1300 |
|
---|
1301 | if test -n "$ac_init_help"; then
|
---|
1302 |
|
---|
1303 | cat <<\_ACEOF
|
---|
1304 |
|
---|
1305 | Optional Features:
|
---|
1306 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1307 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1308 | --enable-corba Enable CORBA support
|
---|
1309 | --disable-java Disable Java compilation
|
---|
1310 | --enable-z3950 Enable Z39.50 client support
|
---|
1311 | --disable-yaz Disable YAZ compilation
|
---|
1312 | --disable-wvware Disable wvWare compilation
|
---|
1313 | --disable-jdbm Disable JDBM compilation
|
---|
1314 | --disable-gdbm Disable GDBM compilation
|
---|
1315 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1316 | --disable-sqlite Disable SQLite support
|
---|
1317 | --disable-rss Disable RSS support
|
---|
1318 | --enable-apache-httpd Enable Apache httpd support
|
---|
1319 | --enable-jni Enable JNI compilation
|
---|
1320 | --disable-mg Disable MG compilation
|
---|
1321 | --disable-mgpp Disable MGPP compilation
|
---|
1322 | --disable-lucene Disable Lucene compilation
|
---|
1323 | --enable-gnome-lib-ext Enable the gnome-lib extension
|
---|
1324 |
|
---|
1325 | Optional Packages:
|
---|
1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1328 | --with-micodir Use installed MICO directory
|
---|
1329 | --with-dmalloc use dmalloc, as in
|
---|
1330 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1331 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1332 |
|
---|
1333 | Some influential environment variables:
|
---|
1334 | CC C compiler command
|
---|
1335 | CFLAGS C compiler flags
|
---|
1336 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1337 | nonstandard directory <lib dir>
|
---|
1338 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1339 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
1340 | you have headers in a nonstandard directory <include dir>
|
---|
1341 | CXX C++ compiler command
|
---|
1342 | CXXFLAGS C++ compiler flags
|
---|
1343 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
1344 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
1345 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1346 | This script will default YFLAGS to the empty string to avoid a
|
---|
1347 | default value of `-d' given by some make applications.
|
---|
1348 | CPP C preprocessor
|
---|
1349 |
|
---|
1350 | Use these variables to override the choices made by `configure' or to help
|
---|
1351 | it to find libraries and programs with nonstandard names/locations.
|
---|
1352 |
|
---|
1353 | _ACEOF
|
---|
1354 | ac_status=$?
|
---|
1355 | fi
|
---|
1356 |
|
---|
1357 | if test "$ac_init_help" = "recursive"; then
|
---|
1358 | # If there are subdirs, report their specific --help.
|
---|
1359 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1360 | test -d "$ac_dir" || continue
|
---|
1361 | ac_builddir=.
|
---|
1362 |
|
---|
1363 | case "$ac_dir" in
|
---|
1364 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1365 | *)
|
---|
1366 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
1367 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1368 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
1369 | case $ac_top_builddir_sub in
|
---|
1370 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1371 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1372 | esac ;;
|
---|
1373 | esac
|
---|
1374 | ac_abs_top_builddir=$ac_pwd
|
---|
1375 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1376 | # for backward compatibility:
|
---|
1377 | ac_top_builddir=$ac_top_build_prefix
|
---|
1378 |
|
---|
1379 | case $srcdir in
|
---|
1380 | .) # We are building in place.
|
---|
1381 | ac_srcdir=.
|
---|
1382 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1383 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1384 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1385 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1386 | ac_top_srcdir=$srcdir
|
---|
1387 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1388 | *) # Relative name.
|
---|
1389 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1390 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1391 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1392 | esac
|
---|
1393 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1394 |
|
---|
1395 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1396 | # Check for guested configure.
|
---|
1397 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1398 | echo &&
|
---|
1399 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1400 | elif test -f "$ac_srcdir/configure"; then
|
---|
1401 | echo &&
|
---|
1402 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1403 | else
|
---|
1404 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1405 | fi || ac_status=$?
|
---|
1406 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1407 | done
|
---|
1408 | fi
|
---|
1409 |
|
---|
1410 | test -n "$ac_init_help" && exit $ac_status
|
---|
1411 | if $ac_init_version; then
|
---|
1412 | cat <<\_ACEOF
|
---|
1413 | configure
|
---|
1414 | generated by GNU Autoconf 2.61
|
---|
1415 |
|
---|
1416 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
1417 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
1418 | This configure script is free software; the Free Software Foundation
|
---|
1419 | gives unlimited permission to copy, distribute and modify it.
|
---|
1420 | _ACEOF
|
---|
1421 | exit
|
---|
1422 | fi
|
---|
1423 | cat >config.log <<_ACEOF
|
---|
1424 | This file contains any messages produced by compilers while
|
---|
1425 | running configure, to aid debugging if configure makes a mistake.
|
---|
1426 |
|
---|
1427 | It was created by $as_me, which was
|
---|
1428 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
1429 |
|
---|
1430 | $ $0 $@
|
---|
1431 |
|
---|
1432 | _ACEOF
|
---|
1433 | exec 5>>config.log
|
---|
1434 | {
|
---|
1435 | cat <<_ASUNAME
|
---|
1436 | ## --------- ##
|
---|
1437 | ## Platform. ##
|
---|
1438 | ## --------- ##
|
---|
1439 |
|
---|
1440 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1441 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1442 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1443 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1444 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1445 |
|
---|
1446 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1447 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1448 |
|
---|
1449 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1450 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1451 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1452 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1453 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1454 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1455 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1456 |
|
---|
1457 | _ASUNAME
|
---|
1458 |
|
---|
1459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1460 | for as_dir in $PATH
|
---|
1461 | do
|
---|
1462 | IFS=$as_save_IFS
|
---|
1463 | test -z "$as_dir" && as_dir=.
|
---|
1464 | echo "PATH: $as_dir"
|
---|
1465 | done
|
---|
1466 | IFS=$as_save_IFS
|
---|
1467 |
|
---|
1468 | } >&5
|
---|
1469 |
|
---|
1470 | cat >&5 <<_ACEOF
|
---|
1471 |
|
---|
1472 |
|
---|
1473 | ## ----------- ##
|
---|
1474 | ## Core tests. ##
|
---|
1475 | ## ----------- ##
|
---|
1476 |
|
---|
1477 | _ACEOF
|
---|
1478 |
|
---|
1479 |
|
---|
1480 | # Keep a trace of the command line.
|
---|
1481 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1482 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1483 | # Also quote any args containing shell meta-characters.
|
---|
1484 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1485 | ac_configure_args=
|
---|
1486 | ac_configure_args0=
|
---|
1487 | ac_configure_args1=
|
---|
1488 | ac_must_keep_next=false
|
---|
1489 | for ac_pass in 1 2
|
---|
1490 | do
|
---|
1491 | for ac_arg
|
---|
1492 | do
|
---|
1493 | case $ac_arg in
|
---|
1494 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1495 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1496 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1497 | continue ;;
|
---|
1498 | *\'*)
|
---|
1499 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1500 | esac
|
---|
1501 | case $ac_pass in
|
---|
1502 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1503 | 2)
|
---|
1504 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1505 | if test $ac_must_keep_next = true; then
|
---|
1506 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1507 | else
|
---|
1508 | case $ac_arg in
|
---|
1509 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1510 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1511 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1512 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1513 | case "$ac_configure_args0 " in
|
---|
1514 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1515 | esac
|
---|
1516 | ;;
|
---|
1517 | -* ) ac_must_keep_next=true ;;
|
---|
1518 | esac
|
---|
1519 | fi
|
---|
1520 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
1521 | ;;
|
---|
1522 | esac
|
---|
1523 | done
|
---|
1524 | done
|
---|
1525 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1526 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1527 |
|
---|
1528 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1529 | # config.log. We remove comments because anyway the quotes in there
|
---|
1530 | # would cause problems or look ugly.
|
---|
1531 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
1532 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
1533 | trap 'exit_status=$?
|
---|
1534 | # Save into config.log some information that might help in debugging.
|
---|
1535 | {
|
---|
1536 | echo
|
---|
1537 |
|
---|
1538 | cat <<\_ASBOX
|
---|
1539 | ## ---------------- ##
|
---|
1540 | ## Cache variables. ##
|
---|
1541 | ## ---------------- ##
|
---|
1542 | _ASBOX
|
---|
1543 | echo
|
---|
1544 | # The following way of writing the cache mishandles newlines in values,
|
---|
1545 | (
|
---|
1546 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
1547 | eval ac_val=\$$ac_var
|
---|
1548 | case $ac_val in #(
|
---|
1549 | *${as_nl}*)
|
---|
1550 | case $ac_var in #(
|
---|
1551 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
1552 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
1553 | esac
|
---|
1554 | case $ac_var in #(
|
---|
1555 | _ | IFS | as_nl) ;; #(
|
---|
1556 | *) $as_unset $ac_var ;;
|
---|
1557 | esac ;;
|
---|
1558 | esac
|
---|
1559 | done
|
---|
1560 | (set) 2>&1 |
|
---|
1561 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
1562 | *${as_nl}ac_space=\ *)
|
---|
1563 | sed -n \
|
---|
1564 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
1565 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
1566 | ;; #(
|
---|
1567 | *)
|
---|
1568 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
1569 | ;;
|
---|
1570 | esac |
|
---|
1571 | sort
|
---|
1572 | )
|
---|
1573 | echo
|
---|
1574 |
|
---|
1575 | cat <<\_ASBOX
|
---|
1576 | ## ----------------- ##
|
---|
1577 | ## Output variables. ##
|
---|
1578 | ## ----------------- ##
|
---|
1579 | _ASBOX
|
---|
1580 | echo
|
---|
1581 | for ac_var in $ac_subst_vars
|
---|
1582 | do
|
---|
1583 | eval ac_val=\$$ac_var
|
---|
1584 | case $ac_val in
|
---|
1585 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1586 | esac
|
---|
1587 | echo "$ac_var='\''$ac_val'\''"
|
---|
1588 | done | sort
|
---|
1589 | echo
|
---|
1590 |
|
---|
1591 | if test -n "$ac_subst_files"; then
|
---|
1592 | cat <<\_ASBOX
|
---|
1593 | ## ------------------- ##
|
---|
1594 | ## File substitutions. ##
|
---|
1595 | ## ------------------- ##
|
---|
1596 | _ASBOX
|
---|
1597 | echo
|
---|
1598 | for ac_var in $ac_subst_files
|
---|
1599 | do
|
---|
1600 | eval ac_val=\$$ac_var
|
---|
1601 | case $ac_val in
|
---|
1602 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1603 | esac
|
---|
1604 | echo "$ac_var='\''$ac_val'\''"
|
---|
1605 | done | sort
|
---|
1606 | echo
|
---|
1607 | fi
|
---|
1608 |
|
---|
1609 | if test -s confdefs.h; then
|
---|
1610 | cat <<\_ASBOX
|
---|
1611 | ## ----------- ##
|
---|
1612 | ## confdefs.h. ##
|
---|
1613 | ## ----------- ##
|
---|
1614 | _ASBOX
|
---|
1615 | echo
|
---|
1616 | cat confdefs.h
|
---|
1617 | echo
|
---|
1618 | fi
|
---|
1619 | test "$ac_signal" != 0 &&
|
---|
1620 | echo "$as_me: caught signal $ac_signal"
|
---|
1621 | echo "$as_me: exit $exit_status"
|
---|
1622 | } >&5
|
---|
1623 | rm -f core *.core core.conftest.* &&
|
---|
1624 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1625 | exit $exit_status
|
---|
1626 | ' 0
|
---|
1627 | for ac_signal in 1 2 13 15; do
|
---|
1628 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1629 | done
|
---|
1630 | ac_signal=0
|
---|
1631 |
|
---|
1632 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1633 | rm -f -r conftest* confdefs.h
|
---|
1634 |
|
---|
1635 | # Predefined preprocessor variables.
|
---|
1636 |
|
---|
1637 | cat >>confdefs.h <<_ACEOF
|
---|
1638 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1639 | _ACEOF
|
---|
1640 |
|
---|
1641 |
|
---|
1642 | cat >>confdefs.h <<_ACEOF
|
---|
1643 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1644 | _ACEOF
|
---|
1645 |
|
---|
1646 |
|
---|
1647 | cat >>confdefs.h <<_ACEOF
|
---|
1648 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1649 | _ACEOF
|
---|
1650 |
|
---|
1651 |
|
---|
1652 | cat >>confdefs.h <<_ACEOF
|
---|
1653 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1654 | _ACEOF
|
---|
1655 |
|
---|
1656 |
|
---|
1657 | cat >>confdefs.h <<_ACEOF
|
---|
1658 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1659 | _ACEOF
|
---|
1660 |
|
---|
1661 |
|
---|
1662 | # Let the site file select an alternate cache file if it wants to.
|
---|
1663 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1664 | if test -n "$CONFIG_SITE"; then
|
---|
1665 | set x "$CONFIG_SITE"
|
---|
1666 | elif test "x$prefix" != xNONE; then
|
---|
1667 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
1668 | else
|
---|
1669 | set x "$ac_default_prefix/share/config.site" \
|
---|
1670 | "$ac_default_prefix/etc/config.site"
|
---|
1671 | fi
|
---|
1672 | shift
|
---|
1673 | for ac_site_file
|
---|
1674 | do
|
---|
1675 | if test -r "$ac_site_file"; then
|
---|
1676 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1677 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1678 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1679 | . "$ac_site_file"
|
---|
1680 | fi
|
---|
1681 | done
|
---|
1682 |
|
---|
1683 | if test -r "$cache_file"; then
|
---|
1684 | # Some versions of bash will fail to source /dev/null (special
|
---|
1685 | # files actually), so we avoid doing that.
|
---|
1686 | if test -f "$cache_file"; then
|
---|
1687 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1688 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1689 | case $cache_file in
|
---|
1690 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
1691 | *) . "./$cache_file";;
|
---|
1692 | esac
|
---|
1693 | fi
|
---|
1694 | else
|
---|
1695 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1696 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1697 | >$cache_file
|
---|
1698 | fi
|
---|
1699 |
|
---|
1700 | # Check that the precious variables saved in the cache have kept the same
|
---|
1701 | # value.
|
---|
1702 | ac_cache_corrupted=false
|
---|
1703 | for ac_var in $ac_precious_vars; do
|
---|
1704 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1705 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1706 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
1707 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
1708 | case $ac_old_set,$ac_new_set in
|
---|
1709 | set,)
|
---|
1710 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1711 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1712 | ac_cache_corrupted=: ;;
|
---|
1713 | ,set)
|
---|
1714 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1715 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1716 | ac_cache_corrupted=: ;;
|
---|
1717 | ,);;
|
---|
1718 | *)
|
---|
1719 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1720 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1721 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1722 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1723 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1724 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1725 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1726 | ac_cache_corrupted=:
|
---|
1727 | fi;;
|
---|
1728 | esac
|
---|
1729 | # Pass precious variables to config.status.
|
---|
1730 | if test "$ac_new_set" = set; then
|
---|
1731 | case $ac_new_val in
|
---|
1732 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1733 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1734 | esac
|
---|
1735 | case " $ac_configure_args " in
|
---|
1736 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1737 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1738 | esac
|
---|
1739 | fi
|
---|
1740 | done
|
---|
1741 | if $ac_cache_corrupted; then
|
---|
1742 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1743 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1744 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1745 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1746 | { (exit 1); exit 1; }; }
|
---|
1747 | fi
|
---|
1748 |
|
---|
1749 |
|
---|
1750 |
|
---|
1751 |
|
---|
1752 |
|
---|
1753 |
|
---|
1754 |
|
---|
1755 |
|
---|
1756 |
|
---|
1757 |
|
---|
1758 |
|
---|
1759 |
|
---|
1760 |
|
---|
1761 |
|
---|
1762 |
|
---|
1763 |
|
---|
1764 |
|
---|
1765 | ac_ext=c
|
---|
1766 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1770 |
|
---|
1771 |
|
---|
1772 | ac_config_headers="$ac_config_headers config.h"
|
---|
1773 |
|
---|
1774 |
|
---|
1775 | PACKAGE=gsdl
|
---|
1776 | VERSION=2.x-svn
|
---|
1777 | cat >>confdefs.h <<_ACEOF
|
---|
1778 | #define PACKAGE "$PACKAGE"
|
---|
1779 | _ACEOF
|
---|
1780 |
|
---|
1781 | cat >>confdefs.h <<_ACEOF
|
---|
1782 | #define VERSION "$VERSION"
|
---|
1783 | _ACEOF
|
---|
1784 |
|
---|
1785 |
|
---|
1786 |
|
---|
1787 |
|
---|
1788 |
|
---|
1789 | USE_FASTCGI=0
|
---|
1790 | if test USE_FASTCGI = 1; then
|
---|
1791 | cat >>confdefs.h <<\_ACEOF
|
---|
1792 | #define USE_FASTCGI 1
|
---|
1793 | _ACEOF
|
---|
1794 |
|
---|
1795 |
|
---|
1796 | fi
|
---|
1797 |
|
---|
1798 | if test USE_LANGACTION = 1; then
|
---|
1799 | cat >>confdefs.h <<\_ACEOF
|
---|
1800 | #define USE_LANGACTION 1
|
---|
1801 | _ACEOF
|
---|
1802 |
|
---|
1803 |
|
---|
1804 | fi
|
---|
1805 |
|
---|
1806 | # Check whether --enable-corba was given.
|
---|
1807 | if test "${enable_corba+set}" = set; then
|
---|
1808 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
1809 | else
|
---|
1810 | USE_CORBA=no
|
---|
1811 | fi
|
---|
1812 |
|
---|
1813 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
1814 | USE_CORBA=1
|
---|
1815 | cat >>confdefs.h <<\_ACEOF
|
---|
1816 | #define USE_CORBA
|
---|
1817 | _ACEOF
|
---|
1818 |
|
---|
1819 | else
|
---|
1820 | USE_CORBA=0
|
---|
1821 | fi
|
---|
1822 |
|
---|
1823 |
|
---|
1824 |
|
---|
1825 | # Check whether --with-micodir was given.
|
---|
1826 | if test "${with_micodir+set}" = set; then
|
---|
1827 | withval=$with_micodir; MICO_DIR=$withval
|
---|
1828 | else
|
---|
1829 | MICO_DIR="default"
|
---|
1830 | fi
|
---|
1831 |
|
---|
1832 | cat >>confdefs.h <<_ACEOF
|
---|
1833 | #define MICO_DIR "$MICO_DIR"
|
---|
1834 | _ACEOF
|
---|
1835 |
|
---|
1836 |
|
---|
1837 |
|
---|
1838 | # Check whether --enable-java was given.
|
---|
1839 | if test "${enable_java+set}" = set; then
|
---|
1840 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
1841 | else
|
---|
1842 | ENABLE_JAVA=yes
|
---|
1843 | fi
|
---|
1844 |
|
---|
1845 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
1846 | ENABLE_JAVA=1
|
---|
1847 | if test "x$JAVA_HOME" != "x" ; then
|
---|
1848 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
1849 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
1850 | echo "and JAVA respectively"
|
---|
1851 | export JAVA_HOME=
|
---|
1852 | fi
|
---|
1853 | else
|
---|
1854 | ENABLE_JAVA=0
|
---|
1855 | fi
|
---|
1856 |
|
---|
1857 |
|
---|
1858 | # Check whether --enable-z3950 was given.
|
---|
1859 | if test "${enable_z3950+set}" = set; then
|
---|
1860 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
1861 | else
|
---|
1862 | USE_Z3950=no
|
---|
1863 | fi
|
---|
1864 |
|
---|
1865 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
1866 | USE_Z3950=1
|
---|
1867 | cat >>confdefs.h <<\_ACEOF
|
---|
1868 | #define USE_Z3950
|
---|
1869 | _ACEOF
|
---|
1870 |
|
---|
1871 | else
|
---|
1872 | USE_Z3950=0
|
---|
1873 | fi
|
---|
1874 |
|
---|
1875 |
|
---|
1876 | # Check whether --enable-yaz was given.
|
---|
1877 | if test "${enable_yaz+set}" = set; then
|
---|
1878 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
1879 | else
|
---|
1880 | USE_YAZ=yes
|
---|
1881 | fi
|
---|
1882 |
|
---|
1883 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
1884 | USE_YAZ=1
|
---|
1885 | cat >>confdefs.h <<\_ACEOF
|
---|
1886 | #define USE_YAZ
|
---|
1887 | _ACEOF
|
---|
1888 |
|
---|
1889 | else
|
---|
1890 | USE_YAZ=0
|
---|
1891 | fi
|
---|
1892 |
|
---|
1893 |
|
---|
1894 | # Check whether --enable-wvware was given.
|
---|
1895 | if test "${enable_wvware+set}" = set; then
|
---|
1896 | enableval=$enable_wvware; USE_WVWARE=$enableval
|
---|
1897 | else
|
---|
1898 | USE_WVWARE=yes
|
---|
1899 | fi
|
---|
1900 |
|
---|
1901 | if test $USE_WVWARE = "yes" -o $USE_WVWARE = "1" ; then
|
---|
1902 | USE_WVWARE=1
|
---|
1903 | cat >>confdefs.h <<\_ACEOF
|
---|
1904 | #define USE_WVWARE
|
---|
1905 | _ACEOF
|
---|
1906 |
|
---|
1907 | else
|
---|
1908 | USE_WVWARE=0
|
---|
1909 | fi
|
---|
1910 |
|
---|
1911 |
|
---|
1912 | # Check whether --enable-jdbm was given.
|
---|
1913 | if test "${enable_jdbm+set}" = set; then
|
---|
1914 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
1915 | else
|
---|
1916 | USE_JDBM=yes
|
---|
1917 | fi
|
---|
1918 |
|
---|
1919 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
1920 | USE_JDBM=1
|
---|
1921 | cat >>confdefs.h <<\_ACEOF
|
---|
1922 | #define USE_JDBM
|
---|
1923 | _ACEOF
|
---|
1924 |
|
---|
1925 | else
|
---|
1926 | USE_JDBM=0
|
---|
1927 | fi
|
---|
1928 |
|
---|
1929 |
|
---|
1930 | # Check whether --enable-gdbm was given.
|
---|
1931 | if test "${enable_gdbm+set}" = set; then
|
---|
1932 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
1933 | else
|
---|
1934 | USE_GDBM=yes
|
---|
1935 | fi
|
---|
1936 |
|
---|
1937 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
1938 | USE_GDBM=1
|
---|
1939 | cat >>confdefs.h <<\_ACEOF
|
---|
1940 | #define USE_GDBM
|
---|
1941 | _ACEOF
|
---|
1942 |
|
---|
1943 | else
|
---|
1944 | USE_GDBM=0
|
---|
1945 | fi
|
---|
1946 |
|
---|
1947 |
|
---|
1948 | # Check whether --enable-accentfold was given.
|
---|
1949 | if test "${enable_accentfold+set}" = set; then
|
---|
1950 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
1951 | else
|
---|
1952 | ENABLE_ACCENTFOLD=yes
|
---|
1953 | fi
|
---|
1954 |
|
---|
1955 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
1956 | ENABLE_ACCENTFOLD=1
|
---|
1957 | cat >>confdefs.h <<\_ACEOF
|
---|
1958 | #define ENABLE_ACCENTFOLD
|
---|
1959 | _ACEOF
|
---|
1960 |
|
---|
1961 | else
|
---|
1962 | ENABLE_ACCENTFOLD=0
|
---|
1963 | fi
|
---|
1964 |
|
---|
1965 |
|
---|
1966 | # Check whether --enable-sqlite was given.
|
---|
1967 | if test "${enable_sqlite+set}" = set; then
|
---|
1968 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
1969 | else
|
---|
1970 | USE_SQLITE=yes
|
---|
1971 | fi
|
---|
1972 |
|
---|
1973 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
1974 | USE_SQLITE=1
|
---|
1975 | cat >>confdefs.h <<\_ACEOF
|
---|
1976 | #define USE_SQLITE
|
---|
1977 | _ACEOF
|
---|
1978 |
|
---|
1979 | else
|
---|
1980 | USE_SQLITE=0
|
---|
1981 | fi
|
---|
1982 |
|
---|
1983 |
|
---|
1984 | # Check whether --enable-rss was given.
|
---|
1985 | if test "${enable_rss+set}" = set; then
|
---|
1986 | enableval=$enable_rss; USE_RSS=$enableval
|
---|
1987 | else
|
---|
1988 | USE_RSS=yes
|
---|
1989 | fi
|
---|
1990 |
|
---|
1991 | if test $USE_RSS = "yes" -o $USE_RSS = "1" ; then
|
---|
1992 | USE_RSS=1
|
---|
1993 | cat >>confdefs.h <<\_ACEOF
|
---|
1994 | #define USE_RSS
|
---|
1995 | _ACEOF
|
---|
1996 |
|
---|
1997 | else
|
---|
1998 | USE_RSS=0
|
---|
1999 | fi
|
---|
2000 |
|
---|
2001 |
|
---|
2002 |
|
---|
2003 | if test -d runtime-src; then
|
---|
2004 | # Check whether --enable-apache-httpd was given.
|
---|
2005 | if test "${enable_apache_httpd+set}" = set; then
|
---|
2006 | enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
|
---|
2007 | else
|
---|
2008 | USE_APACHE_HTTPD=no
|
---|
2009 | fi
|
---|
2010 |
|
---|
2011 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
2012 | USE_APACHE_HTTPD=1
|
---|
2013 | cat >>confdefs.h <<\_ACEOF
|
---|
2014 | #define USE_APACHE_HTTPD
|
---|
2015 | _ACEOF
|
---|
2016 |
|
---|
2017 | else
|
---|
2018 | USE_APACHE_HTTPD=0
|
---|
2019 | fi
|
---|
2020 |
|
---|
2021 | fi
|
---|
2022 |
|
---|
2023 | # Check whether --enable-jni was given.
|
---|
2024 | if test "${enable_jni+set}" = set; then
|
---|
2025 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
2026 | else
|
---|
2027 | ENABLE_JNI=no
|
---|
2028 | fi
|
---|
2029 |
|
---|
2030 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
|
---|
2031 | ENABLE_JNI=1
|
---|
2032 | cat >>confdefs.h <<\_ACEOF
|
---|
2033 | #define ENABLE_JNI
|
---|
2034 | _ACEOF
|
---|
2035 |
|
---|
2036 | else
|
---|
2037 | ENABLE_JNI=0
|
---|
2038 | fi
|
---|
2039 |
|
---|
2040 |
|
---|
2041 | # Check whether --enable-mg was given.
|
---|
2042 | if test "${enable_mg+set}" = set; then
|
---|
2043 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
2044 | else
|
---|
2045 | ENABLE_MG=yes
|
---|
2046 | fi
|
---|
2047 |
|
---|
2048 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
2049 | ENABLE_MG=1
|
---|
2050 | cat >>confdefs.h <<\_ACEOF
|
---|
2051 | #define ENABLE_MG
|
---|
2052 | _ACEOF
|
---|
2053 |
|
---|
2054 | else
|
---|
2055 | ENABLE_MG=0
|
---|
2056 | fi
|
---|
2057 |
|
---|
2058 |
|
---|
2059 |
|
---|
2060 | # Check whether --enable-mgpp was given.
|
---|
2061 | if test "${enable_mgpp+set}" = set; then
|
---|
2062 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
2063 | else
|
---|
2064 | ENABLE_MGPP=yes
|
---|
2065 | fi
|
---|
2066 |
|
---|
2067 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
2068 | ENABLE_MGPP=1
|
---|
2069 | cat >>confdefs.h <<\_ACEOF
|
---|
2070 | #define ENABLE_MGPP
|
---|
2071 | _ACEOF
|
---|
2072 |
|
---|
2073 | else
|
---|
2074 | ENABLE_MGPP=0
|
---|
2075 | fi
|
---|
2076 |
|
---|
2077 |
|
---|
2078 | # Check whether --enable-lucene was given.
|
---|
2079 | if test "${enable_lucene+set}" = set; then
|
---|
2080 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
2081 | else
|
---|
2082 | ENABLE_LUCENE=yes
|
---|
2083 | fi
|
---|
2084 |
|
---|
2085 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
2086 | ENABLE_LUCENE=1
|
---|
2087 | cat >>confdefs.h <<\_ACEOF
|
---|
2088 | #define ENABLE_LUCENE
|
---|
2089 | _ACEOF
|
---|
2090 |
|
---|
2091 | else
|
---|
2092 | ENABLE_LUCENE=0
|
---|
2093 | fi
|
---|
2094 |
|
---|
2095 |
|
---|
2096 |
|
---|
2097 | # Check whether --enable-gnome-lib-ext was given.
|
---|
2098 | if test "${enable_gnome_lib_ext+set}" = set; then
|
---|
2099 | enableval=$enable_gnome_lib_ext; ENABLE_GNOMELIB_EXT=1
|
---|
2100 | else
|
---|
2101 | ENABLE_GNOMELIB_EXT=0
|
---|
2102 | fi
|
---|
2103 |
|
---|
2104 | if test -d ext/gnome-lib ; then
|
---|
2105 | cat >>confdefs.h <<\_ACEOF
|
---|
2106 | #define ENABLE_GNOMELIB_EXT $ENABLE_GNOMELIB_EXT
|
---|
2107 | _ACEOF
|
---|
2108 |
|
---|
2109 | elif test -f ext/gnome-lib-minimal/devel.bash ; then
|
---|
2110 | cat >>confdefs.h <<\_ACEOF
|
---|
2111 | #define ENABLE_GNOMELIB_EXT $ENABLE_GNOMELIB_EXT
|
---|
2112 | _ACEOF
|
---|
2113 |
|
---|
2114 | else
|
---|
2115 | # Running `svn` returns 127 if no svn is installed. It returns 1 if svn is installed,
|
---|
2116 | # since it suggests running svn --help. It returns 0 if running `svn --version`
|
---|
2117 |
|
---|
2118 | if test $ENABLE_GNOMELIB_EXT = 1; then
|
---|
2119 | svn --version
|
---|
2120 | result=$?
|
---|
2121 | if test $result = 0; then
|
---|
2122 | cd ext
|
---|
2123 | svn co https://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/src gnome-lib
|
---|
2124 | cd ..
|
---|
2125 | cat >>confdefs.h <<\_ACEOF
|
---|
2126 | #define ENABLE_GNOMELIB_EXT 1
|
---|
2127 | _ACEOF
|
---|
2128 |
|
---|
2129 | else
|
---|
2130 | echo "**** WARNING: No gnome-lib or gnome-lib-minimal(/devel.bash) in gs2build/ext folder. Unable to check out gnome-lib. Disabling gnome-lib-ext."
|
---|
2131 | cat >>confdefs.h <<\_ACEOF
|
---|
2132 | #define ENABLE_GNOMELIB_EXT 0
|
---|
2133 | _ACEOF
|
---|
2134 |
|
---|
2135 | fi
|
---|
2136 | fi
|
---|
2137 | fi
|
---|
2138 |
|
---|
2139 |
|
---|
2140 |
|
---|
2141 | LDFLAGS=$LDFLAGS
|
---|
2142 |
|
---|
2143 | if test -z "$CFLAGS"; then
|
---|
2144 | CFLAGS=-O2
|
---|
2145 | fi
|
---|
2146 |
|
---|
2147 |
|
---|
2148 |
|
---|
2149 | ac_ext=c
|
---|
2150 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2154 | if test -n "$ac_tool_prefix"; then
|
---|
2155 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2156 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2159 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2160 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2161 | else
|
---|
2162 | if test -n "$CC"; then
|
---|
2163 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2164 | else
|
---|
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2166 | for as_dir in $PATH
|
---|
2167 | do
|
---|
2168 | IFS=$as_save_IFS
|
---|
2169 | test -z "$as_dir" && as_dir=.
|
---|
2170 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2172 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2174 | break 2
|
---|
2175 | fi
|
---|
2176 | done
|
---|
2177 | done
|
---|
2178 | IFS=$as_save_IFS
|
---|
2179 |
|
---|
2180 | fi
|
---|
2181 | fi
|
---|
2182 | CC=$ac_cv_prog_CC
|
---|
2183 | if test -n "$CC"; then
|
---|
2184 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2185 | echo "${ECHO_T}$CC" >&6; }
|
---|
2186 | else
|
---|
2187 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2188 | echo "${ECHO_T}no" >&6; }
|
---|
2189 | fi
|
---|
2190 |
|
---|
2191 |
|
---|
2192 | fi
|
---|
2193 | if test -z "$ac_cv_prog_CC"; then
|
---|
2194 | ac_ct_CC=$CC
|
---|
2195 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2196 | set dummy gcc; ac_word=$2
|
---|
2197 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2199 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2200 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2201 | else
|
---|
2202 | if test -n "$ac_ct_CC"; then
|
---|
2203 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2204 | else
|
---|
2205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2206 | for as_dir in $PATH
|
---|
2207 | do
|
---|
2208 | IFS=$as_save_IFS
|
---|
2209 | test -z "$as_dir" && as_dir=.
|
---|
2210 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2212 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2214 | break 2
|
---|
2215 | fi
|
---|
2216 | done
|
---|
2217 | done
|
---|
2218 | IFS=$as_save_IFS
|
---|
2219 |
|
---|
2220 | fi
|
---|
2221 | fi
|
---|
2222 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2223 | if test -n "$ac_ct_CC"; then
|
---|
2224 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2225 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
2226 | else
|
---|
2227 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2228 | echo "${ECHO_T}no" >&6; }
|
---|
2229 | fi
|
---|
2230 |
|
---|
2231 | if test "x$ac_ct_CC" = x; then
|
---|
2232 | CC=""
|
---|
2233 | else
|
---|
2234 | case $cross_compiling:$ac_tool_warned in
|
---|
2235 | yes:)
|
---|
2236 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2237 | whose name does not start with the host triplet. If you think this
|
---|
2238 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2239 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2240 | whose name does not start with the host triplet. If you think this
|
---|
2241 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2242 | ac_tool_warned=yes ;;
|
---|
2243 | esac
|
---|
2244 | CC=$ac_ct_CC
|
---|
2245 | fi
|
---|
2246 | else
|
---|
2247 | CC="$ac_cv_prog_CC"
|
---|
2248 | fi
|
---|
2249 |
|
---|
2250 | if test -z "$CC"; then
|
---|
2251 | if test -n "$ac_tool_prefix"; then
|
---|
2252 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2253 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2256 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2258 | else
|
---|
2259 | if test -n "$CC"; then
|
---|
2260 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2261 | else
|
---|
2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2263 | for as_dir in $PATH
|
---|
2264 | do
|
---|
2265 | IFS=$as_save_IFS
|
---|
2266 | test -z "$as_dir" && as_dir=.
|
---|
2267 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2269 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2271 | break 2
|
---|
2272 | fi
|
---|
2273 | done
|
---|
2274 | done
|
---|
2275 | IFS=$as_save_IFS
|
---|
2276 |
|
---|
2277 | fi
|
---|
2278 | fi
|
---|
2279 | CC=$ac_cv_prog_CC
|
---|
2280 | if test -n "$CC"; then
|
---|
2281 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2282 | echo "${ECHO_T}$CC" >&6; }
|
---|
2283 | else
|
---|
2284 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2285 | echo "${ECHO_T}no" >&6; }
|
---|
2286 | fi
|
---|
2287 |
|
---|
2288 |
|
---|
2289 | fi
|
---|
2290 | fi
|
---|
2291 | if test -z "$CC"; then
|
---|
2292 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2293 | set dummy cc; ac_word=$2
|
---|
2294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2296 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2297 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2298 | else
|
---|
2299 | if test -n "$CC"; then
|
---|
2300 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2301 | else
|
---|
2302 | ac_prog_rejected=no
|
---|
2303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2304 | for as_dir in $PATH
|
---|
2305 | do
|
---|
2306 | IFS=$as_save_IFS
|
---|
2307 | test -z "$as_dir" && as_dir=.
|
---|
2308 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2310 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2311 | ac_prog_rejected=yes
|
---|
2312 | continue
|
---|
2313 | fi
|
---|
2314 | ac_cv_prog_CC="cc"
|
---|
2315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2316 | break 2
|
---|
2317 | fi
|
---|
2318 | done
|
---|
2319 | done
|
---|
2320 | IFS=$as_save_IFS
|
---|
2321 |
|
---|
2322 | if test $ac_prog_rejected = yes; then
|
---|
2323 | # We found a bogon in the path, so make sure we never use it.
|
---|
2324 | set dummy $ac_cv_prog_CC
|
---|
2325 | shift
|
---|
2326 | if test $# != 0; then
|
---|
2327 | # We chose a different compiler from the bogus one.
|
---|
2328 | # However, it has the same basename, so the bogon will be chosen
|
---|
2329 | # first if we set CC to just the basename; use the full file name.
|
---|
2330 | shift
|
---|
2331 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2332 | fi
|
---|
2333 | fi
|
---|
2334 | fi
|
---|
2335 | fi
|
---|
2336 | CC=$ac_cv_prog_CC
|
---|
2337 | if test -n "$CC"; then
|
---|
2338 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2339 | echo "${ECHO_T}$CC" >&6; }
|
---|
2340 | else
|
---|
2341 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2342 | echo "${ECHO_T}no" >&6; }
|
---|
2343 | fi
|
---|
2344 |
|
---|
2345 |
|
---|
2346 | fi
|
---|
2347 | if test -z "$CC"; then
|
---|
2348 | if test -n "$ac_tool_prefix"; then
|
---|
2349 | for ac_prog in cl.exe
|
---|
2350 | do
|
---|
2351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2353 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2355 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2356 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2357 | else
|
---|
2358 | if test -n "$CC"; then
|
---|
2359 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2360 | else
|
---|
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2362 | for as_dir in $PATH
|
---|
2363 | do
|
---|
2364 | IFS=$as_save_IFS
|
---|
2365 | test -z "$as_dir" && as_dir=.
|
---|
2366 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2368 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2370 | break 2
|
---|
2371 | fi
|
---|
2372 | done
|
---|
2373 | done
|
---|
2374 | IFS=$as_save_IFS
|
---|
2375 |
|
---|
2376 | fi
|
---|
2377 | fi
|
---|
2378 | CC=$ac_cv_prog_CC
|
---|
2379 | if test -n "$CC"; then
|
---|
2380 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2381 | echo "${ECHO_T}$CC" >&6; }
|
---|
2382 | else
|
---|
2383 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2384 | echo "${ECHO_T}no" >&6; }
|
---|
2385 | fi
|
---|
2386 |
|
---|
2387 |
|
---|
2388 | test -n "$CC" && break
|
---|
2389 | done
|
---|
2390 | fi
|
---|
2391 | if test -z "$CC"; then
|
---|
2392 | ac_ct_CC=$CC
|
---|
2393 | for ac_prog in cl.exe
|
---|
2394 | do
|
---|
2395 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2396 | set dummy $ac_prog; ac_word=$2
|
---|
2397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2399 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2401 | else
|
---|
2402 | if test -n "$ac_ct_CC"; then
|
---|
2403 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2404 | else
|
---|
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2406 | for as_dir in $PATH
|
---|
2407 | do
|
---|
2408 | IFS=$as_save_IFS
|
---|
2409 | test -z "$as_dir" && as_dir=.
|
---|
2410 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2412 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2414 | break 2
|
---|
2415 | fi
|
---|
2416 | done
|
---|
2417 | done
|
---|
2418 | IFS=$as_save_IFS
|
---|
2419 |
|
---|
2420 | fi
|
---|
2421 | fi
|
---|
2422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2423 | if test -n "$ac_ct_CC"; then
|
---|
2424 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2425 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
2426 | else
|
---|
2427 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2428 | echo "${ECHO_T}no" >&6; }
|
---|
2429 | fi
|
---|
2430 |
|
---|
2431 |
|
---|
2432 | test -n "$ac_ct_CC" && break
|
---|
2433 | done
|
---|
2434 |
|
---|
2435 | if test "x$ac_ct_CC" = x; then
|
---|
2436 | CC=""
|
---|
2437 | else
|
---|
2438 | case $cross_compiling:$ac_tool_warned in
|
---|
2439 | yes:)
|
---|
2440 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2441 | whose name does not start with the host triplet. If you think this
|
---|
2442 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2443 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2444 | whose name does not start with the host triplet. If you think this
|
---|
2445 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2446 | ac_tool_warned=yes ;;
|
---|
2447 | esac
|
---|
2448 | CC=$ac_ct_CC
|
---|
2449 | fi
|
---|
2450 | fi
|
---|
2451 |
|
---|
2452 | fi
|
---|
2453 |
|
---|
2454 |
|
---|
2455 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2456 | See \`config.log' for more details." >&5
|
---|
2457 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2458 | See \`config.log' for more details." >&2;}
|
---|
2459 | { (exit 1); exit 1; }; }
|
---|
2460 |
|
---|
2461 | # Provide some information about the compiler.
|
---|
2462 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
2463 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2464 | { (ac_try="$ac_compiler --version >&5"
|
---|
2465 | case "(($ac_try" in
|
---|
2466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2467 | *) ac_try_echo=$ac_try;;
|
---|
2468 | esac
|
---|
2469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2470 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
2471 | ac_status=$?
|
---|
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2473 | (exit $ac_status); }
|
---|
2474 | { (ac_try="$ac_compiler -v >&5"
|
---|
2475 | case "(($ac_try" in
|
---|
2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2477 | *) ac_try_echo=$ac_try;;
|
---|
2478 | esac
|
---|
2479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2480 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
2481 | ac_status=$?
|
---|
2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2483 | (exit $ac_status); }
|
---|
2484 | { (ac_try="$ac_compiler -V >&5"
|
---|
2485 | case "(($ac_try" in
|
---|
2486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2487 | *) ac_try_echo=$ac_try;;
|
---|
2488 | esac
|
---|
2489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2490 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
2491 | ac_status=$?
|
---|
2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2493 | (exit $ac_status); }
|
---|
2494 |
|
---|
2495 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2496 | /* confdefs.h. */
|
---|
2497 | _ACEOF
|
---|
2498 | cat confdefs.h >>conftest.$ac_ext
|
---|
2499 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2500 | /* end confdefs.h. */
|
---|
2501 |
|
---|
2502 | int
|
---|
2503 | main ()
|
---|
2504 | {
|
---|
2505 |
|
---|
2506 | ;
|
---|
2507 | return 0;
|
---|
2508 | }
|
---|
2509 | _ACEOF
|
---|
2510 | ac_clean_files_save=$ac_clean_files
|
---|
2511 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2512 | # Try to create an executable without -o first, disregard a.out.
|
---|
2513 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2514 | # of exeext.
|
---|
2515 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
2516 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
2517 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2518 | #
|
---|
2519 | # List of possible output files, starting from the most likely.
|
---|
2520 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
2521 | # only as a last resort. b.out is created by i960 compilers.
|
---|
2522 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
2523 | #
|
---|
2524 | # The IRIX 6 linker writes into existing files which may not be
|
---|
2525 | # executable, retaining their permissions. Remove them first so a
|
---|
2526 | # subsequent execution test works.
|
---|
2527 | ac_rmfiles=
|
---|
2528 | for ac_file in $ac_files
|
---|
2529 | do
|
---|
2530 | case $ac_file in
|
---|
2531 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2532 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2533 | esac
|
---|
2534 | done
|
---|
2535 | rm -f $ac_rmfiles
|
---|
2536 |
|
---|
2537 | if { (ac_try="$ac_link_default"
|
---|
2538 | case "(($ac_try" in
|
---|
2539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2540 | *) ac_try_echo=$ac_try;;
|
---|
2541 | esac
|
---|
2542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2543 | (eval "$ac_link_default") 2>&5
|
---|
2544 | ac_status=$?
|
---|
2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2546 | (exit $ac_status); }; then
|
---|
2547 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2548 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2549 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2550 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2551 | # Autoconf.
|
---|
2552 | for ac_file in $ac_files ''
|
---|
2553 | do
|
---|
2554 | test -f "$ac_file" || continue
|
---|
2555 | case $ac_file in
|
---|
2556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
2557 | ;;
|
---|
2558 | [ab].out )
|
---|
2559 | # We found the default executable, but exeext='' is most
|
---|
2560 | # certainly right.
|
---|
2561 | break;;
|
---|
2562 | *.* )
|
---|
2563 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2564 | then :; else
|
---|
2565 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2566 | fi
|
---|
2567 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2568 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2569 | # argument, so we may need to know it at that point already.
|
---|
2570 | # Even if this section looks crufty: it has the advantage of
|
---|
2571 | # actually working.
|
---|
2572 | break;;
|
---|
2573 | * )
|
---|
2574 | break;;
|
---|
2575 | esac
|
---|
2576 | done
|
---|
2577 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2578 |
|
---|
2579 | else
|
---|
2580 | ac_file=''
|
---|
2581 | fi
|
---|
2582 |
|
---|
2583 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2584 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
2585 | if test -z "$ac_file"; then
|
---|
2586 | echo "$as_me: failed program was:" >&5
|
---|
2587 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2588 |
|
---|
2589 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2590 | See \`config.log' for more details." >&5
|
---|
2591 | echo "$as_me: error: C compiler cannot create executables
|
---|
2592 | See \`config.log' for more details." >&2;}
|
---|
2593 | { (exit 77); exit 77; }; }
|
---|
2594 | fi
|
---|
2595 |
|
---|
2596 | ac_exeext=$ac_cv_exeext
|
---|
2597 |
|
---|
2598 | # Check that the compiler produces executables we can run. If not, either
|
---|
2599 | # the compiler is broken, or we cross compile.
|
---|
2600 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2601 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
2602 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2603 | # If not cross compiling, check that we can run a simple program.
|
---|
2604 | if test "$cross_compiling" != yes; then
|
---|
2605 | if { ac_try='./$ac_file'
|
---|
2606 | { (case "(($ac_try" in
|
---|
2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2608 | *) ac_try_echo=$ac_try;;
|
---|
2609 | esac
|
---|
2610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2611 | (eval "$ac_try") 2>&5
|
---|
2612 | ac_status=$?
|
---|
2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2614 | (exit $ac_status); }; }; then
|
---|
2615 | cross_compiling=no
|
---|
2616 | else
|
---|
2617 | if test "$cross_compiling" = maybe; then
|
---|
2618 | cross_compiling=yes
|
---|
2619 | else
|
---|
2620 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2621 | If you meant to cross compile, use \`--host'.
|
---|
2622 | See \`config.log' for more details." >&5
|
---|
2623 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2624 | If you meant to cross compile, use \`--host'.
|
---|
2625 | See \`config.log' for more details." >&2;}
|
---|
2626 | { (exit 1); exit 1; }; }
|
---|
2627 | fi
|
---|
2628 | fi
|
---|
2629 | fi
|
---|
2630 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
2631 | echo "${ECHO_T}yes" >&6; }
|
---|
2632 |
|
---|
2633 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2634 | ac_clean_files=$ac_clean_files_save
|
---|
2635 | # Check that the compiler produces executables we can run. If not, either
|
---|
2636 | # the compiler is broken, or we cross compile.
|
---|
2637 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2638 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
2639 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2640 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
2641 |
|
---|
2642 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2643 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
2644 | if { (ac_try="$ac_link"
|
---|
2645 | case "(($ac_try" in
|
---|
2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2647 | *) ac_try_echo=$ac_try;;
|
---|
2648 | esac
|
---|
2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2650 | (eval "$ac_link") 2>&5
|
---|
2651 | ac_status=$?
|
---|
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2653 | (exit $ac_status); }; then
|
---|
2654 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2655 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2656 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2657 | # `rm'.
|
---|
2658 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2659 | test -f "$ac_file" || continue
|
---|
2660 | case $ac_file in
|
---|
2661 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2662 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2663 | break;;
|
---|
2664 | * ) break;;
|
---|
2665 | esac
|
---|
2666 | done
|
---|
2667 | else
|
---|
2668 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2669 | See \`config.log' for more details." >&5
|
---|
2670 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2671 | See \`config.log' for more details." >&2;}
|
---|
2672 | { (exit 1); exit 1; }; }
|
---|
2673 | fi
|
---|
2674 |
|
---|
2675 | rm -f conftest$ac_cv_exeext
|
---|
2676 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2677 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
2678 |
|
---|
2679 | rm -f conftest.$ac_ext
|
---|
2680 | EXEEXT=$ac_cv_exeext
|
---|
2681 | ac_exeext=$EXEEXT
|
---|
2682 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2683 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
2684 | if test "${ac_cv_objext+set}" = set; then
|
---|
2685 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2686 | else
|
---|
2687 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2688 | /* confdefs.h. */
|
---|
2689 | _ACEOF
|
---|
2690 | cat confdefs.h >>conftest.$ac_ext
|
---|
2691 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2692 | /* end confdefs.h. */
|
---|
2693 |
|
---|
2694 | int
|
---|
2695 | main ()
|
---|
2696 | {
|
---|
2697 |
|
---|
2698 | ;
|
---|
2699 | return 0;
|
---|
2700 | }
|
---|
2701 | _ACEOF
|
---|
2702 | rm -f conftest.o conftest.obj
|
---|
2703 | if { (ac_try="$ac_compile"
|
---|
2704 | case "(($ac_try" in
|
---|
2705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2706 | *) ac_try_echo=$ac_try;;
|
---|
2707 | esac
|
---|
2708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2709 | (eval "$ac_compile") 2>&5
|
---|
2710 | ac_status=$?
|
---|
2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2712 | (exit $ac_status); }; then
|
---|
2713 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2714 | test -f "$ac_file" || continue;
|
---|
2715 | case $ac_file in
|
---|
2716 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
2717 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2718 | break;;
|
---|
2719 | esac
|
---|
2720 | done
|
---|
2721 | else
|
---|
2722 | echo "$as_me: failed program was:" >&5
|
---|
2723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2724 |
|
---|
2725 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2726 | See \`config.log' for more details." >&5
|
---|
2727 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2728 | See \`config.log' for more details." >&2;}
|
---|
2729 | { (exit 1); exit 1; }; }
|
---|
2730 | fi
|
---|
2731 |
|
---|
2732 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2733 | fi
|
---|
2734 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2735 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
2736 | OBJEXT=$ac_cv_objext
|
---|
2737 | ac_objext=$OBJEXT
|
---|
2738 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2739 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
2740 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2741 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2742 | else
|
---|
2743 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2744 | /* confdefs.h. */
|
---|
2745 | _ACEOF
|
---|
2746 | cat confdefs.h >>conftest.$ac_ext
|
---|
2747 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2748 | /* end confdefs.h. */
|
---|
2749 |
|
---|
2750 | int
|
---|
2751 | main ()
|
---|
2752 | {
|
---|
2753 | #ifndef __GNUC__
|
---|
2754 | choke me
|
---|
2755 | #endif
|
---|
2756 |
|
---|
2757 | ;
|
---|
2758 | return 0;
|
---|
2759 | }
|
---|
2760 | _ACEOF
|
---|
2761 | rm -f conftest.$ac_objext
|
---|
2762 | if { (ac_try="$ac_compile"
|
---|
2763 | case "(($ac_try" in
|
---|
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2765 | *) ac_try_echo=$ac_try;;
|
---|
2766 | esac
|
---|
2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2768 | (eval "$ac_compile") 2>conftest.er1
|
---|
2769 | ac_status=$?
|
---|
2770 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2771 | rm -f conftest.er1
|
---|
2772 | cat conftest.err >&5
|
---|
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2774 | (exit $ac_status); } && {
|
---|
2775 | test -z "$ac_c_werror_flag" ||
|
---|
2776 | test ! -s conftest.err
|
---|
2777 | } && test -s conftest.$ac_objext; then
|
---|
2778 | ac_compiler_gnu=yes
|
---|
2779 | else
|
---|
2780 | echo "$as_me: failed program was:" >&5
|
---|
2781 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2782 |
|
---|
2783 | ac_compiler_gnu=no
|
---|
2784 | fi
|
---|
2785 |
|
---|
2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2787 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2788 |
|
---|
2789 | fi
|
---|
2790 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2791 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
2792 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2793 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2794 | ac_save_CFLAGS=$CFLAGS
|
---|
2795 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2796 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
2797 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2799 | else
|
---|
2800 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2801 | ac_c_werror_flag=yes
|
---|
2802 | ac_cv_prog_cc_g=no
|
---|
2803 | CFLAGS="-g"
|
---|
2804 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2805 | /* confdefs.h. */
|
---|
2806 | _ACEOF
|
---|
2807 | cat confdefs.h >>conftest.$ac_ext
|
---|
2808 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2809 | /* end confdefs.h. */
|
---|
2810 |
|
---|
2811 | int
|
---|
2812 | main ()
|
---|
2813 | {
|
---|
2814 |
|
---|
2815 | ;
|
---|
2816 | return 0;
|
---|
2817 | }
|
---|
2818 | _ACEOF
|
---|
2819 | rm -f conftest.$ac_objext
|
---|
2820 | if { (ac_try="$ac_compile"
|
---|
2821 | case "(($ac_try" in
|
---|
2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2823 | *) ac_try_echo=$ac_try;;
|
---|
2824 | esac
|
---|
2825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2826 | (eval "$ac_compile") 2>conftest.er1
|
---|
2827 | ac_status=$?
|
---|
2828 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2829 | rm -f conftest.er1
|
---|
2830 | cat conftest.err >&5
|
---|
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2832 | (exit $ac_status); } && {
|
---|
2833 | test -z "$ac_c_werror_flag" ||
|
---|
2834 | test ! -s conftest.err
|
---|
2835 | } && test -s conftest.$ac_objext; then
|
---|
2836 | ac_cv_prog_cc_g=yes
|
---|
2837 | else
|
---|
2838 | echo "$as_me: failed program was:" >&5
|
---|
2839 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2840 |
|
---|
2841 | CFLAGS=""
|
---|
2842 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2843 | /* confdefs.h. */
|
---|
2844 | _ACEOF
|
---|
2845 | cat confdefs.h >>conftest.$ac_ext
|
---|
2846 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2847 | /* end confdefs.h. */
|
---|
2848 |
|
---|
2849 | int
|
---|
2850 | main ()
|
---|
2851 | {
|
---|
2852 |
|
---|
2853 | ;
|
---|
2854 | return 0;
|
---|
2855 | }
|
---|
2856 | _ACEOF
|
---|
2857 | rm -f conftest.$ac_objext
|
---|
2858 | if { (ac_try="$ac_compile"
|
---|
2859 | case "(($ac_try" in
|
---|
2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2861 | *) ac_try_echo=$ac_try;;
|
---|
2862 | esac
|
---|
2863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2864 | (eval "$ac_compile") 2>conftest.er1
|
---|
2865 | ac_status=$?
|
---|
2866 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2867 | rm -f conftest.er1
|
---|
2868 | cat conftest.err >&5
|
---|
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2870 | (exit $ac_status); } && {
|
---|
2871 | test -z "$ac_c_werror_flag" ||
|
---|
2872 | test ! -s conftest.err
|
---|
2873 | } && test -s conftest.$ac_objext; then
|
---|
2874 | :
|
---|
2875 | else
|
---|
2876 | echo "$as_me: failed program was:" >&5
|
---|
2877 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2878 |
|
---|
2879 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2880 | CFLAGS="-g"
|
---|
2881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2882 | /* confdefs.h. */
|
---|
2883 | _ACEOF
|
---|
2884 | cat confdefs.h >>conftest.$ac_ext
|
---|
2885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2886 | /* end confdefs.h. */
|
---|
2887 |
|
---|
2888 | int
|
---|
2889 | main ()
|
---|
2890 | {
|
---|
2891 |
|
---|
2892 | ;
|
---|
2893 | return 0;
|
---|
2894 | }
|
---|
2895 | _ACEOF
|
---|
2896 | rm -f conftest.$ac_objext
|
---|
2897 | if { (ac_try="$ac_compile"
|
---|
2898 | case "(($ac_try" in
|
---|
2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2900 | *) ac_try_echo=$ac_try;;
|
---|
2901 | esac
|
---|
2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2903 | (eval "$ac_compile") 2>conftest.er1
|
---|
2904 | ac_status=$?
|
---|
2905 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2906 | rm -f conftest.er1
|
---|
2907 | cat conftest.err >&5
|
---|
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2909 | (exit $ac_status); } && {
|
---|
2910 | test -z "$ac_c_werror_flag" ||
|
---|
2911 | test ! -s conftest.err
|
---|
2912 | } && test -s conftest.$ac_objext; then
|
---|
2913 | ac_cv_prog_cc_g=yes
|
---|
2914 | else
|
---|
2915 | echo "$as_me: failed program was:" >&5
|
---|
2916 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2917 |
|
---|
2918 |
|
---|
2919 | fi
|
---|
2920 |
|
---|
2921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2922 | fi
|
---|
2923 |
|
---|
2924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2925 | fi
|
---|
2926 |
|
---|
2927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2928 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2929 | fi
|
---|
2930 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2931 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
2932 | if test "$ac_test_CFLAGS" = set; then
|
---|
2933 | CFLAGS=$ac_save_CFLAGS
|
---|
2934 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2935 | if test "$GCC" = yes; then
|
---|
2936 | CFLAGS="-g -O2"
|
---|
2937 | else
|
---|
2938 | CFLAGS="-g"
|
---|
2939 | fi
|
---|
2940 | else
|
---|
2941 | if test "$GCC" = yes; then
|
---|
2942 | CFLAGS="-O2"
|
---|
2943 | else
|
---|
2944 | CFLAGS=
|
---|
2945 | fi
|
---|
2946 | fi
|
---|
2947 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
2948 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
2949 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
2950 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2951 | else
|
---|
2952 | ac_cv_prog_cc_c89=no
|
---|
2953 | ac_save_CC=$CC
|
---|
2954 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2955 | /* confdefs.h. */
|
---|
2956 | _ACEOF
|
---|
2957 | cat confdefs.h >>conftest.$ac_ext
|
---|
2958 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2959 | /* end confdefs.h. */
|
---|
2960 | #include <stdarg.h>
|
---|
2961 | #include <stdio.h>
|
---|
2962 | #include <sys/types.h>
|
---|
2963 | #include <sys/stat.h>
|
---|
2964 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2965 | struct buf { int x; };
|
---|
2966 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2967 | static char *e (p, i)
|
---|
2968 | char **p;
|
---|
2969 | int i;
|
---|
2970 | {
|
---|
2971 | return p[i];
|
---|
2972 | }
|
---|
2973 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2974 | {
|
---|
2975 | char *s;
|
---|
2976 | va_list v;
|
---|
2977 | va_start (v,p);
|
---|
2978 | s = g (p, va_arg (v,int));
|
---|
2979 | va_end (v);
|
---|
2980 | return s;
|
---|
2981 | }
|
---|
2982 |
|
---|
2983 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2984 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2985 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2986 | as 'x'. The following induces an error, until -std is added to get
|
---|
2987 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2988 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2989 | that's true only with -std. */
|
---|
2990 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2991 |
|
---|
2992 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
2993 | inside strings and character constants. */
|
---|
2994 | #define FOO(x) 'x'
|
---|
2995 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
2996 |
|
---|
2997 | int test (int i, double x);
|
---|
2998 | struct s1 {int (*f) (int a);};
|
---|
2999 | struct s2 {int (*f) (double a);};
|
---|
3000 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3001 | int argc;
|
---|
3002 | char **argv;
|
---|
3003 | int
|
---|
3004 | main ()
|
---|
3005 | {
|
---|
3006 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3007 | ;
|
---|
3008 | return 0;
|
---|
3009 | }
|
---|
3010 | _ACEOF
|
---|
3011 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3012 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3013 | do
|
---|
3014 | CC="$ac_save_CC $ac_arg"
|
---|
3015 | rm -f conftest.$ac_objext
|
---|
3016 | if { (ac_try="$ac_compile"
|
---|
3017 | case "(($ac_try" in
|
---|
3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3019 | *) ac_try_echo=$ac_try;;
|
---|
3020 | esac
|
---|
3021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3022 | (eval "$ac_compile") 2>conftest.er1
|
---|
3023 | ac_status=$?
|
---|
3024 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3025 | rm -f conftest.er1
|
---|
3026 | cat conftest.err >&5
|
---|
3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3028 | (exit $ac_status); } && {
|
---|
3029 | test -z "$ac_c_werror_flag" ||
|
---|
3030 | test ! -s conftest.err
|
---|
3031 | } && test -s conftest.$ac_objext; then
|
---|
3032 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3033 | else
|
---|
3034 | echo "$as_me: failed program was:" >&5
|
---|
3035 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3036 |
|
---|
3037 |
|
---|
3038 | fi
|
---|
3039 |
|
---|
3040 | rm -f core conftest.err conftest.$ac_objext
|
---|
3041 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3042 | done
|
---|
3043 | rm -f conftest.$ac_ext
|
---|
3044 | CC=$ac_save_CC
|
---|
3045 |
|
---|
3046 | fi
|
---|
3047 | # AC_CACHE_VAL
|
---|
3048 | case "x$ac_cv_prog_cc_c89" in
|
---|
3049 | x)
|
---|
3050 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
3051 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
3052 | xno)
|
---|
3053 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
3054 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
3055 | *)
|
---|
3056 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3057 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
3058 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3059 | esac
|
---|
3060 |
|
---|
3061 |
|
---|
3062 | ac_ext=c
|
---|
3063 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3067 |
|
---|
3068 | ac_ext=cpp
|
---|
3069 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3073 | if test -z "$CXX"; then
|
---|
3074 | if test -n "$CCC"; then
|
---|
3075 | CXX=$CCC
|
---|
3076 | else
|
---|
3077 | if test -n "$ac_tool_prefix"; then
|
---|
3078 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3079 | do
|
---|
3080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3084 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
3085 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3086 | else
|
---|
3087 | if test -n "$CXX"; then
|
---|
3088 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3089 | else
|
---|
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3091 | for as_dir in $PATH
|
---|
3092 | do
|
---|
3093 | IFS=$as_save_IFS
|
---|
3094 | test -z "$as_dir" && as_dir=.
|
---|
3095 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3097 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3099 | break 2
|
---|
3100 | fi
|
---|
3101 | done
|
---|
3102 | done
|
---|
3103 | IFS=$as_save_IFS
|
---|
3104 |
|
---|
3105 | fi
|
---|
3106 | fi
|
---|
3107 | CXX=$ac_cv_prog_CXX
|
---|
3108 | if test -n "$CXX"; then
|
---|
3109 | { echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
3110 | echo "${ECHO_T}$CXX" >&6; }
|
---|
3111 | else
|
---|
3112 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3113 | echo "${ECHO_T}no" >&6; }
|
---|
3114 | fi
|
---|
3115 |
|
---|
3116 |
|
---|
3117 | test -n "$CXX" && break
|
---|
3118 | done
|
---|
3119 | fi
|
---|
3120 | if test -z "$CXX"; then
|
---|
3121 | ac_ct_CXX=$CXX
|
---|
3122 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3123 | do
|
---|
3124 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3125 | set dummy $ac_prog; ac_word=$2
|
---|
3126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3128 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
3129 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3130 | else
|
---|
3131 | if test -n "$ac_ct_CXX"; then
|
---|
3132 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3133 | else
|
---|
3134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3135 | for as_dir in $PATH
|
---|
3136 | do
|
---|
3137 | IFS=$as_save_IFS
|
---|
3138 | test -z "$as_dir" && as_dir=.
|
---|
3139 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3141 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3143 | break 2
|
---|
3144 | fi
|
---|
3145 | done
|
---|
3146 | done
|
---|
3147 | IFS=$as_save_IFS
|
---|
3148 |
|
---|
3149 | fi
|
---|
3150 | fi
|
---|
3151 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3152 | if test -n "$ac_ct_CXX"; then
|
---|
3153 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
3154 | echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
---|
3155 | else
|
---|
3156 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3157 | echo "${ECHO_T}no" >&6; }
|
---|
3158 | fi
|
---|
3159 |
|
---|
3160 |
|
---|
3161 | test -n "$ac_ct_CXX" && break
|
---|
3162 | done
|
---|
3163 |
|
---|
3164 | if test "x$ac_ct_CXX" = x; then
|
---|
3165 | CXX="g++"
|
---|
3166 | else
|
---|
3167 | case $cross_compiling:$ac_tool_warned in
|
---|
3168 | yes:)
|
---|
3169 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3170 | whose name does not start with the host triplet. If you think this
|
---|
3171 | configuration is useful to you, please write to [email protected]." >&5
|
---|
3172 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3173 | whose name does not start with the host triplet. If you think this
|
---|
3174 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
3175 | ac_tool_warned=yes ;;
|
---|
3176 | esac
|
---|
3177 | CXX=$ac_ct_CXX
|
---|
3178 | fi
|
---|
3179 | fi
|
---|
3180 |
|
---|
3181 | fi
|
---|
3182 | fi
|
---|
3183 | # Provide some information about the compiler.
|
---|
3184 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
---|
3185 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
3186 | { (ac_try="$ac_compiler --version >&5"
|
---|
3187 | case "(($ac_try" in
|
---|
3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3189 | *) ac_try_echo=$ac_try;;
|
---|
3190 | esac
|
---|
3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3192 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
3193 | ac_status=$?
|
---|
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3195 | (exit $ac_status); }
|
---|
3196 | { (ac_try="$ac_compiler -v >&5"
|
---|
3197 | case "(($ac_try" in
|
---|
3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3199 | *) ac_try_echo=$ac_try;;
|
---|
3200 | esac
|
---|
3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3202 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
3203 | ac_status=$?
|
---|
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3205 | (exit $ac_status); }
|
---|
3206 | { (ac_try="$ac_compiler -V >&5"
|
---|
3207 | case "(($ac_try" in
|
---|
3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3209 | *) ac_try_echo=$ac_try;;
|
---|
3210 | esac
|
---|
3211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3212 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
3213 | ac_status=$?
|
---|
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3215 | (exit $ac_status); }
|
---|
3216 |
|
---|
3217 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
3218 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
---|
3219 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
3220 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3221 | else
|
---|
3222 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3223 | /* confdefs.h. */
|
---|
3224 | _ACEOF
|
---|
3225 | cat confdefs.h >>conftest.$ac_ext
|
---|
3226 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3227 | /* end confdefs.h. */
|
---|
3228 |
|
---|
3229 | int
|
---|
3230 | main ()
|
---|
3231 | {
|
---|
3232 | #ifndef __GNUC__
|
---|
3233 | choke me
|
---|
3234 | #endif
|
---|
3235 |
|
---|
3236 | ;
|
---|
3237 | return 0;
|
---|
3238 | }
|
---|
3239 | _ACEOF
|
---|
3240 | rm -f conftest.$ac_objext
|
---|
3241 | if { (ac_try="$ac_compile"
|
---|
3242 | case "(($ac_try" in
|
---|
3243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3244 | *) ac_try_echo=$ac_try;;
|
---|
3245 | esac
|
---|
3246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3247 | (eval "$ac_compile") 2>conftest.er1
|
---|
3248 | ac_status=$?
|
---|
3249 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3250 | rm -f conftest.er1
|
---|
3251 | cat conftest.err >&5
|
---|
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3253 | (exit $ac_status); } && {
|
---|
3254 | test -z "$ac_cxx_werror_flag" ||
|
---|
3255 | test ! -s conftest.err
|
---|
3256 | } && test -s conftest.$ac_objext; then
|
---|
3257 | ac_compiler_gnu=yes
|
---|
3258 | else
|
---|
3259 | echo "$as_me: failed program was:" >&5
|
---|
3260 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3261 |
|
---|
3262 | ac_compiler_gnu=no
|
---|
3263 | fi
|
---|
3264 |
|
---|
3265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3266 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3267 |
|
---|
3268 | fi
|
---|
3269 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3270 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3271 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
3272 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3273 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3274 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
3275 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
---|
3276 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
3277 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3278 | else
|
---|
3279 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3280 | ac_cxx_werror_flag=yes
|
---|
3281 | ac_cv_prog_cxx_g=no
|
---|
3282 | CXXFLAGS="-g"
|
---|
3283 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3284 | /* confdefs.h. */
|
---|
3285 | _ACEOF
|
---|
3286 | cat confdefs.h >>conftest.$ac_ext
|
---|
3287 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3288 | /* end confdefs.h. */
|
---|
3289 |
|
---|
3290 | int
|
---|
3291 | main ()
|
---|
3292 | {
|
---|
3293 |
|
---|
3294 | ;
|
---|
3295 | return 0;
|
---|
3296 | }
|
---|
3297 | _ACEOF
|
---|
3298 | rm -f conftest.$ac_objext
|
---|
3299 | if { (ac_try="$ac_compile"
|
---|
3300 | case "(($ac_try" in
|
---|
3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3302 | *) ac_try_echo=$ac_try;;
|
---|
3303 | esac
|
---|
3304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3305 | (eval "$ac_compile") 2>conftest.er1
|
---|
3306 | ac_status=$?
|
---|
3307 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3308 | rm -f conftest.er1
|
---|
3309 | cat conftest.err >&5
|
---|
3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3311 | (exit $ac_status); } && {
|
---|
3312 | test -z "$ac_cxx_werror_flag" ||
|
---|
3313 | test ! -s conftest.err
|
---|
3314 | } && test -s conftest.$ac_objext; then
|
---|
3315 | ac_cv_prog_cxx_g=yes
|
---|
3316 | else
|
---|
3317 | echo "$as_me: failed program was:" >&5
|
---|
3318 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3319 |
|
---|
3320 | CXXFLAGS=""
|
---|
3321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3322 | /* confdefs.h. */
|
---|
3323 | _ACEOF
|
---|
3324 | cat confdefs.h >>conftest.$ac_ext
|
---|
3325 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3326 | /* end confdefs.h. */
|
---|
3327 |
|
---|
3328 | int
|
---|
3329 | main ()
|
---|
3330 | {
|
---|
3331 |
|
---|
3332 | ;
|
---|
3333 | return 0;
|
---|
3334 | }
|
---|
3335 | _ACEOF
|
---|
3336 | rm -f conftest.$ac_objext
|
---|
3337 | if { (ac_try="$ac_compile"
|
---|
3338 | case "(($ac_try" in
|
---|
3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3340 | *) ac_try_echo=$ac_try;;
|
---|
3341 | esac
|
---|
3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3343 | (eval "$ac_compile") 2>conftest.er1
|
---|
3344 | ac_status=$?
|
---|
3345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3346 | rm -f conftest.er1
|
---|
3347 | cat conftest.err >&5
|
---|
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3349 | (exit $ac_status); } && {
|
---|
3350 | test -z "$ac_cxx_werror_flag" ||
|
---|
3351 | test ! -s conftest.err
|
---|
3352 | } && test -s conftest.$ac_objext; then
|
---|
3353 | :
|
---|
3354 | else
|
---|
3355 | echo "$as_me: failed program was:" >&5
|
---|
3356 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3357 |
|
---|
3358 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3359 | CXXFLAGS="-g"
|
---|
3360 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3361 | /* confdefs.h. */
|
---|
3362 | _ACEOF
|
---|
3363 | cat confdefs.h >>conftest.$ac_ext
|
---|
3364 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3365 | /* end confdefs.h. */
|
---|
3366 |
|
---|
3367 | int
|
---|
3368 | main ()
|
---|
3369 | {
|
---|
3370 |
|
---|
3371 | ;
|
---|
3372 | return 0;
|
---|
3373 | }
|
---|
3374 | _ACEOF
|
---|
3375 | rm -f conftest.$ac_objext
|
---|
3376 | if { (ac_try="$ac_compile"
|
---|
3377 | case "(($ac_try" in
|
---|
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3379 | *) ac_try_echo=$ac_try;;
|
---|
3380 | esac
|
---|
3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3382 | (eval "$ac_compile") 2>conftest.er1
|
---|
3383 | ac_status=$?
|
---|
3384 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3385 | rm -f conftest.er1
|
---|
3386 | cat conftest.err >&5
|
---|
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3388 | (exit $ac_status); } && {
|
---|
3389 | test -z "$ac_cxx_werror_flag" ||
|
---|
3390 | test ! -s conftest.err
|
---|
3391 | } && test -s conftest.$ac_objext; then
|
---|
3392 | ac_cv_prog_cxx_g=yes
|
---|
3393 | else
|
---|
3394 | echo "$as_me: failed program was:" >&5
|
---|
3395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3396 |
|
---|
3397 |
|
---|
3398 | fi
|
---|
3399 |
|
---|
3400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3401 | fi
|
---|
3402 |
|
---|
3403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3404 | fi
|
---|
3405 |
|
---|
3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3407 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3408 | fi
|
---|
3409 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
3410 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
---|
3411 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3412 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3413 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3414 | if test "$GXX" = yes; then
|
---|
3415 | CXXFLAGS="-g -O2"
|
---|
3416 | else
|
---|
3417 | CXXFLAGS="-g"
|
---|
3418 | fi
|
---|
3419 | else
|
---|
3420 | if test "$GXX" = yes; then
|
---|
3421 | CXXFLAGS="-O2"
|
---|
3422 | else
|
---|
3423 | CXXFLAGS=
|
---|
3424 | fi
|
---|
3425 | fi
|
---|
3426 | ac_ext=c
|
---|
3427 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3431 |
|
---|
3432 | for ac_prog in gawk mawk nawk awk
|
---|
3433 | do
|
---|
3434 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3435 | set dummy $ac_prog; ac_word=$2
|
---|
3436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3438 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
3439 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3440 | else
|
---|
3441 | if test -n "$AWK"; then
|
---|
3442 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3443 | else
|
---|
3444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3445 | for as_dir in $PATH
|
---|
3446 | do
|
---|
3447 | IFS=$as_save_IFS
|
---|
3448 | test -z "$as_dir" && as_dir=.
|
---|
3449 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3451 | ac_cv_prog_AWK="$ac_prog"
|
---|
3452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3453 | break 2
|
---|
3454 | fi
|
---|
3455 | done
|
---|
3456 | done
|
---|
3457 | IFS=$as_save_IFS
|
---|
3458 |
|
---|
3459 | fi
|
---|
3460 | fi
|
---|
3461 | AWK=$ac_cv_prog_AWK
|
---|
3462 | if test -n "$AWK"; then
|
---|
3463 | { echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
3464 | echo "${ECHO_T}$AWK" >&6; }
|
---|
3465 | else
|
---|
3466 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3467 | echo "${ECHO_T}no" >&6; }
|
---|
3468 | fi
|
---|
3469 |
|
---|
3470 |
|
---|
3471 | test -n "$AWK" && break
|
---|
3472 | done
|
---|
3473 |
|
---|
3474 | for ac_prog in 'bison -y' byacc
|
---|
3475 | do
|
---|
3476 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3477 | set dummy $ac_prog; ac_word=$2
|
---|
3478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3480 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
3481 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3482 | else
|
---|
3483 | if test -n "$YACC"; then
|
---|
3484 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3485 | else
|
---|
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3487 | for as_dir in $PATH
|
---|
3488 | do
|
---|
3489 | IFS=$as_save_IFS
|
---|
3490 | test -z "$as_dir" && as_dir=.
|
---|
3491 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3493 | ac_cv_prog_YACC="$ac_prog"
|
---|
3494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3495 | break 2
|
---|
3496 | fi
|
---|
3497 | done
|
---|
3498 | done
|
---|
3499 | IFS=$as_save_IFS
|
---|
3500 |
|
---|
3501 | fi
|
---|
3502 | fi
|
---|
3503 | YACC=$ac_cv_prog_YACC
|
---|
3504 | if test -n "$YACC"; then
|
---|
3505 | { echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
3506 | echo "${ECHO_T}$YACC" >&6; }
|
---|
3507 | else
|
---|
3508 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3509 | echo "${ECHO_T}no" >&6; }
|
---|
3510 | fi
|
---|
3511 |
|
---|
3512 |
|
---|
3513 | test -n "$YACC" && break
|
---|
3514 | done
|
---|
3515 | test -n "$YACC" || YACC="yacc"
|
---|
3516 |
|
---|
3517 | ac_aux_dir=
|
---|
3518 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
3519 | if test -f "$ac_dir/install-sh"; then
|
---|
3520 | ac_aux_dir=$ac_dir
|
---|
3521 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
3522 | break
|
---|
3523 | elif test -f "$ac_dir/install.sh"; then
|
---|
3524 | ac_aux_dir=$ac_dir
|
---|
3525 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
3526 | break
|
---|
3527 | elif test -f "$ac_dir/shtool"; then
|
---|
3528 | ac_aux_dir=$ac_dir
|
---|
3529 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
3530 | break
|
---|
3531 | fi
|
---|
3532 | done
|
---|
3533 | if test -z "$ac_aux_dir"; then
|
---|
3534 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
3535 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
3536 | { (exit 1); exit 1; }; }
|
---|
3537 | fi
|
---|
3538 |
|
---|
3539 | # These three variables are undocumented and unsupported,
|
---|
3540 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
3541 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
3542 | # whose full name contains unusual characters.
|
---|
3543 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
3544 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
3545 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
3546 |
|
---|
3547 |
|
---|
3548 | # Make sure we can run config.sub.
|
---|
3549 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
3550 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
3551 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
3552 | { (exit 1); exit 1; }; }
|
---|
3553 |
|
---|
3554 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
3555 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
3556 | if test "${ac_cv_build+set}" = set; then
|
---|
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3558 | else
|
---|
3559 | ac_build_alias=$build_alias
|
---|
3560 | test "x$ac_build_alias" = x &&
|
---|
3561 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
3562 | test "x$ac_build_alias" = x &&
|
---|
3563 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
3564 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
3565 | { (exit 1); exit 1; }; }
|
---|
3566 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
3567 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
3568 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
3569 | { (exit 1); exit 1; }; }
|
---|
3570 |
|
---|
3571 | fi
|
---|
3572 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
3573 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
3574 | case $ac_cv_build in
|
---|
3575 | *-*-*) ;;
|
---|
3576 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
3577 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
3578 | { (exit 1); exit 1; }; };;
|
---|
3579 | esac
|
---|
3580 | build=$ac_cv_build
|
---|
3581 | ac_save_IFS=$IFS; IFS='-'
|
---|
3582 | set x $ac_cv_build
|
---|
3583 | shift
|
---|
3584 | build_cpu=$1
|
---|
3585 | build_vendor=$2
|
---|
3586 | shift; shift
|
---|
3587 | # Remember, the first character of IFS is used to create $*,
|
---|
3588 | # except with old shells:
|
---|
3589 | build_os=$*
|
---|
3590 | IFS=$ac_save_IFS
|
---|
3591 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
3592 |
|
---|
3593 |
|
---|
3594 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
3595 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
3596 | if test "${ac_cv_host+set}" = set; then
|
---|
3597 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3598 | else
|
---|
3599 | if test "x$host_alias" = x; then
|
---|
3600 | ac_cv_host=$ac_cv_build
|
---|
3601 | else
|
---|
3602 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
3603 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
3604 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
3605 | { (exit 1); exit 1; }; }
|
---|
3606 | fi
|
---|
3607 |
|
---|
3608 | fi
|
---|
3609 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
3610 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
3611 | case $ac_cv_host in
|
---|
3612 | *-*-*) ;;
|
---|
3613 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
3614 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
3615 | { (exit 1); exit 1; }; };;
|
---|
3616 | esac
|
---|
3617 | host=$ac_cv_host
|
---|
3618 | ac_save_IFS=$IFS; IFS='-'
|
---|
3619 | set x $ac_cv_host
|
---|
3620 | shift
|
---|
3621 | host_cpu=$1
|
---|
3622 | host_vendor=$2
|
---|
3623 | shift; shift
|
---|
3624 | # Remember, the first character of IFS is used to create $*,
|
---|
3625 | # except with old shells:
|
---|
3626 | host_os=$*
|
---|
3627 | IFS=$ac_save_IFS
|
---|
3628 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
3629 |
|
---|
3630 |
|
---|
3631 | { echo "$as_me:$LINENO: checking target system type" >&5
|
---|
3632 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
---|
3633 | if test "${ac_cv_target+set}" = set; then
|
---|
3634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3635 | else
|
---|
3636 | if test "x$target_alias" = x; then
|
---|
3637 | ac_cv_target=$ac_cv_host
|
---|
3638 | else
|
---|
3639 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
3640 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
---|
3641 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
---|
3642 | { (exit 1); exit 1; }; }
|
---|
3643 | fi
|
---|
3644 |
|
---|
3645 | fi
|
---|
3646 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
3647 | echo "${ECHO_T}$ac_cv_target" >&6; }
|
---|
3648 | case $ac_cv_target in
|
---|
3649 | *-*-*) ;;
|
---|
3650 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
---|
3651 | echo "$as_me: error: invalid value of canonical target" >&2;}
|
---|
3652 | { (exit 1); exit 1; }; };;
|
---|
3653 | esac
|
---|
3654 | target=$ac_cv_target
|
---|
3655 | ac_save_IFS=$IFS; IFS='-'
|
---|
3656 | set x $ac_cv_target
|
---|
3657 | shift
|
---|
3658 | target_cpu=$1
|
---|
3659 | target_vendor=$2
|
---|
3660 | shift; shift
|
---|
3661 | # Remember, the first character of IFS is used to create $*,
|
---|
3662 | # except with old shells:
|
---|
3663 | target_os=$*
|
---|
3664 | IFS=$ac_save_IFS
|
---|
3665 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
3666 |
|
---|
3667 |
|
---|
3668 | # The aliases save the names the user supplied, while $host etc.
|
---|
3669 | # will get canonicalized.
|
---|
3670 | test -n "$target_alias" &&
|
---|
3671 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
3672 | NONENONEs,x,x, &&
|
---|
3673 | program_prefix=${target_alias}-
|
---|
3674 | # Find a good install program. We prefer a C program (faster),
|
---|
3675 | # so one script is as good as another. But avoid the broken or
|
---|
3676 | # incompatible versions:
|
---|
3677 | # SysV /etc/install, /usr/sbin/install
|
---|
3678 | # SunOS /usr/etc/install
|
---|
3679 | # IRIX /sbin/install
|
---|
3680 | # AIX /bin/install
|
---|
3681 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3682 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3683 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3684 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3685 | # OS/2's system install, which has a completely different semantic
|
---|
3686 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3687 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
3688 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
3689 | if test -z "$INSTALL"; then
|
---|
3690 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3691 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3692 | else
|
---|
3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3694 | for as_dir in $PATH
|
---|
3695 | do
|
---|
3696 | IFS=$as_save_IFS
|
---|
3697 | test -z "$as_dir" && as_dir=.
|
---|
3698 | # Account for people who put trailing slashes in PATH elements.
|
---|
3699 | case $as_dir/ in
|
---|
3700 | ./ | .// | /cC/* | \
|
---|
3701 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3702 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
3703 | /usr/ucb/* ) ;;
|
---|
3704 | *)
|
---|
3705 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3706 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3707 | # by default.
|
---|
3708 | for ac_prog in ginstall scoinst install; do
|
---|
3709 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3710 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3711 | if test $ac_prog = install &&
|
---|
3712 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3713 | # AIX install. It has an incompatible calling convention.
|
---|
3714 | :
|
---|
3715 | elif test $ac_prog = install &&
|
---|
3716 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3717 | # program-specific install script used by HP pwplus--don't use.
|
---|
3718 | :
|
---|
3719 | else
|
---|
3720 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3721 | break 3
|
---|
3722 | fi
|
---|
3723 | fi
|
---|
3724 | done
|
---|
3725 | done
|
---|
3726 | ;;
|
---|
3727 | esac
|
---|
3728 | done
|
---|
3729 | IFS=$as_save_IFS
|
---|
3730 |
|
---|
3731 |
|
---|
3732 | fi
|
---|
3733 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3734 | INSTALL=$ac_cv_path_install
|
---|
3735 | else
|
---|
3736 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3737 | # value for INSTALL within a source directory, because that will
|
---|
3738 | # break other packages using the cache if that directory is
|
---|
3739 | # removed, or if the value is a relative name.
|
---|
3740 | INSTALL=$ac_install_sh
|
---|
3741 | fi
|
---|
3742 | fi
|
---|
3743 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
3744 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
3745 |
|
---|
3746 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3747 | # It thinks the first close brace ends the variable substitution.
|
---|
3748 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3749 |
|
---|
3750 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3751 |
|
---|
3752 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3753 |
|
---|
3754 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
3755 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
---|
3756 | LN_S=$as_ln_s
|
---|
3757 | if test "$LN_S" = "ln -s"; then
|
---|
3758 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3759 | echo "${ECHO_T}yes" >&6; }
|
---|
3760 | else
|
---|
3761 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3762 | echo "${ECHO_T}no, using $LN_S" >&6; }
|
---|
3763 | fi
|
---|
3764 |
|
---|
3765 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3766 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
---|
3767 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3768 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
3769 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3770 | else
|
---|
3771 | cat >conftest.make <<\_ACEOF
|
---|
3772 | SHELL = /bin/sh
|
---|
3773 | all:
|
---|
3774 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3775 | _ACEOF
|
---|
3776 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3777 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3778 | *@@@%%%=?*=@@@%%%*)
|
---|
3779 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3780 | *)
|
---|
3781 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3782 | esac
|
---|
3783 | rm -f conftest.make
|
---|
3784 | fi
|
---|
3785 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3786 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3787 | echo "${ECHO_T}yes" >&6; }
|
---|
3788 | SET_MAKE=
|
---|
3789 | else
|
---|
3790 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3791 | echo "${ECHO_T}no" >&6; }
|
---|
3792 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3793 | fi
|
---|
3794 |
|
---|
3795 | if test -n "$ac_tool_prefix"; then
|
---|
3796 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3797 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3800 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3801 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3802 | else
|
---|
3803 | if test -n "$RANLIB"; then
|
---|
3804 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3805 | else
|
---|
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3807 | for as_dir in $PATH
|
---|
3808 | do
|
---|
3809 | IFS=$as_save_IFS
|
---|
3810 | test -z "$as_dir" && as_dir=.
|
---|
3811 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3813 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3815 | break 2
|
---|
3816 | fi
|
---|
3817 | done
|
---|
3818 | done
|
---|
3819 | IFS=$as_save_IFS
|
---|
3820 |
|
---|
3821 | fi
|
---|
3822 | fi
|
---|
3823 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3824 | if test -n "$RANLIB"; then
|
---|
3825 | { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3826 | echo "${ECHO_T}$RANLIB" >&6; }
|
---|
3827 | else
|
---|
3828 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3829 | echo "${ECHO_T}no" >&6; }
|
---|
3830 | fi
|
---|
3831 |
|
---|
3832 |
|
---|
3833 | fi
|
---|
3834 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3835 | ac_ct_RANLIB=$RANLIB
|
---|
3836 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3837 | set dummy ranlib; ac_word=$2
|
---|
3838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3840 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3841 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3842 | else
|
---|
3843 | if test -n "$ac_ct_RANLIB"; then
|
---|
3844 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3845 | else
|
---|
3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3847 | for as_dir in $PATH
|
---|
3848 | do
|
---|
3849 | IFS=$as_save_IFS
|
---|
3850 | test -z "$as_dir" && as_dir=.
|
---|
3851 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3853 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3855 | break 2
|
---|
3856 | fi
|
---|
3857 | done
|
---|
3858 | done
|
---|
3859 | IFS=$as_save_IFS
|
---|
3860 |
|
---|
3861 | fi
|
---|
3862 | fi
|
---|
3863 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3864 | if test -n "$ac_ct_RANLIB"; then
|
---|
3865 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3866 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
---|
3867 | else
|
---|
3868 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3869 | echo "${ECHO_T}no" >&6; }
|
---|
3870 | fi
|
---|
3871 |
|
---|
3872 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3873 | RANLIB=":"
|
---|
3874 | else
|
---|
3875 | case $cross_compiling:$ac_tool_warned in
|
---|
3876 | yes:)
|
---|
3877 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3878 | whose name does not start with the host triplet. If you think this
|
---|
3879 | configuration is useful to you, please write to [email protected]." >&5
|
---|
3880 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3881 | whose name does not start with the host triplet. If you think this
|
---|
3882 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
3883 | ac_tool_warned=yes ;;
|
---|
3884 | esac
|
---|
3885 | RANLIB=$ac_ct_RANLIB
|
---|
3886 | fi
|
---|
3887 | else
|
---|
3888 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3889 | fi
|
---|
3890 |
|
---|
3891 |
|
---|
3892 | { echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
3893 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
|
---|
3894 | arch_64bit=no
|
---|
3895 | case "$host_cpu" in
|
---|
3896 | x86_64) arch_64bit=yes ;;
|
---|
3897 | esac
|
---|
3898 |
|
---|
3899 | if test "$arch_64bit" = yes; then
|
---|
3900 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
3901 | echo "${ECHO_T}yes" >&6; }
|
---|
3902 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
3903 | ARCH_DEP_FLAGS=-fPIC
|
---|
3904 | fi
|
---|
3905 | else
|
---|
3906 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3907 | echo "${ECHO_T}no" >&6; }
|
---|
3908 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
3909 | ARCH_DEP_FLAGS=
|
---|
3910 | fi
|
---|
3911 | fi
|
---|
3912 |
|
---|
3913 | export ARCH_DEP_FLAGS
|
---|
3914 |
|
---|
3915 |
|
---|
3916 |
|
---|
3917 | #moved CORBA MICO directory test to get version of MICO
|
---|
3918 | if test $USE_CORBA = 1; then
|
---|
3919 |
|
---|
3920 | if test $MICO_DIR = "default"; then
|
---|
3921 | #do something
|
---|
3922 | MICO_INC="-I packages/mico/mico/include"
|
---|
3923 | else
|
---|
3924 | #build the micotest program
|
---|
3925 | MICO_INC= ""
|
---|
3926 | if test $MICO_DIR != yes; then
|
---|
3927 | MICO_INC="-I $MICO_DIR"
|
---|
3928 | fi
|
---|
3929 | fi
|
---|
3930 |
|
---|
3931 | #get MICO_VER value
|
---|
3932 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
3933 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
3934 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
3935 | sh -c "rm micotest"
|
---|
3936 | sh -c "rm micotest.o"
|
---|
3937 |
|
---|
3938 | #do test of MICO_VER
|
---|
3939 | if test MICO_VER != 0; then
|
---|
3940 | cat >>confdefs.h <<\_ACEOF
|
---|
3941 | #define MICO_VER 1
|
---|
3942 | _ACEOF
|
---|
3943 |
|
---|
3944 |
|
---|
3945 | fi
|
---|
3946 | #end USE_CORBA test
|
---|
3947 | fi
|
---|
3948 |
|
---|
3949 |
|
---|
3950 | ac_ext=c
|
---|
3951 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3955 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3956 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
3957 | # On Suns, sometimes $CPP names a directory.
|
---|
3958 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3959 | CPP=
|
---|
3960 | fi
|
---|
3961 | if test -z "$CPP"; then
|
---|
3962 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3963 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3964 | else
|
---|
3965 | # Double quotes because CPP needs to be expanded
|
---|
3966 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3967 | do
|
---|
3968 | ac_preproc_ok=false
|
---|
3969 | for ac_c_preproc_warn_flag in '' yes
|
---|
3970 | do
|
---|
3971 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3972 | # with a fresh cross-compiler works.
|
---|
3973 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3974 | # <limits.h> exists even on freestanding compilers.
|
---|
3975 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3976 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3977 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3978 | /* confdefs.h. */
|
---|
3979 | _ACEOF
|
---|
3980 | cat confdefs.h >>conftest.$ac_ext
|
---|
3981 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3982 | /* end confdefs.h. */
|
---|
3983 | #ifdef __STDC__
|
---|
3984 | # include <limits.h>
|
---|
3985 | #else
|
---|
3986 | # include <assert.h>
|
---|
3987 | #endif
|
---|
3988 | Syntax error
|
---|
3989 | _ACEOF
|
---|
3990 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3991 | case "(($ac_try" in
|
---|
3992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3993 | *) ac_try_echo=$ac_try;;
|
---|
3994 | esac
|
---|
3995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3997 | ac_status=$?
|
---|
3998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3999 | rm -f conftest.er1
|
---|
4000 | cat conftest.err >&5
|
---|
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4002 | (exit $ac_status); } >/dev/null && {
|
---|
4003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4004 | test ! -s conftest.err
|
---|
4005 | }; then
|
---|
4006 | :
|
---|
4007 | else
|
---|
4008 | echo "$as_me: failed program was:" >&5
|
---|
4009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4010 |
|
---|
4011 | # Broken: fails on valid input.
|
---|
4012 | continue
|
---|
4013 | fi
|
---|
4014 |
|
---|
4015 | rm -f conftest.err conftest.$ac_ext
|
---|
4016 |
|
---|
4017 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4018 | # can be detected and how.
|
---|
4019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4020 | /* confdefs.h. */
|
---|
4021 | _ACEOF
|
---|
4022 | cat confdefs.h >>conftest.$ac_ext
|
---|
4023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4024 | /* end confdefs.h. */
|
---|
4025 | #include <ac_nonexistent.h>
|
---|
4026 | _ACEOF
|
---|
4027 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4028 | case "(($ac_try" in
|
---|
4029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4030 | *) ac_try_echo=$ac_try;;
|
---|
4031 | esac
|
---|
4032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4033 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4034 | ac_status=$?
|
---|
4035 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4036 | rm -f conftest.er1
|
---|
4037 | cat conftest.err >&5
|
---|
4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4039 | (exit $ac_status); } >/dev/null && {
|
---|
4040 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4041 | test ! -s conftest.err
|
---|
4042 | }; then
|
---|
4043 | # Broken: success on invalid input.
|
---|
4044 | continue
|
---|
4045 | else
|
---|
4046 | echo "$as_me: failed program was:" >&5
|
---|
4047 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4048 |
|
---|
4049 | # Passes both tests.
|
---|
4050 | ac_preproc_ok=:
|
---|
4051 | break
|
---|
4052 | fi
|
---|
4053 |
|
---|
4054 | rm -f conftest.err conftest.$ac_ext
|
---|
4055 |
|
---|
4056 | done
|
---|
4057 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4058 | rm -f conftest.err conftest.$ac_ext
|
---|
4059 | if $ac_preproc_ok; then
|
---|
4060 | break
|
---|
4061 | fi
|
---|
4062 |
|
---|
4063 | done
|
---|
4064 | ac_cv_prog_CPP=$CPP
|
---|
4065 |
|
---|
4066 | fi
|
---|
4067 | CPP=$ac_cv_prog_CPP
|
---|
4068 | else
|
---|
4069 | ac_cv_prog_CPP=$CPP
|
---|
4070 | fi
|
---|
4071 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
4072 | echo "${ECHO_T}$CPP" >&6; }
|
---|
4073 | ac_preproc_ok=false
|
---|
4074 | for ac_c_preproc_warn_flag in '' yes
|
---|
4075 | do
|
---|
4076 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4077 | # with a fresh cross-compiler works.
|
---|
4078 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4079 | # <limits.h> exists even on freestanding compilers.
|
---|
4080 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4081 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4082 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4083 | /* confdefs.h. */
|
---|
4084 | _ACEOF
|
---|
4085 | cat confdefs.h >>conftest.$ac_ext
|
---|
4086 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4087 | /* end confdefs.h. */
|
---|
4088 | #ifdef __STDC__
|
---|
4089 | # include <limits.h>
|
---|
4090 | #else
|
---|
4091 | # include <assert.h>
|
---|
4092 | #endif
|
---|
4093 | Syntax error
|
---|
4094 | _ACEOF
|
---|
4095 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4096 | case "(($ac_try" in
|
---|
4097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4098 | *) ac_try_echo=$ac_try;;
|
---|
4099 | esac
|
---|
4100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4102 | ac_status=$?
|
---|
4103 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4104 | rm -f conftest.er1
|
---|
4105 | cat conftest.err >&5
|
---|
4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4107 | (exit $ac_status); } >/dev/null && {
|
---|
4108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4109 | test ! -s conftest.err
|
---|
4110 | }; then
|
---|
4111 | :
|
---|
4112 | else
|
---|
4113 | echo "$as_me: failed program was:" >&5
|
---|
4114 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4115 |
|
---|
4116 | # Broken: fails on valid input.
|
---|
4117 | continue
|
---|
4118 | fi
|
---|
4119 |
|
---|
4120 | rm -f conftest.err conftest.$ac_ext
|
---|
4121 |
|
---|
4122 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4123 | # can be detected and how.
|
---|
4124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4125 | /* confdefs.h. */
|
---|
4126 | _ACEOF
|
---|
4127 | cat confdefs.h >>conftest.$ac_ext
|
---|
4128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4129 | /* end confdefs.h. */
|
---|
4130 | #include <ac_nonexistent.h>
|
---|
4131 | _ACEOF
|
---|
4132 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4133 | case "(($ac_try" in
|
---|
4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4135 | *) ac_try_echo=$ac_try;;
|
---|
4136 | esac
|
---|
4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4139 | ac_status=$?
|
---|
4140 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4141 | rm -f conftest.er1
|
---|
4142 | cat conftest.err >&5
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); } >/dev/null && {
|
---|
4145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4146 | test ! -s conftest.err
|
---|
4147 | }; then
|
---|
4148 | # Broken: success on invalid input.
|
---|
4149 | continue
|
---|
4150 | else
|
---|
4151 | echo "$as_me: failed program was:" >&5
|
---|
4152 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4153 |
|
---|
4154 | # Passes both tests.
|
---|
4155 | ac_preproc_ok=:
|
---|
4156 | break
|
---|
4157 | fi
|
---|
4158 |
|
---|
4159 | rm -f conftest.err conftest.$ac_ext
|
---|
4160 |
|
---|
4161 | done
|
---|
4162 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4163 | rm -f conftest.err conftest.$ac_ext
|
---|
4164 | if $ac_preproc_ok; then
|
---|
4165 | :
|
---|
4166 | else
|
---|
4167 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4168 | See \`config.log' for more details." >&5
|
---|
4169 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4170 | See \`config.log' for more details." >&2;}
|
---|
4171 | { (exit 1); exit 1; }; }
|
---|
4172 | fi
|
---|
4173 |
|
---|
4174 | ac_ext=c
|
---|
4175 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4179 |
|
---|
4180 |
|
---|
4181 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
4182 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
4183 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
4184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4185 | else
|
---|
4186 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
4187 | if test -z "$GREP"; then
|
---|
4188 | set dummy grep ggrep; ac_prog_name=$2
|
---|
4189 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
4190 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4191 | else
|
---|
4192 | ac_path_GREP_found=false
|
---|
4193 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4195 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4196 | do
|
---|
4197 | IFS=$as_save_IFS
|
---|
4198 | test -z "$as_dir" && as_dir=.
|
---|
4199 | for ac_prog in grep ggrep; do
|
---|
4200 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4201 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4202 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
4203 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4204 | # Check for GNU $ac_path_GREP
|
---|
4205 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4206 | *GNU*)
|
---|
4207 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4208 | *)
|
---|
4209 | ac_count=0
|
---|
4210 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
4211 | while :
|
---|
4212 | do
|
---|
4213 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4214 | mv "conftest.tmp" "conftest.in"
|
---|
4215 | cp "conftest.in" "conftest.nl"
|
---|
4216 | echo 'GREP' >> "conftest.nl"
|
---|
4217 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4218 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4219 | ac_count=`expr $ac_count + 1`
|
---|
4220 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4221 | # Best one so far, save it but keep looking for a better one
|
---|
4222 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4223 | ac_path_GREP_max=$ac_count
|
---|
4224 | fi
|
---|
4225 | # 10*(2^10) chars as input seems more than enough
|
---|
4226 | test $ac_count -gt 10 && break
|
---|
4227 | done
|
---|
4228 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4229 | esac
|
---|
4230 |
|
---|
4231 |
|
---|
4232 | $ac_path_GREP_found && break 3
|
---|
4233 | done
|
---|
4234 | done
|
---|
4235 |
|
---|
4236 | done
|
---|
4237 | IFS=$as_save_IFS
|
---|
4238 |
|
---|
4239 |
|
---|
4240 | fi
|
---|
4241 |
|
---|
4242 | GREP="$ac_cv_path_GREP"
|
---|
4243 | if test -z "$GREP"; then
|
---|
4244 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
4245 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
4246 | { (exit 1); exit 1; }; }
|
---|
4247 | fi
|
---|
4248 |
|
---|
4249 | else
|
---|
4250 | ac_cv_path_GREP=$GREP
|
---|
4251 | fi
|
---|
4252 |
|
---|
4253 |
|
---|
4254 | fi
|
---|
4255 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
4256 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
4257 | GREP="$ac_cv_path_GREP"
|
---|
4258 |
|
---|
4259 |
|
---|
4260 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
4261 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
4262 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
4263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4264 | else
|
---|
4265 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4266 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4267 | else
|
---|
4268 | # Extract the first word of "egrep" to use in msg output
|
---|
4269 | if test -z "$EGREP"; then
|
---|
4270 | set dummy egrep; ac_prog_name=$2
|
---|
4271 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
4272 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4273 | else
|
---|
4274 | ac_path_EGREP_found=false
|
---|
4275 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4277 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4278 | do
|
---|
4279 | IFS=$as_save_IFS
|
---|
4280 | test -z "$as_dir" && as_dir=.
|
---|
4281 | for ac_prog in egrep; do
|
---|
4282 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4283 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4284 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
4285 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4286 | # Check for GNU $ac_path_EGREP
|
---|
4287 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4288 | *GNU*)
|
---|
4289 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4290 | *)
|
---|
4291 | ac_count=0
|
---|
4292 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
4293 | while :
|
---|
4294 | do
|
---|
4295 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4296 | mv "conftest.tmp" "conftest.in"
|
---|
4297 | cp "conftest.in" "conftest.nl"
|
---|
4298 | echo 'EGREP' >> "conftest.nl"
|
---|
4299 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4300 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4301 | ac_count=`expr $ac_count + 1`
|
---|
4302 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4303 | # Best one so far, save it but keep looking for a better one
|
---|
4304 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4305 | ac_path_EGREP_max=$ac_count
|
---|
4306 | fi
|
---|
4307 | # 10*(2^10) chars as input seems more than enough
|
---|
4308 | test $ac_count -gt 10 && break
|
---|
4309 | done
|
---|
4310 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4311 | esac
|
---|
4312 |
|
---|
4313 |
|
---|
4314 | $ac_path_EGREP_found && break 3
|
---|
4315 | done
|
---|
4316 | done
|
---|
4317 |
|
---|
4318 | done
|
---|
4319 | IFS=$as_save_IFS
|
---|
4320 |
|
---|
4321 |
|
---|
4322 | fi
|
---|
4323 |
|
---|
4324 | EGREP="$ac_cv_path_EGREP"
|
---|
4325 | if test -z "$EGREP"; then
|
---|
4326 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
4327 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
4328 | { (exit 1); exit 1; }; }
|
---|
4329 | fi
|
---|
4330 |
|
---|
4331 | else
|
---|
4332 | ac_cv_path_EGREP=$EGREP
|
---|
4333 | fi
|
---|
4334 |
|
---|
4335 |
|
---|
4336 | fi
|
---|
4337 | fi
|
---|
4338 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
4339 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
4340 | EGREP="$ac_cv_path_EGREP"
|
---|
4341 |
|
---|
4342 |
|
---|
4343 |
|
---|
4344 | { echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
4345 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
|
---|
4346 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4347 | /* confdefs.h. */
|
---|
4348 | _ACEOF
|
---|
4349 | cat confdefs.h >>conftest.$ac_ext
|
---|
4350 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4351 | /* end confdefs.h. */
|
---|
4352 | #ifdef _AIX
|
---|
4353 | yes
|
---|
4354 | #endif
|
---|
4355 |
|
---|
4356 | _ACEOF
|
---|
4357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4358 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
4359 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
4360 | echo "${ECHO_T}yes" >&6; }
|
---|
4361 | cat >>confdefs.h <<\_ACEOF
|
---|
4362 | #define _ALL_SOURCE 1
|
---|
4363 | _ACEOF
|
---|
4364 |
|
---|
4365 | else
|
---|
4366 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
4367 | echo "${ECHO_T}no" >&6; }
|
---|
4368 | fi
|
---|
4369 | rm -f conftest*
|
---|
4370 |
|
---|
4371 |
|
---|
4372 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
4373 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
|
---|
4374 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
4375 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4376 | else
|
---|
4377 | ac_func_search_save_LIBS=$LIBS
|
---|
4378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4379 | /* confdefs.h. */
|
---|
4380 | _ACEOF
|
---|
4381 | cat confdefs.h >>conftest.$ac_ext
|
---|
4382 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4383 | /* end confdefs.h. */
|
---|
4384 |
|
---|
4385 | /* Override any GCC internal prototype to avoid an error.
|
---|
4386 | Use char because int might match the return type of a GCC
|
---|
4387 | builtin and then its argument prototype would still apply. */
|
---|
4388 | #ifdef __cplusplus
|
---|
4389 | extern "C"
|
---|
4390 | #endif
|
---|
4391 | char strerror ();
|
---|
4392 | int
|
---|
4393 | main ()
|
---|
4394 | {
|
---|
4395 | return strerror ();
|
---|
4396 | ;
|
---|
4397 | return 0;
|
---|
4398 | }
|
---|
4399 | _ACEOF
|
---|
4400 | for ac_lib in '' cposix; do
|
---|
4401 | if test -z "$ac_lib"; then
|
---|
4402 | ac_res="none required"
|
---|
4403 | else
|
---|
4404 | ac_res=-l$ac_lib
|
---|
4405 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4406 | fi
|
---|
4407 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4408 | if { (ac_try="$ac_link"
|
---|
4409 | case "(($ac_try" in
|
---|
4410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4411 | *) ac_try_echo=$ac_try;;
|
---|
4412 | esac
|
---|
4413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4414 | (eval "$ac_link") 2>conftest.er1
|
---|
4415 | ac_status=$?
|
---|
4416 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4417 | rm -f conftest.er1
|
---|
4418 | cat conftest.err >&5
|
---|
4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4420 | (exit $ac_status); } && {
|
---|
4421 | test -z "$ac_c_werror_flag" ||
|
---|
4422 | test ! -s conftest.err
|
---|
4423 | } && test -s conftest$ac_exeext &&
|
---|
4424 | $as_test_x conftest$ac_exeext; then
|
---|
4425 | ac_cv_search_strerror=$ac_res
|
---|
4426 | else
|
---|
4427 | echo "$as_me: failed program was:" >&5
|
---|
4428 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4429 |
|
---|
4430 |
|
---|
4431 | fi
|
---|
4432 |
|
---|
4433 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4434 | conftest$ac_exeext
|
---|
4435 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
4436 | break
|
---|
4437 | fi
|
---|
4438 | done
|
---|
4439 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
4440 | :
|
---|
4441 | else
|
---|
4442 | ac_cv_search_strerror=no
|
---|
4443 | fi
|
---|
4444 | rm conftest.$ac_ext
|
---|
4445 | LIBS=$ac_func_search_save_LIBS
|
---|
4446 | fi
|
---|
4447 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
4448 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
|
---|
4449 | ac_res=$ac_cv_search_strerror
|
---|
4450 | if test "$ac_res" != no; then
|
---|
4451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4452 |
|
---|
4453 | fi
|
---|
4454 |
|
---|
4455 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
4456 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
4457 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
4458 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4459 | else
|
---|
4460 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4461 | /* confdefs.h. */
|
---|
4462 | _ACEOF
|
---|
4463 | cat confdefs.h >>conftest.$ac_ext
|
---|
4464 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4465 | /* end confdefs.h. */
|
---|
4466 | #include <stdlib.h>
|
---|
4467 | #include <stdarg.h>
|
---|
4468 | #include <string.h>
|
---|
4469 | #include <float.h>
|
---|
4470 |
|
---|
4471 | int
|
---|
4472 | main ()
|
---|
4473 | {
|
---|
4474 |
|
---|
4475 | ;
|
---|
4476 | return 0;
|
---|
4477 | }
|
---|
4478 | _ACEOF
|
---|
4479 | rm -f conftest.$ac_objext
|
---|
4480 | if { (ac_try="$ac_compile"
|
---|
4481 | case "(($ac_try" in
|
---|
4482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4483 | *) ac_try_echo=$ac_try;;
|
---|
4484 | esac
|
---|
4485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4486 | (eval "$ac_compile") 2>conftest.er1
|
---|
4487 | ac_status=$?
|
---|
4488 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4489 | rm -f conftest.er1
|
---|
4490 | cat conftest.err >&5
|
---|
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4492 | (exit $ac_status); } && {
|
---|
4493 | test -z "$ac_c_werror_flag" ||
|
---|
4494 | test ! -s conftest.err
|
---|
4495 | } && test -s conftest.$ac_objext; then
|
---|
4496 | ac_cv_header_stdc=yes
|
---|
4497 | else
|
---|
4498 | echo "$as_me: failed program was:" >&5
|
---|
4499 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4500 |
|
---|
4501 | ac_cv_header_stdc=no
|
---|
4502 | fi
|
---|
4503 |
|
---|
4504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4505 |
|
---|
4506 | if test $ac_cv_header_stdc = yes; then
|
---|
4507 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4508 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4509 | /* confdefs.h. */
|
---|
4510 | _ACEOF
|
---|
4511 | cat confdefs.h >>conftest.$ac_ext
|
---|
4512 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4513 | /* end confdefs.h. */
|
---|
4514 | #include <string.h>
|
---|
4515 |
|
---|
4516 | _ACEOF
|
---|
4517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4518 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
4519 | :
|
---|
4520 | else
|
---|
4521 | ac_cv_header_stdc=no
|
---|
4522 | fi
|
---|
4523 | rm -f conftest*
|
---|
4524 |
|
---|
4525 | fi
|
---|
4526 |
|
---|
4527 | if test $ac_cv_header_stdc = yes; then
|
---|
4528 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4529 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4530 | /* confdefs.h. */
|
---|
4531 | _ACEOF
|
---|
4532 | cat confdefs.h >>conftest.$ac_ext
|
---|
4533 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4534 | /* end confdefs.h. */
|
---|
4535 | #include <stdlib.h>
|
---|
4536 |
|
---|
4537 | _ACEOF
|
---|
4538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4539 | $EGREP "free" >/dev/null 2>&1; then
|
---|
4540 | :
|
---|
4541 | else
|
---|
4542 | ac_cv_header_stdc=no
|
---|
4543 | fi
|
---|
4544 | rm -f conftest*
|
---|
4545 |
|
---|
4546 | fi
|
---|
4547 |
|
---|
4548 | if test $ac_cv_header_stdc = yes; then
|
---|
4549 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4550 | if test "$cross_compiling" = yes; then
|
---|
4551 | :
|
---|
4552 | else
|
---|
4553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4554 | /* confdefs.h. */
|
---|
4555 | _ACEOF
|
---|
4556 | cat confdefs.h >>conftest.$ac_ext
|
---|
4557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4558 | /* end confdefs.h. */
|
---|
4559 | #include <ctype.h>
|
---|
4560 | #include <stdlib.h>
|
---|
4561 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4562 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4563 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4564 | #else
|
---|
4565 | # define ISLOWER(c) \
|
---|
4566 | (('a' <= (c) && (c) <= 'i') \
|
---|
4567 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4568 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4569 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4570 | #endif
|
---|
4571 |
|
---|
4572 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4573 | int
|
---|
4574 | main ()
|
---|
4575 | {
|
---|
4576 | int i;
|
---|
4577 | for (i = 0; i < 256; i++)
|
---|
4578 | if (XOR (islower (i), ISLOWER (i))
|
---|
4579 | || toupper (i) != TOUPPER (i))
|
---|
4580 | return 2;
|
---|
4581 | return 0;
|
---|
4582 | }
|
---|
4583 | _ACEOF
|
---|
4584 | rm -f conftest$ac_exeext
|
---|
4585 | if { (ac_try="$ac_link"
|
---|
4586 | case "(($ac_try" in
|
---|
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4588 | *) ac_try_echo=$ac_try;;
|
---|
4589 | esac
|
---|
4590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4591 | (eval "$ac_link") 2>&5
|
---|
4592 | ac_status=$?
|
---|
4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
4595 | { (case "(($ac_try" in
|
---|
4596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4597 | *) ac_try_echo=$ac_try;;
|
---|
4598 | esac
|
---|
4599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4600 | (eval "$ac_try") 2>&5
|
---|
4601 | ac_status=$?
|
---|
4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4603 | (exit $ac_status); }; }; then
|
---|
4604 | :
|
---|
4605 | else
|
---|
4606 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
4607 | echo "$as_me: failed program was:" >&5
|
---|
4608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4609 |
|
---|
4610 | ( exit $ac_status )
|
---|
4611 | ac_cv_header_stdc=no
|
---|
4612 | fi
|
---|
4613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
4614 | fi
|
---|
4615 |
|
---|
4616 |
|
---|
4617 | fi
|
---|
4618 | fi
|
---|
4619 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
4620 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
4621 | if test $ac_cv_header_stdc = yes; then
|
---|
4622 |
|
---|
4623 | cat >>confdefs.h <<\_ACEOF
|
---|
4624 | #define STDC_HEADERS 1
|
---|
4625 | _ACEOF
|
---|
4626 |
|
---|
4627 | fi
|
---|
4628 |
|
---|
4629 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4630 |
|
---|
4631 |
|
---|
4632 |
|
---|
4633 |
|
---|
4634 |
|
---|
4635 |
|
---|
4636 |
|
---|
4637 |
|
---|
4638 |
|
---|
4639 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4640 | inttypes.h stdint.h unistd.h
|
---|
4641 | do
|
---|
4642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
4645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
4646 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4647 | else
|
---|
4648 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4649 | /* confdefs.h. */
|
---|
4650 | _ACEOF
|
---|
4651 | cat confdefs.h >>conftest.$ac_ext
|
---|
4652 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4653 | /* end confdefs.h. */
|
---|
4654 | $ac_includes_default
|
---|
4655 |
|
---|
4656 | #include <$ac_header>
|
---|
4657 | _ACEOF
|
---|
4658 | rm -f conftest.$ac_objext
|
---|
4659 | if { (ac_try="$ac_compile"
|
---|
4660 | case "(($ac_try" in
|
---|
4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4662 | *) ac_try_echo=$ac_try;;
|
---|
4663 | esac
|
---|
4664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4665 | (eval "$ac_compile") 2>conftest.er1
|
---|
4666 | ac_status=$?
|
---|
4667 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4668 | rm -f conftest.er1
|
---|
4669 | cat conftest.err >&5
|
---|
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4671 | (exit $ac_status); } && {
|
---|
4672 | test -z "$ac_c_werror_flag" ||
|
---|
4673 | test ! -s conftest.err
|
---|
4674 | } && test -s conftest.$ac_objext; then
|
---|
4675 | eval "$as_ac_Header=yes"
|
---|
4676 | else
|
---|
4677 | echo "$as_me: failed program was:" >&5
|
---|
4678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4679 |
|
---|
4680 | eval "$as_ac_Header=no"
|
---|
4681 | fi
|
---|
4682 |
|
---|
4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4684 | fi
|
---|
4685 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
4686 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
4687 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
4688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4689 | cat >>confdefs.h <<_ACEOF
|
---|
4690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4691 | _ACEOF
|
---|
4692 |
|
---|
4693 | fi
|
---|
4694 |
|
---|
4695 | done
|
---|
4696 |
|
---|
4697 |
|
---|
4698 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4699 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4700 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
4701 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4702 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4703 | fi
|
---|
4704 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4705 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
4706 | else
|
---|
4707 | # Is the header compilable?
|
---|
4708 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
4709 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
|
---|
4710 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4711 | /* confdefs.h. */
|
---|
4712 | _ACEOF
|
---|
4713 | cat confdefs.h >>conftest.$ac_ext
|
---|
4714 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4715 | /* end confdefs.h. */
|
---|
4716 | $ac_includes_default
|
---|
4717 | #include <minix/config.h>
|
---|
4718 | _ACEOF
|
---|
4719 | rm -f conftest.$ac_objext
|
---|
4720 | if { (ac_try="$ac_compile"
|
---|
4721 | case "(($ac_try" in
|
---|
4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4723 | *) ac_try_echo=$ac_try;;
|
---|
4724 | esac
|
---|
4725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4726 | (eval "$ac_compile") 2>conftest.er1
|
---|
4727 | ac_status=$?
|
---|
4728 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4729 | rm -f conftest.er1
|
---|
4730 | cat conftest.err >&5
|
---|
4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4732 | (exit $ac_status); } && {
|
---|
4733 | test -z "$ac_c_werror_flag" ||
|
---|
4734 | test ! -s conftest.err
|
---|
4735 | } && test -s conftest.$ac_objext; then
|
---|
4736 | ac_header_compiler=yes
|
---|
4737 | else
|
---|
4738 | echo "$as_me: failed program was:" >&5
|
---|
4739 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4740 |
|
---|
4741 | ac_header_compiler=no
|
---|
4742 | fi
|
---|
4743 |
|
---|
4744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4745 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4746 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
4747 |
|
---|
4748 | # Is the header present?
|
---|
4749 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
4750 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
|
---|
4751 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4752 | /* confdefs.h. */
|
---|
4753 | _ACEOF
|
---|
4754 | cat confdefs.h >>conftest.$ac_ext
|
---|
4755 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4756 | /* end confdefs.h. */
|
---|
4757 | #include <minix/config.h>
|
---|
4758 | _ACEOF
|
---|
4759 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4760 | case "(($ac_try" in
|
---|
4761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4762 | *) ac_try_echo=$ac_try;;
|
---|
4763 | esac
|
---|
4764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4765 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4766 | ac_status=$?
|
---|
4767 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4768 | rm -f conftest.er1
|
---|
4769 | cat conftest.err >&5
|
---|
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4771 | (exit $ac_status); } >/dev/null && {
|
---|
4772 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
4773 | test ! -s conftest.err
|
---|
4774 | }; then
|
---|
4775 | ac_header_preproc=yes
|
---|
4776 | else
|
---|
4777 | echo "$as_me: failed program was:" >&5
|
---|
4778 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4779 |
|
---|
4780 | ac_header_preproc=no
|
---|
4781 | fi
|
---|
4782 |
|
---|
4783 | rm -f conftest.err conftest.$ac_ext
|
---|
4784 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4785 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
4786 |
|
---|
4787 | # So? What about this header?
|
---|
4788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4789 | yes:no: )
|
---|
4790 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4791 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4792 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
4793 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
4794 | ac_header_preproc=yes
|
---|
4795 | ;;
|
---|
4796 | no:yes:* )
|
---|
4797 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
4798 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
4799 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
4800 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
4801 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
4802 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
4803 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4804 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4805 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
4806 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
4807 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
4808 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
4809 |
|
---|
4810 | ;;
|
---|
4811 | esac
|
---|
4812 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
4813 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
4814 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
4815 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4816 | else
|
---|
4817 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
4818 | fi
|
---|
4819 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
4820 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
4821 |
|
---|
4822 | fi
|
---|
4823 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
4824 | MINIX=yes
|
---|
4825 | else
|
---|
4826 | MINIX=
|
---|
4827 | fi
|
---|
4828 |
|
---|
4829 |
|
---|
4830 | if test "$MINIX" = yes; then
|
---|
4831 |
|
---|
4832 | cat >>confdefs.h <<\_ACEOF
|
---|
4833 | #define _POSIX_SOURCE 1
|
---|
4834 | _ACEOF
|
---|
4835 |
|
---|
4836 |
|
---|
4837 | cat >>confdefs.h <<\_ACEOF
|
---|
4838 | #define _POSIX_1_SOURCE 2
|
---|
4839 | _ACEOF
|
---|
4840 |
|
---|
4841 |
|
---|
4842 | cat >>confdefs.h <<\_ACEOF
|
---|
4843 | #define _MINIX 1
|
---|
4844 | _ACEOF
|
---|
4845 |
|
---|
4846 | fi
|
---|
4847 |
|
---|
4848 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4849 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
|
---|
4850 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4852 | else
|
---|
4853 | ac_cv_prog_cc_stdc=no
|
---|
4854 | ac_save_CFLAGS="$CFLAGS"
|
---|
4855 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4856 | # breaks some systems' header files.
|
---|
4857 | # AIX -qlanglvl=ansi
|
---|
4858 | # Ultrix and OSF/1 -std1
|
---|
4859 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4860 | # SVR4 -Xc
|
---|
4861 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4862 | do
|
---|
4863 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4864 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4865 | /* confdefs.h. */
|
---|
4866 | _ACEOF
|
---|
4867 | cat confdefs.h >>conftest.$ac_ext
|
---|
4868 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4869 | /* end confdefs.h. */
|
---|
4870 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4871 | choke me
|
---|
4872 | #endif
|
---|
4873 |
|
---|
4874 | int
|
---|
4875 | main ()
|
---|
4876 | {
|
---|
4877 | int test (int i, double x);
|
---|
4878 | struct s1 {int (*f) (int a);};
|
---|
4879 | struct s2 {int (*f) (double a);};
|
---|
4880 | ;
|
---|
4881 | return 0;
|
---|
4882 | }
|
---|
4883 | _ACEOF
|
---|
4884 | rm -f conftest.$ac_objext
|
---|
4885 | if { (ac_try="$ac_compile"
|
---|
4886 | case "(($ac_try" in
|
---|
4887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4888 | *) ac_try_echo=$ac_try;;
|
---|
4889 | esac
|
---|
4890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4891 | (eval "$ac_compile") 2>conftest.er1
|
---|
4892 | ac_status=$?
|
---|
4893 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4894 | rm -f conftest.er1
|
---|
4895 | cat conftest.err >&5
|
---|
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4897 | (exit $ac_status); } && {
|
---|
4898 | test -z "$ac_c_werror_flag" ||
|
---|
4899 | test ! -s conftest.err
|
---|
4900 | } && test -s conftest.$ac_objext; then
|
---|
4901 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4902 | else
|
---|
4903 | echo "$as_me: failed program was:" >&5
|
---|
4904 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4905 |
|
---|
4906 |
|
---|
4907 | fi
|
---|
4908 |
|
---|
4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4910 | done
|
---|
4911 | CFLAGS="$ac_save_CFLAGS"
|
---|
4912 |
|
---|
4913 | fi
|
---|
4914 |
|
---|
4915 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4916 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
|
---|
4917 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4918 | x|xno) ;;
|
---|
4919 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4920 | esac
|
---|
4921 |
|
---|
4922 |
|
---|
4923 | { echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4924 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
|
---|
4925 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4926 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
4927 | echo "${ECHO_T}yes" >&6; }
|
---|
4928 | cat >>confdefs.h <<\_ACEOF
|
---|
4929 | #define PROTOTYPES 1
|
---|
4930 | _ACEOF
|
---|
4931 |
|
---|
4932 | U= ANSI2KNR=
|
---|
4933 | else
|
---|
4934 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
4935 | echo "${ECHO_T}no" >&6; }
|
---|
4936 | U=_ ANSI2KNR=ansi2knr
|
---|
4937 | fi
|
---|
4938 |
|
---|
4939 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4940 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
---|
4941 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4943 | else
|
---|
4944 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4945 | /* confdefs.h. */
|
---|
4946 | _ACEOF
|
---|
4947 | cat confdefs.h >>conftest.$ac_ext
|
---|
4948 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4949 | /* end confdefs.h. */
|
---|
4950 |
|
---|
4951 | int
|
---|
4952 | main ()
|
---|
4953 | {
|
---|
4954 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4955 | #ifndef __cplusplus
|
---|
4956 | /* Ultrix mips cc rejects this. */
|
---|
4957 | typedef int charset[2];
|
---|
4958 | const charset cs;
|
---|
4959 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4960 | char const *const *pcpcc;
|
---|
4961 | char **ppc;
|
---|
4962 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4963 | struct point {int x, y;};
|
---|
4964 | static struct point const zero = {0,0};
|
---|
4965 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4966 | It does not let you subtract one const X* pointer from another in
|
---|
4967 | an arm of an if-expression whose if-part is not a constant
|
---|
4968 | expression */
|
---|
4969 | const char *g = "string";
|
---|
4970 | pcpcc = &g + (g ? g-g : 0);
|
---|
4971 | /* HPUX 7.0 cc rejects these. */
|
---|
4972 | ++pcpcc;
|
---|
4973 | ppc = (char**) pcpcc;
|
---|
4974 | pcpcc = (char const *const *) ppc;
|
---|
4975 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4976 | char *t;
|
---|
4977 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4978 |
|
---|
4979 | *t++ = 0;
|
---|
4980 | if (s) return 0;
|
---|
4981 | }
|
---|
4982 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4983 | int x[] = {25, 17};
|
---|
4984 | const int *foo = &x[0];
|
---|
4985 | ++foo;
|
---|
4986 | }
|
---|
4987 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4988 | typedef const int *iptr;
|
---|
4989 | iptr p = 0;
|
---|
4990 | ++p;
|
---|
4991 | }
|
---|
4992 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4993 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4994 | struct s { int j; const int *ap[3]; };
|
---|
4995 | struct s *b; b->j = 5;
|
---|
4996 | }
|
---|
4997 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4998 | const int foo = 10;
|
---|
4999 | if (!foo) return 0;
|
---|
5000 | }
|
---|
5001 | return !cs[0] && !zero.x;
|
---|
5002 | #endif
|
---|
5003 |
|
---|
5004 | ;
|
---|
5005 | return 0;
|
---|
5006 | }
|
---|
5007 | _ACEOF
|
---|
5008 | rm -f conftest.$ac_objext
|
---|
5009 | if { (ac_try="$ac_compile"
|
---|
5010 | case "(($ac_try" in
|
---|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5012 | *) ac_try_echo=$ac_try;;
|
---|
5013 | esac
|
---|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5015 | (eval "$ac_compile") 2>conftest.er1
|
---|
5016 | ac_status=$?
|
---|
5017 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5018 | rm -f conftest.er1
|
---|
5019 | cat conftest.err >&5
|
---|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5021 | (exit $ac_status); } && {
|
---|
5022 | test -z "$ac_c_werror_flag" ||
|
---|
5023 | test ! -s conftest.err
|
---|
5024 | } && test -s conftest.$ac_objext; then
|
---|
5025 | ac_cv_c_const=yes
|
---|
5026 | else
|
---|
5027 | echo "$as_me: failed program was:" >&5
|
---|
5028 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5029 |
|
---|
5030 | ac_cv_c_const=no
|
---|
5031 | fi
|
---|
5032 |
|
---|
5033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5034 | fi
|
---|
5035 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
5036 | echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
---|
5037 | if test $ac_cv_c_const = no; then
|
---|
5038 |
|
---|
5039 | cat >>confdefs.h <<\_ACEOF
|
---|
5040 | #define const
|
---|
5041 | _ACEOF
|
---|
5042 |
|
---|
5043 | fi
|
---|
5044 |
|
---|
5045 | { echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
5046 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
|
---|
5047 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
5048 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5049 | else
|
---|
5050 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5051 | /* confdefs.h. */
|
---|
5052 | _ACEOF
|
---|
5053 | cat confdefs.h >>conftest.$ac_ext
|
---|
5054 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5055 | /* end confdefs.h. */
|
---|
5056 | $ac_includes_default
|
---|
5057 | typedef off_t ac__type_new_;
|
---|
5058 | int
|
---|
5059 | main ()
|
---|
5060 | {
|
---|
5061 | if ((ac__type_new_ *) 0)
|
---|
5062 | return 0;
|
---|
5063 | if (sizeof (ac__type_new_))
|
---|
5064 | return 0;
|
---|
5065 | ;
|
---|
5066 | return 0;
|
---|
5067 | }
|
---|
5068 | _ACEOF
|
---|
5069 | rm -f conftest.$ac_objext
|
---|
5070 | if { (ac_try="$ac_compile"
|
---|
5071 | case "(($ac_try" in
|
---|
5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5073 | *) ac_try_echo=$ac_try;;
|
---|
5074 | esac
|
---|
5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5076 | (eval "$ac_compile") 2>conftest.er1
|
---|
5077 | ac_status=$?
|
---|
5078 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5079 | rm -f conftest.er1
|
---|
5080 | cat conftest.err >&5
|
---|
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5082 | (exit $ac_status); } && {
|
---|
5083 | test -z "$ac_c_werror_flag" ||
|
---|
5084 | test ! -s conftest.err
|
---|
5085 | } && test -s conftest.$ac_objext; then
|
---|
5086 | ac_cv_type_off_t=yes
|
---|
5087 | else
|
---|
5088 | echo "$as_me: failed program was:" >&5
|
---|
5089 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5090 |
|
---|
5091 | ac_cv_type_off_t=no
|
---|
5092 | fi
|
---|
5093 |
|
---|
5094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5095 | fi
|
---|
5096 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
5097 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
|
---|
5098 | if test $ac_cv_type_off_t = yes; then
|
---|
5099 | :
|
---|
5100 | else
|
---|
5101 |
|
---|
5102 | cat >>confdefs.h <<_ACEOF
|
---|
5103 | #define off_t long int
|
---|
5104 | _ACEOF
|
---|
5105 |
|
---|
5106 | fi
|
---|
5107 |
|
---|
5108 | { echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
5109 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
---|
5110 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
5111 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5112 | else
|
---|
5113 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5114 | /* confdefs.h. */
|
---|
5115 | _ACEOF
|
---|
5116 | cat confdefs.h >>conftest.$ac_ext
|
---|
5117 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5118 | /* end confdefs.h. */
|
---|
5119 | $ac_includes_default
|
---|
5120 | typedef size_t ac__type_new_;
|
---|
5121 | int
|
---|
5122 | main ()
|
---|
5123 | {
|
---|
5124 | if ((ac__type_new_ *) 0)
|
---|
5125 | return 0;
|
---|
5126 | if (sizeof (ac__type_new_))
|
---|
5127 | return 0;
|
---|
5128 | ;
|
---|
5129 | return 0;
|
---|
5130 | }
|
---|
5131 | _ACEOF
|
---|
5132 | rm -f conftest.$ac_objext
|
---|
5133 | if { (ac_try="$ac_compile"
|
---|
5134 | case "(($ac_try" in
|
---|
5135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5136 | *) ac_try_echo=$ac_try;;
|
---|
5137 | esac
|
---|
5138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5139 | (eval "$ac_compile") 2>conftest.er1
|
---|
5140 | ac_status=$?
|
---|
5141 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5142 | rm -f conftest.er1
|
---|
5143 | cat conftest.err >&5
|
---|
5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5145 | (exit $ac_status); } && {
|
---|
5146 | test -z "$ac_c_werror_flag" ||
|
---|
5147 | test ! -s conftest.err
|
---|
5148 | } && test -s conftest.$ac_objext; then
|
---|
5149 | ac_cv_type_size_t=yes
|
---|
5150 | else
|
---|
5151 | echo "$as_me: failed program was:" >&5
|
---|
5152 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5153 |
|
---|
5154 | ac_cv_type_size_t=no
|
---|
5155 | fi
|
---|
5156 |
|
---|
5157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5158 | fi
|
---|
5159 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
5160 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
---|
5161 | if test $ac_cv_type_size_t = yes; then
|
---|
5162 | :
|
---|
5163 | else
|
---|
5164 |
|
---|
5165 | cat >>confdefs.h <<_ACEOF
|
---|
5166 | #define size_t unsigned int
|
---|
5167 | _ACEOF
|
---|
5168 |
|
---|
5169 | fi
|
---|
5170 |
|
---|
5171 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5172 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
---|
5173 | if test "${ac_cv_header_time+set}" = set; then
|
---|
5174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5175 | else
|
---|
5176 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5177 | /* confdefs.h. */
|
---|
5178 | _ACEOF
|
---|
5179 | cat confdefs.h >>conftest.$ac_ext
|
---|
5180 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5181 | /* end confdefs.h. */
|
---|
5182 | #include <sys/types.h>
|
---|
5183 | #include <sys/time.h>
|
---|
5184 | #include <time.h>
|
---|
5185 |
|
---|
5186 | int
|
---|
5187 | main ()
|
---|
5188 | {
|
---|
5189 | if ((struct tm *) 0)
|
---|
5190 | return 0;
|
---|
5191 | ;
|
---|
5192 | return 0;
|
---|
5193 | }
|
---|
5194 | _ACEOF
|
---|
5195 | rm -f conftest.$ac_objext
|
---|
5196 | if { (ac_try="$ac_compile"
|
---|
5197 | case "(($ac_try" in
|
---|
5198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5199 | *) ac_try_echo=$ac_try;;
|
---|
5200 | esac
|
---|
5201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5202 | (eval "$ac_compile") 2>conftest.er1
|
---|
5203 | ac_status=$?
|
---|
5204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5205 | rm -f conftest.er1
|
---|
5206 | cat conftest.err >&5
|
---|
5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5208 | (exit $ac_status); } && {
|
---|
5209 | test -z "$ac_c_werror_flag" ||
|
---|
5210 | test ! -s conftest.err
|
---|
5211 | } && test -s conftest.$ac_objext; then
|
---|
5212 | ac_cv_header_time=yes
|
---|
5213 | else
|
---|
5214 | echo "$as_me: failed program was:" >&5
|
---|
5215 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5216 |
|
---|
5217 | ac_cv_header_time=no
|
---|
5218 | fi
|
---|
5219 |
|
---|
5220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5221 | fi
|
---|
5222 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
5223 | echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
---|
5224 | if test $ac_cv_header_time = yes; then
|
---|
5225 |
|
---|
5226 | cat >>confdefs.h <<\_ACEOF
|
---|
5227 | #define TIME_WITH_SYS_TIME 1
|
---|
5228 | _ACEOF
|
---|
5229 |
|
---|
5230 | fi
|
---|
5231 |
|
---|
5232 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5233 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
---|
5234 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5236 | else
|
---|
5237 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5238 | /* confdefs.h. */
|
---|
5239 | _ACEOF
|
---|
5240 | cat confdefs.h >>conftest.$ac_ext
|
---|
5241 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5242 | /* end confdefs.h. */
|
---|
5243 | #include <sys/types.h>
|
---|
5244 | #include <time.h>
|
---|
5245 |
|
---|
5246 | int
|
---|
5247 | main ()
|
---|
5248 | {
|
---|
5249 | struct tm tm;
|
---|
5250 | int *p = &tm.tm_sec;
|
---|
5251 | return !p;
|
---|
5252 | ;
|
---|
5253 | return 0;
|
---|
5254 | }
|
---|
5255 | _ACEOF
|
---|
5256 | rm -f conftest.$ac_objext
|
---|
5257 | if { (ac_try="$ac_compile"
|
---|
5258 | case "(($ac_try" in
|
---|
5259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5260 | *) ac_try_echo=$ac_try;;
|
---|
5261 | esac
|
---|
5262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5263 | (eval "$ac_compile") 2>conftest.er1
|
---|
5264 | ac_status=$?
|
---|
5265 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5266 | rm -f conftest.er1
|
---|
5267 | cat conftest.err >&5
|
---|
5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5269 | (exit $ac_status); } && {
|
---|
5270 | test -z "$ac_c_werror_flag" ||
|
---|
5271 | test ! -s conftest.err
|
---|
5272 | } && test -s conftest.$ac_objext; then
|
---|
5273 | ac_cv_struct_tm=time.h
|
---|
5274 | else
|
---|
5275 | echo "$as_me: failed program was:" >&5
|
---|
5276 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5277 |
|
---|
5278 | ac_cv_struct_tm=sys/time.h
|
---|
5279 | fi
|
---|
5280 |
|
---|
5281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5282 | fi
|
---|
5283 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
5284 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
---|
5285 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5286 |
|
---|
5287 | cat >>confdefs.h <<\_ACEOF
|
---|
5288 | #define TM_IN_SYS_TIME 1
|
---|
5289 | _ACEOF
|
---|
5290 |
|
---|
5291 | fi
|
---|
5292 |
|
---|
5293 |
|
---|
5294 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5295 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5296 | /* confdefs.h. */
|
---|
5297 | _ACEOF
|
---|
5298 | cat confdefs.h >>conftest.$ac_ext
|
---|
5299 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5300 | /* end confdefs.h. */
|
---|
5301 | #include <stdio.h>
|
---|
5302 |
|
---|
5303 | int
|
---|
5304 | main ()
|
---|
5305 | {
|
---|
5306 | FILE *rubbish = popen("yes", "r");
|
---|
5307 | ;
|
---|
5308 | return 0;
|
---|
5309 | }
|
---|
5310 | _ACEOF
|
---|
5311 | rm -f conftest.$ac_objext
|
---|
5312 | if { (ac_try="$ac_compile"
|
---|
5313 | case "(($ac_try" in
|
---|
5314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5315 | *) ac_try_echo=$ac_try;;
|
---|
5316 | esac
|
---|
5317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5318 | (eval "$ac_compile") 2>conftest.er1
|
---|
5319 | ac_status=$?
|
---|
5320 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5321 | rm -f conftest.er1
|
---|
5322 | cat conftest.err >&5
|
---|
5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5324 | (exit $ac_status); } && {
|
---|
5325 | test -z "$ac_c_werror_flag" ||
|
---|
5326 | test ! -s conftest.err
|
---|
5327 | } && test -s conftest.$ac_objext; then
|
---|
5328 | :
|
---|
5329 | else
|
---|
5330 | echo "$as_me: failed program was:" >&5
|
---|
5331 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5332 |
|
---|
5333 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5334 | fi
|
---|
5335 |
|
---|
5336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5337 | fi
|
---|
5338 |
|
---|
5339 |
|
---|
5340 |
|
---|
5341 | { echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
5342 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
|
---|
5343 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
5344 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5345 | else
|
---|
5346 | ac_check_lib_save_LIBS=$LIBS
|
---|
5347 | LIBS="-lg $LIBS"
|
---|
5348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5349 | /* confdefs.h. */
|
---|
5350 | _ACEOF
|
---|
5351 | cat confdefs.h >>conftest.$ac_ext
|
---|
5352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5353 | /* end confdefs.h. */
|
---|
5354 |
|
---|
5355 |
|
---|
5356 | int
|
---|
5357 | main ()
|
---|
5358 | {
|
---|
5359 | return main ();
|
---|
5360 | ;
|
---|
5361 | return 0;
|
---|
5362 | }
|
---|
5363 | _ACEOF
|
---|
5364 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5365 | if { (ac_try="$ac_link"
|
---|
5366 | case "(($ac_try" in
|
---|
5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5368 | *) ac_try_echo=$ac_try;;
|
---|
5369 | esac
|
---|
5370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5371 | (eval "$ac_link") 2>conftest.er1
|
---|
5372 | ac_status=$?
|
---|
5373 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5374 | rm -f conftest.er1
|
---|
5375 | cat conftest.err >&5
|
---|
5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5377 | (exit $ac_status); } && {
|
---|
5378 | test -z "$ac_c_werror_flag" ||
|
---|
5379 | test ! -s conftest.err
|
---|
5380 | } && test -s conftest$ac_exeext &&
|
---|
5381 | $as_test_x conftest$ac_exeext; then
|
---|
5382 | ac_cv_lib_g_main=yes
|
---|
5383 | else
|
---|
5384 | echo "$as_me: failed program was:" >&5
|
---|
5385 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5386 |
|
---|
5387 | ac_cv_lib_g_main=no
|
---|
5388 | fi
|
---|
5389 |
|
---|
5390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5391 | conftest$ac_exeext conftest.$ac_ext
|
---|
5392 | LIBS=$ac_check_lib_save_LIBS
|
---|
5393 | fi
|
---|
5394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
5395 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
|
---|
5396 | if test $ac_cv_lib_g_main = yes; then
|
---|
5397 | cat >>confdefs.h <<_ACEOF
|
---|
5398 | #define HAVE_LIBG 1
|
---|
5399 | _ACEOF
|
---|
5400 |
|
---|
5401 | LIBS="-lg $LIBS"
|
---|
5402 |
|
---|
5403 | fi
|
---|
5404 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
5405 |
|
---|
5406 |
|
---|
5407 | { echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
5408 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
|
---|
5409 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5411 | else
|
---|
5412 | ac_check_lib_save_LIBS=$LIBS
|
---|
5413 | LIBS="-lm $LIBS"
|
---|
5414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5415 | /* confdefs.h. */
|
---|
5416 | _ACEOF
|
---|
5417 | cat confdefs.h >>conftest.$ac_ext
|
---|
5418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5419 | /* end confdefs.h. */
|
---|
5420 |
|
---|
5421 |
|
---|
5422 | int
|
---|
5423 | main ()
|
---|
5424 | {
|
---|
5425 | return main ();
|
---|
5426 | ;
|
---|
5427 | return 0;
|
---|
5428 | }
|
---|
5429 | _ACEOF
|
---|
5430 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5431 | if { (ac_try="$ac_link"
|
---|
5432 | case "(($ac_try" in
|
---|
5433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5434 | *) ac_try_echo=$ac_try;;
|
---|
5435 | esac
|
---|
5436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5437 | (eval "$ac_link") 2>conftest.er1
|
---|
5438 | ac_status=$?
|
---|
5439 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5440 | rm -f conftest.er1
|
---|
5441 | cat conftest.err >&5
|
---|
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5443 | (exit $ac_status); } && {
|
---|
5444 | test -z "$ac_c_werror_flag" ||
|
---|
5445 | test ! -s conftest.err
|
---|
5446 | } && test -s conftest$ac_exeext &&
|
---|
5447 | $as_test_x conftest$ac_exeext; then
|
---|
5448 | ac_cv_lib_m_main=yes
|
---|
5449 | else
|
---|
5450 | echo "$as_me: failed program was:" >&5
|
---|
5451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5452 |
|
---|
5453 | ac_cv_lib_m_main=no
|
---|
5454 | fi
|
---|
5455 |
|
---|
5456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5457 | conftest$ac_exeext conftest.$ac_ext
|
---|
5458 | LIBS=$ac_check_lib_save_LIBS
|
---|
5459 | fi
|
---|
5460 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
5461 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
|
---|
5462 | if test $ac_cv_lib_m_main = yes; then
|
---|
5463 | cat >>confdefs.h <<_ACEOF
|
---|
5464 | #define HAVE_LIBM 1
|
---|
5465 | _ACEOF
|
---|
5466 |
|
---|
5467 | LIBS="-lm $LIBS"
|
---|
5468 |
|
---|
5469 | fi
|
---|
5470 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
5471 |
|
---|
5472 |
|
---|
5473 | { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
5474 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
|
---|
5475 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
5476 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5477 | else
|
---|
5478 | ac_check_lib_save_LIBS=$LIBS
|
---|
5479 | LIBS="-lcrypt $LIBS"
|
---|
5480 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5481 | /* confdefs.h. */
|
---|
5482 | _ACEOF
|
---|
5483 | cat confdefs.h >>conftest.$ac_ext
|
---|
5484 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5485 | /* end confdefs.h. */
|
---|
5486 |
|
---|
5487 |
|
---|
5488 | int
|
---|
5489 | main ()
|
---|
5490 | {
|
---|
5491 | return main ();
|
---|
5492 | ;
|
---|
5493 | return 0;
|
---|
5494 | }
|
---|
5495 | _ACEOF
|
---|
5496 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5497 | if { (ac_try="$ac_link"
|
---|
5498 | case "(($ac_try" in
|
---|
5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5500 | *) ac_try_echo=$ac_try;;
|
---|
5501 | esac
|
---|
5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5503 | (eval "$ac_link") 2>conftest.er1
|
---|
5504 | ac_status=$?
|
---|
5505 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5506 | rm -f conftest.er1
|
---|
5507 | cat conftest.err >&5
|
---|
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5509 | (exit $ac_status); } && {
|
---|
5510 | test -z "$ac_c_werror_flag" ||
|
---|
5511 | test ! -s conftest.err
|
---|
5512 | } && test -s conftest$ac_exeext &&
|
---|
5513 | $as_test_x conftest$ac_exeext; then
|
---|
5514 | ac_cv_lib_crypt_main=yes
|
---|
5515 | else
|
---|
5516 | echo "$as_me: failed program was:" >&5
|
---|
5517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5518 |
|
---|
5519 | ac_cv_lib_crypt_main=no
|
---|
5520 | fi
|
---|
5521 |
|
---|
5522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5523 | conftest$ac_exeext conftest.$ac_ext
|
---|
5524 | LIBS=$ac_check_lib_save_LIBS
|
---|
5525 | fi
|
---|
5526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
5527 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
|
---|
5528 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
5529 | cat >>confdefs.h <<_ACEOF
|
---|
5530 | #define HAVE_LIBCRYPT 1
|
---|
5531 | _ACEOF
|
---|
5532 |
|
---|
5533 | LIBS="-lcrypt $LIBS"
|
---|
5534 |
|
---|
5535 | fi
|
---|
5536 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
5537 |
|
---|
5538 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5539 | #AC_HAVE_LIBRARY(iconv)
|
---|
5540 | #fi
|
---|
5541 |
|
---|
5542 |
|
---|
5543 |
|
---|
5544 |
|
---|
5545 |
|
---|
5546 |
|
---|
5547 | ac_header_dirent=no
|
---|
5548 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5549 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5550 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
5551 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
---|
5552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5553 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5554 | else
|
---|
5555 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5556 | /* confdefs.h. */
|
---|
5557 | _ACEOF
|
---|
5558 | cat confdefs.h >>conftest.$ac_ext
|
---|
5559 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5560 | /* end confdefs.h. */
|
---|
5561 | #include <sys/types.h>
|
---|
5562 | #include <$ac_hdr>
|
---|
5563 |
|
---|
5564 | int
|
---|
5565 | main ()
|
---|
5566 | {
|
---|
5567 | if ((DIR *) 0)
|
---|
5568 | return 0;
|
---|
5569 | ;
|
---|
5570 | return 0;
|
---|
5571 | }
|
---|
5572 | _ACEOF
|
---|
5573 | rm -f conftest.$ac_objext
|
---|
5574 | if { (ac_try="$ac_compile"
|
---|
5575 | case "(($ac_try" in
|
---|
5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5577 | *) ac_try_echo=$ac_try;;
|
---|
5578 | esac
|
---|
5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5580 | (eval "$ac_compile") 2>conftest.er1
|
---|
5581 | ac_status=$?
|
---|
5582 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5583 | rm -f conftest.er1
|
---|
5584 | cat conftest.err >&5
|
---|
5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5586 | (exit $ac_status); } && {
|
---|
5587 | test -z "$ac_c_werror_flag" ||
|
---|
5588 | test ! -s conftest.err
|
---|
5589 | } && test -s conftest.$ac_objext; then
|
---|
5590 | eval "$as_ac_Header=yes"
|
---|
5591 | else
|
---|
5592 | echo "$as_me: failed program was:" >&5
|
---|
5593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5594 |
|
---|
5595 | eval "$as_ac_Header=no"
|
---|
5596 | fi
|
---|
5597 |
|
---|
5598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5599 | fi
|
---|
5600 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
5601 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
5602 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
5603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5604 | cat >>confdefs.h <<_ACEOF
|
---|
5605 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5606 | _ACEOF
|
---|
5607 |
|
---|
5608 | ac_header_dirent=$ac_hdr; break
|
---|
5609 | fi
|
---|
5610 |
|
---|
5611 | done
|
---|
5612 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5613 | if test $ac_header_dirent = dirent.h; then
|
---|
5614 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5615 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
5616 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5618 | else
|
---|
5619 | ac_func_search_save_LIBS=$LIBS
|
---|
5620 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5621 | /* confdefs.h. */
|
---|
5622 | _ACEOF
|
---|
5623 | cat confdefs.h >>conftest.$ac_ext
|
---|
5624 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5625 | /* end confdefs.h. */
|
---|
5626 |
|
---|
5627 | /* Override any GCC internal prototype to avoid an error.
|
---|
5628 | Use char because int might match the return type of a GCC
|
---|
5629 | builtin and then its argument prototype would still apply. */
|
---|
5630 | #ifdef __cplusplus
|
---|
5631 | extern "C"
|
---|
5632 | #endif
|
---|
5633 | char opendir ();
|
---|
5634 | int
|
---|
5635 | main ()
|
---|
5636 | {
|
---|
5637 | return opendir ();
|
---|
5638 | ;
|
---|
5639 | return 0;
|
---|
5640 | }
|
---|
5641 | _ACEOF
|
---|
5642 | for ac_lib in '' dir; do
|
---|
5643 | if test -z "$ac_lib"; then
|
---|
5644 | ac_res="none required"
|
---|
5645 | else
|
---|
5646 | ac_res=-l$ac_lib
|
---|
5647 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5648 | fi
|
---|
5649 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5650 | if { (ac_try="$ac_link"
|
---|
5651 | case "(($ac_try" in
|
---|
5652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5653 | *) ac_try_echo=$ac_try;;
|
---|
5654 | esac
|
---|
5655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5656 | (eval "$ac_link") 2>conftest.er1
|
---|
5657 | ac_status=$?
|
---|
5658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5659 | rm -f conftest.er1
|
---|
5660 | cat conftest.err >&5
|
---|
5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5662 | (exit $ac_status); } && {
|
---|
5663 | test -z "$ac_c_werror_flag" ||
|
---|
5664 | test ! -s conftest.err
|
---|
5665 | } && test -s conftest$ac_exeext &&
|
---|
5666 | $as_test_x conftest$ac_exeext; then
|
---|
5667 | ac_cv_search_opendir=$ac_res
|
---|
5668 | else
|
---|
5669 | echo "$as_me: failed program was:" >&5
|
---|
5670 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5671 |
|
---|
5672 |
|
---|
5673 | fi
|
---|
5674 |
|
---|
5675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5676 | conftest$ac_exeext
|
---|
5677 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5678 | break
|
---|
5679 | fi
|
---|
5680 | done
|
---|
5681 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5682 | :
|
---|
5683 | else
|
---|
5684 | ac_cv_search_opendir=no
|
---|
5685 | fi
|
---|
5686 | rm conftest.$ac_ext
|
---|
5687 | LIBS=$ac_func_search_save_LIBS
|
---|
5688 | fi
|
---|
5689 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5690 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
5691 | ac_res=$ac_cv_search_opendir
|
---|
5692 | if test "$ac_res" != no; then
|
---|
5693 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5694 |
|
---|
5695 | fi
|
---|
5696 |
|
---|
5697 | else
|
---|
5698 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
5699 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
5700 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5702 | else
|
---|
5703 | ac_func_search_save_LIBS=$LIBS
|
---|
5704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5705 | /* confdefs.h. */
|
---|
5706 | _ACEOF
|
---|
5707 | cat confdefs.h >>conftest.$ac_ext
|
---|
5708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5709 | /* end confdefs.h. */
|
---|
5710 |
|
---|
5711 | /* Override any GCC internal prototype to avoid an error.
|
---|
5712 | Use char because int might match the return type of a GCC
|
---|
5713 | builtin and then its argument prototype would still apply. */
|
---|
5714 | #ifdef __cplusplus
|
---|
5715 | extern "C"
|
---|
5716 | #endif
|
---|
5717 | char opendir ();
|
---|
5718 | int
|
---|
5719 | main ()
|
---|
5720 | {
|
---|
5721 | return opendir ();
|
---|
5722 | ;
|
---|
5723 | return 0;
|
---|
5724 | }
|
---|
5725 | _ACEOF
|
---|
5726 | for ac_lib in '' x; do
|
---|
5727 | if test -z "$ac_lib"; then
|
---|
5728 | ac_res="none required"
|
---|
5729 | else
|
---|
5730 | ac_res=-l$ac_lib
|
---|
5731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5732 | fi
|
---|
5733 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5734 | if { (ac_try="$ac_link"
|
---|
5735 | case "(($ac_try" in
|
---|
5736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5737 | *) ac_try_echo=$ac_try;;
|
---|
5738 | esac
|
---|
5739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5740 | (eval "$ac_link") 2>conftest.er1
|
---|
5741 | ac_status=$?
|
---|
5742 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5743 | rm -f conftest.er1
|
---|
5744 | cat conftest.err >&5
|
---|
5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5746 | (exit $ac_status); } && {
|
---|
5747 | test -z "$ac_c_werror_flag" ||
|
---|
5748 | test ! -s conftest.err
|
---|
5749 | } && test -s conftest$ac_exeext &&
|
---|
5750 | $as_test_x conftest$ac_exeext; then
|
---|
5751 | ac_cv_search_opendir=$ac_res
|
---|
5752 | else
|
---|
5753 | echo "$as_me: failed program was:" >&5
|
---|
5754 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5755 |
|
---|
5756 |
|
---|
5757 | fi
|
---|
5758 |
|
---|
5759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5760 | conftest$ac_exeext
|
---|
5761 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5762 | break
|
---|
5763 | fi
|
---|
5764 | done
|
---|
5765 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
5766 | :
|
---|
5767 | else
|
---|
5768 | ac_cv_search_opendir=no
|
---|
5769 | fi
|
---|
5770 | rm conftest.$ac_ext
|
---|
5771 | LIBS=$ac_func_search_save_LIBS
|
---|
5772 | fi
|
---|
5773 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5774 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
5775 | ac_res=$ac_cv_search_opendir
|
---|
5776 | if test "$ac_res" != no; then
|
---|
5777 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5778 |
|
---|
5779 | fi
|
---|
5780 |
|
---|
5781 | fi
|
---|
5782 |
|
---|
5783 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5784 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
5785 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5786 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5787 | else
|
---|
5788 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5789 | /* confdefs.h. */
|
---|
5790 | _ACEOF
|
---|
5791 | cat confdefs.h >>conftest.$ac_ext
|
---|
5792 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5793 | /* end confdefs.h. */
|
---|
5794 | #include <stdlib.h>
|
---|
5795 | #include <stdarg.h>
|
---|
5796 | #include <string.h>
|
---|
5797 | #include <float.h>
|
---|
5798 |
|
---|
5799 | int
|
---|
5800 | main ()
|
---|
5801 | {
|
---|
5802 |
|
---|
5803 | ;
|
---|
5804 | return 0;
|
---|
5805 | }
|
---|
5806 | _ACEOF
|
---|
5807 | rm -f conftest.$ac_objext
|
---|
5808 | if { (ac_try="$ac_compile"
|
---|
5809 | case "(($ac_try" in
|
---|
5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5811 | *) ac_try_echo=$ac_try;;
|
---|
5812 | esac
|
---|
5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5814 | (eval "$ac_compile") 2>conftest.er1
|
---|
5815 | ac_status=$?
|
---|
5816 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5817 | rm -f conftest.er1
|
---|
5818 | cat conftest.err >&5
|
---|
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5820 | (exit $ac_status); } && {
|
---|
5821 | test -z "$ac_c_werror_flag" ||
|
---|
5822 | test ! -s conftest.err
|
---|
5823 | } && test -s conftest.$ac_objext; then
|
---|
5824 | ac_cv_header_stdc=yes
|
---|
5825 | else
|
---|
5826 | echo "$as_me: failed program was:" >&5
|
---|
5827 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5828 |
|
---|
5829 | ac_cv_header_stdc=no
|
---|
5830 | fi
|
---|
5831 |
|
---|
5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5833 |
|
---|
5834 | if test $ac_cv_header_stdc = yes; then
|
---|
5835 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5836 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5837 | /* confdefs.h. */
|
---|
5838 | _ACEOF
|
---|
5839 | cat confdefs.h >>conftest.$ac_ext
|
---|
5840 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5841 | /* end confdefs.h. */
|
---|
5842 | #include <string.h>
|
---|
5843 |
|
---|
5844 | _ACEOF
|
---|
5845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5846 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5847 | :
|
---|
5848 | else
|
---|
5849 | ac_cv_header_stdc=no
|
---|
5850 | fi
|
---|
5851 | rm -f conftest*
|
---|
5852 |
|
---|
5853 | fi
|
---|
5854 |
|
---|
5855 | if test $ac_cv_header_stdc = yes; then
|
---|
5856 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5857 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5858 | /* confdefs.h. */
|
---|
5859 | _ACEOF
|
---|
5860 | cat confdefs.h >>conftest.$ac_ext
|
---|
5861 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5862 | /* end confdefs.h. */
|
---|
5863 | #include <stdlib.h>
|
---|
5864 |
|
---|
5865 | _ACEOF
|
---|
5866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5867 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5868 | :
|
---|
5869 | else
|
---|
5870 | ac_cv_header_stdc=no
|
---|
5871 | fi
|
---|
5872 | rm -f conftest*
|
---|
5873 |
|
---|
5874 | fi
|
---|
5875 |
|
---|
5876 | if test $ac_cv_header_stdc = yes; then
|
---|
5877 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5878 | if test "$cross_compiling" = yes; then
|
---|
5879 | :
|
---|
5880 | else
|
---|
5881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5882 | /* confdefs.h. */
|
---|
5883 | _ACEOF
|
---|
5884 | cat confdefs.h >>conftest.$ac_ext
|
---|
5885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5886 | /* end confdefs.h. */
|
---|
5887 | #include <ctype.h>
|
---|
5888 | #include <stdlib.h>
|
---|
5889 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5890 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5891 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5892 | #else
|
---|
5893 | # define ISLOWER(c) \
|
---|
5894 | (('a' <= (c) && (c) <= 'i') \
|
---|
5895 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5896 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5897 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5898 | #endif
|
---|
5899 |
|
---|
5900 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5901 | int
|
---|
5902 | main ()
|
---|
5903 | {
|
---|
5904 | int i;
|
---|
5905 | for (i = 0; i < 256; i++)
|
---|
5906 | if (XOR (islower (i), ISLOWER (i))
|
---|
5907 | || toupper (i) != TOUPPER (i))
|
---|
5908 | return 2;
|
---|
5909 | return 0;
|
---|
5910 | }
|
---|
5911 | _ACEOF
|
---|
5912 | rm -f conftest$ac_exeext
|
---|
5913 | if { (ac_try="$ac_link"
|
---|
5914 | case "(($ac_try" in
|
---|
5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5916 | *) ac_try_echo=$ac_try;;
|
---|
5917 | esac
|
---|
5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5919 | (eval "$ac_link") 2>&5
|
---|
5920 | ac_status=$?
|
---|
5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5923 | { (case "(($ac_try" in
|
---|
5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5925 | *) ac_try_echo=$ac_try;;
|
---|
5926 | esac
|
---|
5927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5928 | (eval "$ac_try") 2>&5
|
---|
5929 | ac_status=$?
|
---|
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5931 | (exit $ac_status); }; }; then
|
---|
5932 | :
|
---|
5933 | else
|
---|
5934 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5935 | echo "$as_me: failed program was:" >&5
|
---|
5936 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5937 |
|
---|
5938 | ( exit $ac_status )
|
---|
5939 | ac_cv_header_stdc=no
|
---|
5940 | fi
|
---|
5941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5942 | fi
|
---|
5943 |
|
---|
5944 |
|
---|
5945 | fi
|
---|
5946 | fi
|
---|
5947 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5948 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
5949 | if test $ac_cv_header_stdc = yes; then
|
---|
5950 |
|
---|
5951 | cat >>confdefs.h <<\_ACEOF
|
---|
5952 | #define STDC_HEADERS 1
|
---|
5953 | _ACEOF
|
---|
5954 |
|
---|
5955 | fi
|
---|
5956 |
|
---|
5957 |
|
---|
5958 |
|
---|
5959 |
|
---|
5960 |
|
---|
5961 |
|
---|
5962 |
|
---|
5963 |
|
---|
5964 |
|
---|
5965 |
|
---|
5966 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5967 | do
|
---|
5968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
5972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
5973 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5974 | fi
|
---|
5975 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
5976 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
5977 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
5978 | else
|
---|
5979 | # Is the header compilable?
|
---|
5980 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
5982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5983 | /* confdefs.h. */
|
---|
5984 | _ACEOF
|
---|
5985 | cat confdefs.h >>conftest.$ac_ext
|
---|
5986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5987 | /* end confdefs.h. */
|
---|
5988 | $ac_includes_default
|
---|
5989 | #include <$ac_header>
|
---|
5990 | _ACEOF
|
---|
5991 | rm -f conftest.$ac_objext
|
---|
5992 | if { (ac_try="$ac_compile"
|
---|
5993 | case "(($ac_try" in
|
---|
5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5995 | *) ac_try_echo=$ac_try;;
|
---|
5996 | esac
|
---|
5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5998 | (eval "$ac_compile") 2>conftest.er1
|
---|
5999 | ac_status=$?
|
---|
6000 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6001 | rm -f conftest.er1
|
---|
6002 | cat conftest.err >&5
|
---|
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6004 | (exit $ac_status); } && {
|
---|
6005 | test -z "$ac_c_werror_flag" ||
|
---|
6006 | test ! -s conftest.err
|
---|
6007 | } && test -s conftest.$ac_objext; then
|
---|
6008 | ac_header_compiler=yes
|
---|
6009 | else
|
---|
6010 | echo "$as_me: failed program was:" >&5
|
---|
6011 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6012 |
|
---|
6013 | ac_header_compiler=no
|
---|
6014 | fi
|
---|
6015 |
|
---|
6016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6017 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6018 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
6019 |
|
---|
6020 | # Is the header present?
|
---|
6021 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
6022 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
6023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6024 | /* confdefs.h. */
|
---|
6025 | _ACEOF
|
---|
6026 | cat confdefs.h >>conftest.$ac_ext
|
---|
6027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6028 | /* end confdefs.h. */
|
---|
6029 | #include <$ac_header>
|
---|
6030 | _ACEOF
|
---|
6031 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
6032 | case "(($ac_try" in
|
---|
6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6034 | *) ac_try_echo=$ac_try;;
|
---|
6035 | esac
|
---|
6036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
6038 | ac_status=$?
|
---|
6039 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6040 | rm -f conftest.er1
|
---|
6041 | cat conftest.err >&5
|
---|
6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6043 | (exit $ac_status); } >/dev/null && {
|
---|
6044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
6045 | test ! -s conftest.err
|
---|
6046 | }; then
|
---|
6047 | ac_header_preproc=yes
|
---|
6048 | else
|
---|
6049 | echo "$as_me: failed program was:" >&5
|
---|
6050 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6051 |
|
---|
6052 | ac_header_preproc=no
|
---|
6053 | fi
|
---|
6054 |
|
---|
6055 | rm -f conftest.err conftest.$ac_ext
|
---|
6056 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6057 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
6058 |
|
---|
6059 | # So? What about this header?
|
---|
6060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6061 | yes:no: )
|
---|
6062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
6065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
6066 | ac_header_preproc=yes
|
---|
6067 | ;;
|
---|
6068 | no:yes:* )
|
---|
6069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
6070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
6071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
6072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
6073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
6074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
6075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
6078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
6079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
6080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
6081 |
|
---|
6082 | ;;
|
---|
6083 | esac
|
---|
6084 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
6085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
6086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6087 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6088 | else
|
---|
6089 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
6090 | fi
|
---|
6091 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
6092 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6093 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6094 |
|
---|
6095 | fi
|
---|
6096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
6097 | cat >>confdefs.h <<_ACEOF
|
---|
6098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
6099 | _ACEOF
|
---|
6100 |
|
---|
6101 | fi
|
---|
6102 |
|
---|
6103 | done
|
---|
6104 |
|
---|
6105 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6106 | /* confdefs.h. */
|
---|
6107 | _ACEOF
|
---|
6108 | cat confdefs.h >>conftest.$ac_ext
|
---|
6109 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6110 | /* end confdefs.h. */
|
---|
6111 | #include <stdio.h>
|
---|
6112 |
|
---|
6113 | _ACEOF
|
---|
6114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6115 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
6116 | cat >>confdefs.h <<\_ACEOF
|
---|
6117 | #define HAVE_FREAD_DECL 1
|
---|
6118 | _ACEOF
|
---|
6119 |
|
---|
6120 | fi
|
---|
6121 | rm -f conftest*
|
---|
6122 |
|
---|
6123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6124 | /* confdefs.h. */
|
---|
6125 | _ACEOF
|
---|
6126 | cat confdefs.h >>conftest.$ac_ext
|
---|
6127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6128 | /* end confdefs.h. */
|
---|
6129 | #include <stdio.h>
|
---|
6130 |
|
---|
6131 | _ACEOF
|
---|
6132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6133 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
6134 | cat >>confdefs.h <<\_ACEOF
|
---|
6135 | #define HAVE_FGETC_DECL 1
|
---|
6136 | _ACEOF
|
---|
6137 |
|
---|
6138 | fi
|
---|
6139 | rm -f conftest*
|
---|
6140 |
|
---|
6141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6142 | /* confdefs.h. */
|
---|
6143 | _ACEOF
|
---|
6144 | cat confdefs.h >>conftest.$ac_ext
|
---|
6145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6146 | /* end confdefs.h. */
|
---|
6147 | #include <sys/procfs.h>
|
---|
6148 |
|
---|
6149 | _ACEOF
|
---|
6150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6151 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
6152 | cat >>confdefs.h <<\_ACEOF
|
---|
6153 | #define HAVE_PR_BRKSIZE 1
|
---|
6154 | _ACEOF
|
---|
6155 |
|
---|
6156 | fi
|
---|
6157 | rm -f conftest*
|
---|
6158 |
|
---|
6159 |
|
---|
6160 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
6161 | # for constant arguments. Useless!
|
---|
6162 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
6163 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
|
---|
6164 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
6165 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6166 | else
|
---|
6167 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6168 | /* confdefs.h. */
|
---|
6169 | _ACEOF
|
---|
6170 | cat confdefs.h >>conftest.$ac_ext
|
---|
6171 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6172 | /* end confdefs.h. */
|
---|
6173 | #include <alloca.h>
|
---|
6174 | int
|
---|
6175 | main ()
|
---|
6176 | {
|
---|
6177 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
6178 | if (p) return 0;
|
---|
6179 | ;
|
---|
6180 | return 0;
|
---|
6181 | }
|
---|
6182 | _ACEOF
|
---|
6183 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6184 | if { (ac_try="$ac_link"
|
---|
6185 | case "(($ac_try" in
|
---|
6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6187 | *) ac_try_echo=$ac_try;;
|
---|
6188 | esac
|
---|
6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6190 | (eval "$ac_link") 2>conftest.er1
|
---|
6191 | ac_status=$?
|
---|
6192 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6193 | rm -f conftest.er1
|
---|
6194 | cat conftest.err >&5
|
---|
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6196 | (exit $ac_status); } && {
|
---|
6197 | test -z "$ac_c_werror_flag" ||
|
---|
6198 | test ! -s conftest.err
|
---|
6199 | } && test -s conftest$ac_exeext &&
|
---|
6200 | $as_test_x conftest$ac_exeext; then
|
---|
6201 | ac_cv_working_alloca_h=yes
|
---|
6202 | else
|
---|
6203 | echo "$as_me: failed program was:" >&5
|
---|
6204 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6205 |
|
---|
6206 | ac_cv_working_alloca_h=no
|
---|
6207 | fi
|
---|
6208 |
|
---|
6209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6210 | conftest$ac_exeext conftest.$ac_ext
|
---|
6211 | fi
|
---|
6212 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
6213 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
|
---|
6214 | if test $ac_cv_working_alloca_h = yes; then
|
---|
6215 |
|
---|
6216 | cat >>confdefs.h <<\_ACEOF
|
---|
6217 | #define HAVE_ALLOCA_H 1
|
---|
6218 | _ACEOF
|
---|
6219 |
|
---|
6220 | fi
|
---|
6221 |
|
---|
6222 | { echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
6223 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
|
---|
6224 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
6225 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6226 | else
|
---|
6227 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6228 | /* confdefs.h. */
|
---|
6229 | _ACEOF
|
---|
6230 | cat confdefs.h >>conftest.$ac_ext
|
---|
6231 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6232 | /* end confdefs.h. */
|
---|
6233 | #ifdef __GNUC__
|
---|
6234 | # define alloca __builtin_alloca
|
---|
6235 | #else
|
---|
6236 | # ifdef _MSC_VER
|
---|
6237 | # include <malloc.h>
|
---|
6238 | # define alloca _alloca
|
---|
6239 | # else
|
---|
6240 | # ifdef HAVE_ALLOCA_H
|
---|
6241 | # include <alloca.h>
|
---|
6242 | # else
|
---|
6243 | # ifdef _AIX
|
---|
6244 | #pragma alloca
|
---|
6245 | # else
|
---|
6246 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
6247 | char *alloca ();
|
---|
6248 | # endif
|
---|
6249 | # endif
|
---|
6250 | # endif
|
---|
6251 | # endif
|
---|
6252 | #endif
|
---|
6253 |
|
---|
6254 | int
|
---|
6255 | main ()
|
---|
6256 | {
|
---|
6257 | char *p = (char *) alloca (1);
|
---|
6258 | if (p) return 0;
|
---|
6259 | ;
|
---|
6260 | return 0;
|
---|
6261 | }
|
---|
6262 | _ACEOF
|
---|
6263 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6264 | if { (ac_try="$ac_link"
|
---|
6265 | case "(($ac_try" in
|
---|
6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6267 | *) ac_try_echo=$ac_try;;
|
---|
6268 | esac
|
---|
6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6270 | (eval "$ac_link") 2>conftest.er1
|
---|
6271 | ac_status=$?
|
---|
6272 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6273 | rm -f conftest.er1
|
---|
6274 | cat conftest.err >&5
|
---|
6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6276 | (exit $ac_status); } && {
|
---|
6277 | test -z "$ac_c_werror_flag" ||
|
---|
6278 | test ! -s conftest.err
|
---|
6279 | } && test -s conftest$ac_exeext &&
|
---|
6280 | $as_test_x conftest$ac_exeext; then
|
---|
6281 | ac_cv_func_alloca_works=yes
|
---|
6282 | else
|
---|
6283 | echo "$as_me: failed program was:" >&5
|
---|
6284 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6285 |
|
---|
6286 | ac_cv_func_alloca_works=no
|
---|
6287 | fi
|
---|
6288 |
|
---|
6289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6290 | conftest$ac_exeext conftest.$ac_ext
|
---|
6291 | fi
|
---|
6292 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
6293 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
|
---|
6294 |
|
---|
6295 | if test $ac_cv_func_alloca_works = yes; then
|
---|
6296 |
|
---|
6297 | cat >>confdefs.h <<\_ACEOF
|
---|
6298 | #define HAVE_ALLOCA 1
|
---|
6299 | _ACEOF
|
---|
6300 |
|
---|
6301 | else
|
---|
6302 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
6303 | # that cause trouble. Some versions do not even contain alloca or
|
---|
6304 | # contain a buggy version. If you still want to use their alloca,
|
---|
6305 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
6306 |
|
---|
6307 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
6308 |
|
---|
6309 | cat >>confdefs.h <<\_ACEOF
|
---|
6310 | #define C_ALLOCA 1
|
---|
6311 | _ACEOF
|
---|
6312 |
|
---|
6313 |
|
---|
6314 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
6315 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
|
---|
6316 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
6317 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6318 | else
|
---|
6319 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6320 | /* confdefs.h. */
|
---|
6321 | _ACEOF
|
---|
6322 | cat confdefs.h >>conftest.$ac_ext
|
---|
6323 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6324 | /* end confdefs.h. */
|
---|
6325 | #if defined CRAY && ! defined CRAY2
|
---|
6326 | webecray
|
---|
6327 | #else
|
---|
6328 | wenotbecray
|
---|
6329 | #endif
|
---|
6330 |
|
---|
6331 | _ACEOF
|
---|
6332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6333 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
6334 | ac_cv_os_cray=yes
|
---|
6335 | else
|
---|
6336 | ac_cv_os_cray=no
|
---|
6337 | fi
|
---|
6338 | rm -f conftest*
|
---|
6339 |
|
---|
6340 | fi
|
---|
6341 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
6342 | echo "${ECHO_T}$ac_cv_os_cray" >&6; }
|
---|
6343 | if test $ac_cv_os_cray = yes; then
|
---|
6344 | for ac_func in _getb67 GETB67 getb67; do
|
---|
6345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6346 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6348 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6349 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6350 | else
|
---|
6351 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6352 | /* confdefs.h. */
|
---|
6353 | _ACEOF
|
---|
6354 | cat confdefs.h >>conftest.$ac_ext
|
---|
6355 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6356 | /* end confdefs.h. */
|
---|
6357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6359 | #define $ac_func innocuous_$ac_func
|
---|
6360 |
|
---|
6361 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6362 | which can conflict with char $ac_func (); below.
|
---|
6363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6364 | <limits.h> exists even on freestanding compilers. */
|
---|
6365 |
|
---|
6366 | #ifdef __STDC__
|
---|
6367 | # include <limits.h>
|
---|
6368 | #else
|
---|
6369 | # include <assert.h>
|
---|
6370 | #endif
|
---|
6371 |
|
---|
6372 | #undef $ac_func
|
---|
6373 |
|
---|
6374 | /* Override any GCC internal prototype to avoid an error.
|
---|
6375 | Use char because int might match the return type of a GCC
|
---|
6376 | builtin and then its argument prototype would still apply. */
|
---|
6377 | #ifdef __cplusplus
|
---|
6378 | extern "C"
|
---|
6379 | #endif
|
---|
6380 | char $ac_func ();
|
---|
6381 | /* The GNU C library defines this for functions which it implements
|
---|
6382 | to always fail with ENOSYS. Some functions are actually named
|
---|
6383 | something starting with __ and the normal name is an alias. */
|
---|
6384 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6385 | choke me
|
---|
6386 | #endif
|
---|
6387 |
|
---|
6388 | int
|
---|
6389 | main ()
|
---|
6390 | {
|
---|
6391 | return $ac_func ();
|
---|
6392 | ;
|
---|
6393 | return 0;
|
---|
6394 | }
|
---|
6395 | _ACEOF
|
---|
6396 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6397 | if { (ac_try="$ac_link"
|
---|
6398 | case "(($ac_try" in
|
---|
6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6400 | *) ac_try_echo=$ac_try;;
|
---|
6401 | esac
|
---|
6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6403 | (eval "$ac_link") 2>conftest.er1
|
---|
6404 | ac_status=$?
|
---|
6405 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6406 | rm -f conftest.er1
|
---|
6407 | cat conftest.err >&5
|
---|
6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6409 | (exit $ac_status); } && {
|
---|
6410 | test -z "$ac_c_werror_flag" ||
|
---|
6411 | test ! -s conftest.err
|
---|
6412 | } && test -s conftest$ac_exeext &&
|
---|
6413 | $as_test_x conftest$ac_exeext; then
|
---|
6414 | eval "$as_ac_var=yes"
|
---|
6415 | else
|
---|
6416 | echo "$as_me: failed program was:" >&5
|
---|
6417 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6418 |
|
---|
6419 | eval "$as_ac_var=no"
|
---|
6420 | fi
|
---|
6421 |
|
---|
6422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6423 | conftest$ac_exeext conftest.$ac_ext
|
---|
6424 | fi
|
---|
6425 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6426 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6427 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6428 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6429 |
|
---|
6430 | cat >>confdefs.h <<_ACEOF
|
---|
6431 | #define CRAY_STACKSEG_END $ac_func
|
---|
6432 | _ACEOF
|
---|
6433 |
|
---|
6434 | break
|
---|
6435 | fi
|
---|
6436 |
|
---|
6437 | done
|
---|
6438 | fi
|
---|
6439 |
|
---|
6440 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
6441 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
|
---|
6442 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
6443 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6444 | else
|
---|
6445 | if test "$cross_compiling" = yes; then
|
---|
6446 | ac_cv_c_stack_direction=0
|
---|
6447 | else
|
---|
6448 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6449 | /* confdefs.h. */
|
---|
6450 | _ACEOF
|
---|
6451 | cat confdefs.h >>conftest.$ac_ext
|
---|
6452 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6453 | /* end confdefs.h. */
|
---|
6454 | $ac_includes_default
|
---|
6455 | int
|
---|
6456 | find_stack_direction ()
|
---|
6457 | {
|
---|
6458 | static char *addr = 0;
|
---|
6459 | auto char dummy;
|
---|
6460 | if (addr == 0)
|
---|
6461 | {
|
---|
6462 | addr = &dummy;
|
---|
6463 | return find_stack_direction ();
|
---|
6464 | }
|
---|
6465 | else
|
---|
6466 | return (&dummy > addr) ? 1 : -1;
|
---|
6467 | }
|
---|
6468 |
|
---|
6469 | int
|
---|
6470 | main ()
|
---|
6471 | {
|
---|
6472 | return find_stack_direction () < 0;
|
---|
6473 | }
|
---|
6474 | _ACEOF
|
---|
6475 | rm -f conftest$ac_exeext
|
---|
6476 | if { (ac_try="$ac_link"
|
---|
6477 | case "(($ac_try" in
|
---|
6478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6479 | *) ac_try_echo=$ac_try;;
|
---|
6480 | esac
|
---|
6481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6482 | (eval "$ac_link") 2>&5
|
---|
6483 | ac_status=$?
|
---|
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
6486 | { (case "(($ac_try" in
|
---|
6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6488 | *) ac_try_echo=$ac_try;;
|
---|
6489 | esac
|
---|
6490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6491 | (eval "$ac_try") 2>&5
|
---|
6492 | ac_status=$?
|
---|
6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6494 | (exit $ac_status); }; }; then
|
---|
6495 | ac_cv_c_stack_direction=1
|
---|
6496 | else
|
---|
6497 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
6498 | echo "$as_me: failed program was:" >&5
|
---|
6499 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6500 |
|
---|
6501 | ( exit $ac_status )
|
---|
6502 | ac_cv_c_stack_direction=-1
|
---|
6503 | fi
|
---|
6504 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
6505 | fi
|
---|
6506 |
|
---|
6507 |
|
---|
6508 | fi
|
---|
6509 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
6510 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
|
---|
6511 |
|
---|
6512 | cat >>confdefs.h <<_ACEOF
|
---|
6513 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
6514 | _ACEOF
|
---|
6515 |
|
---|
6516 |
|
---|
6517 | fi
|
---|
6518 |
|
---|
6519 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
6520 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
6521 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
---|
6522 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
6523 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6524 | else
|
---|
6525 | ac_pattern="Autoconf.*'x'"
|
---|
6526 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6527 | /* confdefs.h. */
|
---|
6528 | _ACEOF
|
---|
6529 | cat confdefs.h >>conftest.$ac_ext
|
---|
6530 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6531 | /* end confdefs.h. */
|
---|
6532 | #include <sgtty.h>
|
---|
6533 | Autoconf TIOCGETP
|
---|
6534 | _ACEOF
|
---|
6535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6536 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
6537 | ac_cv_prog_gcc_traditional=yes
|
---|
6538 | else
|
---|
6539 | ac_cv_prog_gcc_traditional=no
|
---|
6540 | fi
|
---|
6541 | rm -f conftest*
|
---|
6542 |
|
---|
6543 |
|
---|
6544 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
6545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6546 | /* confdefs.h. */
|
---|
6547 | _ACEOF
|
---|
6548 | cat confdefs.h >>conftest.$ac_ext
|
---|
6549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6550 | /* end confdefs.h. */
|
---|
6551 | #include <termio.h>
|
---|
6552 | Autoconf TCGETA
|
---|
6553 | _ACEOF
|
---|
6554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6555 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
6556 | ac_cv_prog_gcc_traditional=yes
|
---|
6557 | fi
|
---|
6558 | rm -f conftest*
|
---|
6559 |
|
---|
6560 | fi
|
---|
6561 | fi
|
---|
6562 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
6563 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
---|
6564 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
6565 | CC="$CC -traditional"
|
---|
6566 | fi
|
---|
6567 | fi
|
---|
6568 |
|
---|
6569 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
6570 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
---|
6571 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
6572 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6573 | else
|
---|
6574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6575 | /* confdefs.h. */
|
---|
6576 | _ACEOF
|
---|
6577 | cat confdefs.h >>conftest.$ac_ext
|
---|
6578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6579 | /* end confdefs.h. */
|
---|
6580 | #include <sys/types.h>
|
---|
6581 | #include <signal.h>
|
---|
6582 |
|
---|
6583 | int
|
---|
6584 | main ()
|
---|
6585 | {
|
---|
6586 | return *(signal (0, 0)) (0) == 1;
|
---|
6587 | ;
|
---|
6588 | return 0;
|
---|
6589 | }
|
---|
6590 | _ACEOF
|
---|
6591 | rm -f conftest.$ac_objext
|
---|
6592 | if { (ac_try="$ac_compile"
|
---|
6593 | case "(($ac_try" in
|
---|
6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6595 | *) ac_try_echo=$ac_try;;
|
---|
6596 | esac
|
---|
6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6598 | (eval "$ac_compile") 2>conftest.er1
|
---|
6599 | ac_status=$?
|
---|
6600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6601 | rm -f conftest.er1
|
---|
6602 | cat conftest.err >&5
|
---|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6604 | (exit $ac_status); } && {
|
---|
6605 | test -z "$ac_c_werror_flag" ||
|
---|
6606 | test ! -s conftest.err
|
---|
6607 | } && test -s conftest.$ac_objext; then
|
---|
6608 | ac_cv_type_signal=int
|
---|
6609 | else
|
---|
6610 | echo "$as_me: failed program was:" >&5
|
---|
6611 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6612 |
|
---|
6613 | ac_cv_type_signal=void
|
---|
6614 | fi
|
---|
6615 |
|
---|
6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6617 | fi
|
---|
6618 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
6619 | echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
---|
6620 |
|
---|
6621 | cat >>confdefs.h <<_ACEOF
|
---|
6622 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
6623 | _ACEOF
|
---|
6624 |
|
---|
6625 |
|
---|
6626 |
|
---|
6627 | for ac_func in vprintf
|
---|
6628 | do
|
---|
6629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6630 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6632 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6634 | else
|
---|
6635 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6636 | /* confdefs.h. */
|
---|
6637 | _ACEOF
|
---|
6638 | cat confdefs.h >>conftest.$ac_ext
|
---|
6639 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6640 | /* end confdefs.h. */
|
---|
6641 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6643 | #define $ac_func innocuous_$ac_func
|
---|
6644 |
|
---|
6645 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6646 | which can conflict with char $ac_func (); below.
|
---|
6647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6648 | <limits.h> exists even on freestanding compilers. */
|
---|
6649 |
|
---|
6650 | #ifdef __STDC__
|
---|
6651 | # include <limits.h>
|
---|
6652 | #else
|
---|
6653 | # include <assert.h>
|
---|
6654 | #endif
|
---|
6655 |
|
---|
6656 | #undef $ac_func
|
---|
6657 |
|
---|
6658 | /* Override any GCC internal prototype to avoid an error.
|
---|
6659 | Use char because int might match the return type of a GCC
|
---|
6660 | builtin and then its argument prototype would still apply. */
|
---|
6661 | #ifdef __cplusplus
|
---|
6662 | extern "C"
|
---|
6663 | #endif
|
---|
6664 | char $ac_func ();
|
---|
6665 | /* The GNU C library defines this for functions which it implements
|
---|
6666 | to always fail with ENOSYS. Some functions are actually named
|
---|
6667 | something starting with __ and the normal name is an alias. */
|
---|
6668 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6669 | choke me
|
---|
6670 | #endif
|
---|
6671 |
|
---|
6672 | int
|
---|
6673 | main ()
|
---|
6674 | {
|
---|
6675 | return $ac_func ();
|
---|
6676 | ;
|
---|
6677 | return 0;
|
---|
6678 | }
|
---|
6679 | _ACEOF
|
---|
6680 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6681 | if { (ac_try="$ac_link"
|
---|
6682 | case "(($ac_try" in
|
---|
6683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6684 | *) ac_try_echo=$ac_try;;
|
---|
6685 | esac
|
---|
6686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6687 | (eval "$ac_link") 2>conftest.er1
|
---|
6688 | ac_status=$?
|
---|
6689 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6690 | rm -f conftest.er1
|
---|
6691 | cat conftest.err >&5
|
---|
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6693 | (exit $ac_status); } && {
|
---|
6694 | test -z "$ac_c_werror_flag" ||
|
---|
6695 | test ! -s conftest.err
|
---|
6696 | } && test -s conftest$ac_exeext &&
|
---|
6697 | $as_test_x conftest$ac_exeext; then
|
---|
6698 | eval "$as_ac_var=yes"
|
---|
6699 | else
|
---|
6700 | echo "$as_me: failed program was:" >&5
|
---|
6701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6702 |
|
---|
6703 | eval "$as_ac_var=no"
|
---|
6704 | fi
|
---|
6705 |
|
---|
6706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6707 | conftest$ac_exeext conftest.$ac_ext
|
---|
6708 | fi
|
---|
6709 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6710 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6711 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6712 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6713 | cat >>confdefs.h <<_ACEOF
|
---|
6714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6715 | _ACEOF
|
---|
6716 |
|
---|
6717 | { echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6718 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
|
---|
6719 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6721 | else
|
---|
6722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6723 | /* confdefs.h. */
|
---|
6724 | _ACEOF
|
---|
6725 | cat confdefs.h >>conftest.$ac_ext
|
---|
6726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6727 | /* end confdefs.h. */
|
---|
6728 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6730 | #define _doprnt innocuous__doprnt
|
---|
6731 |
|
---|
6732 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6733 | which can conflict with char _doprnt (); below.
|
---|
6734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6735 | <limits.h> exists even on freestanding compilers. */
|
---|
6736 |
|
---|
6737 | #ifdef __STDC__
|
---|
6738 | # include <limits.h>
|
---|
6739 | #else
|
---|
6740 | # include <assert.h>
|
---|
6741 | #endif
|
---|
6742 |
|
---|
6743 | #undef _doprnt
|
---|
6744 |
|
---|
6745 | /* Override any GCC internal prototype to avoid an error.
|
---|
6746 | Use char because int might match the return type of a GCC
|
---|
6747 | builtin and then its argument prototype would still apply. */
|
---|
6748 | #ifdef __cplusplus
|
---|
6749 | extern "C"
|
---|
6750 | #endif
|
---|
6751 | char _doprnt ();
|
---|
6752 | /* The GNU C library defines this for functions which it implements
|
---|
6753 | to always fail with ENOSYS. Some functions are actually named
|
---|
6754 | something starting with __ and the normal name is an alias. */
|
---|
6755 | #if defined __stub__doprnt || defined __stub____doprnt
|
---|
6756 | choke me
|
---|
6757 | #endif
|
---|
6758 |
|
---|
6759 | int
|
---|
6760 | main ()
|
---|
6761 | {
|
---|
6762 | return _doprnt ();
|
---|
6763 | ;
|
---|
6764 | return 0;
|
---|
6765 | }
|
---|
6766 | _ACEOF
|
---|
6767 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6768 | if { (ac_try="$ac_link"
|
---|
6769 | case "(($ac_try" in
|
---|
6770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6771 | *) ac_try_echo=$ac_try;;
|
---|
6772 | esac
|
---|
6773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6774 | (eval "$ac_link") 2>conftest.er1
|
---|
6775 | ac_status=$?
|
---|
6776 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6777 | rm -f conftest.er1
|
---|
6778 | cat conftest.err >&5
|
---|
6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6780 | (exit $ac_status); } && {
|
---|
6781 | test -z "$ac_c_werror_flag" ||
|
---|
6782 | test ! -s conftest.err
|
---|
6783 | } && test -s conftest$ac_exeext &&
|
---|
6784 | $as_test_x conftest$ac_exeext; then
|
---|
6785 | ac_cv_func__doprnt=yes
|
---|
6786 | else
|
---|
6787 | echo "$as_me: failed program was:" >&5
|
---|
6788 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6789 |
|
---|
6790 | ac_cv_func__doprnt=no
|
---|
6791 | fi
|
---|
6792 |
|
---|
6793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6794 | conftest$ac_exeext conftest.$ac_ext
|
---|
6795 | fi
|
---|
6796 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6797 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
|
---|
6798 | if test $ac_cv_func__doprnt = yes; then
|
---|
6799 |
|
---|
6800 | cat >>confdefs.h <<\_ACEOF
|
---|
6801 | #define HAVE_DOPRNT 1
|
---|
6802 | _ACEOF
|
---|
6803 |
|
---|
6804 | fi
|
---|
6805 |
|
---|
6806 | fi
|
---|
6807 | done
|
---|
6808 |
|
---|
6809 |
|
---|
6810 |
|
---|
6811 |
|
---|
6812 |
|
---|
6813 |
|
---|
6814 |
|
---|
6815 |
|
---|
6816 |
|
---|
6817 |
|
---|
6818 |
|
---|
6819 |
|
---|
6820 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6821 | do
|
---|
6822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6823 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6825 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6826 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6827 | else
|
---|
6828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6829 | /* confdefs.h. */
|
---|
6830 | _ACEOF
|
---|
6831 | cat confdefs.h >>conftest.$ac_ext
|
---|
6832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6833 | /* end confdefs.h. */
|
---|
6834 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6836 | #define $ac_func innocuous_$ac_func
|
---|
6837 |
|
---|
6838 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6839 | which can conflict with char $ac_func (); below.
|
---|
6840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6841 | <limits.h> exists even on freestanding compilers. */
|
---|
6842 |
|
---|
6843 | #ifdef __STDC__
|
---|
6844 | # include <limits.h>
|
---|
6845 | #else
|
---|
6846 | # include <assert.h>
|
---|
6847 | #endif
|
---|
6848 |
|
---|
6849 | #undef $ac_func
|
---|
6850 |
|
---|
6851 | /* Override any GCC internal prototype to avoid an error.
|
---|
6852 | Use char because int might match the return type of a GCC
|
---|
6853 | builtin and then its argument prototype would still apply. */
|
---|
6854 | #ifdef __cplusplus
|
---|
6855 | extern "C"
|
---|
6856 | #endif
|
---|
6857 | char $ac_func ();
|
---|
6858 | /* The GNU C library defines this for functions which it implements
|
---|
6859 | to always fail with ENOSYS. Some functions are actually named
|
---|
6860 | something starting with __ and the normal name is an alias. */
|
---|
6861 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6862 | choke me
|
---|
6863 | #endif
|
---|
6864 |
|
---|
6865 | int
|
---|
6866 | main ()
|
---|
6867 | {
|
---|
6868 | return $ac_func ();
|
---|
6869 | ;
|
---|
6870 | return 0;
|
---|
6871 | }
|
---|
6872 | _ACEOF
|
---|
6873 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6874 | if { (ac_try="$ac_link"
|
---|
6875 | case "(($ac_try" in
|
---|
6876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6877 | *) ac_try_echo=$ac_try;;
|
---|
6878 | esac
|
---|
6879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6880 | (eval "$ac_link") 2>conftest.er1
|
---|
6881 | ac_status=$?
|
---|
6882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6883 | rm -f conftest.er1
|
---|
6884 | cat conftest.err >&5
|
---|
6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6886 | (exit $ac_status); } && {
|
---|
6887 | test -z "$ac_c_werror_flag" ||
|
---|
6888 | test ! -s conftest.err
|
---|
6889 | } && test -s conftest$ac_exeext &&
|
---|
6890 | $as_test_x conftest$ac_exeext; then
|
---|
6891 | eval "$as_ac_var=yes"
|
---|
6892 | else
|
---|
6893 | echo "$as_me: failed program was:" >&5
|
---|
6894 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6895 |
|
---|
6896 | eval "$as_ac_var=no"
|
---|
6897 | fi
|
---|
6898 |
|
---|
6899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6900 | conftest$ac_exeext conftest.$ac_ext
|
---|
6901 | fi
|
---|
6902 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6903 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6904 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6905 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6906 | cat >>confdefs.h <<_ACEOF
|
---|
6907 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6908 | _ACEOF
|
---|
6909 |
|
---|
6910 | fi
|
---|
6911 | done
|
---|
6912 |
|
---|
6913 |
|
---|
6914 |
|
---|
6915 |
|
---|
6916 | for ac_func in ftruncate strstr strcasecmp
|
---|
6917 | do
|
---|
6918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6919 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6921 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6922 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6923 | else
|
---|
6924 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6925 | /* confdefs.h. */
|
---|
6926 | _ACEOF
|
---|
6927 | cat confdefs.h >>conftest.$ac_ext
|
---|
6928 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6929 | /* end confdefs.h. */
|
---|
6930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6932 | #define $ac_func innocuous_$ac_func
|
---|
6933 |
|
---|
6934 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6935 | which can conflict with char $ac_func (); below.
|
---|
6936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6937 | <limits.h> exists even on freestanding compilers. */
|
---|
6938 |
|
---|
6939 | #ifdef __STDC__
|
---|
6940 | # include <limits.h>
|
---|
6941 | #else
|
---|
6942 | # include <assert.h>
|
---|
6943 | #endif
|
---|
6944 |
|
---|
6945 | #undef $ac_func
|
---|
6946 |
|
---|
6947 | /* Override any GCC internal prototype to avoid an error.
|
---|
6948 | Use char because int might match the return type of a GCC
|
---|
6949 | builtin and then its argument prototype would still apply. */
|
---|
6950 | #ifdef __cplusplus
|
---|
6951 | extern "C"
|
---|
6952 | #endif
|
---|
6953 | char $ac_func ();
|
---|
6954 | /* The GNU C library defines this for functions which it implements
|
---|
6955 | to always fail with ENOSYS. Some functions are actually named
|
---|
6956 | something starting with __ and the normal name is an alias. */
|
---|
6957 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6958 | choke me
|
---|
6959 | #endif
|
---|
6960 |
|
---|
6961 | int
|
---|
6962 | main ()
|
---|
6963 | {
|
---|
6964 | return $ac_func ();
|
---|
6965 | ;
|
---|
6966 | return 0;
|
---|
6967 | }
|
---|
6968 | _ACEOF
|
---|
6969 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6970 | if { (ac_try="$ac_link"
|
---|
6971 | case "(($ac_try" in
|
---|
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6973 | *) ac_try_echo=$ac_try;;
|
---|
6974 | esac
|
---|
6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6976 | (eval "$ac_link") 2>conftest.er1
|
---|
6977 | ac_status=$?
|
---|
6978 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6979 | rm -f conftest.er1
|
---|
6980 | cat conftest.err >&5
|
---|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6982 | (exit $ac_status); } && {
|
---|
6983 | test -z "$ac_c_werror_flag" ||
|
---|
6984 | test ! -s conftest.err
|
---|
6985 | } && test -s conftest$ac_exeext &&
|
---|
6986 | $as_test_x conftest$ac_exeext; then
|
---|
6987 | eval "$as_ac_var=yes"
|
---|
6988 | else
|
---|
6989 | echo "$as_me: failed program was:" >&5
|
---|
6990 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6991 |
|
---|
6992 | eval "$as_ac_var=no"
|
---|
6993 | fi
|
---|
6994 |
|
---|
6995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6996 | conftest$ac_exeext conftest.$ac_ext
|
---|
6997 | fi
|
---|
6998 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6999 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
7000 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
7001 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
7002 | cat >>confdefs.h <<_ACEOF
|
---|
7003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
7004 | _ACEOF
|
---|
7005 |
|
---|
7006 | else
|
---|
7007 | case " $LIBOBJS " in
|
---|
7008 | *" $ac_func.$ac_objext "* ) ;;
|
---|
7009 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
7010 | ;;
|
---|
7011 | esac
|
---|
7012 |
|
---|
7013 | fi
|
---|
7014 | done
|
---|
7015 |
|
---|
7016 |
|
---|
7017 |
|
---|
7018 | { echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
7019 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
|
---|
7020 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
7021 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7022 | else
|
---|
7023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7024 | /* confdefs.h. */
|
---|
7025 | _ACEOF
|
---|
7026 | cat confdefs.h >>conftest.$ac_ext
|
---|
7027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7028 | /* end confdefs.h. */
|
---|
7029 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
7030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7031 | #define textdomain innocuous_textdomain
|
---|
7032 |
|
---|
7033 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7034 | which can conflict with char textdomain (); below.
|
---|
7035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7036 | <limits.h> exists even on freestanding compilers. */
|
---|
7037 |
|
---|
7038 | #ifdef __STDC__
|
---|
7039 | # include <limits.h>
|
---|
7040 | #else
|
---|
7041 | # include <assert.h>
|
---|
7042 | #endif
|
---|
7043 |
|
---|
7044 | #undef textdomain
|
---|
7045 |
|
---|
7046 | /* Override any GCC internal prototype to avoid an error.
|
---|
7047 | Use char because int might match the return type of a GCC
|
---|
7048 | builtin and then its argument prototype would still apply. */
|
---|
7049 | #ifdef __cplusplus
|
---|
7050 | extern "C"
|
---|
7051 | #endif
|
---|
7052 | char textdomain ();
|
---|
7053 | /* The GNU C library defines this for functions which it implements
|
---|
7054 | to always fail with ENOSYS. Some functions are actually named
|
---|
7055 | something starting with __ and the normal name is an alias. */
|
---|
7056 | #if defined __stub_textdomain || defined __stub___textdomain
|
---|
7057 | choke me
|
---|
7058 | #endif
|
---|
7059 |
|
---|
7060 | int
|
---|
7061 | main ()
|
---|
7062 | {
|
---|
7063 | return textdomain ();
|
---|
7064 | ;
|
---|
7065 | return 0;
|
---|
7066 | }
|
---|
7067 | _ACEOF
|
---|
7068 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7069 | if { (ac_try="$ac_link"
|
---|
7070 | case "(($ac_try" in
|
---|
7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7072 | *) ac_try_echo=$ac_try;;
|
---|
7073 | esac
|
---|
7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7075 | (eval "$ac_link") 2>conftest.er1
|
---|
7076 | ac_status=$?
|
---|
7077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7078 | rm -f conftest.er1
|
---|
7079 | cat conftest.err >&5
|
---|
7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7081 | (exit $ac_status); } && {
|
---|
7082 | test -z "$ac_c_werror_flag" ||
|
---|
7083 | test ! -s conftest.err
|
---|
7084 | } && test -s conftest$ac_exeext &&
|
---|
7085 | $as_test_x conftest$ac_exeext; then
|
---|
7086 | ac_cv_func_textdomain=yes
|
---|
7087 | else
|
---|
7088 | echo "$as_me: failed program was:" >&5
|
---|
7089 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7090 |
|
---|
7091 | ac_cv_func_textdomain=no
|
---|
7092 | fi
|
---|
7093 |
|
---|
7094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7095 | conftest$ac_exeext conftest.$ac_ext
|
---|
7096 | fi
|
---|
7097 | { echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
7098 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
|
---|
7099 | if test $ac_cv_func_textdomain = yes; then
|
---|
7100 | cat >>confdefs.h <<\_ACEOF
|
---|
7101 | #define ENABLE_NLS 1
|
---|
7102 | _ACEOF
|
---|
7103 |
|
---|
7104 | fi
|
---|
7105 |
|
---|
7106 |
|
---|
7107 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
7108 | # ---------------------------------------------------------------------------
|
---|
7109 | { echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
7110 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
|
---|
7111 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
7112 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7113 | echo "${ECHO_T}yes" >&6; }
|
---|
7114 | case " $LIBOBJS " in
|
---|
7115 | *" gmalloc.$ac_objext "* ) ;;
|
---|
7116 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
7117 | ;;
|
---|
7118 | esac
|
---|
7119 |
|
---|
7120 | cat >>confdefs.h <<\_ACEOF
|
---|
7121 | #define HAVE_VALLOC 1
|
---|
7122 | _ACEOF
|
---|
7123 |
|
---|
7124 | else
|
---|
7125 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7126 | echo "${ECHO_T}no" >&6; }
|
---|
7127 |
|
---|
7128 | for ac_func in valloc
|
---|
7129 | do
|
---|
7130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
7131 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
7132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
7133 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
7134 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7135 | else
|
---|
7136 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7137 | /* confdefs.h. */
|
---|
7138 | _ACEOF
|
---|
7139 | cat confdefs.h >>conftest.$ac_ext
|
---|
7140 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7141 | /* end confdefs.h. */
|
---|
7142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
7143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7144 | #define $ac_func innocuous_$ac_func
|
---|
7145 |
|
---|
7146 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7147 | which can conflict with char $ac_func (); below.
|
---|
7148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7149 | <limits.h> exists even on freestanding compilers. */
|
---|
7150 |
|
---|
7151 | #ifdef __STDC__
|
---|
7152 | # include <limits.h>
|
---|
7153 | #else
|
---|
7154 | # include <assert.h>
|
---|
7155 | #endif
|
---|
7156 |
|
---|
7157 | #undef $ac_func
|
---|
7158 |
|
---|
7159 | /* Override any GCC internal prototype to avoid an error.
|
---|
7160 | Use char because int might match the return type of a GCC
|
---|
7161 | builtin and then its argument prototype would still apply. */
|
---|
7162 | #ifdef __cplusplus
|
---|
7163 | extern "C"
|
---|
7164 | #endif
|
---|
7165 | char $ac_func ();
|
---|
7166 | /* The GNU C library defines this for functions which it implements
|
---|
7167 | to always fail with ENOSYS. Some functions are actually named
|
---|
7168 | something starting with __ and the normal name is an alias. */
|
---|
7169 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
7170 | choke me
|
---|
7171 | #endif
|
---|
7172 |
|
---|
7173 | int
|
---|
7174 | main ()
|
---|
7175 | {
|
---|
7176 | return $ac_func ();
|
---|
7177 | ;
|
---|
7178 | return 0;
|
---|
7179 | }
|
---|
7180 | _ACEOF
|
---|
7181 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7182 | if { (ac_try="$ac_link"
|
---|
7183 | case "(($ac_try" in
|
---|
7184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7185 | *) ac_try_echo=$ac_try;;
|
---|
7186 | esac
|
---|
7187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7188 | (eval "$ac_link") 2>conftest.er1
|
---|
7189 | ac_status=$?
|
---|
7190 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7191 | rm -f conftest.er1
|
---|
7192 | cat conftest.err >&5
|
---|
7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7194 | (exit $ac_status); } && {
|
---|
7195 | test -z "$ac_c_werror_flag" ||
|
---|
7196 | test ! -s conftest.err
|
---|
7197 | } && test -s conftest$ac_exeext &&
|
---|
7198 | $as_test_x conftest$ac_exeext; then
|
---|
7199 | eval "$as_ac_var=yes"
|
---|
7200 | else
|
---|
7201 | echo "$as_me: failed program was:" >&5
|
---|
7202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7203 |
|
---|
7204 | eval "$as_ac_var=no"
|
---|
7205 | fi
|
---|
7206 |
|
---|
7207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7208 | conftest$ac_exeext conftest.$ac_ext
|
---|
7209 | fi
|
---|
7210 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
7211 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
7212 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
7213 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
7214 | cat >>confdefs.h <<_ACEOF
|
---|
7215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
7216 | _ACEOF
|
---|
7217 |
|
---|
7218 | fi
|
---|
7219 | done
|
---|
7220 |
|
---|
7221 | fi
|
---|
7222 |
|
---|
7223 | # we cannot generate static libraries under Darwin
|
---|
7224 | { echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
7225 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6; }
|
---|
7226 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
7227 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7228 | echo "${ECHO_T}yes" >&6; }
|
---|
7229 | STATIC=""
|
---|
7230 | else
|
---|
7231 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7232 | echo "${ECHO_T}no" >&6; }
|
---|
7233 | STATIC="-static "
|
---|
7234 | fi
|
---|
7235 |
|
---|
7236 |
|
---|
7237 | { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
7238 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
|
---|
7239 |
|
---|
7240 | # Check whether --with-dmalloc was given.
|
---|
7241 | if test "${with_dmalloc+set}" = set; then
|
---|
7242 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
7243 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7244 | echo "${ECHO_T}yes" >&6; }
|
---|
7245 | cat >>confdefs.h <<\_ACEOF
|
---|
7246 | #define WITH_DMALLOC 1
|
---|
7247 | _ACEOF
|
---|
7248 |
|
---|
7249 | LIBS="$LIBS -ldmalloc"
|
---|
7250 | LDFLAGS="$LDFLAGS -g"
|
---|
7251 | else
|
---|
7252 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7253 | echo "${ECHO_T}no" >&6; }
|
---|
7254 | fi
|
---|
7255 | else
|
---|
7256 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7257 | echo "${ECHO_T}no" >&6; }
|
---|
7258 | fi
|
---|
7259 |
|
---|
7260 |
|
---|
7261 | { echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
7262 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
|
---|
7263 |
|
---|
7264 | # Check whether --with-regex was given.
|
---|
7265 | if test "${with_regex+set}" = set; then
|
---|
7266 | withval=$with_regex; if test "$withval" = yes; then
|
---|
7267 | ac_with_regex=1
|
---|
7268 | { echo "$as_me:$LINENO: result: regex" >&5
|
---|
7269 | echo "${ECHO_T}regex" >&6; }
|
---|
7270 | cat >>confdefs.h <<\_ACEOF
|
---|
7271 | #define WITH_REGEX 1
|
---|
7272 | _ACEOF
|
---|
7273 |
|
---|
7274 | case " $LIBOBJS " in
|
---|
7275 | *" regex.$ac_objext "* ) ;;
|
---|
7276 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
7277 | ;;
|
---|
7278 | esac
|
---|
7279 |
|
---|
7280 | fi
|
---|
7281 | fi
|
---|
7282 |
|
---|
7283 | if test -z "$ac_with_regex"; then
|
---|
7284 | { echo "$as_me:$LINENO: result: rx" >&5
|
---|
7285 | echo "${ECHO_T}rx" >&6; }
|
---|
7286 | { echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
7287 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
|
---|
7288 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
7289 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7290 | else
|
---|
7291 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7292 | /* confdefs.h. */
|
---|
7293 | _ACEOF
|
---|
7294 | cat confdefs.h >>conftest.$ac_ext
|
---|
7295 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7296 | /* end confdefs.h. */
|
---|
7297 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
7298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7299 | #define re_rx_search innocuous_re_rx_search
|
---|
7300 |
|
---|
7301 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7302 | which can conflict with char re_rx_search (); below.
|
---|
7303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7304 | <limits.h> exists even on freestanding compilers. */
|
---|
7305 |
|
---|
7306 | #ifdef __STDC__
|
---|
7307 | # include <limits.h>
|
---|
7308 | #else
|
---|
7309 | # include <assert.h>
|
---|
7310 | #endif
|
---|
7311 |
|
---|
7312 | #undef re_rx_search
|
---|
7313 |
|
---|
7314 | /* Override any GCC internal prototype to avoid an error.
|
---|
7315 | Use char because int might match the return type of a GCC
|
---|
7316 | builtin and then its argument prototype would still apply. */
|
---|
7317 | #ifdef __cplusplus
|
---|
7318 | extern "C"
|
---|
7319 | #endif
|
---|
7320 | char re_rx_search ();
|
---|
7321 | /* The GNU C library defines this for functions which it implements
|
---|
7322 | to always fail with ENOSYS. Some functions are actually named
|
---|
7323 | something starting with __ and the normal name is an alias. */
|
---|
7324 | #if defined __stub_re_rx_search || defined __stub___re_rx_search
|
---|
7325 | choke me
|
---|
7326 | #endif
|
---|
7327 |
|
---|
7328 | int
|
---|
7329 | main ()
|
---|
7330 | {
|
---|
7331 | return re_rx_search ();
|
---|
7332 | ;
|
---|
7333 | return 0;
|
---|
7334 | }
|
---|
7335 | _ACEOF
|
---|
7336 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7337 | if { (ac_try="$ac_link"
|
---|
7338 | case "(($ac_try" in
|
---|
7339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7340 | *) ac_try_echo=$ac_try;;
|
---|
7341 | esac
|
---|
7342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7343 | (eval "$ac_link") 2>conftest.er1
|
---|
7344 | ac_status=$?
|
---|
7345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7346 | rm -f conftest.er1
|
---|
7347 | cat conftest.err >&5
|
---|
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7349 | (exit $ac_status); } && {
|
---|
7350 | test -z "$ac_c_werror_flag" ||
|
---|
7351 | test ! -s conftest.err
|
---|
7352 | } && test -s conftest$ac_exeext &&
|
---|
7353 | $as_test_x conftest$ac_exeext; then
|
---|
7354 | ac_cv_func_re_rx_search=yes
|
---|
7355 | else
|
---|
7356 | echo "$as_me: failed program was:" >&5
|
---|
7357 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7358 |
|
---|
7359 | ac_cv_func_re_rx_search=no
|
---|
7360 | fi
|
---|
7361 |
|
---|
7362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7363 | conftest$ac_exeext conftest.$ac_ext
|
---|
7364 | fi
|
---|
7365 | { echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
7366 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
|
---|
7367 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
7368 | :
|
---|
7369 | else
|
---|
7370 | case " $LIBOBJS " in
|
---|
7371 | *" rx.$ac_objext "* ) ;;
|
---|
7372 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
7373 | ;;
|
---|
7374 | esac
|
---|
7375 |
|
---|
7376 | fi
|
---|
7377 |
|
---|
7378 | fi
|
---|
7379 |
|
---|
7380 |
|
---|
7381 | # ---------------------------------------------------------------------------
|
---|
7382 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7383 | case " $LIBOBJS " in
|
---|
7384 | *" xmalloc.$ac_objext "* ) ;;
|
---|
7385 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
7386 | ;;
|
---|
7387 | esac
|
---|
7388 |
|
---|
7389 | case " $LIBOBJS " in
|
---|
7390 | *" error.$ac_objext "* ) ;;
|
---|
7391 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
7392 | ;;
|
---|
7393 | esac
|
---|
7394 |
|
---|
7395 | fi
|
---|
7396 |
|
---|
7397 |
|
---|
7398 | # ---------------------------------------------------------------------------
|
---|
7399 |
|
---|
7400 | ac_ext=cpp
|
---|
7401 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
7402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
7405 |
|
---|
7406 |
|
---|
7407 | { echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
7408 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6; }
|
---|
7409 | success="no"
|
---|
7410 | pl_path="$PATH"
|
---|
7411 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
7412 | for pl_dir in $pl_path; do
|
---|
7413 | test -z "$pl_dir" && pl_dir=.
|
---|
7414 | if test -x $pl_dir/perl; then
|
---|
7415 | success="yes"
|
---|
7416 | break
|
---|
7417 | fi
|
---|
7418 | done
|
---|
7419 | IFS="$pl_save_ifs"
|
---|
7420 |
|
---|
7421 | if test $success = "yes"; then
|
---|
7422 | try=`perl configtest.pl` || try="0"
|
---|
7423 | try=`expr $try \> 5.000`
|
---|
7424 | if test $try = "1"; then
|
---|
7425 | { echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
7426 | echo "${ECHO_T}\"yes\"" >&6; }
|
---|
7427 | else
|
---|
7428 | success="no"
|
---|
7429 | fi
|
---|
7430 | fi
|
---|
7431 |
|
---|
7432 | if test $success = "no"; then
|
---|
7433 | { echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
7434 | echo "${ECHO_T}\"no\"" >&6; }
|
---|
7435 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
7436 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
7437 | { (exit 1); exit 1; }; }
|
---|
7438 | fi
|
---|
7439 |
|
---|
7440 | success=no
|
---|
7441 | { echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
7442 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6; }
|
---|
7443 |
|
---|
7444 |
|
---|
7445 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7446 | /* confdefs.h. */
|
---|
7447 | _ACEOF
|
---|
7448 | cat confdefs.h >>conftest.$ac_ext
|
---|
7449 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7450 | /* end confdefs.h. */
|
---|
7451 | #include <vector>
|
---|
7452 |
|
---|
7453 | int
|
---|
7454 | main ()
|
---|
7455 | {
|
---|
7456 |
|
---|
7457 | ;
|
---|
7458 | return 0;
|
---|
7459 | }
|
---|
7460 | _ACEOF
|
---|
7461 | rm -f conftest.$ac_objext
|
---|
7462 | if { (ac_try="$ac_compile"
|
---|
7463 | case "(($ac_try" in
|
---|
7464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7465 | *) ac_try_echo=$ac_try;;
|
---|
7466 | esac
|
---|
7467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7468 | (eval "$ac_compile") 2>conftest.er1
|
---|
7469 | ac_status=$?
|
---|
7470 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7471 | rm -f conftest.er1
|
---|
7472 | cat conftest.err >&5
|
---|
7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7474 | (exit $ac_status); } && {
|
---|
7475 | test -z "$ac_cxx_werror_flag" ||
|
---|
7476 | test ! -s conftest.err
|
---|
7477 | } && test -s conftest.$ac_objext; then
|
---|
7478 | success=yes
|
---|
7479 | else
|
---|
7480 | echo "$as_me: failed program was:" >&5
|
---|
7481 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7482 |
|
---|
7483 |
|
---|
7484 | fi
|
---|
7485 |
|
---|
7486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7487 |
|
---|
7488 | if test $success = "no"; then
|
---|
7489 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7490 | /* confdefs.h. */
|
---|
7491 | _ACEOF
|
---|
7492 | cat confdefs.h >>conftest.$ac_ext
|
---|
7493 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7494 | /* end confdefs.h. */
|
---|
7495 | #include <vector.h>
|
---|
7496 |
|
---|
7497 | int
|
---|
7498 | main ()
|
---|
7499 | {
|
---|
7500 |
|
---|
7501 | ;
|
---|
7502 | return 0;
|
---|
7503 | }
|
---|
7504 | _ACEOF
|
---|
7505 | rm -f conftest.$ac_objext
|
---|
7506 | if { (ac_try="$ac_compile"
|
---|
7507 | case "(($ac_try" in
|
---|
7508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7509 | *) ac_try_echo=$ac_try;;
|
---|
7510 | esac
|
---|
7511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7512 | (eval "$ac_compile") 2>conftest.er1
|
---|
7513 | ac_status=$?
|
---|
7514 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7515 | rm -f conftest.er1
|
---|
7516 | cat conftest.err >&5
|
---|
7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7518 | (exit $ac_status); } && {
|
---|
7519 | test -z "$ac_cxx_werror_flag" ||
|
---|
7520 | test ! -s conftest.err
|
---|
7521 | } && test -s conftest.$ac_objext; then
|
---|
7522 | success="yes"
|
---|
7523 | else
|
---|
7524 | echo "$as_me: failed program was:" >&5
|
---|
7525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7526 |
|
---|
7527 |
|
---|
7528 | fi
|
---|
7529 |
|
---|
7530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7531 | fi
|
---|
7532 |
|
---|
7533 | if test $success = "no"; then
|
---|
7534 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7535 | /* confdefs.h. */
|
---|
7536 | _ACEOF
|
---|
7537 | cat confdefs.h >>conftest.$ac_ext
|
---|
7538 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7539 | /* end confdefs.h. */
|
---|
7540 | #include <ospace\\std\\vector>
|
---|
7541 |
|
---|
7542 | int
|
---|
7543 | main ()
|
---|
7544 | {
|
---|
7545 |
|
---|
7546 | ;
|
---|
7547 | return 0;
|
---|
7548 | }
|
---|
7549 | _ACEOF
|
---|
7550 | rm -f conftest.$ac_objext
|
---|
7551 | if { (ac_try="$ac_compile"
|
---|
7552 | case "(($ac_try" in
|
---|
7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7554 | *) ac_try_echo=$ac_try;;
|
---|
7555 | esac
|
---|
7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7557 | (eval "$ac_compile") 2>conftest.er1
|
---|
7558 | ac_status=$?
|
---|
7559 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7560 | rm -f conftest.er1
|
---|
7561 | cat conftest.err >&5
|
---|
7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7563 | (exit $ac_status); } && {
|
---|
7564 | test -z "$ac_cxx_werror_flag" ||
|
---|
7565 | test ! -s conftest.err
|
---|
7566 | } && test -s conftest.$ac_objext; then
|
---|
7567 | success="yes"
|
---|
7568 | else
|
---|
7569 | echo "$as_me: failed program was:" >&5
|
---|
7570 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7571 |
|
---|
7572 |
|
---|
7573 | fi
|
---|
7574 |
|
---|
7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7576 | fi
|
---|
7577 |
|
---|
7578 | if test $success = yes; then
|
---|
7579 | { echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
7580 | echo "${ECHO_T}\"no\"" >&6; }
|
---|
7581 | else
|
---|
7582 | { echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
7583 | echo "${ECHO_T}\"yes\"" >&6; }
|
---|
7584 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
7585 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
7586 | { (exit 1); exit 1; }; }
|
---|
7587 | fi
|
---|
7588 |
|
---|
7589 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
7590 | # check for running bash under cygwin
|
---|
7591 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
7592 | then
|
---|
7593 | gsdlos=windows
|
---|
7594 | fi
|
---|
7595 |
|
---|
7596 |
|
---|
7597 | # check for endianness
|
---|
7598 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
7599 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
7600 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
7601 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7602 | else
|
---|
7603 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
7604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7605 | /* confdefs.h. */
|
---|
7606 | _ACEOF
|
---|
7607 | cat confdefs.h >>conftest.$ac_ext
|
---|
7608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7609 | /* end confdefs.h. */
|
---|
7610 | #include <sys/types.h>
|
---|
7611 | #include <sys/param.h>
|
---|
7612 |
|
---|
7613 | int
|
---|
7614 | main ()
|
---|
7615 | {
|
---|
7616 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
7617 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
7618 | bogus endian macros
|
---|
7619 | #endif
|
---|
7620 |
|
---|
7621 | ;
|
---|
7622 | return 0;
|
---|
7623 | }
|
---|
7624 | _ACEOF
|
---|
7625 | rm -f conftest.$ac_objext
|
---|
7626 | if { (ac_try="$ac_compile"
|
---|
7627 | case "(($ac_try" in
|
---|
7628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7629 | *) ac_try_echo=$ac_try;;
|
---|
7630 | esac
|
---|
7631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7632 | (eval "$ac_compile") 2>conftest.er1
|
---|
7633 | ac_status=$?
|
---|
7634 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7635 | rm -f conftest.er1
|
---|
7636 | cat conftest.err >&5
|
---|
7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7638 | (exit $ac_status); } && {
|
---|
7639 | test -z "$ac_cxx_werror_flag" ||
|
---|
7640 | test ! -s conftest.err
|
---|
7641 | } && test -s conftest.$ac_objext; then
|
---|
7642 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7643 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7644 | /* confdefs.h. */
|
---|
7645 | _ACEOF
|
---|
7646 | cat confdefs.h >>conftest.$ac_ext
|
---|
7647 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7648 | /* end confdefs.h. */
|
---|
7649 | #include <sys/types.h>
|
---|
7650 | #include <sys/param.h>
|
---|
7651 |
|
---|
7652 | int
|
---|
7653 | main ()
|
---|
7654 | {
|
---|
7655 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7656 | not big endian
|
---|
7657 | #endif
|
---|
7658 |
|
---|
7659 | ;
|
---|
7660 | return 0;
|
---|
7661 | }
|
---|
7662 | _ACEOF
|
---|
7663 | rm -f conftest.$ac_objext
|
---|
7664 | if { (ac_try="$ac_compile"
|
---|
7665 | case "(($ac_try" in
|
---|
7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7667 | *) ac_try_echo=$ac_try;;
|
---|
7668 | esac
|
---|
7669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7670 | (eval "$ac_compile") 2>conftest.er1
|
---|
7671 | ac_status=$?
|
---|
7672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7673 | rm -f conftest.er1
|
---|
7674 | cat conftest.err >&5
|
---|
7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7676 | (exit $ac_status); } && {
|
---|
7677 | test -z "$ac_cxx_werror_flag" ||
|
---|
7678 | test ! -s conftest.err
|
---|
7679 | } && test -s conftest.$ac_objext; then
|
---|
7680 | ac_cv_c_bigendian=yes
|
---|
7681 | else
|
---|
7682 | echo "$as_me: failed program was:" >&5
|
---|
7683 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7684 |
|
---|
7685 | ac_cv_c_bigendian=no
|
---|
7686 | fi
|
---|
7687 |
|
---|
7688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7689 | else
|
---|
7690 | echo "$as_me: failed program was:" >&5
|
---|
7691 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7692 |
|
---|
7693 | # It does not; compile a test program.
|
---|
7694 | if test "$cross_compiling" = yes; then
|
---|
7695 | # try to guess the endianness by grepping values into an object file
|
---|
7696 | ac_cv_c_bigendian=unknown
|
---|
7697 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7698 | /* confdefs.h. */
|
---|
7699 | _ACEOF
|
---|
7700 | cat confdefs.h >>conftest.$ac_ext
|
---|
7701 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7702 | /* end confdefs.h. */
|
---|
7703 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7704 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7705 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7706 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7707 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7708 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7709 | int
|
---|
7710 | main ()
|
---|
7711 | {
|
---|
7712 | _ascii (); _ebcdic ();
|
---|
7713 | ;
|
---|
7714 | return 0;
|
---|
7715 | }
|
---|
7716 | _ACEOF
|
---|
7717 | rm -f conftest.$ac_objext
|
---|
7718 | if { (ac_try="$ac_compile"
|
---|
7719 | case "(($ac_try" in
|
---|
7720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7721 | *) ac_try_echo=$ac_try;;
|
---|
7722 | esac
|
---|
7723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7724 | (eval "$ac_compile") 2>conftest.er1
|
---|
7725 | ac_status=$?
|
---|
7726 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7727 | rm -f conftest.er1
|
---|
7728 | cat conftest.err >&5
|
---|
7729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7730 | (exit $ac_status); } && {
|
---|
7731 | test -z "$ac_cxx_werror_flag" ||
|
---|
7732 | test ! -s conftest.err
|
---|
7733 | } && test -s conftest.$ac_objext; then
|
---|
7734 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7735 | ac_cv_c_bigendian=yes
|
---|
7736 | fi
|
---|
7737 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7738 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7739 | ac_cv_c_bigendian=no
|
---|
7740 | else
|
---|
7741 | # finding both strings is unlikely to happen, but who knows?
|
---|
7742 | ac_cv_c_bigendian=unknown
|
---|
7743 | fi
|
---|
7744 | fi
|
---|
7745 | else
|
---|
7746 | echo "$as_me: failed program was:" >&5
|
---|
7747 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7748 |
|
---|
7749 |
|
---|
7750 | fi
|
---|
7751 |
|
---|
7752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7753 | else
|
---|
7754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7755 | /* confdefs.h. */
|
---|
7756 | _ACEOF
|
---|
7757 | cat confdefs.h >>conftest.$ac_ext
|
---|
7758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7759 | /* end confdefs.h. */
|
---|
7760 | $ac_includes_default
|
---|
7761 | int
|
---|
7762 | main ()
|
---|
7763 | {
|
---|
7764 |
|
---|
7765 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7766 | union
|
---|
7767 | {
|
---|
7768 | long int l;
|
---|
7769 | char c[sizeof (long int)];
|
---|
7770 | } u;
|
---|
7771 | u.l = 1;
|
---|
7772 | return u.c[sizeof (long int) - 1] == 1;
|
---|
7773 |
|
---|
7774 | ;
|
---|
7775 | return 0;
|
---|
7776 | }
|
---|
7777 | _ACEOF
|
---|
7778 | rm -f conftest$ac_exeext
|
---|
7779 | if { (ac_try="$ac_link"
|
---|
7780 | case "(($ac_try" in
|
---|
7781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7782 | *) ac_try_echo=$ac_try;;
|
---|
7783 | esac
|
---|
7784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7785 | (eval "$ac_link") 2>&5
|
---|
7786 | ac_status=$?
|
---|
7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7789 | { (case "(($ac_try" in
|
---|
7790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7791 | *) ac_try_echo=$ac_try;;
|
---|
7792 | esac
|
---|
7793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7794 | (eval "$ac_try") 2>&5
|
---|
7795 | ac_status=$?
|
---|
7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7797 | (exit $ac_status); }; }; then
|
---|
7798 | ac_cv_c_bigendian=no
|
---|
7799 | else
|
---|
7800 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7801 | echo "$as_me: failed program was:" >&5
|
---|
7802 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7803 |
|
---|
7804 | ( exit $ac_status )
|
---|
7805 | ac_cv_c_bigendian=yes
|
---|
7806 | fi
|
---|
7807 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7808 | fi
|
---|
7809 |
|
---|
7810 |
|
---|
7811 | fi
|
---|
7812 |
|
---|
7813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7814 | fi
|
---|
7815 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7816 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
7817 | case $ac_cv_c_bigendian in
|
---|
7818 | yes)
|
---|
7819 |
|
---|
7820 | cat >>confdefs.h <<\_ACEOF
|
---|
7821 | #define WORDS_BIGENDIAN 1
|
---|
7822 | _ACEOF
|
---|
7823 | ;;
|
---|
7824 | no)
|
---|
7825 | ;;
|
---|
7826 | *)
|
---|
7827 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7828 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7829 | echo "$as_me: error: unknown endianness
|
---|
7830 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7831 | { (exit 1); exit 1; }; } ;;
|
---|
7832 | esac
|
---|
7833 |
|
---|
7834 | # ---------------------------------------------------------------------------
|
---|
7835 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7836 | case " $LIBOBJS " in
|
---|
7837 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7838 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
7839 | ;;
|
---|
7840 | esac
|
---|
7841 |
|
---|
7842 | case " $LIBOBJS " in
|
---|
7843 | *" error.$ac_objext "* ) ;;
|
---|
7844 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
7845 | ;;
|
---|
7846 | esac
|
---|
7847 |
|
---|
7848 | fi
|
---|
7849 |
|
---|
7850 | # ---------------------------------------------------------------------------
|
---|
7851 |
|
---|
7852 | moduleDirs=""
|
---|
7853 | MODULEDIRS=""
|
---|
7854 | if test -d modules ; then
|
---|
7855 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7856 | if test -d "$x"; then
|
---|
7857 | d="$x/Makefile.in"
|
---|
7858 | if test -e "$d"; then
|
---|
7859 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7860 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7861 | fi
|
---|
7862 | fi
|
---|
7863 | done
|
---|
7864 | echo "Making $moduleDirs in modules directory"
|
---|
7865 |
|
---|
7866 | fi
|
---|
7867 |
|
---|
7868 |
|
---|
7869 | #----------------------------------------------------------------------------
|
---|
7870 | # GS2 uses this configure to set up gnome-lib env, GS3 uses the one in gs2build/build-src
|
---|
7871 | # For gnome-lib-minimal need to source its ./devel.bash before wvware can even be configured
|
---|
7872 | # For a gnome-lib that's already compiled, don't need to its source ./devel.bash to configure wvware
|
---|
7873 | # If a gnome-lib is not yet compiled, we compile it first with CASCADE-MAKE.sh
|
---|
7874 | # Need to make sure that the gnome-lib-minimal is not the cut-down gnome-lib-minimal (which contains
|
---|
7875 | # only the linux/lib subfolder) that's included with linux and mac binaries, because we can't compile
|
---|
7876 | # wvware with the cut-down one, only run wvware with it. The test for the cut-down version is that
|
---|
7877 | # it does not contain devel.bash.
|
---|
7878 |
|
---|
7879 | if test -f ext/gnome-lib-minimal/devel.bash; then
|
---|
7880 | echo "*** gnome-lib (minimal) detected. Sourcing the gnomelib env for configuring wvware..."
|
---|
7881 | cd ext/gnome-lib-minimal
|
---|
7882 | source ./devel.bash
|
---|
7883 | cd ../..
|
---|
7884 | elif test -d ext/gnome-lib; then
|
---|
7885 | if test -d ext/gnome-lib/$gsdlos; then
|
---|
7886 | echo "*** gnome-lib already compiled up in ext/gnome-lib/$gsdlos"
|
---|
7887 | echo "*** Sourcing the gnomelib env for configuring wvware for GS2 (although it's not necessary)..."
|
---|
7888 | cd ext/gnome-lib
|
---|
7889 | source ./devel.bash
|
---|
7890 | cd ../..
|
---|
7891 | else
|
---|
7892 | echo "*** Compiling up gnome-lib..."
|
---|
7893 | cd ext/gnome-lib
|
---|
7894 | ./CASCADE-MAKE.sh
|
---|
7895 | gnomestatus=$?
|
---|
7896 | if test $gnomestatus != 0; then
|
---|
7897 | echo "****************************************"
|
---|
7898 | echo "@@@ Failed to compile up gnomelib successfully"
|
---|
7899 | echo "****************************************"
|
---|
7900 | exit -1
|
---|
7901 | else
|
---|
7902 | echo "************************************************"
|
---|
7903 | echo "*** gnome-lib finished compiling successfully."
|
---|
7904 | echo "*** sourcing devel.bash for successfully compiling yaz on El Capitan"
|
---|
7905 | echo "************************************************"
|
---|
7906 | source ./devel.bash
|
---|
7907 | fi
|
---|
7908 | cd ../..
|
---|
7909 | fi
|
---|
7910 | fi
|
---|
7911 |
|
---|
7912 | # ---------------------------------------------------------------------------
|
---|
7913 |
|
---|
7914 | # indexers needs a bindir option to get the binaries into the right place
|
---|
7915 | gsdlprefix=`pwd`
|
---|
7916 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
7917 | subdirs="$subdirs common-src"
|
---|
7918 |
|
---|
7919 | subdirs="$subdirs build-src"
|
---|
7920 |
|
---|
7921 |
|
---|
7922 | # the list of folders in the src folder
|
---|
7923 | srclist="common-src/Makefile \
|
---|
7924 | build-src/Makefile"
|
---|
7925 |
|
---|
7926 | if test -d runtime-src; then
|
---|
7927 | subdirs="$subdirs runtime-src"
|
---|
7928 |
|
---|
7929 | srclist="$srclist \
|
---|
7930 | runtime-src/Makefile"
|
---|
7931 | fi
|
---|
7932 |
|
---|
7933 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
7934 |
|
---|
7935 | cat >confcache <<\_ACEOF
|
---|
7936 | # This file is a shell script that caches the results of configure
|
---|
7937 | # tests run on this system so they can be shared between configure
|
---|
7938 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7939 | # It is not useful on other systems. If it contains results you don't
|
---|
7940 | # want to keep, you may remove or edit it.
|
---|
7941 | #
|
---|
7942 | # config.status only pays attention to the cache file if you give it
|
---|
7943 | # the --recheck option to rerun configure.
|
---|
7944 | #
|
---|
7945 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7946 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7947 | # following values.
|
---|
7948 |
|
---|
7949 | _ACEOF
|
---|
7950 |
|
---|
7951 | # The following way of writing the cache mishandles newlines in values,
|
---|
7952 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7953 | # So, we kill variables containing newlines.
|
---|
7954 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7955 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7956 | (
|
---|
7957 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
7958 | eval ac_val=\$$ac_var
|
---|
7959 | case $ac_val in #(
|
---|
7960 | *${as_nl}*)
|
---|
7961 | case $ac_var in #(
|
---|
7962 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
7963 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
7964 | esac
|
---|
7965 | case $ac_var in #(
|
---|
7966 | _ | IFS | as_nl) ;; #(
|
---|
7967 | *) $as_unset $ac_var ;;
|
---|
7968 | esac ;;
|
---|
7969 | esac
|
---|
7970 | done
|
---|
7971 |
|
---|
7972 | (set) 2>&1 |
|
---|
7973 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
7974 | *${as_nl}ac_space=\ *)
|
---|
7975 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7976 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7977 | sed -n \
|
---|
7978 | "s/'/'\\\\''/g;
|
---|
7979 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7980 | ;; #(
|
---|
7981 | *)
|
---|
7982 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7983 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
7984 | ;;
|
---|
7985 | esac |
|
---|
7986 | sort
|
---|
7987 | ) |
|
---|
7988 | sed '
|
---|
7989 | /^ac_cv_env_/b end
|
---|
7990 | t clear
|
---|
7991 | :clear
|
---|
7992 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7993 | t end
|
---|
7994 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7995 | :end' >>confcache
|
---|
7996 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
7997 | if test -w "$cache_file"; then
|
---|
7998 | test "x$cache_file" != "x/dev/null" &&
|
---|
7999 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
8000 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
8001 | cat confcache >$cache_file
|
---|
8002 | else
|
---|
8003 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
8004 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
8005 | fi
|
---|
8006 | fi
|
---|
8007 | rm -f confcache
|
---|
8008 |
|
---|
8009 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
8010 | # Let make expand exec_prefix.
|
---|
8011 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
8012 |
|
---|
8013 | DEFS=-DHAVE_CONFIG_H
|
---|
8014 |
|
---|
8015 | ac_libobjs=
|
---|
8016 | ac_ltlibobjs=
|
---|
8017 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
8018 | # 1. Remove the extension, and $U if already installed.
|
---|
8019 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
8020 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
8021 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
8022 | # will be set to the directory where LIBOBJS objects are built.
|
---|
8023 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
8024 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
8025 | done
|
---|
8026 | LIBOBJS=$ac_libobjs
|
---|
8027 |
|
---|
8028 | LTLIBOBJS=$ac_ltlibobjs
|
---|
8029 |
|
---|
8030 |
|
---|
8031 |
|
---|
8032 | : ${CONFIG_STATUS=./config.status}
|
---|
8033 | ac_clean_files_save=$ac_clean_files
|
---|
8034 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
8035 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
8036 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
8037 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
8038 | #! $SHELL
|
---|
8039 | # Generated by $as_me.
|
---|
8040 | # Run this file to recreate the current configuration.
|
---|
8041 | # Compiler output produced by configure, useful for debugging
|
---|
8042 | # configure, is in config.log if it exists.
|
---|
8043 |
|
---|
8044 | debug=false
|
---|
8045 | ac_cs_recheck=false
|
---|
8046 | ac_cs_silent=false
|
---|
8047 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
8048 | _ACEOF
|
---|
8049 |
|
---|
8050 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8051 | ## --------------------- ##
|
---|
8052 | ## M4sh Initialization. ##
|
---|
8053 | ## --------------------- ##
|
---|
8054 |
|
---|
8055 | # Be more Bourne compatible
|
---|
8056 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
8057 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
8058 | emulate sh
|
---|
8059 | NULLCMD=:
|
---|
8060 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
8061 | # is contrary to our usage. Disable this feature.
|
---|
8062 | alias -g '${1+"$@"}'='"$@"'
|
---|
8063 | setopt NO_GLOB_SUBST
|
---|
8064 | else
|
---|
8065 | case `(set -o) 2>/dev/null` in
|
---|
8066 | *posix*) set -o posix ;;
|
---|
8067 | esac
|
---|
8068 |
|
---|
8069 | fi
|
---|
8070 |
|
---|
8071 |
|
---|
8072 |
|
---|
8073 |
|
---|
8074 | # PATH needs CR
|
---|
8075 | # Avoid depending upon Character Ranges.
|
---|
8076 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
8077 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
8078 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
8079 | as_cr_digits='0123456789'
|
---|
8080 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
8081 |
|
---|
8082 | # The user is always right.
|
---|
8083 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
8084 | echo "#! /bin/sh" >conf$$.sh
|
---|
8085 | echo "exit 0" >>conf$$.sh
|
---|
8086 | chmod +x conf$$.sh
|
---|
8087 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
8088 | PATH_SEPARATOR=';'
|
---|
8089 | else
|
---|
8090 | PATH_SEPARATOR=:
|
---|
8091 | fi
|
---|
8092 | rm -f conf$$.sh
|
---|
8093 | fi
|
---|
8094 |
|
---|
8095 | # Support unset when possible.
|
---|
8096 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
8097 | as_unset=unset
|
---|
8098 | else
|
---|
8099 | as_unset=false
|
---|
8100 | fi
|
---|
8101 |
|
---|
8102 |
|
---|
8103 | # IFS
|
---|
8104 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
8105 | # there to prevent editors from complaining about space-tab.
|
---|
8106 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
8107 | # splitting by setting IFS to empty value.)
|
---|
8108 | as_nl='
|
---|
8109 | '
|
---|
8110 | IFS=" "" $as_nl"
|
---|
8111 |
|
---|
8112 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
8113 | case $0 in
|
---|
8114 | *[\\/]* ) as_myself=$0 ;;
|
---|
8115 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8116 | for as_dir in $PATH
|
---|
8117 | do
|
---|
8118 | IFS=$as_save_IFS
|
---|
8119 | test -z "$as_dir" && as_dir=.
|
---|
8120 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
8121 | done
|
---|
8122 | IFS=$as_save_IFS
|
---|
8123 |
|
---|
8124 | ;;
|
---|
8125 | esac
|
---|
8126 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
8127 | # in which case we are not to be found in the path.
|
---|
8128 | if test "x$as_myself" = x; then
|
---|
8129 | as_myself=$0
|
---|
8130 | fi
|
---|
8131 | if test ! -f "$as_myself"; then
|
---|
8132 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
8133 | { (exit 1); exit 1; }
|
---|
8134 | fi
|
---|
8135 |
|
---|
8136 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
8137 | for as_var in ENV MAIL MAILPATH
|
---|
8138 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
8139 | done
|
---|
8140 | PS1='$ '
|
---|
8141 | PS2='> '
|
---|
8142 | PS4='+ '
|
---|
8143 |
|
---|
8144 | # NLS nuisances.
|
---|
8145 | for as_var in \
|
---|
8146 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
8147 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
8148 | LC_TELEPHONE LC_TIME
|
---|
8149 | do
|
---|
8150 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
8151 | eval $as_var=C; export $as_var
|
---|
8152 | else
|
---|
8153 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
8154 | fi
|
---|
8155 | done
|
---|
8156 |
|
---|
8157 | # Required to use basename.
|
---|
8158 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
8159 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
8160 | as_expr=expr
|
---|
8161 | else
|
---|
8162 | as_expr=false
|
---|
8163 | fi
|
---|
8164 |
|
---|
8165 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
8166 | as_basename=basename
|
---|
8167 | else
|
---|
8168 | as_basename=false
|
---|
8169 | fi
|
---|
8170 |
|
---|
8171 |
|
---|
8172 | # Name of the executable.
|
---|
8173 | as_me=`$as_basename -- "$0" ||
|
---|
8174 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
8175 | X"$0" : 'X\(//\)$' \| \
|
---|
8176 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8177 | echo X/"$0" |
|
---|
8178 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
8179 | s//\1/
|
---|
8180 | q
|
---|
8181 | }
|
---|
8182 | /^X\/\(\/\/\)$/{
|
---|
8183 | s//\1/
|
---|
8184 | q
|
---|
8185 | }
|
---|
8186 | /^X\/\(\/\).*/{
|
---|
8187 | s//\1/
|
---|
8188 | q
|
---|
8189 | }
|
---|
8190 | s/.*/./; q'`
|
---|
8191 |
|
---|
8192 | # CDPATH.
|
---|
8193 | $as_unset CDPATH
|
---|
8194 |
|
---|
8195 |
|
---|
8196 |
|
---|
8197 | as_lineno_1=$LINENO
|
---|
8198 | as_lineno_2=$LINENO
|
---|
8199 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
8200 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
8201 |
|
---|
8202 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
8203 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
8204 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
8205 | # does the real work. The second script uses 'N' to pair each
|
---|
8206 | # line-number line with the line containing $LINENO, and appends
|
---|
8207 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
8208 | # case at line end.
|
---|
8209 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
8210 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
8211 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
8212 | sed -n '
|
---|
8213 | p
|
---|
8214 | /[$]LINENO/=
|
---|
8215 | ' <$as_myself |
|
---|
8216 | sed '
|
---|
8217 | s/[$]LINENO.*/&-/
|
---|
8218 | t lineno
|
---|
8219 | b
|
---|
8220 | :lineno
|
---|
8221 | N
|
---|
8222 | :loop
|
---|
8223 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
8224 | t loop
|
---|
8225 | s/-\n.*//
|
---|
8226 | ' >$as_me.lineno &&
|
---|
8227 | chmod +x "$as_me.lineno" ||
|
---|
8228 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
8229 | { (exit 1); exit 1; }; }
|
---|
8230 |
|
---|
8231 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
8232 | # (the dirname of $[0] is not the place where we might find the
|
---|
8233 | # original and so on. Autoconf is especially sensitive to this).
|
---|
8234 | . "./$as_me.lineno"
|
---|
8235 | # Exit status is that of the last command.
|
---|
8236 | exit
|
---|
8237 | }
|
---|
8238 |
|
---|
8239 |
|
---|
8240 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
8241 | as_dirname=dirname
|
---|
8242 | else
|
---|
8243 | as_dirname=false
|
---|
8244 | fi
|
---|
8245 |
|
---|
8246 | ECHO_C= ECHO_N= ECHO_T=
|
---|
8247 | case `echo -n x` in
|
---|
8248 | -n*)
|
---|
8249 | case `echo 'x\c'` in
|
---|
8250 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
8251 | *) ECHO_C='\c';;
|
---|
8252 | esac;;
|
---|
8253 | *)
|
---|
8254 | ECHO_N='-n';;
|
---|
8255 | esac
|
---|
8256 |
|
---|
8257 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
8258 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
8259 | as_expr=expr
|
---|
8260 | else
|
---|
8261 | as_expr=false
|
---|
8262 | fi
|
---|
8263 |
|
---|
8264 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
8265 | if test -d conf$$.dir; then
|
---|
8266 | rm -f conf$$.dir/conf$$.file
|
---|
8267 | else
|
---|
8268 | rm -f conf$$.dir
|
---|
8269 | mkdir conf$$.dir
|
---|
8270 | fi
|
---|
8271 | echo >conf$$.file
|
---|
8272 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
8273 | as_ln_s='ln -s'
|
---|
8274 | # ... but there are two gotchas:
|
---|
8275 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
8276 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
8277 | # In both cases, we have to default to `cp -p'.
|
---|
8278 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
8279 | as_ln_s='cp -p'
|
---|
8280 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
8281 | as_ln_s=ln
|
---|
8282 | else
|
---|
8283 | as_ln_s='cp -p'
|
---|
8284 | fi
|
---|
8285 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
8286 | rmdir conf$$.dir 2>/dev/null
|
---|
8287 |
|
---|
8288 | if mkdir -p . 2>/dev/null; then
|
---|
8289 | as_mkdir_p=:
|
---|
8290 | else
|
---|
8291 | test -d ./-p && rmdir ./-p
|
---|
8292 | as_mkdir_p=false
|
---|
8293 | fi
|
---|
8294 |
|
---|
8295 | if test -x / >/dev/null 2>&1; then
|
---|
8296 | as_test_x='test -x'
|
---|
8297 | else
|
---|
8298 | if ls -dL / >/dev/null 2>&1; then
|
---|
8299 | as_ls_L_option=L
|
---|
8300 | else
|
---|
8301 | as_ls_L_option=
|
---|
8302 | fi
|
---|
8303 | as_test_x='
|
---|
8304 | eval sh -c '\''
|
---|
8305 | if test -d "$1"; then
|
---|
8306 | test -d "$1/.";
|
---|
8307 | else
|
---|
8308 | case $1 in
|
---|
8309 | -*)set "./$1";;
|
---|
8310 | esac;
|
---|
8311 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
8312 | ???[sx]*):;;*)false;;esac;fi
|
---|
8313 | '\'' sh
|
---|
8314 | '
|
---|
8315 | fi
|
---|
8316 | as_executable_p=$as_test_x
|
---|
8317 |
|
---|
8318 | # Sed expression to map a string onto a valid CPP name.
|
---|
8319 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8320 |
|
---|
8321 | # Sed expression to map a string onto a valid variable name.
|
---|
8322 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
8323 |
|
---|
8324 |
|
---|
8325 | exec 6>&1
|
---|
8326 |
|
---|
8327 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
8328 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
8329 | # values after options handling.
|
---|
8330 | ac_log="
|
---|
8331 | This file was extended by $as_me, which was
|
---|
8332 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
8333 |
|
---|
8334 | CONFIG_FILES = $CONFIG_FILES
|
---|
8335 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
8336 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
8337 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
8338 | $ $0 $@
|
---|
8339 |
|
---|
8340 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
8341 | "
|
---|
8342 |
|
---|
8343 | _ACEOF
|
---|
8344 |
|
---|
8345 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8346 | # Files that config.status was made for.
|
---|
8347 | config_files="$ac_config_files"
|
---|
8348 | config_headers="$ac_config_headers"
|
---|
8349 |
|
---|
8350 | _ACEOF
|
---|
8351 |
|
---|
8352 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8353 | ac_cs_usage="\
|
---|
8354 | \`$as_me' instantiates files from templates according to the
|
---|
8355 | current configuration.
|
---|
8356 |
|
---|
8357 | Usage: $0 [OPTIONS] [FILE]...
|
---|
8358 |
|
---|
8359 | -h, --help print this help, then exit
|
---|
8360 | -V, --version print version number and configuration settings, then exit
|
---|
8361 | -q, --quiet do not print progress messages
|
---|
8362 | -d, --debug don't remove temporary files
|
---|
8363 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
8364 | --file=FILE[:TEMPLATE]
|
---|
8365 | instantiate the configuration file FILE
|
---|
8366 | --header=FILE[:TEMPLATE]
|
---|
8367 | instantiate the configuration header FILE
|
---|
8368 |
|
---|
8369 | Configuration files:
|
---|
8370 | $config_files
|
---|
8371 |
|
---|
8372 | Configuration headers:
|
---|
8373 | $config_headers
|
---|
8374 |
|
---|
8375 | Report bugs to <[email protected]>."
|
---|
8376 |
|
---|
8377 | _ACEOF
|
---|
8378 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8379 | ac_cs_version="\\
|
---|
8380 | config.status
|
---|
8381 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
8382 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
8383 |
|
---|
8384 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
8385 | This config.status script is free software; the Free Software Foundation
|
---|
8386 | gives unlimited permission to copy, distribute and modify it."
|
---|
8387 |
|
---|
8388 | ac_pwd='$ac_pwd'
|
---|
8389 | srcdir='$srcdir'
|
---|
8390 | INSTALL='$INSTALL'
|
---|
8391 | _ACEOF
|
---|
8392 |
|
---|
8393 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8394 | # If no file are specified by the user, then we need to provide default
|
---|
8395 | # value. By we need to know if files were specified by the user.
|
---|
8396 | ac_need_defaults=:
|
---|
8397 | while test $# != 0
|
---|
8398 | do
|
---|
8399 | case $1 in
|
---|
8400 | --*=*)
|
---|
8401 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
8402 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
8403 | ac_shift=:
|
---|
8404 | ;;
|
---|
8405 | *)
|
---|
8406 | ac_option=$1
|
---|
8407 | ac_optarg=$2
|
---|
8408 | ac_shift=shift
|
---|
8409 | ;;
|
---|
8410 | esac
|
---|
8411 |
|
---|
8412 | case $ac_option in
|
---|
8413 | # Handling of the options.
|
---|
8414 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
8415 | ac_cs_recheck=: ;;
|
---|
8416 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
8417 | echo "$ac_cs_version"; exit ;;
|
---|
8418 | --debug | --debu | --deb | --de | --d | -d )
|
---|
8419 | debug=: ;;
|
---|
8420 | --file | --fil | --fi | --f )
|
---|
8421 | $ac_shift
|
---|
8422 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
8423 | ac_need_defaults=false;;
|
---|
8424 | --header | --heade | --head | --hea )
|
---|
8425 | $ac_shift
|
---|
8426 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
8427 | ac_need_defaults=false;;
|
---|
8428 | --he | --h)
|
---|
8429 | # Conflict between --help and --header
|
---|
8430 | { echo "$as_me: error: ambiguous option: $1
|
---|
8431 | Try \`$0 --help' for more information." >&2
|
---|
8432 | { (exit 1); exit 1; }; };;
|
---|
8433 | --help | --hel | -h )
|
---|
8434 | echo "$ac_cs_usage"; exit ;;
|
---|
8435 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
8436 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
8437 | ac_cs_silent=: ;;
|
---|
8438 |
|
---|
8439 | # This is an error.
|
---|
8440 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
8441 | Try \`$0 --help' for more information." >&2
|
---|
8442 | { (exit 1); exit 1; }; } ;;
|
---|
8443 |
|
---|
8444 | *) ac_config_targets="$ac_config_targets $1"
|
---|
8445 | ac_need_defaults=false ;;
|
---|
8446 |
|
---|
8447 | esac
|
---|
8448 | shift
|
---|
8449 | done
|
---|
8450 |
|
---|
8451 | ac_configure_extra_args=
|
---|
8452 |
|
---|
8453 | if $ac_cs_silent; then
|
---|
8454 | exec 6>/dev/null
|
---|
8455 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
8456 | fi
|
---|
8457 |
|
---|
8458 | _ACEOF
|
---|
8459 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8460 | if \$ac_cs_recheck; then
|
---|
8461 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
8462 | CONFIG_SHELL=$SHELL
|
---|
8463 | export CONFIG_SHELL
|
---|
8464 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
8465 | fi
|
---|
8466 |
|
---|
8467 | _ACEOF
|
---|
8468 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8469 | exec 5>>config.log
|
---|
8470 | {
|
---|
8471 | echo
|
---|
8472 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
8473 | ## Running $as_me. ##
|
---|
8474 | _ASBOX
|
---|
8475 | echo "$ac_log"
|
---|
8476 | } >&5
|
---|
8477 |
|
---|
8478 | _ACEOF
|
---|
8479 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8480 | _ACEOF
|
---|
8481 |
|
---|
8482 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8483 |
|
---|
8484 | # Handling of arguments.
|
---|
8485 | for ac_config_target in $ac_config_targets
|
---|
8486 | do
|
---|
8487 | case $ac_config_target in
|
---|
8488 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
8489 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
8490 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
8491 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
8492 |
|
---|
8493 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
8494 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
8495 | { (exit 1); exit 1; }; };;
|
---|
8496 | esac
|
---|
8497 | done
|
---|
8498 |
|
---|
8499 |
|
---|
8500 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
8501 | # then the envvar interface is used. Set only those that are not.
|
---|
8502 | # We use the long form for the default assignment because of an extremely
|
---|
8503 | # bizarre bug on SunOS 4.1.3.
|
---|
8504 | if $ac_need_defaults; then
|
---|
8505 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
8506 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
8507 | fi
|
---|
8508 |
|
---|
8509 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
8510 | # simply because there is no reason against having it here, and in addition,
|
---|
8511 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
8512 | # Hook for its removal unless debugging.
|
---|
8513 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
8514 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
8515 | $debug ||
|
---|
8516 | {
|
---|
8517 | tmp=
|
---|
8518 | trap 'exit_status=$?
|
---|
8519 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
8520 | ' 0
|
---|
8521 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
8522 | }
|
---|
8523 | # Create a (secure) tmp directory for tmp files.
|
---|
8524 |
|
---|
8525 | {
|
---|
8526 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
8527 | test -n "$tmp" && test -d "$tmp"
|
---|
8528 | } ||
|
---|
8529 | {
|
---|
8530 | tmp=./conf$$-$RANDOM
|
---|
8531 | (umask 077 && mkdir "$tmp")
|
---|
8532 | } ||
|
---|
8533 | {
|
---|
8534 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
8535 | { (exit 1); exit 1; }
|
---|
8536 | }
|
---|
8537 |
|
---|
8538 | #
|
---|
8539 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
8540 | #
|
---|
8541 |
|
---|
8542 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
8543 | # This happens for instance when ./config.status config.h
|
---|
8544 | if test -n "$CONFIG_FILES"; then
|
---|
8545 |
|
---|
8546 | _ACEOF
|
---|
8547 |
|
---|
8548 |
|
---|
8549 |
|
---|
8550 | ac_delim='%!_!# '
|
---|
8551 | for ac_last_try in false false false false false :; do
|
---|
8552 | cat >conf$$subs.sed <<_ACEOF
|
---|
8553 | SHELL!$SHELL$ac_delim
|
---|
8554 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
8555 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
8556 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
8557 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
8558 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
8559 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
8560 | exec_prefix!$exec_prefix$ac_delim
|
---|
8561 | prefix!$prefix$ac_delim
|
---|
8562 | program_transform_name!$program_transform_name$ac_delim
|
---|
8563 | bindir!$bindir$ac_delim
|
---|
8564 | sbindir!$sbindir$ac_delim
|
---|
8565 | libexecdir!$libexecdir$ac_delim
|
---|
8566 | datarootdir!$datarootdir$ac_delim
|
---|
8567 | datadir!$datadir$ac_delim
|
---|
8568 | sysconfdir!$sysconfdir$ac_delim
|
---|
8569 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
8570 | localstatedir!$localstatedir$ac_delim
|
---|
8571 | includedir!$includedir$ac_delim
|
---|
8572 | oldincludedir!$oldincludedir$ac_delim
|
---|
8573 | docdir!$docdir$ac_delim
|
---|
8574 | infodir!$infodir$ac_delim
|
---|
8575 | htmldir!$htmldir$ac_delim
|
---|
8576 | dvidir!$dvidir$ac_delim
|
---|
8577 | pdfdir!$pdfdir$ac_delim
|
---|
8578 | psdir!$psdir$ac_delim
|
---|
8579 | libdir!$libdir$ac_delim
|
---|
8580 | localedir!$localedir$ac_delim
|
---|
8581 | mandir!$mandir$ac_delim
|
---|
8582 | DEFS!$DEFS$ac_delim
|
---|
8583 | ECHO_C!$ECHO_C$ac_delim
|
---|
8584 | ECHO_N!$ECHO_N$ac_delim
|
---|
8585 | ECHO_T!$ECHO_T$ac_delim
|
---|
8586 | LIBS!$LIBS$ac_delim
|
---|
8587 | build_alias!$build_alias$ac_delim
|
---|
8588 | host_alias!$host_alias$ac_delim
|
---|
8589 | target_alias!$target_alias$ac_delim
|
---|
8590 | PACKAGE!$PACKAGE$ac_delim
|
---|
8591 | VERSION!$VERSION$ac_delim
|
---|
8592 | USE_FASTCGI!$USE_FASTCGI$ac_delim
|
---|
8593 | USE_LANGACTION!$USE_LANGACTION$ac_delim
|
---|
8594 | USE_CORBA!$USE_CORBA$ac_delim
|
---|
8595 | MICO_DIR!$MICO_DIR$ac_delim
|
---|
8596 | ENABLE_JAVA!$ENABLE_JAVA$ac_delim
|
---|
8597 | USE_Z3950!$USE_Z3950$ac_delim
|
---|
8598 | USE_YAZ!$USE_YAZ$ac_delim
|
---|
8599 | USE_WVWARE!$USE_WVWARE$ac_delim
|
---|
8600 | USE_JDBM!$USE_JDBM$ac_delim
|
---|
8601 | USE_GDBM!$USE_GDBM$ac_delim
|
---|
8602 | ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
|
---|
8603 | USE_SQLITE!$USE_SQLITE$ac_delim
|
---|
8604 | USE_RSS!$USE_RSS$ac_delim
|
---|
8605 | USE_APACHE_HTTPD!$USE_APACHE_HTTPD$ac_delim
|
---|
8606 | ENABLE_JNI!$ENABLE_JNI$ac_delim
|
---|
8607 | ENABLE_MG!$ENABLE_MG$ac_delim
|
---|
8608 | ENABLE_MGPP!$ENABLE_MGPP$ac_delim
|
---|
8609 | ENABLE_LUCENE!$ENABLE_LUCENE$ac_delim
|
---|
8610 | ENABLE_GNOMELIB_EXT!$ENABLE_GNOMELIB_EXT$ac_delim
|
---|
8611 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
8612 | CFLAGS!$CFLAGS$ac_delim
|
---|
8613 | CC!$CC$ac_delim
|
---|
8614 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
8615 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
8616 | EXEEXT!$EXEEXT$ac_delim
|
---|
8617 | OBJEXT!$OBJEXT$ac_delim
|
---|
8618 | CXX!$CXX$ac_delim
|
---|
8619 | CXXFLAGS!$CXXFLAGS$ac_delim
|
---|
8620 | ac_ct_CXX!$ac_ct_CXX$ac_delim
|
---|
8621 | AWK!$AWK$ac_delim
|
---|
8622 | YACC!$YACC$ac_delim
|
---|
8623 | YFLAGS!$YFLAGS$ac_delim
|
---|
8624 | build!$build$ac_delim
|
---|
8625 | build_cpu!$build_cpu$ac_delim
|
---|
8626 | build_vendor!$build_vendor$ac_delim
|
---|
8627 | build_os!$build_os$ac_delim
|
---|
8628 | host!$host$ac_delim
|
---|
8629 | host_cpu!$host_cpu$ac_delim
|
---|
8630 | host_vendor!$host_vendor$ac_delim
|
---|
8631 | host_os!$host_os$ac_delim
|
---|
8632 | target!$target$ac_delim
|
---|
8633 | target_cpu!$target_cpu$ac_delim
|
---|
8634 | target_vendor!$target_vendor$ac_delim
|
---|
8635 | target_os!$target_os$ac_delim
|
---|
8636 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
8637 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
8638 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
8639 | LN_S!$LN_S$ac_delim
|
---|
8640 | SET_MAKE!$SET_MAKE$ac_delim
|
---|
8641 | RANLIB!$RANLIB$ac_delim
|
---|
8642 | ARCH_DEP_FLAGS!$ARCH_DEP_FLAGS$ac_delim
|
---|
8643 | MICO_VER!$MICO_VER$ac_delim
|
---|
8644 | CPP!$CPP$ac_delim
|
---|
8645 | GREP!$GREP$ac_delim
|
---|
8646 | EGREP!$EGREP$ac_delim
|
---|
8647 | U!$U$ac_delim
|
---|
8648 | ANSI2KNR!$ANSI2KNR$ac_delim
|
---|
8649 | ALLOCA!$ALLOCA$ac_delim
|
---|
8650 | _ACEOF
|
---|
8651 |
|
---|
8652 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
---|
8653 | break
|
---|
8654 | elif $ac_last_try; then
|
---|
8655 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
8656 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
8657 | { (exit 1); exit 1; }; }
|
---|
8658 | else
|
---|
8659 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
8660 | fi
|
---|
8661 | done
|
---|
8662 |
|
---|
8663 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
8664 | if test -n "$ac_eof"; then
|
---|
8665 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
8666 | ac_eof=`expr $ac_eof + 1`
|
---|
8667 | fi
|
---|
8668 |
|
---|
8669 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8670 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
8671 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8672 | _ACEOF
|
---|
8673 | sed '
|
---|
8674 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
8675 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
8676 | :n
|
---|
8677 | t n
|
---|
8678 | s/'"$ac_delim"'$/,g/; t
|
---|
8679 | s/$/\\/; p
|
---|
8680 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
8681 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
8682 | rm -f conf$$subs.sed
|
---|
8683 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8684 | CEOF$ac_eof
|
---|
8685 | _ACEOF
|
---|
8686 |
|
---|
8687 |
|
---|
8688 | ac_delim='%!_!# '
|
---|
8689 | for ac_last_try in false false false false false :; do
|
---|
8690 | cat >conf$$subs.sed <<_ACEOF
|
---|
8691 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
8692 | STATIC!$STATIC$ac_delim
|
---|
8693 | gsdlos!$gsdlos$ac_delim
|
---|
8694 | MODULEDIRS!$MODULEDIRS$ac_delim
|
---|
8695 | subdirs!$subdirs$ac_delim
|
---|
8696 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
8697 | _ACEOF
|
---|
8698 |
|
---|
8699 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
|
---|
8700 | break
|
---|
8701 | elif $ac_last_try; then
|
---|
8702 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
8703 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
8704 | { (exit 1); exit 1; }; }
|
---|
8705 | else
|
---|
8706 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
8707 | fi
|
---|
8708 | done
|
---|
8709 |
|
---|
8710 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
8711 | if test -n "$ac_eof"; then
|
---|
8712 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
8713 | ac_eof=`expr $ac_eof + 1`
|
---|
8714 | fi
|
---|
8715 |
|
---|
8716 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8717 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
---|
8718 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
8719 | _ACEOF
|
---|
8720 | sed '
|
---|
8721 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
8722 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
8723 | :n
|
---|
8724 | t n
|
---|
8725 | s/'"$ac_delim"'$/,g/; t
|
---|
8726 | s/$/\\/; p
|
---|
8727 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
8728 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
8729 | rm -f conf$$subs.sed
|
---|
8730 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8731 | :end
|
---|
8732 | s/|#_!!_#|//g
|
---|
8733 | CEOF$ac_eof
|
---|
8734 | _ACEOF
|
---|
8735 |
|
---|
8736 |
|
---|
8737 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
8738 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
8739 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
8740 | # (actually we leave an empty line to preserve line numbers).
|
---|
8741 | if test "x$srcdir" = x.; then
|
---|
8742 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
8743 | s/:*\$(srcdir):*/:/
|
---|
8744 | s/:*\${srcdir}:*/:/
|
---|
8745 | s/:*@srcdir@:*/:/
|
---|
8746 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
8747 | s/:*$//
|
---|
8748 | s/^[^=]*=[ ]*$//
|
---|
8749 | }'
|
---|
8750 | fi
|
---|
8751 |
|
---|
8752 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8753 | fi # test -n "$CONFIG_FILES"
|
---|
8754 |
|
---|
8755 |
|
---|
8756 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
---|
8757 | do
|
---|
8758 | case $ac_tag in
|
---|
8759 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
8760 | esac
|
---|
8761 | case $ac_mode$ac_tag in
|
---|
8762 | :[FHL]*:*);;
|
---|
8763 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
8764 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
8765 | { (exit 1); exit 1; }; };;
|
---|
8766 | :[FH]-) ac_tag=-:-;;
|
---|
8767 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
8768 | esac
|
---|
8769 | ac_save_IFS=$IFS
|
---|
8770 | IFS=:
|
---|
8771 | set x $ac_tag
|
---|
8772 | IFS=$ac_save_IFS
|
---|
8773 | shift
|
---|
8774 | ac_file=$1
|
---|
8775 | shift
|
---|
8776 |
|
---|
8777 | case $ac_mode in
|
---|
8778 | :L) ac_source=$1;;
|
---|
8779 | :[FH])
|
---|
8780 | ac_file_inputs=
|
---|
8781 | for ac_f
|
---|
8782 | do
|
---|
8783 | case $ac_f in
|
---|
8784 | -) ac_f="$tmp/stdin";;
|
---|
8785 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8786 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8787 | # because $ac_f cannot contain `:'.
|
---|
8788 | test -f "$ac_f" ||
|
---|
8789 | case $ac_f in
|
---|
8790 | [\\/$]*) false;;
|
---|
8791 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8792 | esac ||
|
---|
8793 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
8794 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
8795 | { (exit 1); exit 1; }; };;
|
---|
8796 | esac
|
---|
8797 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
8798 | done
|
---|
8799 |
|
---|
8800 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8801 | # use $as_me), people would be surprised to read:
|
---|
8802 | # /* config.h. Generated by config.status. */
|
---|
8803 | configure_input="Generated from "`IFS=:
|
---|
8804 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
8805 | if test x"$ac_file" != x-; then
|
---|
8806 | configure_input="$ac_file. $configure_input"
|
---|
8807 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8808 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8809 | fi
|
---|
8810 |
|
---|
8811 | case $ac_tag in
|
---|
8812 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
8813 | esac
|
---|
8814 | ;;
|
---|
8815 | esac
|
---|
8816 |
|
---|
8817 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8818 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8819 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8820 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8821 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8822 | echo X"$ac_file" |
|
---|
8823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8824 | s//\1/
|
---|
8825 | q
|
---|
8826 | }
|
---|
8827 | /^X\(\/\/\)[^/].*/{
|
---|
8828 | s//\1/
|
---|
8829 | q
|
---|
8830 | }
|
---|
8831 | /^X\(\/\/\)$/{
|
---|
8832 | s//\1/
|
---|
8833 | q
|
---|
8834 | }
|
---|
8835 | /^X\(\/\).*/{
|
---|
8836 | s//\1/
|
---|
8837 | q
|
---|
8838 | }
|
---|
8839 | s/.*/./; q'`
|
---|
8840 | { as_dir="$ac_dir"
|
---|
8841 | case $as_dir in #(
|
---|
8842 | -*) as_dir=./$as_dir;;
|
---|
8843 | esac
|
---|
8844 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
8845 | as_dirs=
|
---|
8846 | while :; do
|
---|
8847 | case $as_dir in #(
|
---|
8848 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
8849 | *) as_qdir=$as_dir;;
|
---|
8850 | esac
|
---|
8851 | as_dirs="'$as_qdir' $as_dirs"
|
---|
8852 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
8853 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8854 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8855 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8856 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8857 | echo X"$as_dir" |
|
---|
8858 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8859 | s//\1/
|
---|
8860 | q
|
---|
8861 | }
|
---|
8862 | /^X\(\/\/\)[^/].*/{
|
---|
8863 | s//\1/
|
---|
8864 | q
|
---|
8865 | }
|
---|
8866 | /^X\(\/\/\)$/{
|
---|
8867 | s//\1/
|
---|
8868 | q
|
---|
8869 | }
|
---|
8870 | /^X\(\/\).*/{
|
---|
8871 | s//\1/
|
---|
8872 | q
|
---|
8873 | }
|
---|
8874 | s/.*/./; q'`
|
---|
8875 | test -d "$as_dir" && break
|
---|
8876 | done
|
---|
8877 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
8878 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
8879 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
8880 | { (exit 1); exit 1; }; }; }
|
---|
8881 | ac_builddir=.
|
---|
8882 |
|
---|
8883 | case "$ac_dir" in
|
---|
8884 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8885 | *)
|
---|
8886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8887 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8888 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
8889 | case $ac_top_builddir_sub in
|
---|
8890 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8891 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8892 | esac ;;
|
---|
8893 | esac
|
---|
8894 | ac_abs_top_builddir=$ac_pwd
|
---|
8895 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8896 | # for backward compatibility:
|
---|
8897 | ac_top_builddir=$ac_top_build_prefix
|
---|
8898 |
|
---|
8899 | case $srcdir in
|
---|
8900 | .) # We are building in place.
|
---|
8901 | ac_srcdir=.
|
---|
8902 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8903 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8904 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8905 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8906 | ac_top_srcdir=$srcdir
|
---|
8907 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8908 | *) # Relative name.
|
---|
8909 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8910 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8911 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8912 | esac
|
---|
8913 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8914 |
|
---|
8915 |
|
---|
8916 | case $ac_mode in
|
---|
8917 | :F)
|
---|
8918 | #
|
---|
8919 | # CONFIG_FILE
|
---|
8920 | #
|
---|
8921 |
|
---|
8922 | case $INSTALL in
|
---|
8923 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8924 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
8925 | esac
|
---|
8926 | _ACEOF
|
---|
8927 |
|
---|
8928 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8929 | # If the template does not know about datarootdir, expand it.
|
---|
8930 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
8931 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
8932 |
|
---|
8933 | case `sed -n '/datarootdir/ {
|
---|
8934 | p
|
---|
8935 | q
|
---|
8936 | }
|
---|
8937 | /@datadir@/p
|
---|
8938 | /@docdir@/p
|
---|
8939 | /@infodir@/p
|
---|
8940 | /@localedir@/p
|
---|
8941 | /@mandir@/p
|
---|
8942 | ' $ac_file_inputs` in
|
---|
8943 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8944 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8945 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8946 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8947 | _ACEOF
|
---|
8948 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8949 | ac_datarootdir_hack='
|
---|
8950 | s&@datadir@&$datadir&g
|
---|
8951 | s&@docdir@&$docdir&g
|
---|
8952 | s&@infodir@&$infodir&g
|
---|
8953 | s&@localedir@&$localedir&g
|
---|
8954 | s&@mandir@&$mandir&g
|
---|
8955 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8956 | esac
|
---|
8957 | _ACEOF
|
---|
8958 |
|
---|
8959 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8960 | # Shell code in configure.ac might set extrasub.
|
---|
8961 | # FIXME: do we really want to maintain this feature?
|
---|
8962 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8963 | sed "$ac_vpsub
|
---|
8964 | $extrasub
|
---|
8965 | _ACEOF
|
---|
8966 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8967 | :t
|
---|
8968 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8969 | s&@configure_input@&$configure_input&;t t
|
---|
8970 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8971 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8972 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8973 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8974 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8975 | s&@builddir@&$ac_builddir&;t t
|
---|
8976 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8977 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8978 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8979 | $ac_datarootdir_hack
|
---|
8980 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
---|
8981 |
|
---|
8982 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8983 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
8984 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
8985 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8986 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
8987 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8988 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
8989 |
|
---|
8990 | rm -f "$tmp/stdin"
|
---|
8991 | case $ac_file in
|
---|
8992 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
8993 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
8994 | esac
|
---|
8995 | ;;
|
---|
8996 | :H)
|
---|
8997 | #
|
---|
8998 | # CONFIG_HEADER
|
---|
8999 | #
|
---|
9000 | _ACEOF
|
---|
9001 |
|
---|
9002 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
9003 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
9004 | rm -f conftest.defines conftest.tail
|
---|
9005 | # First, append a space to every undef/define line, to ease matching.
|
---|
9006 | echo 's/$/ /' >conftest.defines
|
---|
9007 | # Then, protect against being on the right side of a sed subst, or in
|
---|
9008 | # an unquoted here document, in config.status. If some macros were
|
---|
9009 | # called several times there might be several #defines for the same
|
---|
9010 | # symbol, which is useless. But do not sort them, since the last
|
---|
9011 | # AC_DEFINE must be honored.
|
---|
9012 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
9013 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
9014 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
9015 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
9016 | # just an empty string.
|
---|
9017 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
9018 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
9019 | ac_dC=' '
|
---|
9020 | ac_dD=' ,'
|
---|
9021 |
|
---|
9022 | uniq confdefs.h |
|
---|
9023 | sed -n '
|
---|
9024 | t rset
|
---|
9025 | :rset
|
---|
9026 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
9027 | t ok
|
---|
9028 | d
|
---|
9029 | :ok
|
---|
9030 | s/[\\&,]/\\&/g
|
---|
9031 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
9032 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
9033 | ' >>conftest.defines
|
---|
9034 |
|
---|
9035 | # Remove the space that was appended to ease matching.
|
---|
9036 | # Then replace #undef with comments. This is necessary, for
|
---|
9037 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
9038 | # on some systems where configure will not decide to define it.
|
---|
9039 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
9040 | echo 's/ $//
|
---|
9041 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
9042 |
|
---|
9043 | # Break up conftest.defines:
|
---|
9044 | ac_max_sed_lines=50
|
---|
9045 |
|
---|
9046 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
9047 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
9048 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
9049 | # et cetera.
|
---|
9050 | ac_in='$ac_file_inputs'
|
---|
9051 | ac_out='"$tmp/out1"'
|
---|
9052 | ac_nxt='"$tmp/out2"'
|
---|
9053 |
|
---|
9054 | while :
|
---|
9055 | do
|
---|
9056 | # Write a here document:
|
---|
9057 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
9058 | # First, check the format of the line:
|
---|
9059 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
9060 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
9061 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
9062 | b
|
---|
9063 | :def
|
---|
9064 | _ACEOF
|
---|
9065 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
9066 | echo 'CEOF
|
---|
9067 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
9068 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
9069 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
9070 | grep . conftest.tail >/dev/null || break
|
---|
9071 | rm -f conftest.defines
|
---|
9072 | mv conftest.tail conftest.defines
|
---|
9073 | done
|
---|
9074 | rm -f conftest.defines conftest.tail
|
---|
9075 |
|
---|
9076 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
9077 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
9078 | if test x"$ac_file" != x-; then
|
---|
9079 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
9080 | cat "$ac_result" >>"$tmp/config.h"
|
---|
9081 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
9082 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
9083 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
9084 | else
|
---|
9085 | rm -f $ac_file
|
---|
9086 | mv "$tmp/config.h" $ac_file
|
---|
9087 | fi
|
---|
9088 | else
|
---|
9089 | echo "/* $configure_input */"
|
---|
9090 | cat "$ac_result"
|
---|
9091 | fi
|
---|
9092 | rm -f "$tmp/out12"
|
---|
9093 | ;;
|
---|
9094 |
|
---|
9095 |
|
---|
9096 | esac
|
---|
9097 |
|
---|
9098 | done # for ac_tag
|
---|
9099 |
|
---|
9100 |
|
---|
9101 | { (exit 0); exit 0; }
|
---|
9102 | _ACEOF
|
---|
9103 | chmod +x $CONFIG_STATUS
|
---|
9104 | ac_clean_files=$ac_clean_files_save
|
---|
9105 |
|
---|
9106 |
|
---|
9107 | # configure is writing to config.log, and then calls config.status.
|
---|
9108 | # config.status does its own redirection, appending to config.log.
|
---|
9109 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
9110 | # by configure, so config.status won't be able to write to it; its
|
---|
9111 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
9112 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
9113 | # appended to by config.status. When coming back to configure, we
|
---|
9114 | # need to make the FD available again.
|
---|
9115 | if test "$no_create" != yes; then
|
---|
9116 | ac_cs_success=:
|
---|
9117 | ac_config_status_args=
|
---|
9118 | test "$silent" = yes &&
|
---|
9119 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
9120 | exec 5>/dev/null
|
---|
9121 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
9122 | exec 5>>config.log
|
---|
9123 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
9124 | # would make configure fail if this is the last instruction.
|
---|
9125 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
9126 | fi
|
---|
9127 |
|
---|
9128 | #
|
---|
9129 | # CONFIG_SUBDIRS section.
|
---|
9130 | #
|
---|
9131 | if test "$no_recursion" != yes; then
|
---|
9132 |
|
---|
9133 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
9134 | ac_sub_configure_args=
|
---|
9135 | ac_prev=
|
---|
9136 | eval "set x $ac_configure_args"
|
---|
9137 | shift
|
---|
9138 | for ac_arg
|
---|
9139 | do
|
---|
9140 | if test -n "$ac_prev"; then
|
---|
9141 | ac_prev=
|
---|
9142 | continue
|
---|
9143 | fi
|
---|
9144 | case $ac_arg in
|
---|
9145 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
9146 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
9147 | ac_prev=cache_file ;;
|
---|
9148 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
9149 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
9150 | | --c=*)
|
---|
9151 | ;;
|
---|
9152 | --config-cache | -C)
|
---|
9153 | ;;
|
---|
9154 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
9155 | ac_prev=srcdir ;;
|
---|
9156 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
9157 | ;;
|
---|
9158 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
9159 | ac_prev=prefix ;;
|
---|
9160 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
9161 | ;;
|
---|
9162 | *)
|
---|
9163 | case $ac_arg in
|
---|
9164 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
9165 | esac
|
---|
9166 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
|
---|
9167 | esac
|
---|
9168 | done
|
---|
9169 |
|
---|
9170 | # Always prepend --prefix to ensure using the same prefix
|
---|
9171 | # in subdir configurations.
|
---|
9172 | ac_arg="--prefix=$prefix"
|
---|
9173 | case $ac_arg in
|
---|
9174 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
9175 | esac
|
---|
9176 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
9177 |
|
---|
9178 | # Pass --silent
|
---|
9179 | if test "$silent" = yes; then
|
---|
9180 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
9181 | fi
|
---|
9182 |
|
---|
9183 | ac_popdir=`pwd`
|
---|
9184 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
9185 |
|
---|
9186 | # Do not complain, so a configure script can configure whichever
|
---|
9187 | # parts of a large source tree are present.
|
---|
9188 | test -d "$srcdir/$ac_dir" || continue
|
---|
9189 |
|
---|
9190 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
9191 | echo "$as_me:$LINENO: $ac_msg" >&5
|
---|
9192 | echo "$ac_msg" >&6
|
---|
9193 | { as_dir="$ac_dir"
|
---|
9194 | case $as_dir in #(
|
---|
9195 | -*) as_dir=./$as_dir;;
|
---|
9196 | esac
|
---|
9197 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
9198 | as_dirs=
|
---|
9199 | while :; do
|
---|
9200 | case $as_dir in #(
|
---|
9201 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
9202 | *) as_qdir=$as_dir;;
|
---|
9203 | esac
|
---|
9204 | as_dirs="'$as_qdir' $as_dirs"
|
---|
9205 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
9206 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
9207 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
9208 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
9209 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
9210 | echo X"$as_dir" |
|
---|
9211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
9212 | s//\1/
|
---|
9213 | q
|
---|
9214 | }
|
---|
9215 | /^X\(\/\/\)[^/].*/{
|
---|
9216 | s//\1/
|
---|
9217 | q
|
---|
9218 | }
|
---|
9219 | /^X\(\/\/\)$/{
|
---|
9220 | s//\1/
|
---|
9221 | q
|
---|
9222 | }
|
---|
9223 | /^X\(\/\).*/{
|
---|
9224 | s//\1/
|
---|
9225 | q
|
---|
9226 | }
|
---|
9227 | s/.*/./; q'`
|
---|
9228 | test -d "$as_dir" && break
|
---|
9229 | done
|
---|
9230 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
9231 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
9232 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
9233 | { (exit 1); exit 1; }; }; }
|
---|
9234 | ac_builddir=.
|
---|
9235 |
|
---|
9236 | case "$ac_dir" in
|
---|
9237 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
9238 | *)
|
---|
9239 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
9240 | # A ".." for each directory in $ac_dir_suffix.
|
---|
9241 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
9242 | case $ac_top_builddir_sub in
|
---|
9243 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
9244 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
9245 | esac ;;
|
---|
9246 | esac
|
---|
9247 | ac_abs_top_builddir=$ac_pwd
|
---|
9248 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
9249 | # for backward compatibility:
|
---|
9250 | ac_top_builddir=$ac_top_build_prefix
|
---|
9251 |
|
---|
9252 | case $srcdir in
|
---|
9253 | .) # We are building in place.
|
---|
9254 | ac_srcdir=.
|
---|
9255 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
9256 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
9257 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
9258 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
9259 | ac_top_srcdir=$srcdir
|
---|
9260 | ac_abs_top_srcdir=$srcdir ;;
|
---|
9261 | *) # Relative name.
|
---|
9262 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
9263 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
9264 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
9265 | esac
|
---|
9266 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
9267 |
|
---|
9268 |
|
---|
9269 | cd "$ac_dir"
|
---|
9270 |
|
---|
9271 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
9272 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
9273 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
9274 | elif test -f "$ac_srcdir/configure"; then
|
---|
9275 | ac_sub_configure=$ac_srcdir/configure
|
---|
9276 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
9277 | # This should be Cygnus configure.
|
---|
9278 | ac_sub_configure=$ac_aux_dir/configure
|
---|
9279 | else
|
---|
9280 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
9281 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
9282 | ac_sub_configure=
|
---|
9283 | fi
|
---|
9284 |
|
---|
9285 | # The recursion is here.
|
---|
9286 | if test -n "$ac_sub_configure"; then
|
---|
9287 | # Make the cache file name correct relative to the subdirectory.
|
---|
9288 | case $cache_file in
|
---|
9289 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
9290 | *) # Relative name.
|
---|
9291 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
9292 | esac
|
---|
9293 |
|
---|
9294 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
9295 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
9296 | # The eval makes quoting arguments work.
|
---|
9297 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
9298 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
9299 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
9300 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
9301 | { (exit 1); exit 1; }; }
|
---|
9302 | fi
|
---|
9303 |
|
---|
9304 | cd "$ac_popdir"
|
---|
9305 | done
|
---|
9306 | fi
|
---|
9307 |
|
---|
9308 |
|
---|
9309 |
|
---|