]>
Commit | Line | Data |
---|---|---|
da6ee469 JF |
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 autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
427 | ||
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
430 | # line-number line after each line using $LINENO; the second 'sed' | |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
442 | sed ' | |
443 | s/[$]LINENO.*/&-/ | |
444 | t lineno | |
445 | b | |
446 | :lineno | |
447 | N | |
448 | :loop | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
450 | t loop | |
451 | s/-\n.*// | |
452 | ' >$as_me.lineno && | |
453 | chmod +x "$as_me.lineno" || | |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
459 | # original and so on. Autoconf is especially sensitive to this). | |
460 | . "./$as_me.lineno" | |
461 | # Exit status is that of the last command. | |
462 | exit | |
463 | } | |
464 | ||
465 | ||
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
481 | esac | |
482 | ||
483 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
485 | as_expr=expr | |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
491 | if test -d conf$$.dir; then | |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
497 | echo >conf$$.file | |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
499 | as_ln_s='ln -s' | |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
505 | as_ln_s='cp -p' | |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
512 | rmdir conf$$.dir 2>/dev/null | |
513 | ||
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
517 | test -d ./-p && rmdir ./-p | |
518 | as_mkdir_p=false | |
519 | fi | |
520 | ||
521 | if test -x / >/dev/null 2>&1; then | |
522 | as_test_x='test -x' | |
523 | else | |
524 | if ls -dL / >/dev/null 2>&1; then | |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
543 | ||
544 | # Sed expression to map a string onto a valid CPP name. | |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | ||
547 | # Sed expression to map a string onto a valid variable name. | |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | ||
551 | ||
552 | exec 7<&0 </dev/null 6>&1 | |
553 | ||
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
559 | # | |
560 | # Initializations. | |
561 | # | |
562 | ac_default_prefix=/usr/local | |
563 | ac_clean_files= | |
564 | ac_config_libobj_dir=. | |
565 | LIBOBJS= | |
566 | cross_compiling=no | |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
572 | # Identity of this package. | |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="configure.in" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
583 | #ifdef HAVE_SYS_TYPES_H | |
584 | # include <sys/types.h> | |
585 | #endif | |
586 | #ifdef HAVE_SYS_STAT_H | |
587 | # include <sys/stat.h> | |
588 | #endif | |
589 | #ifdef STDC_HEADERS | |
590 | # include <stdlib.h> | |
591 | # include <stddef.h> | |
592 | #else | |
593 | # ifdef HAVE_STDLIB_H | |
594 | # include <stdlib.h> | |
595 | # endif | |
596 | #endif | |
597 | #ifdef HAVE_STRING_H | |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
599 | # include <memory.h> | |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
603 | #ifdef HAVE_STRINGS_H | |
604 | # include <strings.h> | |
605 | #endif | |
606 | #ifdef HAVE_INTTYPES_H | |
607 | # include <inttypes.h> | |
608 | #endif | |
609 | #ifdef HAVE_STDINT_H | |
610 | # include <stdint.h> | |
611 | #endif | |
612 | #ifdef HAVE_UNISTD_H | |
613 | # include <unistd.h> | |
614 | #endif" | |
615 | ||
00ec24d0 | 616 | gt_needs= |
da6ee469 JF |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | PACKAGE | |
655 | build | |
656 | build_cpu | |
657 | build_vendor | |
658 | build_os | |
659 | host | |
660 | host_cpu | |
661 | host_vendor | |
662 | host_os | |
663 | target | |
664 | target_cpu | |
665 | target_vendor | |
666 | target_os | |
667 | CC | |
668 | CFLAGS | |
669 | LDFLAGS | |
670 | CPPFLAGS | |
671 | ac_ct_CC | |
672 | EXEEXT | |
673 | OBJEXT | |
674 | CXX | |
675 | CXXFLAGS | |
676 | ac_ct_CXX | |
677 | CPP | |
678 | RANLIB | |
679 | AR | |
680 | SOCKETLIBS | |
681 | PTHREADLIB | |
682 | GREP | |
683 | EGREP | |
684 | BDBLIB | |
685 | HAVE_STATVFS | |
686 | HAVE_TIMEGM | |
687 | HAVE_C9X | |
688 | NEED_SOCKLEN_T_DEFINE | |
689 | DEBIANDOC_HTML | |
690 | DEBIANDOC_TEXT | |
00ec24d0 | 691 | DOXYGEN |
da6ee469 JF |
692 | DOCBOOK2MAN |
693 | XMLTO | |
00ec24d0 JF |
694 | HAVE_DOT |
695 | DOT | |
696 | DOTDIR | |
da6ee469 JF |
697 | GETCONF |
698 | NUM_CPUS | |
699 | PROC_MULTIPLY | |
700 | NUM_PROCS | |
701 | GLIBC_VER | |
702 | LIBSTDCPP_VER | |
703 | GCC3DEP | |
704 | SET_MAKE | |
705 | INSTALL_PROGRAM | |
706 | INSTALL_SCRIPT | |
707 | INSTALL_DATA | |
708 | mkdir_p | |
709 | USE_NLS | |
00ec24d0 | 710 | GETTEXT_MACRO_VERSION |
da6ee469 JF |
711 | MSGFMT |
712 | GMSGFMT | |
713 | MSGFMT_015 | |
714 | GMSGFMT_015 | |
715 | XGETTEXT | |
716 | XGETTEXT_015 | |
717 | MSGMERGE | |
00ec24d0 | 718 | XGETTEXT_EXTRA_OPTIONS |
da6ee469 JF |
719 | INTL_MACOSX_LIBS |
720 | LIBICONV | |
721 | LTLIBICONV | |
722 | INTLLIBS | |
723 | LIBINTL | |
724 | LTLIBINTL | |
725 | POSUB | |
726 | BASH | |
727 | LIBOBJS | |
728 | LTLIBOBJS' | |
729 | ac_subst_files='' | |
730 | ac_precious_vars='build_alias | |
731 | host_alias | |
732 | target_alias | |
733 | CC | |
734 | CFLAGS | |
735 | LDFLAGS | |
736 | LIBS | |
737 | CPPFLAGS | |
738 | CXX | |
739 | CXXFLAGS | |
740 | CCC | |
741 | CPP' | |
742 | ||
743 | ||
744 | # Initialize some variables set by options. | |
745 | ac_init_help= | |
746 | ac_init_version=false | |
747 | # The variables have the same names as the options, with | |
748 | # dashes changed to underlines. | |
749 | cache_file=/dev/null | |
750 | exec_prefix=NONE | |
751 | no_create= | |
752 | no_recursion= | |
753 | prefix=NONE | |
754 | program_prefix=NONE | |
755 | program_suffix=NONE | |
756 | program_transform_name=s,x,x, | |
757 | silent= | |
758 | site= | |
759 | srcdir= | |
760 | verbose= | |
761 | x_includes=NONE | |
762 | x_libraries=NONE | |
763 | ||
764 | # Installation directory options. | |
765 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
766 | # and all the variables that are supposed to be based on exec_prefix | |
767 | # by default will actually change. | |
768 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
769 | # (The list follows the same order as the GNU Coding Standards.) | |
770 | bindir='${exec_prefix}/bin' | |
771 | sbindir='${exec_prefix}/sbin' | |
772 | libexecdir='${exec_prefix}/libexec' | |
773 | datarootdir='${prefix}/share' | |
774 | datadir='${datarootdir}' | |
775 | sysconfdir='${prefix}/etc' | |
776 | sharedstatedir='${prefix}/com' | |
777 | localstatedir='${prefix}/var' | |
778 | includedir='${prefix}/include' | |
779 | oldincludedir='/usr/include' | |
780 | docdir='${datarootdir}/doc/${PACKAGE}' | |
781 | infodir='${datarootdir}/info' | |
782 | htmldir='${docdir}' | |
783 | dvidir='${docdir}' | |
784 | pdfdir='${docdir}' | |
785 | psdir='${docdir}' | |
786 | libdir='${exec_prefix}/lib' | |
787 | localedir='${datarootdir}/locale' | |
788 | mandir='${datarootdir}/man' | |
789 | ||
790 | ac_prev= | |
791 | ac_dashdash= | |
792 | for ac_option | |
793 | do | |
794 | # If the previous option needs an argument, assign it. | |
795 | if test -n "$ac_prev"; then | |
796 | eval $ac_prev=\$ac_option | |
797 | ac_prev= | |
798 | continue | |
799 | fi | |
800 | ||
801 | case $ac_option in | |
802 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
803 | *) ac_optarg=yes ;; | |
804 | esac | |
805 | ||
806 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
807 | ||
808 | case $ac_dashdash$ac_option in | |
809 | --) | |
810 | ac_dashdash=yes ;; | |
811 | ||
812 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
813 | ac_prev=bindir ;; | |
814 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
815 | bindir=$ac_optarg ;; | |
816 | ||
817 | -build | --build | --buil | --bui | --bu) | |
818 | ac_prev=build_alias ;; | |
819 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
820 | build_alias=$ac_optarg ;; | |
821 | ||
822 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
823 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
824 | ac_prev=cache_file ;; | |
825 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
826 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
827 | cache_file=$ac_optarg ;; | |
828 | ||
829 | --config-cache | -C) | |
830 | cache_file=config.cache ;; | |
831 | ||
832 | -datadir | --datadir | --datadi | --datad) | |
833 | ac_prev=datadir ;; | |
834 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
835 | datadir=$ac_optarg ;; | |
836 | ||
837 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
838 | | --dataroo | --dataro | --datar) | |
839 | ac_prev=datarootdir ;; | |
840 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
841 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
842 | datarootdir=$ac_optarg ;; | |
843 | ||
844 | -disable-* | --disable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
849 | { (exit 1); exit 1; }; } | |
850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
851 | eval enable_$ac_feature=no ;; | |
852 | ||
853 | -docdir | --docdir | --docdi | --doc | --do) | |
854 | ac_prev=docdir ;; | |
855 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
856 | docdir=$ac_optarg ;; | |
857 | ||
858 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
859 | ac_prev=dvidir ;; | |
860 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
861 | dvidir=$ac_optarg ;; | |
862 | ||
863 | -enable-* | --enable-*) | |
864 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
865 | # Reject names that are not valid shell variable names. | |
866 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
867 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
868 | { (exit 1); exit 1; }; } | |
869 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
870 | eval enable_$ac_feature=\$ac_optarg ;; | |
871 | ||
872 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
873 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
874 | | --exec | --exe | --ex) | |
875 | ac_prev=exec_prefix ;; | |
876 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
877 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
878 | | --exec=* | --exe=* | --ex=*) | |
879 | exec_prefix=$ac_optarg ;; | |
880 | ||
881 | -gas | --gas | --ga | --g) | |
882 | # Obsolete; use --with-gas. | |
883 | with_gas=yes ;; | |
884 | ||
885 | -help | --help | --hel | --he | -h) | |
886 | ac_init_help=long ;; | |
887 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
888 | ac_init_help=recursive ;; | |
889 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
890 | ac_init_help=short ;; | |
891 | ||
892 | -host | --host | --hos | --ho) | |
893 | ac_prev=host_alias ;; | |
894 | -host=* | --host=* | --hos=* | --ho=*) | |
895 | host_alias=$ac_optarg ;; | |
896 | ||
897 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
898 | ac_prev=htmldir ;; | |
899 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
900 | | --ht=*) | |
901 | htmldir=$ac_optarg ;; | |
902 | ||
903 | -includedir | --includedir | --includedi | --included | --include \ | |
904 | | --includ | --inclu | --incl | --inc) | |
905 | ac_prev=includedir ;; | |
906 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
907 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
908 | includedir=$ac_optarg ;; | |
909 | ||
910 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
911 | ac_prev=infodir ;; | |
912 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
913 | infodir=$ac_optarg ;; | |
914 | ||
915 | -libdir | --libdir | --libdi | --libd) | |
916 | ac_prev=libdir ;; | |
917 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
918 | libdir=$ac_optarg ;; | |
919 | ||
920 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
921 | | --libexe | --libex | --libe) | |
922 | ac_prev=libexecdir ;; | |
923 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
924 | | --libexe=* | --libex=* | --libe=*) | |
925 | libexecdir=$ac_optarg ;; | |
926 | ||
927 | -localedir | --localedir | --localedi | --localed | --locale) | |
928 | ac_prev=localedir ;; | |
929 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
930 | localedir=$ac_optarg ;; | |
931 | ||
932 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
933 | | --localstate | --localstat | --localsta | --localst | --locals) | |
934 | ac_prev=localstatedir ;; | |
935 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
936 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
937 | localstatedir=$ac_optarg ;; | |
938 | ||
939 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
940 | ac_prev=mandir ;; | |
941 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
942 | mandir=$ac_optarg ;; | |
943 | ||
944 | -nfp | --nfp | --nf) | |
945 | # Obsolete; use --without-fp. | |
946 | with_fp=no ;; | |
947 | ||
948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
949 | | --no-cr | --no-c | -n) | |
950 | no_create=yes ;; | |
951 | ||
952 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
953 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
954 | no_recursion=yes ;; | |
955 | ||
956 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
957 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
958 | | --oldin | --oldi | --old | --ol | --o) | |
959 | ac_prev=oldincludedir ;; | |
960 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
961 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
962 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
963 | oldincludedir=$ac_optarg ;; | |
964 | ||
965 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
966 | ac_prev=prefix ;; | |
967 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
968 | prefix=$ac_optarg ;; | |
969 | ||
970 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
971 | | --program-pre | --program-pr | --program-p) | |
972 | ac_prev=program_prefix ;; | |
973 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
974 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
975 | program_prefix=$ac_optarg ;; | |
976 | ||
977 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
978 | | --program-suf | --program-su | --program-s) | |
979 | ac_prev=program_suffix ;; | |
980 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
981 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
982 | program_suffix=$ac_optarg ;; | |
983 | ||
984 | -program-transform-name | --program-transform-name \ | |
985 | | --program-transform-nam | --program-transform-na \ | |
986 | | --program-transform-n | --program-transform- \ | |
987 | | --program-transform | --program-transfor \ | |
988 | | --program-transfo | --program-transf \ | |
989 | | --program-trans | --program-tran \ | |
990 | | --progr-tra | --program-tr | --program-t) | |
991 | ac_prev=program_transform_name ;; | |
992 | -program-transform-name=* | --program-transform-name=* \ | |
993 | | --program-transform-nam=* | --program-transform-na=* \ | |
994 | | --program-transform-n=* | --program-transform-=* \ | |
995 | | --program-transform=* | --program-transfor=* \ | |
996 | | --program-transfo=* | --program-transf=* \ | |
997 | | --program-trans=* | --program-tran=* \ | |
998 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
999 | program_transform_name=$ac_optarg ;; | |
1000 | ||
1001 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1002 | ac_prev=pdfdir ;; | |
1003 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1004 | pdfdir=$ac_optarg ;; | |
1005 | ||
1006 | -psdir | --psdir | --psdi | --psd | --ps) | |
1007 | ac_prev=psdir ;; | |
1008 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1009 | psdir=$ac_optarg ;; | |
1010 | ||
1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1012 | | -silent | --silent | --silen | --sile | --sil) | |
1013 | silent=yes ;; | |
1014 | ||
1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1016 | ac_prev=sbindir ;; | |
1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1018 | | --sbi=* | --sb=*) | |
1019 | sbindir=$ac_optarg ;; | |
1020 | ||
1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1023 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1024 | | --sha | --sh) | |
1025 | ac_prev=sharedstatedir ;; | |
1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1029 | | --sha=* | --sh=*) | |
1030 | sharedstatedir=$ac_optarg ;; | |
1031 | ||
1032 | -site | --site | --sit) | |
1033 | ac_prev=site ;; | |
1034 | -site=* | --site=* | --sit=*) | |
1035 | site=$ac_optarg ;; | |
1036 | ||
1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1038 | ac_prev=srcdir ;; | |
1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1040 | srcdir=$ac_optarg ;; | |
1041 | ||
1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1043 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1044 | ac_prev=sysconfdir ;; | |
1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1047 | sysconfdir=$ac_optarg ;; | |
1048 | ||
1049 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1050 | ac_prev=target_alias ;; | |
1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1052 | target_alias=$ac_optarg ;; | |
1053 | ||
1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1055 | verbose=yes ;; | |
1056 | ||
1057 | -version | --version | --versio | --versi | --vers | -V) | |
1058 | ac_init_version=: ;; | |
1059 | ||
1060 | -with-* | --with-*) | |
1061 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1062 | # Reject names that are not valid shell variable names. | |
1063 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1064 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1065 | { (exit 1); exit 1; }; } | |
1066 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1067 | eval with_$ac_package=\$ac_optarg ;; | |
1068 | ||
1069 | -without-* | --without-*) | |
1070 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1071 | # Reject names that are not valid shell variable names. | |
1072 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1073 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1074 | { (exit 1); exit 1; }; } | |
1075 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1076 | eval with_$ac_package=no ;; | |
1077 | ||
1078 | --x) | |
1079 | # Obsolete; use --with-x. | |
1080 | with_x=yes ;; | |
1081 | ||
1082 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1083 | | --x-incl | --x-inc | --x-in | --x-i) | |
1084 | ac_prev=x_includes ;; | |
1085 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1086 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1087 | x_includes=$ac_optarg ;; | |
1088 | ||
1089 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1090 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1091 | ac_prev=x_libraries ;; | |
1092 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1093 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1094 | x_libraries=$ac_optarg ;; | |
1095 | ||
1096 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1097 | Try \`$0 --help' for more information." >&2 | |
1098 | { (exit 1); exit 1; }; } | |
1099 | ;; | |
1100 | ||
1101 | *=*) | |
1102 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1103 | # Reject names that are not valid shell variable names. | |
1104 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1105 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1106 | { (exit 1); exit 1; }; } | |
1107 | eval $ac_envvar=\$ac_optarg | |
1108 | export $ac_envvar ;; | |
1109 | ||
1110 | *) | |
1111 | # FIXME: should be removed in autoconf 3.0. | |
1112 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1113 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1114 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1115 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1116 | ;; | |
1117 | ||
1118 | esac | |
1119 | done | |
1120 | ||
1121 | if test -n "$ac_prev"; then | |
1122 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1123 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1124 | { (exit 1); exit 1; }; } | |
1125 | fi | |
1126 | ||
1127 | # Be sure to have absolute directory names. | |
1128 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1129 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1130 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1131 | libdir localedir mandir | |
1132 | do | |
1133 | eval ac_val=\$$ac_var | |
1134 | case $ac_val in | |
1135 | [\\/$]* | ?:[\\/]* ) continue;; | |
1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1137 | esac | |
1138 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1139 | { (exit 1); exit 1; }; } | |
1140 | done | |
1141 | ||
1142 | # There might be people who depend on the old broken behavior: `$host' | |
1143 | # used to hold the argument of --host etc. | |
1144 | # FIXME: To remove some day. | |
1145 | build=$build_alias | |
1146 | host=$host_alias | |
1147 | target=$target_alias | |
1148 | ||
1149 | # FIXME: To remove some day. | |
1150 | if test "x$host_alias" != x; then | |
1151 | if test "x$build_alias" = x; then | |
1152 | cross_compiling=maybe | |
1153 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1154 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1155 | elif test "x$build_alias" != "x$host_alias"; then | |
1156 | cross_compiling=yes | |
1157 | fi | |
1158 | fi | |
1159 | ||
1160 | ac_tool_prefix= | |
1161 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1162 | ||
1163 | test "$silent" = yes && exec 6>/dev/null | |
1164 | ||
1165 | ||
1166 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1167 | ac_ls_di=`ls -di .` && | |
1168 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1169 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1170 | { (exit 1); exit 1; }; } | |
1171 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1172 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1173 | { (exit 1); exit 1; }; } | |
1174 | ||
1175 | ||
1176 | # Find the source files, if location was not specified. | |
1177 | if test -z "$srcdir"; then | |
1178 | ac_srcdir_defaulted=yes | |
1179 | # Try the directory containing this script, then the parent directory. | |
1180 | ac_confdir=`$as_dirname -- "$0" || | |
1181 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1182 | X"$0" : 'X\(//\)[^/]' \| \ | |
1183 | X"$0" : 'X\(//\)$' \| \ | |
1184 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1185 | echo X"$0" | | |
1186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1187 | s//\1/ | |
1188 | q | |
1189 | } | |
1190 | /^X\(\/\/\)[^/].*/{ | |
1191 | s//\1/ | |
1192 | q | |
1193 | } | |
1194 | /^X\(\/\/\)$/{ | |
1195 | s//\1/ | |
1196 | q | |
1197 | } | |
1198 | /^X\(\/\).*/{ | |
1199 | s//\1/ | |
1200 | q | |
1201 | } | |
1202 | s/.*/./; q'` | |
1203 | srcdir=$ac_confdir | |
1204 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1205 | srcdir=.. | |
1206 | fi | |
1207 | else | |
1208 | ac_srcdir_defaulted=no | |
1209 | fi | |
1210 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1211 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1212 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1213 | { (exit 1); exit 1; }; } | |
1214 | fi | |
1215 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1216 | ac_abs_confdir=`( | |
1217 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1218 | { (exit 1); exit 1; }; } | |
1219 | pwd)` | |
1220 | # When building in place, set srcdir=. | |
1221 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1222 | srcdir=. | |
1223 | fi | |
1224 | # Remove unnecessary trailing slashes from srcdir. | |
1225 | # Double slashes in file names in object file debugging info | |
1226 | # mess up M-x gdb in Emacs. | |
1227 | case $srcdir in | |
1228 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1229 | esac | |
1230 | for ac_var in $ac_precious_vars; do | |
1231 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1232 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1233 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1234 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1235 | done | |
1236 | ||
1237 | # | |
1238 | # Report the --help message. | |
1239 | # | |
1240 | if test "$ac_init_help" = "long"; then | |
1241 | # Omit some internal or obsolete options to make the list less imposing. | |
1242 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1243 | cat <<_ACEOF | |
1244 | \`configure' configures this package to adapt to many kinds of systems. | |
1245 | ||
1246 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1247 | ||
1248 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1249 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1250 | ||
1251 | Defaults for the options are specified in brackets. | |
1252 | ||
1253 | Configuration: | |
1254 | -h, --help display this help and exit | |
1255 | --help=short display options specific to this package | |
1256 | --help=recursive display the short help of all the included packages | |
1257 | -V, --version display version information and exit | |
1258 | -q, --quiet, --silent do not print \`checking...' messages | |
1259 | --cache-file=FILE cache test results in FILE [disabled] | |
1260 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1261 | -n, --no-create do not create output files | |
1262 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1263 | ||
1264 | Installation directories: | |
1265 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1266 | [$ac_default_prefix] | |
1267 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1268 | [PREFIX] | |
1269 | ||
1270 | By default, \`make install' will install all the files in | |
1271 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1272 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1273 | for instance \`--prefix=\$HOME'. | |
1274 | ||
1275 | For better control, use the options below. | |
1276 | ||
1277 | Fine tuning of the installation directories: | |
1278 | --bindir=DIR user executables [EPREFIX/bin] | |
1279 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1280 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1281 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1282 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1283 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1284 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1285 | --includedir=DIR C header files [PREFIX/include] | |
1286 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1287 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1288 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1289 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1290 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1291 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1292 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1293 | --htmldir=DIR html documentation [DOCDIR] | |
1294 | --dvidir=DIR dvi documentation [DOCDIR] | |
1295 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1296 | --psdir=DIR ps documentation [DOCDIR] | |
1297 | _ACEOF | |
1298 | ||
1299 | cat <<\_ACEOF | |
1300 | ||
1301 | System types: | |
1302 | --build=BUILD configure for building on BUILD [guessed] | |
1303 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1304 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1305 | _ACEOF | |
1306 | fi | |
1307 | ||
1308 | if test -n "$ac_init_help"; then | |
1309 | ||
1310 | cat <<\_ACEOF | |
1311 | ||
1312 | Optional Features: | |
1313 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1314 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1315 | --disable-nls do not use Native Language Support | |
1316 | --disable-rpath do not hardcode runtime library paths | |
1317 | ||
1318 | Optional Packages: | |
1319 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1320 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1321 | --with-cpus The number of cpus to be used for building(see --with-procs, default 1) | |
1322 | --with-getconf Enable automagical buildtime configuration | |
1323 | --with-proc-multiply Multiply this * number of cpus for parallel making(default 2). | |
1324 | --with-procs The number of processes to run in parallel during make(num_cpus * multiplier). | |
1325 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1326 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1327 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1328 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1329 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1330 | ||
1331 | Some influential environment variables: | |
1332 | CC C compiler command | |
1333 | CFLAGS C compiler flags | |
1334 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1335 | nonstandard directory <lib dir> | |
1336 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1337 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1338 | you have headers in a nonstandard directory <include dir> | |
1339 | CXX C++ compiler command | |
1340 | CXXFLAGS C++ compiler flags | |
1341 | CPP C preprocessor | |
1342 | ||
1343 | Use these variables to override the choices made by `configure' or to help | |
1344 | it to find libraries and programs with nonstandard names/locations. | |
1345 | ||
1346 | _ACEOF | |
1347 | ac_status=$? | |
1348 | fi | |
1349 | ||
1350 | if test "$ac_init_help" = "recursive"; then | |
1351 | # If there are subdirs, report their specific --help. | |
1352 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1353 | test -d "$ac_dir" || continue | |
1354 | ac_builddir=. | |
1355 | ||
1356 | case "$ac_dir" in | |
1357 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) | |
1359 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1360 | # A ".." for each directory in $ac_dir_suffix. | |
1361 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1362 | case $ac_top_builddir_sub in | |
1363 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1364 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1365 | esac ;; | |
1366 | esac | |
1367 | ac_abs_top_builddir=$ac_pwd | |
1368 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1369 | # for backward compatibility: | |
1370 | ac_top_builddir=$ac_top_build_prefix | |
1371 | ||
1372 | case $srcdir in | |
1373 | .) # We are building in place. | |
1374 | ac_srcdir=. | |
1375 | ac_top_srcdir=$ac_top_builddir_sub | |
1376 | ac_abs_top_srcdir=$ac_pwd ;; | |
1377 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1378 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1379 | ac_top_srcdir=$srcdir | |
1380 | ac_abs_top_srcdir=$srcdir ;; | |
1381 | *) # Relative name. | |
1382 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1383 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1384 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1385 | esac | |
1386 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1387 | ||
1388 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1389 | # Check for guested configure. | |
1390 | if test -f "$ac_srcdir/configure.gnu"; then | |
1391 | echo && | |
1392 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1393 | elif test -f "$ac_srcdir/configure"; then | |
1394 | echo && | |
1395 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1396 | else | |
1397 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1398 | fi || ac_status=$? | |
1399 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1400 | done | |
1401 | fi | |
1402 | ||
1403 | test -n "$ac_init_help" && exit $ac_status | |
1404 | if $ac_init_version; then | |
1405 | cat <<\_ACEOF | |
1406 | configure | |
1407 | generated by GNU Autoconf 2.61 | |
1408 | ||
1409 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1410 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1411 | This configure script is free software; the Free Software Foundation | |
1412 | gives unlimited permission to copy, distribute and modify it. | |
1413 | _ACEOF | |
1414 | exit | |
1415 | fi | |
1416 | cat >config.log <<_ACEOF | |
1417 | This file contains any messages produced by compilers while | |
1418 | running configure, to aid debugging if configure makes a mistake. | |
1419 | ||
1420 | It was created by $as_me, which was | |
1421 | generated by GNU Autoconf 2.61. Invocation command line was | |
1422 | ||
1423 | $ $0 $@ | |
1424 | ||
1425 | _ACEOF | |
1426 | exec 5>>config.log | |
1427 | { | |
1428 | cat <<_ASUNAME | |
1429 | ## --------- ## | |
1430 | ## Platform. ## | |
1431 | ## --------- ## | |
1432 | ||
1433 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1434 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1435 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1436 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1437 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1438 | ||
1439 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1440 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1441 | ||
1442 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1443 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1444 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1445 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1446 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1447 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1448 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1449 | ||
1450 | _ASUNAME | |
1451 | ||
1452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1453 | for as_dir in $PATH | |
1454 | do | |
1455 | IFS=$as_save_IFS | |
1456 | test -z "$as_dir" && as_dir=. | |
1457 | echo "PATH: $as_dir" | |
1458 | done | |
1459 | IFS=$as_save_IFS | |
1460 | ||
1461 | } >&5 | |
1462 | ||
1463 | cat >&5 <<_ACEOF | |
1464 | ||
1465 | ||
1466 | ## ----------- ## | |
1467 | ## Core tests. ## | |
1468 | ## ----------- ## | |
1469 | ||
1470 | _ACEOF | |
1471 | ||
1472 | ||
1473 | # Keep a trace of the command line. | |
1474 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1475 | # Strip out --silent because we don't want to record it for future runs. | |
1476 | # Also quote any args containing shell meta-characters. | |
1477 | # Make two passes to allow for proper duplicate-argument suppression. | |
1478 | ac_configure_args= | |
1479 | ac_configure_args0= | |
1480 | ac_configure_args1= | |
1481 | ac_must_keep_next=false | |
1482 | for ac_pass in 1 2 | |
1483 | do | |
1484 | for ac_arg | |
1485 | do | |
1486 | case $ac_arg in | |
1487 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1488 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1489 | | -silent | --silent | --silen | --sile | --sil) | |
1490 | continue ;; | |
1491 | *\'*) | |
1492 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1493 | esac | |
1494 | case $ac_pass in | |
1495 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1496 | 2) | |
1497 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1498 | if test $ac_must_keep_next = true; then | |
1499 | ac_must_keep_next=false # Got value, back to normal. | |
1500 | else | |
1501 | case $ac_arg in | |
1502 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1503 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1504 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1505 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1506 | case "$ac_configure_args0 " in | |
1507 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1508 | esac | |
1509 | ;; | |
1510 | -* ) ac_must_keep_next=true ;; | |
1511 | esac | |
1512 | fi | |
1513 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1514 | ;; | |
1515 | esac | |
1516 | done | |
1517 | done | |
1518 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1519 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1520 | ||
1521 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1522 | # config.log. We remove comments because anyway the quotes in there | |
1523 | # would cause problems or look ugly. | |
1524 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1525 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1526 | trap 'exit_status=$? | |
1527 | # Save into config.log some information that might help in debugging. | |
1528 | { | |
1529 | echo | |
1530 | ||
1531 | cat <<\_ASBOX | |
1532 | ## ---------------- ## | |
1533 | ## Cache variables. ## | |
1534 | ## ---------------- ## | |
1535 | _ASBOX | |
1536 | echo | |
1537 | # The following way of writing the cache mishandles newlines in values, | |
1538 | ( | |
1539 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1540 | eval ac_val=\$$ac_var | |
1541 | case $ac_val in #( | |
1542 | *${as_nl}*) | |
1543 | case $ac_var in #( | |
1544 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1545 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1546 | esac | |
1547 | case $ac_var in #( | |
1548 | _ | IFS | as_nl) ;; #( | |
1549 | *) $as_unset $ac_var ;; | |
1550 | esac ;; | |
1551 | esac | |
1552 | done | |
1553 | (set) 2>&1 | | |
1554 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1555 | *${as_nl}ac_space=\ *) | |
1556 | sed -n \ | |
1557 | "s/'\''/'\''\\\\'\'''\''/g; | |
1558 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1559 | ;; #( | |
1560 | *) | |
1561 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1562 | ;; | |
1563 | esac | | |
1564 | sort | |
1565 | ) | |
1566 | echo | |
1567 | ||
1568 | cat <<\_ASBOX | |
1569 | ## ----------------- ## | |
1570 | ## Output variables. ## | |
1571 | ## ----------------- ## | |
1572 | _ASBOX | |
1573 | echo | |
1574 | for ac_var in $ac_subst_vars | |
1575 | do | |
1576 | eval ac_val=\$$ac_var | |
1577 | case $ac_val in | |
1578 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1579 | esac | |
1580 | echo "$ac_var='\''$ac_val'\''" | |
1581 | done | sort | |
1582 | echo | |
1583 | ||
1584 | if test -n "$ac_subst_files"; then | |
1585 | cat <<\_ASBOX | |
1586 | ## ------------------- ## | |
1587 | ## File substitutions. ## | |
1588 | ## ------------------- ## | |
1589 | _ASBOX | |
1590 | echo | |
1591 | for ac_var in $ac_subst_files | |
1592 | do | |
1593 | eval ac_val=\$$ac_var | |
1594 | case $ac_val in | |
1595 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1596 | esac | |
1597 | echo "$ac_var='\''$ac_val'\''" | |
1598 | done | sort | |
1599 | echo | |
1600 | fi | |
1601 | ||
1602 | if test -s confdefs.h; then | |
1603 | cat <<\_ASBOX | |
1604 | ## ----------- ## | |
1605 | ## confdefs.h. ## | |
1606 | ## ----------- ## | |
1607 | _ASBOX | |
1608 | echo | |
1609 | cat confdefs.h | |
1610 | echo | |
1611 | fi | |
1612 | test "$ac_signal" != 0 && | |
1613 | echo "$as_me: caught signal $ac_signal" | |
1614 | echo "$as_me: exit $exit_status" | |
1615 | } >&5 | |
1616 | rm -f core *.core core.conftest.* && | |
1617 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1618 | exit $exit_status | |
1619 | ' 0 | |
1620 | for ac_signal in 1 2 13 15; do | |
1621 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1622 | done | |
1623 | ac_signal=0 | |
1624 | ||
1625 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1626 | rm -f -r conftest* confdefs.h | |
1627 | ||
1628 | # Predefined preprocessor variables. | |
1629 | ||
1630 | cat >>confdefs.h <<_ACEOF | |
1631 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1632 | _ACEOF | |
1633 | ||
1634 | ||
1635 | cat >>confdefs.h <<_ACEOF | |
1636 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1637 | _ACEOF | |
1638 | ||
1639 | ||
1640 | cat >>confdefs.h <<_ACEOF | |
1641 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1642 | _ACEOF | |
1643 | ||
1644 | ||
1645 | cat >>confdefs.h <<_ACEOF | |
1646 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1647 | _ACEOF | |
1648 | ||
1649 | ||
1650 | cat >>confdefs.h <<_ACEOF | |
1651 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1652 | _ACEOF | |
1653 | ||
1654 | ||
1655 | # Let the site file select an alternate cache file if it wants to. | |
1656 | # Prefer explicitly selected file to automatically selected ones. | |
1657 | if test -n "$CONFIG_SITE"; then | |
1658 | set x "$CONFIG_SITE" | |
1659 | elif test "x$prefix" != xNONE; then | |
1660 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1661 | else | |
1662 | set x "$ac_default_prefix/share/config.site" \ | |
1663 | "$ac_default_prefix/etc/config.site" | |
1664 | fi | |
1665 | shift | |
1666 | for ac_site_file | |
1667 | do | |
1668 | if test -r "$ac_site_file"; then | |
1669 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1670 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1671 | sed 's/^/| /' "$ac_site_file" >&5 | |
1672 | . "$ac_site_file" | |
1673 | fi | |
1674 | done | |
1675 | ||
1676 | if test -r "$cache_file"; then | |
1677 | # Some versions of bash will fail to source /dev/null (special | |
1678 | # files actually), so we avoid doing that. | |
1679 | if test -f "$cache_file"; then | |
1680 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1681 | echo "$as_me: loading cache $cache_file" >&6;} | |
1682 | case $cache_file in | |
1683 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1684 | *) . "./$cache_file";; | |
1685 | esac | |
1686 | fi | |
1687 | else | |
1688 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1689 | echo "$as_me: creating cache $cache_file" >&6;} | |
1690 | >$cache_file | |
1691 | fi | |
1692 | ||
00ec24d0 | 1693 | gt_needs="$gt_needs " |
da6ee469 JF |
1694 | # Check that the precious variables saved in the cache have kept the same |
1695 | # value. | |
1696 | ac_cache_corrupted=false | |
1697 | for ac_var in $ac_precious_vars; do | |
1698 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1699 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1700 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1701 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1702 | case $ac_old_set,$ac_new_set in | |
1703 | set,) | |
1704 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1705 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1706 | ac_cache_corrupted=: ;; | |
1707 | ,set) | |
1708 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1709 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1710 | ac_cache_corrupted=: ;; | |
1711 | ,);; | |
1712 | *) | |
1713 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1714 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1715 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1716 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1717 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1718 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1719 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1720 | ac_cache_corrupted=: | |
1721 | fi;; | |
1722 | esac | |
1723 | # Pass precious variables to config.status. | |
1724 | if test "$ac_new_set" = set; then | |
1725 | case $ac_new_val in | |
1726 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1727 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1728 | esac | |
1729 | case " $ac_configure_args " in | |
1730 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1731 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1732 | esac | |
1733 | fi | |
1734 | done | |
1735 | if $ac_cache_corrupted; then | |
1736 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1737 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1738 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1739 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1740 | { (exit 1); exit 1; }; } | |
1741 | fi | |
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ac_ext=c | |
1760 | ac_cpp='$CPP $CPPFLAGS' | |
1761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1764 | ||
1765 | ||
1766 | ac_aux_dir= | |
1767 | for ac_dir in buildlib "$srcdir"/buildlib; do | |
1768 | if test -f "$ac_dir/install-sh"; then | |
1769 | ac_aux_dir=$ac_dir | |
1770 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1771 | break | |
1772 | elif test -f "$ac_dir/install.sh"; then | |
1773 | ac_aux_dir=$ac_dir | |
1774 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1775 | break | |
1776 | elif test -f "$ac_dir/shtool"; then | |
1777 | ac_aux_dir=$ac_dir | |
1778 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1779 | break | |
1780 | fi | |
1781 | done | |
1782 | if test -z "$ac_aux_dir"; then | |
1783 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&5 | |
1784 | echo "$as_me: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&2;} | |
1785 | { (exit 1); exit 1; }; } | |
1786 | fi | |
1787 | ||
1788 | # These three variables are undocumented and unsupported, | |
1789 | # and are intended to be withdrawn in a future Autoconf release. | |
1790 | # They can cause serious problems if a builder's source tree is in a directory | |
1791 | # whose full name contains unusual characters. | |
1792 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1793 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1794 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1795 | ||
1796 | ||
1797 | ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in" | |
1798 | ||
1799 | ||
1800 | cat >>confdefs.h <<_ACEOF | |
00ec24d0 | 1801 | #define VERSION "0.7.20.2" |
da6ee469 JF |
1802 | _ACEOF |
1803 | ||
1804 | PACKAGE="apt" | |
1805 | cat >>confdefs.h <<_ACEOF | |
1806 | #define PACKAGE "$PACKAGE" | |
1807 | _ACEOF | |
1808 | ||
1809 | ||
1810 | ||
1811 | # Make sure we can run config.sub. | |
1812 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
1813 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1814 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
1815 | { (exit 1); exit 1; }; } | |
1816 | ||
1817 | { echo "$as_me:$LINENO: checking build system type" >&5 | |
1818 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
1819 | if test "${ac_cv_build+set}" = set; then | |
1820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1821 | else | |
1822 | ac_build_alias=$build_alias | |
1823 | test "x$ac_build_alias" = x && | |
1824 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1825 | test "x$ac_build_alias" = x && | |
1826 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1827 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1828 | { (exit 1); exit 1; }; } | |
1829 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
1830 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1831 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
1832 | { (exit 1); exit 1; }; } | |
1833 | ||
1834 | fi | |
1835 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1836 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1837 | case $ac_cv_build in | |
1838 | *-*-*) ;; | |
1839 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1840 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1841 | { (exit 1); exit 1; }; };; | |
1842 | esac | |
1843 | build=$ac_cv_build | |
1844 | ac_save_IFS=$IFS; IFS='-' | |
1845 | set x $ac_cv_build | |
1846 | shift | |
1847 | build_cpu=$1 | |
1848 | build_vendor=$2 | |
1849 | shift; shift | |
1850 | # Remember, the first character of IFS is used to create $*, | |
1851 | # except with old shells: | |
1852 | build_os=$* | |
1853 | IFS=$ac_save_IFS | |
1854 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1855 | ||
1856 | ||
1857 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1858 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
1859 | if test "${ac_cv_host+set}" = set; then | |
1860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1861 | else | |
1862 | if test "x$host_alias" = x; then | |
1863 | ac_cv_host=$ac_cv_build | |
1864 | else | |
1865 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1866 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1867 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
1868 | { (exit 1); exit 1; }; } | |
1869 | fi | |
1870 | ||
1871 | fi | |
1872 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1873 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1874 | case $ac_cv_host in | |
1875 | *-*-*) ;; | |
1876 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1877 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1878 | { (exit 1); exit 1; }; };; | |
1879 | esac | |
1880 | host=$ac_cv_host | |
1881 | ac_save_IFS=$IFS; IFS='-' | |
1882 | set x $ac_cv_host | |
1883 | shift | |
1884 | host_cpu=$1 | |
1885 | host_vendor=$2 | |
1886 | shift; shift | |
1887 | # Remember, the first character of IFS is used to create $*, | |
1888 | # except with old shells: | |
1889 | host_os=$* | |
1890 | IFS=$ac_save_IFS | |
1891 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1892 | ||
1893 | ||
1894 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
1895 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
1896 | if test "${ac_cv_target+set}" = set; then | |
1897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1898 | else | |
1899 | if test "x$target_alias" = x; then | |
1900 | ac_cv_target=$ac_cv_host | |
1901 | else | |
1902 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1903 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
1904 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
1905 | { (exit 1); exit 1; }; } | |
1906 | fi | |
1907 | ||
1908 | fi | |
1909 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1910 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
1911 | case $ac_cv_target in | |
1912 | *-*-*) ;; | |
1913 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
1914 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
1915 | { (exit 1); exit 1; }; };; | |
1916 | esac | |
1917 | target=$ac_cv_target | |
1918 | ac_save_IFS=$IFS; IFS='-' | |
1919 | set x $ac_cv_target | |
1920 | shift | |
1921 | target_cpu=$1 | |
1922 | target_vendor=$2 | |
1923 | shift; shift | |
1924 | # Remember, the first character of IFS is used to create $*, | |
1925 | # except with old shells: | |
1926 | target_os=$* | |
1927 | IFS=$ac_save_IFS | |
1928 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1929 | ||
1930 | ||
1931 | # The aliases save the names the user supplied, while $host etc. | |
1932 | # will get canonicalized. | |
1933 | test -n "$target_alias" && | |
1934 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1935 | NONENONEs,x,x, && | |
1936 | program_prefix=${target_alias}- | |
1937 | ||
1938 | ||
1939 | ac_ext=c | |
1940 | ac_cpp='$CPP $CPPFLAGS' | |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1944 | if test -n "$ac_tool_prefix"; then | |
1945 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1946 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1949 | if test "${ac_cv_prog_CC+set}" = set; then | |
1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1951 | else | |
1952 | if test -n "$CC"; then | |
1953 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1954 | else | |
1955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1956 | for as_dir in $PATH | |
1957 | do | |
1958 | IFS=$as_save_IFS | |
1959 | test -z "$as_dir" && as_dir=. | |
1960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1962 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1964 | break 2 | |
1965 | fi | |
1966 | done | |
1967 | done | |
1968 | IFS=$as_save_IFS | |
1969 | ||
1970 | fi | |
1971 | fi | |
1972 | CC=$ac_cv_prog_CC | |
1973 | if test -n "$CC"; then | |
1974 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
1975 | echo "${ECHO_T}$CC" >&6; } | |
1976 | else | |
1977 | { echo "$as_me:$LINENO: result: no" >&5 | |
1978 | echo "${ECHO_T}no" >&6; } | |
1979 | fi | |
1980 | ||
1981 | ||
1982 | fi | |
1983 | if test -z "$ac_cv_prog_CC"; then | |
1984 | ac_ct_CC=$CC | |
1985 | # Extract the first word of "gcc", so it can be a program name with args. | |
1986 | set dummy gcc; ac_word=$2 | |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$ac_ct_CC"; then | |
1993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1994 | else | |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1996 | for as_dir in $PATH | |
1997 | do | |
1998 | IFS=$as_save_IFS | |
1999 | test -z "$as_dir" && as_dir=. | |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2002 | ac_cv_prog_ac_ct_CC="gcc" | |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2004 | break 2 | |
2005 | fi | |
2006 | done | |
2007 | done | |
2008 | IFS=$as_save_IFS | |
2009 | ||
2010 | fi | |
2011 | fi | |
2012 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2013 | if test -n "$ac_ct_CC"; then | |
2014 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2015 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2016 | else | |
2017 | { echo "$as_me:$LINENO: result: no" >&5 | |
2018 | echo "${ECHO_T}no" >&6; } | |
2019 | fi | |
2020 | ||
2021 | if test "x$ac_ct_CC" = x; then | |
2022 | CC="" | |
2023 | else | |
2024 | case $cross_compiling:$ac_tool_warned in | |
2025 | yes:) | |
2026 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2027 | whose name does not start with the host triplet. If you think this | |
2028 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2029 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2030 | whose name does not start with the host triplet. If you think this | |
2031 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2032 | ac_tool_warned=yes ;; | |
2033 | esac | |
2034 | CC=$ac_ct_CC | |
2035 | fi | |
2036 | else | |
2037 | CC="$ac_cv_prog_CC" | |
2038 | fi | |
2039 | ||
2040 | if test -z "$CC"; then | |
2041 | if test -n "$ac_tool_prefix"; then | |
2042 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2043 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2046 | if test "${ac_cv_prog_CC+set}" = set; then | |
2047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2048 | else | |
2049 | if test -n "$CC"; then | |
2050 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2051 | else | |
2052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2053 | for as_dir in $PATH | |
2054 | do | |
2055 | IFS=$as_save_IFS | |
2056 | test -z "$as_dir" && as_dir=. | |
2057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2059 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2061 | break 2 | |
2062 | fi | |
2063 | done | |
2064 | done | |
2065 | IFS=$as_save_IFS | |
2066 | ||
2067 | fi | |
2068 | fi | |
2069 | CC=$ac_cv_prog_CC | |
2070 | if test -n "$CC"; then | |
2071 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2072 | echo "${ECHO_T}$CC" >&6; } | |
2073 | else | |
2074 | { echo "$as_me:$LINENO: result: no" >&5 | |
2075 | echo "${ECHO_T}no" >&6; } | |
2076 | fi | |
2077 | ||
2078 | ||
2079 | fi | |
2080 | fi | |
2081 | if test -z "$CC"; then | |
2082 | # Extract the first word of "cc", so it can be a program name with args. | |
2083 | set dummy cc; ac_word=$2 | |
2084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2086 | if test "${ac_cv_prog_CC+set}" = set; then | |
2087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2088 | else | |
2089 | if test -n "$CC"; then | |
2090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2091 | else | |
2092 | ac_prog_rejected=no | |
2093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2094 | for as_dir in $PATH | |
2095 | do | |
2096 | IFS=$as_save_IFS | |
2097 | test -z "$as_dir" && as_dir=. | |
2098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2100 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2101 | ac_prog_rejected=yes | |
2102 | continue | |
2103 | fi | |
2104 | ac_cv_prog_CC="cc" | |
2105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2106 | break 2 | |
2107 | fi | |
2108 | done | |
2109 | done | |
2110 | IFS=$as_save_IFS | |
2111 | ||
2112 | if test $ac_prog_rejected = yes; then | |
2113 | # We found a bogon in the path, so make sure we never use it. | |
2114 | set dummy $ac_cv_prog_CC | |
2115 | shift | |
2116 | if test $# != 0; then | |
2117 | # We chose a different compiler from the bogus one. | |
2118 | # However, it has the same basename, so the bogon will be chosen | |
2119 | # first if we set CC to just the basename; use the full file name. | |
2120 | shift | |
2121 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2122 | fi | |
2123 | fi | |
2124 | fi | |
2125 | fi | |
2126 | CC=$ac_cv_prog_CC | |
2127 | if test -n "$CC"; then | |
2128 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2129 | echo "${ECHO_T}$CC" >&6; } | |
2130 | else | |
2131 | { echo "$as_me:$LINENO: result: no" >&5 | |
2132 | echo "${ECHO_T}no" >&6; } | |
2133 | fi | |
2134 | ||
2135 | ||
2136 | fi | |
2137 | if test -z "$CC"; then | |
2138 | if test -n "$ac_tool_prefix"; then | |
2139 | for ac_prog in cl.exe | |
2140 | do | |
2141 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2142 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2143 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2145 | if test "${ac_cv_prog_CC+set}" = set; then | |
2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2147 | else | |
2148 | if test -n "$CC"; then | |
2149 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2150 | else | |
2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2152 | for as_dir in $PATH | |
2153 | do | |
2154 | IFS=$as_save_IFS | |
2155 | test -z "$as_dir" && as_dir=. | |
2156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2158 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2160 | break 2 | |
2161 | fi | |
2162 | done | |
2163 | done | |
2164 | IFS=$as_save_IFS | |
2165 | ||
2166 | fi | |
2167 | fi | |
2168 | CC=$ac_cv_prog_CC | |
2169 | if test -n "$CC"; then | |
2170 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2171 | echo "${ECHO_T}$CC" >&6; } | |
2172 | else | |
2173 | { echo "$as_me:$LINENO: result: no" >&5 | |
2174 | echo "${ECHO_T}no" >&6; } | |
2175 | fi | |
2176 | ||
2177 | ||
2178 | test -n "$CC" && break | |
2179 | done | |
2180 | fi | |
2181 | if test -z "$CC"; then | |
2182 | ac_ct_CC=$CC | |
2183 | for ac_prog in cl.exe | |
2184 | do | |
2185 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2186 | set dummy $ac_prog; ac_word=$2 | |
2187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2189 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2191 | else | |
2192 | if test -n "$ac_ct_CC"; then | |
2193 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2194 | else | |
2195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2196 | for as_dir in $PATH | |
2197 | do | |
2198 | IFS=$as_save_IFS | |
2199 | test -z "$as_dir" && as_dir=. | |
2200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2202 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2204 | break 2 | |
2205 | fi | |
2206 | done | |
2207 | done | |
2208 | IFS=$as_save_IFS | |
2209 | ||
2210 | fi | |
2211 | fi | |
2212 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2213 | if test -n "$ac_ct_CC"; then | |
2214 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2215 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2216 | else | |
2217 | { echo "$as_me:$LINENO: result: no" >&5 | |
2218 | echo "${ECHO_T}no" >&6; } | |
2219 | fi | |
2220 | ||
2221 | ||
2222 | test -n "$ac_ct_CC" && break | |
2223 | done | |
2224 | ||
2225 | if test "x$ac_ct_CC" = x; then | |
2226 | CC="" | |
2227 | else | |
2228 | case $cross_compiling:$ac_tool_warned in | |
2229 | yes:) | |
2230 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2231 | whose name does not start with the host triplet. If you think this | |
2232 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2233 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2234 | whose name does not start with the host triplet. If you think this | |
2235 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2236 | ac_tool_warned=yes ;; | |
2237 | esac | |
2238 | CC=$ac_ct_CC | |
2239 | fi | |
2240 | fi | |
2241 | ||
2242 | fi | |
2243 | ||
2244 | ||
2245 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2246 | See \`config.log' for more details." >&5 | |
2247 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2248 | See \`config.log' for more details." >&2;} | |
2249 | { (exit 1); exit 1; }; } | |
2250 | ||
2251 | # Provide some information about the compiler. | |
2252 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2253 | ac_compiler=`set X $ac_compile; echo $2` | |
2254 | { (ac_try="$ac_compiler --version >&5" | |
2255 | case "(($ac_try" in | |
2256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2257 | *) ac_try_echo=$ac_try;; | |
2258 | esac | |
2259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2260 | (eval "$ac_compiler --version >&5") 2>&5 | |
2261 | ac_status=$? | |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2263 | (exit $ac_status); } | |
2264 | { (ac_try="$ac_compiler -v >&5" | |
2265 | case "(($ac_try" in | |
2266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2267 | *) ac_try_echo=$ac_try;; | |
2268 | esac | |
2269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2270 | (eval "$ac_compiler -v >&5") 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); } | |
2274 | { (ac_try="$ac_compiler -V >&5" | |
2275 | case "(($ac_try" in | |
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2277 | *) ac_try_echo=$ac_try;; | |
2278 | esac | |
2279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2280 | (eval "$ac_compiler -V >&5") 2>&5 | |
2281 | ac_status=$? | |
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2283 | (exit $ac_status); } | |
2284 | ||
2285 | cat >conftest.$ac_ext <<_ACEOF | |
2286 | /* confdefs.h. */ | |
2287 | _ACEOF | |
2288 | cat confdefs.h >>conftest.$ac_ext | |
2289 | cat >>conftest.$ac_ext <<_ACEOF | |
2290 | /* end confdefs.h. */ | |
2291 | ||
2292 | int | |
2293 | main () | |
2294 | { | |
2295 | ||
2296 | ; | |
2297 | return 0; | |
2298 | } | |
2299 | _ACEOF | |
2300 | ac_clean_files_save=$ac_clean_files | |
2301 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2302 | # Try to create an executable without -o first, disregard a.out. | |
2303 | # It will help us diagnose broken compilers, and finding out an intuition | |
2304 | # of exeext. | |
2305 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2306 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2307 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2308 | # | |
2309 | # List of possible output files, starting from the most likely. | |
2310 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2311 | # only as a last resort. b.out is created by i960 compilers. | |
2312 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2313 | # | |
2314 | # The IRIX 6 linker writes into existing files which may not be | |
2315 | # executable, retaining their permissions. Remove them first so a | |
2316 | # subsequent execution test works. | |
2317 | ac_rmfiles= | |
2318 | for ac_file in $ac_files | |
2319 | do | |
2320 | case $ac_file in | |
2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2322 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2323 | esac | |
2324 | done | |
2325 | rm -f $ac_rmfiles | |
2326 | ||
2327 | if { (ac_try="$ac_link_default" | |
2328 | case "(($ac_try" in | |
2329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2330 | *) ac_try_echo=$ac_try;; | |
2331 | esac | |
2332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2333 | (eval "$ac_link_default") 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); }; then | |
2337 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2338 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2339 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2340 | # so that the user can short-circuit this test for compilers unknown to | |
2341 | # Autoconf. | |
2342 | for ac_file in $ac_files '' | |
2343 | do | |
2344 | test -f "$ac_file" || continue | |
2345 | case $ac_file in | |
2346 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2347 | ;; | |
2348 | [ab].out ) | |
2349 | # We found the default executable, but exeext='' is most | |
2350 | # certainly right. | |
2351 | break;; | |
2352 | *.* ) | |
2353 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2354 | then :; else | |
2355 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2356 | fi | |
2357 | # We set ac_cv_exeext here because the later test for it is not | |
2358 | # safe: cross compilers may not add the suffix if given an `-o' | |
2359 | # argument, so we may need to know it at that point already. | |
2360 | # Even if this section looks crufty: it has the advantage of | |
2361 | # actually working. | |
2362 | break;; | |
2363 | * ) | |
2364 | break;; | |
2365 | esac | |
2366 | done | |
2367 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2368 | ||
2369 | else | |
2370 | ac_file='' | |
2371 | fi | |
2372 | ||
2373 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2374 | echo "${ECHO_T}$ac_file" >&6; } | |
2375 | if test -z "$ac_file"; then | |
2376 | echo "$as_me: failed program was:" >&5 | |
2377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2378 | ||
2379 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2380 | See \`config.log' for more details." >&5 | |
2381 | echo "$as_me: error: C compiler cannot create executables | |
2382 | See \`config.log' for more details." >&2;} | |
2383 | { (exit 77); exit 77; }; } | |
2384 | fi | |
2385 | ||
2386 | ac_exeext=$ac_cv_exeext | |
2387 | ||
2388 | # Check that the compiler produces executables we can run. If not, either | |
2389 | # the compiler is broken, or we cross compile. | |
2390 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2391 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2392 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2393 | # If not cross compiling, check that we can run a simple program. | |
2394 | if test "$cross_compiling" != yes; then | |
2395 | if { ac_try='./$ac_file' | |
2396 | { (case "(($ac_try" in | |
2397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2398 | *) ac_try_echo=$ac_try;; | |
2399 | esac | |
2400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2401 | (eval "$ac_try") 2>&5 | |
2402 | ac_status=$? | |
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2404 | (exit $ac_status); }; }; then | |
2405 | cross_compiling=no | |
2406 | else | |
2407 | if test "$cross_compiling" = maybe; then | |
2408 | cross_compiling=yes | |
2409 | else | |
2410 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2411 | If you meant to cross compile, use \`--host'. | |
2412 | See \`config.log' for more details." >&5 | |
2413 | echo "$as_me: error: cannot run C compiled programs. | |
2414 | If you meant to cross compile, use \`--host'. | |
2415 | See \`config.log' for more details." >&2;} | |
2416 | { (exit 1); exit 1; }; } | |
2417 | fi | |
2418 | fi | |
2419 | fi | |
2420 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2421 | echo "${ECHO_T}yes" >&6; } | |
2422 | ||
2423 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2424 | ac_clean_files=$ac_clean_files_save | |
2425 | # Check that the compiler produces executables we can run. If not, either | |
2426 | # the compiler is broken, or we cross compile. | |
2427 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2428 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2429 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2430 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2431 | ||
2432 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2433 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2434 | if { (ac_try="$ac_link" | |
2435 | case "(($ac_try" in | |
2436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2437 | *) ac_try_echo=$ac_try;; | |
2438 | esac | |
2439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2440 | (eval "$ac_link") 2>&5 | |
2441 | ac_status=$? | |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2443 | (exit $ac_status); }; then | |
2444 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2445 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2446 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2447 | # `rm'. | |
2448 | for ac_file in conftest.exe conftest conftest.*; do | |
2449 | test -f "$ac_file" || continue | |
2450 | case $ac_file in | |
2451 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2452 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2453 | break;; | |
2454 | * ) break;; | |
2455 | esac | |
2456 | done | |
2457 | else | |
2458 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2459 | See \`config.log' for more details." >&5 | |
2460 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2461 | See \`config.log' for more details." >&2;} | |
2462 | { (exit 1); exit 1; }; } | |
2463 | fi | |
2464 | ||
2465 | rm -f conftest$ac_cv_exeext | |
2466 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2467 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2468 | ||
2469 | rm -f conftest.$ac_ext | |
2470 | EXEEXT=$ac_cv_exeext | |
2471 | ac_exeext=$EXEEXT | |
2472 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2473 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2474 | if test "${ac_cv_objext+set}" = set; then | |
2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2476 | else | |
2477 | cat >conftest.$ac_ext <<_ACEOF | |
2478 | /* confdefs.h. */ | |
2479 | _ACEOF | |
2480 | cat confdefs.h >>conftest.$ac_ext | |
2481 | cat >>conftest.$ac_ext <<_ACEOF | |
2482 | /* end confdefs.h. */ | |
2483 | ||
2484 | int | |
2485 | main () | |
2486 | { | |
2487 | ||
2488 | ; | |
2489 | return 0; | |
2490 | } | |
2491 | _ACEOF | |
2492 | rm -f conftest.o conftest.obj | |
2493 | if { (ac_try="$ac_compile" | |
2494 | case "(($ac_try" in | |
2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2496 | *) ac_try_echo=$ac_try;; | |
2497 | esac | |
2498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2499 | (eval "$ac_compile") 2>&5 | |
2500 | ac_status=$? | |
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2502 | (exit $ac_status); }; then | |
2503 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2504 | test -f "$ac_file" || continue; | |
2505 | case $ac_file in | |
2506 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2507 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2508 | break;; | |
2509 | esac | |
2510 | done | |
2511 | else | |
2512 | echo "$as_me: failed program was:" >&5 | |
2513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2514 | ||
2515 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2516 | See \`config.log' for more details." >&5 | |
2517 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2518 | See \`config.log' for more details." >&2;} | |
2519 | { (exit 1); exit 1; }; } | |
2520 | fi | |
2521 | ||
2522 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2523 | fi | |
2524 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2525 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2526 | OBJEXT=$ac_cv_objext | |
2527 | ac_objext=$OBJEXT | |
2528 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2529 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2530 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2532 | else | |
2533 | cat >conftest.$ac_ext <<_ACEOF | |
2534 | /* confdefs.h. */ | |
2535 | _ACEOF | |
2536 | cat confdefs.h >>conftest.$ac_ext | |
2537 | cat >>conftest.$ac_ext <<_ACEOF | |
2538 | /* end confdefs.h. */ | |
2539 | ||
2540 | int | |
2541 | main () | |
2542 | { | |
2543 | #ifndef __GNUC__ | |
2544 | choke me | |
2545 | #endif | |
2546 | ||
2547 | ; | |
2548 | return 0; | |
2549 | } | |
2550 | _ACEOF | |
2551 | rm -f conftest.$ac_objext | |
2552 | if { (ac_try="$ac_compile" | |
2553 | case "(($ac_try" in | |
2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2555 | *) ac_try_echo=$ac_try;; | |
2556 | esac | |
2557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2558 | (eval "$ac_compile") 2>conftest.er1 | |
2559 | ac_status=$? | |
2560 | grep -v '^ *+' conftest.er1 >conftest.err | |
2561 | rm -f conftest.er1 | |
2562 | cat conftest.err >&5 | |
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2564 | (exit $ac_status); } && { | |
2565 | test -z "$ac_c_werror_flag" || | |
2566 | test ! -s conftest.err | |
2567 | } && test -s conftest.$ac_objext; then | |
2568 | ac_compiler_gnu=yes | |
2569 | else | |
2570 | echo "$as_me: failed program was:" >&5 | |
2571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2572 | ||
2573 | ac_compiler_gnu=no | |
2574 | fi | |
2575 | ||
2576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2577 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2578 | ||
2579 | fi | |
2580 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2581 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2582 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2583 | ac_test_CFLAGS=${CFLAGS+set} | |
2584 | ac_save_CFLAGS=$CFLAGS | |
2585 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2586 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2587 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2589 | else | |
2590 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2591 | ac_c_werror_flag=yes | |
2592 | ac_cv_prog_cc_g=no | |
2593 | CFLAGS="-g" | |
2594 | cat >conftest.$ac_ext <<_ACEOF | |
2595 | /* confdefs.h. */ | |
2596 | _ACEOF | |
2597 | cat confdefs.h >>conftest.$ac_ext | |
2598 | cat >>conftest.$ac_ext <<_ACEOF | |
2599 | /* end confdefs.h. */ | |
2600 | ||
2601 | int | |
2602 | main () | |
2603 | { | |
2604 | ||
2605 | ; | |
2606 | return 0; | |
2607 | } | |
2608 | _ACEOF | |
2609 | rm -f conftest.$ac_objext | |
2610 | if { (ac_try="$ac_compile" | |
2611 | case "(($ac_try" in | |
2612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2613 | *) ac_try_echo=$ac_try;; | |
2614 | esac | |
2615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2616 | (eval "$ac_compile") 2>conftest.er1 | |
2617 | ac_status=$? | |
2618 | grep -v '^ *+' conftest.er1 >conftest.err | |
2619 | rm -f conftest.er1 | |
2620 | cat conftest.err >&5 | |
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2622 | (exit $ac_status); } && { | |
2623 | test -z "$ac_c_werror_flag" || | |
2624 | test ! -s conftest.err | |
2625 | } && test -s conftest.$ac_objext; then | |
2626 | ac_cv_prog_cc_g=yes | |
2627 | else | |
2628 | echo "$as_me: failed program was:" >&5 | |
2629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2630 | ||
2631 | CFLAGS="" | |
2632 | cat >conftest.$ac_ext <<_ACEOF | |
2633 | /* confdefs.h. */ | |
2634 | _ACEOF | |
2635 | cat confdefs.h >>conftest.$ac_ext | |
2636 | cat >>conftest.$ac_ext <<_ACEOF | |
2637 | /* end confdefs.h. */ | |
2638 | ||
2639 | int | |
2640 | main () | |
2641 | { | |
2642 | ||
2643 | ; | |
2644 | return 0; | |
2645 | } | |
2646 | _ACEOF | |
2647 | rm -f conftest.$ac_objext | |
2648 | if { (ac_try="$ac_compile" | |
2649 | case "(($ac_try" in | |
2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2651 | *) ac_try_echo=$ac_try;; | |
2652 | esac | |
2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2654 | (eval "$ac_compile") 2>conftest.er1 | |
2655 | ac_status=$? | |
2656 | grep -v '^ *+' conftest.er1 >conftest.err | |
2657 | rm -f conftest.er1 | |
2658 | cat conftest.err >&5 | |
2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2660 | (exit $ac_status); } && { | |
2661 | test -z "$ac_c_werror_flag" || | |
2662 | test ! -s conftest.err | |
2663 | } && test -s conftest.$ac_objext; then | |
2664 | : | |
2665 | else | |
2666 | echo "$as_me: failed program was:" >&5 | |
2667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2668 | ||
2669 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2670 | CFLAGS="-g" | |
2671 | cat >conftest.$ac_ext <<_ACEOF | |
2672 | /* confdefs.h. */ | |
2673 | _ACEOF | |
2674 | cat confdefs.h >>conftest.$ac_ext | |
2675 | cat >>conftest.$ac_ext <<_ACEOF | |
2676 | /* end confdefs.h. */ | |
2677 | ||
2678 | int | |
2679 | main () | |
2680 | { | |
2681 | ||
2682 | ; | |
2683 | return 0; | |
2684 | } | |
2685 | _ACEOF | |
2686 | rm -f conftest.$ac_objext | |
2687 | if { (ac_try="$ac_compile" | |
2688 | case "(($ac_try" in | |
2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2690 | *) ac_try_echo=$ac_try;; | |
2691 | esac | |
2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2693 | (eval "$ac_compile") 2>conftest.er1 | |
2694 | ac_status=$? | |
2695 | grep -v '^ *+' conftest.er1 >conftest.err | |
2696 | rm -f conftest.er1 | |
2697 | cat conftest.err >&5 | |
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2699 | (exit $ac_status); } && { | |
2700 | test -z "$ac_c_werror_flag" || | |
2701 | test ! -s conftest.err | |
2702 | } && test -s conftest.$ac_objext; then | |
2703 | ac_cv_prog_cc_g=yes | |
2704 | else | |
2705 | echo "$as_me: failed program was:" >&5 | |
2706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2707 | ||
2708 | ||
2709 | fi | |
2710 | ||
2711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2712 | fi | |
2713 | ||
2714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2715 | fi | |
2716 | ||
2717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2718 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2719 | fi | |
2720 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2721 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2722 | if test "$ac_test_CFLAGS" = set; then | |
2723 | CFLAGS=$ac_save_CFLAGS | |
2724 | elif test $ac_cv_prog_cc_g = yes; then | |
2725 | if test "$GCC" = yes; then | |
2726 | CFLAGS="-g -O2" | |
2727 | else | |
2728 | CFLAGS="-g" | |
2729 | fi | |
2730 | else | |
2731 | if test "$GCC" = yes; then | |
2732 | CFLAGS="-O2" | |
2733 | else | |
2734 | CFLAGS= | |
2735 | fi | |
2736 | fi | |
2737 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2738 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2739 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2741 | else | |
2742 | ac_cv_prog_cc_c89=no | |
2743 | ac_save_CC=$CC | |
2744 | cat >conftest.$ac_ext <<_ACEOF | |
2745 | /* confdefs.h. */ | |
2746 | _ACEOF | |
2747 | cat confdefs.h >>conftest.$ac_ext | |
2748 | cat >>conftest.$ac_ext <<_ACEOF | |
2749 | /* end confdefs.h. */ | |
2750 | #include <stdarg.h> | |
2751 | #include <stdio.h> | |
2752 | #include <sys/types.h> | |
2753 | #include <sys/stat.h> | |
2754 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2755 | struct buf { int x; }; | |
2756 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2757 | static char *e (p, i) | |
2758 | char **p; | |
2759 | int i; | |
2760 | { | |
2761 | return p[i]; | |
2762 | } | |
2763 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2764 | { | |
2765 | char *s; | |
2766 | va_list v; | |
2767 | va_start (v,p); | |
2768 | s = g (p, va_arg (v,int)); | |
2769 | va_end (v); | |
2770 | return s; | |
2771 | } | |
2772 | ||
2773 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2774 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2775 | These don't provoke an error unfortunately, instead are silently treated | |
2776 | as 'x'. The following induces an error, until -std is added to get | |
2777 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2778 | array size at least. It's necessary to write '\x00'==0 to get something | |
2779 | that's true only with -std. */ | |
2780 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2781 | ||
2782 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2783 | inside strings and character constants. */ | |
2784 | #define FOO(x) 'x' | |
2785 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2786 | ||
2787 | int test (int i, double x); | |
2788 | struct s1 {int (*f) (int a);}; | |
2789 | struct s2 {int (*f) (double a);}; | |
2790 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2791 | int argc; | |
2792 | char **argv; | |
2793 | int | |
2794 | main () | |
2795 | { | |
2796 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2797 | ; | |
2798 | return 0; | |
2799 | } | |
2800 | _ACEOF | |
2801 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2802 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2803 | do | |
2804 | CC="$ac_save_CC $ac_arg" | |
2805 | rm -f conftest.$ac_objext | |
2806 | if { (ac_try="$ac_compile" | |
2807 | case "(($ac_try" in | |
2808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2809 | *) ac_try_echo=$ac_try;; | |
2810 | esac | |
2811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2812 | (eval "$ac_compile") 2>conftest.er1 | |
2813 | ac_status=$? | |
2814 | grep -v '^ *+' conftest.er1 >conftest.err | |
2815 | rm -f conftest.er1 | |
2816 | cat conftest.err >&5 | |
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2818 | (exit $ac_status); } && { | |
2819 | test -z "$ac_c_werror_flag" || | |
2820 | test ! -s conftest.err | |
2821 | } && test -s conftest.$ac_objext; then | |
2822 | ac_cv_prog_cc_c89=$ac_arg | |
2823 | else | |
2824 | echo "$as_me: failed program was:" >&5 | |
2825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2826 | ||
2827 | ||
2828 | fi | |
2829 | ||
2830 | rm -f core conftest.err conftest.$ac_objext | |
2831 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2832 | done | |
2833 | rm -f conftest.$ac_ext | |
2834 | CC=$ac_save_CC | |
2835 | ||
2836 | fi | |
2837 | # AC_CACHE_VAL | |
2838 | case "x$ac_cv_prog_cc_c89" in | |
2839 | x) | |
2840 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2841 | echo "${ECHO_T}none needed" >&6; } ;; | |
2842 | xno) | |
2843 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2844 | echo "${ECHO_T}unsupported" >&6; } ;; | |
2845 | *) | |
2846 | CC="$CC $ac_cv_prog_cc_c89" | |
2847 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2848 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2849 | esac | |
2850 | ||
2851 | ||
2852 | ac_ext=c | |
2853 | ac_cpp='$CPP $CPPFLAGS' | |
2854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2857 | ||
2858 | ||
2859 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2860 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
2861 | if test "${ac_cv_search_strerror+set}" = set; then | |
2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2863 | else | |
2864 | ac_func_search_save_LIBS=$LIBS | |
2865 | cat >conftest.$ac_ext <<_ACEOF | |
2866 | /* confdefs.h. */ | |
2867 | _ACEOF | |
2868 | cat confdefs.h >>conftest.$ac_ext | |
2869 | cat >>conftest.$ac_ext <<_ACEOF | |
2870 | /* end confdefs.h. */ | |
2871 | ||
2872 | /* Override any GCC internal prototype to avoid an error. | |
2873 | Use char because int might match the return type of a GCC | |
2874 | builtin and then its argument prototype would still apply. */ | |
2875 | #ifdef __cplusplus | |
2876 | extern "C" | |
2877 | #endif | |
2878 | char strerror (); | |
2879 | int | |
2880 | main () | |
2881 | { | |
2882 | return strerror (); | |
2883 | ; | |
2884 | return 0; | |
2885 | } | |
2886 | _ACEOF | |
2887 | for ac_lib in '' cposix; do | |
2888 | if test -z "$ac_lib"; then | |
2889 | ac_res="none required" | |
2890 | else | |
2891 | ac_res=-l$ac_lib | |
2892 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2893 | fi | |
2894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2895 | if { (ac_try="$ac_link" | |
2896 | case "(($ac_try" in | |
2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2898 | *) ac_try_echo=$ac_try;; | |
2899 | esac | |
2900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2901 | (eval "$ac_link") 2>conftest.er1 | |
2902 | ac_status=$? | |
2903 | grep -v '^ *+' conftest.er1 >conftest.err | |
2904 | rm -f conftest.er1 | |
2905 | cat conftest.err >&5 | |
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 | (exit $ac_status); } && { | |
2908 | test -z "$ac_c_werror_flag" || | |
2909 | test ! -s conftest.err | |
2910 | } && test -s conftest$ac_exeext && | |
2911 | $as_test_x conftest$ac_exeext; then | |
2912 | ac_cv_search_strerror=$ac_res | |
2913 | else | |
2914 | echo "$as_me: failed program was:" >&5 | |
2915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2916 | ||
2917 | ||
2918 | fi | |
2919 | ||
2920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
2921 | conftest$ac_exeext | |
2922 | if test "${ac_cv_search_strerror+set}" = set; then | |
2923 | break | |
2924 | fi | |
2925 | done | |
2926 | if test "${ac_cv_search_strerror+set}" = set; then | |
2927 | : | |
2928 | else | |
2929 | ac_cv_search_strerror=no | |
2930 | fi | |
2931 | rm conftest.$ac_ext | |
2932 | LIBS=$ac_func_search_save_LIBS | |
2933 | fi | |
2934 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2935 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
2936 | ac_res=$ac_cv_search_strerror | |
2937 | if test "$ac_res" != no; then | |
2938 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
2939 | ||
2940 | fi | |
2941 | ||
2942 | ||
2943 | ac_ext=cpp | |
2944 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2945 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2946 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2947 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2948 | if test -z "$CXX"; then | |
2949 | if test -n "$CCC"; then | |
2950 | CXX=$CCC | |
2951 | else | |
2952 | if test -n "$ac_tool_prefix"; then | |
2953 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2954 | do | |
2955 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2956 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2959 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2961 | else | |
2962 | if test -n "$CXX"; then | |
2963 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2964 | else | |
2965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2966 | for as_dir in $PATH | |
2967 | do | |
2968 | IFS=$as_save_IFS | |
2969 | test -z "$as_dir" && as_dir=. | |
2970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2972 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2974 | break 2 | |
2975 | fi | |
2976 | done | |
2977 | done | |
2978 | IFS=$as_save_IFS | |
2979 | ||
2980 | fi | |
2981 | fi | |
2982 | CXX=$ac_cv_prog_CXX | |
2983 | if test -n "$CXX"; then | |
2984 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
2985 | echo "${ECHO_T}$CXX" >&6; } | |
2986 | else | |
2987 | { echo "$as_me:$LINENO: result: no" >&5 | |
2988 | echo "${ECHO_T}no" >&6; } | |
2989 | fi | |
2990 | ||
2991 | ||
2992 | test -n "$CXX" && break | |
2993 | done | |
2994 | fi | |
2995 | if test -z "$CXX"; then | |
2996 | ac_ct_CXX=$CXX | |
2997 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2998 | do | |
2999 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3000 | set dummy $ac_prog; ac_word=$2 | |
3001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3003 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3005 | else | |
3006 | if test -n "$ac_ct_CXX"; then | |
3007 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3008 | else | |
3009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3010 | for as_dir in $PATH | |
3011 | do | |
3012 | IFS=$as_save_IFS | |
3013 | test -z "$as_dir" && as_dir=. | |
3014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3016 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3018 | break 2 | |
3019 | fi | |
3020 | done | |
3021 | done | |
3022 | IFS=$as_save_IFS | |
3023 | ||
3024 | fi | |
3025 | fi | |
3026 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3027 | if test -n "$ac_ct_CXX"; then | |
3028 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3029 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
3030 | else | |
3031 | { echo "$as_me:$LINENO: result: no" >&5 | |
3032 | echo "${ECHO_T}no" >&6; } | |
3033 | fi | |
3034 | ||
3035 | ||
3036 | test -n "$ac_ct_CXX" && break | |
3037 | done | |
3038 | ||
3039 | if test "x$ac_ct_CXX" = x; then | |
3040 | CXX="g++" | |
3041 | else | |
3042 | case $cross_compiling:$ac_tool_warned in | |
3043 | yes:) | |
3044 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3045 | whose name does not start with the host triplet. If you think this | |
3046 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3047 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3048 | whose name does not start with the host triplet. If you think this | |
3049 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3050 | ac_tool_warned=yes ;; | |
3051 | esac | |
3052 | CXX=$ac_ct_CXX | |
3053 | fi | |
3054 | fi | |
3055 | ||
3056 | fi | |
3057 | fi | |
3058 | # Provide some information about the compiler. | |
3059 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
3060 | ac_compiler=`set X $ac_compile; echo $2` | |
3061 | { (ac_try="$ac_compiler --version >&5" | |
3062 | case "(($ac_try" in | |
3063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3064 | *) ac_try_echo=$ac_try;; | |
3065 | esac | |
3066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3067 | (eval "$ac_compiler --version >&5") 2>&5 | |
3068 | ac_status=$? | |
3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3070 | (exit $ac_status); } | |
3071 | { (ac_try="$ac_compiler -v >&5" | |
3072 | case "(($ac_try" in | |
3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3074 | *) ac_try_echo=$ac_try;; | |
3075 | esac | |
3076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3077 | (eval "$ac_compiler -v >&5") 2>&5 | |
3078 | ac_status=$? | |
3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3080 | (exit $ac_status); } | |
3081 | { (ac_try="$ac_compiler -V >&5" | |
3082 | case "(($ac_try" in | |
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3084 | *) ac_try_echo=$ac_try;; | |
3085 | esac | |
3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3087 | (eval "$ac_compiler -V >&5") 2>&5 | |
3088 | ac_status=$? | |
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3090 | (exit $ac_status); } | |
3091 | ||
3092 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3093 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
3094 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3096 | else | |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
3098 | /* confdefs.h. */ | |
3099 | _ACEOF | |
3100 | cat confdefs.h >>conftest.$ac_ext | |
3101 | cat >>conftest.$ac_ext <<_ACEOF | |
3102 | /* end confdefs.h. */ | |
3103 | ||
3104 | int | |
3105 | main () | |
3106 | { | |
3107 | #ifndef __GNUC__ | |
3108 | choke me | |
3109 | #endif | |
3110 | ||
3111 | ; | |
3112 | return 0; | |
3113 | } | |
3114 | _ACEOF | |
3115 | rm -f conftest.$ac_objext | |
3116 | if { (ac_try="$ac_compile" | |
3117 | case "(($ac_try" in | |
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3119 | *) ac_try_echo=$ac_try;; | |
3120 | esac | |
3121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3122 | (eval "$ac_compile") 2>conftest.er1 | |
3123 | ac_status=$? | |
3124 | grep -v '^ *+' conftest.er1 >conftest.err | |
3125 | rm -f conftest.er1 | |
3126 | cat conftest.err >&5 | |
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3128 | (exit $ac_status); } && { | |
3129 | test -z "$ac_cxx_werror_flag" || | |
3130 | test ! -s conftest.err | |
3131 | } && test -s conftest.$ac_objext; then | |
3132 | ac_compiler_gnu=yes | |
3133 | else | |
3134 | echo "$as_me: failed program was:" >&5 | |
3135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3136 | ||
3137 | ac_compiler_gnu=no | |
3138 | fi | |
3139 | ||
3140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3141 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3142 | ||
3143 | fi | |
3144 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3145 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
3146 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3147 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3148 | ac_save_CXXFLAGS=$CXXFLAGS | |
3149 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3150 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
3151 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3153 | else | |
3154 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3155 | ac_cxx_werror_flag=yes | |
3156 | ac_cv_prog_cxx_g=no | |
3157 | CXXFLAGS="-g" | |
3158 | cat >conftest.$ac_ext <<_ACEOF | |
3159 | /* confdefs.h. */ | |
3160 | _ACEOF | |
3161 | cat confdefs.h >>conftest.$ac_ext | |
3162 | cat >>conftest.$ac_ext <<_ACEOF | |
3163 | /* end confdefs.h. */ | |
3164 | ||
3165 | int | |
3166 | main () | |
3167 | { | |
3168 | ||
3169 | ; | |
3170 | return 0; | |
3171 | } | |
3172 | _ACEOF | |
3173 | rm -f conftest.$ac_objext | |
3174 | if { (ac_try="$ac_compile" | |
3175 | case "(($ac_try" in | |
3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3177 | *) ac_try_echo=$ac_try;; | |
3178 | esac | |
3179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3180 | (eval "$ac_compile") 2>conftest.er1 | |
3181 | ac_status=$? | |
3182 | grep -v '^ *+' conftest.er1 >conftest.err | |
3183 | rm -f conftest.er1 | |
3184 | cat conftest.err >&5 | |
3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3186 | (exit $ac_status); } && { | |
3187 | test -z "$ac_cxx_werror_flag" || | |
3188 | test ! -s conftest.err | |
3189 | } && test -s conftest.$ac_objext; then | |
3190 | ac_cv_prog_cxx_g=yes | |
3191 | else | |
3192 | echo "$as_me: failed program was:" >&5 | |
3193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3194 | ||
3195 | CXXFLAGS="" | |
3196 | cat >conftest.$ac_ext <<_ACEOF | |
3197 | /* confdefs.h. */ | |
3198 | _ACEOF | |
3199 | cat confdefs.h >>conftest.$ac_ext | |
3200 | cat >>conftest.$ac_ext <<_ACEOF | |
3201 | /* end confdefs.h. */ | |
3202 | ||
3203 | int | |
3204 | main () | |
3205 | { | |
3206 | ||
3207 | ; | |
3208 | return 0; | |
3209 | } | |
3210 | _ACEOF | |
3211 | rm -f conftest.$ac_objext | |
3212 | if { (ac_try="$ac_compile" | |
3213 | case "(($ac_try" in | |
3214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3215 | *) ac_try_echo=$ac_try;; | |
3216 | esac | |
3217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3218 | (eval "$ac_compile") 2>conftest.er1 | |
3219 | ac_status=$? | |
3220 | grep -v '^ *+' conftest.er1 >conftest.err | |
3221 | rm -f conftest.er1 | |
3222 | cat conftest.err >&5 | |
3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3224 | (exit $ac_status); } && { | |
3225 | test -z "$ac_cxx_werror_flag" || | |
3226 | test ! -s conftest.err | |
3227 | } && test -s conftest.$ac_objext; then | |
3228 | : | |
3229 | else | |
3230 | echo "$as_me: failed program was:" >&5 | |
3231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3232 | ||
3233 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3234 | CXXFLAGS="-g" | |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
3236 | /* confdefs.h. */ | |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | ||
3242 | int | |
3243 | main () | |
3244 | { | |
3245 | ||
3246 | ; | |
3247 | return 0; | |
3248 | } | |
3249 | _ACEOF | |
3250 | rm -f conftest.$ac_objext | |
3251 | if { (ac_try="$ac_compile" | |
3252 | case "(($ac_try" in | |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 | *) ac_try_echo=$ac_try;; | |
3255 | esac | |
3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3257 | (eval "$ac_compile") 2>conftest.er1 | |
3258 | ac_status=$? | |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3263 | (exit $ac_status); } && { | |
3264 | test -z "$ac_cxx_werror_flag" || | |
3265 | test ! -s conftest.err | |
3266 | } && test -s conftest.$ac_objext; then | |
3267 | ac_cv_prog_cxx_g=yes | |
3268 | else | |
3269 | echo "$as_me: failed program was:" >&5 | |
3270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3271 | ||
3272 | ||
3273 | fi | |
3274 | ||
3275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3276 | fi | |
3277 | ||
3278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3279 | fi | |
3280 | ||
3281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3282 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3283 | fi | |
3284 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3285 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
3286 | if test "$ac_test_CXXFLAGS" = set; then | |
3287 | CXXFLAGS=$ac_save_CXXFLAGS | |
3288 | elif test $ac_cv_prog_cxx_g = yes; then | |
3289 | if test "$GXX" = yes; then | |
3290 | CXXFLAGS="-g -O2" | |
3291 | else | |
3292 | CXXFLAGS="-g" | |
3293 | fi | |
3294 | else | |
3295 | if test "$GXX" = yes; then | |
3296 | CXXFLAGS="-O2" | |
3297 | else | |
3298 | CXXFLAGS= | |
3299 | fi | |
3300 | fi | |
3301 | ac_ext=c | |
3302 | ac_cpp='$CPP $CPPFLAGS' | |
3303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3306 | ||
3307 | ac_ext=c | |
3308 | ac_cpp='$CPP $CPPFLAGS' | |
3309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3312 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3313 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
3314 | # On Suns, sometimes $CPP names a directory. | |
3315 | if test -n "$CPP" && test -d "$CPP"; then | |
3316 | CPP= | |
3317 | fi | |
3318 | if test -z "$CPP"; then | |
3319 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3321 | else | |
3322 | # Double quotes because CPP needs to be expanded | |
3323 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3324 | do | |
3325 | ac_preproc_ok=false | |
3326 | for ac_c_preproc_warn_flag in '' yes | |
3327 | do | |
3328 | # Use a header file that comes with gcc, so configuring glibc | |
3329 | # with a fresh cross-compiler works. | |
3330 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3331 | # <limits.h> exists even on freestanding compilers. | |
3332 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3333 | # not just through cpp. "Syntax error" is here to catch this case. | |
3334 | cat >conftest.$ac_ext <<_ACEOF | |
3335 | /* confdefs.h. */ | |
3336 | _ACEOF | |
3337 | cat confdefs.h >>conftest.$ac_ext | |
3338 | cat >>conftest.$ac_ext <<_ACEOF | |
3339 | /* end confdefs.h. */ | |
3340 | #ifdef __STDC__ | |
3341 | # include <limits.h> | |
3342 | #else | |
3343 | # include <assert.h> | |
3344 | #endif | |
3345 | Syntax error | |
3346 | _ACEOF | |
3347 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3348 | case "(($ac_try" in | |
3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3350 | *) ac_try_echo=$ac_try;; | |
3351 | esac | |
3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3354 | ac_status=$? | |
3355 | grep -v '^ *+' conftest.er1 >conftest.err | |
3356 | rm -f conftest.er1 | |
3357 | cat conftest.err >&5 | |
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3359 | (exit $ac_status); } >/dev/null && { | |
3360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3361 | test ! -s conftest.err | |
3362 | }; then | |
3363 | : | |
3364 | else | |
3365 | echo "$as_me: failed program was:" >&5 | |
3366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3367 | ||
3368 | # Broken: fails on valid input. | |
3369 | continue | |
3370 | fi | |
3371 | ||
3372 | rm -f conftest.err conftest.$ac_ext | |
3373 | ||
3374 | # OK, works on sane cases. Now check whether nonexistent headers | |
3375 | # can be detected and how. | |
3376 | cat >conftest.$ac_ext <<_ACEOF | |
3377 | /* confdefs.h. */ | |
3378 | _ACEOF | |
3379 | cat confdefs.h >>conftest.$ac_ext | |
3380 | cat >>conftest.$ac_ext <<_ACEOF | |
3381 | /* end confdefs.h. */ | |
3382 | #include <ac_nonexistent.h> | |
3383 | _ACEOF | |
3384 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3385 | case "(($ac_try" in | |
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3387 | *) ac_try_echo=$ac_try;; | |
3388 | esac | |
3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3391 | ac_status=$? | |
3392 | grep -v '^ *+' conftest.er1 >conftest.err | |
3393 | rm -f conftest.er1 | |
3394 | cat conftest.err >&5 | |
3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3396 | (exit $ac_status); } >/dev/null && { | |
3397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3398 | test ! -s conftest.err | |
3399 | }; then | |
3400 | # Broken: success on invalid input. | |
3401 | continue | |
3402 | else | |
3403 | echo "$as_me: failed program was:" >&5 | |
3404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3405 | ||
3406 | # Passes both tests. | |
3407 | ac_preproc_ok=: | |
3408 | break | |
3409 | fi | |
3410 | ||
3411 | rm -f conftest.err conftest.$ac_ext | |
3412 | ||
3413 | done | |
3414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3415 | rm -f conftest.err conftest.$ac_ext | |
3416 | if $ac_preproc_ok; then | |
3417 | break | |
3418 | fi | |
3419 | ||
3420 | done | |
3421 | ac_cv_prog_CPP=$CPP | |
3422 | ||
3423 | fi | |
3424 | CPP=$ac_cv_prog_CPP | |
3425 | else | |
3426 | ac_cv_prog_CPP=$CPP | |
3427 | fi | |
3428 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
3429 | echo "${ECHO_T}$CPP" >&6; } | |
3430 | ac_preproc_ok=false | |
3431 | for ac_c_preproc_warn_flag in '' yes | |
3432 | do | |
3433 | # Use a header file that comes with gcc, so configuring glibc | |
3434 | # with a fresh cross-compiler works. | |
3435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3436 | # <limits.h> exists even on freestanding compilers. | |
3437 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3438 | # not just through cpp. "Syntax error" is here to catch this case. | |
3439 | cat >conftest.$ac_ext <<_ACEOF | |
3440 | /* confdefs.h. */ | |
3441 | _ACEOF | |
3442 | cat confdefs.h >>conftest.$ac_ext | |
3443 | cat >>conftest.$ac_ext <<_ACEOF | |
3444 | /* end confdefs.h. */ | |
3445 | #ifdef __STDC__ | |
3446 | # include <limits.h> | |
3447 | #else | |
3448 | # include <assert.h> | |
3449 | #endif | |
3450 | Syntax error | |
3451 | _ACEOF | |
3452 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3453 | case "(($ac_try" in | |
3454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3455 | *) ac_try_echo=$ac_try;; | |
3456 | esac | |
3457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3458 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3459 | ac_status=$? | |
3460 | grep -v '^ *+' conftest.er1 >conftest.err | |
3461 | rm -f conftest.er1 | |
3462 | cat conftest.err >&5 | |
3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3464 | (exit $ac_status); } >/dev/null && { | |
3465 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3466 | test ! -s conftest.err | |
3467 | }; then | |
3468 | : | |
3469 | else | |
3470 | echo "$as_me: failed program was:" >&5 | |
3471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3472 | ||
3473 | # Broken: fails on valid input. | |
3474 | continue | |
3475 | fi | |
3476 | ||
3477 | rm -f conftest.err conftest.$ac_ext | |
3478 | ||
3479 | # OK, works on sane cases. Now check whether nonexistent headers | |
3480 | # can be detected and how. | |
3481 | cat >conftest.$ac_ext <<_ACEOF | |
3482 | /* confdefs.h. */ | |
3483 | _ACEOF | |
3484 | cat confdefs.h >>conftest.$ac_ext | |
3485 | cat >>conftest.$ac_ext <<_ACEOF | |
3486 | /* end confdefs.h. */ | |
3487 | #include <ac_nonexistent.h> | |
3488 | _ACEOF | |
3489 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3490 | case "(($ac_try" in | |
3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3492 | *) ac_try_echo=$ac_try;; | |
3493 | esac | |
3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3496 | ac_status=$? | |
3497 | grep -v '^ *+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } >/dev/null && { | |
3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3503 | test ! -s conftest.err | |
3504 | }; then | |
3505 | # Broken: success on invalid input. | |
3506 | continue | |
3507 | else | |
3508 | echo "$as_me: failed program was:" >&5 | |
3509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3510 | ||
3511 | # Passes both tests. | |
3512 | ac_preproc_ok=: | |
3513 | break | |
3514 | fi | |
3515 | ||
3516 | rm -f conftest.err conftest.$ac_ext | |
3517 | ||
3518 | done | |
3519 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3520 | rm -f conftest.err conftest.$ac_ext | |
3521 | if $ac_preproc_ok; then | |
3522 | : | |
3523 | else | |
3524 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3525 | See \`config.log' for more details." >&5 | |
3526 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3527 | See \`config.log' for more details." >&2;} | |
3528 | { (exit 1); exit 1; }; } | |
3529 | fi | |
3530 | ||
3531 | ac_ext=c | |
3532 | ac_cpp='$CPP $CPPFLAGS' | |
3533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3536 | ||
3537 | if test -n "$ac_tool_prefix"; then | |
3538 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3539 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3540 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3542 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3544 | else | |
3545 | if test -n "$RANLIB"; then | |
3546 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3547 | else | |
3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3549 | for as_dir in $PATH | |
3550 | do | |
3551 | IFS=$as_save_IFS | |
3552 | test -z "$as_dir" && as_dir=. | |
3553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3555 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3557 | break 2 | |
3558 | fi | |
3559 | done | |
3560 | done | |
3561 | IFS=$as_save_IFS | |
3562 | ||
3563 | fi | |
3564 | fi | |
3565 | RANLIB=$ac_cv_prog_RANLIB | |
3566 | if test -n "$RANLIB"; then | |
3567 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3568 | echo "${ECHO_T}$RANLIB" >&6; } | |
3569 | else | |
3570 | { echo "$as_me:$LINENO: result: no" >&5 | |
3571 | echo "${ECHO_T}no" >&6; } | |
3572 | fi | |
3573 | ||
3574 | ||
3575 | fi | |
3576 | if test -z "$ac_cv_prog_RANLIB"; then | |
3577 | ac_ct_RANLIB=$RANLIB | |
3578 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3579 | set dummy ranlib; ac_word=$2 | |
3580 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3582 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3584 | else | |
3585 | if test -n "$ac_ct_RANLIB"; then | |
3586 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3587 | else | |
3588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3589 | for as_dir in $PATH | |
3590 | do | |
3591 | IFS=$as_save_IFS | |
3592 | test -z "$as_dir" && as_dir=. | |
3593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3595 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3597 | break 2 | |
3598 | fi | |
3599 | done | |
3600 | done | |
3601 | IFS=$as_save_IFS | |
3602 | ||
3603 | fi | |
3604 | fi | |
3605 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3606 | if test -n "$ac_ct_RANLIB"; then | |
3607 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3608 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
3609 | else | |
3610 | { echo "$as_me:$LINENO: result: no" >&5 | |
3611 | echo "${ECHO_T}no" >&6; } | |
3612 | fi | |
3613 | ||
3614 | if test "x$ac_ct_RANLIB" = x; then | |
3615 | RANLIB=":" | |
3616 | else | |
3617 | case $cross_compiling:$ac_tool_warned in | |
3618 | yes:) | |
3619 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3620 | whose name does not start with the host triplet. If you think this | |
3621 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3622 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3623 | whose name does not start with the host triplet. If you think this | |
3624 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3625 | ac_tool_warned=yes ;; | |
3626 | esac | |
3627 | RANLIB=$ac_ct_RANLIB | |
3628 | fi | |
3629 | else | |
3630 | RANLIB="$ac_cv_prog_RANLIB" | |
3631 | fi | |
3632 | ||
3633 | if test -n "$ac_tool_prefix"; then | |
3634 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3635 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3638 | if test "${ac_cv_prog_AR+set}" = set; then | |
3639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3640 | else | |
3641 | if test -n "$AR"; then | |
3642 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3643 | else | |
3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3645 | for as_dir in $PATH | |
3646 | do | |
3647 | IFS=$as_save_IFS | |
3648 | test -z "$as_dir" && as_dir=. | |
3649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3651 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3653 | break 2 | |
3654 | fi | |
3655 | done | |
3656 | done | |
3657 | IFS=$as_save_IFS | |
3658 | ||
3659 | fi | |
3660 | fi | |
3661 | AR=$ac_cv_prog_AR | |
3662 | if test -n "$AR"; then | |
3663 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
3664 | echo "${ECHO_T}$AR" >&6; } | |
3665 | else | |
3666 | { echo "$as_me:$LINENO: result: no" >&5 | |
3667 | echo "${ECHO_T}no" >&6; } | |
3668 | fi | |
3669 | ||
3670 | ||
3671 | fi | |
3672 | if test -z "$ac_cv_prog_AR"; then | |
3673 | ac_ct_AR=$AR | |
3674 | # Extract the first word of "ar", so it can be a program name with args. | |
3675 | set dummy ar; ac_word=$2 | |
3676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3678 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3680 | else | |
3681 | if test -n "$ac_ct_AR"; then | |
3682 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3683 | else | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3691 | ac_cv_prog_ac_ct_AR="ar" | |
3692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
3697 | IFS=$as_save_IFS | |
3698 | ||
3699 | fi | |
3700 | fi | |
3701 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3702 | if test -n "$ac_ct_AR"; then | |
3703 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3704 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
3705 | else | |
3706 | { echo "$as_me:$LINENO: result: no" >&5 | |
3707 | echo "${ECHO_T}no" >&6; } | |
3708 | fi | |
3709 | ||
3710 | if test "x$ac_ct_AR" = x; then | |
3711 | AR=""ar"" | |
3712 | else | |
3713 | case $cross_compiling:$ac_tool_warned in | |
3714 | yes:) | |
3715 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3716 | whose name does not start with the host triplet. If you think this | |
3717 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3718 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3719 | whose name does not start with the host triplet. If you think this | |
3720 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3721 | ac_tool_warned=yes ;; | |
3722 | esac | |
3723 | AR=$ac_ct_AR | |
3724 | fi | |
3725 | else | |
3726 | AR="$ac_cv_prog_AR" | |
3727 | fi | |
3728 | ||
3729 | ||
3730 | SAVE_LIBS="$LIBS" | |
3731 | LIBS="" | |
3732 | { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
3733 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } | |
3734 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3736 | else | |
3737 | ac_func_search_save_LIBS=$LIBS | |
3738 | cat >conftest.$ac_ext <<_ACEOF | |
3739 | /* confdefs.h. */ | |
3740 | _ACEOF | |
3741 | cat confdefs.h >>conftest.$ac_ext | |
3742 | cat >>conftest.$ac_ext <<_ACEOF | |
3743 | /* end confdefs.h. */ | |
3744 | ||
3745 | /* Override any GCC internal prototype to avoid an error. | |
3746 | Use char because int might match the return type of a GCC | |
3747 | builtin and then its argument prototype would still apply. */ | |
3748 | #ifdef __cplusplus | |
3749 | extern "C" | |
3750 | #endif | |
3751 | char gethostbyname (); | |
3752 | int | |
3753 | main () | |
3754 | { | |
3755 | return gethostbyname (); | |
3756 | ; | |
3757 | return 0; | |
3758 | } | |
3759 | _ACEOF | |
3760 | for ac_lib in '' nsl; do | |
3761 | if test -z "$ac_lib"; then | |
3762 | ac_res="none required" | |
3763 | else | |
3764 | ac_res=-l$ac_lib | |
3765 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3766 | fi | |
3767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3768 | if { (ac_try="$ac_link" | |
3769 | case "(($ac_try" in | |
3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 | *) ac_try_echo=$ac_try;; | |
3772 | esac | |
3773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3774 | (eval "$ac_link") 2>conftest.er1 | |
3775 | ac_status=$? | |
3776 | grep -v '^ *+' conftest.er1 >conftest.err | |
3777 | rm -f conftest.er1 | |
3778 | cat conftest.err >&5 | |
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3780 | (exit $ac_status); } && { | |
3781 | test -z "$ac_c_werror_flag" || | |
3782 | test ! -s conftest.err | |
3783 | } && test -s conftest$ac_exeext && | |
3784 | $as_test_x conftest$ac_exeext; then | |
3785 | ac_cv_search_gethostbyname=$ac_res | |
3786 | else | |
3787 | echo "$as_me: failed program was:" >&5 | |
3788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3789 | ||
3790 | ||
3791 | fi | |
3792 | ||
3793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3794 | conftest$ac_exeext | |
3795 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
3796 | break | |
3797 | fi | |
3798 | done | |
3799 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
3800 | : | |
3801 | else | |
3802 | ac_cv_search_gethostbyname=no | |
3803 | fi | |
3804 | rm conftest.$ac_ext | |
3805 | LIBS=$ac_func_search_save_LIBS | |
3806 | fi | |
3807 | { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
3808 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } | |
3809 | ac_res=$ac_cv_search_gethostbyname | |
3810 | if test "$ac_res" != no; then | |
3811 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
3812 | ||
3813 | fi | |
3814 | ||
3815 | { echo "$as_me:$LINENO: checking for library containing connect" >&5 | |
3816 | echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; } | |
3817 | if test "${ac_cv_search_connect+set}" = set; then | |
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3819 | else | |
3820 | ac_func_search_save_LIBS=$LIBS | |
3821 | cat >conftest.$ac_ext <<_ACEOF | |
3822 | /* confdefs.h. */ | |
3823 | _ACEOF | |
3824 | cat confdefs.h >>conftest.$ac_ext | |
3825 | cat >>conftest.$ac_ext <<_ACEOF | |
3826 | /* end confdefs.h. */ | |
3827 | ||
3828 | /* Override any GCC internal prototype to avoid an error. | |
3829 | Use char because int might match the return type of a GCC | |
3830 | builtin and then its argument prototype would still apply. */ | |
3831 | #ifdef __cplusplus | |
3832 | extern "C" | |
3833 | #endif | |
3834 | char connect (); | |
3835 | int | |
3836 | main () | |
3837 | { | |
3838 | return connect (); | |
3839 | ; | |
3840 | return 0; | |
3841 | } | |
3842 | _ACEOF | |
3843 | for ac_lib in '' socket; do | |
3844 | if test -z "$ac_lib"; then | |
3845 | ac_res="none required" | |
3846 | else | |
3847 | ac_res=-l$ac_lib | |
3848 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3849 | fi | |
3850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3851 | if { (ac_try="$ac_link" | |
3852 | case "(($ac_try" in | |
3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3854 | *) ac_try_echo=$ac_try;; | |
3855 | esac | |
3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3857 | (eval "$ac_link") 2>conftest.er1 | |
3858 | ac_status=$? | |
3859 | grep -v '^ *+' conftest.er1 >conftest.err | |
3860 | rm -f conftest.er1 | |
3861 | cat conftest.err >&5 | |
3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3863 | (exit $ac_status); } && { | |
3864 | test -z "$ac_c_werror_flag" || | |
3865 | test ! -s conftest.err | |
3866 | } && test -s conftest$ac_exeext && | |
3867 | $as_test_x conftest$ac_exeext; then | |
3868 | ac_cv_search_connect=$ac_res | |
3869 | else | |
3870 | echo "$as_me: failed program was:" >&5 | |
3871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3872 | ||
3873 | ||
3874 | fi | |
3875 | ||
3876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3877 | conftest$ac_exeext | |
3878 | if test "${ac_cv_search_connect+set}" = set; then | |
3879 | break | |
3880 | fi | |
3881 | done | |
3882 | if test "${ac_cv_search_connect+set}" = set; then | |
3883 | : | |
3884 | else | |
3885 | ac_cv_search_connect=no | |
3886 | fi | |
3887 | rm conftest.$ac_ext | |
3888 | LIBS=$ac_func_search_save_LIBS | |
3889 | fi | |
3890 | { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5 | |
3891 | echo "${ECHO_T}$ac_cv_search_connect" >&6; } | |
3892 | ac_res=$ac_cv_search_connect | |
3893 | if test "$ac_res" != no; then | |
3894 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
3895 | ||
3896 | fi | |
3897 | ||
3898 | SOCKETLIBS="$LIBS" | |
3899 | ||
3900 | LIBS="$SAVE_LIBS" | |
3901 | ||
3902 | ||
3903 | ||
3904 | saveLIBS="$LIBS" | |
3905 | LIBS="$LIBS -ldb" | |
3906 | ||
3907 | ||
3908 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3909 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3910 | if test "${ac_cv_path_GREP+set}" = set; then | |
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3912 | else | |
3913 | # Extract the first word of "grep ggrep" to use in msg output | |
3914 | if test -z "$GREP"; then | |
3915 | set dummy grep ggrep; ac_prog_name=$2 | |
3916 | if test "${ac_cv_path_GREP+set}" = set; then | |
3917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3918 | else | |
3919 | ac_path_GREP_found=false | |
3920 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3922 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | test -z "$as_dir" && as_dir=. | |
3926 | for ac_prog in grep ggrep; do | |
3927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3928 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3929 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3930 | # Check for GNU ac_path_GREP and select it if it is found. | |
3931 | # Check for GNU $ac_path_GREP | |
3932 | case `"$ac_path_GREP" --version 2>&1` in | |
3933 | *GNU*) | |
3934 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3935 | *) | |
3936 | ac_count=0 | |
3937 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3938 | while : | |
3939 | do | |
3940 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3941 | mv "conftest.tmp" "conftest.in" | |
3942 | cp "conftest.in" "conftest.nl" | |
3943 | echo 'GREP' >> "conftest.nl" | |
3944 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3945 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3946 | ac_count=`expr $ac_count + 1` | |
3947 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3948 | # Best one so far, save it but keep looking for a better one | |
3949 | ac_cv_path_GREP="$ac_path_GREP" | |
3950 | ac_path_GREP_max=$ac_count | |
3951 | fi | |
3952 | # 10*(2^10) chars as input seems more than enough | |
3953 | test $ac_count -gt 10 && break | |
3954 | done | |
3955 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3956 | esac | |
3957 | ||
3958 | ||
3959 | $ac_path_GREP_found && break 3 | |
3960 | done | |
3961 | done | |
3962 | ||
3963 | done | |
3964 | IFS=$as_save_IFS | |
3965 | ||
3966 | ||
3967 | fi | |
3968 | ||
3969 | GREP="$ac_cv_path_GREP" | |
3970 | if test -z "$GREP"; then | |
3971 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3972 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3973 | { (exit 1); exit 1; }; } | |
3974 | fi | |
3975 | ||
3976 | else | |
3977 | ac_cv_path_GREP=$GREP | |
3978 | fi | |
3979 | ||
3980 | ||
3981 | fi | |
3982 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3983 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3984 | GREP="$ac_cv_path_GREP" | |
3985 | ||
3986 | ||
3987 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3988 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3989 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3991 | else | |
3992 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3993 | then ac_cv_path_EGREP="$GREP -E" | |
3994 | else | |
3995 | # Extract the first word of "egrep" to use in msg output | |
3996 | if test -z "$EGREP"; then | |
3997 | set dummy egrep; ac_prog_name=$2 | |
3998 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4000 | else | |
4001 | ac_path_EGREP_found=false | |
4002 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4004 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4005 | do | |
4006 | IFS=$as_save_IFS | |
4007 | test -z "$as_dir" && as_dir=. | |
4008 | for ac_prog in egrep; do | |
4009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4010 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4011 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4012 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4013 | # Check for GNU $ac_path_EGREP | |
4014 | case `"$ac_path_EGREP" --version 2>&1` in | |
4015 | *GNU*) | |
4016 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4017 | *) | |
4018 | ac_count=0 | |
4019 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4020 | while : | |
4021 | do | |
4022 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4023 | mv "conftest.tmp" "conftest.in" | |
4024 | cp "conftest.in" "conftest.nl" | |
4025 | echo 'EGREP' >> "conftest.nl" | |
4026 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4027 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4028 | ac_count=`expr $ac_count + 1` | |
4029 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4030 | # Best one so far, save it but keep looking for a better one | |
4031 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4032 | ac_path_EGREP_max=$ac_count | |
4033 | fi | |
4034 | # 10*(2^10) chars as input seems more than enough | |
4035 | test $ac_count -gt 10 && break | |
4036 | done | |
4037 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4038 | esac | |
4039 | ||
4040 | ||
4041 | $ac_path_EGREP_found && break 3 | |
4042 | done | |
4043 | done | |
4044 | ||
4045 | done | |
4046 | IFS=$as_save_IFS | |
4047 | ||
4048 | ||
4049 | fi | |
4050 | ||
4051 | EGREP="$ac_cv_path_EGREP" | |
4052 | if test -z "$EGREP"; then | |
4053 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4054 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4055 | { (exit 1); exit 1; }; } | |
4056 | fi | |
4057 | ||
4058 | else | |
4059 | ac_cv_path_EGREP=$EGREP | |
4060 | fi | |
4061 | ||
4062 | ||
4063 | fi | |
4064 | fi | |
4065 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4066 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4067 | EGREP="$ac_cv_path_EGREP" | |
4068 | ||
4069 | ||
4070 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4071 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
4072 | if test "${ac_cv_header_stdc+set}" = set; then | |
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4074 | else | |
4075 | cat >conftest.$ac_ext <<_ACEOF | |
4076 | /* confdefs.h. */ | |
4077 | _ACEOF | |
4078 | cat confdefs.h >>conftest.$ac_ext | |
4079 | cat >>conftest.$ac_ext <<_ACEOF | |
4080 | /* end confdefs.h. */ | |
4081 | #include <stdlib.h> | |
4082 | #include <stdarg.h> | |
4083 | #include <string.h> | |
4084 | #include <float.h> | |
4085 | ||
4086 | int | |
4087 | main () | |
4088 | { | |
4089 | ||
4090 | ; | |
4091 | return 0; | |
4092 | } | |
4093 | _ACEOF | |
4094 | rm -f conftest.$ac_objext | |
4095 | if { (ac_try="$ac_compile" | |
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_compile") 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); } && { | |
4108 | test -z "$ac_c_werror_flag" || | |
4109 | test ! -s conftest.err | |
4110 | } && test -s conftest.$ac_objext; then | |
4111 | ac_cv_header_stdc=yes | |
4112 | else | |
4113 | echo "$as_me: failed program was:" >&5 | |
4114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4115 | ||
4116 | ac_cv_header_stdc=no | |
4117 | fi | |
4118 | ||
4119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4120 | ||
4121 | if test $ac_cv_header_stdc = yes; then | |
4122 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4123 | cat >conftest.$ac_ext <<_ACEOF | |
4124 | /* confdefs.h. */ | |
4125 | _ACEOF | |
4126 | cat confdefs.h >>conftest.$ac_ext | |
4127 | cat >>conftest.$ac_ext <<_ACEOF | |
4128 | /* end confdefs.h. */ | |
4129 | #include <string.h> | |
4130 | ||
4131 | _ACEOF | |
4132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4133 | $EGREP "memchr" >/dev/null 2>&1; then | |
4134 | : | |
4135 | else | |
4136 | ac_cv_header_stdc=no | |
4137 | fi | |
4138 | rm -f conftest* | |
4139 | ||
4140 | fi | |
4141 | ||
4142 | if test $ac_cv_header_stdc = yes; then | |
4143 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4144 | cat >conftest.$ac_ext <<_ACEOF | |
4145 | /* confdefs.h. */ | |
4146 | _ACEOF | |
4147 | cat confdefs.h >>conftest.$ac_ext | |
4148 | cat >>conftest.$ac_ext <<_ACEOF | |
4149 | /* end confdefs.h. */ | |
4150 | #include <stdlib.h> | |
4151 | ||
4152 | _ACEOF | |
4153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4154 | $EGREP "free" >/dev/null 2>&1; then | |
4155 | : | |
4156 | else | |
4157 | ac_cv_header_stdc=no | |
4158 | fi | |
4159 | rm -f conftest* | |
4160 | ||
4161 | fi | |
4162 | ||
4163 | if test $ac_cv_header_stdc = yes; then | |
4164 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4165 | if test "$cross_compiling" = yes; then | |
4166 | : | |
4167 | else | |
4168 | cat >conftest.$ac_ext <<_ACEOF | |
4169 | /* confdefs.h. */ | |
4170 | _ACEOF | |
4171 | cat confdefs.h >>conftest.$ac_ext | |
4172 | cat >>conftest.$ac_ext <<_ACEOF | |
4173 | /* end confdefs.h. */ | |
4174 | #include <ctype.h> | |
4175 | #include <stdlib.h> | |
4176 | #if ((' ' & 0x0FF) == 0x020) | |
4177 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4178 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4179 | #else | |
4180 | # define ISLOWER(c) \ | |
4181 | (('a' <= (c) && (c) <= 'i') \ | |
4182 | || ('j' <= (c) && (c) <= 'r') \ | |
4183 | || ('s' <= (c) && (c) <= 'z')) | |
4184 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4185 | #endif | |
4186 | ||
4187 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4188 | int | |
4189 | main () | |
4190 | { | |
4191 | int i; | |
4192 | for (i = 0; i < 256; i++) | |
4193 | if (XOR (islower (i), ISLOWER (i)) | |
4194 | || toupper (i) != TOUPPER (i)) | |
4195 | return 2; | |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
4199 | rm -f conftest$ac_exeext | |
4200 | if { (ac_try="$ac_link" | |
4201 | case "(($ac_try" in | |
4202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4203 | *) ac_try_echo=$ac_try;; | |
4204 | esac | |
4205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4206 | (eval "$ac_link") 2>&5 | |
4207 | ac_status=$? | |
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4210 | { (case "(($ac_try" in | |
4211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4212 | *) ac_try_echo=$ac_try;; | |
4213 | esac | |
4214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4215 | (eval "$ac_try") 2>&5 | |
4216 | ac_status=$? | |
4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4218 | (exit $ac_status); }; }; then | |
4219 | : | |
4220 | else | |
4221 | echo "$as_me: program exited with status $ac_status" >&5 | |
4222 | echo "$as_me: failed program was:" >&5 | |
4223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4224 | ||
4225 | ( exit $ac_status ) | |
4226 | ac_cv_header_stdc=no | |
4227 | fi | |
4228 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4229 | fi | |
4230 | ||
4231 | ||
4232 | fi | |
4233 | fi | |
4234 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4235 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
4236 | if test $ac_cv_header_stdc = yes; then | |
4237 | ||
4238 | cat >>confdefs.h <<\_ACEOF | |
4239 | #define STDC_HEADERS 1 | |
4240 | _ACEOF | |
4241 | ||
4242 | fi | |
4243 | ||
4244 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4245 | ||
4246 | ||
4247 | ||
4248 | ||
4249 | ||
4250 | ||
4251 | ||
4252 | ||
4253 | ||
4254 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4255 | inttypes.h stdint.h unistd.h | |
4256 | do | |
4257 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4258 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4262 | else | |
4263 | cat >conftest.$ac_ext <<_ACEOF | |
4264 | /* confdefs.h. */ | |
4265 | _ACEOF | |
4266 | cat confdefs.h >>conftest.$ac_ext | |
4267 | cat >>conftest.$ac_ext <<_ACEOF | |
4268 | /* end confdefs.h. */ | |
4269 | $ac_includes_default | |
4270 | ||
4271 | #include <$ac_header> | |
4272 | _ACEOF | |
4273 | rm -f conftest.$ac_objext | |
4274 | if { (ac_try="$ac_compile" | |
4275 | case "(($ac_try" in | |
4276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4277 | *) ac_try_echo=$ac_try;; | |
4278 | esac | |
4279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4280 | (eval "$ac_compile") 2>conftest.er1 | |
4281 | ac_status=$? | |
4282 | grep -v '^ *+' conftest.er1 >conftest.err | |
4283 | rm -f conftest.er1 | |
4284 | cat conftest.err >&5 | |
4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4286 | (exit $ac_status); } && { | |
4287 | test -z "$ac_c_werror_flag" || | |
4288 | test ! -s conftest.err | |
4289 | } && test -s conftest.$ac_objext; then | |
4290 | eval "$as_ac_Header=yes" | |
4291 | else | |
4292 | echo "$as_me: failed program was:" >&5 | |
4293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4294 | ||
4295 | eval "$as_ac_Header=no" | |
4296 | fi | |
4297 | ||
4298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4299 | fi | |
4300 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4302 | echo "${ECHO_T}$ac_res" >&6; } | |
4303 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4304 | cat >>confdefs.h <<_ACEOF | |
4305 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4306 | _ACEOF | |
4307 | ||
4308 | fi | |
4309 | ||
4310 | done | |
4311 | ||
4312 | ||
4313 | if test "${ac_cv_header_db_h+set}" = set; then | |
4314 | { echo "$as_me:$LINENO: checking for db.h" >&5 | |
4315 | echo $ECHO_N "checking for db.h... $ECHO_C" >&6; } | |
4316 | if test "${ac_cv_header_db_h+set}" = set; then | |
4317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4318 | fi | |
4319 | { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 | |
4320 | echo "${ECHO_T}$ac_cv_header_db_h" >&6; } | |
4321 | else | |
4322 | # Is the header compilable? | |
4323 | { echo "$as_me:$LINENO: checking db.h usability" >&5 | |
4324 | echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; } | |
4325 | cat >conftest.$ac_ext <<_ACEOF | |
4326 | /* confdefs.h. */ | |
4327 | _ACEOF | |
4328 | cat confdefs.h >>conftest.$ac_ext | |
4329 | cat >>conftest.$ac_ext <<_ACEOF | |
4330 | /* end confdefs.h. */ | |
4331 | $ac_includes_default | |
4332 | #include <db.h> | |
4333 | _ACEOF | |
4334 | rm -f conftest.$ac_objext | |
4335 | if { (ac_try="$ac_compile" | |
4336 | case "(($ac_try" in | |
4337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4338 | *) ac_try_echo=$ac_try;; | |
4339 | esac | |
4340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4341 | (eval "$ac_compile") 2>conftest.er1 | |
4342 | ac_status=$? | |
4343 | grep -v '^ *+' conftest.er1 >conftest.err | |
4344 | rm -f conftest.er1 | |
4345 | cat conftest.err >&5 | |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4347 | (exit $ac_status); } && { | |
4348 | test -z "$ac_c_werror_flag" || | |
4349 | test ! -s conftest.err | |
4350 | } && test -s conftest.$ac_objext; then | |
4351 | ac_header_compiler=yes | |
4352 | else | |
4353 | echo "$as_me: failed program was:" >&5 | |
4354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4355 | ||
4356 | ac_header_compiler=no | |
4357 | fi | |
4358 | ||
4359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4360 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4361 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4362 | ||
4363 | # Is the header present? | |
4364 | { echo "$as_me:$LINENO: checking db.h presence" >&5 | |
4365 | echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; } | |
4366 | cat >conftest.$ac_ext <<_ACEOF | |
4367 | /* confdefs.h. */ | |
4368 | _ACEOF | |
4369 | cat confdefs.h >>conftest.$ac_ext | |
4370 | cat >>conftest.$ac_ext <<_ACEOF | |
4371 | /* end confdefs.h. */ | |
4372 | #include <db.h> | |
4373 | _ACEOF | |
4374 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4375 | case "(($ac_try" in | |
4376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4377 | *) ac_try_echo=$ac_try;; | |
4378 | esac | |
4379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4380 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4381 | ac_status=$? | |
4382 | grep -v '^ *+' conftest.er1 >conftest.err | |
4383 | rm -f conftest.er1 | |
4384 | cat conftest.err >&5 | |
4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4386 | (exit $ac_status); } >/dev/null && { | |
4387 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4388 | test ! -s conftest.err | |
4389 | }; then | |
4390 | ac_header_preproc=yes | |
4391 | else | |
4392 | echo "$as_me: failed program was:" >&5 | |
4393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4394 | ||
4395 | ac_header_preproc=no | |
4396 | fi | |
4397 | ||
4398 | rm -f conftest.err conftest.$ac_ext | |
4399 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4400 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4401 | ||
4402 | # So? What about this header? | |
4403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4404 | yes:no: ) | |
4405 | { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4406 | echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4407 | { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5 | |
4408 | echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;} | |
4409 | ac_header_preproc=yes | |
4410 | ;; | |
4411 | no:yes:* ) | |
4412 | { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5 | |
4413 | echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;} | |
4414 | { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5 | |
4415 | echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;} | |
4416 | { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5 | |
4417 | echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;} | |
4418 | { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4419 | echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4420 | { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 | |
4421 | echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} | |
4422 | { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5 | |
4423 | echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;} | |
4424 | ||
4425 | ;; | |
4426 | esac | |
4427 | { echo "$as_me:$LINENO: checking for db.h" >&5 | |
4428 | echo $ECHO_N "checking for db.h... $ECHO_C" >&6; } | |
4429 | if test "${ac_cv_header_db_h+set}" = set; then | |
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4431 | else | |
4432 | ac_cv_header_db_h=$ac_header_preproc | |
4433 | fi | |
4434 | { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 | |
4435 | echo "${ECHO_T}$ac_cv_header_db_h" >&6; } | |
4436 | ||
4437 | fi | |
4438 | if test $ac_cv_header_db_h = yes; then | |
4439 | { echo "$as_me:$LINENO: checking if we can link against BerkeleyDB" >&5 | |
4440 | echo $ECHO_N "checking if we can link against BerkeleyDB... $ECHO_C" >&6; } | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | #include <db.h> | |
4448 | int | |
4449 | main () | |
4450 | { | |
4451 | int r, s, t; db_version(&r, &s, &t); | |
4452 | ||
4453 | ; | |
4454 | return 0; | |
4455 | } | |
4456 | _ACEOF | |
4457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4458 | if { (ac_try="$ac_link" | |
4459 | case "(($ac_try" in | |
4460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4461 | *) ac_try_echo=$ac_try;; | |
4462 | esac | |
4463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4464 | (eval "$ac_link") 2>conftest.er1 | |
4465 | ac_status=$? | |
4466 | grep -v '^ *+' conftest.er1 >conftest.err | |
4467 | rm -f conftest.er1 | |
4468 | cat conftest.err >&5 | |
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4470 | (exit $ac_status); } && { | |
4471 | test -z "$ac_c_werror_flag" || | |
4472 | test ! -s conftest.err | |
4473 | } && test -s conftest$ac_exeext && | |
4474 | $as_test_x conftest$ac_exeext; then | |
4475 | cat >>confdefs.h <<\_ACEOF | |
4476 | #define HAVE_BDB 1 | |
4477 | _ACEOF | |
4478 | ||
4479 | BDBLIB="-ldb" | |
4480 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6; } | |
4482 | else | |
4483 | echo "$as_me: failed program was:" >&5 | |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4485 | ||
4486 | BDBLIB="" | |
4487 | { echo "$as_me:$LINENO: result: no" >&5 | |
4488 | echo "${ECHO_T}no" >&6; } | |
4489 | ||
4490 | fi | |
4491 | ||
4492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4493 | conftest$ac_exeext conftest.$ac_ext | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | ||
4498 | ||
4499 | LIBS="$saveLIBS" | |
4500 | ||
00ec24d0 JF |
4501 | { echo "$as_me:$LINENO: checking for curl_easy_init in -lcurl" >&5 |
4502 | echo $ECHO_N "checking for curl_easy_init in -lcurl... $ECHO_C" >&6; } | |
4503 | if test "${ac_cv_lib_curl_curl_easy_init+set}" = set; then | |
4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4505 | else | |
4506 | ac_check_lib_save_LIBS=$LIBS | |
4507 | LIBS="-lcurl $LIBS" | |
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 | ||
4515 | /* Override any GCC internal prototype to avoid an error. | |
4516 | Use char because int might match the return type of a GCC | |
4517 | builtin and then its argument prototype would still apply. */ | |
4518 | #ifdef __cplusplus | |
4519 | extern "C" | |
4520 | #endif | |
4521 | char curl_easy_init (); | |
4522 | int | |
4523 | main () | |
4524 | { | |
4525 | return curl_easy_init (); | |
4526 | ; | |
4527 | return 0; | |
4528 | } | |
4529 | _ACEOF | |
4530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4531 | if { (ac_try="$ac_link" | |
4532 | case "(($ac_try" in | |
4533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4534 | *) ac_try_echo=$ac_try;; | |
4535 | esac | |
4536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4537 | (eval "$ac_link") 2>conftest.er1 | |
4538 | ac_status=$? | |
4539 | grep -v '^ *+' conftest.er1 >conftest.err | |
4540 | rm -f conftest.er1 | |
4541 | cat conftest.err >&5 | |
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4543 | (exit $ac_status); } && { | |
4544 | test -z "$ac_c_werror_flag" || | |
4545 | test ! -s conftest.err | |
4546 | } && test -s conftest$ac_exeext && | |
4547 | $as_test_x conftest$ac_exeext; then | |
4548 | ac_cv_lib_curl_curl_easy_init=yes | |
4549 | else | |
4550 | echo "$as_me: failed program was:" >&5 | |
4551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4552 | ||
4553 | ac_cv_lib_curl_curl_easy_init=no | |
4554 | fi | |
4555 | ||
4556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4557 | conftest$ac_exeext conftest.$ac_ext | |
4558 | LIBS=$ac_check_lib_save_LIBS | |
4559 | fi | |
4560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_init" >&5 | |
4561 | echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_init" >&6; } | |
4562 | if test $ac_cv_lib_curl_curl_easy_init = yes; then | |
4563 | if test "${ac_cv_header_curl_curl_h+set}" = set; then | |
4564 | { echo "$as_me:$LINENO: checking for curl/curl.h" >&5 | |
4565 | echo $ECHO_N "checking for curl/curl.h... $ECHO_C" >&6; } | |
4566 | if test "${ac_cv_header_curl_curl_h+set}" = set; then | |
4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4568 | fi | |
4569 | { echo "$as_me:$LINENO: result: $ac_cv_header_curl_curl_h" >&5 | |
4570 | echo "${ECHO_T}$ac_cv_header_curl_curl_h" >&6; } | |
4571 | else | |
4572 | # Is the header compilable? | |
4573 | { echo "$as_me:$LINENO: checking curl/curl.h usability" >&5 | |
4574 | echo $ECHO_N "checking curl/curl.h usability... $ECHO_C" >&6; } | |
4575 | cat >conftest.$ac_ext <<_ACEOF | |
4576 | /* confdefs.h. */ | |
4577 | _ACEOF | |
4578 | cat confdefs.h >>conftest.$ac_ext | |
4579 | cat >>conftest.$ac_ext <<_ACEOF | |
4580 | /* end confdefs.h. */ | |
4581 | $ac_includes_default | |
4582 | #include <curl/curl.h> | |
4583 | _ACEOF | |
4584 | rm -f conftest.$ac_objext | |
4585 | if { (ac_try="$ac_compile" | |
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_compile") 2>conftest.er1 | |
4592 | ac_status=$? | |
4593 | grep -v '^ *+' conftest.er1 >conftest.err | |
4594 | rm -f conftest.er1 | |
4595 | cat conftest.err >&5 | |
4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4597 | (exit $ac_status); } && { | |
4598 | test -z "$ac_c_werror_flag" || | |
4599 | test ! -s conftest.err | |
4600 | } && test -s conftest.$ac_objext; then | |
4601 | ac_header_compiler=yes | |
4602 | else | |
4603 | echo "$as_me: failed program was:" >&5 | |
4604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4605 | ||
4606 | ac_header_compiler=no | |
4607 | fi | |
4608 | ||
4609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4610 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4611 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4612 | ||
4613 | # Is the header present? | |
4614 | { echo "$as_me:$LINENO: checking curl/curl.h presence" >&5 | |
4615 | echo $ECHO_N "checking curl/curl.h presence... $ECHO_C" >&6; } | |
4616 | cat >conftest.$ac_ext <<_ACEOF | |
4617 | /* confdefs.h. */ | |
4618 | _ACEOF | |
4619 | cat confdefs.h >>conftest.$ac_ext | |
4620 | cat >>conftest.$ac_ext <<_ACEOF | |
4621 | /* end confdefs.h. */ | |
4622 | #include <curl/curl.h> | |
4623 | _ACEOF | |
4624 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4625 | case "(($ac_try" in | |
4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4627 | *) ac_try_echo=$ac_try;; | |
4628 | esac | |
4629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4631 | ac_status=$? | |
4632 | grep -v '^ *+' conftest.er1 >conftest.err | |
4633 | rm -f conftest.er1 | |
4634 | cat conftest.err >&5 | |
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4636 | (exit $ac_status); } >/dev/null && { | |
4637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4638 | test ! -s conftest.err | |
4639 | }; then | |
4640 | ac_header_preproc=yes | |
4641 | else | |
4642 | echo "$as_me: failed program was:" >&5 | |
4643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4644 | ||
4645 | ac_header_preproc=no | |
4646 | fi | |
4647 | ||
4648 | rm -f conftest.err conftest.$ac_ext | |
4649 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4650 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4651 | ||
4652 | # So? What about this header? | |
4653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4654 | yes:no: ) | |
4655 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4656 | echo "$as_me: WARNING: curl/curl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4657 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: proceeding with the compiler's result" >&5 | |
4658 | echo "$as_me: WARNING: curl/curl.h: proceeding with the compiler's result" >&2;} | |
4659 | ac_header_preproc=yes | |
4660 | ;; | |
4661 | no:yes:* ) | |
4662 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: present but cannot be compiled" >&5 | |
4663 | echo "$as_me: WARNING: curl/curl.h: present but cannot be compiled" >&2;} | |
4664 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: check for missing prerequisite headers?" >&5 | |
4665 | echo "$as_me: WARNING: curl/curl.h: check for missing prerequisite headers?" >&2;} | |
4666 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: see the Autoconf documentation" >&5 | |
4667 | echo "$as_me: WARNING: curl/curl.h: see the Autoconf documentation" >&2;} | |
4668 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4669 | echo "$as_me: WARNING: curl/curl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4670 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: proceeding with the preprocessor's result" >&5 | |
4671 | echo "$as_me: WARNING: curl/curl.h: proceeding with the preprocessor's result" >&2;} | |
4672 | { echo "$as_me:$LINENO: WARNING: curl/curl.h: in the future, the compiler will take precedence" >&5 | |
4673 | echo "$as_me: WARNING: curl/curl.h: in the future, the compiler will take precedence" >&2;} | |
4674 | ||
4675 | ;; | |
4676 | esac | |
4677 | { echo "$as_me:$LINENO: checking for curl/curl.h" >&5 | |
4678 | echo $ECHO_N "checking for curl/curl.h... $ECHO_C" >&6; } | |
4679 | if test "${ac_cv_header_curl_curl_h+set}" = set; then | |
4680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4681 | else | |
4682 | ac_cv_header_curl_curl_h=$ac_header_preproc | |
4683 | fi | |
4684 | { echo "$as_me:$LINENO: result: $ac_cv_header_curl_curl_h" >&5 | |
4685 | echo "${ECHO_T}$ac_cv_header_curl_curl_h" >&6; } | |
4686 | ||
4687 | fi | |
4688 | if test $ac_cv_header_curl_curl_h = yes; then | |
4689 | curl_ok=yes | |
4690 | else | |
4691 | curl_ok=no | |
4692 | fi | |
4693 | ||
4694 | ||
4695 | else | |
4696 | { { echo "$as_me:$LINENO: error: failed: I need CURL due https support" >&5 | |
4697 | echo "$as_me: error: failed: I need CURL due https support" >&2;} | |
4698 | { (exit 1); exit 1; }; } | |
4699 | fi | |
4700 | ||
da6ee469 JF |
4701 | |
4702 | ||
00ec24d0 JF |
4703 | |
4704 | { echo "$as_me:$LINENO: checking debian architecture" >&5 | |
4705 | echo $ECHO_N "checking debian architecture... $ECHO_C" >&6; } | |
4706 | archset="`dpkg-architecture -qDEB_HOST_ARCH`" | |
da6ee469 | 4707 | if test "x$archset" = "x"; then |
00ec24d0 JF |
4708 | { { echo "$as_me:$LINENO: error: failed: use --host= or output from dpkg-architecture" >&5 |
4709 | echo "$as_me: error: failed: use --host= or output from dpkg-architecture" >&2;} | |
da6ee469 JF |
4710 | { (exit 1); exit 1; }; } |
4711 | fi | |
4712 | { echo "$as_me:$LINENO: result: $archset" >&5 | |
4713 | echo "${ECHO_T}$archset" >&6; } | |
4714 | cat >>confdefs.h <<_ACEOF | |
00ec24d0 | 4715 | #define COMMON_ARCH "$archset" |
da6ee469 JF |
4716 | _ACEOF |
4717 | ||
4718 | ||
4719 | { echo "$as_me:$LINENO: checking for C99 integer types" >&5 | |
4720 | echo $ECHO_N "checking for C99 integer types... $ECHO_C" >&6; } | |
4721 | if test "${c9x_ints+set}" = set; then | |
4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4723 | else | |
4724 | ||
4725 | cat >conftest.$ac_ext <<_ACEOF | |
4726 | /* confdefs.h. */ | |
4727 | _ACEOF | |
4728 | cat confdefs.h >>conftest.$ac_ext | |
4729 | cat >>conftest.$ac_ext <<_ACEOF | |
4730 | /* end confdefs.h. */ | |
4731 | #include <inttypes.h> | |
4732 | int | |
4733 | main () | |
4734 | { | |
4735 | uint8_t Foo1;uint16_t Foo2;uint32_t Foo3; | |
4736 | ; | |
4737 | return 0; | |
4738 | } | |
4739 | _ACEOF | |
4740 | rm -f conftest.$ac_objext | |
4741 | if { (ac_try="$ac_compile" | |
4742 | case "(($ac_try" in | |
4743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4744 | *) ac_try_echo=$ac_try;; | |
4745 | esac | |
4746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4747 | (eval "$ac_compile") 2>conftest.er1 | |
4748 | ac_status=$? | |
4749 | grep -v '^ *+' conftest.er1 >conftest.err | |
4750 | rm -f conftest.er1 | |
4751 | cat conftest.err >&5 | |
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4753 | (exit $ac_status); } && { | |
4754 | test -z "$ac_c_werror_flag" || | |
4755 | test ! -s conftest.err | |
4756 | } && test -s conftest.$ac_objext; then | |
4757 | c9x_ints=yes | |
4758 | else | |
4759 | echo "$as_me: failed program was:" >&5 | |
4760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4761 | ||
4762 | c9x_ints=no | |
4763 | fi | |
4764 | ||
4765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4766 | fi | |
4767 | { echo "$as_me:$LINENO: result: $c9x_ints" >&5 | |
4768 | echo "${ECHO_T}$c9x_ints" >&6; } | |
4769 | ||
4770 | { echo "$as_me:$LINENO: checking for statvfs" >&5 | |
4771 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; } | |
4772 | if test "${ac_cv_func_statvfs+set}" = set; then | |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4774 | else | |
4775 | cat >conftest.$ac_ext <<_ACEOF | |
4776 | /* confdefs.h. */ | |
4777 | _ACEOF | |
4778 | cat confdefs.h >>conftest.$ac_ext | |
4779 | cat >>conftest.$ac_ext <<_ACEOF | |
4780 | /* end confdefs.h. */ | |
4781 | /* Define statvfs to an innocuous variant, in case <limits.h> declares statvfs. | |
4782 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4783 | #define statvfs innocuous_statvfs | |
4784 | ||
4785 | /* System header to define __stub macros and hopefully few prototypes, | |
4786 | which can conflict with char statvfs (); below. | |
4787 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4788 | <limits.h> exists even on freestanding compilers. */ | |
4789 | ||
4790 | #ifdef __STDC__ | |
4791 | # include <limits.h> | |
4792 | #else | |
4793 | # include <assert.h> | |
4794 | #endif | |
4795 | ||
4796 | #undef statvfs | |
4797 | ||
4798 | /* Override any GCC internal prototype to avoid an error. | |
4799 | Use char because int might match the return type of a GCC | |
4800 | builtin and then its argument prototype would still apply. */ | |
4801 | #ifdef __cplusplus | |
4802 | extern "C" | |
4803 | #endif | |
4804 | char statvfs (); | |
4805 | /* The GNU C library defines this for functions which it implements | |
4806 | to always fail with ENOSYS. Some functions are actually named | |
4807 | something starting with __ and the normal name is an alias. */ | |
4808 | #if defined __stub_statvfs || defined __stub___statvfs | |
4809 | choke me | |
4810 | #endif | |
4811 | ||
4812 | int | |
4813 | main () | |
4814 | { | |
4815 | return statvfs (); | |
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4821 | if { (ac_try="$ac_link" | |
4822 | case "(($ac_try" in | |
4823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4824 | *) ac_try_echo=$ac_try;; | |
4825 | esac | |
4826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4827 | (eval "$ac_link") 2>conftest.er1 | |
4828 | ac_status=$? | |
4829 | grep -v '^ *+' conftest.er1 >conftest.err | |
4830 | rm -f conftest.er1 | |
4831 | cat conftest.err >&5 | |
4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4833 | (exit $ac_status); } && { | |
4834 | test -z "$ac_c_werror_flag" || | |
4835 | test ! -s conftest.err | |
4836 | } && test -s conftest$ac_exeext && | |
4837 | $as_test_x conftest$ac_exeext; then | |
4838 | ac_cv_func_statvfs=yes | |
4839 | else | |
4840 | echo "$as_me: failed program was:" >&5 | |
4841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4842 | ||
4843 | ac_cv_func_statvfs=no | |
4844 | fi | |
4845 | ||
4846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4847 | conftest$ac_exeext conftest.$ac_ext | |
4848 | fi | |
4849 | { echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5 | |
4850 | echo "${ECHO_T}$ac_cv_func_statvfs" >&6; } | |
4851 | if test $ac_cv_func_statvfs = yes; then | |
4852 | HAVE_STATVFS=yes | |
4853 | fi | |
4854 | ||
4855 | ||
4856 | ||
4857 | if test x"$HAVE_STATVFS" != x"yes"; then | |
4858 | cat >conftest.$ac_ext <<_ACEOF | |
4859 | /* confdefs.h. */ | |
4860 | _ACEOF | |
4861 | cat confdefs.h >>conftest.$ac_ext | |
4862 | cat >>conftest.$ac_ext <<_ACEOF | |
4863 | /* end confdefs.h. */ | |
4864 | #include <sys/vfs.h> | |
4865 | ||
4866 | _ACEOF | |
4867 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4868 | $EGREP "statfs" >/dev/null 2>&1; then | |
4869 | cat >>confdefs.h <<\_ACEOF | |
4870 | #define HAVE_VFS_H 1 | |
4871 | _ACEOF | |
4872 | ||
4873 | else | |
4874 | ||
4875 | cat >conftest.$ac_ext <<_ACEOF | |
4876 | /* confdefs.h. */ | |
4877 | _ACEOF | |
4878 | cat confdefs.h >>conftest.$ac_ext | |
4879 | cat >>conftest.$ac_ext <<_ACEOF | |
4880 | /* end confdefs.h. */ | |
4881 | #include <sys/mount.h> | |
4882 | ||
4883 | _ACEOF | |
4884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4885 | $EGREP "statfs" >/dev/null 2>&1; then | |
4886 | cat >>confdefs.h <<\_ACEOF | |
4887 | #define HAVE_MOUNT_H 1 | |
4888 | _ACEOF | |
4889 | ||
4890 | else | |
4891 | { { echo "$as_me:$LINENO: error: failed: Need statvfs" >&5 | |
4892 | echo "$as_me: error: failed: Need statvfs" >&2;} | |
4893 | { (exit 1); exit 1; }; } | |
4894 | fi | |
4895 | rm -f conftest* | |
4896 | ||
4897 | ||
4898 | fi | |
4899 | rm -f conftest* | |
4900 | ||
4901 | fi | |
4902 | ||
4903 | { echo "$as_me:$LINENO: checking for timegm" >&5 | |
4904 | echo $ECHO_N "checking for timegm... $ECHO_C" >&6; } | |
4905 | if test "${ac_cv_func_timegm+set}" = set; then | |
4906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4907 | else | |
4908 | cat >conftest.$ac_ext <<_ACEOF | |
4909 | /* confdefs.h. */ | |
4910 | _ACEOF | |
4911 | cat confdefs.h >>conftest.$ac_ext | |
4912 | cat >>conftest.$ac_ext <<_ACEOF | |
4913 | /* end confdefs.h. */ | |
4914 | /* Define timegm to an innocuous variant, in case <limits.h> declares timegm. | |
4915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4916 | #define timegm innocuous_timegm | |
4917 | ||
4918 | /* System header to define __stub macros and hopefully few prototypes, | |
4919 | which can conflict with char timegm (); below. | |
4920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4921 | <limits.h> exists even on freestanding compilers. */ | |
4922 | ||
4923 | #ifdef __STDC__ | |
4924 | # include <limits.h> | |
4925 | #else | |
4926 | # include <assert.h> | |
4927 | #endif | |
4928 | ||
4929 | #undef timegm | |
4930 | ||
4931 | /* Override any GCC internal prototype to avoid an error. | |
4932 | Use char because int might match the return type of a GCC | |
4933 | builtin and then its argument prototype would still apply. */ | |
4934 | #ifdef __cplusplus | |
4935 | extern "C" | |
4936 | #endif | |
4937 | char timegm (); | |
4938 | /* The GNU C library defines this for functions which it implements | |
4939 | to always fail with ENOSYS. Some functions are actually named | |
4940 | something starting with __ and the normal name is an alias. */ | |
4941 | #if defined __stub_timegm || defined __stub___timegm | |
4942 | choke me | |
4943 | #endif | |
4944 | ||
4945 | int | |
4946 | main () | |
4947 | { | |
4948 | return timegm (); | |
4949 | ; | |
4950 | return 0; | |
4951 | } | |
4952 | _ACEOF | |
4953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4954 | if { (ac_try="$ac_link" | |
4955 | case "(($ac_try" in | |
4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4957 | *) ac_try_echo=$ac_try;; | |
4958 | esac | |
4959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4960 | (eval "$ac_link") 2>conftest.er1 | |
4961 | ac_status=$? | |
4962 | grep -v '^ *+' conftest.er1 >conftest.err | |
4963 | rm -f conftest.er1 | |
4964 | cat conftest.err >&5 | |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4966 | (exit $ac_status); } && { | |
4967 | test -z "$ac_c_werror_flag" || | |
4968 | test ! -s conftest.err | |
4969 | } && test -s conftest$ac_exeext && | |
4970 | $as_test_x conftest$ac_exeext; then | |
4971 | ac_cv_func_timegm=yes | |
4972 | else | |
4973 | echo "$as_me: failed program was:" >&5 | |
4974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4975 | ||
4976 | ac_cv_func_timegm=no | |
4977 | fi | |
4978 | ||
4979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4980 | conftest$ac_exeext conftest.$ac_ext | |
4981 | fi | |
4982 | { echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5 | |
4983 | echo "${ECHO_T}$ac_cv_func_timegm" >&6; } | |
4984 | if test $ac_cv_func_timegm = yes; then | |
4985 | cat >>confdefs.h <<\_ACEOF | |
4986 | #define HAVE_TIMEGM 1 | |
4987 | _ACEOF | |
4988 | ||
4989 | fi | |
4990 | ||
4991 | ||
4992 | ||
4993 | ||
4994 | archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`" | |
4995 | if test "x$archline" != "x"; then | |
4996 | ||
4997 | set $archline | |
4998 | if test "$1" = "little"; then | |
4999 | ac_cv_c_bigendian=no | |
5000 | else | |
5001 | ac_cv_c_bigendian=yes | |
5002 | fi | |
5003 | size_char=$2 | |
5004 | size_int=$3 | |
5005 | size_short=$4 | |
5006 | size_long=$5 | |
5007 | fi | |
5008 | ||
5009 | if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then | |
5010 | { { echo "$as_me:$LINENO: error: When cross compiling" >&5 | |
5011 | echo "$as_me: error: When cross compiling" >&2;} | |
5012 | { (exit architecture must be present in sizetable); exit architecture must be present in sizetable; }; } | |
5013 | fi | |
5014 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
5015 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
5016 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5018 | else | |
5019 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5020 | cat >conftest.$ac_ext <<_ACEOF | |
5021 | /* confdefs.h. */ | |
5022 | _ACEOF | |
5023 | cat confdefs.h >>conftest.$ac_ext | |
5024 | cat >>conftest.$ac_ext <<_ACEOF | |
5025 | /* end confdefs.h. */ | |
5026 | #include <sys/types.h> | |
5027 | #include <sys/param.h> | |
5028 | ||
5029 | int | |
5030 | main () | |
5031 | { | |
5032 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
5033 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
5034 | bogus endian macros | |
5035 | #endif | |
5036 | ||
5037 | ; | |
5038 | return 0; | |
5039 | } | |
5040 | _ACEOF | |
5041 | rm -f conftest.$ac_objext | |
5042 | if { (ac_try="$ac_compile" | |
5043 | case "(($ac_try" in | |
5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5045 | *) ac_try_echo=$ac_try;; | |
5046 | esac | |
5047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5048 | (eval "$ac_compile") 2>conftest.er1 | |
5049 | ac_status=$? | |
5050 | grep -v '^ *+' conftest.er1 >conftest.err | |
5051 | rm -f conftest.er1 | |
5052 | cat conftest.err >&5 | |
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5054 | (exit $ac_status); } && { | |
5055 | test -z "$ac_c_werror_flag" || | |
5056 | test ! -s conftest.err | |
5057 | } && test -s conftest.$ac_objext; then | |
5058 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5059 | cat >conftest.$ac_ext <<_ACEOF | |
5060 | /* confdefs.h. */ | |
5061 | _ACEOF | |
5062 | cat confdefs.h >>conftest.$ac_ext | |
5063 | cat >>conftest.$ac_ext <<_ACEOF | |
5064 | /* end confdefs.h. */ | |
5065 | #include <sys/types.h> | |
5066 | #include <sys/param.h> | |
5067 | ||
5068 | int | |
5069 | main () | |
5070 | { | |
5071 | #if BYTE_ORDER != BIG_ENDIAN | |
5072 | not big endian | |
5073 | #endif | |
5074 | ||
5075 | ; | |
5076 | return 0; | |
5077 | } | |
5078 | _ACEOF | |
5079 | rm -f conftest.$ac_objext | |
5080 | if { (ac_try="$ac_compile" | |
5081 | case "(($ac_try" in | |
5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5083 | *) ac_try_echo=$ac_try;; | |
5084 | esac | |
5085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5086 | (eval "$ac_compile") 2>conftest.er1 | |
5087 | ac_status=$? | |
5088 | grep -v '^ *+' conftest.er1 >conftest.err | |
5089 | rm -f conftest.er1 | |
5090 | cat conftest.err >&5 | |
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5092 | (exit $ac_status); } && { | |
5093 | test -z "$ac_c_werror_flag" || | |
5094 | test ! -s conftest.err | |
5095 | } && test -s conftest.$ac_objext; then | |
5096 | ac_cv_c_bigendian=yes | |
5097 | else | |
5098 | echo "$as_me: failed program was:" >&5 | |
5099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5100 | ||
5101 | ac_cv_c_bigendian=no | |
5102 | fi | |
5103 | ||
5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5105 | else | |
5106 | echo "$as_me: failed program was:" >&5 | |
5107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5108 | ||
5109 | # It does not; compile a test program. | |
5110 | if test "$cross_compiling" = yes; then | |
5111 | # try to guess the endianness by grepping values into an object file | |
5112 | ac_cv_c_bigendian=unknown | |
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 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5120 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5121 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
5122 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5123 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5124 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
5125 | int | |
5126 | main () | |
5127 | { | |
5128 | _ascii (); _ebcdic (); | |
5129 | ; | |
5130 | return 0; | |
5131 | } | |
5132 | _ACEOF | |
5133 | rm -f conftest.$ac_objext | |
5134 | if { (ac_try="$ac_compile" | |
5135 | case "(($ac_try" in | |
5136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5137 | *) ac_try_echo=$ac_try;; | |
5138 | esac | |
5139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5140 | (eval "$ac_compile") 2>conftest.er1 | |
5141 | ac_status=$? | |
5142 | grep -v '^ *+' conftest.er1 >conftest.err | |
5143 | rm -f conftest.er1 | |
5144 | cat conftest.err >&5 | |
5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5146 | (exit $ac_status); } && { | |
5147 | test -z "$ac_c_werror_flag" || | |
5148 | test ! -s conftest.err | |
5149 | } && test -s conftest.$ac_objext; then | |
5150 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
5151 | ac_cv_c_bigendian=yes | |
5152 | fi | |
5153 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5154 | if test "$ac_cv_c_bigendian" = unknown; then | |
5155 | ac_cv_c_bigendian=no | |
5156 | else | |
5157 | # finding both strings is unlikely to happen, but who knows? | |
5158 | ac_cv_c_bigendian=unknown | |
5159 | fi | |
5160 | fi | |
5161 | else | |
5162 | echo "$as_me: failed program was:" >&5 | |
5163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5164 | ||
5165 | ||
5166 | fi | |
5167 | ||
5168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5169 | else | |
5170 | cat >conftest.$ac_ext <<_ACEOF | |
5171 | /* confdefs.h. */ | |
5172 | _ACEOF | |
5173 | cat confdefs.h >>conftest.$ac_ext | |
5174 | cat >>conftest.$ac_ext <<_ACEOF | |
5175 | /* end confdefs.h. */ | |
5176 | $ac_includes_default | |
5177 | int | |
5178 | main () | |
5179 | { | |
5180 | ||
5181 | /* Are we little or big endian? From Harbison&Steele. */ | |
5182 | union | |
5183 | { | |
5184 | long int l; | |
5185 | char c[sizeof (long int)]; | |
5186 | } u; | |
5187 | u.l = 1; | |
5188 | return u.c[sizeof (long int) - 1] == 1; | |
5189 | ||
5190 | ; | |
5191 | return 0; | |
5192 | } | |
5193 | _ACEOF | |
5194 | rm -f conftest$ac_exeext | |
5195 | if { (ac_try="$ac_link" | |
5196 | case "(($ac_try" in | |
5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5198 | *) ac_try_echo=$ac_try;; | |
5199 | esac | |
5200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5201 | (eval "$ac_link") 2>&5 | |
5202 | ac_status=$? | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5205 | { (case "(($ac_try" in | |
5206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5207 | *) ac_try_echo=$ac_try;; | |
5208 | esac | |
5209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5210 | (eval "$ac_try") 2>&5 | |
5211 | ac_status=$? | |
5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5213 | (exit $ac_status); }; }; then | |
5214 | ac_cv_c_bigendian=no | |
5215 | else | |
5216 | echo "$as_me: program exited with status $ac_status" >&5 | |
5217 | echo "$as_me: failed program was:" >&5 | |
5218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5219 | ||
5220 | ( exit $ac_status ) | |
5221 | ac_cv_c_bigendian=yes | |
5222 | fi | |
5223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5224 | fi | |
5225 | ||
5226 | ||
5227 | fi | |
5228 | ||
5229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5230 | fi | |
5231 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
5232 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
5233 | case $ac_cv_c_bigendian in | |
5234 | yes) | |
5235 | ||
5236 | cat >>confdefs.h <<\_ACEOF | |
5237 | #define WORDS_BIGENDIAN 1 | |
5238 | _ACEOF | |
5239 | ;; | |
5240 | no) | |
5241 | ;; | |
5242 | *) | |
5243 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5244 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5245 | echo "$as_me: error: unknown endianness | |
5246 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5247 | { (exit 1); exit 1; }; } ;; | |
5248 | esac | |
5249 | ||
5250 | ||
5251 | HAVE_C9X=yes | |
5252 | if test x"$c9x_ints" = x"no"; then | |
5253 | { echo "$as_me:$LINENO: checking for char" >&5 | |
5254 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | |
5255 | if test "${ac_cv_type_char+set}" = set; then | |
5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5257 | else | |
5258 | cat >conftest.$ac_ext <<_ACEOF | |
5259 | /* confdefs.h. */ | |
5260 | _ACEOF | |
5261 | cat confdefs.h >>conftest.$ac_ext | |
5262 | cat >>conftest.$ac_ext <<_ACEOF | |
5263 | /* end confdefs.h. */ | |
5264 | $ac_includes_default | |
5265 | typedef char ac__type_new_; | |
5266 | int | |
5267 | main () | |
5268 | { | |
5269 | if ((ac__type_new_ *) 0) | |
5270 | return 0; | |
5271 | if (sizeof (ac__type_new_)) | |
5272 | return 0; | |
5273 | ; | |
5274 | return 0; | |
5275 | } | |
5276 | _ACEOF | |
5277 | rm -f conftest.$ac_objext | |
5278 | if { (ac_try="$ac_compile" | |
5279 | case "(($ac_try" in | |
5280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5281 | *) ac_try_echo=$ac_try;; | |
5282 | esac | |
5283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5284 | (eval "$ac_compile") 2>conftest.er1 | |
5285 | ac_status=$? | |
5286 | grep -v '^ *+' conftest.er1 >conftest.err | |
5287 | rm -f conftest.er1 | |
5288 | cat conftest.err >&5 | |
5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5290 | (exit $ac_status); } && { | |
5291 | test -z "$ac_c_werror_flag" || | |
5292 | test ! -s conftest.err | |
5293 | } && test -s conftest.$ac_objext; then | |
5294 | ac_cv_type_char=yes | |
5295 | else | |
5296 | echo "$as_me: failed program was:" >&5 | |
5297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5298 | ||
5299 | ac_cv_type_char=no | |
5300 | fi | |
5301 | ||
5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5303 | fi | |
5304 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
5305 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | |
5306 | ||
5307 | # The cast to long int works around a bug in the HP C Compiler | |
5308 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5309 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5310 | # This bug is HP SR number 8606223364. | |
5311 | { echo "$as_me:$LINENO: checking size of char" >&5 | |
5312 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | |
5313 | if test "${ac_cv_sizeof_char+set}" = set; then | |
5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5315 | else | |
5316 | if test "$cross_compiling" = yes; then | |
5317 | # Depending upon the size, compute the lo and hi bounds. | |
5318 | cat >conftest.$ac_ext <<_ACEOF | |
5319 | /* confdefs.h. */ | |
5320 | _ACEOF | |
5321 | cat confdefs.h >>conftest.$ac_ext | |
5322 | cat >>conftest.$ac_ext <<_ACEOF | |
5323 | /* end confdefs.h. */ | |
5324 | $ac_includes_default | |
5325 | typedef char ac__type_sizeof_; | |
5326 | int | |
5327 | main () | |
5328 | { | |
5329 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
5330 | test_array [0] = 0 | |
5331 | ||
5332 | ; | |
5333 | return 0; | |
5334 | } | |
5335 | _ACEOF | |
5336 | rm -f conftest.$ac_objext | |
5337 | if { (ac_try="$ac_compile" | |
5338 | case "(($ac_try" in | |
5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5340 | *) ac_try_echo=$ac_try;; | |
5341 | esac | |
5342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5343 | (eval "$ac_compile") 2>conftest.er1 | |
5344 | ac_status=$? | |
5345 | grep -v '^ *+' conftest.er1 >conftest.err | |
5346 | rm -f conftest.er1 | |
5347 | cat conftest.err >&5 | |
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 | (exit $ac_status); } && { | |
5350 | test -z "$ac_c_werror_flag" || | |
5351 | test ! -s conftest.err | |
5352 | } && test -s conftest.$ac_objext; then | |
5353 | ac_lo=0 ac_mid=0 | |
5354 | while :; do | |
5355 | cat >conftest.$ac_ext <<_ACEOF | |
5356 | /* confdefs.h. */ | |
5357 | _ACEOF | |
5358 | cat confdefs.h >>conftest.$ac_ext | |
5359 | cat >>conftest.$ac_ext <<_ACEOF | |
5360 | /* end confdefs.h. */ | |
5361 | $ac_includes_default | |
5362 | typedef char ac__type_sizeof_; | |
5363 | int | |
5364 | main () | |
5365 | { | |
5366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5367 | test_array [0] = 0 | |
5368 | ||
5369 | ; | |
5370 | return 0; | |
5371 | } | |
5372 | _ACEOF | |
5373 | rm -f conftest.$ac_objext | |
5374 | if { (ac_try="$ac_compile" | |
5375 | case "(($ac_try" in | |
5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5377 | *) ac_try_echo=$ac_try;; | |
5378 | esac | |
5379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5380 | (eval "$ac_compile") 2>conftest.er1 | |
5381 | ac_status=$? | |
5382 | grep -v '^ *+' conftest.er1 >conftest.err | |
5383 | rm -f conftest.er1 | |
5384 | cat conftest.err >&5 | |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5386 | (exit $ac_status); } && { | |
5387 | test -z "$ac_c_werror_flag" || | |
5388 | test ! -s conftest.err | |
5389 | } && test -s conftest.$ac_objext; then | |
5390 | ac_hi=$ac_mid; break | |
5391 | else | |
5392 | echo "$as_me: failed program was:" >&5 | |
5393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5394 | ||
5395 | ac_lo=`expr $ac_mid + 1` | |
5396 | if test $ac_lo -le $ac_mid; then | |
5397 | ac_lo= ac_hi= | |
5398 | break | |
5399 | fi | |
5400 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5401 | fi | |
5402 | ||
5403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5404 | done | |
5405 | else | |
5406 | echo "$as_me: failed program was:" >&5 | |
5407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5408 | ||
5409 | cat >conftest.$ac_ext <<_ACEOF | |
5410 | /* confdefs.h. */ | |
5411 | _ACEOF | |
5412 | cat confdefs.h >>conftest.$ac_ext | |
5413 | cat >>conftest.$ac_ext <<_ACEOF | |
5414 | /* end confdefs.h. */ | |
5415 | $ac_includes_default | |
5416 | typedef char ac__type_sizeof_; | |
5417 | int | |
5418 | main () | |
5419 | { | |
5420 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5421 | test_array [0] = 0 | |
5422 | ||
5423 | ; | |
5424 | return 0; | |
5425 | } | |
5426 | _ACEOF | |
5427 | rm -f conftest.$ac_objext | |
5428 | if { (ac_try="$ac_compile" | |
5429 | case "(($ac_try" in | |
5430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5431 | *) ac_try_echo=$ac_try;; | |
5432 | esac | |
5433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5434 | (eval "$ac_compile") 2>conftest.er1 | |
5435 | ac_status=$? | |
5436 | grep -v '^ *+' conftest.er1 >conftest.err | |
5437 | rm -f conftest.er1 | |
5438 | cat conftest.err >&5 | |
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5440 | (exit $ac_status); } && { | |
5441 | test -z "$ac_c_werror_flag" || | |
5442 | test ! -s conftest.err | |
5443 | } && test -s conftest.$ac_objext; then | |
5444 | ac_hi=-1 ac_mid=-1 | |
5445 | while :; do | |
5446 | cat >conftest.$ac_ext <<_ACEOF | |
5447 | /* confdefs.h. */ | |
5448 | _ACEOF | |
5449 | cat confdefs.h >>conftest.$ac_ext | |
5450 | cat >>conftest.$ac_ext <<_ACEOF | |
5451 | /* end confdefs.h. */ | |
5452 | $ac_includes_default | |
5453 | typedef char ac__type_sizeof_; | |
5454 | int | |
5455 | main () | |
5456 | { | |
5457 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5458 | test_array [0] = 0 | |
5459 | ||
5460 | ; | |
5461 | return 0; | |
5462 | } | |
5463 | _ACEOF | |
5464 | rm -f conftest.$ac_objext | |
5465 | if { (ac_try="$ac_compile" | |
5466 | case "(($ac_try" in | |
5467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5468 | *) ac_try_echo=$ac_try;; | |
5469 | esac | |
5470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5471 | (eval "$ac_compile") 2>conftest.er1 | |
5472 | ac_status=$? | |
5473 | grep -v '^ *+' conftest.er1 >conftest.err | |
5474 | rm -f conftest.er1 | |
5475 | cat conftest.err >&5 | |
5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5477 | (exit $ac_status); } && { | |
5478 | test -z "$ac_c_werror_flag" || | |
5479 | test ! -s conftest.err | |
5480 | } && test -s conftest.$ac_objext; then | |
5481 | ac_lo=$ac_mid; break | |
5482 | else | |
5483 | echo "$as_me: failed program was:" >&5 | |
5484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5485 | ||
5486 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5487 | if test $ac_mid -le $ac_hi; then | |
5488 | ac_lo= ac_hi= | |
5489 | break | |
5490 | fi | |
5491 | ac_mid=`expr 2 '*' $ac_mid` | |
5492 | fi | |
5493 | ||
5494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5495 | done | |
5496 | else | |
5497 | echo "$as_me: failed program was:" >&5 | |
5498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5499 | ||
5500 | ac_lo= ac_hi= | |
5501 | fi | |
5502 | ||
5503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5504 | fi | |
5505 | ||
5506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5507 | # Binary search between lo and hi bounds. | |
5508 | while test "x$ac_lo" != "x$ac_hi"; do | |
5509 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5510 | cat >conftest.$ac_ext <<_ACEOF | |
5511 | /* confdefs.h. */ | |
5512 | _ACEOF | |
5513 | cat confdefs.h >>conftest.$ac_ext | |
5514 | cat >>conftest.$ac_ext <<_ACEOF | |
5515 | /* end confdefs.h. */ | |
5516 | $ac_includes_default | |
5517 | typedef char ac__type_sizeof_; | |
5518 | int | |
5519 | main () | |
5520 | { | |
5521 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5522 | test_array [0] = 0 | |
5523 | ||
5524 | ; | |
5525 | return 0; | |
5526 | } | |
5527 | _ACEOF | |
5528 | rm -f conftest.$ac_objext | |
5529 | if { (ac_try="$ac_compile" | |
5530 | case "(($ac_try" in | |
5531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5532 | *) ac_try_echo=$ac_try;; | |
5533 | esac | |
5534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5535 | (eval "$ac_compile") 2>conftest.er1 | |
5536 | ac_status=$? | |
5537 | grep -v '^ *+' conftest.er1 >conftest.err | |
5538 | rm -f conftest.er1 | |
5539 | cat conftest.err >&5 | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); } && { | |
5542 | test -z "$ac_c_werror_flag" || | |
5543 | test ! -s conftest.err | |
5544 | } && test -s conftest.$ac_objext; then | |
5545 | ac_hi=$ac_mid | |
5546 | else | |
5547 | echo "$as_me: failed program was:" >&5 | |
5548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5549 | ||
5550 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5551 | fi | |
5552 | ||
5553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5554 | done | |
5555 | case $ac_lo in | |
5556 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
5557 | '') if test "$ac_cv_type_char" = yes; then | |
5558 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
5559 | See \`config.log' for more details." >&5 | |
5560 | echo "$as_me: error: cannot compute sizeof (char) | |
5561 | See \`config.log' for more details." >&2;} | |
5562 | { (exit 77); exit 77; }; } | |
5563 | else | |
5564 | ac_cv_sizeof_char=0 | |
5565 | fi ;; | |
5566 | esac | |
5567 | else | |
5568 | cat >conftest.$ac_ext <<_ACEOF | |
5569 | /* confdefs.h. */ | |
5570 | _ACEOF | |
5571 | cat confdefs.h >>conftest.$ac_ext | |
5572 | cat >>conftest.$ac_ext <<_ACEOF | |
5573 | /* end confdefs.h. */ | |
5574 | $ac_includes_default | |
5575 | typedef char ac__type_sizeof_; | |
5576 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5577 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5578 | #include <stdio.h> | |
5579 | #include <stdlib.h> | |
5580 | int | |
5581 | main () | |
5582 | { | |
5583 | ||
5584 | FILE *f = fopen ("conftest.val", "w"); | |
5585 | if (! f) | |
5586 | return 1; | |
5587 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5588 | { | |
5589 | long int i = longval (); | |
5590 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5591 | return 1; | |
5592 | fprintf (f, "%ld\n", i); | |
5593 | } | |
5594 | else | |
5595 | { | |
5596 | unsigned long int i = ulongval (); | |
5597 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5598 | return 1; | |
5599 | fprintf (f, "%lu\n", i); | |
5600 | } | |
5601 | return ferror (f) || fclose (f) != 0; | |
5602 | ||
5603 | ; | |
5604 | return 0; | |
5605 | } | |
5606 | _ACEOF | |
5607 | rm -f conftest$ac_exeext | |
5608 | if { (ac_try="$ac_link" | |
5609 | case "(($ac_try" in | |
5610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5611 | *) ac_try_echo=$ac_try;; | |
5612 | esac | |
5613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5614 | (eval "$ac_link") 2>&5 | |
5615 | ac_status=$? | |
5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5618 | { (case "(($ac_try" in | |
5619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5620 | *) ac_try_echo=$ac_try;; | |
5621 | esac | |
5622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5623 | (eval "$ac_try") 2>&5 | |
5624 | ac_status=$? | |
5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5626 | (exit $ac_status); }; }; then | |
5627 | ac_cv_sizeof_char=`cat conftest.val` | |
5628 | else | |
5629 | echo "$as_me: program exited with status $ac_status" >&5 | |
5630 | echo "$as_me: failed program was:" >&5 | |
5631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5632 | ||
5633 | ( exit $ac_status ) | |
5634 | if test "$ac_cv_type_char" = yes; then | |
5635 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
5636 | See \`config.log' for more details." >&5 | |
5637 | echo "$as_me: error: cannot compute sizeof (char) | |
5638 | See \`config.log' for more details." >&2;} | |
5639 | { (exit 77); exit 77; }; } | |
5640 | else | |
5641 | ac_cv_sizeof_char=0 | |
5642 | fi | |
5643 | fi | |
5644 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5645 | fi | |
5646 | rm -f conftest.val | |
5647 | fi | |
5648 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
5649 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | |
5650 | ||
5651 | ||
5652 | ||
5653 | cat >>confdefs.h <<_ACEOF | |
5654 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
5655 | _ACEOF | |
5656 | ||
5657 | ||
5658 | { echo "$as_me:$LINENO: checking for int" >&5 | |
5659 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
5660 | if test "${ac_cv_type_int+set}" = set; then | |
5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5662 | else | |
5663 | cat >conftest.$ac_ext <<_ACEOF | |
5664 | /* confdefs.h. */ | |
5665 | _ACEOF | |
5666 | cat confdefs.h >>conftest.$ac_ext | |
5667 | cat >>conftest.$ac_ext <<_ACEOF | |
5668 | /* end confdefs.h. */ | |
5669 | $ac_includes_default | |
5670 | typedef int ac__type_new_; | |
5671 | int | |
5672 | main () | |
5673 | { | |
5674 | if ((ac__type_new_ *) 0) | |
5675 | return 0; | |
5676 | if (sizeof (ac__type_new_)) | |
5677 | return 0; | |
5678 | ; | |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
5682 | rm -f conftest.$ac_objext | |
5683 | if { (ac_try="$ac_compile" | |
5684 | case "(($ac_try" in | |
5685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5686 | *) ac_try_echo=$ac_try;; | |
5687 | esac | |
5688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5689 | (eval "$ac_compile") 2>conftest.er1 | |
5690 | ac_status=$? | |
5691 | grep -v '^ *+' conftest.er1 >conftest.err | |
5692 | rm -f conftest.er1 | |
5693 | cat conftest.err >&5 | |
5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5695 | (exit $ac_status); } && { | |
5696 | test -z "$ac_c_werror_flag" || | |
5697 | test ! -s conftest.err | |
5698 | } && test -s conftest.$ac_objext; then | |
5699 | ac_cv_type_int=yes | |
5700 | else | |
5701 | echo "$as_me: failed program was:" >&5 | |
5702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5703 | ||
5704 | ac_cv_type_int=no | |
5705 | fi | |
5706 | ||
5707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5708 | fi | |
5709 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
5710 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
5711 | ||
5712 | # The cast to long int works around a bug in the HP C Compiler | |
5713 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5714 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5715 | # This bug is HP SR number 8606223364. | |
5716 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5717 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
5718 | if test "${ac_cv_sizeof_int+set}" = set; then | |
5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5720 | else | |
5721 | if test "$cross_compiling" = yes; then | |
5722 | # Depending upon the size, compute the lo and hi bounds. | |
5723 | cat >conftest.$ac_ext <<_ACEOF | |
5724 | /* confdefs.h. */ | |
5725 | _ACEOF | |
5726 | cat confdefs.h >>conftest.$ac_ext | |
5727 | cat >>conftest.$ac_ext <<_ACEOF | |
5728 | /* end confdefs.h. */ | |
5729 | $ac_includes_default | |
5730 | typedef int ac__type_sizeof_; | |
5731 | int | |
5732 | main () | |
5733 | { | |
5734 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
5735 | test_array [0] = 0 | |
5736 | ||
5737 | ; | |
5738 | return 0; | |
5739 | } | |
5740 | _ACEOF | |
5741 | rm -f conftest.$ac_objext | |
5742 | if { (ac_try="$ac_compile" | |
5743 | case "(($ac_try" in | |
5744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5745 | *) ac_try_echo=$ac_try;; | |
5746 | esac | |
5747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5748 | (eval "$ac_compile") 2>conftest.er1 | |
5749 | ac_status=$? | |
5750 | grep -v '^ *+' conftest.er1 >conftest.err | |
5751 | rm -f conftest.er1 | |
5752 | cat conftest.err >&5 | |
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5754 | (exit $ac_status); } && { | |
5755 | test -z "$ac_c_werror_flag" || | |
5756 | test ! -s conftest.err | |
5757 | } && test -s conftest.$ac_objext; then | |
5758 | ac_lo=0 ac_mid=0 | |
5759 | while :; do | |
5760 | cat >conftest.$ac_ext <<_ACEOF | |
5761 | /* confdefs.h. */ | |
5762 | _ACEOF | |
5763 | cat confdefs.h >>conftest.$ac_ext | |
5764 | cat >>conftest.$ac_ext <<_ACEOF | |
5765 | /* end confdefs.h. */ | |
5766 | $ac_includes_default | |
5767 | typedef int ac__type_sizeof_; | |
5768 | int | |
5769 | main () | |
5770 | { | |
5771 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5772 | test_array [0] = 0 | |
5773 | ||
5774 | ; | |
5775 | return 0; | |
5776 | } | |
5777 | _ACEOF | |
5778 | rm -f conftest.$ac_objext | |
5779 | if { (ac_try="$ac_compile" | |
5780 | case "(($ac_try" in | |
5781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5782 | *) ac_try_echo=$ac_try;; | |
5783 | esac | |
5784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5785 | (eval "$ac_compile") 2>conftest.er1 | |
5786 | ac_status=$? | |
5787 | grep -v '^ *+' conftest.er1 >conftest.err | |
5788 | rm -f conftest.er1 | |
5789 | cat conftest.err >&5 | |
5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5791 | (exit $ac_status); } && { | |
5792 | test -z "$ac_c_werror_flag" || | |
5793 | test ! -s conftest.err | |
5794 | } && test -s conftest.$ac_objext; then | |
5795 | ac_hi=$ac_mid; break | |
5796 | else | |
5797 | echo "$as_me: failed program was:" >&5 | |
5798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5799 | ||
5800 | ac_lo=`expr $ac_mid + 1` | |
5801 | if test $ac_lo -le $ac_mid; then | |
5802 | ac_lo= ac_hi= | |
5803 | break | |
5804 | fi | |
5805 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5806 | fi | |
5807 | ||
5808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5809 | done | |
5810 | else | |
5811 | echo "$as_me: failed program was:" >&5 | |
5812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5813 | ||
5814 | cat >conftest.$ac_ext <<_ACEOF | |
5815 | /* confdefs.h. */ | |
5816 | _ACEOF | |
5817 | cat confdefs.h >>conftest.$ac_ext | |
5818 | cat >>conftest.$ac_ext <<_ACEOF | |
5819 | /* end confdefs.h. */ | |
5820 | $ac_includes_default | |
5821 | typedef int ac__type_sizeof_; | |
5822 | int | |
5823 | main () | |
5824 | { | |
5825 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5826 | test_array [0] = 0 | |
5827 | ||
5828 | ; | |
5829 | return 0; | |
5830 | } | |
5831 | _ACEOF | |
5832 | rm -f conftest.$ac_objext | |
5833 | if { (ac_try="$ac_compile" | |
5834 | case "(($ac_try" in | |
5835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5836 | *) ac_try_echo=$ac_try;; | |
5837 | esac | |
5838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5839 | (eval "$ac_compile") 2>conftest.er1 | |
5840 | ac_status=$? | |
5841 | grep -v '^ *+' conftest.er1 >conftest.err | |
5842 | rm -f conftest.er1 | |
5843 | cat conftest.err >&5 | |
5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5845 | (exit $ac_status); } && { | |
5846 | test -z "$ac_c_werror_flag" || | |
5847 | test ! -s conftest.err | |
5848 | } && test -s conftest.$ac_objext; then | |
5849 | ac_hi=-1 ac_mid=-1 | |
5850 | while :; do | |
5851 | cat >conftest.$ac_ext <<_ACEOF | |
5852 | /* confdefs.h. */ | |
5853 | _ACEOF | |
5854 | cat confdefs.h >>conftest.$ac_ext | |
5855 | cat >>conftest.$ac_ext <<_ACEOF | |
5856 | /* end confdefs.h. */ | |
5857 | $ac_includes_default | |
5858 | typedef int ac__type_sizeof_; | |
5859 | int | |
5860 | main () | |
5861 | { | |
5862 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5863 | test_array [0] = 0 | |
5864 | ||
5865 | ; | |
5866 | return 0; | |
5867 | } | |
5868 | _ACEOF | |
5869 | rm -f conftest.$ac_objext | |
5870 | if { (ac_try="$ac_compile" | |
5871 | case "(($ac_try" in | |
5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5873 | *) ac_try_echo=$ac_try;; | |
5874 | esac | |
5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5876 | (eval "$ac_compile") 2>conftest.er1 | |
5877 | ac_status=$? | |
5878 | grep -v '^ *+' conftest.er1 >conftest.err | |
5879 | rm -f conftest.er1 | |
5880 | cat conftest.err >&5 | |
5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5882 | (exit $ac_status); } && { | |
5883 | test -z "$ac_c_werror_flag" || | |
5884 | test ! -s conftest.err | |
5885 | } && test -s conftest.$ac_objext; then | |
5886 | ac_lo=$ac_mid; break | |
5887 | else | |
5888 | echo "$as_me: failed program was:" >&5 | |
5889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5890 | ||
5891 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5892 | if test $ac_mid -le $ac_hi; then | |
5893 | ac_lo= ac_hi= | |
5894 | break | |
5895 | fi | |
5896 | ac_mid=`expr 2 '*' $ac_mid` | |
5897 | fi | |
5898 | ||
5899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5900 | done | |
5901 | else | |
5902 | echo "$as_me: failed program was:" >&5 | |
5903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5904 | ||
5905 | ac_lo= ac_hi= | |
5906 | fi | |
5907 | ||
5908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5909 | fi | |
5910 | ||
5911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5912 | # Binary search between lo and hi bounds. | |
5913 | while test "x$ac_lo" != "x$ac_hi"; do | |
5914 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5915 | cat >conftest.$ac_ext <<_ACEOF | |
5916 | /* confdefs.h. */ | |
5917 | _ACEOF | |
5918 | cat confdefs.h >>conftest.$ac_ext | |
5919 | cat >>conftest.$ac_ext <<_ACEOF | |
5920 | /* end confdefs.h. */ | |
5921 | $ac_includes_default | |
5922 | typedef int ac__type_sizeof_; | |
5923 | int | |
5924 | main () | |
5925 | { | |
5926 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5927 | test_array [0] = 0 | |
5928 | ||
5929 | ; | |
5930 | return 0; | |
5931 | } | |
5932 | _ACEOF | |
5933 | rm -f conftest.$ac_objext | |
5934 | if { (ac_try="$ac_compile" | |
5935 | case "(($ac_try" in | |
5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5937 | *) ac_try_echo=$ac_try;; | |
5938 | esac | |
5939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5940 | (eval "$ac_compile") 2>conftest.er1 | |
5941 | ac_status=$? | |
5942 | grep -v '^ *+' conftest.er1 >conftest.err | |
5943 | rm -f conftest.er1 | |
5944 | cat conftest.err >&5 | |
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); } && { | |
5947 | test -z "$ac_c_werror_flag" || | |
5948 | test ! -s conftest.err | |
5949 | } && test -s conftest.$ac_objext; then | |
5950 | ac_hi=$ac_mid | |
5951 | else | |
5952 | echo "$as_me: failed program was:" >&5 | |
5953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5954 | ||
5955 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5956 | fi | |
5957 | ||
5958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5959 | done | |
5960 | case $ac_lo in | |
5961 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
5962 | '') if test "$ac_cv_type_int" = yes; then | |
5963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
5964 | See \`config.log' for more details." >&5 | |
5965 | echo "$as_me: error: cannot compute sizeof (int) | |
5966 | See \`config.log' for more details." >&2;} | |
5967 | { (exit 77); exit 77; }; } | |
5968 | else | |
5969 | ac_cv_sizeof_int=0 | |
5970 | fi ;; | |
5971 | esac | |
5972 | else | |
5973 | cat >conftest.$ac_ext <<_ACEOF | |
5974 | /* confdefs.h. */ | |
5975 | _ACEOF | |
5976 | cat confdefs.h >>conftest.$ac_ext | |
5977 | cat >>conftest.$ac_ext <<_ACEOF | |
5978 | /* end confdefs.h. */ | |
5979 | $ac_includes_default | |
5980 | typedef int ac__type_sizeof_; | |
5981 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5982 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5983 | #include <stdio.h> | |
5984 | #include <stdlib.h> | |
5985 | int | |
5986 | main () | |
5987 | { | |
5988 | ||
5989 | FILE *f = fopen ("conftest.val", "w"); | |
5990 | if (! f) | |
5991 | return 1; | |
5992 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5993 | { | |
5994 | long int i = longval (); | |
5995 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5996 | return 1; | |
5997 | fprintf (f, "%ld\n", i); | |
5998 | } | |
5999 | else | |
6000 | { | |
6001 | unsigned long int i = ulongval (); | |
6002 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6003 | return 1; | |
6004 | fprintf (f, "%lu\n", i); | |
6005 | } | |
6006 | return ferror (f) || fclose (f) != 0; | |
6007 | ||
6008 | ; | |
6009 | return 0; | |
6010 | } | |
6011 | _ACEOF | |
6012 | rm -f conftest$ac_exeext | |
6013 | if { (ac_try="$ac_link" | |
6014 | case "(($ac_try" in | |
6015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6016 | *) ac_try_echo=$ac_try;; | |
6017 | esac | |
6018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6019 | (eval "$ac_link") 2>&5 | |
6020 | ac_status=$? | |
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6023 | { (case "(($ac_try" in | |
6024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6025 | *) ac_try_echo=$ac_try;; | |
6026 | esac | |
6027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6028 | (eval "$ac_try") 2>&5 | |
6029 | ac_status=$? | |
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6031 | (exit $ac_status); }; }; then | |
6032 | ac_cv_sizeof_int=`cat conftest.val` | |
6033 | else | |
6034 | echo "$as_me: program exited with status $ac_status" >&5 | |
6035 | echo "$as_me: failed program was:" >&5 | |
6036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6037 | ||
6038 | ( exit $ac_status ) | |
6039 | if test "$ac_cv_type_int" = yes; then | |
6040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
6041 | See \`config.log' for more details." >&5 | |
6042 | echo "$as_me: error: cannot compute sizeof (int) | |
6043 | See \`config.log' for more details." >&2;} | |
6044 | { (exit 77); exit 77; }; } | |
6045 | else | |
6046 | ac_cv_sizeof_int=0 | |
6047 | fi | |
6048 | fi | |
6049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6050 | fi | |
6051 | rm -f conftest.val | |
6052 | fi | |
6053 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
6054 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6055 | ||
6056 | ||
6057 | ||
6058 | cat >>confdefs.h <<_ACEOF | |
6059 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6060 | _ACEOF | |
6061 | ||
6062 | ||
6063 | { echo "$as_me:$LINENO: checking for short" >&5 | |
6064 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
6065 | if test "${ac_cv_type_short+set}" = set; then | |
6066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6067 | else | |
6068 | cat >conftest.$ac_ext <<_ACEOF | |
6069 | /* confdefs.h. */ | |
6070 | _ACEOF | |
6071 | cat confdefs.h >>conftest.$ac_ext | |
6072 | cat >>conftest.$ac_ext <<_ACEOF | |
6073 | /* end confdefs.h. */ | |
6074 | $ac_includes_default | |
6075 | typedef short ac__type_new_; | |
6076 | int | |
6077 | main () | |
6078 | { | |
6079 | if ((ac__type_new_ *) 0) | |
6080 | return 0; | |
6081 | if (sizeof (ac__type_new_)) | |
6082 | return 0; | |
6083 | ; | |
6084 | return 0; | |
6085 | } | |
6086 | _ACEOF | |
6087 | rm -f conftest.$ac_objext | |
6088 | if { (ac_try="$ac_compile" | |
6089 | case "(($ac_try" in | |
6090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6091 | *) ac_try_echo=$ac_try;; | |
6092 | esac | |
6093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6094 | (eval "$ac_compile") 2>conftest.er1 | |
6095 | ac_status=$? | |
6096 | grep -v '^ *+' conftest.er1 >conftest.err | |
6097 | rm -f conftest.er1 | |
6098 | cat conftest.err >&5 | |
6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6100 | (exit $ac_status); } && { | |
6101 | test -z "$ac_c_werror_flag" || | |
6102 | test ! -s conftest.err | |
6103 | } && test -s conftest.$ac_objext; then | |
6104 | ac_cv_type_short=yes | |
6105 | else | |
6106 | echo "$as_me: failed program was:" >&5 | |
6107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6108 | ||
6109 | ac_cv_type_short=no | |
6110 | fi | |
6111 | ||
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6113 | fi | |
6114 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
6115 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
6116 | ||
6117 | # The cast to long int works around a bug in the HP C Compiler | |
6118 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6119 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6120 | # This bug is HP SR number 8606223364. | |
6121 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
6122 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
6123 | if test "${ac_cv_sizeof_short+set}" = set; then | |
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6125 | else | |
6126 | if test "$cross_compiling" = yes; then | |
6127 | # Depending upon the size, compute the lo and hi bounds. | |
6128 | cat >conftest.$ac_ext <<_ACEOF | |
6129 | /* confdefs.h. */ | |
6130 | _ACEOF | |
6131 | cat confdefs.h >>conftest.$ac_ext | |
6132 | cat >>conftest.$ac_ext <<_ACEOF | |
6133 | /* end confdefs.h. */ | |
6134 | $ac_includes_default | |
6135 | typedef short ac__type_sizeof_; | |
6136 | int | |
6137 | main () | |
6138 | { | |
6139 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
6140 | test_array [0] = 0 | |
6141 | ||
6142 | ; | |
6143 | return 0; | |
6144 | } | |
6145 | _ACEOF | |
6146 | rm -f conftest.$ac_objext | |
6147 | if { (ac_try="$ac_compile" | |
6148 | case "(($ac_try" in | |
6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6150 | *) ac_try_echo=$ac_try;; | |
6151 | esac | |
6152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6153 | (eval "$ac_compile") 2>conftest.er1 | |
6154 | ac_status=$? | |
6155 | grep -v '^ *+' conftest.er1 >conftest.err | |
6156 | rm -f conftest.er1 | |
6157 | cat conftest.err >&5 | |
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6159 | (exit $ac_status); } && { | |
6160 | test -z "$ac_c_werror_flag" || | |
6161 | test ! -s conftest.err | |
6162 | } && test -s conftest.$ac_objext; then | |
6163 | ac_lo=0 ac_mid=0 | |
6164 | while :; do | |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
6166 | /* confdefs.h. */ | |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
6171 | $ac_includes_default | |
6172 | typedef short ac__type_sizeof_; | |
6173 | int | |
6174 | main () | |
6175 | { | |
6176 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6177 | test_array [0] = 0 | |
6178 | ||
6179 | ; | |
6180 | return 0; | |
6181 | } | |
6182 | _ACEOF | |
6183 | rm -f conftest.$ac_objext | |
6184 | if { (ac_try="$ac_compile" | |
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_compile") 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_objext; then | |
6200 | ac_hi=$ac_mid; break | |
6201 | else | |
6202 | echo "$as_me: failed program was:" >&5 | |
6203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6204 | ||
6205 | ac_lo=`expr $ac_mid + 1` | |
6206 | if test $ac_lo -le $ac_mid; then | |
6207 | ac_lo= ac_hi= | |
6208 | break | |
6209 | fi | |
6210 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6211 | fi | |
6212 | ||
6213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6214 | done | |
6215 | else | |
6216 | echo "$as_me: failed program was:" >&5 | |
6217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6218 | ||
6219 | cat >conftest.$ac_ext <<_ACEOF | |
6220 | /* confdefs.h. */ | |
6221 | _ACEOF | |
6222 | cat confdefs.h >>conftest.$ac_ext | |
6223 | cat >>conftest.$ac_ext <<_ACEOF | |
6224 | /* end confdefs.h. */ | |
6225 | $ac_includes_default | |
6226 | typedef short ac__type_sizeof_; | |
6227 | int | |
6228 | main () | |
6229 | { | |
6230 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
6231 | test_array [0] = 0 | |
6232 | ||
6233 | ; | |
6234 | return 0; | |
6235 | } | |
6236 | _ACEOF | |
6237 | rm -f conftest.$ac_objext | |
6238 | if { (ac_try="$ac_compile" | |
6239 | case "(($ac_try" in | |
6240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6241 | *) ac_try_echo=$ac_try;; | |
6242 | esac | |
6243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6244 | (eval "$ac_compile") 2>conftest.er1 | |
6245 | ac_status=$? | |
6246 | grep -v '^ *+' conftest.er1 >conftest.err | |
6247 | rm -f conftest.er1 | |
6248 | cat conftest.err >&5 | |
6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6250 | (exit $ac_status); } && { | |
6251 | test -z "$ac_c_werror_flag" || | |
6252 | test ! -s conftest.err | |
6253 | } && test -s conftest.$ac_objext; then | |
6254 | ac_hi=-1 ac_mid=-1 | |
6255 | while :; do | |
6256 | cat >conftest.$ac_ext <<_ACEOF | |
6257 | /* confdefs.h. */ | |
6258 | _ACEOF | |
6259 | cat confdefs.h >>conftest.$ac_ext | |
6260 | cat >>conftest.$ac_ext <<_ACEOF | |
6261 | /* end confdefs.h. */ | |
6262 | $ac_includes_default | |
6263 | typedef short ac__type_sizeof_; | |
6264 | int | |
6265 | main () | |
6266 | { | |
6267 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
6268 | test_array [0] = 0 | |
6269 | ||
6270 | ; | |
6271 | return 0; | |
6272 | } | |
6273 | _ACEOF | |
6274 | rm -f conftest.$ac_objext | |
6275 | if { (ac_try="$ac_compile" | |
6276 | case "(($ac_try" in | |
6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6278 | *) ac_try_echo=$ac_try;; | |
6279 | esac | |
6280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6281 | (eval "$ac_compile") 2>conftest.er1 | |
6282 | ac_status=$? | |
6283 | grep -v '^ *+' conftest.er1 >conftest.err | |
6284 | rm -f conftest.er1 | |
6285 | cat conftest.err >&5 | |
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6287 | (exit $ac_status); } && { | |
6288 | test -z "$ac_c_werror_flag" || | |
6289 | test ! -s conftest.err | |
6290 | } && test -s conftest.$ac_objext; then | |
6291 | ac_lo=$ac_mid; break | |
6292 | else | |
6293 | echo "$as_me: failed program was:" >&5 | |
6294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6295 | ||
6296 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6297 | if test $ac_mid -le $ac_hi; then | |
6298 | ac_lo= ac_hi= | |
6299 | break | |
6300 | fi | |
6301 | ac_mid=`expr 2 '*' $ac_mid` | |
6302 | fi | |
6303 | ||
6304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6305 | done | |
6306 | else | |
6307 | echo "$as_me: failed program was:" >&5 | |
6308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6309 | ||
6310 | ac_lo= ac_hi= | |
6311 | fi | |
6312 | ||
6313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6314 | fi | |
6315 | ||
6316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6317 | # Binary search between lo and hi bounds. | |
6318 | while test "x$ac_lo" != "x$ac_hi"; do | |
6319 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6320 | cat >conftest.$ac_ext <<_ACEOF | |
6321 | /* confdefs.h. */ | |
6322 | _ACEOF | |
6323 | cat confdefs.h >>conftest.$ac_ext | |
6324 | cat >>conftest.$ac_ext <<_ACEOF | |
6325 | /* end confdefs.h. */ | |
6326 | $ac_includes_default | |
6327 | typedef short ac__type_sizeof_; | |
6328 | int | |
6329 | main () | |
6330 | { | |
6331 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6332 | test_array [0] = 0 | |
6333 | ||
6334 | ; | |
6335 | return 0; | |
6336 | } | |
6337 | _ACEOF | |
6338 | rm -f conftest.$ac_objext | |
6339 | if { (ac_try="$ac_compile" | |
6340 | case "(($ac_try" in | |
6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6342 | *) ac_try_echo=$ac_try;; | |
6343 | esac | |
6344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6345 | (eval "$ac_compile") 2>conftest.er1 | |
6346 | ac_status=$? | |
6347 | grep -v '^ *+' conftest.er1 >conftest.err | |
6348 | rm -f conftest.er1 | |
6349 | cat conftest.err >&5 | |
6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6351 | (exit $ac_status); } && { | |
6352 | test -z "$ac_c_werror_flag" || | |
6353 | test ! -s conftest.err | |
6354 | } && test -s conftest.$ac_objext; then | |
6355 | ac_hi=$ac_mid | |
6356 | else | |
6357 | echo "$as_me: failed program was:" >&5 | |
6358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6359 | ||
6360 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6361 | fi | |
6362 | ||
6363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6364 | done | |
6365 | case $ac_lo in | |
6366 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
6367 | '') if test "$ac_cv_type_short" = yes; then | |
6368 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
6369 | See \`config.log' for more details." >&5 | |
6370 | echo "$as_me: error: cannot compute sizeof (short) | |
6371 | See \`config.log' for more details." >&2;} | |
6372 | { (exit 77); exit 77; }; } | |
6373 | else | |
6374 | ac_cv_sizeof_short=0 | |
6375 | fi ;; | |
6376 | esac | |
6377 | else | |
6378 | cat >conftest.$ac_ext <<_ACEOF | |
6379 | /* confdefs.h. */ | |
6380 | _ACEOF | |
6381 | cat confdefs.h >>conftest.$ac_ext | |
6382 | cat >>conftest.$ac_ext <<_ACEOF | |
6383 | /* end confdefs.h. */ | |
6384 | $ac_includes_default | |
6385 | typedef short ac__type_sizeof_; | |
6386 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6387 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6388 | #include <stdio.h> | |
6389 | #include <stdlib.h> | |
6390 | int | |
6391 | main () | |
6392 | { | |
6393 | ||
6394 | FILE *f = fopen ("conftest.val", "w"); | |
6395 | if (! f) | |
6396 | return 1; | |
6397 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
6398 | { | |
6399 | long int i = longval (); | |
6400 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6401 | return 1; | |
6402 | fprintf (f, "%ld\n", i); | |
6403 | } | |
6404 | else | |
6405 | { | |
6406 | unsigned long int i = ulongval (); | |
6407 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6408 | return 1; | |
6409 | fprintf (f, "%lu\n", i); | |
6410 | } | |
6411 | return ferror (f) || fclose (f) != 0; | |
6412 | ||
6413 | ; | |
6414 | return 0; | |
6415 | } | |
6416 | _ACEOF | |
6417 | rm -f conftest$ac_exeext | |
6418 | if { (ac_try="$ac_link" | |
6419 | case "(($ac_try" in | |
6420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6421 | *) ac_try_echo=$ac_try;; | |
6422 | esac | |
6423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6424 | (eval "$ac_link") 2>&5 | |
6425 | ac_status=$? | |
6426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6428 | { (case "(($ac_try" in | |
6429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6430 | *) ac_try_echo=$ac_try;; | |
6431 | esac | |
6432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6433 | (eval "$ac_try") 2>&5 | |
6434 | ac_status=$? | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); }; }; then | |
6437 | ac_cv_sizeof_short=`cat conftest.val` | |
6438 | else | |
6439 | echo "$as_me: program exited with status $ac_status" >&5 | |
6440 | echo "$as_me: failed program was:" >&5 | |
6441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6442 | ||
6443 | ( exit $ac_status ) | |
6444 | if test "$ac_cv_type_short" = yes; then | |
6445 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
6446 | See \`config.log' for more details." >&5 | |
6447 | echo "$as_me: error: cannot compute sizeof (short) | |
6448 | See \`config.log' for more details." >&2;} | |
6449 | { (exit 77); exit 77; }; } | |
6450 | else | |
6451 | ac_cv_sizeof_short=0 | |
6452 | fi | |
6453 | fi | |
6454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6455 | fi | |
6456 | rm -f conftest.val | |
6457 | fi | |
6458 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
6459 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
6460 | ||
6461 | ||
6462 | ||
6463 | cat >>confdefs.h <<_ACEOF | |
6464 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
6465 | _ACEOF | |
6466 | ||
6467 | ||
6468 | { echo "$as_me:$LINENO: checking for long" >&5 | |
6469 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
6470 | if test "${ac_cv_type_long+set}" = set; then | |
6471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6472 | else | |
6473 | cat >conftest.$ac_ext <<_ACEOF | |
6474 | /* confdefs.h. */ | |
6475 | _ACEOF | |
6476 | cat confdefs.h >>conftest.$ac_ext | |
6477 | cat >>conftest.$ac_ext <<_ACEOF | |
6478 | /* end confdefs.h. */ | |
6479 | $ac_includes_default | |
6480 | typedef long ac__type_new_; | |
6481 | int | |
6482 | main () | |
6483 | { | |
6484 | if ((ac__type_new_ *) 0) | |
6485 | return 0; | |
6486 | if (sizeof (ac__type_new_)) | |
6487 | return 0; | |
6488 | ; | |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext | |
6493 | if { (ac_try="$ac_compile" | |
6494 | case "(($ac_try" in | |
6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6496 | *) ac_try_echo=$ac_try;; | |
6497 | esac | |
6498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6499 | (eval "$ac_compile") 2>conftest.er1 | |
6500 | ac_status=$? | |
6501 | grep -v '^ *+' conftest.er1 >conftest.err | |
6502 | rm -f conftest.er1 | |
6503 | cat conftest.err >&5 | |
6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6505 | (exit $ac_status); } && { | |
6506 | test -z "$ac_c_werror_flag" || | |
6507 | test ! -s conftest.err | |
6508 | } && test -s conftest.$ac_objext; then | |
6509 | ac_cv_type_long=yes | |
6510 | else | |
6511 | echo "$as_me: failed program was:" >&5 | |
6512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6513 | ||
6514 | ac_cv_type_long=no | |
6515 | fi | |
6516 | ||
6517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6518 | fi | |
6519 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
6520 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
6521 | ||
6522 | # The cast to long int works around a bug in the HP C Compiler | |
6523 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6524 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6525 | # This bug is HP SR number 8606223364. | |
6526 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6527 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
6528 | if test "${ac_cv_sizeof_long+set}" = set; then | |
6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6530 | else | |
6531 | if test "$cross_compiling" = yes; then | |
6532 | # Depending upon the size, compute the lo and hi bounds. | |
6533 | cat >conftest.$ac_ext <<_ACEOF | |
6534 | /* confdefs.h. */ | |
6535 | _ACEOF | |
6536 | cat confdefs.h >>conftest.$ac_ext | |
6537 | cat >>conftest.$ac_ext <<_ACEOF | |
6538 | /* end confdefs.h. */ | |
6539 | $ac_includes_default | |
6540 | typedef long ac__type_sizeof_; | |
6541 | int | |
6542 | main () | |
6543 | { | |
6544 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
6545 | test_array [0] = 0 | |
6546 | ||
6547 | ; | |
6548 | return 0; | |
6549 | } | |
6550 | _ACEOF | |
6551 | rm -f conftest.$ac_objext | |
6552 | if { (ac_try="$ac_compile" | |
6553 | case "(($ac_try" in | |
6554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6555 | *) ac_try_echo=$ac_try;; | |
6556 | esac | |
6557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6558 | (eval "$ac_compile") 2>conftest.er1 | |
6559 | ac_status=$? | |
6560 | grep -v '^ *+' conftest.er1 >conftest.err | |
6561 | rm -f conftest.er1 | |
6562 | cat conftest.err >&5 | |
6563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6564 | (exit $ac_status); } && { | |
6565 | test -z "$ac_c_werror_flag" || | |
6566 | test ! -s conftest.err | |
6567 | } && test -s conftest.$ac_objext; then | |
6568 | ac_lo=0 ac_mid=0 | |
6569 | while :; do | |
6570 | cat >conftest.$ac_ext <<_ACEOF | |
6571 | /* confdefs.h. */ | |
6572 | _ACEOF | |
6573 | cat confdefs.h >>conftest.$ac_ext | |
6574 | cat >>conftest.$ac_ext <<_ACEOF | |
6575 | /* end confdefs.h. */ | |
6576 | $ac_includes_default | |
6577 | typedef long ac__type_sizeof_; | |
6578 | int | |
6579 | main () | |
6580 | { | |
6581 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6582 | test_array [0] = 0 | |
6583 | ||
6584 | ; | |
6585 | return 0; | |
6586 | } | |
6587 | _ACEOF | |
6588 | rm -f conftest.$ac_objext | |
6589 | if { (ac_try="$ac_compile" | |
6590 | case "(($ac_try" in | |
6591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6592 | *) ac_try_echo=$ac_try;; | |
6593 | esac | |
6594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6595 | (eval "$ac_compile") 2>conftest.er1 | |
6596 | ac_status=$? | |
6597 | grep -v '^ *+' conftest.er1 >conftest.err | |
6598 | rm -f conftest.er1 | |
6599 | cat conftest.err >&5 | |
6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6601 | (exit $ac_status); } && { | |
6602 | test -z "$ac_c_werror_flag" || | |
6603 | test ! -s conftest.err | |
6604 | } && test -s conftest.$ac_objext; then | |
6605 | ac_hi=$ac_mid; break | |
6606 | else | |
6607 | echo "$as_me: failed program was:" >&5 | |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6609 | ||
6610 | ac_lo=`expr $ac_mid + 1` | |
6611 | if test $ac_lo -le $ac_mid; then | |
6612 | ac_lo= ac_hi= | |
6613 | break | |
6614 | fi | |
6615 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6616 | fi | |
6617 | ||
6618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6619 | done | |
6620 | else | |
6621 | echo "$as_me: failed program was:" >&5 | |
6622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6623 | ||
6624 | cat >conftest.$ac_ext <<_ACEOF | |
6625 | /* confdefs.h. */ | |
6626 | _ACEOF | |
6627 | cat confdefs.h >>conftest.$ac_ext | |
6628 | cat >>conftest.$ac_ext <<_ACEOF | |
6629 | /* end confdefs.h. */ | |
6630 | $ac_includes_default | |
6631 | typedef long ac__type_sizeof_; | |
6632 | int | |
6633 | main () | |
6634 | { | |
6635 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
6636 | test_array [0] = 0 | |
6637 | ||
6638 | ; | |
6639 | return 0; | |
6640 | } | |
6641 | _ACEOF | |
6642 | rm -f conftest.$ac_objext | |
6643 | if { (ac_try="$ac_compile" | |
6644 | case "(($ac_try" in | |
6645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6646 | *) ac_try_echo=$ac_try;; | |
6647 | esac | |
6648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6649 | (eval "$ac_compile") 2>conftest.er1 | |
6650 | ac_status=$? | |
6651 | grep -v '^ *+' conftest.er1 >conftest.err | |
6652 | rm -f conftest.er1 | |
6653 | cat conftest.err >&5 | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); } && { | |
6656 | test -z "$ac_c_werror_flag" || | |
6657 | test ! -s conftest.err | |
6658 | } && test -s conftest.$ac_objext; then | |
6659 | ac_hi=-1 ac_mid=-1 | |
6660 | while :; do | |
6661 | cat >conftest.$ac_ext <<_ACEOF | |
6662 | /* confdefs.h. */ | |
6663 | _ACEOF | |
6664 | cat confdefs.h >>conftest.$ac_ext | |
6665 | cat >>conftest.$ac_ext <<_ACEOF | |
6666 | /* end confdefs.h. */ | |
6667 | $ac_includes_default | |
6668 | typedef long ac__type_sizeof_; | |
6669 | int | |
6670 | main () | |
6671 | { | |
6672 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
6673 | test_array [0] = 0 | |
6674 | ||
6675 | ; | |
6676 | return 0; | |
6677 | } | |
6678 | _ACEOF | |
6679 | rm -f conftest.$ac_objext | |
6680 | if { (ac_try="$ac_compile" | |
6681 | case "(($ac_try" in | |
6682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6683 | *) ac_try_echo=$ac_try;; | |
6684 | esac | |
6685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6686 | (eval "$ac_compile") 2>conftest.er1 | |
6687 | ac_status=$? | |
6688 | grep -v '^ *+' conftest.er1 >conftest.err | |
6689 | rm -f conftest.er1 | |
6690 | cat conftest.err >&5 | |
6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6692 | (exit $ac_status); } && { | |
6693 | test -z "$ac_c_werror_flag" || | |
6694 | test ! -s conftest.err | |
6695 | } && test -s conftest.$ac_objext; then | |
6696 | ac_lo=$ac_mid; break | |
6697 | else | |
6698 | echo "$as_me: failed program was:" >&5 | |
6699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6700 | ||
6701 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6702 | if test $ac_mid -le $ac_hi; then | |
6703 | ac_lo= ac_hi= | |
6704 | break | |
6705 | fi | |
6706 | ac_mid=`expr 2 '*' $ac_mid` | |
6707 | fi | |
6708 | ||
6709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6710 | done | |
6711 | else | |
6712 | echo "$as_me: failed program was:" >&5 | |
6713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6714 | ||
6715 | ac_lo= ac_hi= | |
6716 | fi | |
6717 | ||
6718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6719 | fi | |
6720 | ||
6721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6722 | # Binary search between lo and hi bounds. | |
6723 | while test "x$ac_lo" != "x$ac_hi"; do | |
6724 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6725 | cat >conftest.$ac_ext <<_ACEOF | |
6726 | /* confdefs.h. */ | |
6727 | _ACEOF | |
6728 | cat confdefs.h >>conftest.$ac_ext | |
6729 | cat >>conftest.$ac_ext <<_ACEOF | |
6730 | /* end confdefs.h. */ | |
6731 | $ac_includes_default | |
6732 | typedef long ac__type_sizeof_; | |
6733 | int | |
6734 | main () | |
6735 | { | |
6736 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6737 | test_array [0] = 0 | |
6738 | ||
6739 | ; | |
6740 | return 0; | |
6741 | } | |
6742 | _ACEOF | |
6743 | rm -f conftest.$ac_objext | |
6744 | if { (ac_try="$ac_compile" | |
6745 | case "(($ac_try" in | |
6746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6747 | *) ac_try_echo=$ac_try;; | |
6748 | esac | |
6749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6750 | (eval "$ac_compile") 2>conftest.er1 | |
6751 | ac_status=$? | |
6752 | grep -v '^ *+' conftest.er1 >conftest.err | |
6753 | rm -f conftest.er1 | |
6754 | cat conftest.err >&5 | |
6755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6756 | (exit $ac_status); } && { | |
6757 | test -z "$ac_c_werror_flag" || | |
6758 | test ! -s conftest.err | |
6759 | } && test -s conftest.$ac_objext; then | |
6760 | ac_hi=$ac_mid | |
6761 | else | |
6762 | echo "$as_me: failed program was:" >&5 | |
6763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6764 | ||
6765 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6766 | fi | |
6767 | ||
6768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6769 | done | |
6770 | case $ac_lo in | |
6771 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
6772 | '') if test "$ac_cv_type_long" = yes; then | |
6773 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
6774 | See \`config.log' for more details." >&5 | |
6775 | echo "$as_me: error: cannot compute sizeof (long) | |
6776 | See \`config.log' for more details." >&2;} | |
6777 | { (exit 77); exit 77; }; } | |
6778 | else | |
6779 | ac_cv_sizeof_long=0 | |
6780 | fi ;; | |
6781 | esac | |
6782 | else | |
6783 | cat >conftest.$ac_ext <<_ACEOF | |
6784 | /* confdefs.h. */ | |
6785 | _ACEOF | |
6786 | cat confdefs.h >>conftest.$ac_ext | |
6787 | cat >>conftest.$ac_ext <<_ACEOF | |
6788 | /* end confdefs.h. */ | |
6789 | $ac_includes_default | |
6790 | typedef long ac__type_sizeof_; | |
6791 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6792 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6793 | #include <stdio.h> | |
6794 | #include <stdlib.h> | |
6795 | int | |
6796 | main () | |
6797 | { | |
6798 | ||
6799 | FILE *f = fopen ("conftest.val", "w"); | |
6800 | if (! f) | |
6801 | return 1; | |
6802 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
6803 | { | |
6804 | long int i = longval (); | |
6805 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6806 | return 1; | |
6807 | fprintf (f, "%ld\n", i); | |
6808 | } | |
6809 | else | |
6810 | { | |
6811 | unsigned long int i = ulongval (); | |
6812 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6813 | return 1; | |
6814 | fprintf (f, "%lu\n", i); | |
6815 | } | |
6816 | return ferror (f) || fclose (f) != 0; | |
6817 | ||
6818 | ; | |
6819 | return 0; | |
6820 | } | |
6821 | _ACEOF | |
6822 | rm -f conftest$ac_exeext | |
6823 | if { (ac_try="$ac_link" | |
6824 | case "(($ac_try" in | |
6825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6826 | *) ac_try_echo=$ac_try;; | |
6827 | esac | |
6828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6829 | (eval "$ac_link") 2>&5 | |
6830 | ac_status=$? | |
6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6833 | { (case "(($ac_try" in | |
6834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6835 | *) ac_try_echo=$ac_try;; | |
6836 | esac | |
6837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6838 | (eval "$ac_try") 2>&5 | |
6839 | ac_status=$? | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 | (exit $ac_status); }; }; then | |
6842 | ac_cv_sizeof_long=`cat conftest.val` | |
6843 | else | |
6844 | echo "$as_me: program exited with status $ac_status" >&5 | |
6845 | echo "$as_me: failed program was:" >&5 | |
6846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6847 | ||
6848 | ( exit $ac_status ) | |
6849 | if test "$ac_cv_type_long" = yes; then | |
6850 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
6851 | See \`config.log' for more details." >&5 | |
6852 | echo "$as_me: error: cannot compute sizeof (long) | |
6853 | See \`config.log' for more details." >&2;} | |
6854 | { (exit 77); exit 77; }; } | |
6855 | else | |
6856 | ac_cv_sizeof_long=0 | |
6857 | fi | |
6858 | fi | |
6859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6860 | fi | |
6861 | rm -f conftest.val | |
6862 | fi | |
6863 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
6864 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6865 | ||
6866 | ||
6867 | ||
6868 | cat >>confdefs.h <<_ACEOF | |
6869 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6870 | _ACEOF | |
6871 | ||
6872 | ||
6873 | ||
6874 | HAVE_C9X= | |
6875 | ||
6876 | fi | |
6877 | ||
6878 | { echo "$as_me:$LINENO: checking for missing socklen_t" >&5 | |
6879 | echo $ECHO_N "checking for missing socklen_t... $ECHO_C" >&6; } | |
6880 | cat >conftest.$ac_ext <<_ACEOF | |
6881 | /* confdefs.h. */ | |
6882 | _ACEOF | |
6883 | cat confdefs.h >>conftest.$ac_ext | |
6884 | cat >>conftest.$ac_ext <<_ACEOF | |
6885 | /* end confdefs.h. */ | |
6886 | #include <sys/socket.h> | |
6887 | ||
6888 | _ACEOF | |
6889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6890 | $EGREP "socklen_t" >/dev/null 2>&1; then | |
6891 | { echo "$as_me:$LINENO: result: no" >&5 | |
6892 | echo "${ECHO_T}no" >&6; } | |
6893 | else | |
6894 | ||
6895 | cat >>confdefs.h <<\_ACEOF | |
6896 | #define NEED_SOCKLEN_T_DEFINE 1 | |
6897 | _ACEOF | |
6898 | ||
6899 | NEED_SOCKLEN_T_DEFINE=yes | |
6900 | { echo "$as_me:$LINENO: result: missing." >&5 | |
6901 | echo "${ECHO_T}missing." >&6; } | |
6902 | fi | |
6903 | rm -f conftest* | |
6904 | ||
6905 | ||
6906 | ||
6907 | { echo "$as_me:$LINENO: checking for h_errno" >&5 | |
6908 | echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; } | |
6909 | cat >conftest.$ac_ext <<_ACEOF | |
6910 | /* confdefs.h. */ | |
6911 | _ACEOF | |
6912 | cat confdefs.h >>conftest.$ac_ext | |
6913 | cat >>conftest.$ac_ext <<_ACEOF | |
6914 | /* end confdefs.h. */ | |
6915 | #include <netdb.h> | |
6916 | ||
6917 | _ACEOF | |
6918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6919 | $EGREP "h_errno" >/dev/null 2>&1; then | |
6920 | { echo "$as_me:$LINENO: result: normal" >&5 | |
6921 | echo "${ECHO_T}normal" >&6; } | |
6922 | else | |
6923 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" | |
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 | #include <netdb.h> | |
6931 | ||
6932 | _ACEOF | |
6933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6934 | $EGREP "h_errno" >/dev/null 2>&1; then | |
6935 | { echo "$as_me:$LINENO: result: needs _XOPEN_SOURCE_EXTENDED" >&5 | |
6936 | echo "${ECHO_T}needs _XOPEN_SOURCE_EXTENDED" >&6; } | |
6937 | else | |
6938 | { { echo "$as_me:$LINENO: error: \"not found.\"" >&5 | |
6939 | echo "$as_me: error: \"not found.\"" >&2;} | |
6940 | { (exit 1); exit 1; }; } | |
6941 | fi | |
6942 | rm -f conftest* | |
6943 | ||
6944 | ||
6945 | fi | |
6946 | rm -f conftest* | |
6947 | ||
6948 | ||
6949 | # Extract the first word of "debiandoc2html", so it can be a program name with args. | |
6950 | set dummy debiandoc2html; ac_word=$2 | |
6951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6953 | if test "${ac_cv_path_DEBIANDOC_HTML+set}" = set; then | |
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6955 | else | |
6956 | case $DEBIANDOC_HTML in | |
6957 | [\\/]* | ?:[\\/]*) | |
6958 | ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path. | |
6959 | ;; | |
6960 | *) | |
6961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6962 | for as_dir in $PATH | |
6963 | do | |
6964 | IFS=$as_save_IFS | |
6965 | test -z "$as_dir" && as_dir=. | |
6966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6968 | ac_cv_path_DEBIANDOC_HTML="$as_dir/$ac_word$ac_exec_ext" | |
6969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6970 | break 2 | |
6971 | fi | |
6972 | done | |
6973 | done | |
6974 | IFS=$as_save_IFS | |
6975 | ||
6976 | ;; | |
6977 | esac | |
6978 | fi | |
6979 | DEBIANDOC_HTML=$ac_cv_path_DEBIANDOC_HTML | |
6980 | if test -n "$DEBIANDOC_HTML"; then | |
6981 | { echo "$as_me:$LINENO: result: $DEBIANDOC_HTML" >&5 | |
6982 | echo "${ECHO_T}$DEBIANDOC_HTML" >&6; } | |
6983 | else | |
6984 | { echo "$as_me:$LINENO: result: no" >&5 | |
6985 | echo "${ECHO_T}no" >&6; } | |
6986 | fi | |
6987 | ||
6988 | ||
6989 | # Extract the first word of "debiandoc2text", so it can be a program name with args. | |
6990 | set dummy debiandoc2text; ac_word=$2 | |
6991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6993 | if test "${ac_cv_path_DEBIANDOC_TEXT+set}" = set; then | |
6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6995 | else | |
6996 | case $DEBIANDOC_TEXT in | |
6997 | [\\/]* | ?:[\\/]*) | |
6998 | ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path. | |
6999 | ;; | |
7000 | *) | |
7001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7002 | for as_dir in $PATH | |
7003 | do | |
7004 | IFS=$as_save_IFS | |
7005 | test -z "$as_dir" && as_dir=. | |
7006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7008 | ac_cv_path_DEBIANDOC_TEXT="$as_dir/$ac_word$ac_exec_ext" | |
7009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7010 | break 2 | |
7011 | fi | |
7012 | done | |
7013 | done | |
7014 | IFS=$as_save_IFS | |
7015 | ||
7016 | ;; | |
7017 | esac | |
7018 | fi | |
7019 | DEBIANDOC_TEXT=$ac_cv_path_DEBIANDOC_TEXT | |
7020 | if test -n "$DEBIANDOC_TEXT"; then | |
7021 | { echo "$as_me:$LINENO: result: $DEBIANDOC_TEXT" >&5 | |
7022 | echo "${ECHO_T}$DEBIANDOC_TEXT" >&6; } | |
7023 | else | |
7024 | { echo "$as_me:$LINENO: result: no" >&5 | |
7025 | echo "${ECHO_T}no" >&6; } | |
7026 | fi | |
7027 | ||
7028 | ||
7029 | ||
00ec24d0 JF |
7030 | # Extract the first word of "doxygen", so it can be a program name with args. |
7031 | set dummy doxygen; ac_word=$2 | |
7032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7034 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | |
7035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7036 | else | |
7037 | case $DOXYGEN in | |
7038 | [\\/]* | ?:[\\/]*) | |
7039 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
7040 | ;; | |
7041 | *) | |
7042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7043 | for as_dir in $PATH | |
7044 | do | |
7045 | IFS=$as_save_IFS | |
7046 | test -z "$as_dir" && as_dir=. | |
7047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7049 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | |
7050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7051 | break 2 | |
7052 | fi | |
7053 | done | |
7054 | done | |
7055 | IFS=$as_save_IFS | |
7056 | ||
7057 | ;; | |
7058 | esac | |
7059 | fi | |
7060 | DOXYGEN=$ac_cv_path_DOXYGEN | |
7061 | if test -n "$DOXYGEN"; then | |
7062 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | |
7063 | echo "${ECHO_T}$DOXYGEN" >&6; } | |
7064 | else | |
7065 | { echo "$as_me:$LINENO: result: no" >&5 | |
7066 | echo "${ECHO_T}no" >&6; } | |
7067 | fi | |
7068 | ||
7069 | ||
7070 | ||
da6ee469 JF |
7071 | # Extract the first word of "docbook2man", so it can be a program name with args. |
7072 | set dummy docbook2man; ac_word=$2 | |
7073 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7075 | if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then | |
7076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7077 | else | |
7078 | case $DOCBOOK2MAN in | |
7079 | [\\/]* | ?:[\\/]*) | |
7080 | ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path. | |
7081 | ;; | |
7082 | *) | |
7083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7084 | for as_dir in $PATH | |
7085 | do | |
7086 | IFS=$as_save_IFS | |
7087 | test -z "$as_dir" && as_dir=. | |
7088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7090 | ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext" | |
7091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7092 | break 2 | |
7093 | fi | |
7094 | done | |
7095 | done | |
7096 | IFS=$as_save_IFS | |
7097 | ||
7098 | ;; | |
7099 | esac | |
7100 | fi | |
7101 | DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN | |
7102 | if test -n "$DOCBOOK2MAN"; then | |
7103 | { echo "$as_me:$LINENO: result: $DOCBOOK2MAN" >&5 | |
7104 | echo "${ECHO_T}$DOCBOOK2MAN" >&6; } | |
7105 | else | |
7106 | { echo "$as_me:$LINENO: result: no" >&5 | |
7107 | echo "${ECHO_T}no" >&6; } | |
7108 | fi | |
7109 | ||
7110 | ||
7111 | ||
7112 | # Extract the first word of "xmlto", so it can be a program name with args. | |
7113 | set dummy xmlto; ac_word=$2 | |
7114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7116 | if test "${ac_cv_path_XMLTO+set}" = set; then | |
7117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7118 | else | |
7119 | case $XMLTO in | |
7120 | [\\/]* | ?:[\\/]*) | |
7121 | ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. | |
7122 | ;; | |
7123 | *) | |
7124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7125 | for as_dir in $PATH | |
7126 | do | |
7127 | IFS=$as_save_IFS | |
7128 | test -z "$as_dir" && as_dir=. | |
7129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7131 | ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" | |
7132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7133 | break 2 | |
7134 | fi | |
7135 | done | |
7136 | done | |
7137 | IFS=$as_save_IFS | |
7138 | ||
7139 | ;; | |
7140 | esac | |
7141 | fi | |
7142 | XMLTO=$ac_cv_path_XMLTO | |
7143 | if test -n "$XMLTO"; then | |
7144 | { echo "$as_me:$LINENO: result: $XMLTO" >&5 | |
7145 | echo "${ECHO_T}$XMLTO" >&6; } | |
7146 | else | |
7147 | { echo "$as_me:$LINENO: result: no" >&5 | |
7148 | echo "${ECHO_T}no" >&6; } | |
7149 | fi | |
7150 | ||
7151 | ||
7152 | ||
00ec24d0 JF |
7153 | # Extract the first word of "dot", so it can be a program name with args. |
7154 | set dummy dot; ac_word=$2 | |
7155 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7157 | if test "${ac_cv_prog_HAVE_DOT+set}" = set; then | |
7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7159 | else | |
7160 | if test -n "$HAVE_DOT"; then | |
7161 | ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test. | |
7162 | else | |
7163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7164 | for as_dir in $PATH | |
7165 | do | |
7166 | IFS=$as_save_IFS | |
7167 | test -z "$as_dir" && as_dir=. | |
7168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7170 | ac_cv_prog_HAVE_DOT="YES" | |
7171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7172 | break 2 | |
7173 | fi | |
7174 | done | |
7175 | done | |
7176 | IFS=$as_save_IFS | |
7177 | ||
7178 | test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO" | |
7179 | fi | |
7180 | fi | |
7181 | HAVE_DOT=$ac_cv_prog_HAVE_DOT | |
7182 | if test -n "$HAVE_DOT"; then | |
7183 | { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5 | |
7184 | echo "${ECHO_T}$HAVE_DOT" >&6; } | |
7185 | else | |
7186 | { echo "$as_me:$LINENO: result: no" >&5 | |
7187 | echo "${ECHO_T}no" >&6; } | |
7188 | fi | |
7189 | ||
7190 | ||
7191 | # Extract the first word of "dot", so it can be a program name with args. | |
7192 | set dummy dot; ac_word=$2 | |
7193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7195 | if test "${ac_cv_path_DOT+set}" = set; then | |
7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7197 | else | |
7198 | case $DOT in | |
7199 | [\\/]* | ?:[\\/]*) | |
7200 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | |
7201 | ;; | |
7202 | *) | |
7203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7204 | for as_dir in $PATH | |
7205 | do | |
7206 | IFS=$as_save_IFS | |
7207 | test -z "$as_dir" && as_dir=. | |
7208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7210 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | |
7211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7212 | break 2 | |
7213 | fi | |
7214 | done | |
7215 | done | |
7216 | IFS=$as_save_IFS | |
7217 | ||
7218 | ;; | |
7219 | esac | |
7220 | fi | |
7221 | DOT=$ac_cv_path_DOT | |
7222 | if test -n "$DOT"; then | |
7223 | { echo "$as_me:$LINENO: result: $DOT" >&5 | |
7224 | echo "${ECHO_T}$DOT" >&6; } | |
7225 | else | |
7226 | { echo "$as_me:$LINENO: result: no" >&5 | |
7227 | echo "${ECHO_T}no" >&6; } | |
7228 | fi | |
7229 | ||
7230 | ||
7231 | DOTDIR=$(dirname $DOT) | |
7232 | ||
7233 | ||
da6ee469 JF |
7234 | |
7235 | ||
7236 | # Check whether --with-getconf was given. | |
7237 | if test "${with_getconf+set}" = set; then | |
7238 | withval=$with_getconf; if test "$withval" = "yes"; then | |
7239 | # Extract the first word of "getconf", so it can be a program name with args. | |
7240 | set dummy getconf; ac_word=$2 | |
7241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7243 | if test "${ac_cv_path_GETCONF+set}" = set; then | |
7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7245 | else | |
7246 | case $GETCONF in | |
7247 | [\\/]* | ?:[\\/]*) | |
7248 | ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. | |
7249 | ;; | |
7250 | *) | |
7251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7252 | for as_dir in $PATH | |
7253 | do | |
7254 | IFS=$as_save_IFS | |
7255 | test -z "$as_dir" && as_dir=. | |
7256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7258 | ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" | |
7259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7260 | break 2 | |
7261 | fi | |
7262 | done | |
7263 | done | |
7264 | IFS=$as_save_IFS | |
7265 | ||
7266 | ;; | |
7267 | esac | |
7268 | fi | |
7269 | GETCONF=$ac_cv_path_GETCONF | |
7270 | if test -n "$GETCONF"; then | |
7271 | { echo "$as_me:$LINENO: result: $GETCONF" >&5 | |
7272 | echo "${ECHO_T}$GETCONF" >&6; } | |
7273 | else | |
7274 | { echo "$as_me:$LINENO: result: no" >&5 | |
7275 | echo "${ECHO_T}no" >&6; } | |
7276 | fi | |
7277 | ||
7278 | ||
7279 | elif test ! "$withval" = "no";then | |
7280 | { echo "$as_me:$LINENO: checking getconf" >&5 | |
7281 | echo $ECHO_N "checking getconf... $ECHO_C" >&6; } | |
7282 | { echo "$as_me:$LINENO: result: $withval" >&5 | |
7283 | echo "${ECHO_T}$withval" >&6; } | |
7284 | GETCONF=$withval | |
7285 | fi | |
7286 | else | |
7287 | # Extract the first word of "getconf", so it can be a program name with args. | |
7288 | set dummy getconf; ac_word=$2 | |
7289 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7291 | if test "${ac_cv_path_GETCONF+set}" = set; then | |
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7293 | else | |
7294 | case $GETCONF in | |
7295 | [\\/]* | ?:[\\/]*) | |
7296 | ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. | |
7297 | ;; | |
7298 | *) | |
7299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7300 | for as_dir in $PATH | |
7301 | do | |
7302 | IFS=$as_save_IFS | |
7303 | test -z "$as_dir" && as_dir=. | |
7304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7306 | ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" | |
7307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7308 | break 2 | |
7309 | fi | |
7310 | done | |
7311 | done | |
7312 | IFS=$as_save_IFS | |
7313 | ||
7314 | ;; | |
7315 | esac | |
7316 | fi | |
7317 | GETCONF=$ac_cv_path_GETCONF | |
7318 | if test -n "$GETCONF"; then | |
7319 | { echo "$as_me:$LINENO: result: $GETCONF" >&5 | |
7320 | echo "${ECHO_T}$GETCONF" >&6; } | |
7321 | else | |
7322 | { echo "$as_me:$LINENO: result: no" >&5 | |
7323 | echo "${ECHO_T}no" >&6; } | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | ||
7328 | fi | |
7329 | ||
7330 | ||
7331 | ||
7332 | { echo "$as_me:$LINENO: checking number of cpus" >&5 | |
7333 | echo $ECHO_N "checking number of cpus... $ECHO_C" >&6; } | |
7334 | ||
7335 | # Check whether --with-cpus was given. | |
7336 | if test "${with_cpus+set}" = set; then | |
7337 | withval=$with_cpus; | |
7338 | if test "$withval" = "yes"; then | |
7339 | ||
7340 | if test ! -z "$GETCONF";then | |
7341 | old_args="$@" | |
7342 | set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN | |
7343 | while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do | |
7344 | eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null` | |
7345 | shift | |
7346 | done | |
7347 | fi | |
7348 | if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then | |
7349 | eval NUM_CPUS="1" | |
7350 | fi | |
7351 | ||
7352 | elif test ! "$withval" = "no";then | |
7353 | NUM_CPUS=$withval | |
7354 | elif test "$withval" = "no";then | |
7355 | NUM_CPUS=1 | |
7356 | fi | |
7357 | else | |
7358 | ||
7359 | if test ! -z "$GETCONF";then | |
7360 | old_args="$@" | |
7361 | set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN | |
7362 | while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do | |
7363 | eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null` | |
7364 | shift | |
7365 | done | |
7366 | fi | |
7367 | if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then | |
7368 | eval NUM_CPUS="1" | |
7369 | fi | |
7370 | ||
7371 | ||
7372 | fi | |
7373 | ||
7374 | ah_NUM_CPUS_msg="$NUM_CPUS" | |
7375 | if test "$NUM_CPUS" = "0"; then | |
7376 | # broken getconf, time to bitch. | |
7377 | ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?" | |
7378 | NUM_CPUS=1 | |
7379 | fi | |
7380 | if test $NUM_CPUS = 1 ;then | |
7381 | default_PROC_MULTIPLY=1 | |
7382 | else | |
7383 | default_PROC_MULTIPLY=2 | |
7384 | fi | |
7385 | { echo "$as_me:$LINENO: result: $ah_NUM_CPUS_msg" >&5 | |
7386 | echo "${ECHO_T}$ah_NUM_CPUS_msg" >&6; } | |
7387 | ||
7388 | ||
7389 | ||
7390 | { echo "$as_me:$LINENO: checking processor multiplier" >&5 | |
7391 | echo $ECHO_N "checking processor multiplier... $ECHO_C" >&6; } | |
7392 | ||
7393 | # Check whether --with-proc-multiply was given. | |
7394 | if test "${with_proc_multiply+set}" = set; then | |
7395 | withval=$with_proc_multiply; if test "$withval" = "yes"; then | |
7396 | PROC_MULTIPLY=$default_PROC_MULTIPLY | |
7397 | elif test ! "$withval" = "no";then | |
7398 | PROC_MULTIPLY=$withval | |
7399 | fi | |
7400 | else | |
7401 | PROC_MULTIPLY=$default_PROC_MULTIPLY | |
7402 | ||
7403 | fi | |
7404 | ||
7405 | { echo "$as_me:$LINENO: result: $PROC_MULTIPLY" >&5 | |
7406 | echo "${ECHO_T}$PROC_MULTIPLY" >&6; } | |
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | { echo "$as_me:$LINENO: checking number of processes to run during make" >&5 | |
7412 | echo $ECHO_N "checking number of processes to run during make... $ECHO_C" >&6; } | |
7413 | ||
7414 | # Check whether --with-procs was given. | |
7415 | if test "${with_procs+set}" = set; then | |
7416 | withval=$with_procs; if test "$withval" = "yes"; then | |
7417 | NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY` | |
7418 | elif test ! "$withval" = "no";then | |
7419 | NUM_PROCS=$withval | |
7420 | fi | |
7421 | else | |
7422 | NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY` | |
7423 | ||
7424 | fi | |
7425 | ||
7426 | { echo "$as_me:$LINENO: result: $NUM_PROCS" >&5 | |
7427 | echo "${ECHO_T}$NUM_PROCS" >&6; } | |
7428 | ||
7429 | ||
7430 | { echo "$as_me:$LINENO: checking glibc version" >&5 | |
7431 | echo $ECHO_N "checking glibc version... $ECHO_C" >&6; } | |
7432 | if test "${ac_cv_glibc_ver+set}" = set; then | |
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7434 | else | |
7435 | dummy=if$$ | |
7436 | cat <<_GLIBC_>$dummy.c | |
7437 | #include <features.h> | |
7438 | #include <stdio.h> | |
7439 | #include <stdlib.h> | |
7440 | int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); } | |
7441 | _GLIBC_ | |
7442 | ${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1 | |
7443 | if test "$?" = 0; then | |
7444 | GLIBC_VER=`./$dummy` | |
7445 | { echo "$as_me:$LINENO: result: $GLIBC_VER" >&5 | |
7446 | echo "${ECHO_T}$GLIBC_VER" >&6; } | |
7447 | ac_cv_glibc_ver=$GLIBC_VER | |
7448 | else | |
7449 | { echo "$as_me:$LINENO: WARNING: cannot determine GNU C library minor version number" >&5 | |
7450 | echo "$as_me: WARNING: cannot determine GNU C library minor version number" >&2;} | |
7451 | fi | |
7452 | rm -f $dummy $dummy.c | |
7453 | ||
7454 | fi | |
7455 | ||
7456 | GLIBC_VER="-$ac_cv_glibc_ver" | |
7457 | ||
7458 | ||
7459 | { echo "$as_me:$LINENO: checking libstdc++ version" >&5 | |
7460 | echo $ECHO_N "checking libstdc++ version... $ECHO_C" >&6; } | |
7461 | dummy=if$$ | |
7462 | cat <<_LIBSTDCPP_>$dummy.cc | |
7463 | #include <features.h> | |
7464 | #include <stdio.h> | |
7465 | #include <stdlib.h> | |
7466 | int main(int argc, char **argv) { exit(0); } | |
7467 | _LIBSTDCPP_ | |
7468 | ${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1 | |
7469 | ||
7470 | if test "$?" = 0; then | |
7471 | soname=`objdump -p ./$dummy |grep NEEDED|grep libstd` | |
7472 | LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'` | |
7473 | fi | |
7474 | rm -f $dummy $dummy.cc | |
7475 | ||
7476 | if test -z "$LIBSTDCPP_VER"; then | |
7477 | { echo "$as_me:$LINENO: WARNING: cannot determine standard C++ library version number" >&5 | |
7478 | echo "$as_me: WARNING: cannot determine standard C++ library version number" >&2;} | |
7479 | else | |
7480 | { echo "$as_me:$LINENO: result: $LIBSTDCPP_VER" >&5 | |
7481 | echo "${ECHO_T}$LIBSTDCPP_VER" >&6; } | |
7482 | LIBSTDCPP_VER="-$LIBSTDCPP_VER" | |
7483 | fi | |
7484 | ||
7485 | ||
7486 | ||
7487 | { echo "$as_me:$LINENO: checking if $CXX -MD works" >&5 | |
7488 | echo $ECHO_N "checking if $CXX -MD works... $ECHO_C" >&6; } | |
7489 | touch gcc3dep.cc | |
7490 | ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc | |
7491 | rm -f gcc3dep.cc gcc3dep_test.o | |
7492 | if test -e gcc3dep.d; then | |
7493 | rm -f gcc3dep.d | |
7494 | GCC_MD=input | |
7495 | GCC3DEP= | |
7496 | elif test -e gcc3dep_test.d; then | |
7497 | rm -f gcc3dep_test.d | |
7498 | GCC_MD=output | |
7499 | GCC3DEP=yes | |
7500 | else | |
7501 | { { echo "$as_me:$LINENO: error: no" >&5 | |
7502 | echo "$as_me: error: no" >&2;} | |
7503 | { (exit 1); exit 1; }; } | |
7504 | fi | |
7505 | { echo "$as_me:$LINENO: result: yes, for $GCC_MD" >&5 | |
7506 | echo "${ECHO_T}yes, for $GCC_MD" >&6; } | |
7507 | ||
7508 | ||
7509 | ||
00ec24d0 | 7510 | ALL_LINGUAS="bg bs ca cs cy da de dz el en_GB es eu fi fr gl hu it ja ko ku nb nl nn pl pt_BR pt ro ru sk sl sv th tl uk vi zn_CN zh_TW" |
da6ee469 JF |
7511 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7512 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
7513 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7514 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
7515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7516 | else | |
7517 | cat >conftest.make <<\_ACEOF | |
7518 | SHELL = /bin/sh | |
7519 | all: | |
7520 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
7521 | _ACEOF | |
7522 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7523 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
7524 | *@@@%%%=?*=@@@%%%*) | |
7525 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
7526 | *) | |
7527 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
7528 | esac | |
7529 | rm -f conftest.make | |
7530 | fi | |
7531 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7532 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7533 | echo "${ECHO_T}yes" >&6; } | |
7534 | SET_MAKE= | |
7535 | else | |
7536 | { echo "$as_me:$LINENO: result: no" >&5 | |
7537 | echo "${ECHO_T}no" >&6; } | |
7538 | SET_MAKE="MAKE=${MAKE-make}" | |
7539 | fi | |
7540 | ||
7541 | # Find a good install program. We prefer a C program (faster), | |
7542 | # so one script is as good as another. But avoid the broken or | |
7543 | # incompatible versions: | |
7544 | # SysV /etc/install, /usr/sbin/install | |
7545 | # SunOS /usr/etc/install | |
7546 | # IRIX /sbin/install | |
7547 | # AIX /bin/install | |
7548 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7549 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7550 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7551 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7552 | # OS/2's system install, which has a completely different semantic | |
7553 | # ./install, which can be erroneously created by make from ./install.sh. | |
7554 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
7555 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
7556 | if test -z "$INSTALL"; then | |
7557 | if test "${ac_cv_path_install+set}" = set; then | |
7558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7559 | else | |
7560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7561 | for as_dir in $PATH | |
7562 | do | |
7563 | IFS=$as_save_IFS | |
7564 | test -z "$as_dir" && as_dir=. | |
7565 | # Account for people who put trailing slashes in PATH elements. | |
7566 | case $as_dir/ in | |
7567 | ./ | .// | /cC/* | \ | |
7568 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7569 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7570 | /usr/ucb/* ) ;; | |
7571 | *) | |
7572 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
7573 | # Don't use installbsd from OSF since it installs stuff as root | |
7574 | # by default. | |
7575 | for ac_prog in ginstall scoinst install; do | |
7576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7577 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
7578 | if test $ac_prog = install && | |
7579 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7580 | # AIX install. It has an incompatible calling convention. | |
7581 | : | |
7582 | elif test $ac_prog = install && | |
7583 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7584 | # program-specific install script used by HP pwplus--don't use. | |
7585 | : | |
7586 | else | |
7587 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7588 | break 3 | |
7589 | fi | |
7590 | fi | |
7591 | done | |
7592 | done | |
7593 | ;; | |
7594 | esac | |
7595 | done | |
7596 | IFS=$as_save_IFS | |
7597 | ||
7598 | ||
7599 | fi | |
7600 | if test "${ac_cv_path_install+set}" = set; then | |
7601 | INSTALL=$ac_cv_path_install | |
7602 | else | |
7603 | # As a last resort, use the slow shell script. Don't cache a | |
7604 | # value for INSTALL within a source directory, because that will | |
7605 | # break other packages using the cache if that directory is | |
7606 | # removed, or if the value is a relative name. | |
7607 | INSTALL=$ac_install_sh | |
7608 | fi | |
7609 | fi | |
7610 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
7611 | echo "${ECHO_T}$INSTALL" >&6; } | |
7612 | ||
7613 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7614 | # It thinks the first close brace ends the variable substitution. | |
7615 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7616 | ||
7617 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7618 | ||
7619 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7620 | ||
00ec24d0 JF |
7621 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
7622 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
7623 | if test -z "$MKDIR_P"; then | |
7624 | if test "${ac_cv_path_mkdir+set}" = set; then | |
7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7626 | else | |
7627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7628 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
7629 | do | |
7630 | IFS=$as_save_IFS | |
7631 | test -z "$as_dir" && as_dir=. | |
7632 | for ac_prog in mkdir gmkdir; do | |
7633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7634 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
7635 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
7636 | 'mkdir (GNU coreutils) '* | \ | |
7637 | 'mkdir (coreutils) '* | \ | |
7638 | 'mkdir (fileutils) '4.1*) | |
7639 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
7640 | break 3;; | |
7641 | esac | |
7642 | done | |
7643 | done | |
7644 | done | |
7645 | IFS=$as_save_IFS | |
7646 | ||
7647 | fi | |
7648 | ||
7649 | if test "${ac_cv_path_mkdir+set}" = set; then | |
7650 | MKDIR_P="$ac_cv_path_mkdir -p" | |
da6ee469 | 7651 | else |
00ec24d0 JF |
7652 | # As a last resort, use the slow shell script. Don't cache a |
7653 | # value for MKDIR_P within a source directory, because that will | |
7654 | # break other packages using the cache if that directory is | |
7655 | # removed, or if the value is a relative name. | |
7656 | test -d ./--version && rmdir ./--version | |
7657 | MKDIR_P="$ac_install_sh -d" | |
da6ee469 JF |
7658 | fi |
7659 | fi | |
00ec24d0 JF |
7660 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
7661 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
7662 | ||
7663 | mkdir_p="$MKDIR_P" | |
7664 | case $mkdir_p in | |
7665 | [\\/$]* | ?:[\\/]*) ;; | |
7666 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
7667 | esac | |
da6ee469 JF |
7668 | |
7669 | ||
7670 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
7671 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } | |
7672 | # Check whether --enable-nls was given. | |
7673 | if test "${enable_nls+set}" = set; then | |
7674 | enableval=$enable_nls; USE_NLS=$enableval | |
7675 | else | |
7676 | USE_NLS=yes | |
7677 | fi | |
7678 | ||
7679 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7680 | echo "${ECHO_T}$USE_NLS" >&6; } | |
7681 | ||
7682 | ||
7683 | ||
7684 | ||
00ec24d0 JF |
7685 | GETTEXT_MACRO_VERSION=0.17 |
7686 | ||
7687 | ||
da6ee469 JF |
7688 | |
7689 | ||
7690 | # Prepare PATH_SEPARATOR. | |
7691 | # The user is always right. | |
7692 | if test "${PATH_SEPARATOR+set}" != set; then | |
7693 | echo "#! /bin/sh" >conf$$.sh | |
7694 | echo "exit 0" >>conf$$.sh | |
7695 | chmod +x conf$$.sh | |
7696 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7697 | PATH_SEPARATOR=';' | |
7698 | else | |
7699 | PATH_SEPARATOR=: | |
7700 | fi | |
7701 | rm -f conf$$.sh | |
7702 | fi | |
7703 | ||
7704 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7705 | # as systems may use methods other than mode bits to determine executability. | |
7706 | cat >conf$$.file <<_ASEOF | |
7707 | #! /bin/sh | |
7708 | exit 0 | |
7709 | _ASEOF | |
7710 | chmod +x conf$$.file | |
7711 | if test -x conf$$.file >/dev/null 2>&1; then | |
7712 | ac_executable_p="test -x" | |
7713 | else | |
7714 | ac_executable_p="test -f" | |
7715 | fi | |
7716 | rm -f conf$$.file | |
7717 | ||
7718 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7719 | set dummy msgfmt; ac_word=$2 | |
7720 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7722 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7724 | else | |
7725 | case "$MSGFMT" in | |
7726 | [\\/]* | ?:[\\/]*) | |
7727 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7728 | ;; | |
7729 | *) | |
7730 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7731 | for ac_dir in $PATH; do | |
7732 | IFS="$ac_save_IFS" | |
7733 | test -z "$ac_dir" && ac_dir=. | |
7734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7735 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7736 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7737 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
7738 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7739 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7740 | break 2 | |
7741 | fi | |
7742 | fi | |
7743 | done | |
7744 | done | |
7745 | IFS="$ac_save_IFS" | |
7746 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7747 | ;; | |
7748 | esac | |
7749 | fi | |
7750 | MSGFMT="$ac_cv_path_MSGFMT" | |
7751 | if test "$MSGFMT" != ":"; then | |
7752 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
7753 | echo "${ECHO_T}$MSGFMT" >&6; } | |
7754 | else | |
7755 | { echo "$as_me:$LINENO: result: no" >&5 | |
7756 | echo "${ECHO_T}no" >&6; } | |
7757 | fi | |
7758 | ||
7759 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7760 | set dummy gmsgfmt; ac_word=$2 | |
7761 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7763 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7765 | else | |
7766 | case $GMSGFMT in | |
7767 | [\\/]* | ?:[\\/]*) | |
7768 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7769 | ;; | |
7770 | *) | |
7771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7772 | for as_dir in $PATH | |
7773 | do | |
7774 | IFS=$as_save_IFS | |
7775 | test -z "$as_dir" && as_dir=. | |
7776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7778 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7780 | break 2 | |
7781 | fi | |
7782 | done | |
7783 | done | |
7784 | IFS=$as_save_IFS | |
7785 | ||
7786 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7787 | ;; | |
7788 | esac | |
7789 | fi | |
7790 | GMSGFMT=$ac_cv_path_GMSGFMT | |
7791 | if test -n "$GMSGFMT"; then | |
7792 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
7793 | echo "${ECHO_T}$GMSGFMT" >&6; } | |
7794 | else | |
7795 | { echo "$as_me:$LINENO: result: no" >&5 | |
7796 | echo "${ECHO_T}no" >&6; } | |
7797 | fi | |
7798 | ||
7799 | ||
7800 | ||
7801 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7802 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
7803 | *) MSGFMT_015=$MSGFMT ;; | |
7804 | esac | |
7805 | ||
7806 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7807 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
7808 | *) GMSGFMT_015=$GMSGFMT ;; | |
7809 | esac | |
7810 | ||
7811 | ||
7812 | ||
7813 | # Prepare PATH_SEPARATOR. | |
7814 | # The user is always right. | |
7815 | if test "${PATH_SEPARATOR+set}" != set; then | |
7816 | echo "#! /bin/sh" >conf$$.sh | |
7817 | echo "exit 0" >>conf$$.sh | |
7818 | chmod +x conf$$.sh | |
7819 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7820 | PATH_SEPARATOR=';' | |
7821 | else | |
7822 | PATH_SEPARATOR=: | |
7823 | fi | |
7824 | rm -f conf$$.sh | |
7825 | fi | |
7826 | ||
7827 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7828 | # as systems may use methods other than mode bits to determine executability. | |
7829 | cat >conf$$.file <<_ASEOF | |
7830 | #! /bin/sh | |
7831 | exit 0 | |
7832 | _ASEOF | |
7833 | chmod +x conf$$.file | |
7834 | if test -x conf$$.file >/dev/null 2>&1; then | |
7835 | ac_executable_p="test -x" | |
7836 | else | |
7837 | ac_executable_p="test -f" | |
7838 | fi | |
7839 | rm -f conf$$.file | |
7840 | ||
7841 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7842 | set dummy xgettext; ac_word=$2 | |
7843 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7845 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7847 | else | |
7848 | case "$XGETTEXT" in | |
7849 | [\\/]* | ?:[\\/]*) | |
7850 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7851 | ;; | |
7852 | *) | |
7853 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7854 | for ac_dir in $PATH; do | |
7855 | IFS="$ac_save_IFS" | |
7856 | test -z "$ac_dir" && ac_dir=. | |
7857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7858 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7859 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7860 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
7861 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7862 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7863 | break 2 | |
7864 | fi | |
7865 | fi | |
7866 | done | |
7867 | done | |
7868 | IFS="$ac_save_IFS" | |
7869 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7870 | ;; | |
7871 | esac | |
7872 | fi | |
7873 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7874 | if test "$XGETTEXT" != ":"; then | |
7875 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
7876 | echo "${ECHO_T}$XGETTEXT" >&6; } | |
7877 | else | |
7878 | { echo "$as_me:$LINENO: result: no" >&5 | |
7879 | echo "${ECHO_T}no" >&6; } | |
7880 | fi | |
7881 | ||
7882 | rm -f messages.po | |
7883 | ||
7884 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7885 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
7886 | *) XGETTEXT_015=$XGETTEXT ;; | |
7887 | esac | |
7888 | ||
7889 | ||
7890 | ||
7891 | # Prepare PATH_SEPARATOR. | |
7892 | # The user is always right. | |
7893 | if test "${PATH_SEPARATOR+set}" != set; then | |
7894 | echo "#! /bin/sh" >conf$$.sh | |
7895 | echo "exit 0" >>conf$$.sh | |
7896 | chmod +x conf$$.sh | |
7897 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7898 | PATH_SEPARATOR=';' | |
7899 | else | |
7900 | PATH_SEPARATOR=: | |
7901 | fi | |
7902 | rm -f conf$$.sh | |
7903 | fi | |
7904 | ||
7905 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7906 | # as systems may use methods other than mode bits to determine executability. | |
7907 | cat >conf$$.file <<_ASEOF | |
7908 | #! /bin/sh | |
7909 | exit 0 | |
7910 | _ASEOF | |
7911 | chmod +x conf$$.file | |
7912 | if test -x conf$$.file >/dev/null 2>&1; then | |
7913 | ac_executable_p="test -x" | |
7914 | else | |
7915 | ac_executable_p="test -f" | |
7916 | fi | |
7917 | rm -f conf$$.file | |
7918 | ||
7919 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7920 | set dummy msgmerge; ac_word=$2 | |
7921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7923 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7925 | else | |
7926 | case "$MSGMERGE" in | |
7927 | [\\/]* | ?:[\\/]*) | |
7928 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7929 | ;; | |
7930 | *) | |
7931 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7932 | for ac_dir in $PATH; do | |
7933 | IFS="$ac_save_IFS" | |
7934 | test -z "$ac_dir" && ac_dir=. | |
7935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7936 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7937 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7938 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
7939 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7940 | break 2 | |
7941 | fi | |
7942 | fi | |
7943 | done | |
7944 | done | |
7945 | IFS="$ac_save_IFS" | |
7946 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7947 | ;; | |
7948 | esac | |
7949 | fi | |
7950 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7951 | if test "$MSGMERGE" != ":"; then | |
7952 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
7953 | echo "${ECHO_T}$MSGMERGE" >&6; } | |
7954 | else | |
7955 | { echo "$as_me:$LINENO: result: no" >&5 | |
7956 | echo "${ECHO_T}no" >&6; } | |
7957 | fi | |
7958 | ||
7959 | ||
7960 | test -n "$localedir" || localedir='${datadir}/locale' | |
7961 | ||
7962 | ||
00ec24d0 JF |
7963 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
7964 | ||
7965 | ||
da6ee469 JF |
7966 | ac_config_commands="$ac_config_commands po-directories" |
7967 | ||
7968 | ||
7969 | ||
7970 | if test "X$prefix" = "XNONE"; then | |
7971 | acl_final_prefix="$ac_default_prefix" | |
7972 | else | |
7973 | acl_final_prefix="$prefix" | |
7974 | fi | |
7975 | if test "X$exec_prefix" = "XNONE"; then | |
7976 | acl_final_exec_prefix='${prefix}' | |
7977 | else | |
7978 | acl_final_exec_prefix="$exec_prefix" | |
7979 | fi | |
7980 | acl_save_prefix="$prefix" | |
7981 | prefix="$acl_final_prefix" | |
7982 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7983 | prefix="$acl_save_prefix" | |
7984 | ||
7985 | ||
7986 | # Check whether --with-gnu-ld was given. | |
7987 | if test "${with_gnu_ld+set}" = set; then | |
7988 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7989 | else | |
7990 | with_gnu_ld=no | |
7991 | fi | |
7992 | ||
7993 | # Prepare PATH_SEPARATOR. | |
7994 | # The user is always right. | |
7995 | if test "${PATH_SEPARATOR+set}" != set; then | |
7996 | echo "#! /bin/sh" >conf$$.sh | |
7997 | echo "exit 0" >>conf$$.sh | |
7998 | chmod +x conf$$.sh | |
7999 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8000 | PATH_SEPARATOR=';' | |
8001 | else | |
8002 | PATH_SEPARATOR=: | |
8003 | fi | |
8004 | rm -f conf$$.sh | |
8005 | fi | |
8006 | ac_prog=ld | |
8007 | if test "$GCC" = yes; then | |
8008 | # Check if gcc -print-prog-name=ld gives a path. | |
8009 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
8010 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } | |
8011 | case $host in | |
8012 | *-*-mingw*) | |
8013 | # gcc leaves a trailing carriage return which upsets mingw | |
8014 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8015 | *) | |
8016 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
8017 | esac | |
8018 | case $ac_prog in | |
8019 | # Accept absolute paths. | |
8020 | [\\/]* | [A-Za-z]:[\\/]*) | |
8021 | re_direlt='/[^/][^/]*/\.\./' | |
8022 | # Canonicalize the path of ld | |
8023 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
8024 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
8025 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
8026 | done | |
8027 | test -z "$LD" && LD="$ac_prog" | |
8028 | ;; | |
8029 | "") | |
8030 | # If it fails, then pretend we aren't using GCC. | |
8031 | ac_prog=ld | |
8032 | ;; | |
8033 | *) | |
8034 | # If it is relative, then search for the first ld in PATH. | |
8035 | with_gnu_ld=unknown | |
8036 | ;; | |
8037 | esac | |
8038 | elif test "$with_gnu_ld" = yes; then | |
8039 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
8040 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
8041 | else | |
8042 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
8043 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
8044 | fi | |
8045 | if test "${acl_cv_path_LD+set}" = set; then | |
8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8047 | else | |
8048 | if test -z "$LD"; then | |
8049 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
8050 | for ac_dir in $PATH; do | |
8051 | test -z "$ac_dir" && ac_dir=. | |
8052 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8053 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8054 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8055 | # but apparently some GNU ld's only accept -v. | |
8056 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8057 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
8058 | *GNU* | *'with BFD'*) | |
8059 | test "$with_gnu_ld" != no && break ;; | |
8060 | *) | |
8061 | test "$with_gnu_ld" != yes && break ;; | |
8062 | esac | |
8063 | fi | |
8064 | done | |
8065 | IFS="$ac_save_ifs" | |
8066 | else | |
8067 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
8068 | fi | |
8069 | fi | |
8070 | ||
8071 | LD="$acl_cv_path_LD" | |
8072 | if test -n "$LD"; then | |
8073 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
8074 | echo "${ECHO_T}$LD" >&6; } | |
8075 | else | |
8076 | { echo "$as_me:$LINENO: result: no" >&5 | |
8077 | echo "${ECHO_T}no" >&6; } | |
8078 | fi | |
8079 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
8080 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
8081 | { (exit 1); exit 1; }; } | |
8082 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
8083 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
8084 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8086 | else | |
8087 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
8088 | case `$LD -v 2>&1 </dev/null` in | |
8089 | *GNU* | *'with BFD'*) | |
8090 | acl_cv_prog_gnu_ld=yes ;; | |
8091 | *) | |
8092 | acl_cv_prog_gnu_ld=no ;; | |
8093 | esac | |
8094 | fi | |
8095 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
8096 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } | |
8097 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
8103 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } | |
8104 | if test "${acl_cv_rpath+set}" = set; then | |
8105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106 | else | |
8107 | ||
8108 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
8109 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
8110 | . ./conftest.sh | |
8111 | rm -f ./conftest.sh | |
8112 | acl_cv_rpath=done | |
8113 | ||
8114 | fi | |
8115 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
8116 | echo "${ECHO_T}$acl_cv_rpath" >&6; } | |
8117 | wl="$acl_cv_wl" | |
00ec24d0 JF |
8118 | acl_libext="$acl_cv_libext" |
8119 | acl_shlibext="$acl_cv_shlibext" | |
8120 | acl_libname_spec="$acl_cv_libname_spec" | |
8121 | acl_library_names_spec="$acl_cv_library_names_spec" | |
8122 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
8123 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
8124 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
8125 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
da6ee469 JF |
8126 | # Check whether --enable-rpath was given. |
8127 | if test "${enable_rpath+set}" = set; then | |
8128 | enableval=$enable_rpath; : | |
8129 | else | |
8130 | enable_rpath=yes | |
8131 | fi | |
8132 | ||
8133 | ||
8134 | ||
8135 | acl_libdirstem=lib | |
8136 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
8137 | if test -n "$searchpath"; then | |
8138 | acl_save_IFS="${IFS= }"; IFS=":" | |
8139 | for searchdir in $searchpath; do | |
8140 | if test -d "$searchdir"; then | |
8141 | case "$searchdir" in | |
8142 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
8143 | *) searchdir=`cd "$searchdir" && pwd` | |
8144 | case "$searchdir" in | |
8145 | */lib64 ) acl_libdirstem=lib64 ;; | |
8146 | esac ;; | |
8147 | esac | |
8148 | fi | |
8149 | done | |
8150 | IFS="$acl_save_IFS" | |
8151 | fi | |
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
00ec24d0 | 8160 | |
da6ee469 JF |
8161 | use_additional=yes |
8162 | ||
8163 | acl_save_prefix="$prefix" | |
8164 | prefix="$acl_final_prefix" | |
8165 | acl_save_exec_prefix="$exec_prefix" | |
8166 | exec_prefix="$acl_final_exec_prefix" | |
8167 | ||
8168 | eval additional_includedir=\"$includedir\" | |
8169 | eval additional_libdir=\"$libdir\" | |
8170 | ||
8171 | exec_prefix="$acl_save_exec_prefix" | |
8172 | prefix="$acl_save_prefix" | |
8173 | ||
8174 | ||
8175 | # Check whether --with-libiconv-prefix was given. | |
8176 | if test "${with_libiconv_prefix+set}" = set; then | |
8177 | withval=$with_libiconv_prefix; | |
8178 | if test "X$withval" = "Xno"; then | |
8179 | use_additional=no | |
8180 | else | |
8181 | if test "X$withval" = "X"; then | |
8182 | ||
8183 | acl_save_prefix="$prefix" | |
8184 | prefix="$acl_final_prefix" | |
8185 | acl_save_exec_prefix="$exec_prefix" | |
8186 | exec_prefix="$acl_final_exec_prefix" | |
8187 | ||
8188 | eval additional_includedir=\"$includedir\" | |
8189 | eval additional_libdir=\"$libdir\" | |
8190 | ||
8191 | exec_prefix="$acl_save_exec_prefix" | |
8192 | prefix="$acl_save_prefix" | |
8193 | ||
8194 | else | |
8195 | additional_includedir="$withval/include" | |
8196 | additional_libdir="$withval/$acl_libdirstem" | |
8197 | fi | |
8198 | fi | |
8199 | ||
8200 | fi | |
8201 | ||
8202 | LIBICONV= | |
8203 | LTLIBICONV= | |
8204 | INCICONV= | |
00ec24d0 | 8205 | LIBICONV_PREFIX= |
da6ee469 JF |
8206 | rpathdirs= |
8207 | ltrpathdirs= | |
8208 | names_already_handled= | |
8209 | names_next_round='iconv ' | |
8210 | while test -n "$names_next_round"; do | |
8211 | names_this_round="$names_next_round" | |
8212 | names_next_round= | |
8213 | for name in $names_this_round; do | |
8214 | already_handled= | |
8215 | for n in $names_already_handled; do | |
8216 | if test "$n" = "$name"; then | |
8217 | already_handled=yes | |
8218 | break | |
8219 | fi | |
8220 | done | |
8221 | if test -z "$already_handled"; then | |
8222 | names_already_handled="$names_already_handled $name" | |
8223 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
8224 | eval value=\"\$HAVE_LIB$uppername\" | |
8225 | if test -n "$value"; then | |
8226 | if test "$value" = yes; then | |
8227 | eval value=\"\$LIB$uppername\" | |
8228 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
8229 | eval value=\"\$LTLIB$uppername\" | |
8230 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
8231 | else | |
8232 | : | |
8233 | fi | |
8234 | else | |
8235 | found_dir= | |
8236 | found_la= | |
8237 | found_so= | |
8238 | found_a= | |
00ec24d0 JF |
8239 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
8240 | if test -n "$acl_shlibext"; then | |
8241 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8242 | else | |
8243 | shrext= | |
8244 | fi | |
da6ee469 | 8245 | if test $use_additional = yes; then |
00ec24d0 JF |
8246 | dir="$additional_libdir" |
8247 | if test -n "$acl_shlibext"; then | |
8248 | if test -f "$dir/$libname$shrext"; then | |
8249 | found_dir="$dir" | |
8250 | found_so="$dir/$libname$shrext" | |
8251 | else | |
8252 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8253 | ver=`(cd "$dir" && \ | |
8254 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8255 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8256 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8257 | | sed 1q ) 2>/dev/null` | |
8258 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8259 | found_dir="$dir" | |
8260 | found_so="$dir/$libname$shrext.$ver" | |
8261 | fi | |
8262 | else | |
8263 | eval library_names=\"$acl_library_names_spec\" | |
8264 | for f in $library_names; do | |
8265 | if test -f "$dir/$f"; then | |
8266 | found_dir="$dir" | |
8267 | found_so="$dir/$f" | |
8268 | break | |
8269 | fi | |
8270 | done | |
da6ee469 JF |
8271 | fi |
8272 | fi | |
00ec24d0 JF |
8273 | fi |
8274 | if test "X$found_dir" = "X"; then | |
8275 | if test -f "$dir/$libname.$acl_libext"; then | |
8276 | found_dir="$dir" | |
8277 | found_a="$dir/$libname.$acl_libext" | |
8278 | fi | |
8279 | fi | |
8280 | if test "X$found_dir" != "X"; then | |
8281 | if test -f "$dir/$libname.la"; then | |
8282 | found_la="$dir/$libname.la" | |
8283 | fi | |
da6ee469 JF |
8284 | fi |
8285 | fi | |
8286 | if test "X$found_dir" = "X"; then | |
8287 | for x in $LDFLAGS $LTLIBICONV; do | |
8288 | ||
8289 | acl_save_prefix="$prefix" | |
8290 | prefix="$acl_final_prefix" | |
8291 | acl_save_exec_prefix="$exec_prefix" | |
8292 | exec_prefix="$acl_final_exec_prefix" | |
8293 | eval x=\"$x\" | |
8294 | exec_prefix="$acl_save_exec_prefix" | |
8295 | prefix="$acl_save_prefix" | |
8296 | ||
8297 | case "$x" in | |
8298 | -L*) | |
8299 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
00ec24d0 JF |
8300 | if test -n "$acl_shlibext"; then |
8301 | if test -f "$dir/$libname$shrext"; then | |
da6ee469 | 8302 | found_dir="$dir" |
00ec24d0 JF |
8303 | found_so="$dir/$libname$shrext" |
8304 | else | |
8305 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8306 | ver=`(cd "$dir" && \ | |
8307 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8308 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8309 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8310 | | sed 1q ) 2>/dev/null` | |
8311 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8312 | found_dir="$dir" | |
8313 | found_so="$dir/$libname$shrext.$ver" | |
8314 | fi | |
8315 | else | |
8316 | eval library_names=\"$acl_library_names_spec\" | |
8317 | for f in $library_names; do | |
8318 | if test -f "$dir/$f"; then | |
8319 | found_dir="$dir" | |
8320 | found_so="$dir/$f" | |
8321 | break | |
8322 | fi | |
8323 | done | |
da6ee469 JF |
8324 | fi |
8325 | fi | |
00ec24d0 JF |
8326 | fi |
8327 | if test "X$found_dir" = "X"; then | |
8328 | if test -f "$dir/$libname.$acl_libext"; then | |
8329 | found_dir="$dir" | |
8330 | found_a="$dir/$libname.$acl_libext" | |
8331 | fi | |
8332 | fi | |
8333 | if test "X$found_dir" != "X"; then | |
8334 | if test -f "$dir/$libname.la"; then | |
8335 | found_la="$dir/$libname.la" | |
8336 | fi | |
da6ee469 JF |
8337 | fi |
8338 | ;; | |
8339 | esac | |
8340 | if test "X$found_dir" != "X"; then | |
8341 | break | |
8342 | fi | |
8343 | done | |
8344 | fi | |
8345 | if test "X$found_dir" != "X"; then | |
8346 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
8347 | if test "X$found_so" != "X"; then | |
8348 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
8349 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8350 | else | |
8351 | haveit= | |
8352 | for x in $ltrpathdirs; do | |
8353 | if test "X$x" = "X$found_dir"; then | |
8354 | haveit=yes | |
8355 | break | |
8356 | fi | |
8357 | done | |
8358 | if test -z "$haveit"; then | |
8359 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8360 | fi | |
00ec24d0 | 8361 | if test "$acl_hardcode_direct" = yes; then |
da6ee469 JF |
8362 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
8363 | else | |
00ec24d0 | 8364 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
da6ee469 JF |
8365 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
8366 | haveit= | |
8367 | for x in $rpathdirs; do | |
8368 | if test "X$x" = "X$found_dir"; then | |
8369 | haveit=yes | |
8370 | break | |
8371 | fi | |
8372 | done | |
8373 | if test -z "$haveit"; then | |
8374 | rpathdirs="$rpathdirs $found_dir" | |
8375 | fi | |
8376 | else | |
8377 | haveit= | |
8378 | for x in $LDFLAGS $LIBICONV; do | |
8379 | ||
8380 | acl_save_prefix="$prefix" | |
8381 | prefix="$acl_final_prefix" | |
8382 | acl_save_exec_prefix="$exec_prefix" | |
8383 | exec_prefix="$acl_final_exec_prefix" | |
8384 | eval x=\"$x\" | |
8385 | exec_prefix="$acl_save_exec_prefix" | |
8386 | prefix="$acl_save_prefix" | |
8387 | ||
8388 | if test "X$x" = "X-L$found_dir"; then | |
8389 | haveit=yes | |
8390 | break | |
8391 | fi | |
8392 | done | |
8393 | if test -z "$haveit"; then | |
8394 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
8395 | fi | |
00ec24d0 | 8396 | if test "$acl_hardcode_minus_L" != no; then |
da6ee469 JF |
8397 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
8398 | else | |
8399 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8400 | fi | |
8401 | fi | |
8402 | fi | |
8403 | fi | |
8404 | else | |
8405 | if test "X$found_a" != "X"; then | |
8406 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
8407 | else | |
8408 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
8409 | fi | |
8410 | fi | |
8411 | additional_includedir= | |
8412 | case "$found_dir" in | |
8413 | */$acl_libdirstem | */$acl_libdirstem/) | |
8414 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
00ec24d0 | 8415 | LIBICONV_PREFIX="$basedir" |
da6ee469 JF |
8416 | additional_includedir="$basedir/include" |
8417 | ;; | |
8418 | esac | |
8419 | if test "X$additional_includedir" != "X"; then | |
8420 | if test "X$additional_includedir" != "X/usr/include"; then | |
8421 | haveit= | |
8422 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8423 | if test -n "$GCC"; then | |
8424 | case $host_os in | |
8425 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8426 | esac | |
8427 | fi | |
8428 | fi | |
8429 | if test -z "$haveit"; then | |
8430 | for x in $CPPFLAGS $INCICONV; do | |
8431 | ||
8432 | acl_save_prefix="$prefix" | |
8433 | prefix="$acl_final_prefix" | |
8434 | acl_save_exec_prefix="$exec_prefix" | |
8435 | exec_prefix="$acl_final_exec_prefix" | |
8436 | eval x=\"$x\" | |
8437 | exec_prefix="$acl_save_exec_prefix" | |
8438 | prefix="$acl_save_prefix" | |
8439 | ||
8440 | if test "X$x" = "X-I$additional_includedir"; then | |
8441 | haveit=yes | |
8442 | break | |
8443 | fi | |
8444 | done | |
8445 | if test -z "$haveit"; then | |
8446 | if test -d "$additional_includedir"; then | |
8447 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
8448 | fi | |
8449 | fi | |
8450 | fi | |
8451 | fi | |
8452 | fi | |
8453 | if test -n "$found_la"; then | |
8454 | save_libdir="$libdir" | |
8455 | case "$found_la" in | |
8456 | */* | *\\*) . "$found_la" ;; | |
8457 | *) . "./$found_la" ;; | |
8458 | esac | |
8459 | libdir="$save_libdir" | |
8460 | for dep in $dependency_libs; do | |
8461 | case "$dep" in | |
8462 | -L*) | |
8463 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8464 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
8465 | haveit= | |
8466 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
8467 | if test -n "$GCC"; then | |
8468 | case $host_os in | |
8469 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8470 | esac | |
8471 | fi | |
8472 | fi | |
8473 | if test -z "$haveit"; then | |
8474 | haveit= | |
8475 | for x in $LDFLAGS $LIBICONV; do | |
8476 | ||
8477 | acl_save_prefix="$prefix" | |
8478 | prefix="$acl_final_prefix" | |
8479 | acl_save_exec_prefix="$exec_prefix" | |
8480 | exec_prefix="$acl_final_exec_prefix" | |
8481 | eval x=\"$x\" | |
8482 | exec_prefix="$acl_save_exec_prefix" | |
8483 | prefix="$acl_save_prefix" | |
8484 | ||
8485 | if test "X$x" = "X-L$additional_libdir"; then | |
8486 | haveit=yes | |
8487 | break | |
8488 | fi | |
8489 | done | |
8490 | if test -z "$haveit"; then | |
8491 | if test -d "$additional_libdir"; then | |
8492 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
8493 | fi | |
8494 | fi | |
8495 | haveit= | |
8496 | for x in $LDFLAGS $LTLIBICONV; do | |
8497 | ||
8498 | acl_save_prefix="$prefix" | |
8499 | prefix="$acl_final_prefix" | |
8500 | acl_save_exec_prefix="$exec_prefix" | |
8501 | exec_prefix="$acl_final_exec_prefix" | |
8502 | eval x=\"$x\" | |
8503 | exec_prefix="$acl_save_exec_prefix" | |
8504 | prefix="$acl_save_prefix" | |
8505 | ||
8506 | if test "X$x" = "X-L$additional_libdir"; then | |
8507 | haveit=yes | |
8508 | break | |
8509 | fi | |
8510 | done | |
8511 | if test -z "$haveit"; then | |
8512 | if test -d "$additional_libdir"; then | |
8513 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
8514 | fi | |
8515 | fi | |
8516 | fi | |
8517 | fi | |
8518 | ;; | |
8519 | -R*) | |
8520 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8521 | if test "$enable_rpath" != no; then | |
8522 | haveit= | |
8523 | for x in $rpathdirs; do | |
8524 | if test "X$x" = "X$dir"; then | |
8525 | haveit=yes | |
8526 | break | |
8527 | fi | |
8528 | done | |
8529 | if test -z "$haveit"; then | |
8530 | rpathdirs="$rpathdirs $dir" | |
8531 | fi | |
8532 | haveit= | |
8533 | for x in $ltrpathdirs; do | |
8534 | if test "X$x" = "X$dir"; then | |
8535 | haveit=yes | |
8536 | break | |
8537 | fi | |
8538 | done | |
8539 | if test -z "$haveit"; then | |
8540 | ltrpathdirs="$ltrpathdirs $dir" | |
8541 | fi | |
8542 | fi | |
8543 | ;; | |
8544 | -l*) | |
8545 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8546 | ;; | |
8547 | *.la) | |
8548 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8549 | ;; | |
8550 | *) | |
8551 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
8552 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
8553 | ;; | |
8554 | esac | |
8555 | done | |
8556 | fi | |
8557 | else | |
8558 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8559 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
8560 | fi | |
8561 | fi | |
8562 | fi | |
8563 | done | |
8564 | done | |
8565 | if test "X$rpathdirs" != "X"; then | |
00ec24d0 | 8566 | if test -n "$acl_hardcode_libdir_separator"; then |
da6ee469 JF |
8567 | alldirs= |
8568 | for found_dir in $rpathdirs; do | |
00ec24d0 | 8569 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
da6ee469 JF |
8570 | done |
8571 | acl_save_libdir="$libdir" | |
8572 | libdir="$alldirs" | |
00ec24d0 | 8573 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
da6ee469 JF |
8574 | libdir="$acl_save_libdir" |
8575 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8576 | else | |
8577 | for found_dir in $rpathdirs; do | |
8578 | acl_save_libdir="$libdir" | |
8579 | libdir="$found_dir" | |
00ec24d0 | 8580 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
da6ee469 JF |
8581 | libdir="$acl_save_libdir" |
8582 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8583 | done | |
8584 | fi | |
8585 | fi | |
8586 | if test "X$ltrpathdirs" != "X"; then | |
8587 | for found_dir in $ltrpathdirs; do | |
8588 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8589 | done | |
8590 | fi | |
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
00ec24d0 JF |
8604 | |
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
da6ee469 JF |
8611 | |
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 | |
8617 | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } | |
8618 | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then | |
8619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8620 | else | |
8621 | gt_save_LIBS="$LIBS" | |
8622 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8623 | cat >conftest.$ac_ext <<_ACEOF | |
8624 | /* confdefs.h. */ | |
8625 | _ACEOF | |
8626 | cat confdefs.h >>conftest.$ac_ext | |
8627 | cat >>conftest.$ac_ext <<_ACEOF | |
8628 | /* end confdefs.h. */ | |
8629 | #include <CoreFoundation/CFPreferences.h> | |
8630 | int | |
8631 | main () | |
8632 | { | |
8633 | CFPreferencesCopyAppValue(NULL, NULL) | |
8634 | ; | |
8635 | return 0; | |
8636 | } | |
8637 | _ACEOF | |
8638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8639 | if { (ac_try="$ac_link" | |
8640 | case "(($ac_try" in | |
8641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8642 | *) ac_try_echo=$ac_try;; | |
8643 | esac | |
8644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8645 | (eval "$ac_link") 2>conftest.er1 | |
8646 | ac_status=$? | |
8647 | grep -v '^ *+' conftest.er1 >conftest.err | |
8648 | rm -f conftest.er1 | |
8649 | cat conftest.err >&5 | |
8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8651 | (exit $ac_status); } && { | |
8652 | test -z "$ac_c_werror_flag" || | |
8653 | test ! -s conftest.err | |
8654 | } && test -s conftest$ac_exeext && | |
8655 | $as_test_x conftest$ac_exeext; then | |
8656 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
8657 | else | |
8658 | echo "$as_me: failed program was:" >&5 | |
8659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8660 | ||
8661 | gt_cv_func_CFPreferencesCopyAppValue=no | |
8662 | fi | |
8663 | ||
8664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8665 | conftest$ac_exeext conftest.$ac_ext | |
8666 | LIBS="$gt_save_LIBS" | |
8667 | fi | |
8668 | { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
8669 | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
8670 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
8671 | ||
8672 | cat >>confdefs.h <<\_ACEOF | |
8673 | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | |
8674 | _ACEOF | |
8675 | ||
8676 | fi | |
8677 | { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 | |
8678 | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } | |
8679 | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then | |
8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8681 | else | |
8682 | gt_save_LIBS="$LIBS" | |
8683 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8684 | cat >conftest.$ac_ext <<_ACEOF | |
8685 | /* confdefs.h. */ | |
8686 | _ACEOF | |
8687 | cat confdefs.h >>conftest.$ac_ext | |
8688 | cat >>conftest.$ac_ext <<_ACEOF | |
8689 | /* end confdefs.h. */ | |
8690 | #include <CoreFoundation/CFLocale.h> | |
8691 | int | |
8692 | main () | |
8693 | { | |
8694 | CFLocaleCopyCurrent(); | |
8695 | ; | |
8696 | return 0; | |
8697 | } | |
8698 | _ACEOF | |
8699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8700 | if { (ac_try="$ac_link" | |
8701 | case "(($ac_try" in | |
8702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8703 | *) ac_try_echo=$ac_try;; | |
8704 | esac | |
8705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8706 | (eval "$ac_link") 2>conftest.er1 | |
8707 | ac_status=$? | |
8708 | grep -v '^ *+' conftest.er1 >conftest.err | |
8709 | rm -f conftest.er1 | |
8710 | cat conftest.err >&5 | |
8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8712 | (exit $ac_status); } && { | |
8713 | test -z "$ac_c_werror_flag" || | |
8714 | test ! -s conftest.err | |
8715 | } && test -s conftest$ac_exeext && | |
8716 | $as_test_x conftest$ac_exeext; then | |
8717 | gt_cv_func_CFLocaleCopyCurrent=yes | |
8718 | else | |
8719 | echo "$as_me: failed program was:" >&5 | |
8720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8721 | ||
8722 | gt_cv_func_CFLocaleCopyCurrent=no | |
8723 | fi | |
8724 | ||
8725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8726 | conftest$ac_exeext conftest.$ac_ext | |
8727 | LIBS="$gt_save_LIBS" | |
8728 | fi | |
8729 | { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
8730 | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
8731 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8732 | ||
8733 | cat >>confdefs.h <<\_ACEOF | |
8734 | #define HAVE_CFLOCALECOPYCURRENT 1 | |
8735 | _ACEOF | |
8736 | ||
8737 | fi | |
8738 | INTL_MACOSX_LIBS= | |
8739 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8740 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
8741 | fi | |
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | LIBINTL= | |
8749 | LTLIBINTL= | |
8750 | POSUB= | |
8751 | ||
00ec24d0 JF |
8752 | case " $gt_needs " in |
8753 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
8754 | *" need-ngettext "*) gt_api_version=2 ;; | |
8755 | *) gt_api_version=1 ;; | |
8756 | esac | |
8757 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
8758 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
8759 | ||
da6ee469 JF |
8760 | if test "$USE_NLS" = "yes"; then |
8761 | gt_use_preinstalled_gnugettext=no | |
8762 | ||
8763 | ||
00ec24d0 JF |
8764 | if test $gt_api_version -ge 3; then |
8765 | gt_revision_test_code=' | |
8766 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
8767 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
8768 | #endif | |
8769 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
8770 | ' | |
8771 | else | |
8772 | gt_revision_test_code= | |
8773 | fi | |
8774 | if test $gt_api_version -ge 2; then | |
8775 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
8776 | else | |
8777 | gt_expression_test_code= | |
8778 | fi | |
da6ee469 JF |
8779 | |
8780 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 | |
8781 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } | |
00ec24d0 | 8782 | if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then |
da6ee469 JF |
8783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8784 | else | |
8785 | cat >conftest.$ac_ext <<_ACEOF | |
8786 | /* confdefs.h. */ | |
8787 | _ACEOF | |
8788 | cat confdefs.h >>conftest.$ac_ext | |
8789 | cat >>conftest.$ac_ext <<_ACEOF | |
8790 | /* end confdefs.h. */ | |
8791 | #include <libintl.h> | |
00ec24d0 | 8792 | $gt_revision_test_code |
da6ee469 JF |
8793 | extern int _nl_msg_cat_cntr; |
8794 | extern int *_nl_domain_bindings; | |
8795 | int | |
8796 | main () | |
8797 | { | |
8798 | bindtextdomain ("", ""); | |
00ec24d0 | 8799 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
da6ee469 JF |
8800 | ; |
8801 | return 0; | |
8802 | } | |
8803 | _ACEOF | |
8804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8805 | if { (ac_try="$ac_link" | |
8806 | case "(($ac_try" in | |
8807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8808 | *) ac_try_echo=$ac_try;; | |
8809 | esac | |
8810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8811 | (eval "$ac_link") 2>conftest.er1 | |
8812 | ac_status=$? | |
8813 | grep -v '^ *+' conftest.er1 >conftest.err | |
8814 | rm -f conftest.er1 | |
8815 | cat conftest.err >&5 | |
8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8817 | (exit $ac_status); } && { | |
8818 | test -z "$ac_c_werror_flag" || | |
8819 | test ! -s conftest.err | |
8820 | } && test -s conftest$ac_exeext && | |
8821 | $as_test_x conftest$ac_exeext; then | |
00ec24d0 | 8822 | eval "$gt_func_gnugettext_libc=yes" |
da6ee469 JF |
8823 | else |
8824 | echo "$as_me: failed program was:" >&5 | |
8825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8826 | ||
00ec24d0 | 8827 | eval "$gt_func_gnugettext_libc=no" |
da6ee469 JF |
8828 | fi |
8829 | ||
8830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8831 | conftest$ac_exeext conftest.$ac_ext | |
8832 | fi | |
00ec24d0 JF |
8833 | ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` |
8834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8835 | echo "${ECHO_T}$ac_res" >&6; } | |
da6ee469 | 8836 | |
00ec24d0 | 8837 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
da6ee469 JF |
8838 | |
8839 | ||
8840 | ||
8841 | ||
8842 | ||
8843 | am_save_CPPFLAGS="$CPPFLAGS" | |
8844 | ||
8845 | for element in $INCICONV; do | |
8846 | haveit= | |
8847 | for x in $CPPFLAGS; do | |
8848 | ||
8849 | acl_save_prefix="$prefix" | |
8850 | prefix="$acl_final_prefix" | |
8851 | acl_save_exec_prefix="$exec_prefix" | |
8852 | exec_prefix="$acl_final_exec_prefix" | |
8853 | eval x=\"$x\" | |
8854 | exec_prefix="$acl_save_exec_prefix" | |
8855 | prefix="$acl_save_prefix" | |
8856 | ||
8857 | if test "X$x" = "X$element"; then | |
8858 | haveit=yes | |
8859 | break | |
8860 | fi | |
8861 | done | |
8862 | if test -z "$haveit"; then | |
8863 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8864 | fi | |
8865 | done | |
8866 | ||
8867 | ||
8868 | { echo "$as_me:$LINENO: checking for iconv" >&5 | |
8869 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } | |
8870 | if test "${am_cv_func_iconv+set}" = set; then | |
8871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8872 | else | |
8873 | ||
8874 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
8875 | am_cv_lib_iconv=no | |
8876 | cat >conftest.$ac_ext <<_ACEOF | |
8877 | /* confdefs.h. */ | |
8878 | _ACEOF | |
8879 | cat confdefs.h >>conftest.$ac_ext | |
8880 | cat >>conftest.$ac_ext <<_ACEOF | |
8881 | /* end confdefs.h. */ | |
8882 | #include <stdlib.h> | |
8883 | #include <iconv.h> | |
8884 | int | |
8885 | main () | |
8886 | { | |
8887 | iconv_t cd = iconv_open("",""); | |
8888 | iconv(cd,NULL,NULL,NULL,NULL); | |
8889 | iconv_close(cd); | |
8890 | ; | |
8891 | return 0; | |
8892 | } | |
8893 | _ACEOF | |
8894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8895 | if { (ac_try="$ac_link" | |
8896 | case "(($ac_try" in | |
8897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8898 | *) ac_try_echo=$ac_try;; | |
8899 | esac | |
8900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8901 | (eval "$ac_link") 2>conftest.er1 | |
8902 | ac_status=$? | |
8903 | grep -v '^ *+' conftest.er1 >conftest.err | |
8904 | rm -f conftest.er1 | |
8905 | cat conftest.err >&5 | |
8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8907 | (exit $ac_status); } && { | |
8908 | test -z "$ac_c_werror_flag" || | |
8909 | test ! -s conftest.err | |
8910 | } && test -s conftest$ac_exeext && | |
8911 | $as_test_x conftest$ac_exeext; then | |
8912 | am_cv_func_iconv=yes | |
8913 | else | |
8914 | echo "$as_me: failed program was:" >&5 | |
8915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8916 | ||
8917 | ||
8918 | fi | |
8919 | ||
8920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8921 | conftest$ac_exeext conftest.$ac_ext | |
8922 | if test "$am_cv_func_iconv" != yes; then | |
8923 | am_save_LIBS="$LIBS" | |
8924 | LIBS="$LIBS $LIBICONV" | |
8925 | cat >conftest.$ac_ext <<_ACEOF | |
8926 | /* confdefs.h. */ | |
8927 | _ACEOF | |
8928 | cat confdefs.h >>conftest.$ac_ext | |
8929 | cat >>conftest.$ac_ext <<_ACEOF | |
8930 | /* end confdefs.h. */ | |
8931 | #include <stdlib.h> | |
8932 | #include <iconv.h> | |
8933 | int | |
8934 | main () | |
8935 | { | |
8936 | iconv_t cd = iconv_open("",""); | |
8937 | iconv(cd,NULL,NULL,NULL,NULL); | |
8938 | iconv_close(cd); | |
8939 | ; | |
8940 | return 0; | |
8941 | } | |
8942 | _ACEOF | |
8943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8944 | if { (ac_try="$ac_link" | |
8945 | case "(($ac_try" in | |
8946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8947 | *) ac_try_echo=$ac_try;; | |
8948 | esac | |
8949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8950 | (eval "$ac_link") 2>conftest.er1 | |
8951 | ac_status=$? | |
8952 | grep -v '^ *+' conftest.er1 >conftest.err | |
8953 | rm -f conftest.er1 | |
8954 | cat conftest.err >&5 | |
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8956 | (exit $ac_status); } && { | |
8957 | test -z "$ac_c_werror_flag" || | |
8958 | test ! -s conftest.err | |
8959 | } && test -s conftest$ac_exeext && | |
8960 | $as_test_x conftest$ac_exeext; then | |
8961 | am_cv_lib_iconv=yes | |
8962 | am_cv_func_iconv=yes | |
8963 | else | |
8964 | echo "$as_me: failed program was:" >&5 | |
8965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8966 | ||
8967 | ||
8968 | fi | |
8969 | ||
8970 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8971 | conftest$ac_exeext conftest.$ac_ext | |
8972 | LIBS="$am_save_LIBS" | |
8973 | fi | |
8974 | ||
8975 | fi | |
8976 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
8977 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } | |
8978 | if test "$am_cv_func_iconv" = yes; then | |
00ec24d0 JF |
8979 | { echo "$as_me:$LINENO: checking for working iconv" >&5 |
8980 | echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } | |
8981 | if test "${am_cv_func_iconv_works+set}" = set; then | |
8982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8983 | else | |
8984 | ||
8985 | am_save_LIBS="$LIBS" | |
8986 | if test $am_cv_lib_iconv = yes; then | |
8987 | LIBS="$LIBS $LIBICONV" | |
8988 | fi | |
8989 | if test "$cross_compiling" = yes; then | |
8990 | case "$host_os" in | |
8991 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
8992 | *) am_cv_func_iconv_works="guessing yes" ;; | |
8993 | esac | |
8994 | else | |
8995 | cat >conftest.$ac_ext <<_ACEOF | |
8996 | /* confdefs.h. */ | |
8997 | _ACEOF | |
8998 | cat confdefs.h >>conftest.$ac_ext | |
8999 | cat >>conftest.$ac_ext <<_ACEOF | |
9000 | /* end confdefs.h. */ | |
9001 | ||
9002 | #include <iconv.h> | |
9003 | #include <string.h> | |
9004 | int main () | |
9005 | { | |
9006 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
9007 | returns. */ | |
9008 | { | |
9009 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
9010 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
9011 | { | |
9012 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
9013 | char buf[10]; | |
9014 | const char *inptr = input; | |
9015 | size_t inbytesleft = strlen (input); | |
9016 | char *outptr = buf; | |
9017 | size_t outbytesleft = sizeof (buf); | |
9018 | size_t res = iconv (cd_utf8_to_88591, | |
9019 | (char **) &inptr, &inbytesleft, | |
9020 | &outptr, &outbytesleft); | |
9021 | if (res == 0) | |
9022 | return 1; | |
9023 | } | |
9024 | } | |
9025 | #if 0 /* This bug could be worked around by the caller. */ | |
9026 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
9027 | { | |
9028 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
9029 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9030 | { | |
9031 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
9032 | char buf[50]; | |
9033 | const char *inptr = input; | |
9034 | size_t inbytesleft = strlen (input); | |
9035 | char *outptr = buf; | |
9036 | size_t outbytesleft = sizeof (buf); | |
9037 | size_t res = iconv (cd_88591_to_utf8, | |
9038 | (char **) &inptr, &inbytesleft, | |
9039 | &outptr, &outbytesleft); | |
9040 | if ((int)res > 0) | |
9041 | return 1; | |
9042 | } | |
9043 | } | |
9044 | #endif | |
9045 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
9046 | provided. */ | |
9047 | if (/* Try standardized names. */ | |
9048 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
9049 | /* Try IRIX, OSF/1 names. */ | |
9050 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
9051 | /* Try AIX names. */ | |
9052 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
9053 | /* Try HP-UX names. */ | |
9054 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
9055 | return 1; | |
9056 | return 0; | |
9057 | } | |
9058 | _ACEOF | |
9059 | rm -f conftest$ac_exeext | |
9060 | if { (ac_try="$ac_link" | |
9061 | case "(($ac_try" in | |
9062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9063 | *) ac_try_echo=$ac_try;; | |
9064 | esac | |
9065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9066 | (eval "$ac_link") 2>&5 | |
9067 | ac_status=$? | |
9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9070 | { (case "(($ac_try" in | |
9071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9072 | *) ac_try_echo=$ac_try;; | |
9073 | esac | |
9074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9075 | (eval "$ac_try") 2>&5 | |
9076 | ac_status=$? | |
9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9078 | (exit $ac_status); }; }; then | |
9079 | am_cv_func_iconv_works=yes | |
9080 | else | |
9081 | echo "$as_me: program exited with status $ac_status" >&5 | |
9082 | echo "$as_me: failed program was:" >&5 | |
9083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9084 | ||
9085 | ( exit $ac_status ) | |
9086 | am_cv_func_iconv_works=no | |
9087 | fi | |
9088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9089 | fi | |
9090 | ||
9091 | ||
9092 | LIBS="$am_save_LIBS" | |
9093 | ||
9094 | fi | |
9095 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 | |
9096 | echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } | |
9097 | case "$am_cv_func_iconv_works" in | |
9098 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
9099 | *) am_func_iconv=yes ;; | |
9100 | esac | |
9101 | else | |
9102 | am_func_iconv=no am_cv_lib_iconv=no | |
9103 | fi | |
9104 | if test "$am_func_iconv" = yes; then | |
da6ee469 JF |
9105 | |
9106 | cat >>confdefs.h <<\_ACEOF | |
9107 | #define HAVE_ICONV 1 | |
9108 | _ACEOF | |
9109 | ||
9110 | fi | |
9111 | if test "$am_cv_lib_iconv" = yes; then | |
9112 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 | |
9113 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } | |
9114 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
9115 | echo "${ECHO_T}$LIBICONV" >&6; } | |
9116 | else | |
9117 | CPPFLAGS="$am_save_CPPFLAGS" | |
9118 | LIBICONV= | |
9119 | LTLIBICONV= | |
9120 | fi | |
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
00ec24d0 | 9128 | |
da6ee469 JF |
9129 | use_additional=yes |
9130 | ||
9131 | acl_save_prefix="$prefix" | |
9132 | prefix="$acl_final_prefix" | |
9133 | acl_save_exec_prefix="$exec_prefix" | |
9134 | exec_prefix="$acl_final_exec_prefix" | |
9135 | ||
9136 | eval additional_includedir=\"$includedir\" | |
9137 | eval additional_libdir=\"$libdir\" | |
9138 | ||
9139 | exec_prefix="$acl_save_exec_prefix" | |
9140 | prefix="$acl_save_prefix" | |
9141 | ||
9142 | ||
9143 | # Check whether --with-libintl-prefix was given. | |
9144 | if test "${with_libintl_prefix+set}" = set; then | |
9145 | withval=$with_libintl_prefix; | |
9146 | if test "X$withval" = "Xno"; then | |
9147 | use_additional=no | |
9148 | else | |
9149 | if test "X$withval" = "X"; then | |
9150 | ||
9151 | acl_save_prefix="$prefix" | |
9152 | prefix="$acl_final_prefix" | |
9153 | acl_save_exec_prefix="$exec_prefix" | |
9154 | exec_prefix="$acl_final_exec_prefix" | |
9155 | ||
9156 | eval additional_includedir=\"$includedir\" | |
9157 | eval additional_libdir=\"$libdir\" | |
9158 | ||
9159 | exec_prefix="$acl_save_exec_prefix" | |
9160 | prefix="$acl_save_prefix" | |
9161 | ||
9162 | else | |
9163 | additional_includedir="$withval/include" | |
9164 | additional_libdir="$withval/$acl_libdirstem" | |
9165 | fi | |
9166 | fi | |
9167 | ||
9168 | fi | |
9169 | ||
9170 | LIBINTL= | |
9171 | LTLIBINTL= | |
9172 | INCINTL= | |
00ec24d0 | 9173 | LIBINTL_PREFIX= |
da6ee469 JF |
9174 | rpathdirs= |
9175 | ltrpathdirs= | |
9176 | names_already_handled= | |
9177 | names_next_round='intl ' | |
9178 | while test -n "$names_next_round"; do | |
9179 | names_this_round="$names_next_round" | |
9180 | names_next_round= | |
9181 | for name in $names_this_round; do | |
9182 | already_handled= | |
9183 | for n in $names_already_handled; do | |
9184 | if test "$n" = "$name"; then | |
9185 | already_handled=yes | |
9186 | break | |
9187 | fi | |
9188 | done | |
9189 | if test -z "$already_handled"; then | |
9190 | names_already_handled="$names_already_handled $name" | |
9191 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9192 | eval value=\"\$HAVE_LIB$uppername\" | |
9193 | if test -n "$value"; then | |
9194 | if test "$value" = yes; then | |
9195 | eval value=\"\$LIB$uppername\" | |
9196 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
9197 | eval value=\"\$LTLIB$uppername\" | |
9198 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
9199 | else | |
9200 | : | |
9201 | fi | |
9202 | else | |
9203 | found_dir= | |
9204 | found_la= | |
9205 | found_so= | |
9206 | found_a= | |
00ec24d0 JF |
9207 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
9208 | if test -n "$acl_shlibext"; then | |
9209 | shrext=".$acl_shlibext" # typically: shrext=.so | |
9210 | else | |
9211 | shrext= | |
9212 | fi | |
da6ee469 | 9213 | if test $use_additional = yes; then |
00ec24d0 JF |
9214 | dir="$additional_libdir" |
9215 | if test -n "$acl_shlibext"; then | |
9216 | if test -f "$dir/$libname$shrext"; then | |
9217 | found_dir="$dir" | |
9218 | found_so="$dir/$libname$shrext" | |
9219 | else | |
9220 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9221 | ver=`(cd "$dir" && \ | |
9222 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9223 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9224 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9225 | | sed 1q ) 2>/dev/null` | |
9226 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
9227 | found_dir="$dir" | |
9228 | found_so="$dir/$libname$shrext.$ver" | |
9229 | fi | |
9230 | else | |
9231 | eval library_names=\"$acl_library_names_spec\" | |
9232 | for f in $library_names; do | |
9233 | if test -f "$dir/$f"; then | |
9234 | found_dir="$dir" | |
9235 | found_so="$dir/$f" | |
9236 | break | |
9237 | fi | |
9238 | done | |
da6ee469 JF |
9239 | fi |
9240 | fi | |
00ec24d0 JF |
9241 | fi |
9242 | if test "X$found_dir" = "X"; then | |
9243 | if test -f "$dir/$libname.$acl_libext"; then | |
9244 | found_dir="$dir" | |
9245 | found_a="$dir/$libname.$acl_libext" | |
9246 | fi | |
9247 | fi | |
9248 | if test "X$found_dir" != "X"; then | |
9249 | if test -f "$dir/$libname.la"; then | |
9250 | found_la="$dir/$libname.la" | |
9251 | fi | |
da6ee469 JF |
9252 | fi |
9253 | fi | |
9254 | if test "X$found_dir" = "X"; then | |
9255 | for x in $LDFLAGS $LTLIBINTL; do | |
9256 | ||
9257 | acl_save_prefix="$prefix" | |
9258 | prefix="$acl_final_prefix" | |
9259 | acl_save_exec_prefix="$exec_prefix" | |
9260 | exec_prefix="$acl_final_exec_prefix" | |
9261 | eval x=\"$x\" | |
9262 | exec_prefix="$acl_save_exec_prefix" | |
9263 | prefix="$acl_save_prefix" | |
9264 | ||
9265 | case "$x" in | |
9266 | -L*) | |
9267 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
00ec24d0 JF |
9268 | if test -n "$acl_shlibext"; then |
9269 | if test -f "$dir/$libname$shrext"; then | |
da6ee469 | 9270 | found_dir="$dir" |
00ec24d0 JF |
9271 | found_so="$dir/$libname$shrext" |
9272 | else | |
9273 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9274 | ver=`(cd "$dir" && \ | |
9275 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9276 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9277 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9278 | | sed 1q ) 2>/dev/null` | |
9279 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
9280 | found_dir="$dir" | |
9281 | found_so="$dir/$libname$shrext.$ver" | |
9282 | fi | |
9283 | else | |
9284 | eval library_names=\"$acl_library_names_spec\" | |
9285 | for f in $library_names; do | |
9286 | if test -f "$dir/$f"; then | |
9287 | found_dir="$dir" | |
9288 | found_so="$dir/$f" | |
9289 | break | |
9290 | fi | |
9291 | done | |
da6ee469 JF |
9292 | fi |
9293 | fi | |
00ec24d0 JF |
9294 | fi |
9295 | if test "X$found_dir" = "X"; then | |
9296 | if test -f "$dir/$libname.$acl_libext"; then | |
9297 | found_dir="$dir" | |
9298 | found_a="$dir/$libname.$acl_libext" | |
9299 | fi | |
9300 | fi | |
9301 | if test "X$found_dir" != "X"; then | |
9302 | if test -f "$dir/$libname.la"; then | |
9303 | found_la="$dir/$libname.la" | |
9304 | fi | |
da6ee469 JF |
9305 | fi |
9306 | ;; | |
9307 | esac | |
9308 | if test "X$found_dir" != "X"; then | |
9309 | break | |
9310 | fi | |
9311 | done | |
9312 | fi | |
9313 | if test "X$found_dir" != "X"; then | |
9314 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
9315 | if test "X$found_so" != "X"; then | |
9316 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
9317 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
9318 | else | |
9319 | haveit= | |
9320 | for x in $ltrpathdirs; do | |
9321 | if test "X$x" = "X$found_dir"; then | |
9322 | haveit=yes | |
9323 | break | |
9324 | fi | |
9325 | done | |
9326 | if test -z "$haveit"; then | |
9327 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9328 | fi | |
00ec24d0 | 9329 | if test "$acl_hardcode_direct" = yes; then |
da6ee469 JF |
9330 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
9331 | else | |
00ec24d0 | 9332 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
da6ee469 JF |
9333 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
9334 | haveit= | |
9335 | for x in $rpathdirs; do | |
9336 | if test "X$x" = "X$found_dir"; then | |
9337 | haveit=yes | |
9338 | break | |
9339 | fi | |
9340 | done | |
9341 | if test -z "$haveit"; then | |
9342 | rpathdirs="$rpathdirs $found_dir" | |
9343 | fi | |
9344 | else | |
9345 | haveit= | |
9346 | for x in $LDFLAGS $LIBINTL; do | |
9347 | ||
9348 | acl_save_prefix="$prefix" | |
9349 | prefix="$acl_final_prefix" | |
9350 | acl_save_exec_prefix="$exec_prefix" | |
9351 | exec_prefix="$acl_final_exec_prefix" | |
9352 | eval x=\"$x\" | |
9353 | exec_prefix="$acl_save_exec_prefix" | |
9354 | prefix="$acl_save_prefix" | |
9355 | ||
9356 | if test "X$x" = "X-L$found_dir"; then | |
9357 | haveit=yes | |
9358 | break | |
9359 | fi | |
9360 | done | |
9361 | if test -z "$haveit"; then | |
9362 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
9363 | fi | |
00ec24d0 | 9364 | if test "$acl_hardcode_minus_L" != no; then |
da6ee469 JF |
9365 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
9366 | else | |
9367 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9368 | fi | |
9369 | fi | |
9370 | fi | |
9371 | fi | |
9372 | else | |
9373 | if test "X$found_a" != "X"; then | |
9374 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
9375 | else | |
9376 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
9377 | fi | |
9378 | fi | |
9379 | additional_includedir= | |
9380 | case "$found_dir" in | |
9381 | */$acl_libdirstem | */$acl_libdirstem/) | |
9382 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
00ec24d0 | 9383 | LIBINTL_PREFIX="$basedir" |
da6ee469 JF |
9384 | additional_includedir="$basedir/include" |
9385 | ;; | |
9386 | esac | |
9387 | if test "X$additional_includedir" != "X"; then | |
9388 | if test "X$additional_includedir" != "X/usr/include"; then | |
9389 | haveit= | |
9390 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9391 | if test -n "$GCC"; then | |
9392 | case $host_os in | |
9393 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9394 | esac | |
9395 | fi | |
9396 | fi | |
9397 | if test -z "$haveit"; then | |
9398 | for x in $CPPFLAGS $INCINTL; do | |
9399 | ||
9400 | acl_save_prefix="$prefix" | |
9401 | prefix="$acl_final_prefix" | |
9402 | acl_save_exec_prefix="$exec_prefix" | |
9403 | exec_prefix="$acl_final_exec_prefix" | |
9404 | eval x=\"$x\" | |
9405 | exec_prefix="$acl_save_exec_prefix" | |
9406 | prefix="$acl_save_prefix" | |
9407 | ||
9408 | if test "X$x" = "X-I$additional_includedir"; then | |
9409 | haveit=yes | |
9410 | break | |
9411 | fi | |
9412 | done | |
9413 | if test -z "$haveit"; then | |
9414 | if test -d "$additional_includedir"; then | |
9415 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
9416 | fi | |
9417 | fi | |
9418 | fi | |
9419 | fi | |
9420 | fi | |
9421 | if test -n "$found_la"; then | |
9422 | save_libdir="$libdir" | |
9423 | case "$found_la" in | |
9424 | */* | *\\*) . "$found_la" ;; | |
9425 | *) . "./$found_la" ;; | |
9426 | esac | |
9427 | libdir="$save_libdir" | |
9428 | for dep in $dependency_libs; do | |
9429 | case "$dep" in | |
9430 | -L*) | |
9431 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9432 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
9433 | haveit= | |
9434 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
9435 | if test -n "$GCC"; then | |
9436 | case $host_os in | |
9437 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9438 | esac | |
9439 | fi | |
9440 | fi | |
9441 | if test -z "$haveit"; then | |
9442 | haveit= | |
9443 | for x in $LDFLAGS $LIBINTL; do | |
9444 | ||
9445 | acl_save_prefix="$prefix" | |
9446 | prefix="$acl_final_prefix" | |
9447 | acl_save_exec_prefix="$exec_prefix" | |
9448 | exec_prefix="$acl_final_exec_prefix" | |
9449 | eval x=\"$x\" | |
9450 | exec_prefix="$acl_save_exec_prefix" | |
9451 | prefix="$acl_save_prefix" | |
9452 | ||
9453 | if test "X$x" = "X-L$additional_libdir"; then | |
9454 | haveit=yes | |
9455 | break | |
9456 | fi | |
9457 | done | |
9458 | if test -z "$haveit"; then | |
9459 | if test -d "$additional_libdir"; then | |
9460 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
9461 | fi | |
9462 | fi | |
9463 | haveit= | |
9464 | for x in $LDFLAGS $LTLIBINTL; do | |
9465 | ||
9466 | acl_save_prefix="$prefix" | |
9467 | prefix="$acl_final_prefix" | |
9468 | acl_save_exec_prefix="$exec_prefix" | |
9469 | exec_prefix="$acl_final_exec_prefix" | |
9470 | eval x=\"$x\" | |
9471 | exec_prefix="$acl_save_exec_prefix" | |
9472 | prefix="$acl_save_prefix" | |
9473 | ||
9474 | if test "X$x" = "X-L$additional_libdir"; then | |
9475 | haveit=yes | |
9476 | break | |
9477 | fi | |
9478 | done | |
9479 | if test -z "$haveit"; then | |
9480 | if test -d "$additional_libdir"; then | |
9481 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
9482 | fi | |
9483 | fi | |
9484 | fi | |
9485 | fi | |
9486 | ;; | |
9487 | -R*) | |
9488 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9489 | if test "$enable_rpath" != no; then | |
9490 | haveit= | |
9491 | for x in $rpathdirs; do | |
9492 | if test "X$x" = "X$dir"; then | |
9493 | haveit=yes | |
9494 | break | |
9495 | fi | |
9496 | done | |
9497 | if test -z "$haveit"; then | |
9498 | rpathdirs="$rpathdirs $dir" | |
9499 | fi | |
9500 | haveit= | |
9501 | for x in $ltrpathdirs; do | |
9502 | if test "X$x" = "X$dir"; then | |
9503 | haveit=yes | |
9504 | break | |
9505 | fi | |
9506 | done | |
9507 | if test -z "$haveit"; then | |
9508 | ltrpathdirs="$ltrpathdirs $dir" | |
9509 | fi | |
9510 | fi | |
9511 | ;; | |
9512 | -l*) | |
9513 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9514 | ;; | |
9515 | *.la) | |
9516 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9517 | ;; | |
9518 | *) | |
9519 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
9520 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
9521 | ;; | |
9522 | esac | |
9523 | done | |
9524 | fi | |
9525 | else | |
9526 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9527 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
9528 | fi | |
9529 | fi | |
9530 | fi | |
9531 | done | |
9532 | done | |
9533 | if test "X$rpathdirs" != "X"; then | |
00ec24d0 | 9534 | if test -n "$acl_hardcode_libdir_separator"; then |
da6ee469 JF |
9535 | alldirs= |
9536 | for found_dir in $rpathdirs; do | |
00ec24d0 | 9537 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
da6ee469 JF |
9538 | done |
9539 | acl_save_libdir="$libdir" | |
9540 | libdir="$alldirs" | |
00ec24d0 | 9541 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
da6ee469 JF |
9542 | libdir="$acl_save_libdir" |
9543 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9544 | else | |
9545 | for found_dir in $rpathdirs; do | |
9546 | acl_save_libdir="$libdir" | |
9547 | libdir="$found_dir" | |
00ec24d0 | 9548 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
da6ee469 JF |
9549 | libdir="$acl_save_libdir" |
9550 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9551 | done | |
9552 | fi | |
9553 | fi | |
9554 | if test "X$ltrpathdirs" != "X"; then | |
9555 | for found_dir in $ltrpathdirs; do | |
9556 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
9557 | done | |
9558 | fi | |
9559 | ||
9560 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 | |
9561 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } | |
00ec24d0 | 9562 | if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then |
da6ee469 JF |
9563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9564 | else | |
9565 | gt_save_CPPFLAGS="$CPPFLAGS" | |
9566 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
9567 | gt_save_LIBS="$LIBS" | |
9568 | LIBS="$LIBS $LIBINTL" | |
9569 | cat >conftest.$ac_ext <<_ACEOF | |
9570 | /* confdefs.h. */ | |
9571 | _ACEOF | |
9572 | cat confdefs.h >>conftest.$ac_ext | |
9573 | cat >>conftest.$ac_ext <<_ACEOF | |
9574 | /* end confdefs.h. */ | |
9575 | #include <libintl.h> | |
00ec24d0 | 9576 | $gt_revision_test_code |
da6ee469 JF |
9577 | extern int _nl_msg_cat_cntr; |
9578 | extern | |
9579 | #ifdef __cplusplus | |
9580 | "C" | |
9581 | #endif | |
9582 | const char *_nl_expand_alias (const char *); | |
9583 | int | |
9584 | main () | |
9585 | { | |
9586 | bindtextdomain ("", ""); | |
00ec24d0 | 9587 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
da6ee469 JF |
9588 | ; |
9589 | return 0; | |
9590 | } | |
9591 | _ACEOF | |
9592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9593 | if { (ac_try="$ac_link" | |
9594 | case "(($ac_try" in | |
9595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9596 | *) ac_try_echo=$ac_try;; | |
9597 | esac | |
9598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9599 | (eval "$ac_link") 2>conftest.er1 | |
9600 | ac_status=$? | |
9601 | grep -v '^ *+' conftest.er1 >conftest.err | |
9602 | rm -f conftest.er1 | |
9603 | cat conftest.err >&5 | |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9605 | (exit $ac_status); } && { | |
9606 | test -z "$ac_c_werror_flag" || | |
9607 | test ! -s conftest.err | |
9608 | } && test -s conftest$ac_exeext && | |
9609 | $as_test_x conftest$ac_exeext; then | |
00ec24d0 | 9610 | eval "$gt_func_gnugettext_libintl=yes" |
da6ee469 JF |
9611 | else |
9612 | echo "$as_me: failed program was:" >&5 | |
9613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9614 | ||
00ec24d0 | 9615 | eval "$gt_func_gnugettext_libintl=no" |
da6ee469 JF |
9616 | fi |
9617 | ||
9618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9619 | conftest$ac_exeext conftest.$ac_ext | |
00ec24d0 | 9620 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
da6ee469 JF |
9621 | LIBS="$LIBS $LIBICONV" |
9622 | cat >conftest.$ac_ext <<_ACEOF | |
9623 | /* confdefs.h. */ | |
9624 | _ACEOF | |
9625 | cat confdefs.h >>conftest.$ac_ext | |
9626 | cat >>conftest.$ac_ext <<_ACEOF | |
9627 | /* end confdefs.h. */ | |
9628 | #include <libintl.h> | |
00ec24d0 | 9629 | $gt_revision_test_code |
da6ee469 JF |
9630 | extern int _nl_msg_cat_cntr; |
9631 | extern | |
9632 | #ifdef __cplusplus | |
9633 | "C" | |
9634 | #endif | |
9635 | const char *_nl_expand_alias (const char *); | |
9636 | int | |
9637 | main () | |
9638 | { | |
9639 | bindtextdomain ("", ""); | |
00ec24d0 | 9640 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
da6ee469 JF |
9641 | ; |
9642 | return 0; | |
9643 | } | |
9644 | _ACEOF | |
9645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9646 | if { (ac_try="$ac_link" | |
9647 | case "(($ac_try" in | |
9648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9649 | *) ac_try_echo=$ac_try;; | |
9650 | esac | |
9651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9652 | (eval "$ac_link") 2>conftest.er1 | |
9653 | ac_status=$? | |
9654 | grep -v '^ *+' conftest.er1 >conftest.err | |
9655 | rm -f conftest.er1 | |
9656 | cat conftest.err >&5 | |
9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9658 | (exit $ac_status); } && { | |
9659 | test -z "$ac_c_werror_flag" || | |
9660 | test ! -s conftest.err | |
9661 | } && test -s conftest$ac_exeext && | |
9662 | $as_test_x conftest$ac_exeext; then | |
9663 | LIBINTL="$LIBINTL $LIBICONV" | |
9664 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
00ec24d0 | 9665 | eval "$gt_func_gnugettext_libintl=yes" |
da6ee469 JF |
9666 | |
9667 | else | |
9668 | echo "$as_me: failed program was:" >&5 | |
9669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9670 | ||
9671 | ||
9672 | fi | |
9673 | ||
9674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9675 | conftest$ac_exeext conftest.$ac_ext | |
9676 | fi | |
9677 | CPPFLAGS="$gt_save_CPPFLAGS" | |
9678 | LIBS="$gt_save_LIBS" | |
9679 | fi | |
00ec24d0 JF |
9680 | ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` |
9681 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9682 | echo "${ECHO_T}$ac_res" >&6; } | |
da6ee469 JF |
9683 | fi |
9684 | ||
00ec24d0 JF |
9685 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
9686 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
da6ee469 JF |
9687 | && test "$PACKAGE" != gettext-runtime \ |
9688 | && test "$PACKAGE" != gettext-tools; }; then | |
9689 | gt_use_preinstalled_gnugettext=yes | |
9690 | else | |
9691 | LIBINTL= | |
9692 | LTLIBINTL= | |
9693 | INCINTL= | |
9694 | fi | |
9695 | ||
9696 | ||
9697 | ||
9698 | if test -n "$INTL_MACOSX_LIBS"; then | |
9699 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9700 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9701 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
9702 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
9703 | fi | |
9704 | fi | |
9705 | ||
9706 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9707 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9708 | ||
9709 | cat >>confdefs.h <<\_ACEOF | |
9710 | #define ENABLE_NLS 1 | |
9711 | _ACEOF | |
9712 | ||
9713 | else | |
9714 | USE_NLS=no | |
9715 | fi | |
9716 | fi | |
9717 | ||
9718 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 | |
9719 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } | |
9720 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
9721 | echo "${ECHO_T}$USE_NLS" >&6; } | |
9722 | if test "$USE_NLS" = "yes"; then | |
9723 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 | |
9724 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } | |
9725 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
00ec24d0 | 9726 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
da6ee469 JF |
9727 | gt_source="external libintl" |
9728 | else | |
9729 | gt_source="libc" | |
9730 | fi | |
9731 | else | |
9732 | gt_source="included intl directory" | |
9733 | fi | |
9734 | { echo "$as_me:$LINENO: result: $gt_source" >&5 | |
9735 | echo "${ECHO_T}$gt_source" >&6; } | |
9736 | fi | |
9737 | ||
9738 | if test "$USE_NLS" = "yes"; then | |
9739 | ||
9740 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
00ec24d0 | 9741 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
da6ee469 JF |
9742 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
9743 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } | |
9744 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
9745 | echo "${ECHO_T}$LIBINTL" >&6; } | |
9746 | ||
9747 | for element in $INCINTL; do | |
9748 | haveit= | |
9749 | for x in $CPPFLAGS; do | |
9750 | ||
9751 | acl_save_prefix="$prefix" | |
9752 | prefix="$acl_final_prefix" | |
9753 | acl_save_exec_prefix="$exec_prefix" | |
9754 | exec_prefix="$acl_final_exec_prefix" | |
9755 | eval x=\"$x\" | |
9756 | exec_prefix="$acl_save_exec_prefix" | |
9757 | prefix="$acl_save_prefix" | |
9758 | ||
9759 | if test "X$x" = "X$element"; then | |
9760 | haveit=yes | |
9761 | break | |
9762 | fi | |
9763 | done | |
9764 | if test -z "$haveit"; then | |
9765 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9766 | fi | |
9767 | done | |
9768 | ||
9769 | fi | |
9770 | ||
9771 | ||
9772 | cat >>confdefs.h <<\_ACEOF | |
9773 | #define HAVE_GETTEXT 1 | |
9774 | _ACEOF | |
9775 | ||
9776 | ||
9777 | cat >>confdefs.h <<\_ACEOF | |
9778 | #define HAVE_DCGETTEXT 1 | |
9779 | _ACEOF | |
9780 | ||
9781 | fi | |
9782 | ||
9783 | POSUB=po | |
9784 | fi | |
9785 | ||
9786 | ||
9787 | ||
9788 | INTLLIBS="$LIBINTL" | |
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | if test x"$USE_NLS" = "xyes"; then | |
9796 | cat >>confdefs.h <<\_ACEOF | |
9797 | #define USE_NLS 1 | |
9798 | _ACEOF | |
9799 | ||
9800 | fi | |
9801 | ||
9802 | # Extract the first word of "bash", so it can be a program name with args. | |
9803 | set dummy bash; ac_word=$2 | |
9804 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9806 | if test "${ac_cv_path_BASH+set}" = set; then | |
9807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9808 | else | |
9809 | case $BASH in | |
9810 | [\\/]* | ?:[\\/]*) | |
9811 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
9812 | ;; | |
9813 | *) | |
9814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9815 | for as_dir in $PATH | |
9816 | do | |
9817 | IFS=$as_save_IFS | |
9818 | test -z "$as_dir" && as_dir=. | |
9819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9821 | ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" | |
9822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9823 | break 2 | |
9824 | fi | |
9825 | done | |
9826 | done | |
9827 | IFS=$as_save_IFS | |
9828 | ||
9829 | ;; | |
9830 | esac | |
9831 | fi | |
9832 | BASH=$ac_cv_path_BASH | |
9833 | if test -n "$BASH"; then | |
9834 | { echo "$as_me:$LINENO: result: $BASH" >&5 | |
9835 | echo "${ECHO_T}$BASH" >&6; } | |
9836 | else | |
9837 | { echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6; } | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | ||
00ec24d0 | 9843 | ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in doc/Doxyfile" |
da6ee469 JF |
9844 | |
9845 | ac_config_commands="$ac_config_commands default" | |
9846 | ||
9847 | cat >confcache <<\_ACEOF | |
9848 | # This file is a shell script that caches the results of configure | |
9849 | # tests run on this system so they can be shared between configure | |
9850 | # scripts and configure runs, see configure's option --config-cache. | |
9851 | # It is not useful on other systems. If it contains results you don't | |
9852 | # want to keep, you may remove or edit it. | |
9853 | # | |
9854 | # config.status only pays attention to the cache file if you give it | |
9855 | # the --recheck option to rerun configure. | |
9856 | # | |
9857 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9858 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9859 | # following values. | |
9860 | ||
9861 | _ACEOF | |
9862 | ||
9863 | # The following way of writing the cache mishandles newlines in values, | |
9864 | # but we know of no workaround that is simple, portable, and efficient. | |
9865 | # So, we kill variables containing newlines. | |
9866 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9867 | # and sets the high bit in the cache file unless we assign to the vars. | |
9868 | ( | |
9869 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9870 | eval ac_val=\$$ac_var | |
9871 | case $ac_val in #( | |
9872 | *${as_nl}*) | |
9873 | case $ac_var in #( | |
9874 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
9875 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
9876 | esac | |
9877 | case $ac_var in #( | |
9878 | _ | IFS | as_nl) ;; #( | |
9879 | *) $as_unset $ac_var ;; | |
9880 | esac ;; | |
9881 | esac | |
9882 | done | |
9883 | ||
9884 | (set) 2>&1 | | |
9885 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
9886 | *${as_nl}ac_space=\ *) | |
9887 | # `set' does not quote correctly, so add quotes (double-quote | |
9888 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9889 | sed -n \ | |
9890 | "s/'/'\\\\''/g; | |
9891 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9892 | ;; #( | |
9893 | *) | |
9894 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9895 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
9896 | ;; | |
9897 | esac | | |
9898 | sort | |
9899 | ) | | |
9900 | sed ' | |
9901 | /^ac_cv_env_/b end | |
9902 | t clear | |
9903 | :clear | |
9904 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9905 | t end | |
9906 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9907 | :end' >>confcache | |
9908 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9909 | if test -w "$cache_file"; then | |
9910 | test "x$cache_file" != "x/dev/null" && | |
9911 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
9912 | echo "$as_me: updating cache $cache_file" >&6;} | |
9913 | cat confcache >$cache_file | |
9914 | else | |
9915 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
9916 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
9917 | fi | |
9918 | fi | |
9919 | rm -f confcache | |
9920 | ||
9921 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9922 | # Let make expand exec_prefix. | |
9923 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9924 | ||
9925 | DEFS=-DHAVE_CONFIG_H | |
9926 | ||
9927 | ac_libobjs= | |
9928 | ac_ltlibobjs= | |
9929 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9930 | # 1. Remove the extension, and $U if already installed. | |
9931 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
9932 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
9933 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
9934 | # will be set to the directory where LIBOBJS objects are built. | |
9935 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
9936 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
9937 | done | |
9938 | LIBOBJS=$ac_libobjs | |
9939 | ||
9940 | LTLIBOBJS=$ac_ltlibobjs | |
9941 | ||
9942 | ||
9943 | ||
9944 | : ${CONFIG_STATUS=./config.status} | |
9945 | ac_clean_files_save=$ac_clean_files | |
9946 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
9947 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
9948 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9949 | cat >$CONFIG_STATUS <<_ACEOF | |
9950 | #! $SHELL | |
9951 | # Generated by $as_me. | |
9952 | # Run this file to recreate the current configuration. | |
9953 | # Compiler output produced by configure, useful for debugging | |
9954 | # configure, is in config.log if it exists. | |
9955 | ||
9956 | debug=false | |
9957 | ac_cs_recheck=false | |
9958 | ac_cs_silent=false | |
9959 | SHELL=\${CONFIG_SHELL-$SHELL} | |
9960 | _ACEOF | |
9961 | ||
9962 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9963 | ## --------------------- ## | |
9964 | ## M4sh Initialization. ## | |
9965 | ## --------------------- ## | |
9966 | ||
9967 | # Be more Bourne compatible | |
9968 | DUALCASE=1; export DUALCASE # for MKS sh | |
9969 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
9970 | emulate sh | |
9971 | NULLCMD=: | |
9972 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
9973 | # is contrary to our usage. Disable this feature. | |
9974 | alias -g '${1+"$@"}'='"$@"' | |
9975 | setopt NO_GLOB_SUBST | |
9976 | else | |
9977 | case `(set -o) 2>/dev/null` in | |
9978 | *posix*) set -o posix ;; | |
9979 | esac | |
9980 | ||
9981 | fi | |
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | # PATH needs CR | |
9987 | # Avoid depending upon Character Ranges. | |
9988 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9989 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9990 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9991 | as_cr_digits='0123456789' | |
9992 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9993 | ||
9994 | # The user is always right. | |
9995 | if test "${PATH_SEPARATOR+set}" != set; then | |
9996 | echo "#! /bin/sh" >conf$$.sh | |
9997 | echo "exit 0" >>conf$$.sh | |
9998 | chmod +x conf$$.sh | |
9999 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10000 | PATH_SEPARATOR=';' | |
10001 | else | |
10002 | PATH_SEPARATOR=: | |
10003 | fi | |
10004 | rm -f conf$$.sh | |
10005 | fi | |
10006 | ||
10007 | # Support unset when possible. | |
10008 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10009 | as_unset=unset | |
10010 | else | |
10011 | as_unset=false | |
10012 | fi | |
10013 | ||
10014 | ||
10015 | # IFS | |
10016 | # We need space, tab and new line, in precisely that order. Quoting is | |
10017 | # there to prevent editors from complaining about space-tab. | |
10018 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10019 | # splitting by setting IFS to empty value.) | |
10020 | as_nl=' | |
10021 | ' | |
10022 | IFS=" "" $as_nl" | |
10023 | ||
10024 | # Find who we are. Look in the path if we contain no directory separator. | |
10025 | case $0 in | |
10026 | *[\\/]* ) as_myself=$0 ;; | |
10027 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10028 | for as_dir in $PATH | |
10029 | do | |
10030 | IFS=$as_save_IFS | |
10031 | test -z "$as_dir" && as_dir=. | |
10032 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10033 | done | |
10034 | IFS=$as_save_IFS | |
10035 | ||
10036 | ;; | |
10037 | esac | |
10038 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10039 | # in which case we are not to be found in the path. | |
10040 | if test "x$as_myself" = x; then | |
10041 | as_myself=$0 | |
10042 | fi | |
10043 | if test ! -f "$as_myself"; then | |
10044 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10045 | { (exit 1); exit 1; } | |
10046 | fi | |
10047 | ||
10048 | # Work around bugs in pre-3.0 UWIN ksh. | |
10049 | for as_var in ENV MAIL MAILPATH | |
10050 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
10051 | done | |
10052 | PS1='$ ' | |
10053 | PS2='> ' | |
10054 | PS4='+ ' | |
10055 | ||
10056 | # NLS nuisances. | |
10057 | for as_var in \ | |
10058 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10059 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10060 | LC_TELEPHONE LC_TIME | |
10061 | do | |
10062 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
10063 | eval $as_var=C; export $as_var | |
10064 | else | |
10065 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
10066 | fi | |
10067 | done | |
10068 | ||
10069 | # Required to use basename. | |
10070 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10071 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10072 | as_expr=expr | |
10073 | else | |
10074 | as_expr=false | |
10075 | fi | |
10076 | ||
10077 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10078 | as_basename=basename | |
10079 | else | |
10080 | as_basename=false | |
10081 | fi | |
10082 | ||
10083 | ||
10084 | # Name of the executable. | |
10085 | as_me=`$as_basename -- "$0" || | |
10086 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10087 | X"$0" : 'X\(//\)$' \| \ | |
10088 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10089 | echo X/"$0" | | |
10090 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10091 | s//\1/ | |
10092 | q | |
10093 | } | |
10094 | /^X\/\(\/\/\)$/{ | |
10095 | s//\1/ | |
10096 | q | |
10097 | } | |
10098 | /^X\/\(\/\).*/{ | |
10099 | s//\1/ | |
10100 | q | |
10101 | } | |
10102 | s/.*/./; q'` | |
10103 | ||
10104 | # CDPATH. | |
10105 | $as_unset CDPATH | |
10106 | ||
10107 | ||
10108 | ||
10109 | as_lineno_1=$LINENO | |
10110 | as_lineno_2=$LINENO | |
10111 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10112 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
10113 | ||
10114 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
10115 | # uniformly replaced by the line number. The first 'sed' inserts a | |
10116 | # line-number line after each line using $LINENO; the second 'sed' | |
10117 | # does the real work. The second script uses 'N' to pair each | |
10118 | # line-number line with the line containing $LINENO, and appends | |
10119 | # trailing '-' during substitution so that $LINENO is not a special | |
10120 | # case at line end. | |
10121 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
10122 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
10123 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
10124 | sed -n ' | |
10125 | p | |
10126 | /[$]LINENO/= | |
10127 | ' <$as_myself | | |
10128 | sed ' | |
10129 | s/[$]LINENO.*/&-/ | |
10130 | t lineno | |
10131 | b | |
10132 | :lineno | |
10133 | N | |
10134 | :loop | |
10135 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
10136 | t loop | |
10137 | s/-\n.*// | |
10138 | ' >$as_me.lineno && | |
10139 | chmod +x "$as_me.lineno" || | |
10140 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
10141 | { (exit 1); exit 1; }; } | |
10142 | ||
10143 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10144 | # (the dirname of $[0] is not the place where we might find the | |
10145 | # original and so on. Autoconf is especially sensitive to this). | |
10146 | . "./$as_me.lineno" | |
10147 | # Exit status is that of the last command. | |
10148 | exit | |
10149 | } | |
10150 | ||
10151 | ||
10152 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10153 | as_dirname=dirname | |
10154 | else | |
10155 | as_dirname=false | |
10156 | fi | |
10157 | ||
10158 | ECHO_C= ECHO_N= ECHO_T= | |
10159 | case `echo -n x` in | |
10160 | -n*) | |
10161 | case `echo 'x\c'` in | |
10162 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10163 | *) ECHO_C='\c';; | |
10164 | esac;; | |
10165 | *) | |
10166 | ECHO_N='-n';; | |
10167 | esac | |
10168 | ||
10169 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10170 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10171 | as_expr=expr | |
10172 | else | |
10173 | as_expr=false | |
10174 | fi | |
10175 | ||
10176 | rm -f conf$$ conf$$.exe conf$$.file | |
10177 | if test -d conf$$.dir; then | |
10178 | rm -f conf$$.dir/conf$$.file | |
10179 | else | |
10180 | rm -f conf$$.dir | |
10181 | mkdir conf$$.dir | |
10182 | fi | |
10183 | echo >conf$$.file | |
10184 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10185 | as_ln_s='ln -s' | |
10186 | # ... but there are two gotchas: | |
10187 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10188 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10189 | # In both cases, we have to default to `cp -p'. | |
10190 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10191 | as_ln_s='cp -p' | |
10192 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10193 | as_ln_s=ln | |
10194 | else | |
10195 | as_ln_s='cp -p' | |
10196 | fi | |
10197 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10198 | rmdir conf$$.dir 2>/dev/null | |
10199 | ||
10200 | if mkdir -p . 2>/dev/null; then | |
10201 | as_mkdir_p=: | |
10202 | else | |
10203 | test -d ./-p && rmdir ./-p | |
10204 | as_mkdir_p=false | |
10205 | fi | |
10206 | ||
10207 | if test -x / >/dev/null 2>&1; then | |
10208 | as_test_x='test -x' | |
10209 | else | |
10210 | if ls -dL / >/dev/null 2>&1; then | |
10211 | as_ls_L_option=L | |
10212 | else | |
10213 | as_ls_L_option= | |
10214 | fi | |
10215 | as_test_x=' | |
10216 | eval sh -c '\'' | |
10217 | if test -d "$1"; then | |
10218 | test -d "$1/."; | |
10219 | else | |
10220 | case $1 in | |
10221 | -*)set "./$1";; | |
10222 | esac; | |
10223 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
10224 | ???[sx]*):;;*)false;;esac;fi | |
10225 | '\'' sh | |
10226 | ' | |
10227 | fi | |
10228 | as_executable_p=$as_test_x | |
10229 | ||
10230 | # Sed expression to map a string onto a valid CPP name. | |
10231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10232 | ||
10233 | # Sed expression to map a string onto a valid variable name. | |
10234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10235 | ||
10236 | ||
10237 | exec 6>&1 | |
10238 | ||
10239 | # Save the log message, to keep $[0] and so on meaningful, and to | |
10240 | # report actual input values of CONFIG_FILES etc. instead of their | |
10241 | # values after options handling. | |
10242 | ac_log=" | |
10243 | This file was extended by $as_me, which was | |
10244 | generated by GNU Autoconf 2.61. Invocation command line was | |
10245 | ||
10246 | CONFIG_FILES = $CONFIG_FILES | |
10247 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10248 | CONFIG_LINKS = $CONFIG_LINKS | |
10249 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10250 | $ $0 $@ | |
10251 | ||
10252 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10253 | " | |
10254 | ||
10255 | _ACEOF | |
10256 | ||
10257 | cat >>$CONFIG_STATUS <<_ACEOF | |
10258 | # Files that config.status was made for. | |
10259 | config_files="$ac_config_files" | |
10260 | config_headers="$ac_config_headers" | |
10261 | config_commands="$ac_config_commands" | |
10262 | ||
10263 | _ACEOF | |
10264 | ||
10265 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10266 | ac_cs_usage="\ | |
10267 | \`$as_me' instantiates files from templates according to the | |
10268 | current configuration. | |
10269 | ||
10270 | Usage: $0 [OPTIONS] [FILE]... | |
10271 | ||
10272 | -h, --help print this help, then exit | |
10273 | -V, --version print version number and configuration settings, then exit | |
10274 | -q, --quiet do not print progress messages | |
10275 | -d, --debug don't remove temporary files | |
10276 | --recheck update $as_me by reconfiguring in the same conditions | |
10277 | --file=FILE[:TEMPLATE] | |
10278 | instantiate the configuration file FILE | |
10279 | --header=FILE[:TEMPLATE] | |
10280 | instantiate the configuration header FILE | |
10281 | ||
10282 | Configuration files: | |
10283 | $config_files | |
10284 | ||
10285 | Configuration headers: | |
10286 | $config_headers | |
10287 | ||
10288 | Configuration commands: | |
10289 | $config_commands | |
10290 | ||
10291 | Report bugs to <bug-autoconf@gnu.org>." | |
10292 | ||
10293 | _ACEOF | |
10294 | cat >>$CONFIG_STATUS <<_ACEOF | |
10295 | ac_cs_version="\\ | |
10296 | config.status | |
10297 | configured by $0, generated by GNU Autoconf 2.61, | |
10298 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
10299 | ||
10300 | Copyright (C) 2006 Free Software Foundation, Inc. | |
10301 | This config.status script is free software; the Free Software Foundation | |
10302 | gives unlimited permission to copy, distribute and modify it." | |
10303 | ||
10304 | ac_pwd='$ac_pwd' | |
10305 | srcdir='$srcdir' | |
10306 | INSTALL='$INSTALL' | |
00ec24d0 | 10307 | MKDIR_P='$MKDIR_P' |
da6ee469 JF |
10308 | _ACEOF |
10309 | ||
10310 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10311 | # If no file are specified by the user, then we need to provide default | |
10312 | # value. By we need to know if files were specified by the user. | |
10313 | ac_need_defaults=: | |
10314 | while test $# != 0 | |
10315 | do | |
10316 | case $1 in | |
10317 | --*=*) | |
10318 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10319 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10320 | ac_shift=: | |
10321 | ;; | |
10322 | *) | |
10323 | ac_option=$1 | |
10324 | ac_optarg=$2 | |
10325 | ac_shift=shift | |
10326 | ;; | |
10327 | esac | |
10328 | ||
10329 | case $ac_option in | |
10330 | # Handling of the options. | |
10331 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10332 | ac_cs_recheck=: ;; | |
10333 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
10334 | echo "$ac_cs_version"; exit ;; | |
10335 | --debug | --debu | --deb | --de | --d | -d ) | |
10336 | debug=: ;; | |
10337 | --file | --fil | --fi | --f ) | |
10338 | $ac_shift | |
10339 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10340 | ac_need_defaults=false;; | |
10341 | --header | --heade | --head | --hea ) | |
10342 | $ac_shift | |
10343 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
10344 | ac_need_defaults=false;; | |
10345 | --he | --h) | |
10346 | # Conflict between --help and --header | |
10347 | { echo "$as_me: error: ambiguous option: $1 | |
10348 | Try \`$0 --help' for more information." >&2 | |
10349 | { (exit 1); exit 1; }; };; | |
10350 | --help | --hel | -h ) | |
10351 | echo "$ac_cs_usage"; exit ;; | |
10352 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10353 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10354 | ac_cs_silent=: ;; | |
10355 | ||
10356 | # This is an error. | |
10357 | -*) { echo "$as_me: error: unrecognized option: $1 | |
10358 | Try \`$0 --help' for more information." >&2 | |
10359 | { (exit 1); exit 1; }; } ;; | |
10360 | ||
10361 | *) ac_config_targets="$ac_config_targets $1" | |
10362 | ac_need_defaults=false ;; | |
10363 | ||
10364 | esac | |
10365 | shift | |
10366 | done | |
10367 | ||
10368 | ac_configure_extra_args= | |
10369 | ||
10370 | if $ac_cs_silent; then | |
10371 | exec 6>/dev/null | |
10372 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10373 | fi | |
10374 | ||
10375 | _ACEOF | |
10376 | cat >>$CONFIG_STATUS <<_ACEOF | |
10377 | if \$ac_cs_recheck; then | |
10378 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
10379 | CONFIG_SHELL=$SHELL | |
10380 | export CONFIG_SHELL | |
10381 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10382 | fi | |
10383 | ||
10384 | _ACEOF | |
10385 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10386 | exec 5>>config.log | |
10387 | { | |
10388 | echo | |
10389 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10390 | ## Running $as_me. ## | |
10391 | _ASBOX | |
10392 | echo "$ac_log" | |
10393 | } >&5 | |
10394 | ||
10395 | _ACEOF | |
10396 | cat >>$CONFIG_STATUS <<_ACEOF | |
10397 | # | |
10398 | # INIT-COMMANDS | |
10399 | # | |
10400 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
10401 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
10402 | # from automake < 1.5. | |
10403 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
10404 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
10405 | LINGUAS="${LINGUAS-%UNSET%}" | |
10406 | ||
10407 | ||
10408 | _ACEOF | |
10409 | ||
10410 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10411 | ||
10412 | # Handling of arguments. | |
10413 | for ac_config_target in $ac_config_targets | |
10414 | do | |
10415 | case $ac_config_target in | |
10416 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;; | |
10417 | "include/apti18n.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apti18n.h:buildlib/apti18n.h.in" ;; | |
10418 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; | |
10419 | "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;; | |
10420 | "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;; | |
00ec24d0 | 10421 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; |
da6ee469 JF |
10422 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
10423 | ||
10424 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
10425 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10426 | { (exit 1); exit 1; }; };; | |
10427 | esac | |
10428 | done | |
10429 | ||
10430 | ||
10431 | # If the user did not use the arguments to specify the items to instantiate, | |
10432 | # then the envvar interface is used. Set only those that are not. | |
10433 | # We use the long form for the default assignment because of an extremely | |
10434 | # bizarre bug on SunOS 4.1.3. | |
10435 | if $ac_need_defaults; then | |
10436 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10437 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10438 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
10439 | fi | |
10440 | ||
10441 | # Have a temporary directory for convenience. Make it in the build tree | |
10442 | # simply because there is no reason against having it here, and in addition, | |
10443 | # creating and moving files from /tmp can sometimes cause problems. | |
10444 | # Hook for its removal unless debugging. | |
10445 | # Note that there is a small window in which the directory will not be cleaned: | |
10446 | # after its creation but before its name has been assigned to `$tmp'. | |
10447 | $debug || | |
10448 | { | |
10449 | tmp= | |
10450 | trap 'exit_status=$? | |
10451 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10452 | ' 0 | |
10453 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
10454 | } | |
10455 | # Create a (secure) tmp directory for tmp files. | |
10456 | ||
10457 | { | |
10458 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10459 | test -n "$tmp" && test -d "$tmp" | |
10460 | } || | |
10461 | { | |
10462 | tmp=./conf$$-$RANDOM | |
10463 | (umask 077 && mkdir "$tmp") | |
10464 | } || | |
10465 | { | |
10466 | echo "$me: cannot create a temporary directory in ." >&2 | |
10467 | { (exit 1); exit 1; } | |
10468 | } | |
10469 | ||
10470 | # | |
10471 | # Set up the sed scripts for CONFIG_FILES section. | |
10472 | # | |
10473 | ||
10474 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10475 | # This happens for instance when ./config.status config.h | |
10476 | if test -n "$CONFIG_FILES"; then | |
10477 | ||
10478 | _ACEOF | |
10479 | ||
10480 | ||
10481 | ||
10482 | ac_delim='%!_!# ' | |
10483 | for ac_last_try in false false false false false :; do | |
10484 | cat >conf$$subs.sed <<_ACEOF | |
10485 | SHELL!$SHELL$ac_delim | |
10486 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
10487 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
10488 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
10489 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
10490 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
10491 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
10492 | exec_prefix!$exec_prefix$ac_delim | |
10493 | prefix!$prefix$ac_delim | |
10494 | program_transform_name!$program_transform_name$ac_delim | |
10495 | bindir!$bindir$ac_delim | |
10496 | sbindir!$sbindir$ac_delim | |
10497 | libexecdir!$libexecdir$ac_delim | |
10498 | datarootdir!$datarootdir$ac_delim | |
10499 | datadir!$datadir$ac_delim | |
10500 | sysconfdir!$sysconfdir$ac_delim | |
10501 | sharedstatedir!$sharedstatedir$ac_delim | |
10502 | localstatedir!$localstatedir$ac_delim | |
10503 | includedir!$includedir$ac_delim | |
10504 | oldincludedir!$oldincludedir$ac_delim | |
10505 | docdir!$docdir$ac_delim | |
10506 | infodir!$infodir$ac_delim | |
10507 | htmldir!$htmldir$ac_delim | |
10508 | dvidir!$dvidir$ac_delim | |
10509 | pdfdir!$pdfdir$ac_delim | |
10510 | psdir!$psdir$ac_delim | |
10511 | libdir!$libdir$ac_delim | |
10512 | localedir!$localedir$ac_delim | |
10513 | mandir!$mandir$ac_delim | |
10514 | DEFS!$DEFS$ac_delim | |
10515 | ECHO_C!$ECHO_C$ac_delim | |
10516 | ECHO_N!$ECHO_N$ac_delim | |
10517 | ECHO_T!$ECHO_T$ac_delim | |
10518 | LIBS!$LIBS$ac_delim | |
10519 | build_alias!$build_alias$ac_delim | |
10520 | host_alias!$host_alias$ac_delim | |
10521 | target_alias!$target_alias$ac_delim | |
10522 | PACKAGE!$PACKAGE$ac_delim | |
10523 | build!$build$ac_delim | |
10524 | build_cpu!$build_cpu$ac_delim | |
10525 | build_vendor!$build_vendor$ac_delim | |
10526 | build_os!$build_os$ac_delim | |
10527 | host!$host$ac_delim | |
10528 | host_cpu!$host_cpu$ac_delim | |
10529 | host_vendor!$host_vendor$ac_delim | |
10530 | host_os!$host_os$ac_delim | |
10531 | target!$target$ac_delim | |
10532 | target_cpu!$target_cpu$ac_delim | |
10533 | target_vendor!$target_vendor$ac_delim | |
10534 | target_os!$target_os$ac_delim | |
10535 | CC!$CC$ac_delim | |
10536 | CFLAGS!$CFLAGS$ac_delim | |
10537 | LDFLAGS!$LDFLAGS$ac_delim | |
10538 | CPPFLAGS!$CPPFLAGS$ac_delim | |
10539 | ac_ct_CC!$ac_ct_CC$ac_delim | |
10540 | EXEEXT!$EXEEXT$ac_delim | |
10541 | OBJEXT!$OBJEXT$ac_delim | |
10542 | CXX!$CXX$ac_delim | |
10543 | CXXFLAGS!$CXXFLAGS$ac_delim | |
10544 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
10545 | CPP!$CPP$ac_delim | |
10546 | RANLIB!$RANLIB$ac_delim | |
10547 | AR!$AR$ac_delim | |
10548 | SOCKETLIBS!$SOCKETLIBS$ac_delim | |
10549 | PTHREADLIB!$PTHREADLIB$ac_delim | |
10550 | GREP!$GREP$ac_delim | |
10551 | EGREP!$EGREP$ac_delim | |
10552 | BDBLIB!$BDBLIB$ac_delim | |
10553 | HAVE_STATVFS!$HAVE_STATVFS$ac_delim | |
10554 | HAVE_TIMEGM!$HAVE_TIMEGM$ac_delim | |
10555 | HAVE_C9X!$HAVE_C9X$ac_delim | |
10556 | NEED_SOCKLEN_T_DEFINE!$NEED_SOCKLEN_T_DEFINE$ac_delim | |
10557 | DEBIANDOC_HTML!$DEBIANDOC_HTML$ac_delim | |
10558 | DEBIANDOC_TEXT!$DEBIANDOC_TEXT$ac_delim | |
00ec24d0 | 10559 | DOXYGEN!$DOXYGEN$ac_delim |
da6ee469 JF |
10560 | DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim |
10561 | XMLTO!$XMLTO$ac_delim | |
00ec24d0 JF |
10562 | HAVE_DOT!$HAVE_DOT$ac_delim |
10563 | DOT!$DOT$ac_delim | |
10564 | DOTDIR!$DOTDIR$ac_delim | |
da6ee469 JF |
10565 | GETCONF!$GETCONF$ac_delim |
10566 | NUM_CPUS!$NUM_CPUS$ac_delim | |
10567 | PROC_MULTIPLY!$PROC_MULTIPLY$ac_delim | |
10568 | NUM_PROCS!$NUM_PROCS$ac_delim | |
10569 | GLIBC_VER!$GLIBC_VER$ac_delim | |
10570 | LIBSTDCPP_VER!$LIBSTDCPP_VER$ac_delim | |
10571 | GCC3DEP!$GCC3DEP$ac_delim | |
10572 | SET_MAKE!$SET_MAKE$ac_delim | |
10573 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
10574 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
10575 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
10576 | mkdir_p!$mkdir_p$ac_delim | |
10577 | USE_NLS!$USE_NLS$ac_delim | |
00ec24d0 | 10578 | GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim |
da6ee469 JF |
10579 | MSGFMT!$MSGFMT$ac_delim |
10580 | GMSGFMT!$GMSGFMT$ac_delim | |
10581 | MSGFMT_015!$MSGFMT_015$ac_delim | |
da6ee469 JF |
10582 | _ACEOF |
10583 | ||
10584 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
10585 | break | |
10586 | elif $ac_last_try; then | |
10587 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10588 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10589 | { (exit 1); exit 1; }; } | |
10590 | else | |
10591 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10592 | fi | |
10593 | done | |
10594 | ||
10595 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
10596 | if test -n "$ac_eof"; then | |
10597 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10598 | ac_eof=`expr $ac_eof + 1` | |
10599 | fi | |
10600 | ||
10601 | cat >>$CONFIG_STATUS <<_ACEOF | |
10602 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
10603 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10604 | _ACEOF | |
10605 | sed ' | |
10606 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10607 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10608 | :n | |
10609 | t n | |
10610 | s/'"$ac_delim"'$/,g/; t | |
10611 | s/$/\\/; p | |
10612 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10613 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10614 | rm -f conf$$subs.sed | |
10615 | cat >>$CONFIG_STATUS <<_ACEOF | |
10616 | CEOF$ac_eof | |
10617 | _ACEOF | |
10618 | ||
10619 | ||
10620 | ac_delim='%!_!# ' | |
10621 | for ac_last_try in false false false false false :; do | |
10622 | cat >conf$$subs.sed <<_ACEOF | |
00ec24d0 JF |
10623 | GMSGFMT_015!$GMSGFMT_015$ac_delim |
10624 | XGETTEXT!$XGETTEXT$ac_delim | |
10625 | XGETTEXT_015!$XGETTEXT_015$ac_delim | |
10626 | MSGMERGE!$MSGMERGE$ac_delim | |
10627 | XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim | |
10628 | INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim | |
da6ee469 JF |
10629 | LIBICONV!$LIBICONV$ac_delim |
10630 | LTLIBICONV!$LTLIBICONV$ac_delim | |
10631 | INTLLIBS!$INTLLIBS$ac_delim | |
10632 | LIBINTL!$LIBINTL$ac_delim | |
10633 | LTLIBINTL!$LTLIBINTL$ac_delim | |
10634 | POSUB!$POSUB$ac_delim | |
10635 | BASH!$BASH$ac_delim | |
10636 | LIBOBJS!$LIBOBJS$ac_delim | |
10637 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
10638 | _ACEOF | |
10639 | ||
00ec24d0 | 10640 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then |
da6ee469 JF |
10641 | break |
10642 | elif $ac_last_try; then | |
10643 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10644 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10645 | { (exit 1); exit 1; }; } | |
10646 | else | |
10647 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10648 | fi | |
10649 | done | |
10650 | ||
10651 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
10652 | if test -n "$ac_eof"; then | |
10653 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10654 | ac_eof=`expr $ac_eof + 1` | |
10655 | fi | |
10656 | ||
10657 | cat >>$CONFIG_STATUS <<_ACEOF | |
10658 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
10659 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
10660 | _ACEOF | |
10661 | sed ' | |
10662 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10663 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10664 | :n | |
10665 | t n | |
10666 | s/'"$ac_delim"'$/,g/; t | |
10667 | s/$/\\/; p | |
10668 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10669 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10670 | rm -f conf$$subs.sed | |
10671 | cat >>$CONFIG_STATUS <<_ACEOF | |
10672 | :end | |
10673 | s/|#_!!_#|//g | |
10674 | CEOF$ac_eof | |
10675 | _ACEOF | |
10676 | ||
10677 | ||
10678 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
10679 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10680 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10681 | # (actually we leave an empty line to preserve line numbers). | |
10682 | if test "x$srcdir" = x.; then | |
10683 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10684 | s/:*\$(srcdir):*/:/ | |
10685 | s/:*\${srcdir}:*/:/ | |
10686 | s/:*@srcdir@:*/:/ | |
10687 | s/^\([^=]*=[ ]*\):*/\1/ | |
10688 | s/:*$// | |
10689 | s/^[^=]*=[ ]*$// | |
10690 | }' | |
10691 | fi | |
10692 | ||
10693 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10694 | fi # test -n "$CONFIG_FILES" | |
10695 | ||
10696 | ||
10697 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
10698 | do | |
10699 | case $ac_tag in | |
10700 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10701 | esac | |
10702 | case $ac_mode$ac_tag in | |
10703 | :[FHL]*:*);; | |
10704 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
10705 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
10706 | { (exit 1); exit 1; }; };; | |
10707 | :[FH]-) ac_tag=-:-;; | |
10708 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10709 | esac | |
10710 | ac_save_IFS=$IFS | |
10711 | IFS=: | |
10712 | set x $ac_tag | |
10713 | IFS=$ac_save_IFS | |
10714 | shift | |
10715 | ac_file=$1 | |
10716 | shift | |
10717 | ||
10718 | case $ac_mode in | |
10719 | :L) ac_source=$1;; | |
10720 | :[FH]) | |
10721 | ac_file_inputs= | |
10722 | for ac_f | |
10723 | do | |
10724 | case $ac_f in | |
10725 | -) ac_f="$tmp/stdin";; | |
10726 | *) # Look for the file first in the build tree, then in the source tree | |
10727 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10728 | # because $ac_f cannot contain `:'. | |
10729 | test -f "$ac_f" || | |
10730 | case $ac_f in | |
10731 | [\\/$]*) false;; | |
10732 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10733 | esac || | |
10734 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
10735 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
10736 | { (exit 1); exit 1; }; };; | |
10737 | esac | |
10738 | ac_file_inputs="$ac_file_inputs $ac_f" | |
10739 | done | |
10740 | ||
10741 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10742 | # use $as_me), people would be surprised to read: | |
10743 | # /* config.h. Generated by config.status. */ | |
10744 | configure_input="Generated from "`IFS=: | |
10745 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
10746 | if test x"$ac_file" != x-; then | |
10747 | configure_input="$ac_file. $configure_input" | |
10748 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
10749 | echo "$as_me: creating $ac_file" >&6;} | |
10750 | fi | |
10751 | ||
10752 | case $ac_tag in | |
10753 | *:-:* | *:-) cat >"$tmp/stdin";; | |
10754 | esac | |
10755 | ;; | |
10756 | esac | |
10757 | ||
10758 | ac_dir=`$as_dirname -- "$ac_file" || | |
10759 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10760 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10761 | X"$ac_file" : 'X\(//\)$' \| \ | |
10762 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
10763 | echo X"$ac_file" | | |
10764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10765 | s//\1/ | |
10766 | q | |
10767 | } | |
10768 | /^X\(\/\/\)[^/].*/{ | |
10769 | s//\1/ | |
10770 | q | |
10771 | } | |
10772 | /^X\(\/\/\)$/{ | |
10773 | s//\1/ | |
10774 | q | |
10775 | } | |
10776 | /^X\(\/\).*/{ | |
10777 | s//\1/ | |
10778 | q | |
10779 | } | |
10780 | s/.*/./; q'` | |
10781 | { as_dir="$ac_dir" | |
10782 | case $as_dir in #( | |
10783 | -*) as_dir=./$as_dir;; | |
10784 | esac | |
10785 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10786 | as_dirs= | |
10787 | while :; do | |
10788 | case $as_dir in #( | |
10789 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
10790 | *) as_qdir=$as_dir;; | |
10791 | esac | |
10792 | as_dirs="'$as_qdir' $as_dirs" | |
10793 | as_dir=`$as_dirname -- "$as_dir" || | |
10794 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10795 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10796 | X"$as_dir" : 'X\(//\)$' \| \ | |
10797 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10798 | echo X"$as_dir" | | |
10799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10800 | s//\1/ | |
10801 | q | |
10802 | } | |
10803 | /^X\(\/\/\)[^/].*/{ | |
10804 | s//\1/ | |
10805 | q | |
10806 | } | |
10807 | /^X\(\/\/\)$/{ | |
10808 | s//\1/ | |
10809 | q | |
10810 | } | |
10811 | /^X\(\/\).*/{ | |
10812 | s//\1/ | |
10813 | q | |
10814 | } | |
10815 | s/.*/./; q'` | |
10816 | test -d "$as_dir" && break | |
10817 | done | |
10818 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10819 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
10820 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
10821 | { (exit 1); exit 1; }; }; } | |
10822 | ac_builddir=. | |
10823 | ||
10824 | case "$ac_dir" in | |
10825 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10826 | *) | |
10827 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
10828 | # A ".." for each directory in $ac_dir_suffix. | |
10829 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
10830 | case $ac_top_builddir_sub in | |
10831 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10832 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10833 | esac ;; | |
10834 | esac | |
10835 | ac_abs_top_builddir=$ac_pwd | |
10836 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10837 | # for backward compatibility: | |
10838 | ac_top_builddir=$ac_top_build_prefix | |
10839 | ||
10840 | case $srcdir in | |
10841 | .) # We are building in place. | |
10842 | ac_srcdir=. | |
10843 | ac_top_srcdir=$ac_top_builddir_sub | |
10844 | ac_abs_top_srcdir=$ac_pwd ;; | |
10845 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10846 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10847 | ac_top_srcdir=$srcdir | |
10848 | ac_abs_top_srcdir=$srcdir ;; | |
10849 | *) # Relative name. | |
10850 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10851 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10852 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10853 | esac | |
10854 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10855 | ||
10856 | ||
10857 | case $ac_mode in | |
10858 | :F) | |
10859 | # | |
10860 | # CONFIG_FILE | |
10861 | # | |
10862 | ||
10863 | case $INSTALL in | |
10864 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
10865 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
10866 | esac | |
00ec24d0 JF |
10867 | ac_MKDIR_P=$MKDIR_P |
10868 | case $MKDIR_P in | |
10869 | [\\/$]* | ?:[\\/]* ) ;; | |
10870 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
10871 | esac | |
da6ee469 JF |
10872 | _ACEOF |
10873 | ||
10874 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10875 | # If the template does not know about datarootdir, expand it. | |
10876 | # FIXME: This hack should be removed a few years after 2.60. | |
10877 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
10878 | ||
10879 | case `sed -n '/datarootdir/ { | |
10880 | p | |
10881 | q | |
10882 | } | |
10883 | /@datadir@/p | |
10884 | /@docdir@/p | |
10885 | /@infodir@/p | |
10886 | /@localedir@/p | |
10887 | /@mandir@/p | |
10888 | ' $ac_file_inputs` in | |
10889 | *datarootdir*) ac_datarootdir_seen=yes;; | |
10890 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
10891 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
10892 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
10893 | _ACEOF | |
10894 | cat >>$CONFIG_STATUS <<_ACEOF | |
10895 | ac_datarootdir_hack=' | |
10896 | s&@datadir@&$datadir&g | |
10897 | s&@docdir@&$docdir&g | |
10898 | s&@infodir@&$infodir&g | |
10899 | s&@localedir@&$localedir&g | |
10900 | s&@mandir@&$mandir&g | |
10901 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
10902 | esac | |
10903 | _ACEOF | |
10904 | ||
10905 | # Neutralize VPATH when `$srcdir' = `.'. | |
10906 | # Shell code in configure.ac might set extrasub. | |
10907 | # FIXME: do we really want to maintain this feature? | |
10908 | cat >>$CONFIG_STATUS <<_ACEOF | |
10909 | sed "$ac_vpsub | |
10910 | $extrasub | |
10911 | _ACEOF | |
10912 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10913 | :t | |
10914 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10915 | s&@configure_input@&$configure_input&;t t | |
10916 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
10917 | s&@srcdir@&$ac_srcdir&;t t | |
10918 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10919 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10920 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10921 | s&@builddir@&$ac_builddir&;t t | |
10922 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10923 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10924 | s&@INSTALL@&$ac_INSTALL&;t t | |
00ec24d0 | 10925 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
da6ee469 JF |
10926 | $ac_datarootdir_hack |
10927 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
10928 | ||
10929 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10930 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
10931 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
10932 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
10933 | which seems to be undefined. Please make sure it is defined." >&5 | |
10934 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
10935 | which seems to be undefined. Please make sure it is defined." >&2;} | |
10936 | ||
10937 | rm -f "$tmp/stdin" | |
10938 | case $ac_file in | |
10939 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
10940 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
10941 | esac | |
10942 | ;; | |
10943 | :H) | |
10944 | # | |
10945 | # CONFIG_HEADER | |
10946 | # | |
10947 | _ACEOF | |
10948 | ||
10949 | # Transform confdefs.h into a sed script `conftest.defines', that | |
10950 | # substitutes the proper values into config.h.in to produce config.h. | |
10951 | rm -f conftest.defines conftest.tail | |
10952 | # First, append a space to every undef/define line, to ease matching. | |
10953 | echo 's/$/ /' >conftest.defines | |
10954 | # Then, protect against being on the right side of a sed subst, or in | |
10955 | # an unquoted here document, in config.status. If some macros were | |
10956 | # called several times there might be several #defines for the same | |
10957 | # symbol, which is useless. But do not sort them, since the last | |
10958 | # AC_DEFINE must be honored. | |
10959 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10960 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
10961 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
10962 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
10963 | # just an empty string. | |
10964 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
10965 | ac_dB='\\)[ (].*,\\1define\\2' | |
10966 | ac_dC=' ' | |
10967 | ac_dD=' ,' | |
10968 | ||
10969 | uniq confdefs.h | | |
10970 | sed -n ' | |
10971 | t rset | |
10972 | :rset | |
10973 | s/^[ ]*#[ ]*define[ ][ ]*// | |
10974 | t ok | |
10975 | d | |
10976 | :ok | |
10977 | s/[\\&,]/\\&/g | |
10978 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
10979 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
10980 | ' >>conftest.defines | |
10981 | ||
10982 | # Remove the space that was appended to ease matching. | |
10983 | # Then replace #undef with comments. This is necessary, for | |
10984 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
10985 | # on some systems where configure will not decide to define it. | |
10986 | # (The regexp can be short, since the line contains either #define or #undef.) | |
10987 | echo 's/ $// | |
10988 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
10989 | ||
10990 | # Break up conftest.defines: | |
10991 | ac_max_sed_lines=50 | |
10992 | ||
10993 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
10994 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
10995 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
10996 | # et cetera. | |
10997 | ac_in='$ac_file_inputs' | |
10998 | ac_out='"$tmp/out1"' | |
10999 | ac_nxt='"$tmp/out2"' | |
11000 | ||
11001 | while : | |
11002 | do | |
11003 | # Write a here document: | |
11004 | cat >>$CONFIG_STATUS <<_ACEOF | |
11005 | # First, check the format of the line: | |
11006 | cat >"\$tmp/defines.sed" <<\\CEOF | |
11007 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
11008 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
11009 | b | |
11010 | :def | |
11011 | _ACEOF | |
11012 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
11013 | echo 'CEOF | |
11014 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
11015 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
11016 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
11017 | grep . conftest.tail >/dev/null || break | |
11018 | rm -f conftest.defines | |
11019 | mv conftest.tail conftest.defines | |
11020 | done | |
11021 | rm -f conftest.defines conftest.tail | |
11022 | ||
11023 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
11024 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11025 | if test x"$ac_file" != x-; then | |
11026 | echo "/* $configure_input */" >"$tmp/config.h" | |
11027 | cat "$ac_result" >>"$tmp/config.h" | |
11028 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
11029 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
11030 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11031 | else | |
11032 | rm -f $ac_file | |
11033 | mv "$tmp/config.h" $ac_file | |
11034 | fi | |
11035 | else | |
11036 | echo "/* $configure_input */" | |
11037 | cat "$ac_result" | |
11038 | fi | |
11039 | rm -f "$tmp/out12" | |
11040 | ;; | |
11041 | ||
11042 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
11043 | echo "$as_me: executing $ac_file commands" >&6;} | |
11044 | ;; | |
11045 | esac | |
11046 | ||
11047 | ||
11048 | case $ac_file$ac_mode in | |
11049 | "po-directories":C) | |
11050 | for ac_file in $CONFIG_FILES; do | |
11051 | # Support "outfile[:infile[:infile...]]" | |
11052 | case "$ac_file" in | |
11053 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
11054 | esac | |
11055 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
11056 | case "$ac_file" in */Makefile.in) | |
11057 | # Adjust a relative srcdir. | |
11058 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
11059 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
11060 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
11061 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
11062 | # In autoconf-2.50 it is called $srcdir. | |
11063 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
11064 | case "$ac_given_srcdir" in | |
11065 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
11066 | /*) top_srcdir="$ac_given_srcdir" ;; | |
11067 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
11068 | esac | |
11069 | # Treat a directory as a PO directory if and only if it has a | |
11070 | # POTFILES.in file. This allows packages to have multiple PO | |
11071 | # directories under different names or in different locations. | |
11072 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
11073 | rm -f "$ac_dir/POTFILES" | |
11074 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
11075 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
11076 | POMAKEFILEDEPS="POTFILES.in" | |
11077 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
11078 | # on $ac_dir but don't depend on user-specified configuration | |
11079 | # parameters. | |
11080 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
11081 | # The LINGUAS file contains the set of available languages. | |
11082 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
11083 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
11084 | fi | |
11085 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
11086 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
11087 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
11088 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
11089 | else | |
11090 | # The set of available languages was given in configure.in. | |
11091 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
11092 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
11093 | fi | |
11094 | # Compute POFILES | |
11095 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
11096 | # Compute UPDATEPOFILES | |
11097 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
11098 | # Compute DUMMYPOFILES | |
11099 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
11100 | # Compute GMOFILES | |
11101 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
11102 | case "$ac_given_srcdir" in | |
11103 | .) srcdirpre= ;; | |
11104 | *) srcdirpre='$(srcdir)/' ;; | |
11105 | esac | |
11106 | POFILES= | |
11107 | UPDATEPOFILES= | |
11108 | DUMMYPOFILES= | |
11109 | GMOFILES= | |
11110 | for lang in $ALL_LINGUAS; do | |
11111 | POFILES="$POFILES $srcdirpre$lang.po" | |
11112 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
11113 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
11114 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
11115 | done | |
11116 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
11117 | # environment variable. | |
11118 | INST_LINGUAS= | |
11119 | if test -n "$ALL_LINGUAS"; then | |
11120 | for presentlang in $ALL_LINGUAS; do | |
11121 | useit=no | |
11122 | if test "%UNSET%" != "$LINGUAS"; then | |
11123 | desiredlanguages="$LINGUAS" | |
11124 | else | |
11125 | desiredlanguages="$ALL_LINGUAS" | |
11126 | fi | |
11127 | for desiredlang in $desiredlanguages; do | |
11128 | # Use the presentlang catalog if desiredlang is | |
11129 | # a. equal to presentlang, or | |
11130 | # b. a variant of presentlang (because in this case, | |
11131 | # presentlang can be used as a fallback for messages | |
11132 | # which are not translated in the desiredlang catalog). | |
11133 | case "$desiredlang" in | |
11134 | "$presentlang"*) useit=yes;; | |
11135 | esac | |
11136 | done | |
11137 | if test $useit = yes; then | |
11138 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
11139 | fi | |
11140 | done | |
11141 | fi | |
11142 | CATALOGS= | |
11143 | if test -n "$INST_LINGUAS"; then | |
11144 | for lang in $INST_LINGUAS; do | |
11145 | CATALOGS="$CATALOGS $lang.gmo" | |
11146 | done | |
11147 | fi | |
11148 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
11149 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
11150 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
11151 | if test -f "$f"; then | |
11152 | case "$f" in | |
11153 | *.orig | *.bak | *~) ;; | |
11154 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
11155 | esac | |
11156 | fi | |
11157 | done | |
11158 | fi | |
11159 | ;; | |
11160 | esac | |
11161 | done ;; | |
11162 | "default":C) make -s dirs ;; | |
11163 | ||
11164 | esac | |
11165 | done # for ac_tag | |
11166 | ||
11167 | ||
11168 | { (exit 0); exit 0; } | |
11169 | _ACEOF | |
11170 | chmod +x $CONFIG_STATUS | |
11171 | ac_clean_files=$ac_clean_files_save | |
11172 | ||
11173 | ||
11174 | # configure is writing to config.log, and then calls config.status. | |
11175 | # config.status does its own redirection, appending to config.log. | |
11176 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11177 | # by configure, so config.status won't be able to write to it; its | |
11178 | # output is simply discarded. So we exec the FD to /dev/null, | |
11179 | # effectively closing config.log, so it can be properly (re)opened and | |
11180 | # appended to by config.status. When coming back to configure, we | |
11181 | # need to make the FD available again. | |
11182 | if test "$no_create" != yes; then | |
11183 | ac_cs_success=: | |
11184 | ac_config_status_args= | |
11185 | test "$silent" = yes && | |
11186 | ac_config_status_args="$ac_config_status_args --quiet" | |
11187 | exec 5>/dev/null | |
11188 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11189 | exec 5>>config.log | |
11190 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11191 | # would make configure fail if this is the last instruction. | |
11192 | $ac_cs_success || { (exit 1); exit 1; } | |
11193 | fi | |
11194 |