diff options
author | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
commit | cb3716ffb584fe0f593b6f1669a8efdba1305104 (patch) | |
tree | 5d1ebc4b6fc17b30f4b34e7e64a2d9514893459b /src/others/mimesh/g3dviewer-0.2.99.4/configure | |
parent | Add Prosody build script. (diff) | |
download | SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.zip SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.gz SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.bz2 SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.xz |
Added my version of libg3d and friends.
Diffstat (limited to 'src/others/mimesh/g3dviewer-0.2.99.4/configure')
-rwxr-xr-x | src/others/mimesh/g3dviewer-0.2.99.4/configure | 10636 |
1 files changed, 10636 insertions, 0 deletions
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/configure b/src/others/mimesh/g3dviewer-0.2.99.4/configure new file mode 100755 index 0000000..dd249c2 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/configure | |||
@@ -0,0 +1,10636 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.60a. | ||
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 Bourne compatible | ||
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
15 | emulate sh | ||
16 | NULLCMD=: | ||
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
18 | # is contrary to our usage. Disable this feature. | ||
19 | alias -g '${1+"$@"}'='"$@"' | ||
20 | setopt NO_GLOB_SUBST | ||
21 | else | ||
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
23 | fi | ||
24 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
25 | DUALCASE=1; export DUALCASE # for MKS sh | ||
26 | |||
27 | |||
28 | # PATH needs CR | ||
29 | # Avoid depending upon Character Ranges. | ||
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
33 | as_cr_digits='0123456789' | ||
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
35 | |||
36 | # The user is always right. | ||
37 | if test "${PATH_SEPARATOR+set}" != set; then | ||
38 | echo "#! /bin/sh" >conf$$.sh | ||
39 | echo "exit 0" >>conf$$.sh | ||
40 | chmod +x conf$$.sh | ||
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
42 | PATH_SEPARATOR=';' | ||
43 | else | ||
44 | PATH_SEPARATOR=: | ||
45 | fi | ||
46 | rm -f conf$$.sh | ||
47 | fi | ||
48 | |||
49 | # Support unset when possible. | ||
50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
51 | as_unset=unset | ||
52 | else | ||
53 | as_unset=false | ||
54 | fi | ||
55 | |||
56 | |||
57 | # IFS | ||
58 | # We need space, tab and new line, in precisely that order. Quoting is | ||
59 | # there to prevent editors from complaining about space-tab. | ||
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
61 | # splitting by setting IFS to empty value.) | ||
62 | as_nl=' | ||
63 | ' | ||
64 | IFS=" "" $as_nl" | ||
65 | |||
66 | # Find who we are. Look in the path if we contain no directory separator. | ||
67 | case $0 in | ||
68 | *[\\/]* ) as_myself=$0 ;; | ||
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
70 | for as_dir in $PATH | ||
71 | do | ||
72 | IFS=$as_save_IFS | ||
73 | test -z "$as_dir" && as_dir=. | ||
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
75 | done | ||
76 | IFS=$as_save_IFS | ||
77 | |||
78 | ;; | ||
79 | esac | ||
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
81 | # in which case we are not to be found in the path. | ||
82 | if test "x$as_myself" = x; then | ||
83 | as_myself=$0 | ||
84 | fi | ||
85 | if test ! -f "$as_myself"; then | ||
86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
87 | { (exit 1); exit 1; } | ||
88 | fi | ||
89 | |||
90 | # Work around bugs in pre-3.0 UWIN ksh. | ||
91 | for as_var in ENV MAIL MAILPATH | ||
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
93 | done | ||
94 | PS1='$ ' | ||
95 | PS2='> ' | ||
96 | PS4='+ ' | ||
97 | |||
98 | # NLS nuisances. | ||
99 | for as_var in \ | ||
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
102 | LC_TELEPHONE LC_TIME | ||
103 | do | ||
104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
105 | eval $as_var=C; export $as_var | ||
106 | else | ||
107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
108 | fi | ||
109 | done | ||
110 | |||
111 | # Required to use basename. | ||
112 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
114 | as_expr=expr | ||
115 | else | ||
116 | as_expr=false | ||
117 | fi | ||
118 | |||
119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
120 | as_basename=basename | ||
121 | else | ||
122 | as_basename=false | ||
123 | fi | ||
124 | |||
125 | |||
126 | # Name of the executable. | ||
127 | as_me=`$as_basename -- "$0" || | ||
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
129 | X"$0" : 'X\(//\)$' \| \ | ||
130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
131 | echo X/"$0" | | ||
132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
133 | s//\1/ | ||
134 | q | ||
135 | } | ||
136 | /^X\/\(\/\/\)$/{ | ||
137 | s//\1/ | ||
138 | q | ||
139 | } | ||
140 | /^X\/\(\/\).*/{ | ||
141 | s//\1/ | ||
142 | q | ||
143 | } | ||
144 | s/.*/./; q'` | ||
145 | |||
146 | # CDPATH. | ||
147 | $as_unset CDPATH | ||
148 | |||
149 | |||
150 | if test "x$CONFIG_SHELL" = x; then | ||
151 | if (eval ":") 2>/dev/null; then | ||
152 | as_have_required=yes | ||
153 | else | ||
154 | as_have_required=no | ||
155 | fi | ||
156 | |||
157 | if test $as_have_required = yes && (eval ": | ||
158 | (as_func_return () { | ||
159 | (exit \$1) | ||
160 | } | ||
161 | as_func_success () { | ||
162 | as_func_return 0 | ||
163 | } | ||
164 | as_func_failure () { | ||
165 | as_func_return 1 | ||
166 | } | ||
167 | as_func_ret_success () { | ||
168 | return 0 | ||
169 | } | ||
170 | as_func_ret_failure () { | ||
171 | return 1 | ||
172 | } | ||
173 | |||
174 | exitcode=0 | ||
175 | if as_func_success; then | ||
176 | : | ||
177 | else | ||
178 | exitcode=1 | ||
179 | echo as_func_success failed. | ||
180 | fi | ||
181 | |||
182 | if as_func_failure; then | ||
183 | exitcode=1 | ||
184 | echo as_func_failure succeeded. | ||
185 | fi | ||
186 | |||
187 | if as_func_ret_success; then | ||
188 | : | ||
189 | else | ||
190 | exitcode=1 | ||
191 | echo as_func_ret_success failed. | ||
192 | fi | ||
193 | |||
194 | if as_func_ret_failure; then | ||
195 | exitcode=1 | ||
196 | echo as_func_ret_failure succeeded. | ||
197 | fi | ||
198 | |||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
200 | : | ||
201 | else | ||
202 | exitcode=1 | ||
203 | echo positional parameters were not saved. | ||
204 | fi | ||
205 | |||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
207 | |||
208 | ( | ||
209 | as_lineno_1=\$LINENO | ||
210 | as_lineno_2=\$LINENO | ||
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
213 | ") 2> /dev/null; then | ||
214 | : | ||
215 | else | ||
216 | as_candidate_shells= | ||
217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
219 | do | ||
220 | IFS=$as_save_IFS | ||
221 | test -z "$as_dir" && as_dir=. | ||
222 | case $as_dir in | ||
223 | /*) | ||
224 | for as_base in sh bash ksh sh5; do | ||
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
226 | done;; | ||
227 | esac | ||
228 | done | ||
229 | IFS=$as_save_IFS | ||
230 | |||
231 | |||
232 | for as_shell in $as_candidate_shells $SHELL; do | ||
233 | # Try only shells that exist, to save several forks. | ||
234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
235 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
236 | # Be Bourne compatible | ||
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
238 | emulate sh | ||
239 | NULLCMD=: | ||
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
241 | # is contrary to our usage. Disable this feature. | ||
242 | alias -g '${1+"$@"}'='"$@"' | ||
243 | setopt NO_GLOB_SUBST | ||
244 | else | ||
245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
246 | fi | ||
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
248 | DUALCASE=1; export DUALCASE # for MKS sh | ||
249 | |||
250 | : | ||
251 | _ASEOF | ||
252 | }; then | ||
253 | CONFIG_SHELL=$as_shell | ||
254 | as_have_required=yes | ||
255 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
256 | # Be Bourne compatible | ||
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
258 | emulate sh | ||
259 | NULLCMD=: | ||
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
261 | # is contrary to our usage. Disable this feature. | ||
262 | alias -g '${1+"$@"}'='"$@"' | ||
263 | setopt NO_GLOB_SUBST | ||
264 | else | ||
265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
266 | fi | ||
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
268 | DUALCASE=1; export DUALCASE # for MKS sh | ||
269 | |||
270 | : | ||
271 | (as_func_return () { | ||
272 | (exit $1) | ||
273 | } | ||
274 | as_func_success () { | ||
275 | as_func_return 0 | ||
276 | } | ||
277 | as_func_failure () { | ||
278 | as_func_return 1 | ||
279 | } | ||
280 | as_func_ret_success () { | ||
281 | return 0 | ||
282 | } | ||
283 | as_func_ret_failure () { | ||
284 | return 1 | ||
285 | } | ||
286 | |||
287 | exitcode=0 | ||
288 | if as_func_success; then | ||
289 | : | ||
290 | else | ||
291 | exitcode=1 | ||
292 | echo as_func_success failed. | ||
293 | fi | ||
294 | |||
295 | if as_func_failure; then | ||
296 | exitcode=1 | ||
297 | echo as_func_failure succeeded. | ||
298 | fi | ||
299 | |||
300 | if as_func_ret_success; then | ||
301 | : | ||
302 | else | ||
303 | exitcode=1 | ||
304 | echo as_func_ret_success failed. | ||
305 | fi | ||
306 | |||
307 | if as_func_ret_failure; then | ||
308 | exitcode=1 | ||
309 | echo as_func_ret_failure succeeded. | ||
310 | fi | ||
311 | |||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
313 | : | ||
314 | else | ||
315 | exitcode=1 | ||
316 | echo positional parameters were not saved. | ||
317 | fi | ||
318 | |||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
320 | |||
321 | ( | ||
322 | as_lineno_1=$LINENO | ||
323 | as_lineno_2=$LINENO | ||
324 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
326 | |||
327 | _ASEOF | ||
328 | }; then | ||
329 | break | ||
330 | fi | ||
331 | |||
332 | fi | ||
333 | |||
334 | done | ||
335 | |||
336 | if test "x$CONFIG_SHELL" != x; then | ||
337 | for as_var in BASH_ENV ENV | ||
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
339 | done | ||
340 | export CONFIG_SHELL | ||
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
342 | fi | ||
343 | |||
344 | |||
345 | if test $as_have_required = no; then | ||
346 | echo This script requires a shell more modern than all the | ||
347 | echo shells that I found on your system. Please install a | ||
348 | echo modern shell, or manually run the script under such a | ||
349 | echo shell if you do have one. | ||
350 | { (exit 1); exit 1; } | ||
351 | fi | ||
352 | |||
353 | |||
354 | fi | ||
355 | |||
356 | fi | ||
357 | |||
358 | |||
359 | |||
360 | (eval "as_func_return () { | ||
361 | (exit \$1) | ||
362 | } | ||
363 | as_func_success () { | ||
364 | as_func_return 0 | ||
365 | } | ||
366 | as_func_failure () { | ||
367 | as_func_return 1 | ||
368 | } | ||
369 | as_func_ret_success () { | ||
370 | return 0 | ||
371 | } | ||
372 | as_func_ret_failure () { | ||
373 | return 1 | ||
374 | } | ||
375 | |||
376 | exitcode=0 | ||
377 | if as_func_success; then | ||
378 | : | ||
379 | else | ||
380 | exitcode=1 | ||
381 | echo as_func_success failed. | ||
382 | fi | ||
383 | |||
384 | if as_func_failure; then | ||
385 | exitcode=1 | ||
386 | echo as_func_failure succeeded. | ||
387 | fi | ||
388 | |||
389 | if as_func_ret_success; then | ||
390 | : | ||
391 | else | ||
392 | exitcode=1 | ||
393 | echo as_func_ret_success failed. | ||
394 | fi | ||
395 | |||
396 | if as_func_ret_failure; then | ||
397 | exitcode=1 | ||
398 | echo as_func_ret_failure succeeded. | ||
399 | fi | ||
400 | |||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
402 | : | ||
403 | else | ||
404 | exitcode=1 | ||
405 | echo positional parameters were not saved. | ||
406 | fi | ||
407 | |||
408 | test \$exitcode = 0") || { | ||
409 | echo No shell found that supports shell functions. | ||
410 | echo Please tell autoconf@gnu.org about your system, | ||
411 | echo including any error possibly output before this | ||
412 | echo message | ||
413 | } | ||
414 | |||
415 | |||
416 | |||
417 | as_lineno_1=$LINENO | ||
418 | as_lineno_2=$LINENO | ||
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
421 | |||
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
423 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
424 | # line-number line after each line using $LINENO; the second 'sed' | ||
425 | # does the real work. The second script uses 'N' to pair each | ||
426 | # line-number line with the line containing $LINENO, and appends | ||
427 | # trailing '-' during substitution so that $LINENO is not a special | ||
428 | # case at line end. | ||
429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
430 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
432 | sed -n ' | ||
433 | p | ||
434 | /[$]LINENO/= | ||
435 | ' <$as_myself | | ||
436 | sed ' | ||
437 | s/[$]LINENO.*/&-/ | ||
438 | t lineno | ||
439 | b | ||
440 | :lineno | ||
441 | N | ||
442 | :loop | ||
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
444 | t loop | ||
445 | s/-\n.*// | ||
446 | ' >$as_me.lineno && | ||
447 | chmod +x "$as_me.lineno" || | ||
448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
449 | { (exit 1); exit 1; }; } | ||
450 | |||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
452 | # (the dirname of $[0] is not the place where we might find the | ||
453 | # original and so on. Autoconf is especially sensitive to this). | ||
454 | . "./$as_me.lineno" | ||
455 | # Exit status is that of the last command. | ||
456 | exit | ||
457 | } | ||
458 | |||
459 | |||
460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
461 | as_dirname=dirname | ||
462 | else | ||
463 | as_dirname=false | ||
464 | fi | ||
465 | |||
466 | ECHO_C= ECHO_N= ECHO_T= | ||
467 | case `echo -n x` in | ||
468 | -n*) | ||
469 | case `echo 'x\c'` in | ||
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
471 | *) ECHO_C='\c';; | ||
472 | esac;; | ||
473 | *) | ||
474 | ECHO_N='-n';; | ||
475 | esac | ||
476 | |||
477 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
479 | as_expr=expr | ||
480 | else | ||
481 | as_expr=false | ||
482 | fi | ||
483 | |||
484 | rm -f conf$$ conf$$.exe conf$$.file | ||
485 | if test -d conf$$.dir; then | ||
486 | rm -f conf$$.dir/conf$$.file | ||
487 | else | ||
488 | rm -f conf$$.dir | ||
489 | mkdir conf$$.dir | ||
490 | fi | ||
491 | echo >conf$$.file | ||
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
493 | as_ln_s='ln -s' | ||
494 | # ... but there are two gotchas: | ||
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
497 | # In both cases, we have to default to `cp -p'. | ||
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
499 | as_ln_s='cp -p' | ||
500 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
501 | as_ln_s=ln | ||
502 | else | ||
503 | as_ln_s='cp -p' | ||
504 | fi | ||
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
506 | rmdir conf$$.dir 2>/dev/null | ||
507 | |||
508 | if mkdir -p . 2>/dev/null; then | ||
509 | as_mkdir_p=: | ||
510 | else | ||
511 | test -d ./-p && rmdir ./-p | ||
512 | as_mkdir_p=false | ||
513 | fi | ||
514 | |||
515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
516 | # systems may use methods other than mode bits to determine executability. | ||
517 | cat >conf$$.file <<_ASEOF | ||
518 | #! /bin/sh | ||
519 | exit 0 | ||
520 | _ASEOF | ||
521 | chmod +x conf$$.file | ||
522 | if test -x conf$$.file >/dev/null 2>&1; then | ||
523 | as_executable_p="test -x" | ||
524 | else | ||
525 | as_executable_p=: | ||
526 | fi | ||
527 | rm -f conf$$.file | ||
528 | |||
529 | # Sed expression to map a string onto a valid CPP name. | ||
530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
531 | |||
532 | # Sed expression to map a string onto a valid variable name. | ||
533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
534 | |||
535 | |||
536 | |||
537 | exec 7<&0 </dev/null 6>&1 | ||
538 | |||
539 | # Name of the host. | ||
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
541 | # so uname gets run too. | ||
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
543 | |||
544 | # | ||
545 | # Initializations. | ||
546 | # | ||
547 | ac_default_prefix=/usr/local | ||
548 | ac_clean_files= | ||
549 | ac_config_libobj_dir=. | ||
550 | LIBOBJS= | ||
551 | cross_compiling=no | ||
552 | subdirs= | ||
553 | MFLAGS= | ||
554 | MAKEFLAGS= | ||
555 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
556 | |||
557 | # Identity of this package. | ||
558 | PACKAGE_NAME= | ||
559 | PACKAGE_TARNAME= | ||
560 | PACKAGE_VERSION= | ||
561 | PACKAGE_STRING= | ||
562 | PACKAGE_BUGREPORT= | ||
563 | |||
564 | ac_unique_file="configure.in" | ||
565 | # Factoring default headers for most tests. | ||
566 | ac_includes_default="\ | ||
567 | #include <stdio.h> | ||
568 | #ifdef HAVE_SYS_TYPES_H | ||
569 | # include <sys/types.h> | ||
570 | #endif | ||
571 | #ifdef HAVE_SYS_STAT_H | ||
572 | # include <sys/stat.h> | ||
573 | #endif | ||
574 | #ifdef STDC_HEADERS | ||
575 | # include <stdlib.h> | ||
576 | # include <stddef.h> | ||
577 | #else | ||
578 | # ifdef HAVE_STDLIB_H | ||
579 | # include <stdlib.h> | ||
580 | # endif | ||
581 | #endif | ||
582 | #ifdef HAVE_STRING_H | ||
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
584 | # include <memory.h> | ||
585 | # endif | ||
586 | # include <string.h> | ||
587 | #endif | ||
588 | #ifdef HAVE_STRINGS_H | ||
589 | # include <strings.h> | ||
590 | #endif | ||
591 | #ifdef HAVE_INTTYPES_H | ||
592 | # include <inttypes.h> | ||
593 | #endif | ||
594 | #ifdef HAVE_STDINT_H | ||
595 | # include <stdint.h> | ||
596 | #endif | ||
597 | #ifdef HAVE_UNISTD_H | ||
598 | # include <unistd.h> | ||
599 | #endif" | ||
600 | |||
601 | ac_subst_vars='SHELL | ||
602 | PATH_SEPARATOR | ||
603 | PACKAGE_NAME | ||
604 | PACKAGE_TARNAME | ||
605 | PACKAGE_VERSION | ||
606 | PACKAGE_STRING | ||
607 | PACKAGE_BUGREPORT | ||
608 | exec_prefix | ||
609 | prefix | ||
610 | program_transform_name | ||
611 | bindir | ||
612 | sbindir | ||
613 | libexecdir | ||
614 | datarootdir | ||
615 | datadir | ||
616 | sysconfdir | ||
617 | sharedstatedir | ||
618 | localstatedir | ||
619 | includedir | ||
620 | oldincludedir | ||
621 | docdir | ||
622 | infodir | ||
623 | htmldir | ||
624 | dvidir | ||
625 | pdfdir | ||
626 | psdir | ||
627 | libdir | ||
628 | localedir | ||
629 | mandir | ||
630 | DEFS | ||
631 | ECHO_C | ||
632 | ECHO_N | ||
633 | ECHO_T | ||
634 | LIBS | ||
635 | build_alias | ||
636 | host_alias | ||
637 | target_alias | ||
638 | INSTALL_PROGRAM | ||
639 | INSTALL_SCRIPT | ||
640 | INSTALL_DATA | ||
641 | CYGPATH_W | ||
642 | PACKAGE | ||
643 | VERSION | ||
644 | ACLOCAL | ||
645 | AUTOCONF | ||
646 | AUTOMAKE | ||
647 | AUTOHEADER | ||
648 | MAKEINFO | ||
649 | AMTAR | ||
650 | install_sh | ||
651 | STRIP | ||
652 | INSTALL_STRIP_PROGRAM | ||
653 | AWK | ||
654 | SET_MAKE | ||
655 | am__leading_dot | ||
656 | CC | ||
657 | CFLAGS | ||
658 | LDFLAGS | ||
659 | CPPFLAGS | ||
660 | ac_ct_CC | ||
661 | EXEEXT | ||
662 | OBJEXT | ||
663 | DEPDIR | ||
664 | am__include | ||
665 | am__quote | ||
666 | AMDEP_TRUE | ||
667 | AMDEP_FALSE | ||
668 | AMDEPBACKSLASH | ||
669 | CCDEPMODE | ||
670 | am__fastdepCC_TRUE | ||
671 | am__fastdepCC_FALSE | ||
672 | CPP | ||
673 | GREP | ||
674 | EGREP | ||
675 | USE_NLS | ||
676 | MSGFMT | ||
677 | GMSGFMT | ||
678 | XGETTEXT | ||
679 | CATALOGS | ||
680 | CATOBJEXT | ||
681 | DATADIRNAME | ||
682 | GMOFILES | ||
683 | INSTOBJEXT | ||
684 | INTLLIBS | ||
685 | PO_IN_DATADIR_TRUE | ||
686 | PO_IN_DATADIR_FALSE | ||
687 | POFILES | ||
688 | POSUB | ||
689 | MKINSTALLDIRS | ||
690 | GETTEXT_PACKAGE | ||
691 | PKG_CONFIG | ||
692 | GLIB_CFLAGS | ||
693 | GLIB_LIBS | ||
694 | GLIB_GENMARSHAL | ||
695 | GOBJECT_QUERY | ||
696 | GLIB_MKENUMS | ||
697 | GTK_CFLAGS | ||
698 | GTK_LIBS | ||
699 | LIBGLADE_CFLAGS | ||
700 | LIBGLADE_LIBS | ||
701 | GTKGLEXT_CFLAGS | ||
702 | GTKGLEXT_LIBS | ||
703 | LIBG3D_CFLAGS | ||
704 | LIBG3D_LIBS | ||
705 | XMKMF | ||
706 | X_CFLAGS | ||
707 | X_PRE_LIBS | ||
708 | X_LIBS | ||
709 | X_EXTRA_LIBS | ||
710 | GL_LIBS | ||
711 | DEBUG | ||
712 | DBG_CFLAGS | ||
713 | LIBOBJS | ||
714 | LTLIBOBJS' | ||
715 | ac_subst_files='' | ||
716 | ac_precious_vars='build_alias | ||
717 | host_alias | ||
718 | target_alias | ||
719 | CC | ||
720 | CFLAGS | ||
721 | LDFLAGS | ||
722 | CPPFLAGS | ||
723 | CPP | ||
724 | PKG_CONFIG | ||
725 | LIBGLADE_CFLAGS | ||
726 | LIBGLADE_LIBS | ||
727 | LIBG3D_CFLAGS | ||
728 | LIBG3D_LIBS | ||
729 | XMKMF' | ||
730 | |||
731 | |||
732 | # Initialize some variables set by options. | ||
733 | ac_init_help= | ||
734 | ac_init_version=false | ||
735 | # The variables have the same names as the options, with | ||
736 | # dashes changed to underlines. | ||
737 | cache_file=/dev/null | ||
738 | exec_prefix=NONE | ||
739 | no_create= | ||
740 | no_recursion= | ||
741 | prefix=NONE | ||
742 | program_prefix=NONE | ||
743 | program_suffix=NONE | ||
744 | program_transform_name=s,x,x, | ||
745 | silent= | ||
746 | site= | ||
747 | srcdir= | ||
748 | verbose= | ||
749 | x_includes=NONE | ||
750 | x_libraries=NONE | ||
751 | |||
752 | # Installation directory options. | ||
753 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
754 | # and all the variables that are supposed to be based on exec_prefix | ||
755 | # by default will actually change. | ||
756 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
757 | # (The list follows the same order as the GNU Coding Standards.) | ||
758 | bindir='${exec_prefix}/bin' | ||
759 | sbindir='${exec_prefix}/sbin' | ||
760 | libexecdir='${exec_prefix}/libexec' | ||
761 | datarootdir='${prefix}/share' | ||
762 | datadir='${datarootdir}' | ||
763 | sysconfdir='${prefix}/etc' | ||
764 | sharedstatedir='${prefix}/com' | ||
765 | localstatedir='${prefix}/var' | ||
766 | includedir='${prefix}/include' | ||
767 | oldincludedir='/usr/include' | ||
768 | docdir='${datarootdir}/doc/${PACKAGE}' | ||
769 | infodir='${datarootdir}/info' | ||
770 | htmldir='${docdir}' | ||
771 | dvidir='${docdir}' | ||
772 | pdfdir='${docdir}' | ||
773 | psdir='${docdir}' | ||
774 | libdir='${exec_prefix}/lib' | ||
775 | localedir='${datarootdir}/locale' | ||
776 | mandir='${datarootdir}/man' | ||
777 | |||
778 | ac_prev= | ||
779 | ac_dashdash= | ||
780 | for ac_option | ||
781 | do | ||
782 | # If the previous option needs an argument, assign it. | ||
783 | if test -n "$ac_prev"; then | ||
784 | eval $ac_prev=\$ac_option | ||
785 | ac_prev= | ||
786 | continue | ||
787 | fi | ||
788 | |||
789 | case $ac_option in | ||
790 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
791 | *) ac_optarg=yes ;; | ||
792 | esac | ||
793 | |||
794 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
795 | |||
796 | case $ac_dashdash$ac_option in | ||
797 | --) | ||
798 | ac_dashdash=yes ;; | ||
799 | |||
800 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
801 | ac_prev=bindir ;; | ||
802 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
803 | bindir=$ac_optarg ;; | ||
804 | |||
805 | -build | --build | --buil | --bui | --bu) | ||
806 | ac_prev=build_alias ;; | ||
807 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
808 | build_alias=$ac_optarg ;; | ||
809 | |||
810 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
811 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
812 | ac_prev=cache_file ;; | ||
813 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
814 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
815 | cache_file=$ac_optarg ;; | ||
816 | |||
817 | --config-cache | -C) | ||
818 | cache_file=config.cache ;; | ||
819 | |||
820 | -datadir | --datadir | --datadi | --datad) | ||
821 | ac_prev=datadir ;; | ||
822 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
823 | datadir=$ac_optarg ;; | ||
824 | |||
825 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
826 | | --dataroo | --dataro | --datar) | ||
827 | ac_prev=datarootdir ;; | ||
828 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
829 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
830 | datarootdir=$ac_optarg ;; | ||
831 | |||
832 | -disable-* | --disable-*) | ||
833 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
834 | # Reject names that are not valid shell variable names. | ||
835 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
836 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
837 | { (exit 1); exit 1; }; } | ||
838 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
839 | eval enable_$ac_feature=no ;; | ||
840 | |||
841 | -docdir | --docdir | --docdi | --doc | --do) | ||
842 | ac_prev=docdir ;; | ||
843 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
844 | docdir=$ac_optarg ;; | ||
845 | |||
846 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
847 | ac_prev=dvidir ;; | ||
848 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
849 | dvidir=$ac_optarg ;; | ||
850 | |||
851 | -enable-* | --enable-*) | ||
852 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
853 | # Reject names that are not valid shell variable names. | ||
854 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
855 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
856 | { (exit 1); exit 1; }; } | ||
857 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
858 | eval enable_$ac_feature=\$ac_optarg ;; | ||
859 | |||
860 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
861 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
862 | | --exec | --exe | --ex) | ||
863 | ac_prev=exec_prefix ;; | ||
864 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
865 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
866 | | --exec=* | --exe=* | --ex=*) | ||
867 | exec_prefix=$ac_optarg ;; | ||
868 | |||
869 | -gas | --gas | --ga | --g) | ||
870 | # Obsolete; use --with-gas. | ||
871 | with_gas=yes ;; | ||
872 | |||
873 | -help | --help | --hel | --he | -h) | ||
874 | ac_init_help=long ;; | ||
875 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
876 | ac_init_help=recursive ;; | ||
877 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
878 | ac_init_help=short ;; | ||
879 | |||
880 | -host | --host | --hos | --ho) | ||
881 | ac_prev=host_alias ;; | ||
882 | -host=* | --host=* | --hos=* | --ho=*) | ||
883 | host_alias=$ac_optarg ;; | ||
884 | |||
885 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
886 | ac_prev=htmldir ;; | ||
887 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
888 | | --ht=*) | ||
889 | htmldir=$ac_optarg ;; | ||
890 | |||
891 | -includedir | --includedir | --includedi | --included | --include \ | ||
892 | | --includ | --inclu | --incl | --inc) | ||
893 | ac_prev=includedir ;; | ||
894 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
895 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
896 | includedir=$ac_optarg ;; | ||
897 | |||
898 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
899 | ac_prev=infodir ;; | ||
900 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
901 | infodir=$ac_optarg ;; | ||
902 | |||
903 | -libdir | --libdir | --libdi | --libd) | ||
904 | ac_prev=libdir ;; | ||
905 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
906 | libdir=$ac_optarg ;; | ||
907 | |||
908 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
909 | | --libexe | --libex | --libe) | ||
910 | ac_prev=libexecdir ;; | ||
911 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
912 | | --libexe=* | --libex=* | --libe=*) | ||
913 | libexecdir=$ac_optarg ;; | ||
914 | |||
915 | -localedir | --localedir | --localedi | --localed | --locale) | ||
916 | ac_prev=localedir ;; | ||
917 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
918 | localedir=$ac_optarg ;; | ||
919 | |||
920 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
921 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
922 | ac_prev=localstatedir ;; | ||
923 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
924 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
925 | localstatedir=$ac_optarg ;; | ||
926 | |||
927 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
928 | ac_prev=mandir ;; | ||
929 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
930 | mandir=$ac_optarg ;; | ||
931 | |||
932 | -nfp | --nfp | --nf) | ||
933 | # Obsolete; use --without-fp. | ||
934 | with_fp=no ;; | ||
935 | |||
936 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
937 | | --no-cr | --no-c | -n) | ||
938 | no_create=yes ;; | ||
939 | |||
940 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
941 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
942 | no_recursion=yes ;; | ||
943 | |||
944 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
945 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
946 | | --oldin | --oldi | --old | --ol | --o) | ||
947 | ac_prev=oldincludedir ;; | ||
948 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
949 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
950 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
951 | oldincludedir=$ac_optarg ;; | ||
952 | |||
953 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
954 | ac_prev=prefix ;; | ||
955 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
956 | prefix=$ac_optarg ;; | ||
957 | |||
958 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
959 | | --program-pre | --program-pr | --program-p) | ||
960 | ac_prev=program_prefix ;; | ||
961 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
962 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
963 | program_prefix=$ac_optarg ;; | ||
964 | |||
965 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
966 | | --program-suf | --program-su | --program-s) | ||
967 | ac_prev=program_suffix ;; | ||
968 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
969 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
970 | program_suffix=$ac_optarg ;; | ||
971 | |||
972 | -program-transform-name | --program-transform-name \ | ||
973 | | --program-transform-nam | --program-transform-na \ | ||
974 | | --program-transform-n | --program-transform- \ | ||
975 | | --program-transform | --program-transfor \ | ||
976 | | --program-transfo | --program-transf \ | ||
977 | | --program-trans | --program-tran \ | ||
978 | | --progr-tra | --program-tr | --program-t) | ||
979 | ac_prev=program_transform_name ;; | ||
980 | -program-transform-name=* | --program-transform-name=* \ | ||
981 | | --program-transform-nam=* | --program-transform-na=* \ | ||
982 | | --program-transform-n=* | --program-transform-=* \ | ||
983 | | --program-transform=* | --program-transfor=* \ | ||
984 | | --program-transfo=* | --program-transf=* \ | ||
985 | | --program-trans=* | --program-tran=* \ | ||
986 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
987 | program_transform_name=$ac_optarg ;; | ||
988 | |||
989 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
990 | ac_prev=pdfdir ;; | ||
991 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
992 | pdfdir=$ac_optarg ;; | ||
993 | |||
994 | -psdir | --psdir | --psdi | --psd | --ps) | ||
995 | ac_prev=psdir ;; | ||
996 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
997 | psdir=$ac_optarg ;; | ||
998 | |||
999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1000 | | -silent | --silent | --silen | --sile | --sil) | ||
1001 | silent=yes ;; | ||
1002 | |||
1003 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1004 | ac_prev=sbindir ;; | ||
1005 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1006 | | --sbi=* | --sb=*) | ||
1007 | sbindir=$ac_optarg ;; | ||
1008 | |||
1009 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1010 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1011 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1012 | | --sha | --sh) | ||
1013 | ac_prev=sharedstatedir ;; | ||
1014 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1015 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1016 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1017 | | --sha=* | --sh=*) | ||
1018 | sharedstatedir=$ac_optarg ;; | ||
1019 | |||
1020 | -site | --site | --sit) | ||
1021 | ac_prev=site ;; | ||
1022 | -site=* | --site=* | --sit=*) | ||
1023 | site=$ac_optarg ;; | ||
1024 | |||
1025 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1026 | ac_prev=srcdir ;; | ||
1027 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1028 | srcdir=$ac_optarg ;; | ||
1029 | |||
1030 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1031 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1032 | ac_prev=sysconfdir ;; | ||
1033 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1034 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1035 | sysconfdir=$ac_optarg ;; | ||
1036 | |||
1037 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1038 | ac_prev=target_alias ;; | ||
1039 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1040 | target_alias=$ac_optarg ;; | ||
1041 | |||
1042 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1043 | verbose=yes ;; | ||
1044 | |||
1045 | -version | --version | --versio | --versi | --vers | -V) | ||
1046 | ac_init_version=: ;; | ||
1047 | |||
1048 | -with-* | --with-*) | ||
1049 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1050 | # Reject names that are not valid shell variable names. | ||
1051 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1052 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1053 | { (exit 1); exit 1; }; } | ||
1054 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
1055 | eval with_$ac_package=\$ac_optarg ;; | ||
1056 | |||
1057 | -without-* | --without-*) | ||
1058 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1059 | # Reject names that are not valid shell variable names. | ||
1060 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1062 | { (exit 1); exit 1; }; } | ||
1063 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
1064 | eval with_$ac_package=no ;; | ||
1065 | |||
1066 | --x) | ||
1067 | # Obsolete; use --with-x. | ||
1068 | with_x=yes ;; | ||
1069 | |||
1070 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1071 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1072 | ac_prev=x_includes ;; | ||
1073 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1074 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1075 | x_includes=$ac_optarg ;; | ||
1076 | |||
1077 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1078 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1079 | ac_prev=x_libraries ;; | ||
1080 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1081 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1082 | x_libraries=$ac_optarg ;; | ||
1083 | |||
1084 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1085 | Try \`$0 --help' for more information." >&2 | ||
1086 | { (exit 1); exit 1; }; } | ||
1087 | ;; | ||
1088 | |||
1089 | *=*) | ||
1090 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1091 | # Reject names that are not valid shell variable names. | ||
1092 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1093 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1094 | { (exit 1); exit 1; }; } | ||
1095 | eval $ac_envvar=\$ac_optarg | ||
1096 | export $ac_envvar ;; | ||
1097 | |||
1098 | *) | ||
1099 | # FIXME: should be removed in autoconf 3.0. | ||
1100 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1101 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1102 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1103 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1104 | ;; | ||
1105 | |||
1106 | esac | ||
1107 | done | ||
1108 | |||
1109 | if test -n "$ac_prev"; then | ||
1110 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1111 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1112 | { (exit 1); exit 1; }; } | ||
1113 | fi | ||
1114 | |||
1115 | # Be sure to have absolute directory names. | ||
1116 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1117 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1118 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1119 | libdir localedir mandir | ||
1120 | do | ||
1121 | eval ac_val=\$$ac_var | ||
1122 | case $ac_val in | ||
1123 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1124 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1125 | esac | ||
1126 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1127 | { (exit 1); exit 1; }; } | ||
1128 | done | ||
1129 | |||
1130 | # There might be people who depend on the old broken behavior: `$host' | ||
1131 | # used to hold the argument of --host etc. | ||
1132 | # FIXME: To remove some day. | ||
1133 | build=$build_alias | ||
1134 | host=$host_alias | ||
1135 | target=$target_alias | ||
1136 | |||
1137 | # FIXME: To remove some day. | ||
1138 | if test "x$host_alias" != x; then | ||
1139 | if test "x$build_alias" = x; then | ||
1140 | cross_compiling=maybe | ||
1141 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1142 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1143 | elif test "x$build_alias" != "x$host_alias"; then | ||
1144 | cross_compiling=yes | ||
1145 | fi | ||
1146 | fi | ||
1147 | |||
1148 | ac_tool_prefix= | ||
1149 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1150 | |||
1151 | test "$silent" = yes && exec 6>/dev/null | ||
1152 | |||
1153 | |||
1154 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1155 | ac_ls_di=`ls -di .` && | ||
1156 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1157 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1158 | { (exit 1); exit 1; }; } | ||
1159 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1160 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1161 | { (exit 1); exit 1; }; } | ||
1162 | |||
1163 | |||
1164 | # Find the source files, if location was not specified. | ||
1165 | if test -z "$srcdir"; then | ||
1166 | ac_srcdir_defaulted=yes | ||
1167 | # Try the directory containing this script, then the parent directory. | ||
1168 | ac_confdir=`$as_dirname -- "$0" || | ||
1169 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1170 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1171 | X"$0" : 'X\(//\)$' \| \ | ||
1172 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1173 | echo X"$0" | | ||
1174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1175 | s//\1/ | ||
1176 | q | ||
1177 | } | ||
1178 | /^X\(\/\/\)[^/].*/{ | ||
1179 | s//\1/ | ||
1180 | q | ||
1181 | } | ||
1182 | /^X\(\/\/\)$/{ | ||
1183 | s//\1/ | ||
1184 | q | ||
1185 | } | ||
1186 | /^X\(\/\).*/{ | ||
1187 | s//\1/ | ||
1188 | q | ||
1189 | } | ||
1190 | s/.*/./; q'` | ||
1191 | srcdir=$ac_confdir | ||
1192 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1193 | srcdir=.. | ||
1194 | fi | ||
1195 | else | ||
1196 | ac_srcdir_defaulted=no | ||
1197 | fi | ||
1198 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1199 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1200 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1201 | { (exit 1); exit 1; }; } | ||
1202 | fi | ||
1203 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1204 | ac_abs_confdir=`( | ||
1205 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1206 | { (exit 1); exit 1; }; } | ||
1207 | pwd)` | ||
1208 | # When building in place, set srcdir=. | ||
1209 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1210 | srcdir=. | ||
1211 | fi | ||
1212 | # Remove unnecessary trailing slashes from srcdir. | ||
1213 | # Double slashes in file names in object file debugging info | ||
1214 | # mess up M-x gdb in Emacs. | ||
1215 | case $srcdir in | ||
1216 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1217 | esac | ||
1218 | for ac_var in $ac_precious_vars; do | ||
1219 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1220 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1221 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1222 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1223 | done | ||
1224 | |||
1225 | # | ||
1226 | # Report the --help message. | ||
1227 | # | ||
1228 | if test "$ac_init_help" = "long"; then | ||
1229 | # Omit some internal or obsolete options to make the list less imposing. | ||
1230 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1231 | cat <<_ACEOF | ||
1232 | \`configure' configures this package to adapt to many kinds of systems. | ||
1233 | |||
1234 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1235 | |||
1236 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1237 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1238 | |||
1239 | Defaults for the options are specified in brackets. | ||
1240 | |||
1241 | Configuration: | ||
1242 | -h, --help display this help and exit | ||
1243 | --help=short display options specific to this package | ||
1244 | --help=recursive display the short help of all the included packages | ||
1245 | -V, --version display version information and exit | ||
1246 | -q, --quiet, --silent do not print \`checking...' messages | ||
1247 | --cache-file=FILE cache test results in FILE [disabled] | ||
1248 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1249 | -n, --no-create do not create output files | ||
1250 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1251 | |||
1252 | Installation directories: | ||
1253 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1254 | [$ac_default_prefix] | ||
1255 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1256 | [PREFIX] | ||
1257 | |||
1258 | By default, \`make install' will install all the files in | ||
1259 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1260 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1261 | for instance \`--prefix=\$HOME'. | ||
1262 | |||
1263 | For better control, use the options below. | ||
1264 | |||
1265 | Fine tuning of the installation directories: | ||
1266 | --bindir=DIR user executables [EPREFIX/bin] | ||
1267 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1268 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1269 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1270 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1271 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1272 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1273 | --includedir=DIR C header files [PREFIX/include] | ||
1274 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1275 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1276 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1277 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1278 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1279 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1280 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | ||
1281 | --htmldir=DIR html documentation [DOCDIR] | ||
1282 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1283 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1284 | --psdir=DIR ps documentation [DOCDIR] | ||
1285 | _ACEOF | ||
1286 | |||
1287 | cat <<\_ACEOF | ||
1288 | |||
1289 | Program names: | ||
1290 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1291 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1292 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1293 | |||
1294 | X features: | ||
1295 | --x-includes=DIR X include files are in DIR | ||
1296 | --x-libraries=DIR X library files are in DIR | ||
1297 | _ACEOF | ||
1298 | fi | ||
1299 | |||
1300 | if test -n "$ac_init_help"; then | ||
1301 | |||
1302 | cat <<\_ACEOF | ||
1303 | |||
1304 | Optional Features: | ||
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1307 | --disable-dependency-tracking Speeds up one-time builds | ||
1308 | --enable-dependency-tracking Do not reject slow dependency extractors | ||
1309 | --disable-glibtest do not try to compile and run a test GLIB program | ||
1310 | --disable-gtktest do not try to compile and run a test GTK+ program | ||
1311 | --disable-gtkglext-test do not try to compile and run a test GtkGLExt program | ||
1312 | --enable-debug[=LVL] enable debug level LVL or 1 (default is 0) | ||
1313 | |||
1314 | Optional Packages: | ||
1315 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1316 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1317 | --with-x use the X Window System | ||
1318 | |||
1319 | Some influential environment variables: | ||
1320 | CC C compiler command | ||
1321 | CFLAGS C compiler flags | ||
1322 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1323 | nonstandard directory <lib dir> | ||
1324 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1325 | you have headers in a nonstandard directory <include dir> | ||
1326 | CPP C preprocessor | ||
1327 | PKG_CONFIG path to pkg-config utility | ||
1328 | LIBGLADE_CFLAGS | ||
1329 | C compiler flags for LIBGLADE, overriding pkg-config | ||
1330 | LIBGLADE_LIBS | ||
1331 | linker flags for LIBGLADE, overriding pkg-config | ||
1332 | LIBG3D_CFLAGS | ||
1333 | C compiler flags for LIBG3D, overriding pkg-config | ||
1334 | LIBG3D_LIBS linker flags for LIBG3D, overriding pkg-config | ||
1335 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
1336 | |||
1337 | Use these variables to override the choices made by `configure' or to help | ||
1338 | it to find libraries and programs with nonstandard names/locations. | ||
1339 | |||
1340 | _ACEOF | ||
1341 | ac_status=$? | ||
1342 | fi | ||
1343 | |||
1344 | if test "$ac_init_help" = "recursive"; then | ||
1345 | # If there are subdirs, report their specific --help. | ||
1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1347 | test -d "$ac_dir" || continue | ||
1348 | ac_builddir=. | ||
1349 | |||
1350 | case "$ac_dir" in | ||
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1352 | *) | ||
1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1354 | # A ".." for each directory in $ac_dir_suffix. | ||
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1356 | case $ac_top_builddir_sub in | ||
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1359 | esac ;; | ||
1360 | esac | ||
1361 | ac_abs_top_builddir=$ac_pwd | ||
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1363 | # for backward compatibility: | ||
1364 | ac_top_builddir=$ac_top_build_prefix | ||
1365 | |||
1366 | case $srcdir in | ||
1367 | .) # We are building in place. | ||
1368 | ac_srcdir=. | ||
1369 | ac_top_srcdir=$ac_top_builddir_sub | ||
1370 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1372 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1373 | ac_top_srcdir=$srcdir | ||
1374 | ac_abs_top_srcdir=$srcdir ;; | ||
1375 | *) # Relative name. | ||
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1379 | esac | ||
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1381 | |||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1383 | # Check for guested configure. | ||
1384 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1385 | echo && | ||
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1387 | elif test -f "$ac_srcdir/configure"; then | ||
1388 | echo && | ||
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1390 | else | ||
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1392 | fi || ac_status=$? | ||
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1394 | done | ||
1395 | fi | ||
1396 | |||
1397 | test -n "$ac_init_help" && exit $ac_status | ||
1398 | if $ac_init_version; then | ||
1399 | cat <<\_ACEOF | ||
1400 | configure | ||
1401 | generated by GNU Autoconf 2.60a | ||
1402 | |||
1403 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1404 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1405 | This configure script is free software; the Free Software Foundation | ||
1406 | gives unlimited permission to copy, distribute and modify it. | ||
1407 | _ACEOF | ||
1408 | exit | ||
1409 | fi | ||
1410 | cat >config.log <<_ACEOF | ||
1411 | This file contains any messages produced by compilers while | ||
1412 | running configure, to aid debugging if configure makes a mistake. | ||
1413 | |||
1414 | It was created by $as_me, which was | ||
1415 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
1416 | |||
1417 | $ $0 $@ | ||
1418 | |||
1419 | _ACEOF | ||
1420 | exec 5>>config.log | ||
1421 | { | ||
1422 | cat <<_ASUNAME | ||
1423 | ## --------- ## | ||
1424 | ## Platform. ## | ||
1425 | ## --------- ## | ||
1426 | |||
1427 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1428 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1429 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1430 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1431 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1432 | |||
1433 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1434 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1435 | |||
1436 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1437 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1438 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1439 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1440 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1441 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1442 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1443 | |||
1444 | _ASUNAME | ||
1445 | |||
1446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1447 | for as_dir in $PATH | ||
1448 | do | ||
1449 | IFS=$as_save_IFS | ||
1450 | test -z "$as_dir" && as_dir=. | ||
1451 | echo "PATH: $as_dir" | ||
1452 | done | ||
1453 | IFS=$as_save_IFS | ||
1454 | |||
1455 | } >&5 | ||
1456 | |||
1457 | cat >&5 <<_ACEOF | ||
1458 | |||
1459 | |||
1460 | ## ----------- ## | ||
1461 | ## Core tests. ## | ||
1462 | ## ----------- ## | ||
1463 | |||
1464 | _ACEOF | ||
1465 | |||
1466 | |||
1467 | # Keep a trace of the command line. | ||
1468 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1469 | # Strip out --silent because we don't want to record it for future runs. | ||
1470 | # Also quote any args containing shell meta-characters. | ||
1471 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1472 | ac_configure_args= | ||
1473 | ac_configure_args0= | ||
1474 | ac_configure_args1= | ||
1475 | ac_must_keep_next=false | ||
1476 | for ac_pass in 1 2 | ||
1477 | do | ||
1478 | for ac_arg | ||
1479 | do | ||
1480 | case $ac_arg in | ||
1481 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1482 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1483 | | -silent | --silent | --silen | --sile | --sil) | ||
1484 | continue ;; | ||
1485 | *\'*) | ||
1486 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1487 | esac | ||
1488 | case $ac_pass in | ||
1489 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1490 | 2) | ||
1491 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1492 | if test $ac_must_keep_next = true; then | ||
1493 | ac_must_keep_next=false # Got value, back to normal. | ||
1494 | else | ||
1495 | case $ac_arg in | ||
1496 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1497 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1498 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1499 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1500 | case "$ac_configure_args0 " in | ||
1501 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1502 | esac | ||
1503 | ;; | ||
1504 | -* ) ac_must_keep_next=true ;; | ||
1505 | esac | ||
1506 | fi | ||
1507 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1508 | ;; | ||
1509 | esac | ||
1510 | done | ||
1511 | done | ||
1512 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1513 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1514 | |||
1515 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1516 | # config.log. We remove comments because anyway the quotes in there | ||
1517 | # would cause problems or look ugly. | ||
1518 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1519 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1520 | trap 'exit_status=$? | ||
1521 | # Save into config.log some information that might help in debugging. | ||
1522 | { | ||
1523 | echo | ||
1524 | |||
1525 | cat <<\_ASBOX | ||
1526 | ## ---------------- ## | ||
1527 | ## Cache variables. ## | ||
1528 | ## ---------------- ## | ||
1529 | _ASBOX | ||
1530 | echo | ||
1531 | # The following way of writing the cache mishandles newlines in values, | ||
1532 | ( | ||
1533 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1534 | eval ac_val=\$$ac_var | ||
1535 | case $ac_val in #( | ||
1536 | *${as_nl}*) | ||
1537 | case $ac_var in #( | ||
1538 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1539 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1540 | esac | ||
1541 | case $ac_var in #( | ||
1542 | _ | IFS | as_nl) ;; #( | ||
1543 | *) $as_unset $ac_var ;; | ||
1544 | esac ;; | ||
1545 | esac | ||
1546 | done | ||
1547 | (set) 2>&1 | | ||
1548 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1549 | *${as_nl}ac_space=\ *) | ||
1550 | sed -n \ | ||
1551 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1552 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1553 | ;; #( | ||
1554 | *) | ||
1555 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1556 | ;; | ||
1557 | esac | | ||
1558 | sort | ||
1559 | ) | ||
1560 | echo | ||
1561 | |||
1562 | cat <<\_ASBOX | ||
1563 | ## ----------------- ## | ||
1564 | ## Output variables. ## | ||
1565 | ## ----------------- ## | ||
1566 | _ASBOX | ||
1567 | echo | ||
1568 | for ac_var in $ac_subst_vars | ||
1569 | do | ||
1570 | eval ac_val=\$$ac_var | ||
1571 | case $ac_val in | ||
1572 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1573 | esac | ||
1574 | echo "$ac_var='\''$ac_val'\''" | ||
1575 | done | sort | ||
1576 | echo | ||
1577 | |||
1578 | if test -n "$ac_subst_files"; then | ||
1579 | cat <<\_ASBOX | ||
1580 | ## ------------------- ## | ||
1581 | ## File substitutions. ## | ||
1582 | ## ------------------- ## | ||
1583 | _ASBOX | ||
1584 | echo | ||
1585 | for ac_var in $ac_subst_files | ||
1586 | do | ||
1587 | eval ac_val=\$$ac_var | ||
1588 | case $ac_val in | ||
1589 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1590 | esac | ||
1591 | echo "$ac_var='\''$ac_val'\''" | ||
1592 | done | sort | ||
1593 | echo | ||
1594 | fi | ||
1595 | |||
1596 | if test -s confdefs.h; then | ||
1597 | cat <<\_ASBOX | ||
1598 | ## ----------- ## | ||
1599 | ## confdefs.h. ## | ||
1600 | ## ----------- ## | ||
1601 | _ASBOX | ||
1602 | echo | ||
1603 | cat confdefs.h | ||
1604 | echo | ||
1605 | fi | ||
1606 | test "$ac_signal" != 0 && | ||
1607 | echo "$as_me: caught signal $ac_signal" | ||
1608 | echo "$as_me: exit $exit_status" | ||
1609 | } >&5 | ||
1610 | rm -f core *.core core.conftest.* && | ||
1611 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1612 | exit $exit_status | ||
1613 | ' 0 | ||
1614 | for ac_signal in 1 2 13 15; do | ||
1615 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1616 | done | ||
1617 | ac_signal=0 | ||
1618 | |||
1619 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1620 | rm -f -r conftest* confdefs.h | ||
1621 | |||
1622 | # Predefined preprocessor variables. | ||
1623 | |||
1624 | cat >>confdefs.h <<_ACEOF | ||
1625 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1626 | _ACEOF | ||
1627 | |||
1628 | |||
1629 | cat >>confdefs.h <<_ACEOF | ||
1630 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1631 | _ACEOF | ||
1632 | |||
1633 | |||
1634 | cat >>confdefs.h <<_ACEOF | ||
1635 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1636 | _ACEOF | ||
1637 | |||
1638 | |||
1639 | cat >>confdefs.h <<_ACEOF | ||
1640 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1641 | _ACEOF | ||
1642 | |||
1643 | |||
1644 | cat >>confdefs.h <<_ACEOF | ||
1645 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1646 | _ACEOF | ||
1647 | |||
1648 | |||
1649 | # Let the site file select an alternate cache file if it wants to. | ||
1650 | # Prefer explicitly selected file to automatically selected ones. | ||
1651 | if test -n "$CONFIG_SITE"; then | ||
1652 | set x "$CONFIG_SITE" | ||
1653 | elif test "x$prefix" != xNONE; then | ||
1654 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1655 | else | ||
1656 | set x "$ac_default_prefix/share/config.site" \ | ||
1657 | "$ac_default_prefix/etc/config.site" | ||
1658 | fi | ||
1659 | shift | ||
1660 | for ac_site_file | ||
1661 | do | ||
1662 | if test -r "$ac_site_file"; then | ||
1663 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1664 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1665 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1666 | . "$ac_site_file" | ||
1667 | fi | ||
1668 | done | ||
1669 | |||
1670 | if test -r "$cache_file"; then | ||
1671 | # Some versions of bash will fail to source /dev/null (special | ||
1672 | # files actually), so we avoid doing that. | ||
1673 | if test -f "$cache_file"; then | ||
1674 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1675 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1676 | case $cache_file in | ||
1677 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1678 | *) . "./$cache_file";; | ||
1679 | esac | ||
1680 | fi | ||
1681 | else | ||
1682 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1683 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1684 | >$cache_file | ||
1685 | fi | ||
1686 | |||
1687 | # Check that the precious variables saved in the cache have kept the same | ||
1688 | # value. | ||
1689 | ac_cache_corrupted=false | ||
1690 | for ac_var in $ac_precious_vars; do | ||
1691 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1692 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1693 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1694 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1695 | case $ac_old_set,$ac_new_set in | ||
1696 | set,) | ||
1697 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1698 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1699 | ac_cache_corrupted=: ;; | ||
1700 | ,set) | ||
1701 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1702 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1703 | ac_cache_corrupted=: ;; | ||
1704 | ,);; | ||
1705 | *) | ||
1706 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1707 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1708 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1709 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1710 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1711 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1712 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1713 | ac_cache_corrupted=: | ||
1714 | fi;; | ||
1715 | esac | ||
1716 | # Pass precious variables to config.status. | ||
1717 | if test "$ac_new_set" = set; then | ||
1718 | case $ac_new_val in | ||
1719 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1720 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1721 | esac | ||
1722 | case " $ac_configure_args " in | ||
1723 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1724 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1725 | esac | ||
1726 | fi | ||
1727 | done | ||
1728 | if $ac_cache_corrupted; then | ||
1729 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1730 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1731 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1732 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1733 | { (exit 1); exit 1; }; } | ||
1734 | fi | ||
1735 | |||
1736 | |||
1737 | |||
1738 | |||
1739 | |||
1740 | |||
1741 | |||
1742 | |||
1743 | |||
1744 | |||
1745 | |||
1746 | |||
1747 | |||
1748 | |||
1749 | |||
1750 | |||
1751 | |||
1752 | ac_ext=c | ||
1753 | ac_cpp='$CPP $CPPFLAGS' | ||
1754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1757 | |||
1758 | |||
1759 | |||
1760 | VERSION=0.2.99.4 | ||
1761 | PACKAGE=g3dviewer | ||
1762 | |||
1763 | ac_config_headers="$ac_config_headers config.h" | ||
1764 | |||
1765 | |||
1766 | am__api_version="1.7" | ||
1767 | ac_aux_dir= | ||
1768 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
1769 | if test -f "$ac_dir/install-sh"; then | ||
1770 | ac_aux_dir=$ac_dir | ||
1771 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1772 | break | ||
1773 | elif test -f "$ac_dir/install.sh"; then | ||
1774 | ac_aux_dir=$ac_dir | ||
1775 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1776 | break | ||
1777 | elif test -f "$ac_dir/shtool"; then | ||
1778 | ac_aux_dir=$ac_dir | ||
1779 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1780 | break | ||
1781 | fi | ||
1782 | done | ||
1783 | if test -z "$ac_aux_dir"; then | ||
1784 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
1785 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
1786 | { (exit 1); exit 1; }; } | ||
1787 | fi | ||
1788 | |||
1789 | # These three variables are undocumented and unsupported, | ||
1790 | # and are intended to be withdrawn in a future Autoconf release. | ||
1791 | # They can cause serious problems if a builder's source tree is in a directory | ||
1792 | # whose full name contains unusual characters. | ||
1793 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1794 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1795 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1796 | |||
1797 | |||
1798 | # Find a good install program. We prefer a C program (faster), | ||
1799 | # so one script is as good as another. But avoid the broken or | ||
1800 | # incompatible versions: | ||
1801 | # SysV /etc/install, /usr/sbin/install | ||
1802 | # SunOS /usr/etc/install | ||
1803 | # IRIX /sbin/install | ||
1804 | # AIX /bin/install | ||
1805 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1806 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1807 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1808 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1809 | # OS/2's system install, which has a completely different semantic | ||
1810 | # ./install, which can be erroneously created by make from ./install.sh. | ||
1811 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
1812 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
1813 | if test -z "$INSTALL"; then | ||
1814 | if test "${ac_cv_path_install+set}" = set; then | ||
1815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1816 | else | ||
1817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1818 | for as_dir in $PATH | ||
1819 | do | ||
1820 | IFS=$as_save_IFS | ||
1821 | test -z "$as_dir" && as_dir=. | ||
1822 | # Account for people who put trailing slashes in PATH elements. | ||
1823 | case $as_dir/ in | ||
1824 | ./ | .// | /cC/* | \ | ||
1825 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
1826 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
1827 | /usr/ucb/* ) ;; | ||
1828 | *) | ||
1829 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
1830 | # Don't use installbsd from OSF since it installs stuff as root | ||
1831 | # by default. | ||
1832 | for ac_prog in ginstall scoinst install; do | ||
1833 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1834 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
1835 | if test $ac_prog = install && | ||
1836 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1837 | # AIX install. It has an incompatible calling convention. | ||
1838 | : | ||
1839 | elif test $ac_prog = install && | ||
1840 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1841 | # program-specific install script used by HP pwplus--don't use. | ||
1842 | : | ||
1843 | else | ||
1844 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
1845 | break 3 | ||
1846 | fi | ||
1847 | fi | ||
1848 | done | ||
1849 | done | ||
1850 | ;; | ||
1851 | esac | ||
1852 | done | ||
1853 | IFS=$as_save_IFS | ||
1854 | |||
1855 | |||
1856 | fi | ||
1857 | if test "${ac_cv_path_install+set}" = set; then | ||
1858 | INSTALL=$ac_cv_path_install | ||
1859 | else | ||
1860 | # As a last resort, use the slow shell script. Don't cache a | ||
1861 | # value for INSTALL within a source directory, because that will | ||
1862 | # break other packages using the cache if that directory is | ||
1863 | # removed, or if the value is a relative name. | ||
1864 | INSTALL=$ac_install_sh | ||
1865 | fi | ||
1866 | fi | ||
1867 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
1868 | echo "${ECHO_T}$INSTALL" >&6; } | ||
1869 | |||
1870 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
1871 | # It thinks the first close brace ends the variable substitution. | ||
1872 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
1873 | |||
1874 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
1875 | |||
1876 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
1877 | |||
1878 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
1879 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
1880 | # Just in case | ||
1881 | sleep 1 | ||
1882 | echo timestamp > conftest.file | ||
1883 | # Do `set' in a subshell so we don't clobber the current shell's | ||
1884 | # arguments. Must try -L first in case configure is actually a | ||
1885 | # symlink; some systems play weird games with the mod time of symlinks | ||
1886 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
1887 | # directory). | ||
1888 | if ( | ||
1889 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
1890 | if test "$*" = "X"; then | ||
1891 | # -L didn't work. | ||
1892 | set X `ls -t $srcdir/configure conftest.file` | ||
1893 | fi | ||
1894 | rm -f conftest.file | ||
1895 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
1896 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
1897 | |||
1898 | # If neither matched, then we have a broken ls. This can happen | ||
1899 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
1900 | # broken ls alias from the environment. This has actually | ||
1901 | # happened. Such a system could not be considered "sane". | ||
1902 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
1903 | alias in your environment" >&5 | ||
1904 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
1905 | alias in your environment" >&2;} | ||
1906 | { (exit 1); exit 1; }; } | ||
1907 | fi | ||
1908 | |||
1909 | test "$2" = conftest.file | ||
1910 | ) | ||
1911 | then | ||
1912 | # Ok. | ||
1913 | : | ||
1914 | else | ||
1915 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
1916 | Check your system clock" >&5 | ||
1917 | echo "$as_me: error: newly created file is older than distributed files! | ||
1918 | Check your system clock" >&2;} | ||
1919 | { (exit 1); exit 1; }; } | ||
1920 | fi | ||
1921 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
1922 | echo "${ECHO_T}yes" >&6; } | ||
1923 | test "$program_prefix" != NONE && | ||
1924 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
1925 | # Use a double $ so make ignores it. | ||
1926 | test "$program_suffix" != NONE && | ||
1927 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
1928 | # Double any \ or $. echo might interpret backslashes. | ||
1929 | # By default was `s,x,x', remove it if useless. | ||
1930 | cat <<\_ACEOF >conftest.sed | ||
1931 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
1932 | _ACEOF | ||
1933 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
1934 | rm -f conftest.sed | ||
1935 | |||
1936 | |||
1937 | # expand $ac_aux_dir to an absolute path | ||
1938 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
1939 | |||
1940 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
1941 | # Use eval to expand $SHELL | ||
1942 | if eval "$MISSING --run true"; then | ||
1943 | am_missing_run="$MISSING --run " | ||
1944 | else | ||
1945 | am_missing_run= | ||
1946 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
1947 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
1948 | fi | ||
1949 | |||
1950 | for ac_prog in gawk mawk nawk awk | ||
1951 | do | ||
1952 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1953 | set dummy $ac_prog; ac_word=$2 | ||
1954 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1956 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1958 | else | ||
1959 | if test -n "$AWK"; then | ||
1960 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1961 | else | ||
1962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1963 | for as_dir in $PATH | ||
1964 | do | ||
1965 | IFS=$as_save_IFS | ||
1966 | test -z "$as_dir" && as_dir=. | ||
1967 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1969 | ac_cv_prog_AWK="$ac_prog" | ||
1970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1971 | break 2 | ||
1972 | fi | ||
1973 | done | ||
1974 | done | ||
1975 | IFS=$as_save_IFS | ||
1976 | |||
1977 | fi | ||
1978 | fi | ||
1979 | AWK=$ac_cv_prog_AWK | ||
1980 | if test -n "$AWK"; then | ||
1981 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
1982 | echo "${ECHO_T}$AWK" >&6; } | ||
1983 | else | ||
1984 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1985 | echo "${ECHO_T}no" >&6; } | ||
1986 | fi | ||
1987 | |||
1988 | |||
1989 | test -n "$AWK" && break | ||
1990 | done | ||
1991 | |||
1992 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
1993 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
1994 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
1995 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1997 | else | ||
1998 | cat >conftest.make <<\_ACEOF | ||
1999 | SHELL = /bin/sh | ||
2000 | all: | ||
2001 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2002 | _ACEOF | ||
2003 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2004 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2005 | *@@@%%%=?*=@@@%%%*) | ||
2006 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2007 | *) | ||
2008 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2009 | esac | ||
2010 | rm -f conftest.make | ||
2011 | fi | ||
2012 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2013 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2014 | echo "${ECHO_T}yes" >&6; } | ||
2015 | SET_MAKE= | ||
2016 | else | ||
2017 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2018 | echo "${ECHO_T}no" >&6; } | ||
2019 | SET_MAKE="MAKE=${MAKE-make}" | ||
2020 | fi | ||
2021 | |||
2022 | rm -rf .tst 2>/dev/null | ||
2023 | mkdir .tst 2>/dev/null | ||
2024 | if test -d .tst; then | ||
2025 | am__leading_dot=. | ||
2026 | else | ||
2027 | am__leading_dot=_ | ||
2028 | fi | ||
2029 | rmdir .tst 2>/dev/null | ||
2030 | |||
2031 | # test to see if srcdir already configured | ||
2032 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
2033 | test -f $srcdir/config.status; then | ||
2034 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2035 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2036 | { (exit 1); exit 1; }; } | ||
2037 | fi | ||
2038 | |||
2039 | # test whether we have cygpath | ||
2040 | if test -z "$CYGPATH_W"; then | ||
2041 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2042 | CYGPATH_W='cygpath -w' | ||
2043 | else | ||
2044 | CYGPATH_W=echo | ||
2045 | fi | ||
2046 | fi | ||
2047 | |||
2048 | |||
2049 | # Define the identity of the package. | ||
2050 | PACKAGE=$PACKAGE | ||
2051 | VERSION=$VERSION | ||
2052 | |||
2053 | |||
2054 | # Some tools Automake needs. | ||
2055 | |||
2056 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2057 | |||
2058 | |||
2059 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2060 | |||
2061 | |||
2062 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2063 | |||
2064 | |||
2065 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2066 | |||
2067 | |||
2068 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2069 | |||
2070 | |||
2071 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2072 | |||
2073 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
2074 | |||
2075 | # Installed binaries are usually stripped using `strip' when the user | ||
2076 | # run `make install-strip'. However `strip' might not be the right | ||
2077 | # tool to use in cross-compilation environments, therefore Automake | ||
2078 | # will honor the `STRIP' environment variable to overrule this program. | ||
2079 | if test "$cross_compiling" != no; then | ||
2080 | if test -n "$ac_tool_prefix"; then | ||
2081 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2082 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2085 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2087 | else | ||
2088 | if test -n "$STRIP"; then | ||
2089 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2090 | else | ||
2091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2092 | for as_dir in $PATH | ||
2093 | do | ||
2094 | IFS=$as_save_IFS | ||
2095 | test -z "$as_dir" && as_dir=. | ||
2096 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2098 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2100 | break 2 | ||
2101 | fi | ||
2102 | done | ||
2103 | done | ||
2104 | IFS=$as_save_IFS | ||
2105 | |||
2106 | fi | ||
2107 | fi | ||
2108 | STRIP=$ac_cv_prog_STRIP | ||
2109 | if test -n "$STRIP"; then | ||
2110 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2111 | echo "${ECHO_T}$STRIP" >&6; } | ||
2112 | else | ||
2113 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2114 | echo "${ECHO_T}no" >&6; } | ||
2115 | fi | ||
2116 | |||
2117 | |||
2118 | fi | ||
2119 | if test -z "$ac_cv_prog_STRIP"; then | ||
2120 | ac_ct_STRIP=$STRIP | ||
2121 | # Extract the first word of "strip", so it can be a program name with args. | ||
2122 | set dummy strip; ac_word=$2 | ||
2123 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2125 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2127 | else | ||
2128 | if test -n "$ac_ct_STRIP"; then | ||
2129 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2130 | else | ||
2131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2132 | for as_dir in $PATH | ||
2133 | do | ||
2134 | IFS=$as_save_IFS | ||
2135 | test -z "$as_dir" && as_dir=. | ||
2136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2138 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2140 | break 2 | ||
2141 | fi | ||
2142 | done | ||
2143 | done | ||
2144 | IFS=$as_save_IFS | ||
2145 | |||
2146 | fi | ||
2147 | fi | ||
2148 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2149 | if test -n "$ac_ct_STRIP"; then | ||
2150 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2151 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2152 | else | ||
2153 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2154 | echo "${ECHO_T}no" >&6; } | ||
2155 | fi | ||
2156 | |||
2157 | if test "x$ac_ct_STRIP" = x; then | ||
2158 | STRIP=":" | ||
2159 | else | ||
2160 | case $cross_compiling:$ac_tool_warned in | ||
2161 | yes:) | ||
2162 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2163 | whose name does not start with the host triplet. If you think this | ||
2164 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2165 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2166 | whose name does not start with the host triplet. If you think this | ||
2167 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2168 | ac_tool_warned=yes ;; | ||
2169 | esac | ||
2170 | STRIP=$ac_ct_STRIP | ||
2171 | fi | ||
2172 | else | ||
2173 | STRIP="$ac_cv_prog_STRIP" | ||
2174 | fi | ||
2175 | |||
2176 | fi | ||
2177 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
2178 | |||
2179 | # We need awk for the "check" target. The system "awk" is bad on | ||
2180 | # some platforms. | ||
2181 | |||
2182 | |||
2183 | |||
2184 | |||
2185 | |||
2186 | ac_ext=c | ||
2187 | ac_cpp='$CPP $CPPFLAGS' | ||
2188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2191 | if test -n "$ac_tool_prefix"; then | ||
2192 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2193 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2194 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2196 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2198 | else | ||
2199 | if test -n "$CC"; then | ||
2200 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2201 | else | ||
2202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2203 | for as_dir in $PATH | ||
2204 | do | ||
2205 | IFS=$as_save_IFS | ||
2206 | test -z "$as_dir" && as_dir=. | ||
2207 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2209 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2211 | break 2 | ||
2212 | fi | ||
2213 | done | ||
2214 | done | ||
2215 | IFS=$as_save_IFS | ||
2216 | |||
2217 | fi | ||
2218 | fi | ||
2219 | CC=$ac_cv_prog_CC | ||
2220 | if test -n "$CC"; then | ||
2221 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2222 | echo "${ECHO_T}$CC" >&6; } | ||
2223 | else | ||
2224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2225 | echo "${ECHO_T}no" >&6; } | ||
2226 | fi | ||
2227 | |||
2228 | |||
2229 | fi | ||
2230 | if test -z "$ac_cv_prog_CC"; then | ||
2231 | ac_ct_CC=$CC | ||
2232 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2233 | set dummy gcc; ac_word=$2 | ||
2234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2236 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2238 | else | ||
2239 | if test -n "$ac_ct_CC"; then | ||
2240 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2241 | else | ||
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2243 | for as_dir in $PATH | ||
2244 | do | ||
2245 | IFS=$as_save_IFS | ||
2246 | test -z "$as_dir" && as_dir=. | ||
2247 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2249 | ac_cv_prog_ac_ct_CC="gcc" | ||
2250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2251 | break 2 | ||
2252 | fi | ||
2253 | done | ||
2254 | done | ||
2255 | IFS=$as_save_IFS | ||
2256 | |||
2257 | fi | ||
2258 | fi | ||
2259 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2260 | if test -n "$ac_ct_CC"; then | ||
2261 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2262 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2263 | else | ||
2264 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2265 | echo "${ECHO_T}no" >&6; } | ||
2266 | fi | ||
2267 | |||
2268 | if test "x$ac_ct_CC" = x; then | ||
2269 | CC="" | ||
2270 | else | ||
2271 | case $cross_compiling:$ac_tool_warned in | ||
2272 | yes:) | ||
2273 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2274 | whose name does not start with the host triplet. If you think this | ||
2275 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2276 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2277 | whose name does not start with the host triplet. If you think this | ||
2278 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2279 | ac_tool_warned=yes ;; | ||
2280 | esac | ||
2281 | CC=$ac_ct_CC | ||
2282 | fi | ||
2283 | else | ||
2284 | CC="$ac_cv_prog_CC" | ||
2285 | fi | ||
2286 | |||
2287 | if test -z "$CC"; then | ||
2288 | if test -n "$ac_tool_prefix"; then | ||
2289 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2290 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2293 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2295 | else | ||
2296 | if test -n "$CC"; then | ||
2297 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2298 | else | ||
2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2300 | for as_dir in $PATH | ||
2301 | do | ||
2302 | IFS=$as_save_IFS | ||
2303 | test -z "$as_dir" && as_dir=. | ||
2304 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2306 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2308 | break 2 | ||
2309 | fi | ||
2310 | done | ||
2311 | done | ||
2312 | IFS=$as_save_IFS | ||
2313 | |||
2314 | fi | ||
2315 | fi | ||
2316 | CC=$ac_cv_prog_CC | ||
2317 | if test -n "$CC"; then | ||
2318 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2319 | echo "${ECHO_T}$CC" >&6; } | ||
2320 | else | ||
2321 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2322 | echo "${ECHO_T}no" >&6; } | ||
2323 | fi | ||
2324 | |||
2325 | |||
2326 | fi | ||
2327 | fi | ||
2328 | if test -z "$CC"; then | ||
2329 | # Extract the first word of "cc", so it can be a program name with args. | ||
2330 | set dummy cc; ac_word=$2 | ||
2331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2333 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2335 | else | ||
2336 | if test -n "$CC"; then | ||
2337 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2338 | else | ||
2339 | ac_prog_rejected=no | ||
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2341 | for as_dir in $PATH | ||
2342 | do | ||
2343 | IFS=$as_save_IFS | ||
2344 | test -z "$as_dir" && as_dir=. | ||
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2347 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2348 | ac_prog_rejected=yes | ||
2349 | continue | ||
2350 | fi | ||
2351 | ac_cv_prog_CC="cc" | ||
2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2353 | break 2 | ||
2354 | fi | ||
2355 | done | ||
2356 | done | ||
2357 | IFS=$as_save_IFS | ||
2358 | |||
2359 | if test $ac_prog_rejected = yes; then | ||
2360 | # We found a bogon in the path, so make sure we never use it. | ||
2361 | set dummy $ac_cv_prog_CC | ||
2362 | shift | ||
2363 | if test $# != 0; then | ||
2364 | # We chose a different compiler from the bogus one. | ||
2365 | # However, it has the same basename, so the bogon will be chosen | ||
2366 | # first if we set CC to just the basename; use the full file name. | ||
2367 | shift | ||
2368 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2369 | fi | ||
2370 | fi | ||
2371 | fi | ||
2372 | fi | ||
2373 | CC=$ac_cv_prog_CC | ||
2374 | if test -n "$CC"; then | ||
2375 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2376 | echo "${ECHO_T}$CC" >&6; } | ||
2377 | else | ||
2378 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2379 | echo "${ECHO_T}no" >&6; } | ||
2380 | fi | ||
2381 | |||
2382 | |||
2383 | fi | ||
2384 | if test -z "$CC"; then | ||
2385 | if test -n "$ac_tool_prefix"; then | ||
2386 | for ac_prog in cl.exe | ||
2387 | do | ||
2388 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2389 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2392 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2394 | else | ||
2395 | if test -n "$CC"; then | ||
2396 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2397 | else | ||
2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2399 | for as_dir in $PATH | ||
2400 | do | ||
2401 | IFS=$as_save_IFS | ||
2402 | test -z "$as_dir" && as_dir=. | ||
2403 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2405 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2407 | break 2 | ||
2408 | fi | ||
2409 | done | ||
2410 | done | ||
2411 | IFS=$as_save_IFS | ||
2412 | |||
2413 | fi | ||
2414 | fi | ||
2415 | CC=$ac_cv_prog_CC | ||
2416 | if test -n "$CC"; then | ||
2417 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2418 | echo "${ECHO_T}$CC" >&6; } | ||
2419 | else | ||
2420 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2421 | echo "${ECHO_T}no" >&6; } | ||
2422 | fi | ||
2423 | |||
2424 | |||
2425 | test -n "$CC" && break | ||
2426 | done | ||
2427 | fi | ||
2428 | if test -z "$CC"; then | ||
2429 | ac_ct_CC=$CC | ||
2430 | for ac_prog in cl.exe | ||
2431 | do | ||
2432 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2433 | set dummy $ac_prog; ac_word=$2 | ||
2434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2436 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2438 | else | ||
2439 | if test -n "$ac_ct_CC"; then | ||
2440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2441 | else | ||
2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2443 | for as_dir in $PATH | ||
2444 | do | ||
2445 | IFS=$as_save_IFS | ||
2446 | test -z "$as_dir" && as_dir=. | ||
2447 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2449 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2451 | break 2 | ||
2452 | fi | ||
2453 | done | ||
2454 | done | ||
2455 | IFS=$as_save_IFS | ||
2456 | |||
2457 | fi | ||
2458 | fi | ||
2459 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2460 | if test -n "$ac_ct_CC"; then | ||
2461 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2462 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2463 | else | ||
2464 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2465 | echo "${ECHO_T}no" >&6; } | ||
2466 | fi | ||
2467 | |||
2468 | |||
2469 | test -n "$ac_ct_CC" && break | ||
2470 | done | ||
2471 | |||
2472 | if test "x$ac_ct_CC" = x; then | ||
2473 | CC="" | ||
2474 | else | ||
2475 | case $cross_compiling:$ac_tool_warned in | ||
2476 | yes:) | ||
2477 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2478 | whose name does not start with the host triplet. If you think this | ||
2479 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2480 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2481 | whose name does not start with the host triplet. If you think this | ||
2482 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2483 | ac_tool_warned=yes ;; | ||
2484 | esac | ||
2485 | CC=$ac_ct_CC | ||
2486 | fi | ||
2487 | fi | ||
2488 | |||
2489 | fi | ||
2490 | |||
2491 | |||
2492 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2493 | See \`config.log' for more details." >&5 | ||
2494 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2495 | See \`config.log' for more details." >&2;} | ||
2496 | { (exit 1); exit 1; }; } | ||
2497 | |||
2498 | # Provide some information about the compiler. | ||
2499 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2500 | ac_compiler=`set X $ac_compile; echo $2` | ||
2501 | { (ac_try="$ac_compiler --version >&5" | ||
2502 | case "(($ac_try" in | ||
2503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2504 | *) ac_try_echo=$ac_try;; | ||
2505 | esac | ||
2506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2507 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2508 | ac_status=$? | ||
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2510 | (exit $ac_status); } | ||
2511 | { (ac_try="$ac_compiler -v >&5" | ||
2512 | case "(($ac_try" in | ||
2513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2514 | *) ac_try_echo=$ac_try;; | ||
2515 | esac | ||
2516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2517 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2518 | ac_status=$? | ||
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2520 | (exit $ac_status); } | ||
2521 | { (ac_try="$ac_compiler -V >&5" | ||
2522 | case "(($ac_try" in | ||
2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2524 | *) ac_try_echo=$ac_try;; | ||
2525 | esac | ||
2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2527 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2528 | ac_status=$? | ||
2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2530 | (exit $ac_status); } | ||
2531 | |||
2532 | cat >conftest.$ac_ext <<_ACEOF | ||
2533 | /* confdefs.h. */ | ||
2534 | _ACEOF | ||
2535 | cat confdefs.h >>conftest.$ac_ext | ||
2536 | cat >>conftest.$ac_ext <<_ACEOF | ||
2537 | /* end confdefs.h. */ | ||
2538 | |||
2539 | int | ||
2540 | main () | ||
2541 | { | ||
2542 | |||
2543 | ; | ||
2544 | return 0; | ||
2545 | } | ||
2546 | _ACEOF | ||
2547 | ac_clean_files_save=$ac_clean_files | ||
2548 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2549 | # Try to create an executable without -o first, disregard a.out. | ||
2550 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2551 | # of exeext. | ||
2552 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2553 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2554 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2555 | # | ||
2556 | # List of possible output files, starting from the most likely. | ||
2557 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2558 | # only as a last resort. b.out is created by i960 compilers. | ||
2559 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2560 | # | ||
2561 | # The IRIX 6 linker writes into existing files which may not be | ||
2562 | # executable, retaining their permissions. Remove them first so a | ||
2563 | # subsequent execution test works. | ||
2564 | ac_rmfiles= | ||
2565 | for ac_file in $ac_files | ||
2566 | do | ||
2567 | case $ac_file in | ||
2568 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2569 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2570 | esac | ||
2571 | done | ||
2572 | rm -f $ac_rmfiles | ||
2573 | |||
2574 | if { (ac_try="$ac_link_default" | ||
2575 | case "(($ac_try" in | ||
2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2577 | *) ac_try_echo=$ac_try;; | ||
2578 | esac | ||
2579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2580 | (eval "$ac_link_default") 2>&5 | ||
2581 | ac_status=$? | ||
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2583 | (exit $ac_status); }; then | ||
2584 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2585 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2586 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2587 | # so that the user can short-circuit this test for compilers unknown to | ||
2588 | # Autoconf. | ||
2589 | for ac_file in $ac_files '' | ||
2590 | do | ||
2591 | test -f "$ac_file" || continue | ||
2592 | case $ac_file in | ||
2593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2594 | ;; | ||
2595 | [ab].out ) | ||
2596 | # We found the default executable, but exeext='' is most | ||
2597 | # certainly right. | ||
2598 | break;; | ||
2599 | *.* ) | ||
2600 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2601 | then :; else | ||
2602 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2603 | fi | ||
2604 | # We set ac_cv_exeext here because the later test for it is not | ||
2605 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2606 | # argument, so we may need to know it at that point already. | ||
2607 | # Even if this section looks crufty: it has the advantage of | ||
2608 | # actually working. | ||
2609 | break;; | ||
2610 | * ) | ||
2611 | break;; | ||
2612 | esac | ||
2613 | done | ||
2614 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2615 | |||
2616 | else | ||
2617 | ac_file='' | ||
2618 | fi | ||
2619 | |||
2620 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2621 | echo "${ECHO_T}$ac_file" >&6; } | ||
2622 | if test -z "$ac_file"; then | ||
2623 | echo "$as_me: failed program was:" >&5 | ||
2624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2625 | |||
2626 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2627 | See \`config.log' for more details." >&5 | ||
2628 | echo "$as_me: error: C compiler cannot create executables | ||
2629 | See \`config.log' for more details." >&2;} | ||
2630 | { (exit 77); exit 77; }; } | ||
2631 | fi | ||
2632 | |||
2633 | ac_exeext=$ac_cv_exeext | ||
2634 | |||
2635 | # Check that the compiler produces executables we can run. If not, either | ||
2636 | # the compiler is broken, or we cross compile. | ||
2637 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2638 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2639 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2640 | # If not cross compiling, check that we can run a simple program. | ||
2641 | if test "$cross_compiling" != yes; then | ||
2642 | if { ac_try='./$ac_file' | ||
2643 | { (case "(($ac_try" in | ||
2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2645 | *) ac_try_echo=$ac_try;; | ||
2646 | esac | ||
2647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2648 | (eval "$ac_try") 2>&5 | ||
2649 | ac_status=$? | ||
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2651 | (exit $ac_status); }; }; then | ||
2652 | cross_compiling=no | ||
2653 | else | ||
2654 | if test "$cross_compiling" = maybe; then | ||
2655 | cross_compiling=yes | ||
2656 | else | ||
2657 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2658 | If you meant to cross compile, use \`--host'. | ||
2659 | See \`config.log' for more details." >&5 | ||
2660 | echo "$as_me: error: cannot run C compiled programs. | ||
2661 | If you meant to cross compile, use \`--host'. | ||
2662 | See \`config.log' for more details." >&2;} | ||
2663 | { (exit 1); exit 1; }; } | ||
2664 | fi | ||
2665 | fi | ||
2666 | fi | ||
2667 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2668 | echo "${ECHO_T}yes" >&6; } | ||
2669 | |||
2670 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2671 | ac_clean_files=$ac_clean_files_save | ||
2672 | # Check that the compiler produces executables we can run. If not, either | ||
2673 | # the compiler is broken, or we cross compile. | ||
2674 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2675 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2676 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2677 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2678 | |||
2679 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2680 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2681 | if { (ac_try="$ac_link" | ||
2682 | case "(($ac_try" in | ||
2683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2684 | *) ac_try_echo=$ac_try;; | ||
2685 | esac | ||
2686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2687 | (eval "$ac_link") 2>&5 | ||
2688 | ac_status=$? | ||
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2690 | (exit $ac_status); }; then | ||
2691 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2692 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2693 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2694 | # `rm'. | ||
2695 | for ac_file in conftest.exe conftest conftest.*; do | ||
2696 | test -f "$ac_file" || continue | ||
2697 | case $ac_file in | ||
2698 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2699 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2700 | break;; | ||
2701 | * ) break;; | ||
2702 | esac | ||
2703 | done | ||
2704 | else | ||
2705 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2706 | See \`config.log' for more details." >&5 | ||
2707 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2708 | See \`config.log' for more details." >&2;} | ||
2709 | { (exit 1); exit 1; }; } | ||
2710 | fi | ||
2711 | |||
2712 | rm -f conftest$ac_cv_exeext | ||
2713 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2714 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2715 | |||
2716 | rm -f conftest.$ac_ext | ||
2717 | EXEEXT=$ac_cv_exeext | ||
2718 | ac_exeext=$EXEEXT | ||
2719 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2720 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2721 | if test "${ac_cv_objext+set}" = set; then | ||
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2723 | else | ||
2724 | cat >conftest.$ac_ext <<_ACEOF | ||
2725 | /* confdefs.h. */ | ||
2726 | _ACEOF | ||
2727 | cat confdefs.h >>conftest.$ac_ext | ||
2728 | cat >>conftest.$ac_ext <<_ACEOF | ||
2729 | /* end confdefs.h. */ | ||
2730 | |||
2731 | int | ||
2732 | main () | ||
2733 | { | ||
2734 | |||
2735 | ; | ||
2736 | return 0; | ||
2737 | } | ||
2738 | _ACEOF | ||
2739 | rm -f conftest.o conftest.obj | ||
2740 | if { (ac_try="$ac_compile" | ||
2741 | case "(($ac_try" in | ||
2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2743 | *) ac_try_echo=$ac_try;; | ||
2744 | esac | ||
2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2746 | (eval "$ac_compile") 2>&5 | ||
2747 | ac_status=$? | ||
2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2749 | (exit $ac_status); }; then | ||
2750 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2751 | test -f "$ac_file" || continue; | ||
2752 | case $ac_file in | ||
2753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2754 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2755 | break;; | ||
2756 | esac | ||
2757 | done | ||
2758 | else | ||
2759 | echo "$as_me: failed program was:" >&5 | ||
2760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2761 | |||
2762 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2763 | See \`config.log' for more details." >&5 | ||
2764 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2765 | See \`config.log' for more details." >&2;} | ||
2766 | { (exit 1); exit 1; }; } | ||
2767 | fi | ||
2768 | |||
2769 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2770 | fi | ||
2771 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2772 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2773 | OBJEXT=$ac_cv_objext | ||
2774 | ac_objext=$OBJEXT | ||
2775 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2776 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2777 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2779 | else | ||
2780 | cat >conftest.$ac_ext <<_ACEOF | ||
2781 | /* confdefs.h. */ | ||
2782 | _ACEOF | ||
2783 | cat confdefs.h >>conftest.$ac_ext | ||
2784 | cat >>conftest.$ac_ext <<_ACEOF | ||
2785 | /* end confdefs.h. */ | ||
2786 | |||
2787 | int | ||
2788 | main () | ||
2789 | { | ||
2790 | #ifndef __GNUC__ | ||
2791 | choke me | ||
2792 | #endif | ||
2793 | |||
2794 | ; | ||
2795 | return 0; | ||
2796 | } | ||
2797 | _ACEOF | ||
2798 | rm -f conftest.$ac_objext | ||
2799 | if { (ac_try="$ac_compile" | ||
2800 | case "(($ac_try" in | ||
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2802 | *) ac_try_echo=$ac_try;; | ||
2803 | esac | ||
2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2805 | (eval "$ac_compile") 2>conftest.er1 | ||
2806 | ac_status=$? | ||
2807 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2808 | rm -f conftest.er1 | ||
2809 | cat conftest.err >&5 | ||
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2811 | (exit $ac_status); } && | ||
2812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2813 | { (case "(($ac_try" in | ||
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2815 | *) ac_try_echo=$ac_try;; | ||
2816 | esac | ||
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2818 | (eval "$ac_try") 2>&5 | ||
2819 | ac_status=$? | ||
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2821 | (exit $ac_status); }; } && | ||
2822 | { ac_try='test -s conftest.$ac_objext' | ||
2823 | { (case "(($ac_try" in | ||
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2825 | *) ac_try_echo=$ac_try;; | ||
2826 | esac | ||
2827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2828 | (eval "$ac_try") 2>&5 | ||
2829 | ac_status=$? | ||
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2831 | (exit $ac_status); }; }; then | ||
2832 | ac_compiler_gnu=yes | ||
2833 | else | ||
2834 | echo "$as_me: failed program was:" >&5 | ||
2835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2836 | |||
2837 | ac_compiler_gnu=no | ||
2838 | fi | ||
2839 | |||
2840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2841 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2842 | |||
2843 | fi | ||
2844 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2845 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2846 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2847 | ac_test_CFLAGS=${CFLAGS+set} | ||
2848 | ac_save_CFLAGS=$CFLAGS | ||
2849 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2850 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2851 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2853 | else | ||
2854 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2855 | ac_c_werror_flag=yes | ||
2856 | ac_cv_prog_cc_g=no | ||
2857 | CFLAGS="-g" | ||
2858 | cat >conftest.$ac_ext <<_ACEOF | ||
2859 | /* confdefs.h. */ | ||
2860 | _ACEOF | ||
2861 | cat confdefs.h >>conftest.$ac_ext | ||
2862 | cat >>conftest.$ac_ext <<_ACEOF | ||
2863 | /* end confdefs.h. */ | ||
2864 | |||
2865 | int | ||
2866 | main () | ||
2867 | { | ||
2868 | |||
2869 | ; | ||
2870 | return 0; | ||
2871 | } | ||
2872 | _ACEOF | ||
2873 | rm -f conftest.$ac_objext | ||
2874 | if { (ac_try="$ac_compile" | ||
2875 | case "(($ac_try" in | ||
2876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2877 | *) ac_try_echo=$ac_try;; | ||
2878 | esac | ||
2879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2880 | (eval "$ac_compile") 2>conftest.er1 | ||
2881 | ac_status=$? | ||
2882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2883 | rm -f conftest.er1 | ||
2884 | cat conftest.err >&5 | ||
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2886 | (exit $ac_status); } && | ||
2887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2888 | { (case "(($ac_try" in | ||
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2890 | *) ac_try_echo=$ac_try;; | ||
2891 | esac | ||
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2893 | (eval "$ac_try") 2>&5 | ||
2894 | ac_status=$? | ||
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2896 | (exit $ac_status); }; } && | ||
2897 | { ac_try='test -s conftest.$ac_objext' | ||
2898 | { (case "(($ac_try" in | ||
2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2900 | *) ac_try_echo=$ac_try;; | ||
2901 | esac | ||
2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2903 | (eval "$ac_try") 2>&5 | ||
2904 | ac_status=$? | ||
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2906 | (exit $ac_status); }; }; then | ||
2907 | ac_cv_prog_cc_g=yes | ||
2908 | else | ||
2909 | echo "$as_me: failed program was:" >&5 | ||
2910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2911 | |||
2912 | CFLAGS="" | ||
2913 | cat >conftest.$ac_ext <<_ACEOF | ||
2914 | /* confdefs.h. */ | ||
2915 | _ACEOF | ||
2916 | cat confdefs.h >>conftest.$ac_ext | ||
2917 | cat >>conftest.$ac_ext <<_ACEOF | ||
2918 | /* end confdefs.h. */ | ||
2919 | |||
2920 | int | ||
2921 | main () | ||
2922 | { | ||
2923 | |||
2924 | ; | ||
2925 | return 0; | ||
2926 | } | ||
2927 | _ACEOF | ||
2928 | rm -f conftest.$ac_objext | ||
2929 | if { (ac_try="$ac_compile" | ||
2930 | case "(($ac_try" in | ||
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2932 | *) ac_try_echo=$ac_try;; | ||
2933 | esac | ||
2934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2935 | (eval "$ac_compile") 2>conftest.er1 | ||
2936 | ac_status=$? | ||
2937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2938 | rm -f conftest.er1 | ||
2939 | cat conftest.err >&5 | ||
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2941 | (exit $ac_status); } && | ||
2942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2943 | { (case "(($ac_try" in | ||
2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2945 | *) ac_try_echo=$ac_try;; | ||
2946 | esac | ||
2947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2948 | (eval "$ac_try") 2>&5 | ||
2949 | ac_status=$? | ||
2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2951 | (exit $ac_status); }; } && | ||
2952 | { ac_try='test -s conftest.$ac_objext' | ||
2953 | { (case "(($ac_try" in | ||
2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2955 | *) ac_try_echo=$ac_try;; | ||
2956 | esac | ||
2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2958 | (eval "$ac_try") 2>&5 | ||
2959 | ac_status=$? | ||
2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2961 | (exit $ac_status); }; }; then | ||
2962 | : | ||
2963 | else | ||
2964 | echo "$as_me: failed program was:" >&5 | ||
2965 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2966 | |||
2967 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2968 | CFLAGS="-g" | ||
2969 | cat >conftest.$ac_ext <<_ACEOF | ||
2970 | /* confdefs.h. */ | ||
2971 | _ACEOF | ||
2972 | cat confdefs.h >>conftest.$ac_ext | ||
2973 | cat >>conftest.$ac_ext <<_ACEOF | ||
2974 | /* end confdefs.h. */ | ||
2975 | |||
2976 | int | ||
2977 | main () | ||
2978 | { | ||
2979 | |||
2980 | ; | ||
2981 | return 0; | ||
2982 | } | ||
2983 | _ACEOF | ||
2984 | rm -f conftest.$ac_objext | ||
2985 | if { (ac_try="$ac_compile" | ||
2986 | case "(($ac_try" in | ||
2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2988 | *) ac_try_echo=$ac_try;; | ||
2989 | esac | ||
2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2991 | (eval "$ac_compile") 2>conftest.er1 | ||
2992 | ac_status=$? | ||
2993 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2994 | rm -f conftest.er1 | ||
2995 | cat conftest.err >&5 | ||
2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2997 | (exit $ac_status); } && | ||
2998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2999 | { (case "(($ac_try" in | ||
3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3001 | *) ac_try_echo=$ac_try;; | ||
3002 | esac | ||
3003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3004 | (eval "$ac_try") 2>&5 | ||
3005 | ac_status=$? | ||
3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3007 | (exit $ac_status); }; } && | ||
3008 | { ac_try='test -s conftest.$ac_objext' | ||
3009 | { (case "(($ac_try" in | ||
3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3011 | *) ac_try_echo=$ac_try;; | ||
3012 | esac | ||
3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3014 | (eval "$ac_try") 2>&5 | ||
3015 | ac_status=$? | ||
3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3017 | (exit $ac_status); }; }; then | ||
3018 | ac_cv_prog_cc_g=yes | ||
3019 | else | ||
3020 | echo "$as_me: failed program was:" >&5 | ||
3021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3022 | |||
3023 | |||
3024 | fi | ||
3025 | |||
3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3027 | fi | ||
3028 | |||
3029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3030 | fi | ||
3031 | |||
3032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3033 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3034 | fi | ||
3035 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3036 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3037 | if test "$ac_test_CFLAGS" = set; then | ||
3038 | CFLAGS=$ac_save_CFLAGS | ||
3039 | elif test $ac_cv_prog_cc_g = yes; then | ||
3040 | if test "$GCC" = yes; then | ||
3041 | CFLAGS="-g -O2" | ||
3042 | else | ||
3043 | CFLAGS="-g" | ||
3044 | fi | ||
3045 | else | ||
3046 | if test "$GCC" = yes; then | ||
3047 | CFLAGS="-O2" | ||
3048 | else | ||
3049 | CFLAGS= | ||
3050 | fi | ||
3051 | fi | ||
3052 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3053 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3054 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3056 | else | ||
3057 | ac_cv_prog_cc_c89=no | ||
3058 | ac_save_CC=$CC | ||
3059 | cat >conftest.$ac_ext <<_ACEOF | ||
3060 | /* confdefs.h. */ | ||
3061 | _ACEOF | ||
3062 | cat confdefs.h >>conftest.$ac_ext | ||
3063 | cat >>conftest.$ac_ext <<_ACEOF | ||
3064 | /* end confdefs.h. */ | ||
3065 | #include <stdarg.h> | ||
3066 | #include <stdio.h> | ||
3067 | #include <sys/types.h> | ||
3068 | #include <sys/stat.h> | ||
3069 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3070 | struct buf { int x; }; | ||
3071 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3072 | static char *e (p, i) | ||
3073 | char **p; | ||
3074 | int i; | ||
3075 | { | ||
3076 | return p[i]; | ||
3077 | } | ||
3078 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3079 | { | ||
3080 | char *s; | ||
3081 | va_list v; | ||
3082 | va_start (v,p); | ||
3083 | s = g (p, va_arg (v,int)); | ||
3084 | va_end (v); | ||
3085 | return s; | ||
3086 | } | ||
3087 | |||
3088 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3089 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3090 | These don't provoke an error unfortunately, instead are silently treated | ||
3091 | as 'x'. The following induces an error, until -std is added to get | ||
3092 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3093 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3094 | that's true only with -std. */ | ||
3095 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3096 | |||
3097 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3098 | inside strings and character constants. */ | ||
3099 | #define FOO(x) 'x' | ||
3100 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3101 | |||
3102 | int test (int i, double x); | ||
3103 | struct s1 {int (*f) (int a);}; | ||
3104 | struct s2 {int (*f) (double a);}; | ||
3105 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3106 | int argc; | ||
3107 | char **argv; | ||
3108 | int | ||
3109 | main () | ||
3110 | { | ||
3111 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3112 | ; | ||
3113 | return 0; | ||
3114 | } | ||
3115 | _ACEOF | ||
3116 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3117 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3118 | do | ||
3119 | CC="$ac_save_CC $ac_arg" | ||
3120 | rm -f conftest.$ac_objext | ||
3121 | if { (ac_try="$ac_compile" | ||
3122 | case "(($ac_try" in | ||
3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3124 | *) ac_try_echo=$ac_try;; | ||
3125 | esac | ||
3126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3127 | (eval "$ac_compile") 2>conftest.er1 | ||
3128 | ac_status=$? | ||
3129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3130 | rm -f conftest.er1 | ||
3131 | cat conftest.err >&5 | ||
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3133 | (exit $ac_status); } && | ||
3134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3135 | { (case "(($ac_try" in | ||
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3137 | *) ac_try_echo=$ac_try;; | ||
3138 | esac | ||
3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3140 | (eval "$ac_try") 2>&5 | ||
3141 | ac_status=$? | ||
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3143 | (exit $ac_status); }; } && | ||
3144 | { ac_try='test -s conftest.$ac_objext' | ||
3145 | { (case "(($ac_try" in | ||
3146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3147 | *) ac_try_echo=$ac_try;; | ||
3148 | esac | ||
3149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3150 | (eval "$ac_try") 2>&5 | ||
3151 | ac_status=$? | ||
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3153 | (exit $ac_status); }; }; then | ||
3154 | ac_cv_prog_cc_c89=$ac_arg | ||
3155 | else | ||
3156 | echo "$as_me: failed program was:" >&5 | ||
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3158 | |||
3159 | |||
3160 | fi | ||
3161 | |||
3162 | rm -f core conftest.err conftest.$ac_objext | ||
3163 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3164 | done | ||
3165 | rm -f conftest.$ac_ext | ||
3166 | CC=$ac_save_CC | ||
3167 | |||
3168 | fi | ||
3169 | # AC_CACHE_VAL | ||
3170 | case "x$ac_cv_prog_cc_c89" in | ||
3171 | x) | ||
3172 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3173 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3174 | xno) | ||
3175 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3176 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3177 | *) | ||
3178 | CC="$CC $ac_cv_prog_cc_c89" | ||
3179 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3180 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3181 | esac | ||
3182 | |||
3183 | |||
3184 | ac_ext=c | ||
3185 | ac_cpp='$CPP $CPPFLAGS' | ||
3186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3189 | DEPDIR="${am__leading_dot}deps" | ||
3190 | |||
3191 | ac_config_commands="$ac_config_commands depfiles" | ||
3192 | |||
3193 | |||
3194 | am_make=${MAKE-make} | ||
3195 | cat > confinc << 'END' | ||
3196 | am__doit: | ||
3197 | @echo done | ||
3198 | .PHONY: am__doit | ||
3199 | END | ||
3200 | # If we don't find an include directive, just comment out the code. | ||
3201 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
3202 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
3203 | am__include="#" | ||
3204 | am__quote= | ||
3205 | _am_result=none | ||
3206 | # First try GNU make style include. | ||
3207 | echo "include confinc" > confmf | ||
3208 | # We grep out `Entering directory' and `Leaving directory' | ||
3209 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
3210 | # In particular we don't look at `^make:' because GNU make might | ||
3211 | # be invoked under some other name (usually "gmake"), in which | ||
3212 | # case it prints its new name instead of `make'. | ||
3213 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
3214 | am__include=include | ||
3215 | am__quote= | ||
3216 | _am_result=GNU | ||
3217 | fi | ||
3218 | # Now try BSD make style include. | ||
3219 | if test "$am__include" = "#"; then | ||
3220 | echo '.include "confinc"' > confmf | ||
3221 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
3222 | am__include=.include | ||
3223 | am__quote="\"" | ||
3224 | _am_result=BSD | ||
3225 | fi | ||
3226 | fi | ||
3227 | |||
3228 | |||
3229 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
3230 | echo "${ECHO_T}$_am_result" >&6; } | ||
3231 | rm -f confinc confmf | ||
3232 | |||
3233 | # Check whether --enable-dependency-tracking was given. | ||
3234 | if test "${enable_dependency_tracking+set}" = set; then | ||
3235 | enableval=$enable_dependency_tracking; | ||
3236 | fi | ||
3237 | |||
3238 | if test "x$enable_dependency_tracking" != xno; then | ||
3239 | am_depcomp="$ac_aux_dir/depcomp" | ||
3240 | AMDEPBACKSLASH='\' | ||
3241 | fi | ||
3242 | |||
3243 | |||
3244 | if test "x$enable_dependency_tracking" != xno; then | ||
3245 | AMDEP_TRUE= | ||
3246 | AMDEP_FALSE='#' | ||
3247 | else | ||
3248 | AMDEP_TRUE='#' | ||
3249 | AMDEP_FALSE= | ||
3250 | fi | ||
3251 | |||
3252 | |||
3253 | |||
3254 | |||
3255 | depcc="$CC" am_compiler_list= | ||
3256 | |||
3257 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3258 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3259 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3261 | else | ||
3262 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3263 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3264 | # making bogus files that we don't know about and never remove. For | ||
3265 | # instance it was reported that on HP-UX the gcc test will end up | ||
3266 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3267 | # in D'. | ||
3268 | mkdir conftest.dir | ||
3269 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3270 | # using a relative directory. | ||
3271 | cp "$am_depcomp" conftest.dir | ||
3272 | cd conftest.dir | ||
3273 | # We will build objects and dependencies in a subdirectory because | ||
3274 | # it helps to detect inapplicable dependency modes. For instance | ||
3275 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3276 | # side effect of compilation, but ICC will put the dependencies in | ||
3277 | # the current directory while Tru64 will put them in the object | ||
3278 | # directory. | ||
3279 | mkdir sub | ||
3280 | |||
3281 | am_cv_CC_dependencies_compiler_type=none | ||
3282 | if test "$am_compiler_list" = ""; then | ||
3283 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3284 | fi | ||
3285 | for depmode in $am_compiler_list; do | ||
3286 | # Setup a source with many dependencies, because some compilers | ||
3287 | # like to wrap large dependency lists on column 80 (with \), and | ||
3288 | # we should not choose a depcomp mode which is confused by this. | ||
3289 | # | ||
3290 | # We need to recreate these files for each test, as the compiler may | ||
3291 | # overwrite some of them when testing with obscure command lines. | ||
3292 | # This happens at least with the AIX C compiler. | ||
3293 | : > sub/conftest.c | ||
3294 | for i in 1 2 3 4 5 6; do | ||
3295 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3296 | : > sub/conftst$i.h | ||
3297 | done | ||
3298 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3299 | |||
3300 | case $depmode in | ||
3301 | nosideeffect) | ||
3302 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3303 | # only be used when explicitly requested | ||
3304 | if test "x$enable_dependency_tracking" = xyes; then | ||
3305 | continue | ||
3306 | else | ||
3307 | break | ||
3308 | fi | ||
3309 | ;; | ||
3310 | none) break ;; | ||
3311 | esac | ||
3312 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3313 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3314 | # handle `-M -o', and we need to detect this. | ||
3315 | if depmode=$depmode \ | ||
3316 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3317 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3318 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3319 | >/dev/null 2>conftest.err && | ||
3320 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3321 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3322 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3323 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3324 | # (even with -Werror). So we grep stderr for any message | ||
3325 | # that says an option was ignored. | ||
3326 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | ||
3327 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3328 | break | ||
3329 | fi | ||
3330 | fi | ||
3331 | done | ||
3332 | |||
3333 | cd .. | ||
3334 | rm -rf conftest.dir | ||
3335 | else | ||
3336 | am_cv_CC_dependencies_compiler_type=none | ||
3337 | fi | ||
3338 | |||
3339 | fi | ||
3340 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3341 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3342 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3343 | |||
3344 | |||
3345 | |||
3346 | if | ||
3347 | test "x$enable_dependency_tracking" != xno \ | ||
3348 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3349 | am__fastdepCC_TRUE= | ||
3350 | am__fastdepCC_FALSE='#' | ||
3351 | else | ||
3352 | am__fastdepCC_TRUE='#' | ||
3353 | am__fastdepCC_FALSE= | ||
3354 | fi | ||
3355 | |||
3356 | |||
3357 | |||
3358 | ALL_LINGUAS="de" | ||
3359 | |||
3360 | ac_ext=c | ||
3361 | ac_cpp='$CPP $CPPFLAGS' | ||
3362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3365 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3366 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3367 | # On Suns, sometimes $CPP names a directory. | ||
3368 | if test -n "$CPP" && test -d "$CPP"; then | ||
3369 | CPP= | ||
3370 | fi | ||
3371 | if test -z "$CPP"; then | ||
3372 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3374 | else | ||
3375 | # Double quotes because CPP needs to be expanded | ||
3376 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3377 | do | ||
3378 | ac_preproc_ok=false | ||
3379 | for ac_c_preproc_warn_flag in '' yes | ||
3380 | do | ||
3381 | # Use a header file that comes with gcc, so configuring glibc | ||
3382 | # with a fresh cross-compiler works. | ||
3383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3384 | # <limits.h> exists even on freestanding compilers. | ||
3385 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3386 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3387 | cat >conftest.$ac_ext <<_ACEOF | ||
3388 | /* confdefs.h. */ | ||
3389 | _ACEOF | ||
3390 | cat confdefs.h >>conftest.$ac_ext | ||
3391 | cat >>conftest.$ac_ext <<_ACEOF | ||
3392 | /* end confdefs.h. */ | ||
3393 | #ifdef __STDC__ | ||
3394 | # include <limits.h> | ||
3395 | #else | ||
3396 | # include <assert.h> | ||
3397 | #endif | ||
3398 | Syntax error | ||
3399 | _ACEOF | ||
3400 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3401 | case "(($ac_try" in | ||
3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3403 | *) ac_try_echo=$ac_try;; | ||
3404 | esac | ||
3405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3407 | ac_status=$? | ||
3408 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3409 | rm -f conftest.er1 | ||
3410 | cat conftest.err >&5 | ||
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3412 | (exit $ac_status); } >/dev/null; then | ||
3413 | if test -s conftest.err; then | ||
3414 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3416 | else | ||
3417 | ac_cpp_err= | ||
3418 | fi | ||
3419 | else | ||
3420 | ac_cpp_err=yes | ||
3421 | fi | ||
3422 | if test -z "$ac_cpp_err"; then | ||
3423 | : | ||
3424 | else | ||
3425 | echo "$as_me: failed program was:" >&5 | ||
3426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3427 | |||
3428 | # Broken: fails on valid input. | ||
3429 | continue | ||
3430 | fi | ||
3431 | |||
3432 | rm -f conftest.err conftest.$ac_ext | ||
3433 | |||
3434 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3435 | # can be detected and how. | ||
3436 | cat >conftest.$ac_ext <<_ACEOF | ||
3437 | /* confdefs.h. */ | ||
3438 | _ACEOF | ||
3439 | cat confdefs.h >>conftest.$ac_ext | ||
3440 | cat >>conftest.$ac_ext <<_ACEOF | ||
3441 | /* end confdefs.h. */ | ||
3442 | #include <ac_nonexistent.h> | ||
3443 | _ACEOF | ||
3444 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3445 | case "(($ac_try" in | ||
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3447 | *) ac_try_echo=$ac_try;; | ||
3448 | esac | ||
3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3450 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3451 | ac_status=$? | ||
3452 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3453 | rm -f conftest.er1 | ||
3454 | cat conftest.err >&5 | ||
3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3456 | (exit $ac_status); } >/dev/null; then | ||
3457 | if test -s conftest.err; then | ||
3458 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3460 | else | ||
3461 | ac_cpp_err= | ||
3462 | fi | ||
3463 | else | ||
3464 | ac_cpp_err=yes | ||
3465 | fi | ||
3466 | if test -z "$ac_cpp_err"; then | ||
3467 | # Broken: success on invalid input. | ||
3468 | continue | ||
3469 | else | ||
3470 | echo "$as_me: failed program was:" >&5 | ||
3471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3472 | |||
3473 | # Passes both tests. | ||
3474 | ac_preproc_ok=: | ||
3475 | break | ||
3476 | fi | ||
3477 | |||
3478 | rm -f conftest.err conftest.$ac_ext | ||
3479 | |||
3480 | done | ||
3481 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3482 | rm -f conftest.err conftest.$ac_ext | ||
3483 | if $ac_preproc_ok; then | ||
3484 | break | ||
3485 | fi | ||
3486 | |||
3487 | done | ||
3488 | ac_cv_prog_CPP=$CPP | ||
3489 | |||
3490 | fi | ||
3491 | CPP=$ac_cv_prog_CPP | ||
3492 | else | ||
3493 | ac_cv_prog_CPP=$CPP | ||
3494 | fi | ||
3495 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3496 | echo "${ECHO_T}$CPP" >&6; } | ||
3497 | ac_preproc_ok=false | ||
3498 | for ac_c_preproc_warn_flag in '' yes | ||
3499 | do | ||
3500 | # Use a header file that comes with gcc, so configuring glibc | ||
3501 | # with a fresh cross-compiler works. | ||
3502 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3503 | # <limits.h> exists even on freestanding compilers. | ||
3504 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3505 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3506 | cat >conftest.$ac_ext <<_ACEOF | ||
3507 | /* confdefs.h. */ | ||
3508 | _ACEOF | ||
3509 | cat confdefs.h >>conftest.$ac_ext | ||
3510 | cat >>conftest.$ac_ext <<_ACEOF | ||
3511 | /* end confdefs.h. */ | ||
3512 | #ifdef __STDC__ | ||
3513 | # include <limits.h> | ||
3514 | #else | ||
3515 | # include <assert.h> | ||
3516 | #endif | ||
3517 | Syntax error | ||
3518 | _ACEOF | ||
3519 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3520 | case "(($ac_try" in | ||
3521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3522 | *) ac_try_echo=$ac_try;; | ||
3523 | esac | ||
3524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3526 | ac_status=$? | ||
3527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3528 | rm -f conftest.er1 | ||
3529 | cat conftest.err >&5 | ||
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3531 | (exit $ac_status); } >/dev/null; then | ||
3532 | if test -s conftest.err; then | ||
3533 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3535 | else | ||
3536 | ac_cpp_err= | ||
3537 | fi | ||
3538 | else | ||
3539 | ac_cpp_err=yes | ||
3540 | fi | ||
3541 | if test -z "$ac_cpp_err"; then | ||
3542 | : | ||
3543 | else | ||
3544 | echo "$as_me: failed program was:" >&5 | ||
3545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3546 | |||
3547 | # Broken: fails on valid input. | ||
3548 | continue | ||
3549 | fi | ||
3550 | |||
3551 | rm -f conftest.err conftest.$ac_ext | ||
3552 | |||
3553 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3554 | # can be detected and how. | ||
3555 | cat >conftest.$ac_ext <<_ACEOF | ||
3556 | /* confdefs.h. */ | ||
3557 | _ACEOF | ||
3558 | cat confdefs.h >>conftest.$ac_ext | ||
3559 | cat >>conftest.$ac_ext <<_ACEOF | ||
3560 | /* end confdefs.h. */ | ||
3561 | #include <ac_nonexistent.h> | ||
3562 | _ACEOF | ||
3563 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3564 | case "(($ac_try" in | ||
3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3566 | *) ac_try_echo=$ac_try;; | ||
3567 | esac | ||
3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3569 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3570 | ac_status=$? | ||
3571 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3572 | rm -f conftest.er1 | ||
3573 | cat conftest.err >&5 | ||
3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3575 | (exit $ac_status); } >/dev/null; then | ||
3576 | if test -s conftest.err; then | ||
3577 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
3578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
3579 | else | ||
3580 | ac_cpp_err= | ||
3581 | fi | ||
3582 | else | ||
3583 | ac_cpp_err=yes | ||
3584 | fi | ||
3585 | if test -z "$ac_cpp_err"; then | ||
3586 | # Broken: success on invalid input. | ||
3587 | continue | ||
3588 | else | ||
3589 | echo "$as_me: failed program was:" >&5 | ||
3590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3591 | |||
3592 | # Passes both tests. | ||
3593 | ac_preproc_ok=: | ||
3594 | break | ||
3595 | fi | ||
3596 | |||
3597 | rm -f conftest.err conftest.$ac_ext | ||
3598 | |||
3599 | done | ||
3600 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3601 | rm -f conftest.err conftest.$ac_ext | ||
3602 | if $ac_preproc_ok; then | ||
3603 | : | ||
3604 | else | ||
3605 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3606 | See \`config.log' for more details." >&5 | ||
3607 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3608 | See \`config.log' for more details." >&2;} | ||
3609 | { (exit 1); exit 1; }; } | ||
3610 | fi | ||
3611 | |||
3612 | ac_ext=c | ||
3613 | ac_cpp='$CPP $CPPFLAGS' | ||
3614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3617 | |||
3618 | |||
3619 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3620 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3621 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3623 | else | ||
3624 | # Extract the first word of "grep ggrep" to use in msg output | ||
3625 | if test -z "$GREP"; then | ||
3626 | set dummy grep ggrep; ac_prog_name=$2 | ||
3627 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3629 | else | ||
3630 | ac_path_GREP_found=false | ||
3631 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3633 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3634 | do | ||
3635 | IFS=$as_save_IFS | ||
3636 | test -z "$as_dir" && as_dir=. | ||
3637 | for ac_prog in grep ggrep; do | ||
3638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3639 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3640 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||
3641 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3642 | # Check for GNU $ac_path_GREP | ||
3643 | case `"$ac_path_GREP" --version 2>&1` in | ||
3644 | *GNU*) | ||
3645 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3646 | *) | ||
3647 | ac_count=0 | ||
3648 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3649 | while : | ||
3650 | do | ||
3651 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3652 | mv "conftest.tmp" "conftest.in" | ||
3653 | cp "conftest.in" "conftest.nl" | ||
3654 | echo 'GREP' >> "conftest.nl" | ||
3655 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3656 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3657 | ac_count=`expr $ac_count + 1` | ||
3658 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3659 | # Best one so far, save it but keep looking for a better one | ||
3660 | ac_cv_path_GREP="$ac_path_GREP" | ||
3661 | ac_path_GREP_max=$ac_count | ||
3662 | fi | ||
3663 | # 10*(2^10) chars as input seems more than enough | ||
3664 | test $ac_count -gt 10 && break | ||
3665 | done | ||
3666 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3667 | esac | ||
3668 | |||
3669 | |||
3670 | $ac_path_GREP_found && break 3 | ||
3671 | done | ||
3672 | done | ||
3673 | |||
3674 | done | ||
3675 | IFS=$as_save_IFS | ||
3676 | |||
3677 | |||
3678 | fi | ||
3679 | |||
3680 | GREP="$ac_cv_path_GREP" | ||
3681 | if test -z "$GREP"; then | ||
3682 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3683 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3684 | { (exit 1); exit 1; }; } | ||
3685 | fi | ||
3686 | |||
3687 | else | ||
3688 | ac_cv_path_GREP=$GREP | ||
3689 | fi | ||
3690 | |||
3691 | |||
3692 | fi | ||
3693 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3694 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3695 | GREP="$ac_cv_path_GREP" | ||
3696 | |||
3697 | |||
3698 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3699 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3700 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3702 | else | ||
3703 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3704 | then ac_cv_path_EGREP="$GREP -E" | ||
3705 | else | ||
3706 | # Extract the first word of "egrep" to use in msg output | ||
3707 | if test -z "$EGREP"; then | ||
3708 | set dummy egrep; ac_prog_name=$2 | ||
3709 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3711 | else | ||
3712 | ac_path_EGREP_found=false | ||
3713 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3715 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3716 | do | ||
3717 | IFS=$as_save_IFS | ||
3718 | test -z "$as_dir" && as_dir=. | ||
3719 | for ac_prog in egrep; do | ||
3720 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3721 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3722 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||
3723 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3724 | # Check for GNU $ac_path_EGREP | ||
3725 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3726 | *GNU*) | ||
3727 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3728 | *) | ||
3729 | ac_count=0 | ||
3730 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3731 | while : | ||
3732 | do | ||
3733 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3734 | mv "conftest.tmp" "conftest.in" | ||
3735 | cp "conftest.in" "conftest.nl" | ||
3736 | echo 'EGREP' >> "conftest.nl" | ||
3737 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3738 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3739 | ac_count=`expr $ac_count + 1` | ||
3740 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3741 | # Best one so far, save it but keep looking for a better one | ||
3742 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3743 | ac_path_EGREP_max=$ac_count | ||
3744 | fi | ||
3745 | # 10*(2^10) chars as input seems more than enough | ||
3746 | test $ac_count -gt 10 && break | ||
3747 | done | ||
3748 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3749 | esac | ||
3750 | |||
3751 | |||
3752 | $ac_path_EGREP_found && break 3 | ||
3753 | done | ||
3754 | done | ||
3755 | |||
3756 | done | ||
3757 | IFS=$as_save_IFS | ||
3758 | |||
3759 | |||
3760 | fi | ||
3761 | |||
3762 | EGREP="$ac_cv_path_EGREP" | ||
3763 | if test -z "$EGREP"; then | ||
3764 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3765 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3766 | { (exit 1); exit 1; }; } | ||
3767 | fi | ||
3768 | |||
3769 | else | ||
3770 | ac_cv_path_EGREP=$EGREP | ||
3771 | fi | ||
3772 | |||
3773 | |||
3774 | fi | ||
3775 | fi | ||
3776 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3777 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3778 | EGREP="$ac_cv_path_EGREP" | ||
3779 | |||
3780 | |||
3781 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3782 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3783 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3785 | else | ||
3786 | cat >conftest.$ac_ext <<_ACEOF | ||
3787 | /* confdefs.h. */ | ||
3788 | _ACEOF | ||
3789 | cat confdefs.h >>conftest.$ac_ext | ||
3790 | cat >>conftest.$ac_ext <<_ACEOF | ||
3791 | /* end confdefs.h. */ | ||
3792 | #include <stdlib.h> | ||
3793 | #include <stdarg.h> | ||
3794 | #include <string.h> | ||
3795 | #include <float.h> | ||
3796 | |||
3797 | int | ||
3798 | main () | ||
3799 | { | ||
3800 | |||
3801 | ; | ||
3802 | return 0; | ||
3803 | } | ||
3804 | _ACEOF | ||
3805 | rm -f conftest.$ac_objext | ||
3806 | if { (ac_try="$ac_compile" | ||
3807 | case "(($ac_try" in | ||
3808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3809 | *) ac_try_echo=$ac_try;; | ||
3810 | esac | ||
3811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3812 | (eval "$ac_compile") 2>conftest.er1 | ||
3813 | ac_status=$? | ||
3814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3815 | rm -f conftest.er1 | ||
3816 | cat conftest.err >&5 | ||
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3818 | (exit $ac_status); } && | ||
3819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3820 | { (case "(($ac_try" in | ||
3821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3822 | *) ac_try_echo=$ac_try;; | ||
3823 | esac | ||
3824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3825 | (eval "$ac_try") 2>&5 | ||
3826 | ac_status=$? | ||
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3828 | (exit $ac_status); }; } && | ||
3829 | { ac_try='test -s conftest.$ac_objext' | ||
3830 | { (case "(($ac_try" in | ||
3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3832 | *) ac_try_echo=$ac_try;; | ||
3833 | esac | ||
3834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3835 | (eval "$ac_try") 2>&5 | ||
3836 | ac_status=$? | ||
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3838 | (exit $ac_status); }; }; then | ||
3839 | ac_cv_header_stdc=yes | ||
3840 | else | ||
3841 | echo "$as_me: failed program was:" >&5 | ||
3842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3843 | |||
3844 | ac_cv_header_stdc=no | ||
3845 | fi | ||
3846 | |||
3847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3848 | |||
3849 | if test $ac_cv_header_stdc = yes; then | ||
3850 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3851 | cat >conftest.$ac_ext <<_ACEOF | ||
3852 | /* confdefs.h. */ | ||
3853 | _ACEOF | ||
3854 | cat confdefs.h >>conftest.$ac_ext | ||
3855 | cat >>conftest.$ac_ext <<_ACEOF | ||
3856 | /* end confdefs.h. */ | ||
3857 | #include <string.h> | ||
3858 | |||
3859 | _ACEOF | ||
3860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3861 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3862 | : | ||
3863 | else | ||
3864 | ac_cv_header_stdc=no | ||
3865 | fi | ||
3866 | rm -f conftest* | ||
3867 | |||
3868 | fi | ||
3869 | |||
3870 | if test $ac_cv_header_stdc = yes; then | ||
3871 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3872 | cat >conftest.$ac_ext <<_ACEOF | ||
3873 | /* confdefs.h. */ | ||
3874 | _ACEOF | ||
3875 | cat confdefs.h >>conftest.$ac_ext | ||
3876 | cat >>conftest.$ac_ext <<_ACEOF | ||
3877 | /* end confdefs.h. */ | ||
3878 | #include <stdlib.h> | ||
3879 | |||
3880 | _ACEOF | ||
3881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3882 | $EGREP "free" >/dev/null 2>&1; then | ||
3883 | : | ||
3884 | else | ||
3885 | ac_cv_header_stdc=no | ||
3886 | fi | ||
3887 | rm -f conftest* | ||
3888 | |||
3889 | fi | ||
3890 | |||
3891 | if test $ac_cv_header_stdc = yes; then | ||
3892 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3893 | if test "$cross_compiling" = yes; then | ||
3894 | : | ||
3895 | else | ||
3896 | cat >conftest.$ac_ext <<_ACEOF | ||
3897 | /* confdefs.h. */ | ||
3898 | _ACEOF | ||
3899 | cat confdefs.h >>conftest.$ac_ext | ||
3900 | cat >>conftest.$ac_ext <<_ACEOF | ||
3901 | /* end confdefs.h. */ | ||
3902 | #include <ctype.h> | ||
3903 | #include <stdlib.h> | ||
3904 | #if ((' ' & 0x0FF) == 0x020) | ||
3905 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3906 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3907 | #else | ||
3908 | # define ISLOWER(c) \ | ||
3909 | (('a' <= (c) && (c) <= 'i') \ | ||
3910 | || ('j' <= (c) && (c) <= 'r') \ | ||
3911 | || ('s' <= (c) && (c) <= 'z')) | ||
3912 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3913 | #endif | ||
3914 | |||
3915 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3916 | int | ||
3917 | main () | ||
3918 | { | ||
3919 | int i; | ||
3920 | for (i = 0; i < 256; i++) | ||
3921 | if (XOR (islower (i), ISLOWER (i)) | ||
3922 | || toupper (i) != TOUPPER (i)) | ||
3923 | return 2; | ||
3924 | return 0; | ||
3925 | } | ||
3926 | _ACEOF | ||
3927 | rm -f conftest$ac_exeext | ||
3928 | if { (ac_try="$ac_link" | ||
3929 | case "(($ac_try" in | ||
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3931 | *) ac_try_echo=$ac_try;; | ||
3932 | esac | ||
3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3934 | (eval "$ac_link") 2>&5 | ||
3935 | ac_status=$? | ||
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3938 | { (case "(($ac_try" in | ||
3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3940 | *) ac_try_echo=$ac_try;; | ||
3941 | esac | ||
3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3943 | (eval "$ac_try") 2>&5 | ||
3944 | ac_status=$? | ||
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3946 | (exit $ac_status); }; }; then | ||
3947 | : | ||
3948 | else | ||
3949 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3950 | echo "$as_me: failed program was:" >&5 | ||
3951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3952 | |||
3953 | ( exit $ac_status ) | ||
3954 | ac_cv_header_stdc=no | ||
3955 | fi | ||
3956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3957 | fi | ||
3958 | |||
3959 | |||
3960 | fi | ||
3961 | fi | ||
3962 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3963 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3964 | if test $ac_cv_header_stdc = yes; then | ||
3965 | |||
3966 | cat >>confdefs.h <<\_ACEOF | ||
3967 | #define STDC_HEADERS 1 | ||
3968 | _ACEOF | ||
3969 | |||
3970 | fi | ||
3971 | |||
3972 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3973 | |||
3974 | |||
3975 | |||
3976 | |||
3977 | |||
3978 | |||
3979 | |||
3980 | |||
3981 | |||
3982 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3983 | inttypes.h stdint.h unistd.h | ||
3984 | do | ||
3985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3986 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3990 | else | ||
3991 | cat >conftest.$ac_ext <<_ACEOF | ||
3992 | /* confdefs.h. */ | ||
3993 | _ACEOF | ||
3994 | cat confdefs.h >>conftest.$ac_ext | ||
3995 | cat >>conftest.$ac_ext <<_ACEOF | ||
3996 | /* end confdefs.h. */ | ||
3997 | $ac_includes_default | ||
3998 | |||
3999 | #include <$ac_header> | ||
4000 | _ACEOF | ||
4001 | rm -f conftest.$ac_objext | ||
4002 | if { (ac_try="$ac_compile" | ||
4003 | case "(($ac_try" in | ||
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4005 | *) ac_try_echo=$ac_try;; | ||
4006 | esac | ||
4007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4008 | (eval "$ac_compile") 2>conftest.er1 | ||
4009 | ac_status=$? | ||
4010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4011 | rm -f conftest.er1 | ||
4012 | cat conftest.err >&5 | ||
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4014 | (exit $ac_status); } && | ||
4015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4016 | { (case "(($ac_try" in | ||
4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4018 | *) ac_try_echo=$ac_try;; | ||
4019 | esac | ||
4020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4021 | (eval "$ac_try") 2>&5 | ||
4022 | ac_status=$? | ||
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4024 | (exit $ac_status); }; } && | ||
4025 | { ac_try='test -s conftest.$ac_objext' | ||
4026 | { (case "(($ac_try" in | ||
4027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4028 | *) ac_try_echo=$ac_try;; | ||
4029 | esac | ||
4030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4031 | (eval "$ac_try") 2>&5 | ||
4032 | ac_status=$? | ||
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4034 | (exit $ac_status); }; }; then | ||
4035 | eval "$as_ac_Header=yes" | ||
4036 | else | ||
4037 | echo "$as_me: failed program was:" >&5 | ||
4038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4039 | |||
4040 | eval "$as_ac_Header=no" | ||
4041 | fi | ||
4042 | |||
4043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4044 | fi | ||
4045 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4046 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4047 | echo "${ECHO_T}$ac_res" >&6; } | ||
4048 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4049 | cat >>confdefs.h <<_ACEOF | ||
4050 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4051 | _ACEOF | ||
4052 | |||
4053 | fi | ||
4054 | |||
4055 | done | ||
4056 | |||
4057 | |||
4058 | |||
4059 | |||
4060 | for ac_header in locale.h | ||
4061 | do | ||
4062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4064 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
4066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4068 | fi | ||
4069 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4071 | echo "${ECHO_T}$ac_res" >&6; } | ||
4072 | else | ||
4073 | # Is the header compilable? | ||
4074 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
4075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
4076 | cat >conftest.$ac_ext <<_ACEOF | ||
4077 | /* confdefs.h. */ | ||
4078 | _ACEOF | ||
4079 | cat confdefs.h >>conftest.$ac_ext | ||
4080 | cat >>conftest.$ac_ext <<_ACEOF | ||
4081 | /* end confdefs.h. */ | ||
4082 | $ac_includes_default | ||
4083 | #include <$ac_header> | ||
4084 | _ACEOF | ||
4085 | rm -f conftest.$ac_objext | ||
4086 | if { (ac_try="$ac_compile" | ||
4087 | case "(($ac_try" in | ||
4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4089 | *) ac_try_echo=$ac_try;; | ||
4090 | esac | ||
4091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4092 | (eval "$ac_compile") 2>conftest.er1 | ||
4093 | ac_status=$? | ||
4094 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4095 | rm -f conftest.er1 | ||
4096 | cat conftest.err >&5 | ||
4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4098 | (exit $ac_status); } && | ||
4099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4100 | { (case "(($ac_try" in | ||
4101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4102 | *) ac_try_echo=$ac_try;; | ||
4103 | esac | ||
4104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4105 | (eval "$ac_try") 2>&5 | ||
4106 | ac_status=$? | ||
4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4108 | (exit $ac_status); }; } && | ||
4109 | { ac_try='test -s conftest.$ac_objext' | ||
4110 | { (case "(($ac_try" in | ||
4111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4112 | *) ac_try_echo=$ac_try;; | ||
4113 | esac | ||
4114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4115 | (eval "$ac_try") 2>&5 | ||
4116 | ac_status=$? | ||
4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4118 | (exit $ac_status); }; }; then | ||
4119 | ac_header_compiler=yes | ||
4120 | else | ||
4121 | echo "$as_me: failed program was:" >&5 | ||
4122 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4123 | |||
4124 | ac_header_compiler=no | ||
4125 | fi | ||
4126 | |||
4127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4128 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4129 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
4130 | |||
4131 | # Is the header present? | ||
4132 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
4133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
4134 | cat >conftest.$ac_ext <<_ACEOF | ||
4135 | /* confdefs.h. */ | ||
4136 | _ACEOF | ||
4137 | cat confdefs.h >>conftest.$ac_ext | ||
4138 | cat >>conftest.$ac_ext <<_ACEOF | ||
4139 | /* end confdefs.h. */ | ||
4140 | #include <$ac_header> | ||
4141 | _ACEOF | ||
4142 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4143 | case "(($ac_try" in | ||
4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4145 | *) ac_try_echo=$ac_try;; | ||
4146 | esac | ||
4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4148 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4149 | ac_status=$? | ||
4150 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4151 | rm -f conftest.er1 | ||
4152 | cat conftest.err >&5 | ||
4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4154 | (exit $ac_status); } >/dev/null; then | ||
4155 | if test -s conftest.err; then | ||
4156 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4157 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4158 | else | ||
4159 | ac_cpp_err= | ||
4160 | fi | ||
4161 | else | ||
4162 | ac_cpp_err=yes | ||
4163 | fi | ||
4164 | if test -z "$ac_cpp_err"; then | ||
4165 | ac_header_preproc=yes | ||
4166 | else | ||
4167 | echo "$as_me: failed program was:" >&5 | ||
4168 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4169 | |||
4170 | ac_header_preproc=no | ||
4171 | fi | ||
4172 | |||
4173 | rm -f conftest.err conftest.$ac_ext | ||
4174 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4175 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
4176 | |||
4177 | # So? What about this header? | ||
4178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4179 | yes:no: ) | ||
4180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
4183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
4184 | ac_header_preproc=yes | ||
4185 | ;; | ||
4186 | no:yes:* ) | ||
4187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
4188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
4189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
4190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
4191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
4192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
4193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
4194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
4197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
4198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
4199 | |||
4200 | ;; | ||
4201 | esac | ||
4202 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
4204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4206 | else | ||
4207 | eval "$as_ac_Header=\$ac_header_preproc" | ||
4208 | fi | ||
4209 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4211 | echo "${ECHO_T}$ac_res" >&6; } | ||
4212 | |||
4213 | fi | ||
4214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4215 | cat >>confdefs.h <<_ACEOF | ||
4216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4217 | _ACEOF | ||
4218 | |||
4219 | fi | ||
4220 | |||
4221 | done | ||
4222 | |||
4223 | if test $ac_cv_header_locale_h = yes; then | ||
4224 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | ||
4225 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } | ||
4226 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | ||
4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4228 | else | ||
4229 | cat >conftest.$ac_ext <<_ACEOF | ||
4230 | /* confdefs.h. */ | ||
4231 | _ACEOF | ||
4232 | cat confdefs.h >>conftest.$ac_ext | ||
4233 | cat >>conftest.$ac_ext <<_ACEOF | ||
4234 | /* end confdefs.h. */ | ||
4235 | #include <locale.h> | ||
4236 | int | ||
4237 | main () | ||
4238 | { | ||
4239 | return LC_MESSAGES | ||
4240 | ; | ||
4241 | return 0; | ||
4242 | } | ||
4243 | _ACEOF | ||
4244 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4245 | if { (ac_try="$ac_link" | ||
4246 | case "(($ac_try" in | ||
4247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4248 | *) ac_try_echo=$ac_try;; | ||
4249 | esac | ||
4250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4251 | (eval "$ac_link") 2>conftest.er1 | ||
4252 | ac_status=$? | ||
4253 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4254 | rm -f conftest.er1 | ||
4255 | cat conftest.err >&5 | ||
4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4257 | (exit $ac_status); } && | ||
4258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4259 | { (case "(($ac_try" in | ||
4260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4261 | *) ac_try_echo=$ac_try;; | ||
4262 | esac | ||
4263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4264 | (eval "$ac_try") 2>&5 | ||
4265 | ac_status=$? | ||
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4267 | (exit $ac_status); }; } && | ||
4268 | { ac_try='test -s conftest$ac_exeext' | ||
4269 | { (case "(($ac_try" in | ||
4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4271 | *) ac_try_echo=$ac_try;; | ||
4272 | esac | ||
4273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4274 | (eval "$ac_try") 2>&5 | ||
4275 | ac_status=$? | ||
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4277 | (exit $ac_status); }; }; then | ||
4278 | am_cv_val_LC_MESSAGES=yes | ||
4279 | else | ||
4280 | echo "$as_me: failed program was:" >&5 | ||
4281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4282 | |||
4283 | am_cv_val_LC_MESSAGES=no | ||
4284 | fi | ||
4285 | |||
4286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4287 | conftest$ac_exeext conftest.$ac_ext | ||
4288 | fi | ||
4289 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | ||
4290 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } | ||
4291 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
4292 | |||
4293 | cat >>confdefs.h <<\_ACEOF | ||
4294 | #define HAVE_LC_MESSAGES 1 | ||
4295 | _ACEOF | ||
4296 | |||
4297 | fi | ||
4298 | fi | ||
4299 | USE_NLS=yes | ||
4300 | |||
4301 | |||
4302 | gt_cv_have_gettext=no | ||
4303 | |||
4304 | CATOBJEXT=NONE | ||
4305 | XGETTEXT=: | ||
4306 | INTLLIBS= | ||
4307 | |||
4308 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4309 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 | ||
4310 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | ||
4311 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4313 | fi | ||
4314 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | ||
4315 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | ||
4316 | else | ||
4317 | # Is the header compilable? | ||
4318 | { echo "$as_me:$LINENO: checking libintl.h usability" >&5 | ||
4319 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } | ||
4320 | cat >conftest.$ac_ext <<_ACEOF | ||
4321 | /* confdefs.h. */ | ||
4322 | _ACEOF | ||
4323 | cat confdefs.h >>conftest.$ac_ext | ||
4324 | cat >>conftest.$ac_ext <<_ACEOF | ||
4325 | /* end confdefs.h. */ | ||
4326 | $ac_includes_default | ||
4327 | #include <libintl.h> | ||
4328 | _ACEOF | ||
4329 | rm -f conftest.$ac_objext | ||
4330 | if { (ac_try="$ac_compile" | ||
4331 | case "(($ac_try" in | ||
4332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4333 | *) ac_try_echo=$ac_try;; | ||
4334 | esac | ||
4335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4336 | (eval "$ac_compile") 2>conftest.er1 | ||
4337 | ac_status=$? | ||
4338 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4339 | rm -f conftest.er1 | ||
4340 | cat conftest.err >&5 | ||
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4342 | (exit $ac_status); } && | ||
4343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4344 | { (case "(($ac_try" in | ||
4345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4346 | *) ac_try_echo=$ac_try;; | ||
4347 | esac | ||
4348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4349 | (eval "$ac_try") 2>&5 | ||
4350 | ac_status=$? | ||
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4352 | (exit $ac_status); }; } && | ||
4353 | { ac_try='test -s conftest.$ac_objext' | ||
4354 | { (case "(($ac_try" in | ||
4355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4356 | *) ac_try_echo=$ac_try;; | ||
4357 | esac | ||
4358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4359 | (eval "$ac_try") 2>&5 | ||
4360 | ac_status=$? | ||
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4362 | (exit $ac_status); }; }; then | ||
4363 | ac_header_compiler=yes | ||
4364 | else | ||
4365 | echo "$as_me: failed program was:" >&5 | ||
4366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4367 | |||
4368 | ac_header_compiler=no | ||
4369 | fi | ||
4370 | |||
4371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4372 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4373 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
4374 | |||
4375 | # Is the header present? | ||
4376 | { echo "$as_me:$LINENO: checking libintl.h presence" >&5 | ||
4377 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } | ||
4378 | cat >conftest.$ac_ext <<_ACEOF | ||
4379 | /* confdefs.h. */ | ||
4380 | _ACEOF | ||
4381 | cat confdefs.h >>conftest.$ac_ext | ||
4382 | cat >>conftest.$ac_ext <<_ACEOF | ||
4383 | /* end confdefs.h. */ | ||
4384 | #include <libintl.h> | ||
4385 | _ACEOF | ||
4386 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4387 | case "(($ac_try" in | ||
4388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4389 | *) ac_try_echo=$ac_try;; | ||
4390 | esac | ||
4391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4392 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4393 | ac_status=$? | ||
4394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4395 | rm -f conftest.er1 | ||
4396 | cat conftest.err >&5 | ||
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4398 | (exit $ac_status); } >/dev/null; then | ||
4399 | if test -s conftest.err; then | ||
4400 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4402 | else | ||
4403 | ac_cpp_err= | ||
4404 | fi | ||
4405 | else | ||
4406 | ac_cpp_err=yes | ||
4407 | fi | ||
4408 | if test -z "$ac_cpp_err"; then | ||
4409 | ac_header_preproc=yes | ||
4410 | else | ||
4411 | echo "$as_me: failed program was:" >&5 | ||
4412 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4413 | |||
4414 | ac_header_preproc=no | ||
4415 | fi | ||
4416 | |||
4417 | rm -f conftest.err conftest.$ac_ext | ||
4418 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4419 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
4420 | |||
4421 | # So? What about this header? | ||
4422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4423 | yes:no: ) | ||
4424 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4425 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4426 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | ||
4427 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | ||
4428 | ac_header_preproc=yes | ||
4429 | ;; | ||
4430 | no:yes:* ) | ||
4431 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | ||
4432 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | ||
4433 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | ||
4434 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | ||
4435 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | ||
4436 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | ||
4437 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
4438 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4439 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | ||
4440 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | ||
4441 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | ||
4442 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | ||
4443 | |||
4444 | ;; | ||
4445 | esac | ||
4446 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 | ||
4447 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | ||
4448 | if test "${ac_cv_header_libintl_h+set}" = set; then | ||
4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4450 | else | ||
4451 | ac_cv_header_libintl_h=$ac_header_preproc | ||
4452 | fi | ||
4453 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | ||
4454 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | ||
4455 | |||
4456 | fi | ||
4457 | if test $ac_cv_header_libintl_h = yes; then | ||
4458 | gt_cv_func_dgettext_libintl="no" | ||
4459 | libintl_extra_libs="" | ||
4460 | |||
4461 | # | ||
4462 | # First check in libc | ||
4463 | # | ||
4464 | { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 | ||
4465 | echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } | ||
4466 | if test "${gt_cv_func_ngettext_libc+set}" = set; then | ||
4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4468 | else | ||
4469 | cat >conftest.$ac_ext <<_ACEOF | ||
4470 | /* confdefs.h. */ | ||
4471 | _ACEOF | ||
4472 | cat confdefs.h >>conftest.$ac_ext | ||
4473 | cat >>conftest.$ac_ext <<_ACEOF | ||
4474 | /* end confdefs.h. */ | ||
4475 | |||
4476 | #include <libintl.h> | ||
4477 | |||
4478 | int | ||
4479 | main () | ||
4480 | { | ||
4481 | return !ngettext ("","", 1) | ||
4482 | ; | ||
4483 | return 0; | ||
4484 | } | ||
4485 | _ACEOF | ||
4486 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4487 | if { (ac_try="$ac_link" | ||
4488 | case "(($ac_try" in | ||
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4490 | *) ac_try_echo=$ac_try;; | ||
4491 | esac | ||
4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4493 | (eval "$ac_link") 2>conftest.er1 | ||
4494 | ac_status=$? | ||
4495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4496 | rm -f conftest.er1 | ||
4497 | cat conftest.err >&5 | ||
4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4499 | (exit $ac_status); } && | ||
4500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4501 | { (case "(($ac_try" in | ||
4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4503 | *) ac_try_echo=$ac_try;; | ||
4504 | esac | ||
4505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4506 | (eval "$ac_try") 2>&5 | ||
4507 | ac_status=$? | ||
4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4509 | (exit $ac_status); }; } && | ||
4510 | { ac_try='test -s conftest$ac_exeext' | ||
4511 | { (case "(($ac_try" in | ||
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4513 | *) ac_try_echo=$ac_try;; | ||
4514 | esac | ||
4515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4516 | (eval "$ac_try") 2>&5 | ||
4517 | ac_status=$? | ||
4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4519 | (exit $ac_status); }; }; then | ||
4520 | gt_cv_func_ngettext_libc=yes | ||
4521 | else | ||
4522 | echo "$as_me: failed program was:" >&5 | ||
4523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4524 | |||
4525 | gt_cv_func_ngettext_libc=no | ||
4526 | fi | ||
4527 | |||
4528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4529 | conftest$ac_exeext conftest.$ac_ext | ||
4530 | |||
4531 | fi | ||
4532 | { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 | ||
4533 | echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } | ||
4534 | |||
4535 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
4536 | { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 | ||
4537 | echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } | ||
4538 | if test "${gt_cv_func_dgettext_libc+set}" = set; then | ||
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4540 | else | ||
4541 | cat >conftest.$ac_ext <<_ACEOF | ||
4542 | /* confdefs.h. */ | ||
4543 | _ACEOF | ||
4544 | cat confdefs.h >>conftest.$ac_ext | ||
4545 | cat >>conftest.$ac_ext <<_ACEOF | ||
4546 | /* end confdefs.h. */ | ||
4547 | |||
4548 | #include <libintl.h> | ||
4549 | |||
4550 | int | ||
4551 | main () | ||
4552 | { | ||
4553 | return !dgettext ("","") | ||
4554 | ; | ||
4555 | return 0; | ||
4556 | } | ||
4557 | _ACEOF | ||
4558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4559 | if { (ac_try="$ac_link" | ||
4560 | case "(($ac_try" in | ||
4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4562 | *) ac_try_echo=$ac_try;; | ||
4563 | esac | ||
4564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4565 | (eval "$ac_link") 2>conftest.er1 | ||
4566 | ac_status=$? | ||
4567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4568 | rm -f conftest.er1 | ||
4569 | cat conftest.err >&5 | ||
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4571 | (exit $ac_status); } && | ||
4572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4573 | { (case "(($ac_try" in | ||
4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4575 | *) ac_try_echo=$ac_try;; | ||
4576 | esac | ||
4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4578 | (eval "$ac_try") 2>&5 | ||
4579 | ac_status=$? | ||
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4581 | (exit $ac_status); }; } && | ||
4582 | { ac_try='test -s conftest$ac_exeext' | ||
4583 | { (case "(($ac_try" in | ||
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4585 | *) ac_try_echo=$ac_try;; | ||
4586 | esac | ||
4587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4588 | (eval "$ac_try") 2>&5 | ||
4589 | ac_status=$? | ||
4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4591 | (exit $ac_status); }; }; then | ||
4592 | gt_cv_func_dgettext_libc=yes | ||
4593 | else | ||
4594 | echo "$as_me: failed program was:" >&5 | ||
4595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4596 | |||
4597 | gt_cv_func_dgettext_libc=no | ||
4598 | fi | ||
4599 | |||
4600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4601 | conftest$ac_exeext conftest.$ac_ext | ||
4602 | |||
4603 | fi | ||
4604 | { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 | ||
4605 | echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } | ||
4606 | fi | ||
4607 | |||
4608 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | ||
4609 | |||
4610 | for ac_func in bind_textdomain_codeset | ||
4611 | do | ||
4612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4613 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
4615 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4617 | else | ||
4618 | cat >conftest.$ac_ext <<_ACEOF | ||
4619 | /* confdefs.h. */ | ||
4620 | _ACEOF | ||
4621 | cat confdefs.h >>conftest.$ac_ext | ||
4622 | cat >>conftest.$ac_ext <<_ACEOF | ||
4623 | /* end confdefs.h. */ | ||
4624 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
4625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4626 | #define $ac_func innocuous_$ac_func | ||
4627 | |||
4628 | /* System header to define __stub macros and hopefully few prototypes, | ||
4629 | which can conflict with char $ac_func (); below. | ||
4630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4631 | <limits.h> exists even on freestanding compilers. */ | ||
4632 | |||
4633 | #ifdef __STDC__ | ||
4634 | # include <limits.h> | ||
4635 | #else | ||
4636 | # include <assert.h> | ||
4637 | #endif | ||
4638 | |||
4639 | #undef $ac_func | ||
4640 | |||
4641 | /* Override any GCC internal prototype to avoid an error. | ||
4642 | Use char because int might match the return type of a GCC | ||
4643 | builtin and then its argument prototype would still apply. */ | ||
4644 | #ifdef __cplusplus | ||
4645 | extern "C" | ||
4646 | #endif | ||
4647 | char $ac_func (); | ||
4648 | /* The GNU C library defines this for functions which it implements | ||
4649 | to always fail with ENOSYS. Some functions are actually named | ||
4650 | something starting with __ and the normal name is an alias. */ | ||
4651 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
4652 | choke me | ||
4653 | #endif | ||
4654 | |||
4655 | int | ||
4656 | main () | ||
4657 | { | ||
4658 | return $ac_func (); | ||
4659 | ; | ||
4660 | return 0; | ||
4661 | } | ||
4662 | _ACEOF | ||
4663 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4664 | if { (ac_try="$ac_link" | ||
4665 | case "(($ac_try" in | ||
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4667 | *) ac_try_echo=$ac_try;; | ||
4668 | esac | ||
4669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4670 | (eval "$ac_link") 2>conftest.er1 | ||
4671 | ac_status=$? | ||
4672 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4673 | rm -f conftest.er1 | ||
4674 | cat conftest.err >&5 | ||
4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4676 | (exit $ac_status); } && | ||
4677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4678 | { (case "(($ac_try" in | ||
4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4680 | *) ac_try_echo=$ac_try;; | ||
4681 | esac | ||
4682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4683 | (eval "$ac_try") 2>&5 | ||
4684 | ac_status=$? | ||
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4686 | (exit $ac_status); }; } && | ||
4687 | { ac_try='test -s conftest$ac_exeext' | ||
4688 | { (case "(($ac_try" in | ||
4689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4690 | *) ac_try_echo=$ac_try;; | ||
4691 | esac | ||
4692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4693 | (eval "$ac_try") 2>&5 | ||
4694 | ac_status=$? | ||
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4696 | (exit $ac_status); }; }; then | ||
4697 | eval "$as_ac_var=yes" | ||
4698 | else | ||
4699 | echo "$as_me: failed program was:" >&5 | ||
4700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4701 | |||
4702 | eval "$as_ac_var=no" | ||
4703 | fi | ||
4704 | |||
4705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4706 | conftest$ac_exeext conftest.$ac_ext | ||
4707 | fi | ||
4708 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
4709 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4710 | echo "${ECHO_T}$ac_res" >&6; } | ||
4711 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4712 | cat >>confdefs.h <<_ACEOF | ||
4713 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4714 | _ACEOF | ||
4715 | |||
4716 | fi | ||
4717 | done | ||
4718 | |||
4719 | fi | ||
4720 | |||
4721 | # | ||
4722 | # If we don't have everything we want, check in libintl | ||
4723 | # | ||
4724 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | ||
4725 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | ||
4726 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | ||
4727 | |||
4728 | { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | ||
4729 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } | ||
4730 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | ||
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4732 | else | ||
4733 | ac_check_lib_save_LIBS=$LIBS | ||
4734 | LIBS="-lintl $LIBS" | ||
4735 | cat >conftest.$ac_ext <<_ACEOF | ||
4736 | /* confdefs.h. */ | ||
4737 | _ACEOF | ||
4738 | cat confdefs.h >>conftest.$ac_ext | ||
4739 | cat >>conftest.$ac_ext <<_ACEOF | ||
4740 | /* end confdefs.h. */ | ||
4741 | |||
4742 | /* Override any GCC internal prototype to avoid an error. | ||
4743 | Use char because int might match the return type of a GCC | ||
4744 | builtin and then its argument prototype would still apply. */ | ||
4745 | #ifdef __cplusplus | ||
4746 | extern "C" | ||
4747 | #endif | ||
4748 | char bindtextdomain (); | ||
4749 | int | ||
4750 | main () | ||
4751 | { | ||
4752 | return bindtextdomain (); | ||
4753 | ; | ||
4754 | return 0; | ||
4755 | } | ||
4756 | _ACEOF | ||
4757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4758 | if { (ac_try="$ac_link" | ||
4759 | case "(($ac_try" in | ||
4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4761 | *) ac_try_echo=$ac_try;; | ||
4762 | esac | ||
4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4764 | (eval "$ac_link") 2>conftest.er1 | ||
4765 | ac_status=$? | ||
4766 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4767 | rm -f conftest.er1 | ||
4768 | cat conftest.err >&5 | ||
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4770 | (exit $ac_status); } && | ||
4771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4772 | { (case "(($ac_try" in | ||
4773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4774 | *) ac_try_echo=$ac_try;; | ||
4775 | esac | ||
4776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4777 | (eval "$ac_try") 2>&5 | ||
4778 | ac_status=$? | ||
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4780 | (exit $ac_status); }; } && | ||
4781 | { ac_try='test -s conftest$ac_exeext' | ||
4782 | { (case "(($ac_try" in | ||
4783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4784 | *) ac_try_echo=$ac_try;; | ||
4785 | esac | ||
4786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4787 | (eval "$ac_try") 2>&5 | ||
4788 | ac_status=$? | ||
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4790 | (exit $ac_status); }; }; then | ||
4791 | ac_cv_lib_intl_bindtextdomain=yes | ||
4792 | else | ||
4793 | echo "$as_me: failed program was:" >&5 | ||
4794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4795 | |||
4796 | ac_cv_lib_intl_bindtextdomain=no | ||
4797 | fi | ||
4798 | |||
4799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4800 | conftest$ac_exeext conftest.$ac_ext | ||
4801 | LIBS=$ac_check_lib_save_LIBS | ||
4802 | fi | ||
4803 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | ||
4804 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } | ||
4805 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | ||
4806 | { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 | ||
4807 | echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } | ||
4808 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then | ||
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4810 | else | ||
4811 | ac_check_lib_save_LIBS=$LIBS | ||
4812 | LIBS="-lintl $LIBS" | ||
4813 | cat >conftest.$ac_ext <<_ACEOF | ||
4814 | /* confdefs.h. */ | ||
4815 | _ACEOF | ||
4816 | cat confdefs.h >>conftest.$ac_ext | ||
4817 | cat >>conftest.$ac_ext <<_ACEOF | ||
4818 | /* end confdefs.h. */ | ||
4819 | |||
4820 | /* Override any GCC internal prototype to avoid an error. | ||
4821 | Use char because int might match the return type of a GCC | ||
4822 | builtin and then its argument prototype would still apply. */ | ||
4823 | #ifdef __cplusplus | ||
4824 | extern "C" | ||
4825 | #endif | ||
4826 | char ngettext (); | ||
4827 | int | ||
4828 | main () | ||
4829 | { | ||
4830 | return ngettext (); | ||
4831 | ; | ||
4832 | return 0; | ||
4833 | } | ||
4834 | _ACEOF | ||
4835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4836 | if { (ac_try="$ac_link" | ||
4837 | case "(($ac_try" in | ||
4838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4839 | *) ac_try_echo=$ac_try;; | ||
4840 | esac | ||
4841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4842 | (eval "$ac_link") 2>conftest.er1 | ||
4843 | ac_status=$? | ||
4844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4845 | rm -f conftest.er1 | ||
4846 | cat conftest.err >&5 | ||
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4848 | (exit $ac_status); } && | ||
4849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4850 | { (case "(($ac_try" in | ||
4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4852 | *) ac_try_echo=$ac_try;; | ||
4853 | esac | ||
4854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4855 | (eval "$ac_try") 2>&5 | ||
4856 | ac_status=$? | ||
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4858 | (exit $ac_status); }; } && | ||
4859 | { ac_try='test -s conftest$ac_exeext' | ||
4860 | { (case "(($ac_try" in | ||
4861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4862 | *) ac_try_echo=$ac_try;; | ||
4863 | esac | ||
4864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4865 | (eval "$ac_try") 2>&5 | ||
4866 | ac_status=$? | ||
4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4868 | (exit $ac_status); }; }; then | ||
4869 | ac_cv_lib_intl_ngettext=yes | ||
4870 | else | ||
4871 | echo "$as_me: failed program was:" >&5 | ||
4872 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4873 | |||
4874 | ac_cv_lib_intl_ngettext=no | ||
4875 | fi | ||
4876 | |||
4877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4878 | conftest$ac_exeext conftest.$ac_ext | ||
4879 | LIBS=$ac_check_lib_save_LIBS | ||
4880 | fi | ||
4881 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 | ||
4882 | echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } | ||
4883 | if test $ac_cv_lib_intl_ngettext = yes; then | ||
4884 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 | ||
4885 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | ||
4886 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | ||
4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4888 | else | ||
4889 | ac_check_lib_save_LIBS=$LIBS | ||
4890 | LIBS="-lintl $LIBS" | ||
4891 | cat >conftest.$ac_ext <<_ACEOF | ||
4892 | /* confdefs.h. */ | ||
4893 | _ACEOF | ||
4894 | cat confdefs.h >>conftest.$ac_ext | ||
4895 | cat >>conftest.$ac_ext <<_ACEOF | ||
4896 | /* end confdefs.h. */ | ||
4897 | |||
4898 | /* Override any GCC internal prototype to avoid an error. | ||
4899 | Use char because int might match the return type of a GCC | ||
4900 | builtin and then its argument prototype would still apply. */ | ||
4901 | #ifdef __cplusplus | ||
4902 | extern "C" | ||
4903 | #endif | ||
4904 | char dgettext (); | ||
4905 | int | ||
4906 | main () | ||
4907 | { | ||
4908 | return dgettext (); | ||
4909 | ; | ||
4910 | return 0; | ||
4911 | } | ||
4912 | _ACEOF | ||
4913 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4914 | if { (ac_try="$ac_link" | ||
4915 | case "(($ac_try" in | ||
4916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4917 | *) ac_try_echo=$ac_try;; | ||
4918 | esac | ||
4919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4920 | (eval "$ac_link") 2>conftest.er1 | ||
4921 | ac_status=$? | ||
4922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4923 | rm -f conftest.er1 | ||
4924 | cat conftest.err >&5 | ||
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4926 | (exit $ac_status); } && | ||
4927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4928 | { (case "(($ac_try" in | ||
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4930 | *) ac_try_echo=$ac_try;; | ||
4931 | esac | ||
4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4933 | (eval "$ac_try") 2>&5 | ||
4934 | ac_status=$? | ||
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4936 | (exit $ac_status); }; } && | ||
4937 | { ac_try='test -s conftest$ac_exeext' | ||
4938 | { (case "(($ac_try" in | ||
4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4940 | *) ac_try_echo=$ac_try;; | ||
4941 | esac | ||
4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4943 | (eval "$ac_try") 2>&5 | ||
4944 | ac_status=$? | ||
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4946 | (exit $ac_status); }; }; then | ||
4947 | ac_cv_lib_intl_dgettext=yes | ||
4948 | else | ||
4949 | echo "$as_me: failed program was:" >&5 | ||
4950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4951 | |||
4952 | ac_cv_lib_intl_dgettext=no | ||
4953 | fi | ||
4954 | |||
4955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4956 | conftest$ac_exeext conftest.$ac_ext | ||
4957 | LIBS=$ac_check_lib_save_LIBS | ||
4958 | fi | ||
4959 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 | ||
4960 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | ||
4961 | if test $ac_cv_lib_intl_dgettext = yes; then | ||
4962 | gt_cv_func_dgettext_libintl=yes | ||
4963 | fi | ||
4964 | |||
4965 | fi | ||
4966 | |||
4967 | fi | ||
4968 | |||
4969 | |||
4970 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | ||
4971 | { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 | ||
4972 | echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } | ||
4973 | { echo "$as_me:$LINENO: result: " >&5 | ||
4974 | echo "${ECHO_T}" >&6; } | ||
4975 | { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 | ||
4976 | echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } | ||
4977 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then | ||
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4979 | else | ||
4980 | ac_check_lib_save_LIBS=$LIBS | ||
4981 | LIBS="-lintl -liconv $LIBS" | ||
4982 | cat >conftest.$ac_ext <<_ACEOF | ||
4983 | /* confdefs.h. */ | ||
4984 | _ACEOF | ||
4985 | cat confdefs.h >>conftest.$ac_ext | ||
4986 | cat >>conftest.$ac_ext <<_ACEOF | ||
4987 | /* end confdefs.h. */ | ||
4988 | |||
4989 | /* Override any GCC internal prototype to avoid an error. | ||
4990 | Use char because int might match the return type of a GCC | ||
4991 | builtin and then its argument prototype would still apply. */ | ||
4992 | #ifdef __cplusplus | ||
4993 | extern "C" | ||
4994 | #endif | ||
4995 | char ngettext (); | ||
4996 | int | ||
4997 | main () | ||
4998 | { | ||
4999 | return ngettext (); | ||
5000 | ; | ||
5001 | return 0; | ||
5002 | } | ||
5003 | _ACEOF | ||
5004 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5005 | if { (ac_try="$ac_link" | ||
5006 | case "(($ac_try" in | ||
5007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5008 | *) ac_try_echo=$ac_try;; | ||
5009 | esac | ||
5010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5011 | (eval "$ac_link") 2>conftest.er1 | ||
5012 | ac_status=$? | ||
5013 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5014 | rm -f conftest.er1 | ||
5015 | cat conftest.err >&5 | ||
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5017 | (exit $ac_status); } && | ||
5018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5019 | { (case "(($ac_try" in | ||
5020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5021 | *) ac_try_echo=$ac_try;; | ||
5022 | esac | ||
5023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5024 | (eval "$ac_try") 2>&5 | ||
5025 | ac_status=$? | ||
5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5027 | (exit $ac_status); }; } && | ||
5028 | { ac_try='test -s conftest$ac_exeext' | ||
5029 | { (case "(($ac_try" in | ||
5030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5031 | *) ac_try_echo=$ac_try;; | ||
5032 | esac | ||
5033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5034 | (eval "$ac_try") 2>&5 | ||
5035 | ac_status=$? | ||
5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5037 | (exit $ac_status); }; }; then | ||
5038 | ac_cv_lib_intl_ngettext=yes | ||
5039 | else | ||
5040 | echo "$as_me: failed program was:" >&5 | ||
5041 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5042 | |||
5043 | ac_cv_lib_intl_ngettext=no | ||
5044 | fi | ||
5045 | |||
5046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5047 | conftest$ac_exeext conftest.$ac_ext | ||
5048 | LIBS=$ac_check_lib_save_LIBS | ||
5049 | fi | ||
5050 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 | ||
5051 | echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } | ||
5052 | if test $ac_cv_lib_intl_ngettext = yes; then | ||
5053 | { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 | ||
5054 | echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } | ||
5055 | if test "${ac_cv_lib_intl_dcgettext+set}" = set; then | ||
5056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5057 | else | ||
5058 | ac_check_lib_save_LIBS=$LIBS | ||
5059 | LIBS="-lintl -liconv $LIBS" | ||
5060 | cat >conftest.$ac_ext <<_ACEOF | ||
5061 | /* confdefs.h. */ | ||
5062 | _ACEOF | ||
5063 | cat confdefs.h >>conftest.$ac_ext | ||
5064 | cat >>conftest.$ac_ext <<_ACEOF | ||
5065 | /* end confdefs.h. */ | ||
5066 | |||
5067 | /* Override any GCC internal prototype to avoid an error. | ||
5068 | Use char because int might match the return type of a GCC | ||
5069 | builtin and then its argument prototype would still apply. */ | ||
5070 | #ifdef __cplusplus | ||
5071 | extern "C" | ||
5072 | #endif | ||
5073 | char dcgettext (); | ||
5074 | int | ||
5075 | main () | ||
5076 | { | ||
5077 | return dcgettext (); | ||
5078 | ; | ||
5079 | return 0; | ||
5080 | } | ||
5081 | _ACEOF | ||
5082 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5083 | if { (ac_try="$ac_link" | ||
5084 | case "(($ac_try" in | ||
5085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5086 | *) ac_try_echo=$ac_try;; | ||
5087 | esac | ||
5088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5089 | (eval "$ac_link") 2>conftest.er1 | ||
5090 | ac_status=$? | ||
5091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5092 | rm -f conftest.er1 | ||
5093 | cat conftest.err >&5 | ||
5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5095 | (exit $ac_status); } && | ||
5096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5097 | { (case "(($ac_try" in | ||
5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5099 | *) ac_try_echo=$ac_try;; | ||
5100 | esac | ||
5101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5102 | (eval "$ac_try") 2>&5 | ||
5103 | ac_status=$? | ||
5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5105 | (exit $ac_status); }; } && | ||
5106 | { ac_try='test -s conftest$ac_exeext' | ||
5107 | { (case "(($ac_try" in | ||
5108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5109 | *) ac_try_echo=$ac_try;; | ||
5110 | esac | ||
5111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5112 | (eval "$ac_try") 2>&5 | ||
5113 | ac_status=$? | ||
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5115 | (exit $ac_status); }; }; then | ||
5116 | ac_cv_lib_intl_dcgettext=yes | ||
5117 | else | ||
5118 | echo "$as_me: failed program was:" >&5 | ||
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5120 | |||
5121 | ac_cv_lib_intl_dcgettext=no | ||
5122 | fi | ||
5123 | |||
5124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5125 | conftest$ac_exeext conftest.$ac_ext | ||
5126 | LIBS=$ac_check_lib_save_LIBS | ||
5127 | fi | ||
5128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 | ||
5129 | echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } | ||
5130 | if test $ac_cv_lib_intl_dcgettext = yes; then | ||
5131 | gt_cv_func_dgettext_libintl=yes | ||
5132 | libintl_extra_libs=-liconv | ||
5133 | else | ||
5134 | : | ||
5135 | fi | ||
5136 | |||
5137 | else | ||
5138 | : | ||
5139 | fi | ||
5140 | |||
5141 | fi | ||
5142 | |||
5143 | # | ||
5144 | # If we found libintl, then check in it for bind_textdomain_codeset(); | ||
5145 | # we'll prefer libc if neither have bind_textdomain_codeset(), | ||
5146 | # and both have dgettext and ngettext | ||
5147 | # | ||
5148 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | ||
5149 | glib_save_LIBS="$LIBS" | ||
5150 | LIBS="$LIBS -lintl $libintl_extra_libs" | ||
5151 | unset ac_cv_func_bind_textdomain_codeset | ||
5152 | |||
5153 | for ac_func in bind_textdomain_codeset | ||
5154 | do | ||
5155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5156 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
5158 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5160 | else | ||
5161 | cat >conftest.$ac_ext <<_ACEOF | ||
5162 | /* confdefs.h. */ | ||
5163 | _ACEOF | ||
5164 | cat confdefs.h >>conftest.$ac_ext | ||
5165 | cat >>conftest.$ac_ext <<_ACEOF | ||
5166 | /* end confdefs.h. */ | ||
5167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5169 | #define $ac_func innocuous_$ac_func | ||
5170 | |||
5171 | /* System header to define __stub macros and hopefully few prototypes, | ||
5172 | which can conflict with char $ac_func (); below. | ||
5173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5174 | <limits.h> exists even on freestanding compilers. */ | ||
5175 | |||
5176 | #ifdef __STDC__ | ||
5177 | # include <limits.h> | ||
5178 | #else | ||
5179 | # include <assert.h> | ||
5180 | #endif | ||
5181 | |||
5182 | #undef $ac_func | ||
5183 | |||
5184 | /* Override any GCC internal prototype to avoid an error. | ||
5185 | Use char because int might match the return type of a GCC | ||
5186 | builtin and then its argument prototype would still apply. */ | ||
5187 | #ifdef __cplusplus | ||
5188 | extern "C" | ||
5189 | #endif | ||
5190 | char $ac_func (); | ||
5191 | /* The GNU C library defines this for functions which it implements | ||
5192 | to always fail with ENOSYS. Some functions are actually named | ||
5193 | something starting with __ and the normal name is an alias. */ | ||
5194 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
5195 | choke me | ||
5196 | #endif | ||
5197 | |||
5198 | int | ||
5199 | main () | ||
5200 | { | ||
5201 | return $ac_func (); | ||
5202 | ; | ||
5203 | return 0; | ||
5204 | } | ||
5205 | _ACEOF | ||
5206 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5207 | if { (ac_try="$ac_link" | ||
5208 | case "(($ac_try" in | ||
5209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5210 | *) ac_try_echo=$ac_try;; | ||
5211 | esac | ||
5212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5213 | (eval "$ac_link") 2>conftest.er1 | ||
5214 | ac_status=$? | ||
5215 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5216 | rm -f conftest.er1 | ||
5217 | cat conftest.err >&5 | ||
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5219 | (exit $ac_status); } && | ||
5220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5221 | { (case "(($ac_try" in | ||
5222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5223 | *) ac_try_echo=$ac_try;; | ||
5224 | esac | ||
5225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5226 | (eval "$ac_try") 2>&5 | ||
5227 | ac_status=$? | ||
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5229 | (exit $ac_status); }; } && | ||
5230 | { ac_try='test -s conftest$ac_exeext' | ||
5231 | { (case "(($ac_try" in | ||
5232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5233 | *) ac_try_echo=$ac_try;; | ||
5234 | esac | ||
5235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5236 | (eval "$ac_try") 2>&5 | ||
5237 | ac_status=$? | ||
5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5239 | (exit $ac_status); }; }; then | ||
5240 | eval "$as_ac_var=yes" | ||
5241 | else | ||
5242 | echo "$as_me: failed program was:" >&5 | ||
5243 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5244 | |||
5245 | eval "$as_ac_var=no" | ||
5246 | fi | ||
5247 | |||
5248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5249 | conftest$ac_exeext conftest.$ac_ext | ||
5250 | fi | ||
5251 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
5252 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5253 | echo "${ECHO_T}$ac_res" >&6; } | ||
5254 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5255 | cat >>confdefs.h <<_ACEOF | ||
5256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5257 | _ACEOF | ||
5258 | |||
5259 | fi | ||
5260 | done | ||
5261 | |||
5262 | LIBS="$glib_save_LIBS" | ||
5263 | |||
5264 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | ||
5265 | gt_cv_func_dgettext_libc=no | ||
5266 | else | ||
5267 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
5268 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | ||
5269 | gt_cv_func_dgettext_libintl=no | ||
5270 | fi | ||
5271 | fi | ||
5272 | fi | ||
5273 | fi | ||
5274 | |||
5275 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | ||
5276 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
5277 | gt_cv_have_gettext=yes | ||
5278 | fi | ||
5279 | |||
5280 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | ||
5281 | INTLLIBS="-lintl $libintl_extra_libs" | ||
5282 | fi | ||
5283 | |||
5284 | if test "$gt_cv_have_gettext" = "yes"; then | ||
5285 | |||
5286 | cat >>confdefs.h <<\_ACEOF | ||
5287 | #define HAVE_GETTEXT 1 | ||
5288 | _ACEOF | ||
5289 | |||
5290 | # Extract the first word of "msgfmt", so it can be a program name with args. | ||
5291 | set dummy msgfmt; ac_word=$2 | ||
5292 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5294 | if test "${ac_cv_path_MSGFMT+set}" = set; then | ||
5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5296 | else | ||
5297 | case "$MSGFMT" in | ||
5298 | /*) | ||
5299 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | ||
5300 | ;; | ||
5301 | *) | ||
5302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
5303 | for ac_dir in $PATH; do | ||
5304 | test -z "$ac_dir" && ac_dir=. | ||
5305 | if test -f $ac_dir/$ac_word; then | ||
5306 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | ||
5307 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | ||
5308 | break | ||
5309 | fi | ||
5310 | fi | ||
5311 | done | ||
5312 | IFS="$ac_save_ifs" | ||
5313 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | ||
5314 | ;; | ||
5315 | esac | ||
5316 | fi | ||
5317 | MSGFMT="$ac_cv_path_MSGFMT" | ||
5318 | if test "$MSGFMT" != "no"; then | ||
5319 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 | ||
5320 | echo "${ECHO_T}$MSGFMT" >&6; } | ||
5321 | else | ||
5322 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5323 | echo "${ECHO_T}no" >&6; } | ||
5324 | fi | ||
5325 | if test "$MSGFMT" != "no"; then | ||
5326 | glib_save_LIBS="$LIBS" | ||
5327 | LIBS="$LIBS $INTLLIBS" | ||
5328 | |||
5329 | for ac_func in dcgettext | ||
5330 | do | ||
5331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5332 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
5334 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5336 | else | ||
5337 | cat >conftest.$ac_ext <<_ACEOF | ||
5338 | /* confdefs.h. */ | ||
5339 | _ACEOF | ||
5340 | cat confdefs.h >>conftest.$ac_ext | ||
5341 | cat >>conftest.$ac_ext <<_ACEOF | ||
5342 | /* end confdefs.h. */ | ||
5343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5345 | #define $ac_func innocuous_$ac_func | ||
5346 | |||
5347 | /* System header to define __stub macros and hopefully few prototypes, | ||
5348 | which can conflict with char $ac_func (); below. | ||
5349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5350 | <limits.h> exists even on freestanding compilers. */ | ||
5351 | |||
5352 | #ifdef __STDC__ | ||
5353 | # include <limits.h> | ||
5354 | #else | ||
5355 | # include <assert.h> | ||
5356 | #endif | ||
5357 | |||
5358 | #undef $ac_func | ||
5359 | |||
5360 | /* Override any GCC internal prototype to avoid an error. | ||
5361 | Use char because int might match the return type of a GCC | ||
5362 | builtin and then its argument prototype would still apply. */ | ||
5363 | #ifdef __cplusplus | ||
5364 | extern "C" | ||
5365 | #endif | ||
5366 | char $ac_func (); | ||
5367 | /* The GNU C library defines this for functions which it implements | ||
5368 | to always fail with ENOSYS. Some functions are actually named | ||
5369 | something starting with __ and the normal name is an alias. */ | ||
5370 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
5371 | choke me | ||
5372 | #endif | ||
5373 | |||
5374 | int | ||
5375 | main () | ||
5376 | { | ||
5377 | return $ac_func (); | ||
5378 | ; | ||
5379 | return 0; | ||
5380 | } | ||
5381 | _ACEOF | ||
5382 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5383 | if { (ac_try="$ac_link" | ||
5384 | case "(($ac_try" in | ||
5385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5386 | *) ac_try_echo=$ac_try;; | ||
5387 | esac | ||
5388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5389 | (eval "$ac_link") 2>conftest.er1 | ||
5390 | ac_status=$? | ||
5391 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5392 | rm -f conftest.er1 | ||
5393 | cat conftest.err >&5 | ||
5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5395 | (exit $ac_status); } && | ||
5396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5397 | { (case "(($ac_try" in | ||
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5399 | *) ac_try_echo=$ac_try;; | ||
5400 | esac | ||
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5402 | (eval "$ac_try") 2>&5 | ||
5403 | ac_status=$? | ||
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5405 | (exit $ac_status); }; } && | ||
5406 | { ac_try='test -s conftest$ac_exeext' | ||
5407 | { (case "(($ac_try" in | ||
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5409 | *) ac_try_echo=$ac_try;; | ||
5410 | esac | ||
5411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5412 | (eval "$ac_try") 2>&5 | ||
5413 | ac_status=$? | ||
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5415 | (exit $ac_status); }; }; then | ||
5416 | eval "$as_ac_var=yes" | ||
5417 | else | ||
5418 | echo "$as_me: failed program was:" >&5 | ||
5419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5420 | |||
5421 | eval "$as_ac_var=no" | ||
5422 | fi | ||
5423 | |||
5424 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5425 | conftest$ac_exeext conftest.$ac_ext | ||
5426 | fi | ||
5427 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
5428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5429 | echo "${ECHO_T}$ac_res" >&6; } | ||
5430 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5431 | cat >>confdefs.h <<_ACEOF | ||
5432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5433 | _ACEOF | ||
5434 | |||
5435 | fi | ||
5436 | done | ||
5437 | |||
5438 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | ||
5439 | set dummy gmsgfmt; ac_word=$2 | ||
5440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5442 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | ||
5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5444 | else | ||
5445 | case $GMSGFMT in | ||
5446 | [\\/]* | ?:[\\/]*) | ||
5447 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | ||
5448 | ;; | ||
5449 | *) | ||
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5451 | for as_dir in $PATH | ||
5452 | do | ||
5453 | IFS=$as_save_IFS | ||
5454 | test -z "$as_dir" && as_dir=. | ||
5455 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5457 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | ||
5458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5459 | break 2 | ||
5460 | fi | ||
5461 | done | ||
5462 | done | ||
5463 | IFS=$as_save_IFS | ||
5464 | |||
5465 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | ||
5466 | ;; | ||
5467 | esac | ||
5468 | fi | ||
5469 | GMSGFMT=$ac_cv_path_GMSGFMT | ||
5470 | if test -n "$GMSGFMT"; then | ||
5471 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | ||
5472 | echo "${ECHO_T}$GMSGFMT" >&6; } | ||
5473 | else | ||
5474 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5475 | echo "${ECHO_T}no" >&6; } | ||
5476 | fi | ||
5477 | |||
5478 | |||
5479 | # Extract the first word of "xgettext", so it can be a program name with args. | ||
5480 | set dummy xgettext; ac_word=$2 | ||
5481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5483 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | ||
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5485 | else | ||
5486 | case "$XGETTEXT" in | ||
5487 | /*) | ||
5488 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | ||
5489 | ;; | ||
5490 | *) | ||
5491 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
5492 | for ac_dir in $PATH; do | ||
5493 | test -z "$ac_dir" && ac_dir=. | ||
5494 | if test -f $ac_dir/$ac_word; then | ||
5495 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | ||
5496 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | ||
5497 | break | ||
5498 | fi | ||
5499 | fi | ||
5500 | done | ||
5501 | IFS="$ac_save_ifs" | ||
5502 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | ||
5503 | ;; | ||
5504 | esac | ||
5505 | fi | ||
5506 | XGETTEXT="$ac_cv_path_XGETTEXT" | ||
5507 | if test "$XGETTEXT" != ":"; then | ||
5508 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | ||
5509 | echo "${ECHO_T}$XGETTEXT" >&6; } | ||
5510 | else | ||
5511 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5512 | echo "${ECHO_T}no" >&6; } | ||
5513 | fi | ||
5514 | |||
5515 | cat >conftest.$ac_ext <<_ACEOF | ||
5516 | /* confdefs.h. */ | ||
5517 | _ACEOF | ||
5518 | cat confdefs.h >>conftest.$ac_ext | ||
5519 | cat >>conftest.$ac_ext <<_ACEOF | ||
5520 | /* end confdefs.h. */ | ||
5521 | |||
5522 | int | ||
5523 | main () | ||
5524 | { | ||
5525 | extern int _nl_msg_cat_cntr; | ||
5526 | return _nl_msg_cat_cntr | ||
5527 | ; | ||
5528 | return 0; | ||
5529 | } | ||
5530 | _ACEOF | ||
5531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5532 | if { (ac_try="$ac_link" | ||
5533 | case "(($ac_try" in | ||
5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5535 | *) ac_try_echo=$ac_try;; | ||
5536 | esac | ||
5537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5538 | (eval "$ac_link") 2>conftest.er1 | ||
5539 | ac_status=$? | ||
5540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5541 | rm -f conftest.er1 | ||
5542 | cat conftest.err >&5 | ||
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5544 | (exit $ac_status); } && | ||
5545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5546 | { (case "(($ac_try" in | ||
5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5548 | *) ac_try_echo=$ac_try;; | ||
5549 | esac | ||
5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5551 | (eval "$ac_try") 2>&5 | ||
5552 | ac_status=$? | ||
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5554 | (exit $ac_status); }; } && | ||
5555 | { ac_try='test -s conftest$ac_exeext' | ||
5556 | { (case "(($ac_try" in | ||
5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5558 | *) ac_try_echo=$ac_try;; | ||
5559 | esac | ||
5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5561 | (eval "$ac_try") 2>&5 | ||
5562 | ac_status=$? | ||
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5564 | (exit $ac_status); }; }; then | ||
5565 | CATOBJEXT=.gmo | ||
5566 | DATADIRNAME=share | ||
5567 | else | ||
5568 | echo "$as_me: failed program was:" >&5 | ||
5569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5570 | |||
5571 | case $host in | ||
5572 | *-*-solaris*) | ||
5573 | { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 | ||
5574 | echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } | ||
5575 | if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then | ||
5576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5577 | else | ||
5578 | cat >conftest.$ac_ext <<_ACEOF | ||
5579 | /* confdefs.h. */ | ||
5580 | _ACEOF | ||
5581 | cat confdefs.h >>conftest.$ac_ext | ||
5582 | cat >>conftest.$ac_ext <<_ACEOF | ||
5583 | /* end confdefs.h. */ | ||
5584 | /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. | ||
5585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5586 | #define bind_textdomain_codeset innocuous_bind_textdomain_codeset | ||
5587 | |||
5588 | /* System header to define __stub macros and hopefully few prototypes, | ||
5589 | which can conflict with char bind_textdomain_codeset (); below. | ||
5590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5591 | <limits.h> exists even on freestanding compilers. */ | ||
5592 | |||
5593 | #ifdef __STDC__ | ||
5594 | # include <limits.h> | ||
5595 | #else | ||
5596 | # include <assert.h> | ||
5597 | #endif | ||
5598 | |||
5599 | #undef bind_textdomain_codeset | ||
5600 | |||
5601 | /* Override any GCC internal prototype to avoid an error. | ||
5602 | Use char because int might match the return type of a GCC | ||
5603 | builtin and then its argument prototype would still apply. */ | ||
5604 | #ifdef __cplusplus | ||
5605 | extern "C" | ||
5606 | #endif | ||
5607 | char bind_textdomain_codeset (); | ||
5608 | /* The GNU C library defines this for functions which it implements | ||
5609 | to always fail with ENOSYS. Some functions are actually named | ||
5610 | something starting with __ and the normal name is an alias. */ | ||
5611 | #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset | ||
5612 | choke me | ||
5613 | #endif | ||
5614 | |||
5615 | int | ||
5616 | main () | ||
5617 | { | ||
5618 | return bind_textdomain_codeset (); | ||
5619 | ; | ||
5620 | return 0; | ||
5621 | } | ||
5622 | _ACEOF | ||
5623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5624 | if { (ac_try="$ac_link" | ||
5625 | case "(($ac_try" in | ||
5626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5627 | *) ac_try_echo=$ac_try;; | ||
5628 | esac | ||
5629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5630 | (eval "$ac_link") 2>conftest.er1 | ||
5631 | ac_status=$? | ||
5632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5633 | rm -f conftest.er1 | ||
5634 | cat conftest.err >&5 | ||
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5636 | (exit $ac_status); } && | ||
5637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
5638 | { (case "(($ac_try" in | ||
5639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5640 | *) ac_try_echo=$ac_try;; | ||
5641 | esac | ||
5642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5643 | (eval "$ac_try") 2>&5 | ||
5644 | ac_status=$? | ||
5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5646 | (exit $ac_status); }; } && | ||
5647 | { ac_try='test -s conftest$ac_exeext' | ||
5648 | { (case "(($ac_try" in | ||
5649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5650 | *) ac_try_echo=$ac_try;; | ||
5651 | esac | ||
5652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5653 | (eval "$ac_try") 2>&5 | ||
5654 | ac_status=$? | ||
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5656 | (exit $ac_status); }; }; then | ||
5657 | ac_cv_func_bind_textdomain_codeset=yes | ||
5658 | else | ||
5659 | echo "$as_me: failed program was:" >&5 | ||
5660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5661 | |||
5662 | ac_cv_func_bind_textdomain_codeset=no | ||
5663 | fi | ||
5664 | |||
5665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5666 | conftest$ac_exeext conftest.$ac_ext | ||
5667 | fi | ||
5668 | { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 | ||
5669 | echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } | ||
5670 | if test $ac_cv_func_bind_textdomain_codeset = yes; then | ||
5671 | CATOBJEXT=.gmo | ||
5672 | DATADIRNAME=share | ||
5673 | else | ||
5674 | CATOBJEXT=.mo | ||
5675 | DATADIRNAME=lib | ||
5676 | fi | ||
5677 | |||
5678 | ;; | ||
5679 | *) | ||
5680 | CATOBJEXT=.mo | ||
5681 | DATADIRNAME=lib | ||
5682 | ;; | ||
5683 | esac | ||
5684 | fi | ||
5685 | |||
5686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5687 | conftest$ac_exeext conftest.$ac_ext | ||
5688 | LIBS="$glib_save_LIBS" | ||
5689 | INSTOBJEXT=.mo | ||
5690 | else | ||
5691 | gt_cv_have_gettext=no | ||
5692 | fi | ||
5693 | fi | ||
5694 | |||
5695 | fi | ||
5696 | |||
5697 | |||
5698 | |||
5699 | if test "$gt_cv_have_gettext" = "yes" ; then | ||
5700 | |||
5701 | cat >>confdefs.h <<\_ACEOF | ||
5702 | #define ENABLE_NLS 1 | ||
5703 | _ACEOF | ||
5704 | |||
5705 | fi | ||
5706 | |||
5707 | if test "$XGETTEXT" != ":"; then | ||
5708 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | ||
5709 | : ; | ||
5710 | else | ||
5711 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | ||
5712 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } | ||
5713 | XGETTEXT=":" | ||
5714 | fi | ||
5715 | fi | ||
5716 | |||
5717 | # We need to process the po/ directory. | ||
5718 | POSUB=po | ||
5719 | |||
5720 | ac_config_commands="$ac_config_commands default-1" | ||
5721 | |||
5722 | |||
5723 | for lang in $ALL_LINGUAS; do | ||
5724 | GMOFILES="$GMOFILES $lang.gmo" | ||
5725 | POFILES="$POFILES $lang.po" | ||
5726 | done | ||
5727 | |||
5728 | |||
5729 | |||
5730 | |||
5731 | |||
5732 | |||
5733 | |||
5734 | |||
5735 | |||
5736 | |||
5737 | |||
5738 | |||
5739 | |||
5740 | if test "$gt_cv_have_gettext" = "yes"; then | ||
5741 | if test "x$ALL_LINGUAS" = "x"; then | ||
5742 | LINGUAS= | ||
5743 | else | ||
5744 | { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | ||
5745 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } | ||
5746 | NEW_LINGUAS= | ||
5747 | for presentlang in $ALL_LINGUAS; do | ||
5748 | useit=no | ||
5749 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | ||
5750 | desiredlanguages="$LINGUAS" | ||
5751 | else | ||
5752 | desiredlanguages="$ALL_LINGUAS" | ||
5753 | fi | ||
5754 | for desiredlang in $desiredlanguages; do | ||
5755 | # Use the presentlang catalog if desiredlang is | ||
5756 | # a. equal to presentlang, or | ||
5757 | # b. a variant of presentlang (because in this case, | ||
5758 | # presentlang can be used as a fallback for messages | ||
5759 | # which are not translated in the desiredlang catalog). | ||
5760 | case "$desiredlang" in | ||
5761 | "$presentlang"*) useit=yes;; | ||
5762 | esac | ||
5763 | done | ||
5764 | if test $useit = yes; then | ||
5765 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
5766 | fi | ||
5767 | done | ||
5768 | LINGUAS=$NEW_LINGUAS | ||
5769 | { echo "$as_me:$LINENO: result: $LINGUAS" >&5 | ||
5770 | echo "${ECHO_T}$LINGUAS" >&6; } | ||
5771 | fi | ||
5772 | |||
5773 | if test -n "$LINGUAS"; then | ||
5774 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
5775 | fi | ||
5776 | fi | ||
5777 | |||
5778 | MKINSTALLDIRS= | ||
5779 | if test -n "$ac_aux_dir"; then | ||
5780 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
5781 | fi | ||
5782 | if test -z "$MKINSTALLDIRS"; then | ||
5783 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
5784 | fi | ||
5785 | |||
5786 | |||
5787 | test -d po || mkdir po | ||
5788 | if test "x$srcdir" != "x."; then | ||
5789 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | ||
5790 | posrcprefix="$srcdir/" | ||
5791 | else | ||
5792 | posrcprefix="../$srcdir/" | ||
5793 | fi | ||
5794 | else | ||
5795 | posrcprefix="../" | ||
5796 | fi | ||
5797 | rm -f po/POTFILES | ||
5798 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | ||
5799 | < $srcdir/po/POTFILES.in > po/POTFILES | ||
5800 | |||
5801 | |||
5802 | GETTEXT_PACKAGE=$PACKAGE | ||
5803 | |||
5804 | |||
5805 | # glib 2.0 | ||
5806 | # Check whether --enable-glibtest was given. | ||
5807 | if test "${enable_glibtest+set}" = set; then | ||
5808 | enableval=$enable_glibtest; | ||
5809 | else | ||
5810 | enable_glibtest=yes | ||
5811 | fi | ||
5812 | |||
5813 | |||
5814 | pkg_config_args=glib-2.0 | ||
5815 | for module in . | ||
5816 | do | ||
5817 | case "$module" in | ||
5818 | gmodule) | ||
5819 | pkg_config_args="$pkg_config_args gmodule-2.0" | ||
5820 | ;; | ||
5821 | gmodule-no-export) | ||
5822 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" | ||
5823 | ;; | ||
5824 | gobject) | ||
5825 | pkg_config_args="$pkg_config_args gobject-2.0" | ||
5826 | ;; | ||
5827 | gthread) | ||
5828 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
5829 | ;; | ||
5830 | esac | ||
5831 | done | ||
5832 | |||
5833 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
5834 | set dummy pkg-config; ac_word=$2 | ||
5835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5837 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5839 | else | ||
5840 | case $PKG_CONFIG in | ||
5841 | [\\/]* | ?:[\\/]*) | ||
5842 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
5843 | ;; | ||
5844 | *) | ||
5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5846 | for as_dir in $PATH | ||
5847 | do | ||
5848 | IFS=$as_save_IFS | ||
5849 | test -z "$as_dir" && as_dir=. | ||
5850 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5852 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
5853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5854 | break 2 | ||
5855 | fi | ||
5856 | done | ||
5857 | done | ||
5858 | IFS=$as_save_IFS | ||
5859 | |||
5860 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
5861 | ;; | ||
5862 | esac | ||
5863 | fi | ||
5864 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
5865 | if test -n "$PKG_CONFIG"; then | ||
5866 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
5867 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
5868 | else | ||
5869 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5870 | echo "${ECHO_T}no" >&6; } | ||
5871 | fi | ||
5872 | |||
5873 | |||
5874 | |||
5875 | no_glib="" | ||
5876 | |||
5877 | if test x$PKG_CONFIG != xno ; then | ||
5878 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | ||
5879 | : | ||
5880 | else | ||
5881 | echo *** pkg-config too old; version 0.7 or better required. | ||
5882 | no_glib=yes | ||
5883 | PKG_CONFIG=no | ||
5884 | fi | ||
5885 | else | ||
5886 | no_glib=yes | ||
5887 | fi | ||
5888 | |||
5889 | min_glib_version=2.4.0 | ||
5890 | { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 | ||
5891 | echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } | ||
5892 | |||
5893 | if test x$PKG_CONFIG != xno ; then | ||
5894 | ## don't try to run the test against uninstalled libtool libs | ||
5895 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
5896 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" | ||
5897 | enable_glibtest=no | ||
5898 | fi | ||
5899 | |||
5900 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then | ||
5901 | : | ||
5902 | else | ||
5903 | no_glib=yes | ||
5904 | fi | ||
5905 | fi | ||
5906 | |||
5907 | if test x"$no_glib" = x ; then | ||
5908 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` | ||
5909 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` | ||
5910 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
5911 | |||
5912 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` | ||
5913 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` | ||
5914 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
5916 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
5918 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
5919 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
5920 | if test "x$enable_glibtest" = "xyes" ; then | ||
5921 | ac_save_CFLAGS="$CFLAGS" | ||
5922 | ac_save_LIBS="$LIBS" | ||
5923 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
5924 | LIBS="$GLIB_LIBS $LIBS" | ||
5925 | rm -f conf.glibtest | ||
5926 | if test "$cross_compiling" = yes; then | ||
5927 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
5928 | else | ||
5929 | cat >conftest.$ac_ext <<_ACEOF | ||
5930 | /* confdefs.h. */ | ||
5931 | _ACEOF | ||
5932 | cat confdefs.h >>conftest.$ac_ext | ||
5933 | cat >>conftest.$ac_ext <<_ACEOF | ||
5934 | /* end confdefs.h. */ | ||
5935 | |||
5936 | #include <glib.h> | ||
5937 | #include <stdio.h> | ||
5938 | #include <stdlib.h> | ||
5939 | |||
5940 | int | ||
5941 | main () | ||
5942 | { | ||
5943 | int major, minor, micro; | ||
5944 | char *tmp_version; | ||
5945 | |||
5946 | system ("touch conf.glibtest"); | ||
5947 | |||
5948 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
5949 | tmp_version = g_strdup("$min_glib_version"); | ||
5950 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
5951 | printf("%s, bad version string\n", "$min_glib_version"); | ||
5952 | exit(1); | ||
5953 | } | ||
5954 | |||
5955 | if ((glib_major_version != $glib_config_major_version) || | ||
5956 | (glib_minor_version != $glib_config_minor_version) || | ||
5957 | (glib_micro_version != $glib_config_micro_version)) | ||
5958 | { | ||
5959 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
5960 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
5961 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5962 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
5963 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); | ||
5964 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
5965 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
5966 | printf("*** required on your system.\n"); | ||
5967 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
5968 | printf("*** to point to the correct configuration files\n"); | ||
5969 | } | ||
5970 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
5971 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
5972 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
5973 | { | ||
5974 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
5975 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
5976 | printf("*** library (version %d.%d.%d)\n", | ||
5977 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5978 | } | ||
5979 | else | ||
5980 | { | ||
5981 | if ((glib_major_version > major) || | ||
5982 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
5983 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
5984 | { | ||
5985 | return 0; | ||
5986 | } | ||
5987 | else | ||
5988 | { | ||
5989 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
5990 | glib_major_version, glib_minor_version, glib_micro_version); | ||
5991 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
5992 | major, minor, micro); | ||
5993 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
5994 | printf("***\n"); | ||
5995 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
5996 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
5997 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
5998 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
5999 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
6000 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6001 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
6002 | } | ||
6003 | } | ||
6004 | return 1; | ||
6005 | } | ||
6006 | |||
6007 | _ACEOF | ||
6008 | rm -f conftest$ac_exeext | ||
6009 | if { (ac_try="$ac_link" | ||
6010 | case "(($ac_try" in | ||
6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6012 | *) ac_try_echo=$ac_try;; | ||
6013 | esac | ||
6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6015 | (eval "$ac_link") 2>&5 | ||
6016 | ac_status=$? | ||
6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6019 | { (case "(($ac_try" in | ||
6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6021 | *) ac_try_echo=$ac_try;; | ||
6022 | esac | ||
6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6024 | (eval "$ac_try") 2>&5 | ||
6025 | ac_status=$? | ||
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6027 | (exit $ac_status); }; }; then | ||
6028 | : | ||
6029 | else | ||
6030 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6031 | echo "$as_me: failed program was:" >&5 | ||
6032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6033 | |||
6034 | ( exit $ac_status ) | ||
6035 | no_glib=yes | ||
6036 | fi | ||
6037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6038 | fi | ||
6039 | |||
6040 | |||
6041 | CFLAGS="$ac_save_CFLAGS" | ||
6042 | LIBS="$ac_save_LIBS" | ||
6043 | fi | ||
6044 | fi | ||
6045 | if test "x$no_glib" = x ; then | ||
6046 | { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 | ||
6047 | echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } | ||
6048 | : | ||
6049 | else | ||
6050 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6051 | echo "${ECHO_T}no" >&6; } | ||
6052 | if test "$PKG_CONFIG" = "no" ; then | ||
6053 | echo "*** A new enough version of pkg-config was not found." | ||
6054 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" | ||
6055 | else | ||
6056 | if test -f conf.glibtest ; then | ||
6057 | : | ||
6058 | else | ||
6059 | echo "*** Could not run GLIB test program, checking why..." | ||
6060 | ac_save_CFLAGS="$CFLAGS" | ||
6061 | ac_save_LIBS="$LIBS" | ||
6062 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
6063 | LIBS="$LIBS $GLIB_LIBS" | ||
6064 | cat >conftest.$ac_ext <<_ACEOF | ||
6065 | /* confdefs.h. */ | ||
6066 | _ACEOF | ||
6067 | cat confdefs.h >>conftest.$ac_ext | ||
6068 | cat >>conftest.$ac_ext <<_ACEOF | ||
6069 | /* end confdefs.h. */ | ||
6070 | |||
6071 | #include <glib.h> | ||
6072 | #include <stdio.h> | ||
6073 | |||
6074 | int | ||
6075 | main () | ||
6076 | { | ||
6077 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ||
6078 | ; | ||
6079 | return 0; | ||
6080 | } | ||
6081 | _ACEOF | ||
6082 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6083 | if { (ac_try="$ac_link" | ||
6084 | case "(($ac_try" in | ||
6085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6086 | *) ac_try_echo=$ac_try;; | ||
6087 | esac | ||
6088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6089 | (eval "$ac_link") 2>conftest.er1 | ||
6090 | ac_status=$? | ||
6091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6092 | rm -f conftest.er1 | ||
6093 | cat conftest.err >&5 | ||
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6095 | (exit $ac_status); } && | ||
6096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6097 | { (case "(($ac_try" in | ||
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6099 | *) ac_try_echo=$ac_try;; | ||
6100 | esac | ||
6101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6102 | (eval "$ac_try") 2>&5 | ||
6103 | ac_status=$? | ||
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6105 | (exit $ac_status); }; } && | ||
6106 | { ac_try='test -s conftest$ac_exeext' | ||
6107 | { (case "(($ac_try" in | ||
6108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6109 | *) ac_try_echo=$ac_try;; | ||
6110 | esac | ||
6111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6112 | (eval "$ac_try") 2>&5 | ||
6113 | ac_status=$? | ||
6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6115 | (exit $ac_status); }; }; then | ||
6116 | echo "*** The test program compiled, but did not run. This usually means" | ||
6117 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
6118 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
6119 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6120 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6121 | echo "*** is required on your system" | ||
6122 | echo "***" | ||
6123 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6124 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6125 | else | ||
6126 | echo "$as_me: failed program was:" >&5 | ||
6127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6128 | |||
6129 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6130 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed." | ||
6131 | fi | ||
6132 | |||
6133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6134 | conftest$ac_exeext conftest.$ac_ext | ||
6135 | CFLAGS="$ac_save_CFLAGS" | ||
6136 | LIBS="$ac_save_LIBS" | ||
6137 | fi | ||
6138 | fi | ||
6139 | GLIB_CFLAGS="" | ||
6140 | GLIB_LIBS="" | ||
6141 | GLIB_GENMARSHAL="" | ||
6142 | GOBJECT_QUERY="" | ||
6143 | GLIB_MKENUMS="" | ||
6144 | { { echo "$as_me:$LINENO: error: GLib >= 2.4.0 is required" >&5 | ||
6145 | echo "$as_me: error: GLib >= 2.4.0 is required" >&2;} | ||
6146 | { (exit 1); exit 1; }; } | ||
6147 | fi | ||
6148 | |||
6149 | |||
6150 | |||
6151 | |||
6152 | |||
6153 | rm -f conf.glibtest | ||
6154 | |||
6155 | |||
6156 | # gtk+ 2.0 | ||
6157 | # Check whether --enable-gtktest was given. | ||
6158 | if test "${enable_gtktest+set}" = set; then | ||
6159 | enableval=$enable_gtktest; | ||
6160 | else | ||
6161 | enable_gtktest=yes | ||
6162 | fi | ||
6163 | |||
6164 | |||
6165 | pkg_config_args=gtk+-2.0 | ||
6166 | for module in . | ||
6167 | do | ||
6168 | case "$module" in | ||
6169 | gthread) | ||
6170 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
6171 | ;; | ||
6172 | esac | ||
6173 | done | ||
6174 | |||
6175 | no_gtk="" | ||
6176 | |||
6177 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6178 | set dummy pkg-config; ac_word=$2 | ||
6179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6181 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6183 | else | ||
6184 | case $PKG_CONFIG in | ||
6185 | [\\/]* | ?:[\\/]*) | ||
6186 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6187 | ;; | ||
6188 | *) | ||
6189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6190 | for as_dir in $PATH | ||
6191 | do | ||
6192 | IFS=$as_save_IFS | ||
6193 | test -z "$as_dir" && as_dir=. | ||
6194 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6196 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6198 | break 2 | ||
6199 | fi | ||
6200 | done | ||
6201 | done | ||
6202 | IFS=$as_save_IFS | ||
6203 | |||
6204 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
6205 | ;; | ||
6206 | esac | ||
6207 | fi | ||
6208 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6209 | if test -n "$PKG_CONFIG"; then | ||
6210 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6211 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6212 | else | ||
6213 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6214 | echo "${ECHO_T}no" >&6; } | ||
6215 | fi | ||
6216 | |||
6217 | |||
6218 | |||
6219 | if test x$PKG_CONFIG != xno ; then | ||
6220 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | ||
6221 | : | ||
6222 | else | ||
6223 | echo "*** pkg-config too old; version 0.7 or better required." | ||
6224 | no_gtk=yes | ||
6225 | PKG_CONFIG=no | ||
6226 | fi | ||
6227 | else | ||
6228 | no_gtk=yes | ||
6229 | fi | ||
6230 | |||
6231 | min_gtk_version=2.4.0 | ||
6232 | { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | ||
6233 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } | ||
6234 | |||
6235 | if test x$PKG_CONFIG != xno ; then | ||
6236 | ## don't try to run the test against uninstalled libtool libs | ||
6237 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
6238 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | ||
6239 | enable_gtktest=no | ||
6240 | fi | ||
6241 | |||
6242 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | ||
6243 | : | ||
6244 | else | ||
6245 | no_gtk=yes | ||
6246 | fi | ||
6247 | fi | ||
6248 | |||
6249 | if test x"$no_gtk" = x ; then | ||
6250 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | ||
6251 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | ||
6252 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
6254 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6255 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
6256 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
6257 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
6258 | if test "x$enable_gtktest" = "xyes" ; then | ||
6259 | ac_save_CFLAGS="$CFLAGS" | ||
6260 | ac_save_LIBS="$LIBS" | ||
6261 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
6262 | LIBS="$GTK_LIBS $LIBS" | ||
6263 | rm -f conf.gtktest | ||
6264 | if test "$cross_compiling" = yes; then | ||
6265 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
6266 | else | ||
6267 | cat >conftest.$ac_ext <<_ACEOF | ||
6268 | /* confdefs.h. */ | ||
6269 | _ACEOF | ||
6270 | cat confdefs.h >>conftest.$ac_ext | ||
6271 | cat >>conftest.$ac_ext <<_ACEOF | ||
6272 | /* end confdefs.h. */ | ||
6273 | |||
6274 | #include <gtk/gtk.h> | ||
6275 | #include <stdio.h> | ||
6276 | #include <stdlib.h> | ||
6277 | |||
6278 | int | ||
6279 | main () | ||
6280 | { | ||
6281 | int major, minor, micro; | ||
6282 | char *tmp_version; | ||
6283 | |||
6284 | system ("touch conf.gtktest"); | ||
6285 | |||
6286 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
6287 | tmp_version = g_strdup("$min_gtk_version"); | ||
6288 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
6289 | printf("%s, bad version string\n", "$min_gtk_version"); | ||
6290 | exit(1); | ||
6291 | } | ||
6292 | |||
6293 | if ((gtk_major_version != $gtk_config_major_version) || | ||
6294 | (gtk_minor_version != $gtk_config_minor_version) || | ||
6295 | (gtk_micro_version != $gtk_config_micro_version)) | ||
6296 | { | ||
6297 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | ||
6298 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | ||
6299 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6300 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
6301 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | ||
6302 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
6303 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
6304 | printf("*** required on your system.\n"); | ||
6305 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
6306 | printf("*** to point to the correct configuration files\n"); | ||
6307 | } | ||
6308 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | ||
6309 | (gtk_minor_version != GTK_MINOR_VERSION) || | ||
6310 | (gtk_micro_version != GTK_MICRO_VERSION)) | ||
6311 | { | ||
6312 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | ||
6313 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | ||
6314 | printf("*** library (version %d.%d.%d)\n", | ||
6315 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6316 | } | ||
6317 | else | ||
6318 | { | ||
6319 | if ((gtk_major_version > major) || | ||
6320 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | ||
6321 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | ||
6322 | { | ||
6323 | return 0; | ||
6324 | } | ||
6325 | else | ||
6326 | { | ||
6327 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | ||
6328 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
6329 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | ||
6330 | major, minor, micro); | ||
6331 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | ||
6332 | printf("***\n"); | ||
6333 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
6334 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
6335 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
6336 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
6337 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
6338 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6339 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
6340 | } | ||
6341 | } | ||
6342 | return 1; | ||
6343 | } | ||
6344 | |||
6345 | _ACEOF | ||
6346 | rm -f conftest$ac_exeext | ||
6347 | if { (ac_try="$ac_link" | ||
6348 | case "(($ac_try" in | ||
6349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6350 | *) ac_try_echo=$ac_try;; | ||
6351 | esac | ||
6352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6353 | (eval "$ac_link") 2>&5 | ||
6354 | ac_status=$? | ||
6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6357 | { (case "(($ac_try" in | ||
6358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6359 | *) ac_try_echo=$ac_try;; | ||
6360 | esac | ||
6361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6362 | (eval "$ac_try") 2>&5 | ||
6363 | ac_status=$? | ||
6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6365 | (exit $ac_status); }; }; then | ||
6366 | : | ||
6367 | else | ||
6368 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6369 | echo "$as_me: failed program was:" >&5 | ||
6370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6371 | |||
6372 | ( exit $ac_status ) | ||
6373 | no_gtk=yes | ||
6374 | fi | ||
6375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6376 | fi | ||
6377 | |||
6378 | |||
6379 | CFLAGS="$ac_save_CFLAGS" | ||
6380 | LIBS="$ac_save_LIBS" | ||
6381 | fi | ||
6382 | fi | ||
6383 | if test "x$no_gtk" = x ; then | ||
6384 | { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | ||
6385 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | ||
6386 | : | ||
6387 | else | ||
6388 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6389 | echo "${ECHO_T}no" >&6; } | ||
6390 | if test "$PKG_CONFIG" = "no" ; then | ||
6391 | echo "*** A new enough version of pkg-config was not found." | ||
6392 | echo "*** See http://pkgconfig.sourceforge.net" | ||
6393 | else | ||
6394 | if test -f conf.gtktest ; then | ||
6395 | : | ||
6396 | else | ||
6397 | echo "*** Could not run GTK+ test program, checking why..." | ||
6398 | ac_save_CFLAGS="$CFLAGS" | ||
6399 | ac_save_LIBS="$LIBS" | ||
6400 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
6401 | LIBS="$LIBS $GTK_LIBS" | ||
6402 | cat >conftest.$ac_ext <<_ACEOF | ||
6403 | /* confdefs.h. */ | ||
6404 | _ACEOF | ||
6405 | cat confdefs.h >>conftest.$ac_ext | ||
6406 | cat >>conftest.$ac_ext <<_ACEOF | ||
6407 | /* end confdefs.h. */ | ||
6408 | |||
6409 | #include <gtk/gtk.h> | ||
6410 | #include <stdio.h> | ||
6411 | |||
6412 | int | ||
6413 | main () | ||
6414 | { | ||
6415 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | ||
6416 | ; | ||
6417 | return 0; | ||
6418 | } | ||
6419 | _ACEOF | ||
6420 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6421 | if { (ac_try="$ac_link" | ||
6422 | case "(($ac_try" in | ||
6423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6424 | *) ac_try_echo=$ac_try;; | ||
6425 | esac | ||
6426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6427 | (eval "$ac_link") 2>conftest.er1 | ||
6428 | ac_status=$? | ||
6429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6430 | rm -f conftest.er1 | ||
6431 | cat conftest.err >&5 | ||
6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6433 | (exit $ac_status); } && | ||
6434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6435 | { (case "(($ac_try" in | ||
6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6437 | *) ac_try_echo=$ac_try;; | ||
6438 | esac | ||
6439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6440 | (eval "$ac_try") 2>&5 | ||
6441 | ac_status=$? | ||
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6443 | (exit $ac_status); }; } && | ||
6444 | { ac_try='test -s conftest$ac_exeext' | ||
6445 | { (case "(($ac_try" in | ||
6446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6447 | *) ac_try_echo=$ac_try;; | ||
6448 | esac | ||
6449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6450 | (eval "$ac_try") 2>&5 | ||
6451 | ac_status=$? | ||
6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6453 | (exit $ac_status); }; }; then | ||
6454 | echo "*** The test program compiled, but did not run. This usually means" | ||
6455 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | ||
6456 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | ||
6457 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6458 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6459 | echo "*** is required on your system" | ||
6460 | echo "***" | ||
6461 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6462 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6463 | else | ||
6464 | echo "$as_me: failed program was:" >&5 | ||
6465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6466 | |||
6467 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6468 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | ||
6469 | fi | ||
6470 | |||
6471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6472 | conftest$ac_exeext conftest.$ac_ext | ||
6473 | CFLAGS="$ac_save_CFLAGS" | ||
6474 | LIBS="$ac_save_LIBS" | ||
6475 | fi | ||
6476 | fi | ||
6477 | GTK_CFLAGS="" | ||
6478 | GTK_LIBS="" | ||
6479 | { { echo "$as_me:$LINENO: error: GTK+ >= 2.4.0 is required" >&5 | ||
6480 | echo "$as_me: error: GTK+ >= 2.4.0 is required" >&2;} | ||
6481 | { (exit 1); exit 1; }; } | ||
6482 | fi | ||
6483 | |||
6484 | |||
6485 | rm -f conf.gtktest | ||
6486 | |||
6487 | |||
6488 | # libglade 2.0 | ||
6489 | |||
6490 | |||
6491 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
6492 | if test -n "$ac_tool_prefix"; then | ||
6493 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
6494 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
6495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6497 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6499 | else | ||
6500 | case $PKG_CONFIG in | ||
6501 | [\\/]* | ?:[\\/]*) | ||
6502 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6503 | ;; | ||
6504 | *) | ||
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6506 | for as_dir in $PATH | ||
6507 | do | ||
6508 | IFS=$as_save_IFS | ||
6509 | test -z "$as_dir" && as_dir=. | ||
6510 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6512 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6514 | break 2 | ||
6515 | fi | ||
6516 | done | ||
6517 | done | ||
6518 | IFS=$as_save_IFS | ||
6519 | |||
6520 | ;; | ||
6521 | esac | ||
6522 | fi | ||
6523 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6524 | if test -n "$PKG_CONFIG"; then | ||
6525 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6526 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6527 | else | ||
6528 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6529 | echo "${ECHO_T}no" >&6; } | ||
6530 | fi | ||
6531 | |||
6532 | |||
6533 | fi | ||
6534 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
6535 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
6536 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6537 | set dummy pkg-config; ac_word=$2 | ||
6538 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6540 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | ||
6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6542 | else | ||
6543 | case $ac_pt_PKG_CONFIG in | ||
6544 | [\\/]* | ?:[\\/]*) | ||
6545 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
6546 | ;; | ||
6547 | *) | ||
6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6549 | for as_dir in $PATH | ||
6550 | do | ||
6551 | IFS=$as_save_IFS | ||
6552 | test -z "$as_dir" && as_dir=. | ||
6553 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6555 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6557 | break 2 | ||
6558 | fi | ||
6559 | done | ||
6560 | done | ||
6561 | IFS=$as_save_IFS | ||
6562 | |||
6563 | ;; | ||
6564 | esac | ||
6565 | fi | ||
6566 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
6567 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
6568 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | ||
6569 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | ||
6570 | else | ||
6571 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6572 | echo "${ECHO_T}no" >&6; } | ||
6573 | fi | ||
6574 | |||
6575 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
6576 | PKG_CONFIG="" | ||
6577 | else | ||
6578 | case $cross_compiling:$ac_tool_warned in | ||
6579 | yes:) | ||
6580 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6581 | whose name does not start with the host triplet. If you think this | ||
6582 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6583 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6584 | whose name does not start with the host triplet. If you think this | ||
6585 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6586 | ac_tool_warned=yes ;; | ||
6587 | esac | ||
6588 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
6589 | fi | ||
6590 | else | ||
6591 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
6592 | fi | ||
6593 | |||
6594 | fi | ||
6595 | if test -n "$PKG_CONFIG"; then | ||
6596 | _pkg_min_version=0.9.0 | ||
6597 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
6598 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | ||
6599 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
6600 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6601 | echo "${ECHO_T}yes" >&6; } | ||
6602 | else | ||
6603 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6604 | echo "${ECHO_T}no" >&6; } | ||
6605 | PKG_CONFIG="" | ||
6606 | fi | ||
6607 | |||
6608 | fi | ||
6609 | |||
6610 | pkg_failed=no | ||
6611 | { echo "$as_me:$LINENO: checking for LIBGLADE" >&5 | ||
6612 | echo $ECHO_N "checking for LIBGLADE... $ECHO_C" >&6; } | ||
6613 | |||
6614 | if test -n "$PKG_CONFIG"; then | ||
6615 | if test -n "$PKG_CONFIG" && \ | ||
6616 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5 | ||
6617 | ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5 | ||
6618 | ac_status=$? | ||
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6620 | (exit $ac_status); }; then | ||
6621 | pkg_cv_LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.4.0" 2>/dev/null` | ||
6622 | else | ||
6623 | pkg_failed=yes | ||
6624 | fi | ||
6625 | else | ||
6626 | pkg_failed=untried | ||
6627 | fi | ||
6628 | if test -n "$PKG_CONFIG"; then | ||
6629 | if test -n "$PKG_CONFIG" && \ | ||
6630 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5 | ||
6631 | ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5 | ||
6632 | ac_status=$? | ||
6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6634 | (exit $ac_status); }; then | ||
6635 | pkg_cv_LIBGLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.4.0" 2>/dev/null` | ||
6636 | else | ||
6637 | pkg_failed=yes | ||
6638 | fi | ||
6639 | else | ||
6640 | pkg_failed=untried | ||
6641 | fi | ||
6642 | |||
6643 | if test $pkg_failed = yes; then | ||
6644 | LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 2.4.0"` | ||
6645 | # Put the nasty error message in config.log where it belongs | ||
6646 | echo "$LIBGLADE_PKG_ERRORS" 1>&5 | ||
6647 | |||
6648 | { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5 | ||
6649 | echo "$as_me: error: libglade >= 2.4.0 is required" >&2;} | ||
6650 | { (exit 1); exit 1; }; } | ||
6651 | elif test $pkg_failed = untried; then | ||
6652 | { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5 | ||
6653 | echo "$as_me: error: libglade >= 2.4.0 is required" >&2;} | ||
6654 | { (exit 1); exit 1; }; } | ||
6655 | else | ||
6656 | LIBGLADE_CFLAGS=$pkg_cv_LIBGLADE_CFLAGS | ||
6657 | LIBGLADE_LIBS=$pkg_cv_LIBGLADE_LIBS | ||
6658 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6659 | echo "${ECHO_T}yes" >&6; } | ||
6660 | : | ||
6661 | fi | ||
6662 | |||
6663 | # gtkglext | ||
6664 | no_gtkglext="" | ||
6665 | GTKGLEXT_CFLAGS="" | ||
6666 | GTKGLEXT_LIBS="" | ||
6667 | |||
6668 | # GtkGLExt pkg-config module | ||
6669 | gtkglext_module=gtkglext-1.0 | ||
6670 | |||
6671 | # minimum GtkGLExt version | ||
6672 | gtkglext_min_version=1.0.0 | ||
6673 | |||
6674 | # minimum pkg-config version | ||
6675 | pkgconfig_min_version=0.7 | ||
6676 | |||
6677 | # Check whether --enable-gtkglext-test was given. | ||
6678 | if test "${enable_gtkglext_test+set}" = set; then | ||
6679 | enableval=$enable_gtkglext_test; | ||
6680 | else | ||
6681 | enable_gtkglext_test=yes | ||
6682 | fi | ||
6683 | |||
6684 | |||
6685 | pkg_config_modules=$gtkglext_module | ||
6686 | |||
6687 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
6688 | set dummy pkg-config; ac_word=$2 | ||
6689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6691 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6693 | else | ||
6694 | case $PKG_CONFIG in | ||
6695 | [\\/]* | ?:[\\/]*) | ||
6696 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
6697 | ;; | ||
6698 | *) | ||
6699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6700 | for as_dir in $PATH | ||
6701 | do | ||
6702 | IFS=$as_save_IFS | ||
6703 | test -z "$as_dir" && as_dir=. | ||
6704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6706 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
6707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6708 | break 2 | ||
6709 | fi | ||
6710 | done | ||
6711 | done | ||
6712 | IFS=$as_save_IFS | ||
6713 | |||
6714 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
6715 | ;; | ||
6716 | esac | ||
6717 | fi | ||
6718 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
6719 | if test -n "$PKG_CONFIG"; then | ||
6720 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
6721 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
6722 | else | ||
6723 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6724 | echo "${ECHO_T}no" >&6; } | ||
6725 | fi | ||
6726 | |||
6727 | |||
6728 | |||
6729 | if test x$PKG_CONFIG != xno ; then | ||
6730 | if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then | ||
6731 | : | ||
6732 | else | ||
6733 | echo "" | ||
6734 | echo "*** pkg-config too old; version $pkgconfig_min_version or better required." | ||
6735 | no_gtkglext=yes | ||
6736 | PKG_CONFIG=no | ||
6737 | fi | ||
6738 | else | ||
6739 | no_gtkglext=yes | ||
6740 | fi | ||
6741 | |||
6742 | { echo "$as_me:$LINENO: checking for GtkGLExt - version >= $gtkglext_min_version" >&5 | ||
6743 | echo $ECHO_N "checking for GtkGLExt - version >= $gtkglext_min_version... $ECHO_C" >&6; } | ||
6744 | |||
6745 | if test x$PKG_CONFIG != xno ; then | ||
6746 | ## don't try to run the test against uninstalled libtool libs | ||
6747 | if $PKG_CONFIG --uninstalled $pkg_config_modules; then | ||
6748 | echo "" | ||
6749 | echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" | ||
6750 | enable_gtkglext_test=no | ||
6751 | fi | ||
6752 | |||
6753 | if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then | ||
6754 | : | ||
6755 | else | ||
6756 | echo "" | ||
6757 | echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" | ||
6758 | echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" | ||
6759 | echo "*** configuration files." | ||
6760 | no_gtkglext=yes | ||
6761 | enable_gtkglext_test=no | ||
6762 | fi | ||
6763 | fi | ||
6764 | |||
6765 | if test x"$no_gtkglext" = x ; then | ||
6766 | GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` | ||
6767 | GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` | ||
6768 | gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6769 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
6770 | gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6771 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
6772 | gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ | ||
6773 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
6774 | if test "x$enable_gtkglext_test" = "xyes" ; then | ||
6775 | ac_save_CFLAGS="$CFLAGS" | ||
6776 | ac_save_LIBS="$LIBS" | ||
6777 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
6778 | LIBS="$GTKGLEXT_LIBS $LIBS" | ||
6779 | rm -f conf.gtkgltest | ||
6780 | if test "$cross_compiling" = yes; then | ||
6781 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
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 | |||
6790 | #include <gtk/gtk.h> | ||
6791 | #include <gtk/gtkgl.h> | ||
6792 | #include <stdio.h> | ||
6793 | #include <stdlib.h> | ||
6794 | |||
6795 | int | ||
6796 | main () | ||
6797 | { | ||
6798 | int major, minor, micro; | ||
6799 | char *tmp_version; | ||
6800 | |||
6801 | system ("touch conf.gtkgltest"); | ||
6802 | |||
6803 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
6804 | tmp_version = g_strdup ("$gtkglext_min_version"); | ||
6805 | if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) | ||
6806 | { | ||
6807 | printf ("%s, bad version string\n", "$gtkglext_min_version"); | ||
6808 | exit (1); | ||
6809 | } | ||
6810 | |||
6811 | if ((gtkglext_major_version != $gtkglext_config_major_version) || | ||
6812 | (gtkglext_minor_version != $gtkglext_config_minor_version) || | ||
6813 | (gtkglext_micro_version != $gtkglext_config_micro_version)) | ||
6814 | { | ||
6815 | printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", | ||
6816 | $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); | ||
6817 | printf ("*** library %d.%d.%d was found!\n", | ||
6818 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6819 | printf ("***\n"); | ||
6820 | printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); | ||
6821 | printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); | ||
6822 | printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); | ||
6823 | printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); | ||
6824 | printf ("***\n"); | ||
6825 | printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
6826 | printf ("*** to point to the correct configuration files.\n"); | ||
6827 | } | ||
6828 | else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || | ||
6829 | (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || | ||
6830 | (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) | ||
6831 | { | ||
6832 | printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", | ||
6833 | GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, | ||
6834 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6835 | } | ||
6836 | else | ||
6837 | { | ||
6838 | if ((gtkglext_major_version > major) || | ||
6839 | ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || | ||
6840 | ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) | ||
6841 | { | ||
6842 | return 0; | ||
6843 | } | ||
6844 | else | ||
6845 | { | ||
6846 | printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", | ||
6847 | gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); | ||
6848 | printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", | ||
6849 | major, minor, micro); | ||
6850 | printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); | ||
6851 | printf ("***\n"); | ||
6852 | printf ("*** If you have already installed a sufficiently new version, this error\n"); | ||
6853 | printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
6854 | printf ("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
6855 | printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); | ||
6856 | printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); | ||
6857 | printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
6858 | printf ("*** so that the correct libraries are found at run-time)\n"); | ||
6859 | } | ||
6860 | } | ||
6861 | return 1; | ||
6862 | } | ||
6863 | |||
6864 | _ACEOF | ||
6865 | rm -f conftest$ac_exeext | ||
6866 | if { (ac_try="$ac_link" | ||
6867 | case "(($ac_try" in | ||
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6869 | *) ac_try_echo=$ac_try;; | ||
6870 | esac | ||
6871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6872 | (eval "$ac_link") 2>&5 | ||
6873 | ac_status=$? | ||
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6876 | { (case "(($ac_try" in | ||
6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6878 | *) ac_try_echo=$ac_try;; | ||
6879 | esac | ||
6880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6881 | (eval "$ac_try") 2>&5 | ||
6882 | ac_status=$? | ||
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6884 | (exit $ac_status); }; }; then | ||
6885 | : | ||
6886 | else | ||
6887 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6888 | echo "$as_me: failed program was:" >&5 | ||
6889 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6890 | |||
6891 | ( exit $ac_status ) | ||
6892 | no_gtkglext=yes | ||
6893 | fi | ||
6894 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6895 | fi | ||
6896 | |||
6897 | |||
6898 | CFLAGS="$ac_save_CFLAGS" | ||
6899 | LIBS="$ac_save_LIBS" | ||
6900 | fi | ||
6901 | fi | ||
6902 | if test "x$no_gtkglext" = x ; then | ||
6903 | { echo "$as_me:$LINENO: result: yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&5 | ||
6904 | echo "${ECHO_T}yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&6; } | ||
6905 | : | ||
6906 | else | ||
6907 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6908 | echo "${ECHO_T}no" >&6; } | ||
6909 | if test "$PKG_CONFIG" = "no" ; then | ||
6910 | echo "*** A new enough version of pkg-config was not found." | ||
6911 | echo "*** See http://www.freedesktop.org/software/pkgconfig/." | ||
6912 | elif test "x$enable_gtkglext_test" = "xyes" ; then | ||
6913 | if test -f conf.gtkgltest ; then | ||
6914 | : | ||
6915 | else | ||
6916 | echo "*** Could not run GtkGLExt test program, checking why..." | ||
6917 | ac_save_CFLAGS="$CFLAGS" | ||
6918 | ac_save_LIBS="$LIBS" | ||
6919 | CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" | ||
6920 | LIBS="$LIBS $GTKGLEXT_LIBS" | ||
6921 | cat >conftest.$ac_ext <<_ACEOF | ||
6922 | /* confdefs.h. */ | ||
6923 | _ACEOF | ||
6924 | cat confdefs.h >>conftest.$ac_ext | ||
6925 | cat >>conftest.$ac_ext <<_ACEOF | ||
6926 | /* end confdefs.h. */ | ||
6927 | |||
6928 | #include <gtk/gtk.h> | ||
6929 | #include <gtk/gtkgl.h> | ||
6930 | #include <stdio.h> | ||
6931 | |||
6932 | int | ||
6933 | main () | ||
6934 | { | ||
6935 | return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); | ||
6936 | ; | ||
6937 | return 0; | ||
6938 | } | ||
6939 | _ACEOF | ||
6940 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6941 | if { (ac_try="$ac_link" | ||
6942 | case "(($ac_try" in | ||
6943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6944 | *) ac_try_echo=$ac_try;; | ||
6945 | esac | ||
6946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6947 | (eval "$ac_link") 2>conftest.er1 | ||
6948 | ac_status=$? | ||
6949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6950 | rm -f conftest.er1 | ||
6951 | cat conftest.err >&5 | ||
6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6953 | (exit $ac_status); } && | ||
6954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
6955 | { (case "(($ac_try" in | ||
6956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6957 | *) ac_try_echo=$ac_try;; | ||
6958 | esac | ||
6959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6960 | (eval "$ac_try") 2>&5 | ||
6961 | ac_status=$? | ||
6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6963 | (exit $ac_status); }; } && | ||
6964 | { ac_try='test -s conftest$ac_exeext' | ||
6965 | { (case "(($ac_try" in | ||
6966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6967 | *) ac_try_echo=$ac_try;; | ||
6968 | esac | ||
6969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6970 | (eval "$ac_try") 2>&5 | ||
6971 | ac_status=$? | ||
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6973 | (exit $ac_status); }; }; then | ||
6974 | echo "*** The test program compiled, but did not run. This usually means" | ||
6975 | echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" | ||
6976 | echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" | ||
6977 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
6978 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
6979 | echo "*** is required on your system" | ||
6980 | echo "***" | ||
6981 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
6982 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
6983 | else | ||
6984 | echo "$as_me: failed program was:" >&5 | ||
6985 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6986 | |||
6987 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
6988 | echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed." | ||
6989 | fi | ||
6990 | |||
6991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6992 | conftest$ac_exeext conftest.$ac_ext | ||
6993 | CFLAGS="$ac_save_CFLAGS" | ||
6994 | LIBS="$ac_save_LIBS" | ||
6995 | fi | ||
6996 | fi | ||
6997 | GTKGLEXT_CFLAGS="" | ||
6998 | GTKGLEXT_LIBS="" | ||
6999 | { { echo "$as_me:$LINENO: error: GtkGlExt >= 1.0.0 is required" >&5 | ||
7000 | echo "$as_me: error: GtkGlExt >= 1.0.0 is required" >&2;} | ||
7001 | { (exit 1); exit 1; }; } | ||
7002 | fi | ||
7003 | |||
7004 | |||
7005 | rm -f conf.gtkgltest | ||
7006 | |||
7007 | |||
7008 | # libg3d | ||
7009 | |||
7010 | pkg_failed=no | ||
7011 | { echo "$as_me:$LINENO: checking for LIBG3D" >&5 | ||
7012 | echo $ECHO_N "checking for LIBG3D... $ECHO_C" >&6; } | ||
7013 | |||
7014 | if test -n "$PKG_CONFIG"; then | ||
7015 | if test -n "$PKG_CONFIG" && \ | ||
7016 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5 | ||
7017 | ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5 | ||
7018 | ac_status=$? | ||
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7020 | (exit $ac_status); }; then | ||
7021 | pkg_cv_LIBG3D_CFLAGS=`$PKG_CONFIG --cflags "libg3d >= 0.0.5" 2>/dev/null` | ||
7022 | else | ||
7023 | pkg_failed=yes | ||
7024 | fi | ||
7025 | else | ||
7026 | pkg_failed=untried | ||
7027 | fi | ||
7028 | if test -n "$PKG_CONFIG"; then | ||
7029 | if test -n "$PKG_CONFIG" && \ | ||
7030 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5 | ||
7031 | ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5 | ||
7032 | ac_status=$? | ||
7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7034 | (exit $ac_status); }; then | ||
7035 | pkg_cv_LIBG3D_LIBS=`$PKG_CONFIG --libs "libg3d >= 0.0.5" 2>/dev/null` | ||
7036 | else | ||
7037 | pkg_failed=yes | ||
7038 | fi | ||
7039 | else | ||
7040 | pkg_failed=untried | ||
7041 | fi | ||
7042 | |||
7043 | if test $pkg_failed = yes; then | ||
7044 | LIBG3D_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libg3d >= 0.0.5"` | ||
7045 | # Put the nasty error message in config.log where it belongs | ||
7046 | echo "$LIBG3D_PKG_ERRORS" 1>&5 | ||
7047 | |||
7048 | { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5 | ||
7049 | echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;} | ||
7050 | { (exit 1); exit 1; }; } | ||
7051 | elif test $pkg_failed = untried; then | ||
7052 | { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5 | ||
7053 | echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;} | ||
7054 | { (exit 1); exit 1; }; } | ||
7055 | else | ||
7056 | LIBG3D_CFLAGS=$pkg_cv_LIBG3D_CFLAGS | ||
7057 | LIBG3D_LIBS=$pkg_cv_LIBG3D_LIBS | ||
7058 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7059 | echo "${ECHO_T}yes" >&6; } | ||
7060 | : | ||
7061 | fi | ||
7062 | |||
7063 | # Check OpenGL stuff | ||
7064 | { echo "$as_me:$LINENO: checking for X" >&5 | ||
7065 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | ||
7066 | |||
7067 | |||
7068 | # Check whether --with-x was given. | ||
7069 | if test "${with_x+set}" = set; then | ||
7070 | withval=$with_x; | ||
7071 | fi | ||
7072 | |||
7073 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
7074 | if test "x$with_x" = xno; then | ||
7075 | # The user explicitly disabled X. | ||
7076 | have_x=disabled | ||
7077 | else | ||
7078 | case $x_includes,$x_libraries in #( | ||
7079 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | ||
7080 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | ||
7081 | { (exit 1); exit 1; }; };; #( | ||
7082 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | ||
7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7084 | else | ||
7085 | # One or both of the vars are not set, and there is no cached value. | ||
7086 | ac_x_includes=no ac_x_libraries=no | ||
7087 | rm -f -r conftest.dir | ||
7088 | if mkdir conftest.dir; then | ||
7089 | cd conftest.dir | ||
7090 | cat >Imakefile <<'_ACEOF' | ||
7091 | incroot: | ||
7092 | @echo incroot='${INCROOT}' | ||
7093 | usrlibdir: | ||
7094 | @echo usrlibdir='${USRLIBDIR}' | ||
7095 | libdir: | ||
7096 | @echo libdir='${LIBDIR}' | ||
7097 | _ACEOF | ||
7098 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
7099 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
7100 | for ac_var in incroot usrlibdir libdir; do | ||
7101 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
7102 | done | ||
7103 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
7104 | for ac_extension in a so sl; do | ||
7105 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
7106 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
7107 | ac_im_usrlibdir=$ac_im_libdir; break | ||
7108 | fi | ||
7109 | done | ||
7110 | # Screen out bogus values from the imake configuration. They are | ||
7111 | # bogus both because they are the default anyway, and because | ||
7112 | # using them would break gcc on systems where it needs fixed includes. | ||
7113 | case $ac_im_incroot in | ||
7114 | /usr/include) ac_x_includes= ;; | ||
7115 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
7116 | esac | ||
7117 | case $ac_im_usrlibdir in | ||
7118 | /usr/lib | /lib) ;; | ||
7119 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
7120 | esac | ||
7121 | fi | ||
7122 | cd .. | ||
7123 | rm -f -r conftest.dir | ||
7124 | fi | ||
7125 | |||
7126 | # Standard set of common directories for X headers. | ||
7127 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
7128 | ac_x_header_dirs=' | ||
7129 | /usr/X11/include | ||
7130 | /usr/X11R6/include | ||
7131 | /usr/X11R5/include | ||
7132 | /usr/X11R4/include | ||
7133 | |||
7134 | /usr/include/X11 | ||
7135 | /usr/include/X11R6 | ||
7136 | /usr/include/X11R5 | ||
7137 | /usr/include/X11R4 | ||
7138 | |||
7139 | /usr/local/X11/include | ||
7140 | /usr/local/X11R6/include | ||
7141 | /usr/local/X11R5/include | ||
7142 | /usr/local/X11R4/include | ||
7143 | |||
7144 | /usr/local/include/X11 | ||
7145 | /usr/local/include/X11R6 | ||
7146 | /usr/local/include/X11R5 | ||
7147 | /usr/local/include/X11R4 | ||
7148 | |||
7149 | /usr/X386/include | ||
7150 | /usr/x386/include | ||
7151 | /usr/XFree86/include/X11 | ||
7152 | |||
7153 | /usr/include | ||
7154 | /usr/local/include | ||
7155 | /usr/unsupported/include | ||
7156 | /usr/athena/include | ||
7157 | /usr/local/x11r5/include | ||
7158 | /usr/lpp/Xamples/include | ||
7159 | |||
7160 | /usr/openwin/include | ||
7161 | /usr/openwin/share/include' | ||
7162 | |||
7163 | if test "$ac_x_includes" = no; then | ||
7164 | # Guess where to find include files, by looking for Xlib.h. | ||
7165 | # First, try using that file with no special directory specified. | ||
7166 | cat >conftest.$ac_ext <<_ACEOF | ||
7167 | /* confdefs.h. */ | ||
7168 | _ACEOF | ||
7169 | cat confdefs.h >>conftest.$ac_ext | ||
7170 | cat >>conftest.$ac_ext <<_ACEOF | ||
7171 | /* end confdefs.h. */ | ||
7172 | #include <X11/Xlib.h> | ||
7173 | _ACEOF | ||
7174 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7175 | case "(($ac_try" in | ||
7176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7177 | *) ac_try_echo=$ac_try;; | ||
7178 | esac | ||
7179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7180 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7181 | ac_status=$? | ||
7182 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7183 | rm -f conftest.er1 | ||
7184 | cat conftest.err >&5 | ||
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7186 | (exit $ac_status); } >/dev/null; then | ||
7187 | if test -s conftest.err; then | ||
7188 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7190 | else | ||
7191 | ac_cpp_err= | ||
7192 | fi | ||
7193 | else | ||
7194 | ac_cpp_err=yes | ||
7195 | fi | ||
7196 | if test -z "$ac_cpp_err"; then | ||
7197 | # We can compile using X headers with no special include directory. | ||
7198 | ac_x_includes= | ||
7199 | else | ||
7200 | echo "$as_me: failed program was:" >&5 | ||
7201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7202 | |||
7203 | for ac_dir in $ac_x_header_dirs; do | ||
7204 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
7205 | ac_x_includes=$ac_dir | ||
7206 | break | ||
7207 | fi | ||
7208 | done | ||
7209 | fi | ||
7210 | |||
7211 | rm -f conftest.err conftest.$ac_ext | ||
7212 | fi # $ac_x_includes = no | ||
7213 | |||
7214 | if test "$ac_x_libraries" = no; then | ||
7215 | # Check for the libraries. | ||
7216 | # See if we find them without any special options. | ||
7217 | # Don't add to $LIBS permanently. | ||
7218 | ac_save_LIBS=$LIBS | ||
7219 | LIBS="-lX11 $LIBS" | ||
7220 | cat >conftest.$ac_ext <<_ACEOF | ||
7221 | /* confdefs.h. */ | ||
7222 | _ACEOF | ||
7223 | cat confdefs.h >>conftest.$ac_ext | ||
7224 | cat >>conftest.$ac_ext <<_ACEOF | ||
7225 | /* end confdefs.h. */ | ||
7226 | #include <X11/Xlib.h> | ||
7227 | int | ||
7228 | main () | ||
7229 | { | ||
7230 | XrmInitialize () | ||
7231 | ; | ||
7232 | return 0; | ||
7233 | } | ||
7234 | _ACEOF | ||
7235 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7236 | if { (ac_try="$ac_link" | ||
7237 | case "(($ac_try" in | ||
7238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7239 | *) ac_try_echo=$ac_try;; | ||
7240 | esac | ||
7241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7242 | (eval "$ac_link") 2>conftest.er1 | ||
7243 | ac_status=$? | ||
7244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7245 | rm -f conftest.er1 | ||
7246 | cat conftest.err >&5 | ||
7247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7248 | (exit $ac_status); } && | ||
7249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7250 | { (case "(($ac_try" in | ||
7251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7252 | *) ac_try_echo=$ac_try;; | ||
7253 | esac | ||
7254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7255 | (eval "$ac_try") 2>&5 | ||
7256 | ac_status=$? | ||
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7258 | (exit $ac_status); }; } && | ||
7259 | { ac_try='test -s conftest$ac_exeext' | ||
7260 | { (case "(($ac_try" in | ||
7261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7262 | *) ac_try_echo=$ac_try;; | ||
7263 | esac | ||
7264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7265 | (eval "$ac_try") 2>&5 | ||
7266 | ac_status=$? | ||
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7268 | (exit $ac_status); }; }; then | ||
7269 | LIBS=$ac_save_LIBS | ||
7270 | # We can link X programs with no special library path. | ||
7271 | ac_x_libraries= | ||
7272 | else | ||
7273 | echo "$as_me: failed program was:" >&5 | ||
7274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7275 | |||
7276 | LIBS=$ac_save_LIBS | ||
7277 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
7278 | do | ||
7279 | # Don't even attempt the hair of trying to link an X program! | ||
7280 | for ac_extension in a so sl; do | ||
7281 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
7282 | ac_x_libraries=$ac_dir | ||
7283 | break 2 | ||
7284 | fi | ||
7285 | done | ||
7286 | done | ||
7287 | fi | ||
7288 | |||
7289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7290 | conftest$ac_exeext conftest.$ac_ext | ||
7291 | fi # $ac_x_libraries = no | ||
7292 | |||
7293 | case $ac_x_includes,$ac_x_libraries in #( | ||
7294 | no,* | *,no | *\'*) | ||
7295 | # Didn't find X, or a directory has "'" in its name. | ||
7296 | ac_cv_have_x="have_x=no";; #( | ||
7297 | *) | ||
7298 | # Record where we found X for the cache. | ||
7299 | ac_cv_have_x="have_x=yes\ | ||
7300 | ac_x_includes='$ac_x_includes'\ | ||
7301 | ac_x_libraries='$ac_x_libraries'" | ||
7302 | esac | ||
7303 | fi | ||
7304 | ;; #( | ||
7305 | *) have_x=yes;; | ||
7306 | esac | ||
7307 | eval "$ac_cv_have_x" | ||
7308 | fi # $with_x != no | ||
7309 | |||
7310 | if test "$have_x" != yes; then | ||
7311 | { echo "$as_me:$LINENO: result: $have_x" >&5 | ||
7312 | echo "${ECHO_T}$have_x" >&6; } | ||
7313 | no_x=yes | ||
7314 | else | ||
7315 | # If each of the values was on the command line, it overrides each guess. | ||
7316 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
7317 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
7318 | # Update the cache value to reflect the command line values. | ||
7319 | ac_cv_have_x="have_x=yes\ | ||
7320 | ac_x_includes='$x_includes'\ | ||
7321 | ac_x_libraries='$x_libraries'" | ||
7322 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | ||
7323 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | ||
7324 | fi | ||
7325 | |||
7326 | if test "$no_x" = yes; then | ||
7327 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
7328 | |||
7329 | cat >>confdefs.h <<\_ACEOF | ||
7330 | #define X_DISPLAY_MISSING 1 | ||
7331 | _ACEOF | ||
7332 | |||
7333 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
7334 | else | ||
7335 | if test -n "$x_includes"; then | ||
7336 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
7337 | fi | ||
7338 | |||
7339 | # It would also be nice to do this for all -L options, not just this one. | ||
7340 | if test -n "$x_libraries"; then | ||
7341 | X_LIBS="$X_LIBS -L$x_libraries" | ||
7342 | # For Solaris; some versions of Sun CC require a space after -R and | ||
7343 | # others require no space. Words are not sufficient . . . . | ||
7344 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | ||
7345 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } | ||
7346 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
7347 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
7348 | ac_c_werror_flag=yes | ||
7349 | cat >conftest.$ac_ext <<_ACEOF | ||
7350 | /* confdefs.h. */ | ||
7351 | _ACEOF | ||
7352 | cat confdefs.h >>conftest.$ac_ext | ||
7353 | cat >>conftest.$ac_ext <<_ACEOF | ||
7354 | /* end confdefs.h. */ | ||
7355 | |||
7356 | int | ||
7357 | main () | ||
7358 | { | ||
7359 | |||
7360 | ; | ||
7361 | return 0; | ||
7362 | } | ||
7363 | _ACEOF | ||
7364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7365 | if { (ac_try="$ac_link" | ||
7366 | case "(($ac_try" in | ||
7367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7368 | *) ac_try_echo=$ac_try;; | ||
7369 | esac | ||
7370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7371 | (eval "$ac_link") 2>conftest.er1 | ||
7372 | ac_status=$? | ||
7373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7374 | rm -f conftest.er1 | ||
7375 | cat conftest.err >&5 | ||
7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7377 | (exit $ac_status); } && | ||
7378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7379 | { (case "(($ac_try" in | ||
7380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7381 | *) ac_try_echo=$ac_try;; | ||
7382 | esac | ||
7383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7384 | (eval "$ac_try") 2>&5 | ||
7385 | ac_status=$? | ||
7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7387 | (exit $ac_status); }; } && | ||
7388 | { ac_try='test -s conftest$ac_exeext' | ||
7389 | { (case "(($ac_try" in | ||
7390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7391 | *) ac_try_echo=$ac_try;; | ||
7392 | esac | ||
7393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7394 | (eval "$ac_try") 2>&5 | ||
7395 | ac_status=$? | ||
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7397 | (exit $ac_status); }; }; then | ||
7398 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7399 | echo "${ECHO_T}no" >&6; } | ||
7400 | X_LIBS="$X_LIBS -R$x_libraries" | ||
7401 | else | ||
7402 | echo "$as_me: failed program was:" >&5 | ||
7403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7404 | |||
7405 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
7406 | cat >conftest.$ac_ext <<_ACEOF | ||
7407 | /* confdefs.h. */ | ||
7408 | _ACEOF | ||
7409 | cat confdefs.h >>conftest.$ac_ext | ||
7410 | cat >>conftest.$ac_ext <<_ACEOF | ||
7411 | /* end confdefs.h. */ | ||
7412 | |||
7413 | int | ||
7414 | main () | ||
7415 | { | ||
7416 | |||
7417 | ; | ||
7418 | return 0; | ||
7419 | } | ||
7420 | _ACEOF | ||
7421 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7422 | if { (ac_try="$ac_link" | ||
7423 | case "(($ac_try" in | ||
7424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7425 | *) ac_try_echo=$ac_try;; | ||
7426 | esac | ||
7427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7428 | (eval "$ac_link") 2>conftest.er1 | ||
7429 | ac_status=$? | ||
7430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7431 | rm -f conftest.er1 | ||
7432 | cat conftest.err >&5 | ||
7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7434 | (exit $ac_status); } && | ||
7435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7436 | { (case "(($ac_try" in | ||
7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7438 | *) ac_try_echo=$ac_try;; | ||
7439 | esac | ||
7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7441 | (eval "$ac_try") 2>&5 | ||
7442 | ac_status=$? | ||
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7444 | (exit $ac_status); }; } && | ||
7445 | { ac_try='test -s conftest$ac_exeext' | ||
7446 | { (case "(($ac_try" in | ||
7447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7448 | *) ac_try_echo=$ac_try;; | ||
7449 | esac | ||
7450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7451 | (eval "$ac_try") 2>&5 | ||
7452 | ac_status=$? | ||
7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7454 | (exit $ac_status); }; }; then | ||
7455 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7456 | echo "${ECHO_T}yes" >&6; } | ||
7457 | X_LIBS="$X_LIBS -R $x_libraries" | ||
7458 | else | ||
7459 | echo "$as_me: failed program was:" >&5 | ||
7460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7461 | |||
7462 | { echo "$as_me:$LINENO: result: neither works" >&5 | ||
7463 | echo "${ECHO_T}neither works" >&6; } | ||
7464 | fi | ||
7465 | |||
7466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7467 | conftest$ac_exeext conftest.$ac_ext | ||
7468 | fi | ||
7469 | |||
7470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7471 | conftest$ac_exeext conftest.$ac_ext | ||
7472 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
7473 | LIBS=$ac_xsave_LIBS | ||
7474 | fi | ||
7475 | |||
7476 | # Check for system-dependent libraries X programs must link with. | ||
7477 | # Do this before checking for the system-independent R6 libraries | ||
7478 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
7479 | |||
7480 | if test "$ISC" = yes; then | ||
7481 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
7482 | else | ||
7483 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
7484 | # libraries were built with DECnet support. And Karl Berry says | ||
7485 | # the Alpha needs dnet_stub (dnet does not exist). | ||
7486 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
7487 | cat >conftest.$ac_ext <<_ACEOF | ||
7488 | /* confdefs.h. */ | ||
7489 | _ACEOF | ||
7490 | cat confdefs.h >>conftest.$ac_ext | ||
7491 | cat >>conftest.$ac_ext <<_ACEOF | ||
7492 | /* end confdefs.h. */ | ||
7493 | |||
7494 | /* Override any GCC internal prototype to avoid an error. | ||
7495 | Use char because int might match the return type of a GCC | ||
7496 | builtin and then its argument prototype would still apply. */ | ||
7497 | #ifdef __cplusplus | ||
7498 | extern "C" | ||
7499 | #endif | ||
7500 | char XOpenDisplay (); | ||
7501 | int | ||
7502 | main () | ||
7503 | { | ||
7504 | return XOpenDisplay (); | ||
7505 | ; | ||
7506 | return 0; | ||
7507 | } | ||
7508 | _ACEOF | ||
7509 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7510 | if { (ac_try="$ac_link" | ||
7511 | case "(($ac_try" in | ||
7512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7513 | *) ac_try_echo=$ac_try;; | ||
7514 | esac | ||
7515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7516 | (eval "$ac_link") 2>conftest.er1 | ||
7517 | ac_status=$? | ||
7518 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7519 | rm -f conftest.er1 | ||
7520 | cat conftest.err >&5 | ||
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7522 | (exit $ac_status); } && | ||
7523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7524 | { (case "(($ac_try" in | ||
7525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7526 | *) ac_try_echo=$ac_try;; | ||
7527 | esac | ||
7528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7529 | (eval "$ac_try") 2>&5 | ||
7530 | ac_status=$? | ||
7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7532 | (exit $ac_status); }; } && | ||
7533 | { ac_try='test -s conftest$ac_exeext' | ||
7534 | { (case "(($ac_try" in | ||
7535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7536 | *) ac_try_echo=$ac_try;; | ||
7537 | esac | ||
7538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7539 | (eval "$ac_try") 2>&5 | ||
7540 | ac_status=$? | ||
7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7542 | (exit $ac_status); }; }; then | ||
7543 | : | ||
7544 | else | ||
7545 | echo "$as_me: failed program was:" >&5 | ||
7546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7547 | |||
7548 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | ||
7549 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | ||
7550 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | ||
7551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7552 | else | ||
7553 | ac_check_lib_save_LIBS=$LIBS | ||
7554 | LIBS="-ldnet $LIBS" | ||
7555 | cat >conftest.$ac_ext <<_ACEOF | ||
7556 | /* confdefs.h. */ | ||
7557 | _ACEOF | ||
7558 | cat confdefs.h >>conftest.$ac_ext | ||
7559 | cat >>conftest.$ac_ext <<_ACEOF | ||
7560 | /* end confdefs.h. */ | ||
7561 | |||
7562 | /* Override any GCC internal prototype to avoid an error. | ||
7563 | Use char because int might match the return type of a GCC | ||
7564 | builtin and then its argument prototype would still apply. */ | ||
7565 | #ifdef __cplusplus | ||
7566 | extern "C" | ||
7567 | #endif | ||
7568 | char dnet_ntoa (); | ||
7569 | int | ||
7570 | main () | ||
7571 | { | ||
7572 | return dnet_ntoa (); | ||
7573 | ; | ||
7574 | return 0; | ||
7575 | } | ||
7576 | _ACEOF | ||
7577 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7578 | if { (ac_try="$ac_link" | ||
7579 | case "(($ac_try" in | ||
7580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7581 | *) ac_try_echo=$ac_try;; | ||
7582 | esac | ||
7583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7584 | (eval "$ac_link") 2>conftest.er1 | ||
7585 | ac_status=$? | ||
7586 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7587 | rm -f conftest.er1 | ||
7588 | cat conftest.err >&5 | ||
7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7590 | (exit $ac_status); } && | ||
7591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7592 | { (case "(($ac_try" in | ||
7593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7594 | *) ac_try_echo=$ac_try;; | ||
7595 | esac | ||
7596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7597 | (eval "$ac_try") 2>&5 | ||
7598 | ac_status=$? | ||
7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7600 | (exit $ac_status); }; } && | ||
7601 | { ac_try='test -s conftest$ac_exeext' | ||
7602 | { (case "(($ac_try" in | ||
7603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7604 | *) ac_try_echo=$ac_try;; | ||
7605 | esac | ||
7606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7607 | (eval "$ac_try") 2>&5 | ||
7608 | ac_status=$? | ||
7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7610 | (exit $ac_status); }; }; then | ||
7611 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
7612 | else | ||
7613 | echo "$as_me: failed program was:" >&5 | ||
7614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7615 | |||
7616 | ac_cv_lib_dnet_dnet_ntoa=no | ||
7617 | fi | ||
7618 | |||
7619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7620 | conftest$ac_exeext conftest.$ac_ext | ||
7621 | LIBS=$ac_check_lib_save_LIBS | ||
7622 | fi | ||
7623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
7624 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
7625 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | ||
7626 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
7627 | fi | ||
7628 | |||
7629 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
7630 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
7631 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | ||
7632 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | ||
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7634 | else | ||
7635 | ac_check_lib_save_LIBS=$LIBS | ||
7636 | LIBS="-ldnet_stub $LIBS" | ||
7637 | cat >conftest.$ac_ext <<_ACEOF | ||
7638 | /* confdefs.h. */ | ||
7639 | _ACEOF | ||
7640 | cat confdefs.h >>conftest.$ac_ext | ||
7641 | cat >>conftest.$ac_ext <<_ACEOF | ||
7642 | /* end confdefs.h. */ | ||
7643 | |||
7644 | /* Override any GCC internal prototype to avoid an error. | ||
7645 | Use char because int might match the return type of a GCC | ||
7646 | builtin and then its argument prototype would still apply. */ | ||
7647 | #ifdef __cplusplus | ||
7648 | extern "C" | ||
7649 | #endif | ||
7650 | char dnet_ntoa (); | ||
7651 | int | ||
7652 | main () | ||
7653 | { | ||
7654 | return dnet_ntoa (); | ||
7655 | ; | ||
7656 | return 0; | ||
7657 | } | ||
7658 | _ACEOF | ||
7659 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7660 | if { (ac_try="$ac_link" | ||
7661 | case "(($ac_try" in | ||
7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7663 | *) ac_try_echo=$ac_try;; | ||
7664 | esac | ||
7665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7666 | (eval "$ac_link") 2>conftest.er1 | ||
7667 | ac_status=$? | ||
7668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7669 | rm -f conftest.er1 | ||
7670 | cat conftest.err >&5 | ||
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7672 | (exit $ac_status); } && | ||
7673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7674 | { (case "(($ac_try" in | ||
7675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7676 | *) ac_try_echo=$ac_try;; | ||
7677 | esac | ||
7678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7679 | (eval "$ac_try") 2>&5 | ||
7680 | ac_status=$? | ||
7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7682 | (exit $ac_status); }; } && | ||
7683 | { ac_try='test -s conftest$ac_exeext' | ||
7684 | { (case "(($ac_try" in | ||
7685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7686 | *) ac_try_echo=$ac_try;; | ||
7687 | esac | ||
7688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7689 | (eval "$ac_try") 2>&5 | ||
7690 | ac_status=$? | ||
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7692 | (exit $ac_status); }; }; then | ||
7693 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
7694 | else | ||
7695 | echo "$as_me: failed program was:" >&5 | ||
7696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7697 | |||
7698 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
7699 | fi | ||
7700 | |||
7701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7702 | conftest$ac_exeext conftest.$ac_ext | ||
7703 | LIBS=$ac_check_lib_save_LIBS | ||
7704 | fi | ||
7705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
7706 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
7707 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | ||
7708 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
7709 | fi | ||
7710 | |||
7711 | fi | ||
7712 | fi | ||
7713 | |||
7714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7715 | conftest$ac_exeext conftest.$ac_ext | ||
7716 | LIBS="$ac_xsave_LIBS" | ||
7717 | |||
7718 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
7719 | # to get the SysV transport functions. | ||
7720 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
7721 | # needs -lnsl. | ||
7722 | # The nsl library prevents programs from opening the X display | ||
7723 | # on Irix 5.2, according to T.E. Dickey. | ||
7724 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
7725 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
7726 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 | ||
7727 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | ||
7728 | if test "${ac_cv_func_gethostbyname+set}" = set; then | ||
7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7730 | else | ||
7731 | cat >conftest.$ac_ext <<_ACEOF | ||
7732 | /* confdefs.h. */ | ||
7733 | _ACEOF | ||
7734 | cat confdefs.h >>conftest.$ac_ext | ||
7735 | cat >>conftest.$ac_ext <<_ACEOF | ||
7736 | /* end confdefs.h. */ | ||
7737 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | ||
7738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7739 | #define gethostbyname innocuous_gethostbyname | ||
7740 | |||
7741 | /* System header to define __stub macros and hopefully few prototypes, | ||
7742 | which can conflict with char gethostbyname (); below. | ||
7743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7744 | <limits.h> exists even on freestanding compilers. */ | ||
7745 | |||
7746 | #ifdef __STDC__ | ||
7747 | # include <limits.h> | ||
7748 | #else | ||
7749 | # include <assert.h> | ||
7750 | #endif | ||
7751 | |||
7752 | #undef gethostbyname | ||
7753 | |||
7754 | /* Override any GCC internal prototype to avoid an error. | ||
7755 | Use char because int might match the return type of a GCC | ||
7756 | builtin and then its argument prototype would still apply. */ | ||
7757 | #ifdef __cplusplus | ||
7758 | extern "C" | ||
7759 | #endif | ||
7760 | char gethostbyname (); | ||
7761 | /* The GNU C library defines this for functions which it implements | ||
7762 | to always fail with ENOSYS. Some functions are actually named | ||
7763 | something starting with __ and the normal name is an alias. */ | ||
7764 | #if defined __stub_gethostbyname || defined __stub___gethostbyname | ||
7765 | choke me | ||
7766 | #endif | ||
7767 | |||
7768 | int | ||
7769 | main () | ||
7770 | { | ||
7771 | return gethostbyname (); | ||
7772 | ; | ||
7773 | return 0; | ||
7774 | } | ||
7775 | _ACEOF | ||
7776 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7777 | if { (ac_try="$ac_link" | ||
7778 | case "(($ac_try" in | ||
7779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7780 | *) ac_try_echo=$ac_try;; | ||
7781 | esac | ||
7782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7783 | (eval "$ac_link") 2>conftest.er1 | ||
7784 | ac_status=$? | ||
7785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7786 | rm -f conftest.er1 | ||
7787 | cat conftest.err >&5 | ||
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7789 | (exit $ac_status); } && | ||
7790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7791 | { (case "(($ac_try" in | ||
7792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7793 | *) ac_try_echo=$ac_try;; | ||
7794 | esac | ||
7795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7796 | (eval "$ac_try") 2>&5 | ||
7797 | ac_status=$? | ||
7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7799 | (exit $ac_status); }; } && | ||
7800 | { ac_try='test -s conftest$ac_exeext' | ||
7801 | { (case "(($ac_try" in | ||
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7803 | *) ac_try_echo=$ac_try;; | ||
7804 | esac | ||
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7806 | (eval "$ac_try") 2>&5 | ||
7807 | ac_status=$? | ||
7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7809 | (exit $ac_status); }; }; then | ||
7810 | ac_cv_func_gethostbyname=yes | ||
7811 | else | ||
7812 | echo "$as_me: failed program was:" >&5 | ||
7813 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7814 | |||
7815 | ac_cv_func_gethostbyname=no | ||
7816 | fi | ||
7817 | |||
7818 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7819 | conftest$ac_exeext conftest.$ac_ext | ||
7820 | fi | ||
7821 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | ||
7822 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | ||
7823 | |||
7824 | if test $ac_cv_func_gethostbyname = no; then | ||
7825 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | ||
7826 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | ||
7827 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | ||
7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7829 | else | ||
7830 | ac_check_lib_save_LIBS=$LIBS | ||
7831 | LIBS="-lnsl $LIBS" | ||
7832 | cat >conftest.$ac_ext <<_ACEOF | ||
7833 | /* confdefs.h. */ | ||
7834 | _ACEOF | ||
7835 | cat confdefs.h >>conftest.$ac_ext | ||
7836 | cat >>conftest.$ac_ext <<_ACEOF | ||
7837 | /* end confdefs.h. */ | ||
7838 | |||
7839 | /* Override any GCC internal prototype to avoid an error. | ||
7840 | Use char because int might match the return type of a GCC | ||
7841 | builtin and then its argument prototype would still apply. */ | ||
7842 | #ifdef __cplusplus | ||
7843 | extern "C" | ||
7844 | #endif | ||
7845 | char gethostbyname (); | ||
7846 | int | ||
7847 | main () | ||
7848 | { | ||
7849 | return gethostbyname (); | ||
7850 | ; | ||
7851 | return 0; | ||
7852 | } | ||
7853 | _ACEOF | ||
7854 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7855 | if { (ac_try="$ac_link" | ||
7856 | case "(($ac_try" in | ||
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7858 | *) ac_try_echo=$ac_try;; | ||
7859 | esac | ||
7860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7861 | (eval "$ac_link") 2>conftest.er1 | ||
7862 | ac_status=$? | ||
7863 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7864 | rm -f conftest.er1 | ||
7865 | cat conftest.err >&5 | ||
7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7867 | (exit $ac_status); } && | ||
7868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7869 | { (case "(($ac_try" in | ||
7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7871 | *) ac_try_echo=$ac_try;; | ||
7872 | esac | ||
7873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7874 | (eval "$ac_try") 2>&5 | ||
7875 | ac_status=$? | ||
7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7877 | (exit $ac_status); }; } && | ||
7878 | { ac_try='test -s conftest$ac_exeext' | ||
7879 | { (case "(($ac_try" in | ||
7880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7881 | *) ac_try_echo=$ac_try;; | ||
7882 | esac | ||
7883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7884 | (eval "$ac_try") 2>&5 | ||
7885 | ac_status=$? | ||
7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7887 | (exit $ac_status); }; }; then | ||
7888 | ac_cv_lib_nsl_gethostbyname=yes | ||
7889 | else | ||
7890 | echo "$as_me: failed program was:" >&5 | ||
7891 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7892 | |||
7893 | ac_cv_lib_nsl_gethostbyname=no | ||
7894 | fi | ||
7895 | |||
7896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7897 | conftest$ac_exeext conftest.$ac_ext | ||
7898 | LIBS=$ac_check_lib_save_LIBS | ||
7899 | fi | ||
7900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
7901 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
7902 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | ||
7903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
7904 | fi | ||
7905 | |||
7906 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
7907 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | ||
7908 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | ||
7909 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | ||
7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7911 | else | ||
7912 | ac_check_lib_save_LIBS=$LIBS | ||
7913 | LIBS="-lbsd $LIBS" | ||
7914 | cat >conftest.$ac_ext <<_ACEOF | ||
7915 | /* confdefs.h. */ | ||
7916 | _ACEOF | ||
7917 | cat confdefs.h >>conftest.$ac_ext | ||
7918 | cat >>conftest.$ac_ext <<_ACEOF | ||
7919 | /* end confdefs.h. */ | ||
7920 | |||
7921 | /* Override any GCC internal prototype to avoid an error. | ||
7922 | Use char because int might match the return type of a GCC | ||
7923 | builtin and then its argument prototype would still apply. */ | ||
7924 | #ifdef __cplusplus | ||
7925 | extern "C" | ||
7926 | #endif | ||
7927 | char gethostbyname (); | ||
7928 | int | ||
7929 | main () | ||
7930 | { | ||
7931 | return gethostbyname (); | ||
7932 | ; | ||
7933 | return 0; | ||
7934 | } | ||
7935 | _ACEOF | ||
7936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7937 | if { (ac_try="$ac_link" | ||
7938 | case "(($ac_try" in | ||
7939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7940 | *) ac_try_echo=$ac_try;; | ||
7941 | esac | ||
7942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7943 | (eval "$ac_link") 2>conftest.er1 | ||
7944 | ac_status=$? | ||
7945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7946 | rm -f conftest.er1 | ||
7947 | cat conftest.err >&5 | ||
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7949 | (exit $ac_status); } && | ||
7950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7951 | { (case "(($ac_try" in | ||
7952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7953 | *) ac_try_echo=$ac_try;; | ||
7954 | esac | ||
7955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7956 | (eval "$ac_try") 2>&5 | ||
7957 | ac_status=$? | ||
7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7959 | (exit $ac_status); }; } && | ||
7960 | { ac_try='test -s conftest$ac_exeext' | ||
7961 | { (case "(($ac_try" in | ||
7962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7963 | *) ac_try_echo=$ac_try;; | ||
7964 | esac | ||
7965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7966 | (eval "$ac_try") 2>&5 | ||
7967 | ac_status=$? | ||
7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7969 | (exit $ac_status); }; }; then | ||
7970 | ac_cv_lib_bsd_gethostbyname=yes | ||
7971 | else | ||
7972 | echo "$as_me: failed program was:" >&5 | ||
7973 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7974 | |||
7975 | ac_cv_lib_bsd_gethostbyname=no | ||
7976 | fi | ||
7977 | |||
7978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7979 | conftest$ac_exeext conftest.$ac_ext | ||
7980 | LIBS=$ac_check_lib_save_LIBS | ||
7981 | fi | ||
7982 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
7983 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
7984 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | ||
7985 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
7986 | fi | ||
7987 | |||
7988 | fi | ||
7989 | fi | ||
7990 | |||
7991 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
7992 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
7993 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
7994 | # on later versions), says Simon Leinen: it contains gethostby* | ||
7995 | # variants that don't use the name server (or something). -lsocket | ||
7996 | # must be given before -lnsl if both are needed. We assume that | ||
7997 | # if connect needs -lnsl, so does gethostbyname. | ||
7998 | { echo "$as_me:$LINENO: checking for connect" >&5 | ||
7999 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | ||
8000 | if test "${ac_cv_func_connect+set}" = set; then | ||
8001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8002 | else | ||
8003 | cat >conftest.$ac_ext <<_ACEOF | ||
8004 | /* confdefs.h. */ | ||
8005 | _ACEOF | ||
8006 | cat confdefs.h >>conftest.$ac_ext | ||
8007 | cat >>conftest.$ac_ext <<_ACEOF | ||
8008 | /* end confdefs.h. */ | ||
8009 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | ||
8010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8011 | #define connect innocuous_connect | ||
8012 | |||
8013 | /* System header to define __stub macros and hopefully few prototypes, | ||
8014 | which can conflict with char connect (); below. | ||
8015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8016 | <limits.h> exists even on freestanding compilers. */ | ||
8017 | |||
8018 | #ifdef __STDC__ | ||
8019 | # include <limits.h> | ||
8020 | #else | ||
8021 | # include <assert.h> | ||
8022 | #endif | ||
8023 | |||
8024 | #undef connect | ||
8025 | |||
8026 | /* Override any GCC internal prototype to avoid an error. | ||
8027 | Use char because int might match the return type of a GCC | ||
8028 | builtin and then its argument prototype would still apply. */ | ||
8029 | #ifdef __cplusplus | ||
8030 | extern "C" | ||
8031 | #endif | ||
8032 | char connect (); | ||
8033 | /* The GNU C library defines this for functions which it implements | ||
8034 | to always fail with ENOSYS. Some functions are actually named | ||
8035 | something starting with __ and the normal name is an alias. */ | ||
8036 | #if defined __stub_connect || defined __stub___connect | ||
8037 | choke me | ||
8038 | #endif | ||
8039 | |||
8040 | int | ||
8041 | main () | ||
8042 | { | ||
8043 | return connect (); | ||
8044 | ; | ||
8045 | return 0; | ||
8046 | } | ||
8047 | _ACEOF | ||
8048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8049 | if { (ac_try="$ac_link" | ||
8050 | case "(($ac_try" in | ||
8051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8052 | *) ac_try_echo=$ac_try;; | ||
8053 | esac | ||
8054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8055 | (eval "$ac_link") 2>conftest.er1 | ||
8056 | ac_status=$? | ||
8057 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8058 | rm -f conftest.er1 | ||
8059 | cat conftest.err >&5 | ||
8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8061 | (exit $ac_status); } && | ||
8062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8063 | { (case "(($ac_try" in | ||
8064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8065 | *) ac_try_echo=$ac_try;; | ||
8066 | esac | ||
8067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8068 | (eval "$ac_try") 2>&5 | ||
8069 | ac_status=$? | ||
8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8071 | (exit $ac_status); }; } && | ||
8072 | { ac_try='test -s conftest$ac_exeext' | ||
8073 | { (case "(($ac_try" in | ||
8074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8075 | *) ac_try_echo=$ac_try;; | ||
8076 | esac | ||
8077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8078 | (eval "$ac_try") 2>&5 | ||
8079 | ac_status=$? | ||
8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8081 | (exit $ac_status); }; }; then | ||
8082 | ac_cv_func_connect=yes | ||
8083 | else | ||
8084 | echo "$as_me: failed program was:" >&5 | ||
8085 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8086 | |||
8087 | ac_cv_func_connect=no | ||
8088 | fi | ||
8089 | |||
8090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8091 | conftest$ac_exeext conftest.$ac_ext | ||
8092 | fi | ||
8093 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | ||
8094 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | ||
8095 | |||
8096 | if test $ac_cv_func_connect = no; then | ||
8097 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | ||
8098 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | ||
8099 | if test "${ac_cv_lib_socket_connect+set}" = set; then | ||
8100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8101 | else | ||
8102 | ac_check_lib_save_LIBS=$LIBS | ||
8103 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
8104 | cat >conftest.$ac_ext <<_ACEOF | ||
8105 | /* confdefs.h. */ | ||
8106 | _ACEOF | ||
8107 | cat confdefs.h >>conftest.$ac_ext | ||
8108 | cat >>conftest.$ac_ext <<_ACEOF | ||
8109 | /* end confdefs.h. */ | ||
8110 | |||
8111 | /* Override any GCC internal prototype to avoid an error. | ||
8112 | Use char because int might match the return type of a GCC | ||
8113 | builtin and then its argument prototype would still apply. */ | ||
8114 | #ifdef __cplusplus | ||
8115 | extern "C" | ||
8116 | #endif | ||
8117 | char connect (); | ||
8118 | int | ||
8119 | main () | ||
8120 | { | ||
8121 | return connect (); | ||
8122 | ; | ||
8123 | return 0; | ||
8124 | } | ||
8125 | _ACEOF | ||
8126 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8127 | if { (ac_try="$ac_link" | ||
8128 | case "(($ac_try" in | ||
8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8130 | *) ac_try_echo=$ac_try;; | ||
8131 | esac | ||
8132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8133 | (eval "$ac_link") 2>conftest.er1 | ||
8134 | ac_status=$? | ||
8135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8136 | rm -f conftest.er1 | ||
8137 | cat conftest.err >&5 | ||
8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8139 | (exit $ac_status); } && | ||
8140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8141 | { (case "(($ac_try" in | ||
8142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8143 | *) ac_try_echo=$ac_try;; | ||
8144 | esac | ||
8145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8146 | (eval "$ac_try") 2>&5 | ||
8147 | ac_status=$? | ||
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8149 | (exit $ac_status); }; } && | ||
8150 | { ac_try='test -s conftest$ac_exeext' | ||
8151 | { (case "(($ac_try" in | ||
8152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8153 | *) ac_try_echo=$ac_try;; | ||
8154 | esac | ||
8155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8156 | (eval "$ac_try") 2>&5 | ||
8157 | ac_status=$? | ||
8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8159 | (exit $ac_status); }; }; then | ||
8160 | ac_cv_lib_socket_connect=yes | ||
8161 | else | ||
8162 | echo "$as_me: failed program was:" >&5 | ||
8163 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8164 | |||
8165 | ac_cv_lib_socket_connect=no | ||
8166 | fi | ||
8167 | |||
8168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8169 | conftest$ac_exeext conftest.$ac_ext | ||
8170 | LIBS=$ac_check_lib_save_LIBS | ||
8171 | fi | ||
8172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | ||
8173 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | ||
8174 | if test $ac_cv_lib_socket_connect = yes; then | ||
8175 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
8176 | fi | ||
8177 | |||
8178 | fi | ||
8179 | |||
8180 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
8181 | { echo "$as_me:$LINENO: checking for remove" >&5 | ||
8182 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | ||
8183 | if test "${ac_cv_func_remove+set}" = set; then | ||
8184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8185 | else | ||
8186 | cat >conftest.$ac_ext <<_ACEOF | ||
8187 | /* confdefs.h. */ | ||
8188 | _ACEOF | ||
8189 | cat confdefs.h >>conftest.$ac_ext | ||
8190 | cat >>conftest.$ac_ext <<_ACEOF | ||
8191 | /* end confdefs.h. */ | ||
8192 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. | ||
8193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8194 | #define remove innocuous_remove | ||
8195 | |||
8196 | /* System header to define __stub macros and hopefully few prototypes, | ||
8197 | which can conflict with char remove (); below. | ||
8198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8199 | <limits.h> exists even on freestanding compilers. */ | ||
8200 | |||
8201 | #ifdef __STDC__ | ||
8202 | # include <limits.h> | ||
8203 | #else | ||
8204 | # include <assert.h> | ||
8205 | #endif | ||
8206 | |||
8207 | #undef remove | ||
8208 | |||
8209 | /* Override any GCC internal prototype to avoid an error. | ||
8210 | Use char because int might match the return type of a GCC | ||
8211 | builtin and then its argument prototype would still apply. */ | ||
8212 | #ifdef __cplusplus | ||
8213 | extern "C" | ||
8214 | #endif | ||
8215 | char remove (); | ||
8216 | /* The GNU C library defines this for functions which it implements | ||
8217 | to always fail with ENOSYS. Some functions are actually named | ||
8218 | something starting with __ and the normal name is an alias. */ | ||
8219 | #if defined __stub_remove || defined __stub___remove | ||
8220 | choke me | ||
8221 | #endif | ||
8222 | |||
8223 | int | ||
8224 | main () | ||
8225 | { | ||
8226 | return remove (); | ||
8227 | ; | ||
8228 | return 0; | ||
8229 | } | ||
8230 | _ACEOF | ||
8231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8232 | if { (ac_try="$ac_link" | ||
8233 | case "(($ac_try" in | ||
8234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8235 | *) ac_try_echo=$ac_try;; | ||
8236 | esac | ||
8237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8238 | (eval "$ac_link") 2>conftest.er1 | ||
8239 | ac_status=$? | ||
8240 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8241 | rm -f conftest.er1 | ||
8242 | cat conftest.err >&5 | ||
8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8244 | (exit $ac_status); } && | ||
8245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8246 | { (case "(($ac_try" in | ||
8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8248 | *) ac_try_echo=$ac_try;; | ||
8249 | esac | ||
8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8251 | (eval "$ac_try") 2>&5 | ||
8252 | ac_status=$? | ||
8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8254 | (exit $ac_status); }; } && | ||
8255 | { ac_try='test -s conftest$ac_exeext' | ||
8256 | { (case "(($ac_try" in | ||
8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8258 | *) ac_try_echo=$ac_try;; | ||
8259 | esac | ||
8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8261 | (eval "$ac_try") 2>&5 | ||
8262 | ac_status=$? | ||
8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8264 | (exit $ac_status); }; }; then | ||
8265 | ac_cv_func_remove=yes | ||
8266 | else | ||
8267 | echo "$as_me: failed program was:" >&5 | ||
8268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8269 | |||
8270 | ac_cv_func_remove=no | ||
8271 | fi | ||
8272 | |||
8273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8274 | conftest$ac_exeext conftest.$ac_ext | ||
8275 | fi | ||
8276 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | ||
8277 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | ||
8278 | |||
8279 | if test $ac_cv_func_remove = no; then | ||
8280 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | ||
8281 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | ||
8282 | if test "${ac_cv_lib_posix_remove+set}" = set; then | ||
8283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8284 | else | ||
8285 | ac_check_lib_save_LIBS=$LIBS | ||
8286 | LIBS="-lposix $LIBS" | ||
8287 | cat >conftest.$ac_ext <<_ACEOF | ||
8288 | /* confdefs.h. */ | ||
8289 | _ACEOF | ||
8290 | cat confdefs.h >>conftest.$ac_ext | ||
8291 | cat >>conftest.$ac_ext <<_ACEOF | ||
8292 | /* end confdefs.h. */ | ||
8293 | |||
8294 | /* Override any GCC internal prototype to avoid an error. | ||
8295 | Use char because int might match the return type of a GCC | ||
8296 | builtin and then its argument prototype would still apply. */ | ||
8297 | #ifdef __cplusplus | ||
8298 | extern "C" | ||
8299 | #endif | ||
8300 | char remove (); | ||
8301 | int | ||
8302 | main () | ||
8303 | { | ||
8304 | return remove (); | ||
8305 | ; | ||
8306 | return 0; | ||
8307 | } | ||
8308 | _ACEOF | ||
8309 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8310 | if { (ac_try="$ac_link" | ||
8311 | case "(($ac_try" in | ||
8312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8313 | *) ac_try_echo=$ac_try;; | ||
8314 | esac | ||
8315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8316 | (eval "$ac_link") 2>conftest.er1 | ||
8317 | ac_status=$? | ||
8318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8319 | rm -f conftest.er1 | ||
8320 | cat conftest.err >&5 | ||
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8322 | (exit $ac_status); } && | ||
8323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8324 | { (case "(($ac_try" in | ||
8325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8326 | *) ac_try_echo=$ac_try;; | ||
8327 | esac | ||
8328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8329 | (eval "$ac_try") 2>&5 | ||
8330 | ac_status=$? | ||
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8332 | (exit $ac_status); }; } && | ||
8333 | { ac_try='test -s conftest$ac_exeext' | ||
8334 | { (case "(($ac_try" in | ||
8335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8336 | *) ac_try_echo=$ac_try;; | ||
8337 | esac | ||
8338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8339 | (eval "$ac_try") 2>&5 | ||
8340 | ac_status=$? | ||
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8342 | (exit $ac_status); }; }; then | ||
8343 | ac_cv_lib_posix_remove=yes | ||
8344 | else | ||
8345 | echo "$as_me: failed program was:" >&5 | ||
8346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8347 | |||
8348 | ac_cv_lib_posix_remove=no | ||
8349 | fi | ||
8350 | |||
8351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8352 | conftest$ac_exeext conftest.$ac_ext | ||
8353 | LIBS=$ac_check_lib_save_LIBS | ||
8354 | fi | ||
8355 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | ||
8356 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | ||
8357 | if test $ac_cv_lib_posix_remove = yes; then | ||
8358 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
8359 | fi | ||
8360 | |||
8361 | fi | ||
8362 | |||
8363 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
8364 | { echo "$as_me:$LINENO: checking for shmat" >&5 | ||
8365 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | ||
8366 | if test "${ac_cv_func_shmat+set}" = set; then | ||
8367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8368 | else | ||
8369 | cat >conftest.$ac_ext <<_ACEOF | ||
8370 | /* confdefs.h. */ | ||
8371 | _ACEOF | ||
8372 | cat confdefs.h >>conftest.$ac_ext | ||
8373 | cat >>conftest.$ac_ext <<_ACEOF | ||
8374 | /* end confdefs.h. */ | ||
8375 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | ||
8376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8377 | #define shmat innocuous_shmat | ||
8378 | |||
8379 | /* System header to define __stub macros and hopefully few prototypes, | ||
8380 | which can conflict with char shmat (); below. | ||
8381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8382 | <limits.h> exists even on freestanding compilers. */ | ||
8383 | |||
8384 | #ifdef __STDC__ | ||
8385 | # include <limits.h> | ||
8386 | #else | ||
8387 | # include <assert.h> | ||
8388 | #endif | ||
8389 | |||
8390 | #undef shmat | ||
8391 | |||
8392 | /* Override any GCC internal prototype to avoid an error. | ||
8393 | Use char because int might match the return type of a GCC | ||
8394 | builtin and then its argument prototype would still apply. */ | ||
8395 | #ifdef __cplusplus | ||
8396 | extern "C" | ||
8397 | #endif | ||
8398 | char shmat (); | ||
8399 | /* The GNU C library defines this for functions which it implements | ||
8400 | to always fail with ENOSYS. Some functions are actually named | ||
8401 | something starting with __ and the normal name is an alias. */ | ||
8402 | #if defined __stub_shmat || defined __stub___shmat | ||
8403 | choke me | ||
8404 | #endif | ||
8405 | |||
8406 | int | ||
8407 | main () | ||
8408 | { | ||
8409 | return shmat (); | ||
8410 | ; | ||
8411 | return 0; | ||
8412 | } | ||
8413 | _ACEOF | ||
8414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8415 | if { (ac_try="$ac_link" | ||
8416 | case "(($ac_try" in | ||
8417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8418 | *) ac_try_echo=$ac_try;; | ||
8419 | esac | ||
8420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8421 | (eval "$ac_link") 2>conftest.er1 | ||
8422 | ac_status=$? | ||
8423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8424 | rm -f conftest.er1 | ||
8425 | cat conftest.err >&5 | ||
8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8427 | (exit $ac_status); } && | ||
8428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8429 | { (case "(($ac_try" in | ||
8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8431 | *) ac_try_echo=$ac_try;; | ||
8432 | esac | ||
8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8434 | (eval "$ac_try") 2>&5 | ||
8435 | ac_status=$? | ||
8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8437 | (exit $ac_status); }; } && | ||
8438 | { ac_try='test -s conftest$ac_exeext' | ||
8439 | { (case "(($ac_try" in | ||
8440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8441 | *) ac_try_echo=$ac_try;; | ||
8442 | esac | ||
8443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8444 | (eval "$ac_try") 2>&5 | ||
8445 | ac_status=$? | ||
8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8447 | (exit $ac_status); }; }; then | ||
8448 | ac_cv_func_shmat=yes | ||
8449 | else | ||
8450 | echo "$as_me: failed program was:" >&5 | ||
8451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8452 | |||
8453 | ac_cv_func_shmat=no | ||
8454 | fi | ||
8455 | |||
8456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8457 | conftest$ac_exeext conftest.$ac_ext | ||
8458 | fi | ||
8459 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | ||
8460 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | ||
8461 | |||
8462 | if test $ac_cv_func_shmat = no; then | ||
8463 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | ||
8464 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | ||
8465 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | ||
8466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8467 | else | ||
8468 | ac_check_lib_save_LIBS=$LIBS | ||
8469 | LIBS="-lipc $LIBS" | ||
8470 | cat >conftest.$ac_ext <<_ACEOF | ||
8471 | /* confdefs.h. */ | ||
8472 | _ACEOF | ||
8473 | cat confdefs.h >>conftest.$ac_ext | ||
8474 | cat >>conftest.$ac_ext <<_ACEOF | ||
8475 | /* end confdefs.h. */ | ||
8476 | |||
8477 | /* Override any GCC internal prototype to avoid an error. | ||
8478 | Use char because int might match the return type of a GCC | ||
8479 | builtin and then its argument prototype would still apply. */ | ||
8480 | #ifdef __cplusplus | ||
8481 | extern "C" | ||
8482 | #endif | ||
8483 | char shmat (); | ||
8484 | int | ||
8485 | main () | ||
8486 | { | ||
8487 | return shmat (); | ||
8488 | ; | ||
8489 | return 0; | ||
8490 | } | ||
8491 | _ACEOF | ||
8492 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8493 | if { (ac_try="$ac_link" | ||
8494 | case "(($ac_try" in | ||
8495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8496 | *) ac_try_echo=$ac_try;; | ||
8497 | esac | ||
8498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8499 | (eval "$ac_link") 2>conftest.er1 | ||
8500 | ac_status=$? | ||
8501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8502 | rm -f conftest.er1 | ||
8503 | cat conftest.err >&5 | ||
8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8505 | (exit $ac_status); } && | ||
8506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8507 | { (case "(($ac_try" in | ||
8508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8509 | *) ac_try_echo=$ac_try;; | ||
8510 | esac | ||
8511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8512 | (eval "$ac_try") 2>&5 | ||
8513 | ac_status=$? | ||
8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8515 | (exit $ac_status); }; } && | ||
8516 | { ac_try='test -s conftest$ac_exeext' | ||
8517 | { (case "(($ac_try" in | ||
8518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8519 | *) ac_try_echo=$ac_try;; | ||
8520 | esac | ||
8521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8522 | (eval "$ac_try") 2>&5 | ||
8523 | ac_status=$? | ||
8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8525 | (exit $ac_status); }; }; then | ||
8526 | ac_cv_lib_ipc_shmat=yes | ||
8527 | else | ||
8528 | echo "$as_me: failed program was:" >&5 | ||
8529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8530 | |||
8531 | ac_cv_lib_ipc_shmat=no | ||
8532 | fi | ||
8533 | |||
8534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8535 | conftest$ac_exeext conftest.$ac_ext | ||
8536 | LIBS=$ac_check_lib_save_LIBS | ||
8537 | fi | ||
8538 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | ||
8539 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | ||
8540 | if test $ac_cv_lib_ipc_shmat = yes; then | ||
8541 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
8542 | fi | ||
8543 | |||
8544 | fi | ||
8545 | fi | ||
8546 | |||
8547 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
8548 | ac_save_LDFLAGS=$LDFLAGS | ||
8549 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
8550 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
8551 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
8552 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
8553 | # These have to be linked with before -lX11, unlike the other | ||
8554 | # libraries we check for below, so use a different variable. | ||
8555 | # John Interrante, Karl Berry | ||
8556 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | ||
8557 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | ||
8558 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | ||
8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8560 | else | ||
8561 | ac_check_lib_save_LIBS=$LIBS | ||
8562 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
8563 | cat >conftest.$ac_ext <<_ACEOF | ||
8564 | /* confdefs.h. */ | ||
8565 | _ACEOF | ||
8566 | cat confdefs.h >>conftest.$ac_ext | ||
8567 | cat >>conftest.$ac_ext <<_ACEOF | ||
8568 | /* end confdefs.h. */ | ||
8569 | |||
8570 | /* Override any GCC internal prototype to avoid an error. | ||
8571 | Use char because int might match the return type of a GCC | ||
8572 | builtin and then its argument prototype would still apply. */ | ||
8573 | #ifdef __cplusplus | ||
8574 | extern "C" | ||
8575 | #endif | ||
8576 | char IceConnectionNumber (); | ||
8577 | int | ||
8578 | main () | ||
8579 | { | ||
8580 | return IceConnectionNumber (); | ||
8581 | ; | ||
8582 | return 0; | ||
8583 | } | ||
8584 | _ACEOF | ||
8585 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8586 | if { (ac_try="$ac_link" | ||
8587 | case "(($ac_try" in | ||
8588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8589 | *) ac_try_echo=$ac_try;; | ||
8590 | esac | ||
8591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8592 | (eval "$ac_link") 2>conftest.er1 | ||
8593 | ac_status=$? | ||
8594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8595 | rm -f conftest.er1 | ||
8596 | cat conftest.err >&5 | ||
8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8598 | (exit $ac_status); } && | ||
8599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8600 | { (case "(($ac_try" in | ||
8601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8602 | *) ac_try_echo=$ac_try;; | ||
8603 | esac | ||
8604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8605 | (eval "$ac_try") 2>&5 | ||
8606 | ac_status=$? | ||
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8608 | (exit $ac_status); }; } && | ||
8609 | { ac_try='test -s conftest$ac_exeext' | ||
8610 | { (case "(($ac_try" in | ||
8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8612 | *) ac_try_echo=$ac_try;; | ||
8613 | esac | ||
8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8615 | (eval "$ac_try") 2>&5 | ||
8616 | ac_status=$? | ||
8617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8618 | (exit $ac_status); }; }; then | ||
8619 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
8620 | else | ||
8621 | echo "$as_me: failed program was:" >&5 | ||
8622 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8623 | |||
8624 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
8625 | fi | ||
8626 | |||
8627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8628 | conftest$ac_exeext conftest.$ac_ext | ||
8629 | LIBS=$ac_check_lib_save_LIBS | ||
8630 | fi | ||
8631 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
8632 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
8633 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | ||
8634 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
8635 | fi | ||
8636 | |||
8637 | LDFLAGS=$ac_save_LDFLAGS | ||
8638 | |||
8639 | fi | ||
8640 | |||
8641 | |||
8642 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
8643 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | ||
8644 | |||
8645 | ac_save_LIBS="$LIBS" | ||
8646 | LIBS="$LIBS $X_LIBS" | ||
8647 | |||
8648 | |||
8649 | |||
8650 | for ac_header in GL/gl.h GL/glu.h | ||
8651 | do | ||
8652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8653 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8657 | else | ||
8658 | cat >conftest.$ac_ext <<_ACEOF | ||
8659 | /* confdefs.h. */ | ||
8660 | _ACEOF | ||
8661 | cat confdefs.h >>conftest.$ac_ext | ||
8662 | cat >>conftest.$ac_ext <<_ACEOF | ||
8663 | /* end confdefs.h. */ | ||
8664 | #include <GL/gl.h> | ||
8665 | |||
8666 | #include <$ac_header> | ||
8667 | _ACEOF | ||
8668 | rm -f conftest.$ac_objext | ||
8669 | if { (ac_try="$ac_compile" | ||
8670 | case "(($ac_try" in | ||
8671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8672 | *) ac_try_echo=$ac_try;; | ||
8673 | esac | ||
8674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8675 | (eval "$ac_compile") 2>conftest.er1 | ||
8676 | ac_status=$? | ||
8677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8678 | rm -f conftest.er1 | ||
8679 | cat conftest.err >&5 | ||
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8681 | (exit $ac_status); } && | ||
8682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8683 | { (case "(($ac_try" in | ||
8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8685 | *) ac_try_echo=$ac_try;; | ||
8686 | esac | ||
8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8688 | (eval "$ac_try") 2>&5 | ||
8689 | ac_status=$? | ||
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8691 | (exit $ac_status); }; } && | ||
8692 | { ac_try='test -s conftest.$ac_objext' | ||
8693 | { (case "(($ac_try" in | ||
8694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8695 | *) ac_try_echo=$ac_try;; | ||
8696 | esac | ||
8697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8698 | (eval "$ac_try") 2>&5 | ||
8699 | ac_status=$? | ||
8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8701 | (exit $ac_status); }; }; then | ||
8702 | eval "$as_ac_Header=yes" | ||
8703 | else | ||
8704 | echo "$as_me: failed program was:" >&5 | ||
8705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8706 | |||
8707 | eval "$as_ac_Header=no" | ||
8708 | fi | ||
8709 | |||
8710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8711 | fi | ||
8712 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8714 | echo "${ECHO_T}$ac_res" >&6; } | ||
8715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8716 | cat >>confdefs.h <<_ACEOF | ||
8717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8718 | _ACEOF | ||
8719 | |||
8720 | else | ||
8721 | { { echo "$as_me:$LINENO: error: some OpenGL headers missing" >&5 | ||
8722 | echo "$as_me: error: some OpenGL headers missing" >&2;} | ||
8723 | { (exit 1); exit 1; }; } | ||
8724 | fi | ||
8725 | |||
8726 | done | ||
8727 | |||
8728 | |||
8729 | { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5 | ||
8730 | echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; } | ||
8731 | if test "${ac_cv_lib_GL_glBegin+set}" = set; then | ||
8732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8733 | else | ||
8734 | ac_check_lib_save_LIBS=$LIBS | ||
8735 | LIBS="-lGL $LIBS" | ||
8736 | cat >conftest.$ac_ext <<_ACEOF | ||
8737 | /* confdefs.h. */ | ||
8738 | _ACEOF | ||
8739 | cat confdefs.h >>conftest.$ac_ext | ||
8740 | cat >>conftest.$ac_ext <<_ACEOF | ||
8741 | /* end confdefs.h. */ | ||
8742 | |||
8743 | /* Override any GCC internal prototype to avoid an error. | ||
8744 | Use char because int might match the return type of a GCC | ||
8745 | builtin and then its argument prototype would still apply. */ | ||
8746 | #ifdef __cplusplus | ||
8747 | extern "C" | ||
8748 | #endif | ||
8749 | char glBegin (); | ||
8750 | int | ||
8751 | main () | ||
8752 | { | ||
8753 | return glBegin (); | ||
8754 | ; | ||
8755 | return 0; | ||
8756 | } | ||
8757 | _ACEOF | ||
8758 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8759 | if { (ac_try="$ac_link" | ||
8760 | case "(($ac_try" in | ||
8761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8762 | *) ac_try_echo=$ac_try;; | ||
8763 | esac | ||
8764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8765 | (eval "$ac_link") 2>conftest.er1 | ||
8766 | ac_status=$? | ||
8767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8768 | rm -f conftest.er1 | ||
8769 | cat conftest.err >&5 | ||
8770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8771 | (exit $ac_status); } && | ||
8772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8773 | { (case "(($ac_try" in | ||
8774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8775 | *) ac_try_echo=$ac_try;; | ||
8776 | esac | ||
8777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8778 | (eval "$ac_try") 2>&5 | ||
8779 | ac_status=$? | ||
8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8781 | (exit $ac_status); }; } && | ||
8782 | { ac_try='test -s conftest$ac_exeext' | ||
8783 | { (case "(($ac_try" in | ||
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8785 | *) ac_try_echo=$ac_try;; | ||
8786 | esac | ||
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8788 | (eval "$ac_try") 2>&5 | ||
8789 | ac_status=$? | ||
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8791 | (exit $ac_status); }; }; then | ||
8792 | ac_cv_lib_GL_glBegin=yes | ||
8793 | else | ||
8794 | echo "$as_me: failed program was:" >&5 | ||
8795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8796 | |||
8797 | ac_cv_lib_GL_glBegin=no | ||
8798 | fi | ||
8799 | |||
8800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8801 | conftest$ac_exeext conftest.$ac_ext | ||
8802 | LIBS=$ac_check_lib_save_LIBS | ||
8803 | fi | ||
8804 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5 | ||
8805 | echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; } | ||
8806 | if test $ac_cv_lib_GL_glBegin = yes; then | ||
8807 | have_gl=yes | ||
8808 | else | ||
8809 | have_gl=no | ||
8810 | fi | ||
8811 | |||
8812 | { echo "$as_me:$LINENO: checking for gluPerspective in -lGLU" >&5 | ||
8813 | echo $ECHO_N "checking for gluPerspective in -lGLU... $ECHO_C" >&6; } | ||
8814 | if test "${ac_cv_lib_GLU_gluPerspective+set}" = set; then | ||
8815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8816 | else | ||
8817 | ac_check_lib_save_LIBS=$LIBS | ||
8818 | LIBS="-lGLU -lGL $GTK_LIBS $LIBS" | ||
8819 | cat >conftest.$ac_ext <<_ACEOF | ||
8820 | /* confdefs.h. */ | ||
8821 | _ACEOF | ||
8822 | cat confdefs.h >>conftest.$ac_ext | ||
8823 | cat >>conftest.$ac_ext <<_ACEOF | ||
8824 | /* end confdefs.h. */ | ||
8825 | |||
8826 | /* Override any GCC internal prototype to avoid an error. | ||
8827 | Use char because int might match the return type of a GCC | ||
8828 | builtin and then its argument prototype would still apply. */ | ||
8829 | #ifdef __cplusplus | ||
8830 | extern "C" | ||
8831 | #endif | ||
8832 | char gluPerspective (); | ||
8833 | int | ||
8834 | main () | ||
8835 | { | ||
8836 | return gluPerspective (); | ||
8837 | ; | ||
8838 | return 0; | ||
8839 | } | ||
8840 | _ACEOF | ||
8841 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8842 | if { (ac_try="$ac_link" | ||
8843 | case "(($ac_try" in | ||
8844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8845 | *) ac_try_echo=$ac_try;; | ||
8846 | esac | ||
8847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8848 | (eval "$ac_link") 2>conftest.er1 | ||
8849 | ac_status=$? | ||
8850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8851 | rm -f conftest.er1 | ||
8852 | cat conftest.err >&5 | ||
8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8854 | (exit $ac_status); } && | ||
8855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8856 | { (case "(($ac_try" in | ||
8857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8858 | *) ac_try_echo=$ac_try;; | ||
8859 | esac | ||
8860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8861 | (eval "$ac_try") 2>&5 | ||
8862 | ac_status=$? | ||
8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8864 | (exit $ac_status); }; } && | ||
8865 | { ac_try='test -s conftest$ac_exeext' | ||
8866 | { (case "(($ac_try" in | ||
8867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8868 | *) ac_try_echo=$ac_try;; | ||
8869 | esac | ||
8870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8871 | (eval "$ac_try") 2>&5 | ||
8872 | ac_status=$? | ||
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8874 | (exit $ac_status); }; }; then | ||
8875 | ac_cv_lib_GLU_gluPerspective=yes | ||
8876 | else | ||
8877 | echo "$as_me: failed program was:" >&5 | ||
8878 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8879 | |||
8880 | ac_cv_lib_GLU_gluPerspective=no | ||
8881 | fi | ||
8882 | |||
8883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8884 | conftest$ac_exeext conftest.$ac_ext | ||
8885 | LIBS=$ac_check_lib_save_LIBS | ||
8886 | fi | ||
8887 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluPerspective" >&5 | ||
8888 | echo "${ECHO_T}$ac_cv_lib_GLU_gluPerspective" >&6; } | ||
8889 | if test $ac_cv_lib_GLU_gluPerspective = yes; then | ||
8890 | have_glu=yes | ||
8891 | else | ||
8892 | have_glu=no | ||
8893 | fi | ||
8894 | |||
8895 | if test $have_gl = no || test $have_glu = no; then | ||
8896 | { { echo "$as_me:$LINENO: error: libgl or libglu missing" >&5 | ||
8897 | echo "$as_me: error: libgl or libglu missing" >&2;} | ||
8898 | { (exit 1); exit 1; }; } | ||
8899 | else | ||
8900 | GL_LIBS="-lGL -lGLU $GTK_LIBS" | ||
8901 | |||
8902 | fi | ||
8903 | |||
8904 | # Check some UNIX headers | ||
8905 | |||
8906 | |||
8907 | |||
8908 | for ac_header in dirent.h sys/stat.h unistd.h | ||
8909 | do | ||
8910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8911 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8915 | else | ||
8916 | cat >conftest.$ac_ext <<_ACEOF | ||
8917 | /* confdefs.h. */ | ||
8918 | _ACEOF | ||
8919 | cat confdefs.h >>conftest.$ac_ext | ||
8920 | cat >>conftest.$ac_ext <<_ACEOF | ||
8921 | /* end confdefs.h. */ | ||
8922 | #include <sys/types.h> | ||
8923 | |||
8924 | #include <$ac_header> | ||
8925 | _ACEOF | ||
8926 | rm -f conftest.$ac_objext | ||
8927 | if { (ac_try="$ac_compile" | ||
8928 | case "(($ac_try" in | ||
8929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8930 | *) ac_try_echo=$ac_try;; | ||
8931 | esac | ||
8932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8933 | (eval "$ac_compile") 2>conftest.er1 | ||
8934 | ac_status=$? | ||
8935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8936 | rm -f conftest.er1 | ||
8937 | cat conftest.err >&5 | ||
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8939 | (exit $ac_status); } && | ||
8940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8941 | { (case "(($ac_try" in | ||
8942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8943 | *) ac_try_echo=$ac_try;; | ||
8944 | esac | ||
8945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8946 | (eval "$ac_try") 2>&5 | ||
8947 | ac_status=$? | ||
8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8949 | (exit $ac_status); }; } && | ||
8950 | { ac_try='test -s conftest.$ac_objext' | ||
8951 | { (case "(($ac_try" in | ||
8952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8953 | *) ac_try_echo=$ac_try;; | ||
8954 | esac | ||
8955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8956 | (eval "$ac_try") 2>&5 | ||
8957 | ac_status=$? | ||
8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8959 | (exit $ac_status); }; }; then | ||
8960 | eval "$as_ac_Header=yes" | ||
8961 | else | ||
8962 | echo "$as_me: failed program was:" >&5 | ||
8963 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8964 | |||
8965 | eval "$as_ac_Header=no" | ||
8966 | fi | ||
8967 | |||
8968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8969 | fi | ||
8970 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8971 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8972 | echo "${ECHO_T}$ac_res" >&6; } | ||
8973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8974 | cat >>confdefs.h <<_ACEOF | ||
8975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8976 | _ACEOF | ||
8977 | |||
8978 | else | ||
8979 | { { echo "$as_me:$LINENO: error: missing header file" >&5 | ||
8980 | echo "$as_me: error: missing header file" >&2;} | ||
8981 | { (exit 1); exit 1; }; } | ||
8982 | fi | ||
8983 | |||
8984 | done | ||
8985 | |||
8986 | |||
8987 | # Look for snprintf (optional) | ||
8988 | { echo "$as_me:$LINENO: checking for snprintf" >&5 | ||
8989 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; } | ||
8990 | if test "${ac_cv_func_snprintf+set}" = set; then | ||
8991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8992 | else | ||
8993 | cat >conftest.$ac_ext <<_ACEOF | ||
8994 | /* confdefs.h. */ | ||
8995 | _ACEOF | ||
8996 | cat confdefs.h >>conftest.$ac_ext | ||
8997 | cat >>conftest.$ac_ext <<_ACEOF | ||
8998 | /* end confdefs.h. */ | ||
8999 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. | ||
9000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9001 | #define snprintf innocuous_snprintf | ||
9002 | |||
9003 | /* System header to define __stub macros and hopefully few prototypes, | ||
9004 | which can conflict with char snprintf (); below. | ||
9005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9006 | <limits.h> exists even on freestanding compilers. */ | ||
9007 | |||
9008 | #ifdef __STDC__ | ||
9009 | # include <limits.h> | ||
9010 | #else | ||
9011 | # include <assert.h> | ||
9012 | #endif | ||
9013 | |||
9014 | #undef snprintf | ||
9015 | |||
9016 | /* Override any GCC internal prototype to avoid an error. | ||
9017 | Use char because int might match the return type of a GCC | ||
9018 | builtin and then its argument prototype would still apply. */ | ||
9019 | #ifdef __cplusplus | ||
9020 | extern "C" | ||
9021 | #endif | ||
9022 | char snprintf (); | ||
9023 | /* The GNU C library defines this for functions which it implements | ||
9024 | to always fail with ENOSYS. Some functions are actually named | ||
9025 | something starting with __ and the normal name is an alias. */ | ||
9026 | #if defined __stub_snprintf || defined __stub___snprintf | ||
9027 | choke me | ||
9028 | #endif | ||
9029 | |||
9030 | int | ||
9031 | main () | ||
9032 | { | ||
9033 | return snprintf (); | ||
9034 | ; | ||
9035 | return 0; | ||
9036 | } | ||
9037 | _ACEOF | ||
9038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9039 | if { (ac_try="$ac_link" | ||
9040 | case "(($ac_try" in | ||
9041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9042 | *) ac_try_echo=$ac_try;; | ||
9043 | esac | ||
9044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9045 | (eval "$ac_link") 2>conftest.er1 | ||
9046 | ac_status=$? | ||
9047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9048 | rm -f conftest.er1 | ||
9049 | cat conftest.err >&5 | ||
9050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9051 | (exit $ac_status); } && | ||
9052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9053 | { (case "(($ac_try" in | ||
9054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9055 | *) ac_try_echo=$ac_try;; | ||
9056 | esac | ||
9057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9058 | (eval "$ac_try") 2>&5 | ||
9059 | ac_status=$? | ||
9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9061 | (exit $ac_status); }; } && | ||
9062 | { ac_try='test -s conftest$ac_exeext' | ||
9063 | { (case "(($ac_try" in | ||
9064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9065 | *) ac_try_echo=$ac_try;; | ||
9066 | esac | ||
9067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9068 | (eval "$ac_try") 2>&5 | ||
9069 | ac_status=$? | ||
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9071 | (exit $ac_status); }; }; then | ||
9072 | ac_cv_func_snprintf=yes | ||
9073 | else | ||
9074 | echo "$as_me: failed program was:" >&5 | ||
9075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9076 | |||
9077 | ac_cv_func_snprintf=no | ||
9078 | fi | ||
9079 | |||
9080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9081 | conftest$ac_exeext conftest.$ac_ext | ||
9082 | fi | ||
9083 | { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 | ||
9084 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6; } | ||
9085 | if test $ac_cv_func_snprintf = yes; then | ||
9086 | |||
9087 | cat >>confdefs.h <<\_ACEOF | ||
9088 | #define HAVE_SNPRINTF 1 | ||
9089 | _ACEOF | ||
9090 | |||
9091 | fi | ||
9092 | |||
9093 | |||
9094 | # Look for fstat (required) | ||
9095 | { echo "$as_me:$LINENO: checking for fstat" >&5 | ||
9096 | echo $ECHO_N "checking for fstat... $ECHO_C" >&6; } | ||
9097 | if test "${ac_cv_func_fstat+set}" = set; then | ||
9098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9099 | else | ||
9100 | cat >conftest.$ac_ext <<_ACEOF | ||
9101 | /* confdefs.h. */ | ||
9102 | _ACEOF | ||
9103 | cat confdefs.h >>conftest.$ac_ext | ||
9104 | cat >>conftest.$ac_ext <<_ACEOF | ||
9105 | /* end confdefs.h. */ | ||
9106 | /* Define fstat to an innocuous variant, in case <limits.h> declares fstat. | ||
9107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9108 | #define fstat innocuous_fstat | ||
9109 | |||
9110 | /* System header to define __stub macros and hopefully few prototypes, | ||
9111 | which can conflict with char fstat (); below. | ||
9112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9113 | <limits.h> exists even on freestanding compilers. */ | ||
9114 | |||
9115 | #ifdef __STDC__ | ||
9116 | # include <limits.h> | ||
9117 | #else | ||
9118 | # include <assert.h> | ||
9119 | #endif | ||
9120 | |||
9121 | #undef fstat | ||
9122 | |||
9123 | /* Override any GCC internal prototype to avoid an error. | ||
9124 | Use char because int might match the return type of a GCC | ||
9125 | builtin and then its argument prototype would still apply. */ | ||
9126 | #ifdef __cplusplus | ||
9127 | extern "C" | ||
9128 | #endif | ||
9129 | char fstat (); | ||
9130 | /* The GNU C library defines this for functions which it implements | ||
9131 | to always fail with ENOSYS. Some functions are actually named | ||
9132 | something starting with __ and the normal name is an alias. */ | ||
9133 | #if defined __stub_fstat || defined __stub___fstat | ||
9134 | choke me | ||
9135 | #endif | ||
9136 | |||
9137 | int | ||
9138 | main () | ||
9139 | { | ||
9140 | return fstat (); | ||
9141 | ; | ||
9142 | return 0; | ||
9143 | } | ||
9144 | _ACEOF | ||
9145 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9146 | if { (ac_try="$ac_link" | ||
9147 | case "(($ac_try" in | ||
9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9149 | *) ac_try_echo=$ac_try;; | ||
9150 | esac | ||
9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9152 | (eval "$ac_link") 2>conftest.er1 | ||
9153 | ac_status=$? | ||
9154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9155 | rm -f conftest.er1 | ||
9156 | cat conftest.err >&5 | ||
9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9158 | (exit $ac_status); } && | ||
9159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9160 | { (case "(($ac_try" in | ||
9161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9162 | *) ac_try_echo=$ac_try;; | ||
9163 | esac | ||
9164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9165 | (eval "$ac_try") 2>&5 | ||
9166 | ac_status=$? | ||
9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9168 | (exit $ac_status); }; } && | ||
9169 | { ac_try='test -s conftest$ac_exeext' | ||
9170 | { (case "(($ac_try" in | ||
9171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9172 | *) ac_try_echo=$ac_try;; | ||
9173 | esac | ||
9174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9175 | (eval "$ac_try") 2>&5 | ||
9176 | ac_status=$? | ||
9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9178 | (exit $ac_status); }; }; then | ||
9179 | ac_cv_func_fstat=yes | ||
9180 | else | ||
9181 | echo "$as_me: failed program was:" >&5 | ||
9182 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9183 | |||
9184 | ac_cv_func_fstat=no | ||
9185 | fi | ||
9186 | |||
9187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9188 | conftest$ac_exeext conftest.$ac_ext | ||
9189 | fi | ||
9190 | { echo "$as_me:$LINENO: result: $ac_cv_func_fstat" >&5 | ||
9191 | echo "${ECHO_T}$ac_cv_func_fstat" >&6; } | ||
9192 | if test $ac_cv_func_fstat = yes; then | ||
9193 | have_fstat=yes | ||
9194 | else | ||
9195 | have_fstat=no | ||
9196 | fi | ||
9197 | |||
9198 | if test $have_fstat = no; then | ||
9199 | { { echo "$as_me:$LINENO: error: fstat function not found" >&5 | ||
9200 | echo "$as_me: error: fstat function not found" >&2;} | ||
9201 | { (exit 1); exit 1; }; } | ||
9202 | fi | ||
9203 | |||
9204 | # Debug level (verbosity & optimization) | ||
9205 | { echo "$as_me:$LINENO: checking for debug level" >&5 | ||
9206 | echo $ECHO_N "checking for debug level... $ECHO_C" >&6; } | ||
9207 | # Check whether --enable-debug was given. | ||
9208 | if test "${enable_debug+set}" = set; then | ||
9209 | enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi | ||
9210 | else | ||
9211 | DEBUG=0 | ||
9212 | fi | ||
9213 | |||
9214 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 | ||
9215 | echo "${ECHO_T}$DEBUG" >&6; } | ||
9216 | |||
9217 | |||
9218 | if test "$DEBUG" = "0"; then | ||
9219 | DBG_CFLAGS="-O2" | ||
9220 | else | ||
9221 | DBG_CFLAGS="-g -DGLIB_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED" | ||
9222 | fi | ||
9223 | |||
9224 | |||
9225 | # Data & plugin directories | ||
9226 | |||
9227 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
9228 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
9229 | ac_define_dir=`eval echo $datadir/$PACKAGE` | ||
9230 | ac_define_dir=`eval echo $ac_define_dir` | ||
9231 | |||
9232 | cat >>confdefs.h <<_ACEOF | ||
9233 | #define DATA_DIR "$ac_define_dir" | ||
9234 | _ACEOF | ||
9235 | |||
9236 | |||
9237 | |||
9238 | # Create the files | ||
9239 | ac_config_files="$ac_config_files Makefile m4/Makefile man/Makefile src/Makefile thumbnailer/Makefile pixmaps/Makefile glade/Makefile po/Makefile.in" | ||
9240 | |||
9241 | cat >confcache <<\_ACEOF | ||
9242 | # This file is a shell script that caches the results of configure | ||
9243 | # tests run on this system so they can be shared between configure | ||
9244 | # scripts and configure runs, see configure's option --config-cache. | ||
9245 | # It is not useful on other systems. If it contains results you don't | ||
9246 | # want to keep, you may remove or edit it. | ||
9247 | # | ||
9248 | # config.status only pays attention to the cache file if you give it | ||
9249 | # the --recheck option to rerun configure. | ||
9250 | # | ||
9251 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
9252 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
9253 | # following values. | ||
9254 | |||
9255 | _ACEOF | ||
9256 | |||
9257 | # The following way of writing the cache mishandles newlines in values, | ||
9258 | # but we know of no workaround that is simple, portable, and efficient. | ||
9259 | # So, we kill variables containing newlines. | ||
9260 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
9261 | # and sets the high bit in the cache file unless we assign to the vars. | ||
9262 | ( | ||
9263 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
9264 | eval ac_val=\$$ac_var | ||
9265 | case $ac_val in #( | ||
9266 | *${as_nl}*) | ||
9267 | case $ac_var in #( | ||
9268 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
9269 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
9270 | esac | ||
9271 | case $ac_var in #( | ||
9272 | _ | IFS | as_nl) ;; #( | ||
9273 | *) $as_unset $ac_var ;; | ||
9274 | esac ;; | ||
9275 | esac | ||
9276 | done | ||
9277 | |||
9278 | (set) 2>&1 | | ||
9279 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
9280 | *${as_nl}ac_space=\ *) | ||
9281 | # `set' does not quote correctly, so add quotes (double-quote | ||
9282 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
9283 | sed -n \ | ||
9284 | "s/'/'\\\\''/g; | ||
9285 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
9286 | ;; #( | ||
9287 | *) | ||
9288 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
9289 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
9290 | ;; | ||
9291 | esac | | ||
9292 | sort | ||
9293 | ) | | ||
9294 | sed ' | ||
9295 | /^ac_cv_env_/b end | ||
9296 | t clear | ||
9297 | :clear | ||
9298 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
9299 | t end | ||
9300 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
9301 | :end' >>confcache | ||
9302 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
9303 | if test -w "$cache_file"; then | ||
9304 | test "x$cache_file" != "x/dev/null" && | ||
9305 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
9306 | echo "$as_me: updating cache $cache_file" >&6;} | ||
9307 | cat confcache >$cache_file | ||
9308 | else | ||
9309 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
9310 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
9311 | fi | ||
9312 | fi | ||
9313 | rm -f confcache | ||
9314 | |||
9315 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
9316 | # Let make expand exec_prefix. | ||
9317 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
9318 | |||
9319 | DEFS=-DHAVE_CONFIG_H | ||
9320 | |||
9321 | ac_libobjs= | ||
9322 | ac_ltlibobjs= | ||
9323 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
9324 | # 1. Remove the extension, and $U if already installed. | ||
9325 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
9326 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
9327 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
9328 | # will be set to the directory where LIBOBJS objects are built. | ||
9329 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
9330 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
9331 | done | ||
9332 | LIBOBJS=$ac_libobjs | ||
9333 | |||
9334 | LTLIBOBJS=$ac_ltlibobjs | ||
9335 | |||
9336 | |||
9337 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
9338 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
9339 | Usually this means the macro was only invoked conditionally." >&5 | ||
9340 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
9341 | Usually this means the macro was only invoked conditionally." >&2;} | ||
9342 | { (exit 1); exit 1; }; } | ||
9343 | fi | ||
9344 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
9345 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
9346 | Usually this means the macro was only invoked conditionally." >&5 | ||
9347 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
9348 | Usually this means the macro was only invoked conditionally." >&2;} | ||
9349 | { (exit 1); exit 1; }; } | ||
9350 | fi | ||
9351 | |||
9352 | : ${CONFIG_STATUS=./config.status} | ||
9353 | ac_clean_files_save=$ac_clean_files | ||
9354 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
9355 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
9356 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
9357 | cat >$CONFIG_STATUS <<_ACEOF | ||
9358 | #! $SHELL | ||
9359 | # Generated by $as_me. | ||
9360 | # Run this file to recreate the current configuration. | ||
9361 | # Compiler output produced by configure, useful for debugging | ||
9362 | # configure, is in config.log if it exists. | ||
9363 | |||
9364 | debug=false | ||
9365 | ac_cs_recheck=false | ||
9366 | ac_cs_silent=false | ||
9367 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
9368 | _ACEOF | ||
9369 | |||
9370 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9371 | ## --------------------- ## | ||
9372 | ## M4sh Initialization. ## | ||
9373 | ## --------------------- ## | ||
9374 | |||
9375 | # Be Bourne compatible | ||
9376 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
9377 | emulate sh | ||
9378 | NULLCMD=: | ||
9379 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
9380 | # is contrary to our usage. Disable this feature. | ||
9381 | alias -g '${1+"$@"}'='"$@"' | ||
9382 | setopt NO_GLOB_SUBST | ||
9383 | else | ||
9384 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
9385 | fi | ||
9386 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
9387 | DUALCASE=1; export DUALCASE # for MKS sh | ||
9388 | |||
9389 | |||
9390 | # PATH needs CR | ||
9391 | # Avoid depending upon Character Ranges. | ||
9392 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
9393 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
9394 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
9395 | as_cr_digits='0123456789' | ||
9396 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
9397 | |||
9398 | # The user is always right. | ||
9399 | if test "${PATH_SEPARATOR+set}" != set; then | ||
9400 | echo "#! /bin/sh" >conf$$.sh | ||
9401 | echo "exit 0" >>conf$$.sh | ||
9402 | chmod +x conf$$.sh | ||
9403 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
9404 | PATH_SEPARATOR=';' | ||
9405 | else | ||
9406 | PATH_SEPARATOR=: | ||
9407 | fi | ||
9408 | rm -f conf$$.sh | ||
9409 | fi | ||
9410 | |||
9411 | # Support unset when possible. | ||
9412 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
9413 | as_unset=unset | ||
9414 | else | ||
9415 | as_unset=false | ||
9416 | fi | ||
9417 | |||
9418 | |||
9419 | # IFS | ||
9420 | # We need space, tab and new line, in precisely that order. Quoting is | ||
9421 | # there to prevent editors from complaining about space-tab. | ||
9422 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
9423 | # splitting by setting IFS to empty value.) | ||
9424 | as_nl=' | ||
9425 | ' | ||
9426 | IFS=" "" $as_nl" | ||
9427 | |||
9428 | # Find who we are. Look in the path if we contain no directory separator. | ||
9429 | case $0 in | ||
9430 | *[\\/]* ) as_myself=$0 ;; | ||
9431 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9432 | for as_dir in $PATH | ||
9433 | do | ||
9434 | IFS=$as_save_IFS | ||
9435 | test -z "$as_dir" && as_dir=. | ||
9436 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
9437 | done | ||
9438 | IFS=$as_save_IFS | ||
9439 | |||
9440 | ;; | ||
9441 | esac | ||
9442 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
9443 | # in which case we are not to be found in the path. | ||
9444 | if test "x$as_myself" = x; then | ||
9445 | as_myself=$0 | ||
9446 | fi | ||
9447 | if test ! -f "$as_myself"; then | ||
9448 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
9449 | { (exit 1); exit 1; } | ||
9450 | fi | ||
9451 | |||
9452 | # Work around bugs in pre-3.0 UWIN ksh. | ||
9453 | for as_var in ENV MAIL MAILPATH | ||
9454 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
9455 | done | ||
9456 | PS1='$ ' | ||
9457 | PS2='> ' | ||
9458 | PS4='+ ' | ||
9459 | |||
9460 | # NLS nuisances. | ||
9461 | for as_var in \ | ||
9462 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
9463 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
9464 | LC_TELEPHONE LC_TIME | ||
9465 | do | ||
9466 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
9467 | eval $as_var=C; export $as_var | ||
9468 | else | ||
9469 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
9470 | fi | ||
9471 | done | ||
9472 | |||
9473 | # Required to use basename. | ||
9474 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
9475 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
9476 | as_expr=expr | ||
9477 | else | ||
9478 | as_expr=false | ||
9479 | fi | ||
9480 | |||
9481 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
9482 | as_basename=basename | ||
9483 | else | ||
9484 | as_basename=false | ||
9485 | fi | ||
9486 | |||
9487 | |||
9488 | # Name of the executable. | ||
9489 | as_me=`$as_basename -- "$0" || | ||
9490 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
9491 | X"$0" : 'X\(//\)$' \| \ | ||
9492 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
9493 | echo X/"$0" | | ||
9494 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
9495 | s//\1/ | ||
9496 | q | ||
9497 | } | ||
9498 | /^X\/\(\/\/\)$/{ | ||
9499 | s//\1/ | ||
9500 | q | ||
9501 | } | ||
9502 | /^X\/\(\/\).*/{ | ||
9503 | s//\1/ | ||
9504 | q | ||
9505 | } | ||
9506 | s/.*/./; q'` | ||
9507 | |||
9508 | # CDPATH. | ||
9509 | $as_unset CDPATH | ||
9510 | |||
9511 | |||
9512 | |||
9513 | as_lineno_1=$LINENO | ||
9514 | as_lineno_2=$LINENO | ||
9515 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
9516 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
9517 | |||
9518 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
9519 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
9520 | # line-number line after each line using $LINENO; the second 'sed' | ||
9521 | # does the real work. The second script uses 'N' to pair each | ||
9522 | # line-number line with the line containing $LINENO, and appends | ||
9523 | # trailing '-' during substitution so that $LINENO is not a special | ||
9524 | # case at line end. | ||
9525 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
9526 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
9527 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
9528 | sed -n ' | ||
9529 | p | ||
9530 | /[$]LINENO/= | ||
9531 | ' <$as_myself | | ||
9532 | sed ' | ||
9533 | s/[$]LINENO.*/&-/ | ||
9534 | t lineno | ||
9535 | b | ||
9536 | :lineno | ||
9537 | N | ||
9538 | :loop | ||
9539 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
9540 | t loop | ||
9541 | s/-\n.*// | ||
9542 | ' >$as_me.lineno && | ||
9543 | chmod +x "$as_me.lineno" || | ||
9544 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
9545 | { (exit 1); exit 1; }; } | ||
9546 | |||
9547 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
9548 | # (the dirname of $[0] is not the place where we might find the | ||
9549 | # original and so on. Autoconf is especially sensitive to this). | ||
9550 | . "./$as_me.lineno" | ||
9551 | # Exit status is that of the last command. | ||
9552 | exit | ||
9553 | } | ||
9554 | |||
9555 | |||
9556 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
9557 | as_dirname=dirname | ||
9558 | else | ||
9559 | as_dirname=false | ||
9560 | fi | ||
9561 | |||
9562 | ECHO_C= ECHO_N= ECHO_T= | ||
9563 | case `echo -n x` in | ||
9564 | -n*) | ||
9565 | case `echo 'x\c'` in | ||
9566 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
9567 | *) ECHO_C='\c';; | ||
9568 | esac;; | ||
9569 | *) | ||
9570 | ECHO_N='-n';; | ||
9571 | esac | ||
9572 | |||
9573 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
9574 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
9575 | as_expr=expr | ||
9576 | else | ||
9577 | as_expr=false | ||
9578 | fi | ||
9579 | |||
9580 | rm -f conf$$ conf$$.exe conf$$.file | ||
9581 | if test -d conf$$.dir; then | ||
9582 | rm -f conf$$.dir/conf$$.file | ||
9583 | else | ||
9584 | rm -f conf$$.dir | ||
9585 | mkdir conf$$.dir | ||
9586 | fi | ||
9587 | echo >conf$$.file | ||
9588 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
9589 | as_ln_s='ln -s' | ||
9590 | # ... but there are two gotchas: | ||
9591 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
9592 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
9593 | # In both cases, we have to default to `cp -p'. | ||
9594 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
9595 | as_ln_s='cp -p' | ||
9596 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
9597 | as_ln_s=ln | ||
9598 | else | ||
9599 | as_ln_s='cp -p' | ||
9600 | fi | ||
9601 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
9602 | rmdir conf$$.dir 2>/dev/null | ||
9603 | |||
9604 | if mkdir -p . 2>/dev/null; then | ||
9605 | as_mkdir_p=: | ||
9606 | else | ||
9607 | test -d ./-p && rmdir ./-p | ||
9608 | as_mkdir_p=false | ||
9609 | fi | ||
9610 | |||
9611 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
9612 | # systems may use methods other than mode bits to determine executability. | ||
9613 | cat >conf$$.file <<_ASEOF | ||
9614 | #! /bin/sh | ||
9615 | exit 0 | ||
9616 | _ASEOF | ||
9617 | chmod +x conf$$.file | ||
9618 | if test -x conf$$.file >/dev/null 2>&1; then | ||
9619 | as_executable_p="test -x" | ||
9620 | else | ||
9621 | as_executable_p=: | ||
9622 | fi | ||
9623 | rm -f conf$$.file | ||
9624 | |||
9625 | # Sed expression to map a string onto a valid CPP name. | ||
9626 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
9627 | |||
9628 | # Sed expression to map a string onto a valid variable name. | ||
9629 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
9630 | |||
9631 | |||
9632 | exec 6>&1 | ||
9633 | |||
9634 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
9635 | # report actual input values of CONFIG_FILES etc. instead of their | ||
9636 | # values after options handling. | ||
9637 | ac_log=" | ||
9638 | This file was extended by $as_me, which was | ||
9639 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
9640 | |||
9641 | CONFIG_FILES = $CONFIG_FILES | ||
9642 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
9643 | CONFIG_LINKS = $CONFIG_LINKS | ||
9644 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
9645 | $ $0 $@ | ||
9646 | |||
9647 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
9648 | " | ||
9649 | |||
9650 | _ACEOF | ||
9651 | |||
9652 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9653 | # Files that config.status was made for. | ||
9654 | config_files="$ac_config_files" | ||
9655 | config_headers="$ac_config_headers" | ||
9656 | config_commands="$ac_config_commands" | ||
9657 | |||
9658 | _ACEOF | ||
9659 | |||
9660 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9661 | ac_cs_usage="\ | ||
9662 | \`$as_me' instantiates files from templates according to the | ||
9663 | current configuration. | ||
9664 | |||
9665 | Usage: $0 [OPTIONS] [FILE]... | ||
9666 | |||
9667 | -h, --help print this help, then exit | ||
9668 | -V, --version print version number and configuration settings, then exit | ||
9669 | -q, --quiet do not print progress messages | ||
9670 | -d, --debug don't remove temporary files | ||
9671 | --recheck update $as_me by reconfiguring in the same conditions | ||
9672 | --file=FILE[:TEMPLATE] | ||
9673 | instantiate the configuration file FILE | ||
9674 | --header=FILE[:TEMPLATE] | ||
9675 | instantiate the configuration header FILE | ||
9676 | |||
9677 | Configuration files: | ||
9678 | $config_files | ||
9679 | |||
9680 | Configuration headers: | ||
9681 | $config_headers | ||
9682 | |||
9683 | Configuration commands: | ||
9684 | $config_commands | ||
9685 | |||
9686 | Report bugs to <bug-autoconf@gnu.org>." | ||
9687 | |||
9688 | _ACEOF | ||
9689 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9690 | ac_cs_version="\\ | ||
9691 | config.status | ||
9692 | configured by $0, generated by GNU Autoconf 2.60a, | ||
9693 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
9694 | |||
9695 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
9696 | This config.status script is free software; the Free Software Foundation | ||
9697 | gives unlimited permission to copy, distribute and modify it." | ||
9698 | |||
9699 | ac_pwd='$ac_pwd' | ||
9700 | srcdir='$srcdir' | ||
9701 | INSTALL='$INSTALL' | ||
9702 | _ACEOF | ||
9703 | |||
9704 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9705 | # If no file are specified by the user, then we need to provide default | ||
9706 | # value. By we need to know if files were specified by the user. | ||
9707 | ac_need_defaults=: | ||
9708 | while test $# != 0 | ||
9709 | do | ||
9710 | case $1 in | ||
9711 | --*=*) | ||
9712 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
9713 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
9714 | ac_shift=: | ||
9715 | ;; | ||
9716 | *) | ||
9717 | ac_option=$1 | ||
9718 | ac_optarg=$2 | ||
9719 | ac_shift=shift | ||
9720 | ;; | ||
9721 | esac | ||
9722 | |||
9723 | case $ac_option in | ||
9724 | # Handling of the options. | ||
9725 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
9726 | ac_cs_recheck=: ;; | ||
9727 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
9728 | echo "$ac_cs_version"; exit ;; | ||
9729 | --debug | --debu | --deb | --de | --d | -d ) | ||
9730 | debug=: ;; | ||
9731 | --file | --fil | --fi | --f ) | ||
9732 | $ac_shift | ||
9733 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
9734 | ac_need_defaults=false;; | ||
9735 | --header | --heade | --head | --hea ) | ||
9736 | $ac_shift | ||
9737 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
9738 | ac_need_defaults=false;; | ||
9739 | --he | --h) | ||
9740 | # Conflict between --help and --header | ||
9741 | { echo "$as_me: error: ambiguous option: $1 | ||
9742 | Try \`$0 --help' for more information." >&2 | ||
9743 | { (exit 1); exit 1; }; };; | ||
9744 | --help | --hel | -h ) | ||
9745 | echo "$ac_cs_usage"; exit ;; | ||
9746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
9747 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
9748 | ac_cs_silent=: ;; | ||
9749 | |||
9750 | # This is an error. | ||
9751 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
9752 | Try \`$0 --help' for more information." >&2 | ||
9753 | { (exit 1); exit 1; }; } ;; | ||
9754 | |||
9755 | *) ac_config_targets="$ac_config_targets $1" | ||
9756 | ac_need_defaults=false ;; | ||
9757 | |||
9758 | esac | ||
9759 | shift | ||
9760 | done | ||
9761 | |||
9762 | ac_configure_extra_args= | ||
9763 | |||
9764 | if $ac_cs_silent; then | ||
9765 | exec 6>/dev/null | ||
9766 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
9767 | fi | ||
9768 | |||
9769 | _ACEOF | ||
9770 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9771 | if \$ac_cs_recheck; then | ||
9772 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
9773 | CONFIG_SHELL=$SHELL | ||
9774 | export CONFIG_SHELL | ||
9775 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
9776 | fi | ||
9777 | |||
9778 | _ACEOF | ||
9779 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9780 | exec 5>>config.log | ||
9781 | { | ||
9782 | echo | ||
9783 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
9784 | ## Running $as_me. ## | ||
9785 | _ASBOX | ||
9786 | echo "$ac_log" | ||
9787 | } >&5 | ||
9788 | |||
9789 | _ACEOF | ||
9790 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9791 | # | ||
9792 | # INIT-COMMANDS | ||
9793 | # | ||
9794 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
9795 | |||
9796 | |||
9797 | _ACEOF | ||
9798 | |||
9799 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
9800 | |||
9801 | # Handling of arguments. | ||
9802 | for ac_config_target in $ac_config_targets | ||
9803 | do | ||
9804 | case $ac_config_target in | ||
9805 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
9806 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
9807 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | ||
9808 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
9809 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | ||
9810 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | ||
9811 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
9812 | "thumbnailer/Makefile") CONFIG_FILES="$CONFIG_FILES thumbnailer/Makefile" ;; | ||
9813 | "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; | ||
9814 | "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;; | ||
9815 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | ||
9816 | |||
9817 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
9818 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
9819 | { (exit 1); exit 1; }; };; | ||
9820 | esac | ||
9821 | done | ||
9822 | |||
9823 | |||
9824 | # If the user did not use the arguments to specify the items to instantiate, | ||
9825 | # then the envvar interface is used. Set only those that are not. | ||
9826 | # We use the long form for the default assignment because of an extremely | ||
9827 | # bizarre bug on SunOS 4.1.3. | ||
9828 | if $ac_need_defaults; then | ||
9829 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
9830 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
9831 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
9832 | fi | ||
9833 | |||
9834 | # Have a temporary directory for convenience. Make it in the build tree | ||
9835 | # simply because there is no reason against having it here, and in addition, | ||
9836 | # creating and moving files from /tmp can sometimes cause problems. | ||
9837 | # Hook for its removal unless debugging. | ||
9838 | # Note that there is a small window in which the directory will not be cleaned: | ||
9839 | # after its creation but before its name has been assigned to `$tmp'. | ||
9840 | $debug || | ||
9841 | { | ||
9842 | tmp= | ||
9843 | trap 'exit_status=$? | ||
9844 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
9845 | ' 0 | ||
9846 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
9847 | } | ||
9848 | # Create a (secure) tmp directory for tmp files. | ||
9849 | |||
9850 | { | ||
9851 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
9852 | test -n "$tmp" && test -d "$tmp" | ||
9853 | } || | ||
9854 | { | ||
9855 | tmp=./conf$$-$RANDOM | ||
9856 | (umask 077 && mkdir "$tmp") | ||
9857 | } || | ||
9858 | { | ||
9859 | echo "$me: cannot create a temporary directory in ." >&2 | ||
9860 | { (exit 1); exit 1; } | ||
9861 | } | ||
9862 | |||
9863 | # | ||
9864 | # Set up the sed scripts for CONFIG_FILES section. | ||
9865 | # | ||
9866 | |||
9867 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
9868 | # This happens for instance when ./config.status config.h | ||
9869 | if test -n "$CONFIG_FILES"; then | ||
9870 | |||
9871 | _ACEOF | ||
9872 | |||
9873 | |||
9874 | |||
9875 | ac_delim='%!_!# ' | ||
9876 | for ac_last_try in false false false false false :; do | ||
9877 | cat >conf$$subs.sed <<_ACEOF | ||
9878 | SHELL!$SHELL$ac_delim | ||
9879 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
9880 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
9881 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
9882 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
9883 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
9884 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
9885 | exec_prefix!$exec_prefix$ac_delim | ||
9886 | prefix!$prefix$ac_delim | ||
9887 | program_transform_name!$program_transform_name$ac_delim | ||
9888 | bindir!$bindir$ac_delim | ||
9889 | sbindir!$sbindir$ac_delim | ||
9890 | libexecdir!$libexecdir$ac_delim | ||
9891 | datarootdir!$datarootdir$ac_delim | ||
9892 | datadir!$datadir$ac_delim | ||
9893 | sysconfdir!$sysconfdir$ac_delim | ||
9894 | sharedstatedir!$sharedstatedir$ac_delim | ||
9895 | localstatedir!$localstatedir$ac_delim | ||
9896 | includedir!$includedir$ac_delim | ||
9897 | oldincludedir!$oldincludedir$ac_delim | ||
9898 | docdir!$docdir$ac_delim | ||
9899 | infodir!$infodir$ac_delim | ||
9900 | htmldir!$htmldir$ac_delim | ||
9901 | dvidir!$dvidir$ac_delim | ||
9902 | pdfdir!$pdfdir$ac_delim | ||
9903 | psdir!$psdir$ac_delim | ||
9904 | libdir!$libdir$ac_delim | ||
9905 | localedir!$localedir$ac_delim | ||
9906 | mandir!$mandir$ac_delim | ||
9907 | DEFS!$DEFS$ac_delim | ||
9908 | ECHO_C!$ECHO_C$ac_delim | ||
9909 | ECHO_N!$ECHO_N$ac_delim | ||
9910 | ECHO_T!$ECHO_T$ac_delim | ||
9911 | LIBS!$LIBS$ac_delim | ||
9912 | build_alias!$build_alias$ac_delim | ||
9913 | host_alias!$host_alias$ac_delim | ||
9914 | target_alias!$target_alias$ac_delim | ||
9915 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
9916 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
9917 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
9918 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
9919 | PACKAGE!$PACKAGE$ac_delim | ||
9920 | VERSION!$VERSION$ac_delim | ||
9921 | ACLOCAL!$ACLOCAL$ac_delim | ||
9922 | AUTOCONF!$AUTOCONF$ac_delim | ||
9923 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
9924 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
9925 | MAKEINFO!$MAKEINFO$ac_delim | ||
9926 | AMTAR!$AMTAR$ac_delim | ||
9927 | install_sh!$install_sh$ac_delim | ||
9928 | STRIP!$STRIP$ac_delim | ||
9929 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
9930 | AWK!$AWK$ac_delim | ||
9931 | SET_MAKE!$SET_MAKE$ac_delim | ||
9932 | am__leading_dot!$am__leading_dot$ac_delim | ||
9933 | CC!$CC$ac_delim | ||
9934 | CFLAGS!$CFLAGS$ac_delim | ||
9935 | LDFLAGS!$LDFLAGS$ac_delim | ||
9936 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
9937 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
9938 | EXEEXT!$EXEEXT$ac_delim | ||
9939 | OBJEXT!$OBJEXT$ac_delim | ||
9940 | DEPDIR!$DEPDIR$ac_delim | ||
9941 | am__include!$am__include$ac_delim | ||
9942 | am__quote!$am__quote$ac_delim | ||
9943 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
9944 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
9945 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
9946 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
9947 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
9948 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
9949 | CPP!$CPP$ac_delim | ||
9950 | GREP!$GREP$ac_delim | ||
9951 | EGREP!$EGREP$ac_delim | ||
9952 | USE_NLS!$USE_NLS$ac_delim | ||
9953 | MSGFMT!$MSGFMT$ac_delim | ||
9954 | GMSGFMT!$GMSGFMT$ac_delim | ||
9955 | XGETTEXT!$XGETTEXT$ac_delim | ||
9956 | CATALOGS!$CATALOGS$ac_delim | ||
9957 | CATOBJEXT!$CATOBJEXT$ac_delim | ||
9958 | DATADIRNAME!$DATADIRNAME$ac_delim | ||
9959 | GMOFILES!$GMOFILES$ac_delim | ||
9960 | INSTOBJEXT!$INSTOBJEXT$ac_delim | ||
9961 | INTLLIBS!$INTLLIBS$ac_delim | ||
9962 | PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim | ||
9963 | PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim | ||
9964 | POFILES!$POFILES$ac_delim | ||
9965 | POSUB!$POSUB$ac_delim | ||
9966 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim | ||
9967 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim | ||
9968 | PKG_CONFIG!$PKG_CONFIG$ac_delim | ||
9969 | GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim | ||
9970 | GLIB_LIBS!$GLIB_LIBS$ac_delim | ||
9971 | GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim | ||
9972 | GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim | ||
9973 | GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim | ||
9974 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim | ||
9975 | _ACEOF | ||
9976 | |||
9977 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
9978 | break | ||
9979 | elif $ac_last_try; then | ||
9980 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
9981 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
9982 | { (exit 1); exit 1; }; } | ||
9983 | else | ||
9984 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
9985 | fi | ||
9986 | done | ||
9987 | |||
9988 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
9989 | if test -n "$ac_eof"; then | ||
9990 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
9991 | ac_eof=`expr $ac_eof + 1` | ||
9992 | fi | ||
9993 | |||
9994 | cat >>$CONFIG_STATUS <<_ACEOF | ||
9995 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
9996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
9997 | _ACEOF | ||
9998 | sed ' | ||
9999 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
10000 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
10001 | :n | ||
10002 | t n | ||
10003 | s/'"$ac_delim"'$/,g/; t | ||
10004 | s/$/\\/; p | ||
10005 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
10006 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
10007 | rm -f conf$$subs.sed | ||
10008 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10009 | CEOF$ac_eof | ||
10010 | _ACEOF | ||
10011 | |||
10012 | |||
10013 | ac_delim='%!_!# ' | ||
10014 | for ac_last_try in false false false false false :; do | ||
10015 | cat >conf$$subs.sed <<_ACEOF | ||
10016 | GTK_LIBS!$GTK_LIBS$ac_delim | ||
10017 | LIBGLADE_CFLAGS!$LIBGLADE_CFLAGS$ac_delim | ||
10018 | LIBGLADE_LIBS!$LIBGLADE_LIBS$ac_delim | ||
10019 | GTKGLEXT_CFLAGS!$GTKGLEXT_CFLAGS$ac_delim | ||
10020 | GTKGLEXT_LIBS!$GTKGLEXT_LIBS$ac_delim | ||
10021 | LIBG3D_CFLAGS!$LIBG3D_CFLAGS$ac_delim | ||
10022 | LIBG3D_LIBS!$LIBG3D_LIBS$ac_delim | ||
10023 | XMKMF!$XMKMF$ac_delim | ||
10024 | X_CFLAGS!$X_CFLAGS$ac_delim | ||
10025 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | ||
10026 | X_LIBS!$X_LIBS$ac_delim | ||
10027 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | ||
10028 | GL_LIBS!$GL_LIBS$ac_delim | ||
10029 | DEBUG!$DEBUG$ac_delim | ||
10030 | DBG_CFLAGS!$DBG_CFLAGS$ac_delim | ||
10031 | LIBOBJS!$LIBOBJS$ac_delim | ||
10032 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
10033 | _ACEOF | ||
10034 | |||
10035 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then | ||
10036 | break | ||
10037 | elif $ac_last_try; then | ||
10038 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
10039 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
10040 | { (exit 1); exit 1; }; } | ||
10041 | else | ||
10042 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
10043 | fi | ||
10044 | done | ||
10045 | |||
10046 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
10047 | if test -n "$ac_eof"; then | ||
10048 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
10049 | ac_eof=`expr $ac_eof + 1` | ||
10050 | fi | ||
10051 | |||
10052 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10053 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
10054 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
10055 | _ACEOF | ||
10056 | sed ' | ||
10057 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
10058 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
10059 | :n | ||
10060 | t n | ||
10061 | s/'"$ac_delim"'$/,g/; t | ||
10062 | s/$/\\/; p | ||
10063 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
10064 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
10065 | rm -f conf$$subs.sed | ||
10066 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10067 | :end | ||
10068 | s/|#_!!_#|//g | ||
10069 | CEOF$ac_eof | ||
10070 | _ACEOF | ||
10071 | |||
10072 | |||
10073 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
10074 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
10075 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
10076 | # (actually we leave an empty line to preserve line numbers). | ||
10077 | if test "x$srcdir" = x.; then | ||
10078 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
10079 | s/:*\$(srcdir):*/:/ | ||
10080 | s/:*\${srcdir}:*/:/ | ||
10081 | s/:*@srcdir@:*/:/ | ||
10082 | s/^\([^=]*=[ ]*\):*/\1/ | ||
10083 | s/:*$// | ||
10084 | s/^[^=]*=[ ]*$// | ||
10085 | }' | ||
10086 | fi | ||
10087 | |||
10088 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10089 | fi # test -n "$CONFIG_FILES" | ||
10090 | |||
10091 | |||
10092 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | ||
10093 | do | ||
10094 | case $ac_tag in | ||
10095 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
10096 | esac | ||
10097 | case $ac_mode$ac_tag in | ||
10098 | :[FHL]*:*);; | ||
10099 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
10100 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
10101 | { (exit 1); exit 1; }; };; | ||
10102 | :[FH]-) ac_tag=-:-;; | ||
10103 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
10104 | esac | ||
10105 | ac_save_IFS=$IFS | ||
10106 | IFS=: | ||
10107 | set x $ac_tag | ||
10108 | IFS=$ac_save_IFS | ||
10109 | shift | ||
10110 | ac_file=$1 | ||
10111 | shift | ||
10112 | |||
10113 | case $ac_mode in | ||
10114 | :L) ac_source=$1;; | ||
10115 | :[FH]) | ||
10116 | ac_file_inputs= | ||
10117 | for ac_f | ||
10118 | do | ||
10119 | case $ac_f in | ||
10120 | -) ac_f="$tmp/stdin";; | ||
10121 | *) # Look for the file first in the build tree, then in the source tree | ||
10122 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
10123 | # because $ac_f cannot contain `:'. | ||
10124 | test -f "$ac_f" || | ||
10125 | case $ac_f in | ||
10126 | [\\/$]*) false;; | ||
10127 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
10128 | esac || | ||
10129 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
10130 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
10131 | { (exit 1); exit 1; }; };; | ||
10132 | esac | ||
10133 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
10134 | done | ||
10135 | |||
10136 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
10137 | # use $as_me), people would be surprised to read: | ||
10138 | # /* config.h. Generated by config.status. */ | ||
10139 | configure_input="Generated from "`IFS=: | ||
10140 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
10141 | if test x"$ac_file" != x-; then | ||
10142 | configure_input="$ac_file. $configure_input" | ||
10143 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
10144 | echo "$as_me: creating $ac_file" >&6;} | ||
10145 | fi | ||
10146 | |||
10147 | case $ac_tag in | ||
10148 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
10149 | esac | ||
10150 | ;; | ||
10151 | esac | ||
10152 | |||
10153 | ac_dir=`$as_dirname -- "$ac_file" || | ||
10154 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10155 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
10156 | X"$ac_file" : 'X\(//\)$' \| \ | ||
10157 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
10158 | echo X"$ac_file" | | ||
10159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10160 | s//\1/ | ||
10161 | q | ||
10162 | } | ||
10163 | /^X\(\/\/\)[^/].*/{ | ||
10164 | s//\1/ | ||
10165 | q | ||
10166 | } | ||
10167 | /^X\(\/\/\)$/{ | ||
10168 | s//\1/ | ||
10169 | q | ||
10170 | } | ||
10171 | /^X\(\/\).*/{ | ||
10172 | s//\1/ | ||
10173 | q | ||
10174 | } | ||
10175 | s/.*/./; q'` | ||
10176 | { as_dir="$ac_dir" | ||
10177 | case $as_dir in #( | ||
10178 | -*) as_dir=./$as_dir;; | ||
10179 | esac | ||
10180 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
10181 | as_dirs= | ||
10182 | while :; do | ||
10183 | case $as_dir in #( | ||
10184 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
10185 | *) as_qdir=$as_dir;; | ||
10186 | esac | ||
10187 | as_dirs="'$as_qdir' $as_dirs" | ||
10188 | as_dir=`$as_dirname -- "$as_dir" || | ||
10189 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10190 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
10191 | X"$as_dir" : 'X\(//\)$' \| \ | ||
10192 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
10193 | echo X"$as_dir" | | ||
10194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10195 | s//\1/ | ||
10196 | q | ||
10197 | } | ||
10198 | /^X\(\/\/\)[^/].*/{ | ||
10199 | s//\1/ | ||
10200 | q | ||
10201 | } | ||
10202 | /^X\(\/\/\)$/{ | ||
10203 | s//\1/ | ||
10204 | q | ||
10205 | } | ||
10206 | /^X\(\/\).*/{ | ||
10207 | s//\1/ | ||
10208 | q | ||
10209 | } | ||
10210 | s/.*/./; q'` | ||
10211 | test -d "$as_dir" && break | ||
10212 | done | ||
10213 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
10214 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
10215 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
10216 | { (exit 1); exit 1; }; }; } | ||
10217 | ac_builddir=. | ||
10218 | |||
10219 | case "$ac_dir" in | ||
10220 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
10221 | *) | ||
10222 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
10223 | # A ".." for each directory in $ac_dir_suffix. | ||
10224 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
10225 | case $ac_top_builddir_sub in | ||
10226 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
10227 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
10228 | esac ;; | ||
10229 | esac | ||
10230 | ac_abs_top_builddir=$ac_pwd | ||
10231 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
10232 | # for backward compatibility: | ||
10233 | ac_top_builddir=$ac_top_build_prefix | ||
10234 | |||
10235 | case $srcdir in | ||
10236 | .) # We are building in place. | ||
10237 | ac_srcdir=. | ||
10238 | ac_top_srcdir=$ac_top_builddir_sub | ||
10239 | ac_abs_top_srcdir=$ac_pwd ;; | ||
10240 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
10241 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
10242 | ac_top_srcdir=$srcdir | ||
10243 | ac_abs_top_srcdir=$srcdir ;; | ||
10244 | *) # Relative name. | ||
10245 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
10246 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
10247 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
10248 | esac | ||
10249 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
10250 | |||
10251 | |||
10252 | case $ac_mode in | ||
10253 | :F) | ||
10254 | # | ||
10255 | # CONFIG_FILE | ||
10256 | # | ||
10257 | |||
10258 | case $INSTALL in | ||
10259 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
10260 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
10261 | esac | ||
10262 | _ACEOF | ||
10263 | |||
10264 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10265 | # If the template does not know about datarootdir, expand it. | ||
10266 | # FIXME: This hack should be removed a few years after 2.60. | ||
10267 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
10268 | |||
10269 | case `sed -n '/datarootdir/ { | ||
10270 | p | ||
10271 | q | ||
10272 | } | ||
10273 | /@datadir@/p | ||
10274 | /@docdir@/p | ||
10275 | /@infodir@/p | ||
10276 | /@localedir@/p | ||
10277 | /@mandir@/p | ||
10278 | ' $ac_file_inputs` in | ||
10279 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
10280 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
10281 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
10282 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
10283 | _ACEOF | ||
10284 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10285 | ac_datarootdir_hack=' | ||
10286 | s&@datadir@&$datadir&g | ||
10287 | s&@docdir@&$docdir&g | ||
10288 | s&@infodir@&$infodir&g | ||
10289 | s&@localedir@&$localedir&g | ||
10290 | s&@mandir@&$mandir&g | ||
10291 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
10292 | esac | ||
10293 | _ACEOF | ||
10294 | |||
10295 | # Neutralize VPATH when `$srcdir' = `.'. | ||
10296 | # Shell code in configure.ac might set extrasub. | ||
10297 | # FIXME: do we really want to maintain this feature? | ||
10298 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10299 | sed "$ac_vpsub | ||
10300 | $extrasub | ||
10301 | _ACEOF | ||
10302 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10303 | :t | ||
10304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
10305 | s&@configure_input@&$configure_input&;t t | ||
10306 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
10307 | s&@srcdir@&$ac_srcdir&;t t | ||
10308 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
10309 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
10310 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
10311 | s&@builddir@&$ac_builddir&;t t | ||
10312 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
10313 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
10314 | s&@INSTALL@&$ac_INSTALL&;t t | ||
10315 | $ac_datarootdir_hack | ||
10316 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
10317 | |||
10318 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
10319 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
10320 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
10321 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
10322 | which seems to be undefined. Please make sure it is defined." >&5 | ||
10323 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
10324 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
10325 | |||
10326 | rm -f "$tmp/stdin" | ||
10327 | case $ac_file in | ||
10328 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
10329 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
10330 | esac | ||
10331 | ;; | ||
10332 | :H) | ||
10333 | # | ||
10334 | # CONFIG_HEADER | ||
10335 | # | ||
10336 | _ACEOF | ||
10337 | |||
10338 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
10339 | # substitutes the proper values into config.h.in to produce config.h. | ||
10340 | rm -f conftest.defines conftest.tail | ||
10341 | # First, append a space to every undef/define line, to ease matching. | ||
10342 | echo 's/$/ /' >conftest.defines | ||
10343 | # Then, protect against being on the right side of a sed subst, or in | ||
10344 | # an unquoted here document, in config.status. If some macros were | ||
10345 | # called several times there might be several #defines for the same | ||
10346 | # symbol, which is useless. But do not sort them, since the last | ||
10347 | # AC_DEFINE must be honored. | ||
10348 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
10349 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
10350 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
10351 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
10352 | # just an empty string. | ||
10353 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
10354 | ac_dB='\\)[ (].*,\\1define\\2' | ||
10355 | ac_dC=' ' | ||
10356 | ac_dD=' ,' | ||
10357 | |||
10358 | uniq confdefs.h | | ||
10359 | sed -n ' | ||
10360 | t rset | ||
10361 | :rset | ||
10362 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
10363 | t ok | ||
10364 | d | ||
10365 | :ok | ||
10366 | s/[\\&,]/\\&/g | ||
10367 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
10368 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
10369 | ' >>conftest.defines | ||
10370 | |||
10371 | # Remove the space that was appended to ease matching. | ||
10372 | # Then replace #undef with comments. This is necessary, for | ||
10373 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
10374 | # on some systems where configure will not decide to define it. | ||
10375 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
10376 | echo 's/ $// | ||
10377 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
10378 | |||
10379 | # Break up conftest.defines: | ||
10380 | ac_max_sed_lines=50 | ||
10381 | |||
10382 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
10383 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
10384 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
10385 | # et cetera. | ||
10386 | ac_in='$ac_file_inputs' | ||
10387 | ac_out='"$tmp/out1"' | ||
10388 | ac_nxt='"$tmp/out2"' | ||
10389 | |||
10390 | while : | ||
10391 | do | ||
10392 | # Write a here document: | ||
10393 | cat >>$CONFIG_STATUS <<_ACEOF | ||
10394 | # First, check the format of the line: | ||
10395 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
10396 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
10397 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
10398 | b | ||
10399 | :def | ||
10400 | _ACEOF | ||
10401 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
10402 | echo 'CEOF | ||
10403 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
10404 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
10405 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
10406 | grep . conftest.tail >/dev/null || break | ||
10407 | rm -f conftest.defines | ||
10408 | mv conftest.tail conftest.defines | ||
10409 | done | ||
10410 | rm -f conftest.defines conftest.tail | ||
10411 | |||
10412 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
10413 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
10414 | if test x"$ac_file" != x-; then | ||
10415 | echo "/* $configure_input */" >"$tmp/config.h" | ||
10416 | cat "$ac_result" >>"$tmp/config.h" | ||
10417 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
10418 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
10419 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
10420 | else | ||
10421 | rm -f $ac_file | ||
10422 | mv "$tmp/config.h" $ac_file | ||
10423 | fi | ||
10424 | else | ||
10425 | echo "/* $configure_input */" | ||
10426 | cat "$ac_result" | ||
10427 | fi | ||
10428 | rm -f "$tmp/out12" | ||
10429 | # Compute $ac_file's index in $config_headers. | ||
10430 | _am_stamp_count=1 | ||
10431 | for _am_header in $config_headers :; do | ||
10432 | case $_am_header in | ||
10433 | $ac_file | $ac_file:* ) | ||
10434 | break ;; | ||
10435 | * ) | ||
10436 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
10437 | esac | ||
10438 | done | ||
10439 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | ||
10440 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10441 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
10442 | X$ac_file : 'X\(//\)$' \| \ | ||
10443 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | ||
10444 | echo X$ac_file | | ||
10445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10446 | s//\1/ | ||
10447 | q | ||
10448 | } | ||
10449 | /^X\(\/\/\)[^/].*/{ | ||
10450 | s//\1/ | ||
10451 | q | ||
10452 | } | ||
10453 | /^X\(\/\/\)$/{ | ||
10454 | s//\1/ | ||
10455 | q | ||
10456 | } | ||
10457 | /^X\(\/\).*/{ | ||
10458 | s//\1/ | ||
10459 | q | ||
10460 | } | ||
10461 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
10462 | ;; | ||
10463 | |||
10464 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | ||
10465 | echo "$as_me: executing $ac_file commands" >&6;} | ||
10466 | ;; | ||
10467 | esac | ||
10468 | |||
10469 | |||
10470 | case $ac_file$ac_mode in | ||
10471 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
10472 | # Strip MF so we end up with the name of the file. | ||
10473 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
10474 | # Check whether this is an Automake generated Makefile or not. | ||
10475 | # We used to match only the files named `Makefile.in', but | ||
10476 | # some people rename them; so instead we look at the file content. | ||
10477 | # Grep'ing the first line is not enough: some people post-process | ||
10478 | # each Makefile.in and add a new line on top of each file to say so. | ||
10479 | # So let's grep whole file. | ||
10480 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
10481 | dirpart=`$as_dirname -- "$mf" || | ||
10482 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10483 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
10484 | X"$mf" : 'X\(//\)$' \| \ | ||
10485 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
10486 | echo X"$mf" | | ||
10487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10488 | s//\1/ | ||
10489 | q | ||
10490 | } | ||
10491 | /^X\(\/\/\)[^/].*/{ | ||
10492 | s//\1/ | ||
10493 | q | ||
10494 | } | ||
10495 | /^X\(\/\/\)$/{ | ||
10496 | s//\1/ | ||
10497 | q | ||
10498 | } | ||
10499 | /^X\(\/\).*/{ | ||
10500 | s//\1/ | ||
10501 | q | ||
10502 | } | ||
10503 | s/.*/./; q'` | ||
10504 | else | ||
10505 | continue | ||
10506 | fi | ||
10507 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | ||
10508 | # Extract the definition of DEP_FILES from the Makefile without | ||
10509 | # running `make'. | ||
10510 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | ||
10511 | test -z "$DEPDIR" && continue | ||
10512 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
10513 | U=`sed -n -e '/^U = / s///p' < "$mf"` | ||
10514 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | ||
10515 | # We invoke sed twice because it is the simplest approach to | ||
10516 | # changing $(DEPDIR) to its actual value in the expansion. | ||
10517 | for file in `sed -n -e ' | ||
10518 | /^DEP_FILES = .*\\\\$/ { | ||
10519 | s/^DEP_FILES = // | ||
10520 | :loop | ||
10521 | s/\\\\$// | ||
10522 | p | ||
10523 | n | ||
10524 | /\\\\$/ b loop | ||
10525 | p | ||
10526 | } | ||
10527 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | ||
10528 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
10529 | # Make sure the directory exists. | ||
10530 | test -f "$dirpart/$file" && continue | ||
10531 | fdir=`$as_dirname -- "$file" || | ||
10532 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10533 | X"$file" : 'X\(//\)[^/]' \| \ | ||
10534 | X"$file" : 'X\(//\)$' \| \ | ||
10535 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
10536 | echo X"$file" | | ||
10537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10538 | s//\1/ | ||
10539 | q | ||
10540 | } | ||
10541 | /^X\(\/\/\)[^/].*/{ | ||
10542 | s//\1/ | ||
10543 | q | ||
10544 | } | ||
10545 | /^X\(\/\/\)$/{ | ||
10546 | s//\1/ | ||
10547 | q | ||
10548 | } | ||
10549 | /^X\(\/\).*/{ | ||
10550 | s//\1/ | ||
10551 | q | ||
10552 | } | ||
10553 | s/.*/./; q'` | ||
10554 | { as_dir=$dirpart/$fdir | ||
10555 | case $as_dir in #( | ||
10556 | -*) as_dir=./$as_dir;; | ||
10557 | esac | ||
10558 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
10559 | as_dirs= | ||
10560 | while :; do | ||
10561 | case $as_dir in #( | ||
10562 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
10563 | *) as_qdir=$as_dir;; | ||
10564 | esac | ||
10565 | as_dirs="'$as_qdir' $as_dirs" | ||
10566 | as_dir=`$as_dirname -- "$as_dir" || | ||
10567 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
10568 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
10569 | X"$as_dir" : 'X\(//\)$' \| \ | ||
10570 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
10571 | echo X"$as_dir" | | ||
10572 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
10573 | s//\1/ | ||
10574 | q | ||
10575 | } | ||
10576 | /^X\(\/\/\)[^/].*/{ | ||
10577 | s//\1/ | ||
10578 | q | ||
10579 | } | ||
10580 | /^X\(\/\/\)$/{ | ||
10581 | s//\1/ | ||
10582 | q | ||
10583 | } | ||
10584 | /^X\(\/\).*/{ | ||
10585 | s//\1/ | ||
10586 | q | ||
10587 | } | ||
10588 | s/.*/./; q'` | ||
10589 | test -d "$as_dir" && break | ||
10590 | done | ||
10591 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
10592 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
10593 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
10594 | { (exit 1); exit 1; }; }; } | ||
10595 | # echo "creating $dirpart/$file" | ||
10596 | echo '# dummy' > "$dirpart/$file" | ||
10597 | done | ||
10598 | done | ||
10599 | ;; | ||
10600 | "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) | ||
10601 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | ||
10602 | esac ;; | ||
10603 | |||
10604 | esac | ||
10605 | done # for ac_tag | ||
10606 | |||
10607 | |||
10608 | { (exit 0); exit 0; } | ||
10609 | _ACEOF | ||
10610 | chmod +x $CONFIG_STATUS | ||
10611 | ac_clean_files=$ac_clean_files_save | ||
10612 | |||
10613 | |||
10614 | # configure is writing to config.log, and then calls config.status. | ||
10615 | # config.status does its own redirection, appending to config.log. | ||
10616 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
10617 | # by configure, so config.status won't be able to write to it; its | ||
10618 | # output is simply discarded. So we exec the FD to /dev/null, | ||
10619 | # effectively closing config.log, so it can be properly (re)opened and | ||
10620 | # appended to by config.status. When coming back to configure, we | ||
10621 | # need to make the FD available again. | ||
10622 | if test "$no_create" != yes; then | ||
10623 | ac_cs_success=: | ||
10624 | ac_config_status_args= | ||
10625 | test "$silent" = yes && | ||
10626 | ac_config_status_args="$ac_config_status_args --quiet" | ||
10627 | exec 5>/dev/null | ||
10628 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
10629 | exec 5>>config.log | ||
10630 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
10631 | # would make configure fail if this is the last instruction. | ||
10632 | $ac_cs_success || { (exit 1); exit 1; } | ||
10633 | fi | ||
10634 | |||
10635 | |||
10636 | |||