Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
3 | # Generated by GNU Autoconf 2.63 for jbig2dec 0.11. |
||
4 | # |
||
5 | # Report bugs to |
||
6 | # |
||
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
||
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
||
9 | # This configure script is free software; the Free Software Foundation |
||
10 | # gives unlimited permission to copy, distribute and modify it. |
||
11 | ## --------------------- ## |
||
12 | ## M4sh Initialization. ## |
||
13 | ## --------------------- ## |
||
14 | |||
15 | # Be more Bourne compatible |
||
16 | DUALCASE=1; export DUALCASE # for MKS sh |
||
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
18 | emulate sh |
||
19 | NULLCMD=: |
||
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
21 | # is contrary to our usage. Disable this feature. |
||
22 | alias -g '${1+"$@"}'='"$@"' |
||
23 | setopt NO_GLOB_SUBST |
||
24 | else |
||
25 | case `(set -o) 2>/dev/null` in |
||
26 | *posix*) set -o posix ;; |
||
27 | esac |
||
28 | |||
29 | fi |
||
30 | |||
31 | |||
32 | |||
33 | |||
34 | # PATH needs CR |
||
35 | # Avoid depending upon Character Ranges. |
||
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
39 | as_cr_digits='0123456789' |
||
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
41 | |||
42 | as_nl=' |
||
43 | ' |
||
44 | export as_nl |
||
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
50 | as_echo='printf %s\n' |
||
51 | as_echo_n='printf %s' |
||
52 | else |
||
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
55 | as_echo_n='/usr/ucb/echo -n' |
||
56 | else |
||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
58 | as_echo_n_body='eval |
||
59 | arg=$1; |
||
60 | case $arg in |
||
61 | *"$as_nl"*) |
||
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
64 | esac; |
||
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
66 | ' |
||
67 | export as_echo_n_body |
||
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
69 | fi |
||
70 | export as_echo_body |
||
71 | as_echo='sh -c $as_echo_body as_echo' |
||
72 | fi |
||
73 | |||
74 | # The user is always right. |
||
75 | if test "${PATH_SEPARATOR+set}" != set; then |
||
76 | PATH_SEPARATOR=: |
||
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
79 | PATH_SEPARATOR=';' |
||
80 | } |
||
81 | fi |
||
82 | |||
83 | # Support unset when possible. |
||
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
85 | as_unset=unset |
||
86 | else |
||
87 | as_unset=false |
||
88 | fi |
||
89 | |||
90 | |||
91 | # IFS |
||
92 | # We need space, tab and new line, in precisely that order. Quoting is |
||
93 | # there to prevent editors from complaining about space-tab. |
||
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
95 | # splitting by setting IFS to empty value.) |
||
96 | IFS=" "" $as_nl" |
||
97 | |||
98 | # Find who we are. Look in the path if we contain no directory separator. |
||
99 | case $0 in |
||
100 | *[\\/]* ) as_myself=$0 ;; |
||
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
102 | for as_dir in $PATH |
||
103 | do |
||
104 | IFS=$as_save_IFS |
||
105 | test -z "$as_dir" && as_dir=. |
||
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
107 | done |
||
108 | IFS=$as_save_IFS |
||
109 | |||
110 | ;; |
||
111 | esac |
||
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
113 | # in which case we are not to be found in the path. |
||
114 | if test "x$as_myself" = x; then |
||
115 | as_myself=$0 |
||
116 | fi |
||
117 | if test ! -f "$as_myself"; then |
||
118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
119 | { (exit 1); exit 1; } |
||
120 | fi |
||
121 | |||
122 | # Work around bugs in pre-3.0 UWIN ksh. |
||
123 | for as_var in ENV MAIL MAILPATH |
||
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
125 | done |
||
126 | PS1='$ ' |
||
127 | PS2='> ' |
||
128 | PS4='+ ' |
||
129 | |||
130 | # NLS nuisances. |
||
131 | LC_ALL=C |
||
132 | export LC_ALL |
||
133 | LANGUAGE=C |
||
134 | export LANGUAGE |
||
135 | |||
136 | # Required to use basename. |
||
137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
139 | as_expr=expr |
||
140 | else |
||
141 | as_expr=false |
||
142 | fi |
||
143 | |||
144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
145 | as_basename=basename |
||
146 | else |
||
147 | as_basename=false |
||
148 | fi |
||
149 | |||
150 | |||
151 | # Name of the executable. |
||
152 | as_me=`$as_basename -- "$0" || |
||
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
154 | X"$0" : 'X\(//\)$' \| \ |
||
155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
156 | $as_echo X/"$0" | |
||
157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
158 | s//\1/ |
||
159 | q |
||
160 | } |
||
161 | /^X\/\(\/\/\)$/{ |
||
162 | s//\1/ |
||
163 | q |
||
164 | } |
||
165 | /^X\/\(\/\).*/{ |
||
166 | s//\1/ |
||
167 | q |
||
168 | } |
||
169 | s/.*/./; q'` |
||
170 | |||
171 | # CDPATH. |
||
172 | $as_unset CDPATH |
||
173 | |||
174 | |||
175 | if test "x$CONFIG_SHELL" = x; then |
||
176 | if (eval ":") 2>/dev/null; then |
||
177 | as_have_required=yes |
||
178 | else |
||
179 | as_have_required=no |
||
180 | fi |
||
181 | |||
182 | if test $as_have_required = yes && (eval ": |
||
183 | (as_func_return () { |
||
184 | (exit \$1) |
||
185 | } |
||
186 | as_func_success () { |
||
187 | as_func_return 0 |
||
188 | } |
||
189 | as_func_failure () { |
||
190 | as_func_return 1 |
||
191 | } |
||
192 | as_func_ret_success () { |
||
193 | return 0 |
||
194 | } |
||
195 | as_func_ret_failure () { |
||
196 | return 1 |
||
197 | } |
||
198 | |||
199 | exitcode=0 |
||
200 | if as_func_success; then |
||
201 | : |
||
202 | else |
||
203 | exitcode=1 |
||
204 | echo as_func_success failed. |
||
205 | fi |
||
206 | |||
207 | if as_func_failure; then |
||
208 | exitcode=1 |
||
209 | echo as_func_failure succeeded. |
||
210 | fi |
||
211 | |||
212 | if as_func_ret_success; then |
||
213 | : |
||
214 | else |
||
215 | exitcode=1 |
||
216 | echo as_func_ret_success failed. |
||
217 | fi |
||
218 | |||
219 | if as_func_ret_failure; then |
||
220 | exitcode=1 |
||
221 | echo as_func_ret_failure succeeded. |
||
222 | fi |
||
223 | |||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
||
225 | : |
||
226 | else |
||
227 | exitcode=1 |
||
228 | echo positional parameters were not saved. |
||
229 | fi |
||
230 | |||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } |
||
232 | |||
233 | ( |
||
234 | as_lineno_1=\$LINENO |
||
235 | as_lineno_2=\$LINENO |
||
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
||
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
||
238 | ") 2> /dev/null; then |
||
239 | : |
||
240 | else |
||
241 | as_candidate_shells= |
||
242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
244 | do |
||
245 | IFS=$as_save_IFS |
||
246 | test -z "$as_dir" && as_dir=. |
||
247 | case $as_dir in |
||
248 | /*) |
||
249 | for as_base in sh bash ksh sh5; do |
||
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
||
251 | done;; |
||
252 | esac |
||
253 | done |
||
254 | IFS=$as_save_IFS |
||
255 | |||
256 | |||
257 | for as_shell in $as_candidate_shells $SHELL; do |
||
258 | # Try only shells that exist, to save several forks. |
||
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
||
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
||
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
262 | emulate sh |
||
263 | NULLCMD=: |
||
264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
265 | # is contrary to our usage. Disable this feature. |
||
266 | alias -g '${1+"$@"}'='"$@"' |
||
267 | setopt NO_GLOB_SUBST |
||
268 | else |
||
269 | case `(set -o) 2>/dev/null` in |
||
270 | *posix*) set -o posix ;; |
||
271 | esac |
||
272 | |||
273 | fi |
||
274 | |||
275 | |||
276 | : |
||
277 | _ASEOF |
||
278 | }; then |
||
279 | CONFIG_SHELL=$as_shell |
||
280 | as_have_required=yes |
||
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
||
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
283 | emulate sh |
||
284 | NULLCMD=: |
||
285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
286 | # is contrary to our usage. Disable this feature. |
||
287 | alias -g '${1+"$@"}'='"$@"' |
||
288 | setopt NO_GLOB_SUBST |
||
289 | else |
||
290 | case `(set -o) 2>/dev/null` in |
||
291 | *posix*) set -o posix ;; |
||
292 | esac |
||
293 | |||
294 | fi |
||
295 | |||
296 | |||
297 | : |
||
298 | (as_func_return () { |
||
299 | (exit $1) |
||
300 | } |
||
301 | as_func_success () { |
||
302 | as_func_return 0 |
||
303 | } |
||
304 | as_func_failure () { |
||
305 | as_func_return 1 |
||
306 | } |
||
307 | as_func_ret_success () { |
||
308 | return 0 |
||
309 | } |
||
310 | as_func_ret_failure () { |
||
311 | return 1 |
||
312 | } |
||
313 | |||
314 | exitcode=0 |
||
315 | if as_func_success; then |
||
316 | : |
||
317 | else |
||
318 | exitcode=1 |
||
319 | echo as_func_success failed. |
||
320 | fi |
||
321 | |||
322 | if as_func_failure; then |
||
323 | exitcode=1 |
||
324 | echo as_func_failure succeeded. |
||
325 | fi |
||
326 | |||
327 | if as_func_ret_success; then |
||
328 | : |
||
329 | else |
||
330 | exitcode=1 |
||
331 | echo as_func_ret_success failed. |
||
332 | fi |
||
333 | |||
334 | if as_func_ret_failure; then |
||
335 | exitcode=1 |
||
336 | echo as_func_ret_failure succeeded. |
||
337 | fi |
||
338 | |||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
||
340 | : |
||
341 | else |
||
342 | exitcode=1 |
||
343 | echo positional parameters were not saved. |
||
344 | fi |
||
345 | |||
346 | test $exitcode = 0) || { (exit 1); exit 1; } |
||
347 | |||
348 | ( |
||
349 | as_lineno_1=$LINENO |
||
350 | as_lineno_2=$LINENO |
||
351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
||
353 | |||
354 | _ASEOF |
||
355 | }; then |
||
356 | break |
||
357 | fi |
||
358 | |||
359 | fi |
||
360 | |||
361 | done |
||
362 | |||
363 | if test "x$CONFIG_SHELL" != x; then |
||
364 | for as_var in BASH_ENV ENV |
||
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
366 | done |
||
367 | export CONFIG_SHELL |
||
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
||
369 | fi |
||
370 | |||
371 | |||
372 | if test $as_have_required = no; then |
||
373 | echo This script requires a shell more modern than all the |
||
374 | echo shells that I found on your system. Please install a |
||
375 | echo modern shell, or manually run the script under such a |
||
376 | echo shell if you do have one. |
||
377 | { (exit 1); exit 1; } |
||
378 | fi |
||
379 | |||
380 | |||
381 | fi |
||
382 | |||
383 | fi |
||
384 | |||
385 | |||
386 | |||
387 | (eval "as_func_return () { |
||
388 | (exit \$1) |
||
389 | } |
||
390 | as_func_success () { |
||
391 | as_func_return 0 |
||
392 | } |
||
393 | as_func_failure () { |
||
394 | as_func_return 1 |
||
395 | } |
||
396 | as_func_ret_success () { |
||
397 | return 0 |
||
398 | } |
||
399 | as_func_ret_failure () { |
||
400 | return 1 |
||
401 | } |
||
402 | |||
403 | exitcode=0 |
||
404 | if as_func_success; then |
||
405 | : |
||
406 | else |
||
407 | exitcode=1 |
||
408 | echo as_func_success failed. |
||
409 | fi |
||
410 | |||
411 | if as_func_failure; then |
||
412 | exitcode=1 |
||
413 | echo as_func_failure succeeded. |
||
414 | fi |
||
415 | |||
416 | if as_func_ret_success; then |
||
417 | : |
||
418 | else |
||
419 | exitcode=1 |
||
420 | echo as_func_ret_success failed. |
||
421 | fi |
||
422 | |||
423 | if as_func_ret_failure; then |
||
424 | exitcode=1 |
||
425 | echo as_func_ret_failure succeeded. |
||
426 | fi |
||
427 | |||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
||
429 | : |
||
430 | else |
||
431 | exitcode=1 |
||
432 | echo positional parameters were not saved. |
||
433 | fi |
||
434 | |||
435 | test \$exitcode = 0") || { |
||
436 | echo No shell found that supports shell functions. |
||
437 | echo Please tell bug-autoconf@gnu.org about your system, |
||
438 | echo including any error possibly output before this message. |
||
439 | echo This can help us improve future autoconf versions. |
||
440 | echo Configuration will now proceed without shell functions. |
||
441 | } |
||
442 | |||
443 | |||
444 | |||
445 | as_lineno_1=$LINENO |
||
446 | as_lineno_2=$LINENO |
||
447 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
||
449 | |||
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
451 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
452 | # line-number line after each line using $LINENO; the second 'sed' |
||
453 | # does the real work. The second script uses 'N' to pair each |
||
454 | # line-number line with the line containing $LINENO, and appends |
||
455 | # trailing '-' during substitution so that $LINENO is not a special |
||
456 | # case at line end. |
||
457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
||
459 | # E. McMahon (1931-1989) for sed's syntax. :-) |
||
460 | sed -n ' |
||
461 | p |
||
462 | /[$]LINENO/= |
||
463 | ' <$as_myself | |
||
464 | sed ' |
||
465 | s/[$]LINENO.*/&-/ |
||
466 | t lineno |
||
467 | b |
||
468 | :lineno |
||
469 | N |
||
470 | :loop |
||
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
472 | t loop |
||
473 | s/-\n.*// |
||
474 | ' >$as_me.lineno && |
||
475 | chmod +x "$as_me.lineno" || |
||
476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
||
477 | { (exit 1); exit 1; }; } |
||
478 | |||
479 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
480 | # (the dirname of $[0] is not the place where we might find the |
||
481 | # original and so on. Autoconf is especially sensitive to this). |
||
482 | . "./$as_me.lineno" |
||
483 | # Exit status is that of the last command. |
||
484 | exit |
||
485 | } |
||
486 | |||
487 | |||
488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
489 | as_dirname=dirname |
||
490 | else |
||
491 | as_dirname=false |
||
492 | fi |
||
493 | |||
494 | ECHO_C= ECHO_N= ECHO_T= |
||
495 | case `echo -n x` in |
||
496 | -n*) |
||
497 | case `echo 'x\c'` in |
||
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
499 | *) ECHO_C='\c';; |
||
500 | esac;; |
||
501 | *) |
||
502 | ECHO_N='-n';; |
||
503 | esac |
||
504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
506 | as_expr=expr |
||
507 | else |
||
508 | as_expr=false |
||
509 | fi |
||
510 | |||
511 | rm -f conf$$ conf$$.exe conf$$.file |
||
512 | if test -d conf$$.dir; then |
||
513 | rm -f conf$$.dir/conf$$.file |
||
514 | else |
||
515 | rm -f conf$$.dir |
||
516 | mkdir conf$$.dir 2>/dev/null |
||
517 | fi |
||
518 | if (echo >conf$$.file) 2>/dev/null; then |
||
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
520 | as_ln_s='ln -s' |
||
521 | # ... but there are two gotchas: |
||
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
524 | # In both cases, we have to default to `cp -p'. |
||
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
526 | as_ln_s='cp -p' |
||
527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
528 | as_ln_s=ln |
||
529 | else |
||
530 | as_ln_s='cp -p' |
||
531 | fi |
||
532 | else |
||
533 | as_ln_s='cp -p' |
||
534 | fi |
||
535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
536 | rmdir conf$$.dir 2>/dev/null |
||
537 | |||
538 | if mkdir -p . 2>/dev/null; then |
||
539 | as_mkdir_p=: |
||
540 | else |
||
541 | test -d ./-p && rmdir ./-p |
||
542 | as_mkdir_p=false |
||
543 | fi |
||
544 | |||
545 | if test -x / >/dev/null 2>&1; then |
||
546 | as_test_x='test -x' |
||
547 | else |
||
548 | if ls -dL / >/dev/null 2>&1; then |
||
549 | as_ls_L_option=L |
||
550 | else |
||
551 | as_ls_L_option= |
||
552 | fi |
||
553 | as_test_x=' |
||
554 | eval sh -c '\'' |
||
555 | if test -d "$1"; then |
||
556 | test -d "$1/."; |
||
557 | else |
||
558 | case $1 in |
||
559 | -*)set "./$1";; |
||
560 | esac; |
||
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
||
562 | ???[sx]*):;;*)false;;esac;fi |
||
563 | '\'' sh |
||
564 | ' |
||
565 | fi |
||
566 | as_executable_p=$as_test_x |
||
567 | |||
568 | # Sed expression to map a string onto a valid CPP name. |
||
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
570 | |||
571 | # Sed expression to map a string onto a valid variable name. |
||
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
573 | |||
574 | |||
575 | |||
576 | |||
577 | # Check that we are running under the correct shell. |
||
578 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
579 | |||
580 | case X$lt_ECHO in |
||
581 | X*--fallback-echo) |
||
582 | # Remove one level of quotation (which was required for Make). |
||
583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
||
584 | ;; |
||
585 | esac |
||
586 | |||
587 | ECHO=${lt_ECHO-echo} |
||
588 | if test "X$1" = X--no-reexec; then |
||
589 | # Discard the --no-reexec flag, and continue. |
||
590 | shift |
||
591 | elif test "X$1" = X--fallback-echo; then |
||
592 | # Avoid inline document here, it may be left over |
||
593 | : |
||
594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
||
595 | # Yippee, $ECHO works! |
||
596 | : |
||
597 | else |
||
598 | # Restart under the correct shell. |
||
599 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
||
600 | fi |
||
601 | |||
602 | if test "X$1" = X--fallback-echo; then |
||
603 | # used as fallback echo |
||
604 | shift |
||
605 | cat <<_LT_EOF |
||
606 | $* |
||
607 | _LT_EOF |
||
608 | exit 0 |
||
609 | fi |
||
610 | |||
611 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
612 | # if CDPATH is set. |
||
613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
614 | |||
615 | if test -z "$lt_ECHO"; then |
||
616 | if test "X${echo_test_string+set}" != Xset; then |
||
617 | # find a string as large as possible, as long as the shell can cope with it |
||
618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
||
619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
||
620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
||
621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
||
622 | then |
||
623 | break |
||
624 | fi |
||
625 | done |
||
626 | fi |
||
627 | |||
628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
||
629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
||
630 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
631 | : |
||
632 | else |
||
633 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
||
634 | # backslashes. This makes it impossible to quote backslashes using |
||
635 | # echo "$something" | sed 's/\\/\\\\/g' |
||
636 | # |
||
637 | # So, first we look for a working echo in the user's PATH. |
||
638 | |||
639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
640 | for dir in $PATH /usr/ucb; do |
||
641 | IFS="$lt_save_ifs" |
||
642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
||
643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
||
644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
||
645 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
646 | ECHO="$dir/echo" |
||
647 | break |
||
648 | fi |
||
649 | done |
||
650 | IFS="$lt_save_ifs" |
||
651 | |||
652 | if test "X$ECHO" = Xecho; then |
||
653 | # We didn't find a better echo, so look for alternatives. |
||
654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
||
655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
||
656 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
657 | # This shell has a builtin print -r that does the trick. |
||
658 | ECHO='print -r' |
||
659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
||
660 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
||
661 | # If we have ksh, try running configure again with it. |
||
662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
||
663 | export ORIGINAL_CONFIG_SHELL |
||
664 | CONFIG_SHELL=/bin/ksh |
||
665 | export CONFIG_SHELL |
||
666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
||
667 | else |
||
668 | # Try using printf. |
||
669 | ECHO='printf %s\n' |
||
670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
||
671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
||
672 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
673 | # Cool, printf works |
||
674 | : |
||
675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
||
676 | test "X$echo_testing_string" = 'X\t' && |
||
677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
||
678 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
||
680 | export CONFIG_SHELL |
||
681 | SHELL="$CONFIG_SHELL" |
||
682 | export SHELL |
||
683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
||
684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
||
685 | test "X$echo_testing_string" = 'X\t' && |
||
686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
||
687 | test "X$echo_testing_string" = "X$echo_test_string"; then |
||
688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
||
689 | else |
||
690 | # maybe with a smaller string... |
||
691 | prev=: |
||
692 | |||
693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
||
694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
||
695 | then |
||
696 | break |
||
697 | fi |
||
698 | prev="$cmd" |
||
699 | done |
||
700 | |||
701 | if test "$prev" != 'sed 50q "$0"'; then |
||
702 | echo_test_string=`eval $prev` |
||
703 | export echo_test_string |
||
704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
||
705 | else |
||
706 | # Oops. We lost completely, so just stick with echo. |
||
707 | ECHO=echo |
||
708 | fi |
||
709 | fi |
||
710 | fi |
||
711 | fi |
||
712 | fi |
||
713 | fi |
||
714 | |||
715 | # Copy echo and quote the copy suitably for passing to libtool from |
||
716 | # the Makefile, instead of quoting the original, which is used later. |
||
717 | lt_ECHO=$ECHO |
||
718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
||
719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
||
720 | fi |
||
721 | |||
722 | |||
723 | |||
724 | |||
725 | exec 7<&0 &1 |
||
726 | |||
727 | # Name of the host. |
||
728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
||
729 | # so uname gets run too. |
||
730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
731 | |||
732 | # |
||
733 | # Initializations. |
||
734 | # |
||
735 | ac_default_prefix=/usr/local |
||
736 | ac_clean_files= |
||
737 | ac_config_libobj_dir=. |
||
738 | LIBOBJS= |
||
739 | cross_compiling=no |
||
740 | subdirs= |
||
741 | MFLAGS= |
||
742 | MAKEFLAGS= |
||
743 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
744 | |||
745 | # Identity of this package. |
||
746 | PACKAGE_NAME='jbig2dec' |
||
747 | PACKAGE_TARNAME='jbig2dec' |
||
748 | PACKAGE_VERSION='0.11' |
||
749 | PACKAGE_STRING='jbig2dec 0.11' |
||
750 | PACKAGE_BUGREPORT='jbig2-dev@ghostscript.com' |
||
751 | |||
752 | ac_unique_file="jbig2dec.c" |
||
753 | # Factoring default headers for most tests. |
||
754 | ac_includes_default="\ |
||
755 | #include |
||
756 | #ifdef HAVE_SYS_TYPES_H |
||
757 | # include |
||
758 | #endif |
||
759 | #ifdef HAVE_SYS_STAT_H |
||
760 | # include |
||
761 | #endif |
||
762 | #ifdef STDC_HEADERS |
||
763 | # include |
||
764 | # include |
||
765 | #else |
||
766 | # ifdef HAVE_STDLIB_H |
||
767 | # include |
||
768 | # endif |
||
769 | #endif |
||
770 | #ifdef HAVE_STRING_H |
||
771 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
||
772 | # include |
||
773 | # endif |
||
774 | # include |
||
775 | #endif |
||
776 | #ifdef HAVE_STRINGS_H |
||
777 | # include |
||
778 | #endif |
||
779 | #ifdef HAVE_INTTYPES_H |
||
780 | # include |
||
781 | #endif |
||
782 | #ifdef HAVE_STDINT_H |
||
783 | # include |
||
784 | #endif |
||
785 | #ifdef HAVE_UNISTD_H |
||
786 | # include |
||
787 | #endif" |
||
788 | |||
789 | ac_subst_vars='LTLIBOBJS |
||
790 | JBIG2_STDINT_H |
||
791 | JBIG2_INT8_T |
||
792 | JBIG2_INT16_T |
||
793 | JBIG2_INT32_T |
||
794 | LIBOBJS |
||
795 | CPP |
||
796 | OTOOL64 |
||
797 | OTOOL |
||
798 | LIPO |
||
799 | NMEDIT |
||
800 | DSYMUTIL |
||
801 | lt_ECHO |
||
802 | RANLIB |
||
803 | AR |
||
804 | OBJDUMP |
||
805 | LN_S |
||
806 | NM |
||
807 | ac_ct_DUMPBIN |
||
808 | DUMPBIN |
||
809 | LD |
||
810 | FGREP |
||
811 | EGREP |
||
812 | GREP |
||
813 | SED |
||
814 | host_os |
||
815 | host_vendor |
||
816 | host_cpu |
||
817 | host |
||
818 | build_os |
||
819 | build_vendor |
||
820 | build_cpu |
||
821 | build |
||
822 | LIBTOOL |
||
823 | am__fastdepCC_FALSE |
||
824 | am__fastdepCC_TRUE |
||
825 | CCDEPMODE |
||
826 | AMDEPBACKSLASH |
||
827 | AMDEP_FALSE |
||
828 | AMDEP_TRUE |
||
829 | am__quote |
||
830 | am__include |
||
831 | DEPDIR |
||
832 | OBJEXT |
||
833 | EXEEXT |
||
834 | ac_ct_CC |
||
835 | CPPFLAGS |
||
836 | LDFLAGS |
||
837 | CFLAGS |
||
838 | CC |
||
839 | JBIG2DEC_LT_AGE |
||
840 | JBIG2DEC_LT_REVISION |
||
841 | JBIG2DEC_LT_CURRENT |
||
842 | am__leading_dot |
||
843 | SET_MAKE |
||
844 | AWK |
||
845 | INSTALL_STRIP_PROGRAM |
||
846 | STRIP |
||
847 | install_sh |
||
848 | AMTAR |
||
849 | MAKEINFO |
||
850 | AUTOHEADER |
||
851 | AUTOMAKE |
||
852 | AUTOCONF |
||
853 | ACLOCAL |
||
854 | VERSION |
||
855 | PACKAGE |
||
856 | CYGPATH_W |
||
857 | INSTALL_DATA |
||
858 | INSTALL_SCRIPT |
||
859 | INSTALL_PROGRAM |
||
860 | target_alias |
||
861 | host_alias |
||
862 | build_alias |
||
863 | LIBS |
||
864 | ECHO_T |
||
865 | ECHO_N |
||
866 | ECHO_C |
||
867 | DEFS |
||
868 | mandir |
||
869 | localedir |
||
870 | libdir |
||
871 | psdir |
||
872 | pdfdir |
||
873 | dvidir |
||
874 | htmldir |
||
875 | infodir |
||
876 | docdir |
||
877 | oldincludedir |
||
878 | includedir |
||
879 | localstatedir |
||
880 | sharedstatedir |
||
881 | sysconfdir |
||
882 | datadir |
||
883 | datarootdir |
||
884 | libexecdir |
||
885 | sbindir |
||
886 | bindir |
||
887 | program_transform_name |
||
888 | prefix |
||
889 | exec_prefix |
||
890 | PACKAGE_BUGREPORT |
||
891 | PACKAGE_STRING |
||
892 | PACKAGE_VERSION |
||
893 | PACKAGE_TARNAME |
||
894 | PACKAGE_NAME |
||
895 | PATH_SEPARATOR |
||
896 | SHELL' |
||
897 | ac_subst_files='' |
||
898 | ac_user_opts=' |
||
899 | enable_option_checking |
||
900 | enable_dependency_tracking |
||
901 | enable_shared |
||
902 | enable_static |
||
903 | with_pic |
||
904 | enable_fast_install |
||
905 | with_gnu_ld |
||
906 | enable_libtool_lock |
||
907 | with_libpng |
||
908 | ' |
||
909 | ac_precious_vars='build_alias |
||
910 | host_alias |
||
911 | target_alias |
||
912 | CC |
||
913 | CFLAGS |
||
914 | LDFLAGS |
||
915 | LIBS |
||
916 | CPPFLAGS |
||
917 | CPP' |
||
918 | |||
919 | |||
920 | # Initialize some variables set by options. |
||
921 | ac_init_help= |
||
922 | ac_init_version=false |
||
923 | ac_unrecognized_opts= |
||
924 | ac_unrecognized_sep= |
||
925 | # The variables have the same names as the options, with |
||
926 | # dashes changed to underlines. |
||
927 | cache_file=/dev/null |
||
928 | exec_prefix=NONE |
||
929 | no_create= |
||
930 | no_recursion= |
||
931 | prefix=NONE |
||
932 | program_prefix=NONE |
||
933 | program_suffix=NONE |
||
934 | program_transform_name=s,x,x, |
||
935 | silent= |
||
936 | site= |
||
937 | srcdir= |
||
938 | verbose= |
||
939 | x_includes=NONE |
||
940 | x_libraries=NONE |
||
941 | |||
942 | # Installation directory options. |
||
943 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
944 | # and all the variables that are supposed to be based on exec_prefix |
||
945 | # by default will actually change. |
||
946 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
947 | # (The list follows the same order as the GNU Coding Standards.) |
||
948 | bindir='${exec_prefix}/bin' |
||
949 | sbindir='${exec_prefix}/sbin' |
||
950 | libexecdir='${exec_prefix}/libexec' |
||
951 | datarootdir='${prefix}/share' |
||
952 | datadir='${datarootdir}' |
||
953 | sysconfdir='${prefix}/etc' |
||
954 | sharedstatedir='${prefix}/com' |
||
955 | localstatedir='${prefix}/var' |
||
956 | includedir='${prefix}/include' |
||
957 | oldincludedir='/usr/include' |
||
958 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
||
959 | infodir='${datarootdir}/info' |
||
960 | htmldir='${docdir}' |
||
961 | dvidir='${docdir}' |
||
962 | pdfdir='${docdir}' |
||
963 | psdir='${docdir}' |
||
964 | libdir='${exec_prefix}/lib' |
||
965 | localedir='${datarootdir}/locale' |
||
966 | mandir='${datarootdir}/man' |
||
967 | |||
968 | ac_prev= |
||
969 | ac_dashdash= |
||
970 | for ac_option |
||
971 | do |
||
972 | # If the previous option needs an argument, assign it. |
||
973 | if test -n "$ac_prev"; then |
||
974 | eval $ac_prev=\$ac_option |
||
975 | ac_prev= |
||
976 | continue |
||
977 | fi |
||
978 | |||
979 | case $ac_option in |
||
980 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
||
981 | *) ac_optarg=yes ;; |
||
982 | esac |
||
983 | |||
984 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
985 | |||
986 | case $ac_dashdash$ac_option in |
||
987 | --) |
||
988 | ac_dashdash=yes ;; |
||
989 | |||
990 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
991 | ac_prev=bindir ;; |
||
992 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
993 | bindir=$ac_optarg ;; |
||
994 | |||
995 | -build | --build | --buil | --bui | --bu) |
||
996 | ac_prev=build_alias ;; |
||
997 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
998 | build_alias=$ac_optarg ;; |
||
999 | |||
1000 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
1001 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
1002 | ac_prev=cache_file ;; |
||
1003 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
1004 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
1005 | cache_file=$ac_optarg ;; |
||
1006 | |||
1007 | --config-cache | -C) |
||
1008 | cache_file=config.cache ;; |
||
1009 | |||
1010 | -datadir | --datadir | --datadi | --datad) |
||
1011 | ac_prev=datadir ;; |
||
1012 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
||
1013 | datadir=$ac_optarg ;; |
||
1014 | |||
1015 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
||
1016 | | --dataroo | --dataro | --datar) |
||
1017 | ac_prev=datarootdir ;; |
||
1018 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
||
1019 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
||
1020 | datarootdir=$ac_optarg ;; |
||
1021 | |||
1022 | -disable-* | --disable-*) |
||
1023 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
1024 | # Reject names that are not valid shell variable names. |
||
1025 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1026 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
||
1027 | { (exit 1); exit 1; }; } |
||
1028 | ac_useropt_orig=$ac_useropt |
||
1029 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1030 | case $ac_user_opts in |
||
1031 | *" |
||
1032 | "enable_$ac_useropt" |
||
1033 | "*) ;; |
||
1034 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
||
1035 | ac_unrecognized_sep=', ';; |
||
1036 | esac |
||
1037 | eval enable_$ac_useropt=no ;; |
||
1038 | |||
1039 | -docdir | --docdir | --docdi | --doc | --do) |
||
1040 | ac_prev=docdir ;; |
||
1041 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
||
1042 | docdir=$ac_optarg ;; |
||
1043 | |||
1044 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
||
1045 | ac_prev=dvidir ;; |
||
1046 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
||
1047 | dvidir=$ac_optarg ;; |
||
1048 | |||
1049 | -enable-* | --enable-*) |
||
1050 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
1051 | # Reject names that are not valid shell variable names. |
||
1052 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1053 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
||
1054 | { (exit 1); exit 1; }; } |
||
1055 | ac_useropt_orig=$ac_useropt |
||
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1057 | case $ac_user_opts in |
||
1058 | *" |
||
1059 | "enable_$ac_useropt" |
||
1060 | "*) ;; |
||
1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
||
1062 | ac_unrecognized_sep=', ';; |
||
1063 | esac |
||
1064 | eval enable_$ac_useropt=\$ac_optarg ;; |
||
1065 | |||
1066 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
1067 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
1068 | | --exec | --exe | --ex) |
||
1069 | ac_prev=exec_prefix ;; |
||
1070 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
1071 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
1072 | | --exec=* | --exe=* | --ex=*) |
||
1073 | exec_prefix=$ac_optarg ;; |
||
1074 | |||
1075 | -gas | --gas | --ga | --g) |
||
1076 | # Obsolete; use --with-gas. |
||
1077 | with_gas=yes ;; |
||
1078 | |||
1079 | -help | --help | --hel | --he | -h) |
||
1080 | ac_init_help=long ;; |
||
1081 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
1082 | ac_init_help=recursive ;; |
||
1083 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
1084 | ac_init_help=short ;; |
||
1085 | |||
1086 | -host | --host | --hos | --ho) |
||
1087 | ac_prev=host_alias ;; |
||
1088 | -host=* | --host=* | --hos=* | --ho=*) |
||
1089 | host_alias=$ac_optarg ;; |
||
1090 | |||
1091 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
||
1092 | ac_prev=htmldir ;; |
||
1093 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
||
1094 | | --ht=*) |
||
1095 | htmldir=$ac_optarg ;; |
||
1096 | |||
1097 | -includedir | --includedir | --includedi | --included | --include \ |
||
1098 | | --includ | --inclu | --incl | --inc) |
||
1099 | ac_prev=includedir ;; |
||
1100 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
1101 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
1102 | includedir=$ac_optarg ;; |
||
1103 | |||
1104 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
1105 | ac_prev=infodir ;; |
||
1106 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
1107 | infodir=$ac_optarg ;; |
||
1108 | |||
1109 | -libdir | --libdir | --libdi | --libd) |
||
1110 | ac_prev=libdir ;; |
||
1111 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
1112 | libdir=$ac_optarg ;; |
||
1113 | |||
1114 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
1115 | | --libexe | --libex | --libe) |
||
1116 | ac_prev=libexecdir ;; |
||
1117 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
1118 | | --libexe=* | --libex=* | --libe=*) |
||
1119 | libexecdir=$ac_optarg ;; |
||
1120 | |||
1121 | -localedir | --localedir | --localedi | --localed | --locale) |
||
1122 | ac_prev=localedir ;; |
||
1123 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
||
1124 | localedir=$ac_optarg ;; |
||
1125 | |||
1126 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
1127 | | --localstate | --localstat | --localsta | --localst | --locals) |
||
1128 | ac_prev=localstatedir ;; |
||
1129 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
1130 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
||
1131 | localstatedir=$ac_optarg ;; |
||
1132 | |||
1133 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
1134 | ac_prev=mandir ;; |
||
1135 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
1136 | mandir=$ac_optarg ;; |
||
1137 | |||
1138 | -nfp | --nfp | --nf) |
||
1139 | # Obsolete; use --without-fp. |
||
1140 | with_fp=no ;; |
||
1141 | |||
1142 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
1143 | | --no-cr | --no-c | -n) |
||
1144 | no_create=yes ;; |
||
1145 | |||
1146 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
1147 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
1148 | no_recursion=yes ;; |
||
1149 | |||
1150 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
1151 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
1152 | | --oldin | --oldi | --old | --ol | --o) |
||
1153 | ac_prev=oldincludedir ;; |
||
1154 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
1155 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
1156 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
1157 | oldincludedir=$ac_optarg ;; |
||
1158 | |||
1159 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
1160 | ac_prev=prefix ;; |
||
1161 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
1162 | prefix=$ac_optarg ;; |
||
1163 | |||
1164 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
1165 | | --program-pre | --program-pr | --program-p) |
||
1166 | ac_prev=program_prefix ;; |
||
1167 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
1168 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
1169 | program_prefix=$ac_optarg ;; |
||
1170 | |||
1171 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
1172 | | --program-suf | --program-su | --program-s) |
||
1173 | ac_prev=program_suffix ;; |
||
1174 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
1175 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
1176 | program_suffix=$ac_optarg ;; |
||
1177 | |||
1178 | -program-transform-name | --program-transform-name \ |
||
1179 | | --program-transform-nam | --program-transform-na \ |
||
1180 | | --program-transform-n | --program-transform- \ |
||
1181 | | --program-transform | --program-transfor \ |
||
1182 | | --program-transfo | --program-transf \ |
||
1183 | | --program-trans | --program-tran \ |
||
1184 | | --progr-tra | --program-tr | --program-t) |
||
1185 | ac_prev=program_transform_name ;; |
||
1186 | -program-transform-name=* | --program-transform-name=* \ |
||
1187 | | --program-transform-nam=* | --program-transform-na=* \ |
||
1188 | | --program-transform-n=* | --program-transform-=* \ |
||
1189 | | --program-transform=* | --program-transfor=* \ |
||
1190 | | --program-transfo=* | --program-transf=* \ |
||
1191 | | --program-trans=* | --program-tran=* \ |
||
1192 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
1193 | program_transform_name=$ac_optarg ;; |
||
1194 | |||
1195 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
||
1196 | ac_prev=pdfdir ;; |
||
1197 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
||
1198 | pdfdir=$ac_optarg ;; |
||
1199 | |||
1200 | -psdir | --psdir | --psdi | --psd | --ps) |
||
1201 | ac_prev=psdir ;; |
||
1202 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
||
1203 | psdir=$ac_optarg ;; |
||
1204 | |||
1205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1206 | | -silent | --silent | --silen | --sile | --sil) |
||
1207 | silent=yes ;; |
||
1208 | |||
1209 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
1210 | ac_prev=sbindir ;; |
||
1211 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
1212 | | --sbi=* | --sb=*) |
||
1213 | sbindir=$ac_optarg ;; |
||
1214 | |||
1215 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
1216 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
1217 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
1218 | | --sha | --sh) |
||
1219 | ac_prev=sharedstatedir ;; |
||
1220 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
1221 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
1222 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
1223 | | --sha=* | --sh=*) |
||
1224 | sharedstatedir=$ac_optarg ;; |
||
1225 | |||
1226 | -site | --site | --sit) |
||
1227 | ac_prev=site ;; |
||
1228 | -site=* | --site=* | --sit=*) |
||
1229 | site=$ac_optarg ;; |
||
1230 | |||
1231 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
1232 | ac_prev=srcdir ;; |
||
1233 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
1234 | srcdir=$ac_optarg ;; |
||
1235 | |||
1236 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
1237 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
1238 | ac_prev=sysconfdir ;; |
||
1239 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
1240 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
1241 | sysconfdir=$ac_optarg ;; |
||
1242 | |||
1243 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
1244 | ac_prev=target_alias ;; |
||
1245 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
1246 | target_alias=$ac_optarg ;; |
||
1247 | |||
1248 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
1249 | verbose=yes ;; |
||
1250 | |||
1251 | -version | --version | --versio | --versi | --vers | -V) |
||
1252 | ac_init_version=: ;; |
||
1253 | |||
1254 | -with-* | --with-*) |
||
1255 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
1256 | # Reject names that are not valid shell variable names. |
||
1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1258 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
||
1259 | { (exit 1); exit 1; }; } |
||
1260 | ac_useropt_orig=$ac_useropt |
||
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1262 | case $ac_user_opts in |
||
1263 | *" |
||
1264 | "with_$ac_useropt" |
||
1265 | "*) ;; |
||
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
||
1267 | ac_unrecognized_sep=', ';; |
||
1268 | esac |
||
1269 | eval with_$ac_useropt=\$ac_optarg ;; |
||
1270 | |||
1271 | -without-* | --without-*) |
||
1272 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
1273 | # Reject names that are not valid shell variable names. |
||
1274 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1275 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
||
1276 | { (exit 1); exit 1; }; } |
||
1277 | ac_useropt_orig=$ac_useropt |
||
1278 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1279 | case $ac_user_opts in |
||
1280 | *" |
||
1281 | "with_$ac_useropt" |
||
1282 | "*) ;; |
||
1283 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
||
1284 | ac_unrecognized_sep=', ';; |
||
1285 | esac |
||
1286 | eval with_$ac_useropt=no ;; |
||
1287 | |||
1288 | --x) |
||
1289 | # Obsolete; use --with-x. |
||
1290 | with_x=yes ;; |
||
1291 | |||
1292 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
1293 | | --x-incl | --x-inc | --x-in | --x-i) |
||
1294 | ac_prev=x_includes ;; |
||
1295 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
1296 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
1297 | x_includes=$ac_optarg ;; |
||
1298 | |||
1299 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
1300 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
1301 | ac_prev=x_libraries ;; |
||
1302 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
1303 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
1304 | x_libraries=$ac_optarg ;; |
||
1305 | |||
1306 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
||
1307 | Try \`$0 --help' for more information." >&2 |
||
1308 | { (exit 1); exit 1; }; } |
||
1309 | ;; |
||
1310 | |||
1311 | *=*) |
||
1312 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
1313 | # Reject names that are not valid shell variable names. |
||
1314 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
||
1315 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
||
1316 | { (exit 1); exit 1; }; } |
||
1317 | eval $ac_envvar=\$ac_optarg |
||
1318 | export $ac_envvar ;; |
||
1319 | |||
1320 | *) |
||
1321 | # FIXME: should be removed in autoconf 3.0. |
||
1322 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
1323 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1324 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
1325 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
||
1326 | ;; |
||
1327 | |||
1328 | esac |
||
1329 | done |
||
1330 | |||
1331 | if test -n "$ac_prev"; then |
||
1332 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
1333 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
||
1334 | { (exit 1); exit 1; }; } |
||
1335 | fi |
||
1336 | |||
1337 | if test -n "$ac_unrecognized_opts"; then |
||
1338 | case $enable_option_checking in |
||
1339 | no) ;; |
||
1340 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
||
1341 | { (exit 1); exit 1; }; } ;; |
||
1342 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
||
1343 | esac |
||
1344 | fi |
||
1345 | |||
1346 | # Check all directory arguments for consistency. |
||
1347 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
||
1348 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
||
1349 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
||
1350 | libdir localedir mandir |
||
1351 | do |
||
1352 | eval ac_val=\$$ac_var |
||
1353 | # Remove trailing slashes. |
||
1354 | case $ac_val in |
||
1355 | */ ) |
||
1356 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
||
1357 | eval $ac_var=\$ac_val;; |
||
1358 | esac |
||
1359 | # Be sure to have absolute directory names. |
||
1360 | case $ac_val in |
||
1361 | [\\/$]* | ?:[\\/]* ) continue;; |
||
1362 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
||
1363 | esac |
||
1364 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
||
1365 | { (exit 1); exit 1; }; } |
||
1366 | done |
||
1367 | |||
1368 | # There might be people who depend on the old broken behavior: `$host' |
||
1369 | # used to hold the argument of --host etc. |
||
1370 | # FIXME: To remove some day. |
||
1371 | build=$build_alias |
||
1372 | host=$host_alias |
||
1373 | target=$target_alias |
||
1374 | |||
1375 | # FIXME: To remove some day. |
||
1376 | if test "x$host_alias" != x; then |
||
1377 | if test "x$build_alias" = x; then |
||
1378 | cross_compiling=maybe |
||
1379 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
||
1380 | If a cross compiler is detected then cross compile mode will be used." >&2 |
||
1381 | elif test "x$build_alias" != "x$host_alias"; then |
||
1382 | cross_compiling=yes |
||
1383 | fi |
||
1384 | fi |
||
1385 | |||
1386 | ac_tool_prefix= |
||
1387 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
1388 | |||
1389 | test "$silent" = yes && exec 6>/dev/null |
||
1390 | |||
1391 | |||
1392 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
||
1393 | ac_ls_di=`ls -di .` && |
||
1394 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
||
1395 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
||
1396 | { (exit 1); exit 1; }; } |
||
1397 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
||
1398 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
||
1399 | { (exit 1); exit 1; }; } |
||
1400 | |||
1401 | |||
1402 | # Find the source files, if location was not specified. |
||
1403 | if test -z "$srcdir"; then |
||
1404 | ac_srcdir_defaulted=yes |
||
1405 | # Try the directory containing this script, then the parent directory. |
||
1406 | ac_confdir=`$as_dirname -- "$as_myself" || |
||
1407 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
1408 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
||
1409 | X"$as_myself" : 'X\(//\)$' \| \ |
||
1410 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
||
1411 | $as_echo X"$as_myself" | |
||
1412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
1413 | s//\1/ |
||
1414 | q |
||
1415 | } |
||
1416 | /^X\(\/\/\)[^/].*/{ |
||
1417 | s//\1/ |
||
1418 | q |
||
1419 | } |
||
1420 | /^X\(\/\/\)$/{ |
||
1421 | s//\1/ |
||
1422 | q |
||
1423 | } |
||
1424 | /^X\(\/\).*/{ |
||
1425 | s//\1/ |
||
1426 | q |
||
1427 | } |
||
1428 | s/.*/./; q'` |
||
1429 | srcdir=$ac_confdir |
||
1430 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1431 | srcdir=.. |
||
1432 | fi |
||
1433 | else |
||
1434 | ac_srcdir_defaulted=no |
||
1435 | fi |
||
1436 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1437 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
||
1438 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
||
1439 | { (exit 1); exit 1; }; } |
||
1440 | fi |
||
1441 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
||
1442 | ac_abs_confdir=`( |
||
1443 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
||
1444 | { (exit 1); exit 1; }; } |
||
1445 | pwd)` |
||
1446 | # When building in place, set srcdir=. |
||
1447 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
||
1448 | srcdir=. |
||
1449 | fi |
||
1450 | # Remove unnecessary trailing slashes from srcdir. |
||
1451 | # Double slashes in file names in object file debugging info |
||
1452 | # mess up M-x gdb in Emacs. |
||
1453 | case $srcdir in |
||
1454 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
||
1455 | esac |
||
1456 | for ac_var in $ac_precious_vars; do |
||
1457 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
||
1458 | eval ac_env_${ac_var}_value=\$${ac_var} |
||
1459 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
||
1460 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
||
1461 | done |
||
1462 | |||
1463 | # |
||
1464 | # Report the --help message. |
||
1465 | # |
||
1466 | if test "$ac_init_help" = "long"; then |
||
1467 | # Omit some internal or obsolete options to make the list less imposing. |
||
1468 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
1469 | cat <<_ACEOF |
||
1470 | \`configure' configures jbig2dec 0.11 to adapt to many kinds of systems. |
||
1471 | |||
1472 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
1473 | |||
1474 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
1475 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
1476 | |||
1477 | Defaults for the options are specified in brackets. |
||
1478 | |||
1479 | Configuration: |
||
1480 | -h, --help display this help and exit |
||
1481 | --help=short display options specific to this package |
||
1482 | --help=recursive display the short help of all the included packages |
||
1483 | -V, --version display version information and exit |
||
1484 | -q, --quiet, --silent do not print \`checking...' messages |
||
1485 | --cache-file=FILE cache test results in FILE [disabled] |
||
1486 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
1487 | -n, --no-create do not create output files |
||
1488 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
1489 | |||
1490 | Installation directories: |
||
1491 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
1492 | [$ac_default_prefix] |
||
1493 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
1494 | [PREFIX] |
||
1495 | |||
1496 | By default, \`make install' will install all the files in |
||
1497 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
1498 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
1499 | for instance \`--prefix=\$HOME'. |
||
1500 | |||
1501 | For better control, use the options below. |
||
1502 | |||
1503 | Fine tuning of the installation directories: |
||
1504 | --bindir=DIR user executables [EPREFIX/bin] |
||
1505 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
1506 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
1507 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
1508 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
1509 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
1510 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
1511 | --includedir=DIR C header files [PREFIX/include] |
||
1512 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
1513 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
||
1514 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
||
1515 | --infodir=DIR info documentation [DATAROOTDIR/info] |
||
1516 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
||
1517 | --mandir=DIR man documentation [DATAROOTDIR/man] |
||
1518 | --docdir=DIR documentation root [DATAROOTDIR/doc/jbig2dec] |
||
1519 | --htmldir=DIR html documentation [DOCDIR] |
||
1520 | --dvidir=DIR dvi documentation [DOCDIR] |
||
1521 | --pdfdir=DIR pdf documentation [DOCDIR] |
||
1522 | --psdir=DIR ps documentation [DOCDIR] |
||
1523 | _ACEOF |
||
1524 | |||
1525 | cat <<\_ACEOF |
||
1526 | |||
1527 | Program names: |
||
1528 | --program-prefix=PREFIX prepend PREFIX to installed program names |
||
1529 | --program-suffix=SUFFIX append SUFFIX to installed program names |
||
1530 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
||
1531 | |||
1532 | System types: |
||
1533 | --build=BUILD configure for building on BUILD [guessed] |
||
1534 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
||
1535 | _ACEOF |
||
1536 | fi |
||
1537 | |||
1538 | if test -n "$ac_init_help"; then |
||
1539 | case $ac_init_help in |
||
1540 | short | recursive ) echo "Configuration of jbig2dec 0.11:";; |
||
1541 | esac |
||
1542 | cat <<\_ACEOF |
||
1543 | |||
1544 | Optional Features: |
||
1545 | --disable-option-checking ignore unrecognized --enable/--with options |
||
1546 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
||
1547 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
||
1548 | --disable-dependency-tracking Speeds up one-time builds |
||
1549 | --enable-dependency-tracking Do not reject slow dependency extractors |
||
1550 | --enable-shared[=PKGS] build shared libraries [default=yes] |
||
1551 | --enable-static[=PKGS] build static libraries [default=yes] |
||
1552 | --enable-fast-install[=PKGS] |
||
1553 | optimize for fast installation [default=yes] |
||
1554 | --disable-libtool-lock avoid locking (might break parallel builds) |
||
1555 | |||
1556 | Optional Packages: |
||
1557 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
1558 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
1559 | --with-pic try to use only PIC/non-PIC objects [default=use |
||
1560 | both] |
||
1561 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
||
1562 | --with-libpng=prefix include support for png output (if libpng is |
||
1563 | available) |
||
1564 | |||
1565 | Some influential environment variables: |
||
1566 | CC C compiler command |
||
1567 | CFLAGS C compiler flags |
||
1568 | LDFLAGS linker flags, e.g. -L |
||
1569 | nonstandard directory |
||
1570 | LIBS libraries to pass to the linker, e.g. -l |
||
1571 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I |
||
1572 | you have headers in a nonstandard directory |
||
1573 | CPP C preprocessor |
||
1574 | |||
1575 | Use these variables to override the choices made by `configure' or to help |
||
1576 | it to find libraries and programs with nonstandard names/locations. |
||
1577 | |||
1578 | Report bugs to |
||
1579 | _ACEOF |
||
1580 | ac_status=$? |
||
1581 | fi |
||
1582 | |||
1583 | if test "$ac_init_help" = "recursive"; then |
||
1584 | # If there are subdirs, report their specific --help. |
||
1585 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
1586 | test -d "$ac_dir" || |
||
1587 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
||
1588 | continue |
||
1589 | ac_builddir=. |
||
1590 | |||
1591 | case "$ac_dir" in |
||
1592 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1593 | *) |
||
1594 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
1595 | # A ".." for each directory in $ac_dir_suffix. |
||
1596 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
1597 | case $ac_top_builddir_sub in |
||
1598 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1599 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
1600 | esac ;; |
||
1601 | esac |
||
1602 | ac_abs_top_builddir=$ac_pwd |
||
1603 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
1604 | # for backward compatibility: |
||
1605 | ac_top_builddir=$ac_top_build_prefix |
||
1606 | |||
1607 | case $srcdir in |
||
1608 | .) # We are building in place. |
||
1609 | ac_srcdir=. |
||
1610 | ac_top_srcdir=$ac_top_builddir_sub |
||
1611 | ac_abs_top_srcdir=$ac_pwd ;; |
||
1612 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
1613 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
1614 | ac_top_srcdir=$srcdir |
||
1615 | ac_abs_top_srcdir=$srcdir ;; |
||
1616 | *) # Relative name. |
||
1617 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
1618 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
1619 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
1620 | esac |
||
1621 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
1622 | |||
1623 | cd "$ac_dir" || { ac_status=$?; continue; } |
||
1624 | # Check for guested configure. |
||
1625 | if test -f "$ac_srcdir/configure.gnu"; then |
||
1626 | echo && |
||
1627 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
||
1628 | elif test -f "$ac_srcdir/configure"; then |
||
1629 | echo && |
||
1630 | $SHELL "$ac_srcdir/configure" --help=recursive |
||
1631 | else |
||
1632 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
1633 | fi || ac_status=$? |
||
1634 | cd "$ac_pwd" || { ac_status=$?; break; } |
||
1635 | done |
||
1636 | fi |
||
1637 | |||
1638 | test -n "$ac_init_help" && exit $ac_status |
||
1639 | if $ac_init_version; then |
||
1640 | cat <<\_ACEOF |
||
1641 | jbig2dec configure 0.11 |
||
1642 | generated by GNU Autoconf 2.63 |
||
1643 | |||
1644 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
||
1645 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
||
1646 | This configure script is free software; the Free Software Foundation |
||
1647 | gives unlimited permission to copy, distribute and modify it. |
||
1648 | _ACEOF |
||
1649 | exit |
||
1650 | fi |
||
1651 | cat >config.log <<_ACEOF |
||
1652 | This file contains any messages produced by compilers while |
||
1653 | running configure, to aid debugging if configure makes a mistake. |
||
1654 | |||
1655 | It was created by jbig2dec $as_me 0.11, which was |
||
1656 | generated by GNU Autoconf 2.63. Invocation command line was |
||
1657 | |||
1658 | $ $0 $@ |
||
1659 | |||
1660 | _ACEOF |
||
1661 | exec 5>>config.log |
||
1662 | { |
||
1663 | cat <<_ASUNAME |
||
1664 | ## --------- ## |
||
1665 | ## Platform. ## |
||
1666 | ## --------- ## |
||
1667 | |||
1668 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
1669 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
1670 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
1671 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
1672 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
1673 | |||
1674 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
1675 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
1676 | |||
1677 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
1678 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
1679 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
1680 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
||
1681 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
1682 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
1683 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
1684 | |||
1685 | _ASUNAME |
||
1686 | |||
1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1688 | for as_dir in $PATH |
||
1689 | do |
||
1690 | IFS=$as_save_IFS |
||
1691 | test -z "$as_dir" && as_dir=. |
||
1692 | $as_echo "PATH: $as_dir" |
||
1693 | done |
||
1694 | IFS=$as_save_IFS |
||
1695 | |||
1696 | } >&5 |
||
1697 | |||
1698 | cat >&5 <<_ACEOF |
||
1699 | |||
1700 | |||
1701 | ## ----------- ## |
||
1702 | ## Core tests. ## |
||
1703 | ## ----------- ## |
||
1704 | |||
1705 | _ACEOF |
||
1706 | |||
1707 | |||
1708 | # Keep a trace of the command line. |
||
1709 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
1710 | # Strip out --silent because we don't want to record it for future runs. |
||
1711 | # Also quote any args containing shell meta-characters. |
||
1712 | # Make two passes to allow for proper duplicate-argument suppression. |
||
1713 | ac_configure_args= |
||
1714 | ac_configure_args0= |
||
1715 | ac_configure_args1= |
||
1716 | ac_must_keep_next=false |
||
1717 | for ac_pass in 1 2 |
||
1718 | do |
||
1719 | for ac_arg |
||
1720 | do |
||
1721 | case $ac_arg in |
||
1722 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
1723 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1724 | | -silent | --silent | --silen | --sile | --sil) |
||
1725 | continue ;; |
||
1726 | *\'*) |
||
1727 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1728 | esac |
||
1729 | case $ac_pass in |
||
1730 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
||
1731 | 2) |
||
1732 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
||
1733 | if test $ac_must_keep_next = true; then |
||
1734 | ac_must_keep_next=false # Got value, back to normal. |
||
1735 | else |
||
1736 | case $ac_arg in |
||
1737 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
1738 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
1739 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
1740 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
1741 | case "$ac_configure_args0 " in |
||
1742 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
1743 | esac |
||
1744 | ;; |
||
1745 | -* ) ac_must_keep_next=true ;; |
||
1746 | esac |
||
1747 | fi |
||
1748 | ac_configure_args="$ac_configure_args '$ac_arg'" |
||
1749 | ;; |
||
1750 | esac |
||
1751 | done |
||
1752 | done |
||
1753 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
||
1754 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
||
1755 | |||
1756 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
1757 | # config.log. We remove comments because anyway the quotes in there |
||
1758 | # would cause problems or look ugly. |
||
1759 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
||
1760 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
||
1761 | trap 'exit_status=$? |
||
1762 | # Save into config.log some information that might help in debugging. |
||
1763 | { |
||
1764 | echo |
||
1765 | |||
1766 | cat <<\_ASBOX |
||
1767 | ## ---------------- ## |
||
1768 | ## Cache variables. ## |
||
1769 | ## ---------------- ## |
||
1770 | _ASBOX |
||
1771 | echo |
||
1772 | # The following way of writing the cache mishandles newlines in values, |
||
1773 | ( |
||
1774 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
||
1775 | eval ac_val=\$$ac_var |
||
1776 | case $ac_val in #( |
||
1777 | *${as_nl}*) |
||
1778 | case $ac_var in #( |
||
1779 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
||
1780 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
1781 | esac |
||
1782 | case $ac_var in #( |
||
1783 | _ | IFS | as_nl) ;; #( |
||
1784 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
1785 | *) $as_unset $ac_var ;; |
||
1786 | esac ;; |
||
1787 | esac |
||
1788 | done |
||
1789 | (set) 2>&1 | |
||
1790 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
||
1791 | *${as_nl}ac_space=\ *) |
||
1792 | sed -n \ |
||
1793 | "s/'\''/'\''\\\\'\'''\''/g; |
||
1794 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
||
1795 | ;; #( |
||
1796 | *) |
||
1797 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
1798 | ;; |
||
1799 | esac | |
||
1800 | sort |
||
1801 | ) |
||
1802 | echo |
||
1803 | |||
1804 | cat <<\_ASBOX |
||
1805 | ## ----------------- ## |
||
1806 | ## Output variables. ## |
||
1807 | ## ----------------- ## |
||
1808 | _ASBOX |
||
1809 | echo |
||
1810 | for ac_var in $ac_subst_vars |
||
1811 | do |
||
1812 | eval ac_val=\$$ac_var |
||
1813 | case $ac_val in |
||
1814 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
1815 | esac |
||
1816 | $as_echo "$ac_var='\''$ac_val'\''" |
||
1817 | done | sort |
||
1818 | echo |
||
1819 | |||
1820 | if test -n "$ac_subst_files"; then |
||
1821 | cat <<\_ASBOX |
||
1822 | ## ------------------- ## |
||
1823 | ## File substitutions. ## |
||
1824 | ## ------------------- ## |
||
1825 | _ASBOX |
||
1826 | echo |
||
1827 | for ac_var in $ac_subst_files |
||
1828 | do |
||
1829 | eval ac_val=\$$ac_var |
||
1830 | case $ac_val in |
||
1831 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
1832 | esac |
||
1833 | $as_echo "$ac_var='\''$ac_val'\''" |
||
1834 | done | sort |
||
1835 | echo |
||
1836 | fi |
||
1837 | |||
1838 | if test -s confdefs.h; then |
||
1839 | cat <<\_ASBOX |
||
1840 | ## ----------- ## |
||
1841 | ## confdefs.h. ## |
||
1842 | ## ----------- ## |
||
1843 | _ASBOX |
||
1844 | echo |
||
1845 | cat confdefs.h |
||
1846 | echo |
||
1847 | fi |
||
1848 | test "$ac_signal" != 0 && |
||
1849 | $as_echo "$as_me: caught signal $ac_signal" |
||
1850 | $as_echo "$as_me: exit $exit_status" |
||
1851 | } >&5 |
||
1852 | rm -f core *.core core.conftest.* && |
||
1853 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
||
1854 | exit $exit_status |
||
1855 | ' 0 |
||
1856 | for ac_signal in 1 2 13 15; do |
||
1857 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
||
1858 | done |
||
1859 | ac_signal=0 |
||
1860 | |||
1861 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
1862 | rm -f -r conftest* confdefs.h |
||
1863 | |||
1864 | # Predefined preprocessor variables. |
||
1865 | |||
1866 | cat >>confdefs.h <<_ACEOF |
||
1867 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
1868 | _ACEOF |
||
1869 | |||
1870 | |||
1871 | cat >>confdefs.h <<_ACEOF |
||
1872 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
1873 | _ACEOF |
||
1874 | |||
1875 | |||
1876 | cat >>confdefs.h <<_ACEOF |
||
1877 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
1878 | _ACEOF |
||
1879 | |||
1880 | |||
1881 | cat >>confdefs.h <<_ACEOF |
||
1882 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
1883 | _ACEOF |
||
1884 | |||
1885 | |||
1886 | cat >>confdefs.h <<_ACEOF |
||
1887 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
1888 | _ACEOF |
||
1889 | |||
1890 | |||
1891 | # Let the site file select an alternate cache file if it wants to. |
||
1892 | # Prefer an explicitly selected file to automatically selected ones. |
||
1893 | ac_site_file1=NONE |
||
1894 | ac_site_file2=NONE |
||
1895 | if test -n "$CONFIG_SITE"; then |
||
1896 | ac_site_file1=$CONFIG_SITE |
||
1897 | elif test "x$prefix" != xNONE; then |
||
1898 | ac_site_file1=$prefix/share/config.site |
||
1899 | ac_site_file2=$prefix/etc/config.site |
||
1900 | else |
||
1901 | ac_site_file1=$ac_default_prefix/share/config.site |
||
1902 | ac_site_file2=$ac_default_prefix/etc/config.site |
||
1903 | fi |
||
1904 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
||
1905 | do |
||
1906 | test "x$ac_site_file" = xNONE && continue |
||
1907 | if test -r "$ac_site_file"; then |
||
1908 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
||
1909 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
||
1910 | sed 's/^/| /' "$ac_site_file" >&5 |
||
1911 | . "$ac_site_file" |
||
1912 | fi |
||
1913 | done |
||
1914 | |||
1915 | if test -r "$cache_file"; then |
||
1916 | # Some versions of bash will fail to source /dev/null (special |
||
1917 | # files actually), so we avoid doing that. |
||
1918 | if test -f "$cache_file"; then |
||
1919 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
||
1920 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
||
1921 | case $cache_file in |
||
1922 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
||
1923 | *) . "./$cache_file";; |
||
1924 | esac |
||
1925 | fi |
||
1926 | else |
||
1927 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
||
1928 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
||
1929 | >$cache_file |
||
1930 | fi |
||
1931 | |||
1932 | # Check that the precious variables saved in the cache have kept the same |
||
1933 | # value. |
||
1934 | ac_cache_corrupted=false |
||
1935 | for ac_var in $ac_precious_vars; do |
||
1936 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
1937 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
1938 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
||
1939 | eval ac_new_val=\$ac_env_${ac_var}_value |
||
1940 | case $ac_old_set,$ac_new_set in |
||
1941 | set,) |
||
1942 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
1943 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
1944 | ac_cache_corrupted=: ;; |
||
1945 | ,set) |
||
1946 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
||
1947 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
1948 | ac_cache_corrupted=: ;; |
||
1949 | ,);; |
||
1950 | *) |
||
1951 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
1952 | # differences in whitespace do not lead to failure. |
||
1953 | ac_old_val_w=`echo x $ac_old_val` |
||
1954 | ac_new_val_w=`echo x $ac_new_val` |
||
1955 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
||
1956 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
||
1957 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
1958 | ac_cache_corrupted=: |
||
1959 | else |
||
1960 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
||
1961 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
||
1962 | eval $ac_var=\$ac_old_val |
||
1963 | fi |
||
1964 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
||
1965 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
||
1966 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
||
1967 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
||
1968 | fi;; |
||
1969 | esac |
||
1970 | # Pass precious variables to config.status. |
||
1971 | if test "$ac_new_set" = set; then |
||
1972 | case $ac_new_val in |
||
1973 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1974 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
1975 | esac |
||
1976 | case " $ac_configure_args " in |
||
1977 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
1978 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
||
1979 | esac |
||
1980 | fi |
||
1981 | done |
||
1982 | if $ac_cache_corrupted; then |
||
1983 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
1984 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
1985 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
||
1986 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
1987 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
||
1988 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
||
1989 | { (exit 1); exit 1; }; } |
||
1990 | fi |
||
1991 | |||
1992 | |||
1993 | |||
1994 | |||
1995 | |||
1996 | |||
1997 | |||
1998 | |||
1999 | |||
2000 | |||
2001 | |||
2002 | |||
2003 | |||
2004 | |||
2005 | |||
2006 | |||
2007 | |||
2008 | |||
2009 | |||
2010 | |||
2011 | |||
2012 | |||
2013 | |||
2014 | |||
2015 | |||
2016 | ac_ext=c |
||
2017 | ac_cpp='$CPP $CPPFLAGS' |
||
2018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2021 | |||
2022 | |||
2023 | |||
2024 | |||
2025 | |||
2026 | am__api_version="1.7" |
||
2027 | ac_aux_dir= |
||
2028 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
||
2029 | if test -f "$ac_dir/install-sh"; then |
||
2030 | ac_aux_dir=$ac_dir |
||
2031 | ac_install_sh="$ac_aux_dir/install-sh -c" |
||
2032 | break |
||
2033 | elif test -f "$ac_dir/install.sh"; then |
||
2034 | ac_aux_dir=$ac_dir |
||
2035 | ac_install_sh="$ac_aux_dir/install.sh -c" |
||
2036 | break |
||
2037 | elif test -f "$ac_dir/shtool"; then |
||
2038 | ac_aux_dir=$ac_dir |
||
2039 | ac_install_sh="$ac_aux_dir/shtool install -c" |
||
2040 | break |
||
2041 | fi |
||
2042 | done |
||
2043 | if test -z "$ac_aux_dir"; then |
||
2044 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
||
2045 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
||
2046 | { (exit 1); exit 1; }; } |
||
2047 | fi |
||
2048 | |||
2049 | # These three variables are undocumented and unsupported, |
||
2050 | # and are intended to be withdrawn in a future Autoconf release. |
||
2051 | # They can cause serious problems if a builder's source tree is in a directory |
||
2052 | # whose full name contains unusual characters. |
||
2053 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
||
2054 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
||
2055 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
||
2056 | |||
2057 | |||
2058 | # Find a good install program. We prefer a C program (faster), |
||
2059 | # so one script is as good as another. But avoid the broken or |
||
2060 | # incompatible versions: |
||
2061 | # SysV /etc/install, /usr/sbin/install |
||
2062 | # SunOS /usr/etc/install |
||
2063 | # IRIX /sbin/install |
||
2064 | # AIX /bin/install |
||
2065 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
||
2066 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
||
2067 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
||
2068 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
||
2069 | # OS/2's system install, which has a completely different semantic |
||
2070 | # ./install, which can be erroneously created by make from ./install.sh. |
||
2071 | # Reject install programs that cannot install multiple files. |
||
2072 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
||
2073 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
||
2074 | if test -z "$INSTALL"; then |
||
2075 | if test "${ac_cv_path_install+set}" = set; then |
||
2076 | $as_echo_n "(cached) " >&6 |
||
2077 | else |
||
2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2079 | for as_dir in $PATH |
||
2080 | do |
||
2081 | IFS=$as_save_IFS |
||
2082 | test -z "$as_dir" && as_dir=. |
||
2083 | # Account for people who put trailing slashes in PATH elements. |
||
2084 | case $as_dir/ in |
||
2085 | ./ | .// | /cC/* | \ |
||
2086 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
||
2087 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
||
2088 | /usr/ucb/* ) ;; |
||
2089 | *) |
||
2090 | # OSF1 and SCO ODT 3.0 have their own names for install. |
||
2091 | # Don't use installbsd from OSF since it installs stuff as root |
||
2092 | # by default. |
||
2093 | for ac_prog in ginstall scoinst install; do |
||
2094 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2095 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
||
2096 | if test $ac_prog = install && |
||
2097 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2098 | # AIX install. It has an incompatible calling convention. |
||
2099 | : |
||
2100 | elif test $ac_prog = install && |
||
2101 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
2102 | # program-specific install script used by HP pwplus--don't use. |
||
2103 | : |
||
2104 | else |
||
2105 | rm -rf conftest.one conftest.two conftest.dir |
||
2106 | echo one > conftest.one |
||
2107 | echo two > conftest.two |
||
2108 | mkdir conftest.dir |
||
2109 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
||
2110 | test -s conftest.one && test -s conftest.two && |
||
2111 | test -s conftest.dir/conftest.one && |
||
2112 | test -s conftest.dir/conftest.two |
||
2113 | then |
||
2114 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
||
2115 | break 3 |
||
2116 | fi |
||
2117 | fi |
||
2118 | fi |
||
2119 | done |
||
2120 | done |
||
2121 | ;; |
||
2122 | esac |
||
2123 | |||
2124 | done |
||
2125 | IFS=$as_save_IFS |
||
2126 | |||
2127 | rm -rf conftest.one conftest.two conftest.dir |
||
2128 | |||
2129 | fi |
||
2130 | if test "${ac_cv_path_install+set}" = set; then |
||
2131 | INSTALL=$ac_cv_path_install |
||
2132 | else |
||
2133 | # As a last resort, use the slow shell script. Don't cache a |
||
2134 | # value for INSTALL within a source directory, because that will |
||
2135 | # break other packages using the cache if that directory is |
||
2136 | # removed, or if the value is a relative name. |
||
2137 | INSTALL=$ac_install_sh |
||
2138 | fi |
||
2139 | fi |
||
2140 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
||
2141 | $as_echo "$INSTALL" >&6; } |
||
2142 | |||
2143 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
||
2144 | # It thinks the first close brace ends the variable substitution. |
||
2145 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
||
2146 | |||
2147 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
||
2148 | |||
2149 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
||
2150 | |||
2151 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
||
2152 | $as_echo_n "checking whether build environment is sane... " >&6; } |
||
2153 | # Just in case |
||
2154 | sleep 1 |
||
2155 | echo timestamp > conftest.file |
||
2156 | # Do `set' in a subshell so we don't clobber the current shell's |
||
2157 | # arguments. Must try -L first in case configure is actually a |
||
2158 | # symlink; some systems play weird games with the mod time of symlinks |
||
2159 | # (eg FreeBSD returns the mod time of the symlink's containing |
||
2160 | # directory). |
||
2161 | if ( |
||
2162 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
||
2163 | if test "$*" = "X"; then |
||
2164 | # -L didn't work. |
||
2165 | set X `ls -t $srcdir/configure conftest.file` |
||
2166 | fi |
||
2167 | rm -f conftest.file |
||
2168 | if test "$*" != "X $srcdir/configure conftest.file" \ |
||
2169 | && test "$*" != "X conftest.file $srcdir/configure"; then |
||
2170 | |||
2171 | # If neither matched, then we have a broken ls. This can happen |
||
2172 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
||
2173 | # broken ls alias from the environment. This has actually |
||
2174 | # happened. Such a system could not be considered "sane". |
||
2175 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
||
2176 | alias in your environment" >&5 |
||
2177 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
||
2178 | alias in your environment" >&2;} |
||
2179 | { (exit 1); exit 1; }; } |
||
2180 | fi |
||
2181 | |||
2182 | test "$2" = conftest.file |
||
2183 | ) |
||
2184 | then |
||
2185 | # Ok. |
||
2186 | : |
||
2187 | else |
||
2188 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
||
2189 | Check your system clock" >&5 |
||
2190 | $as_echo "$as_me: error: newly created file is older than distributed files! |
||
2191 | Check your system clock" >&2;} |
||
2192 | { (exit 1); exit 1; }; } |
||
2193 | fi |
||
2194 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
2195 | $as_echo "yes" >&6; } |
||
2196 | test "$program_prefix" != NONE && |
||
2197 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
||
2198 | # Use a double $ so make ignores it. |
||
2199 | test "$program_suffix" != NONE && |
||
2200 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
||
2201 | # Double any \ or $. |
||
2202 | # By default was `s,x,x', remove it if useless. |
||
2203 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
||
2204 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
||
2205 | |||
2206 | |||
2207 | # expand $ac_aux_dir to an absolute path |
||
2208 | am_aux_dir=`cd $ac_aux_dir && pwd` |
||
2209 | |||
2210 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
||
2211 | # Use eval to expand $SHELL |
||
2212 | if eval "$MISSING --run true"; then |
||
2213 | am_missing_run="$MISSING --run " |
||
2214 | else |
||
2215 | am_missing_run= |
||
2216 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
||
2217 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
||
2218 | fi |
||
2219 | |||
2220 | for ac_prog in gawk mawk nawk awk |
||
2221 | do |
||
2222 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2223 | set dummy $ac_prog; ac_word=$2 |
||
2224 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2225 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2226 | if test "${ac_cv_prog_AWK+set}" = set; then |
||
2227 | $as_echo_n "(cached) " >&6 |
||
2228 | else |
||
2229 | if test -n "$AWK"; then |
||
2230 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
2231 | else |
||
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2233 | for as_dir in $PATH |
||
2234 | do |
||
2235 | IFS=$as_save_IFS |
||
2236 | test -z "$as_dir" && as_dir=. |
||
2237 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2239 | ac_cv_prog_AWK="$ac_prog" |
||
2240 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2241 | break 2 |
||
2242 | fi |
||
2243 | done |
||
2244 | done |
||
2245 | IFS=$as_save_IFS |
||
2246 | |||
2247 | fi |
||
2248 | fi |
||
2249 | AWK=$ac_cv_prog_AWK |
||
2250 | if test -n "$AWK"; then |
||
2251 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
||
2252 | $as_echo "$AWK" >&6; } |
||
2253 | else |
||
2254 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2255 | $as_echo "no" >&6; } |
||
2256 | fi |
||
2257 | |||
2258 | |||
2259 | test -n "$AWK" && break |
||
2260 | done |
||
2261 | |||
2262 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
2263 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
||
2264 | set x ${MAKE-make} |
||
2265 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
||
2266 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
||
2267 | $as_echo_n "(cached) " >&6 |
||
2268 | else |
||
2269 | cat >conftest.make <<\_ACEOF |
||
2270 | SHELL = /bin/sh |
||
2271 | all: |
||
2272 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
||
2273 | _ACEOF |
||
2274 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
||
2275 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
||
2276 | *@@@%%%=?*=@@@%%%*) |
||
2277 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
||
2278 | *) |
||
2279 | eval ac_cv_prog_make_${ac_make}_set=no;; |
||
2280 | esac |
||
2281 | rm -f conftest.make |
||
2282 | fi |
||
2283 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
||
2284 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
2285 | $as_echo "yes" >&6; } |
||
2286 | SET_MAKE= |
||
2287 | else |
||
2288 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2289 | $as_echo "no" >&6; } |
||
2290 | SET_MAKE="MAKE=${MAKE-make}" |
||
2291 | fi |
||
2292 | |||
2293 | rm -rf .tst 2>/dev/null |
||
2294 | mkdir .tst 2>/dev/null |
||
2295 | if test -d .tst; then |
||
2296 | am__leading_dot=. |
||
2297 | else |
||
2298 | am__leading_dot=_ |
||
2299 | fi |
||
2300 | rmdir .tst 2>/dev/null |
||
2301 | |||
2302 | # test to see if srcdir already configured |
||
2303 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
||
2304 | test -f $srcdir/config.status; then |
||
2305 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
||
2306 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
||
2307 | { (exit 1); exit 1; }; } |
||
2308 | fi |
||
2309 | |||
2310 | # test whether we have cygpath |
||
2311 | if test -z "$CYGPATH_W"; then |
||
2312 | if (cygpath --version) >/dev/null 2>/dev/null; then |
||
2313 | CYGPATH_W='cygpath -w' |
||
2314 | else |
||
2315 | CYGPATH_W=echo |
||
2316 | fi |
||
2317 | fi |
||
2318 | |||
2319 | |||
2320 | # Define the identity of the package. |
||
2321 | PACKAGE='jbig2dec' |
||
2322 | VERSION='0.11' |
||
2323 | |||
2324 | |||
2325 | cat >>confdefs.h <<_ACEOF |
||
2326 | #define PACKAGE "$PACKAGE" |
||
2327 | _ACEOF |
||
2328 | |||
2329 | |||
2330 | cat >>confdefs.h <<_ACEOF |
||
2331 | #define VERSION "$VERSION" |
||
2332 | _ACEOF |
||
2333 | |||
2334 | # Some tools Automake needs. |
||
2335 | |||
2336 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
||
2337 | |||
2338 | |||
2339 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
||
2340 | |||
2341 | |||
2342 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
||
2343 | |||
2344 | |||
2345 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
||
2346 | |||
2347 | |||
2348 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
||
2349 | |||
2350 | |||
2351 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
||
2352 | |||
2353 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
||
2354 | |||
2355 | # Installed binaries are usually stripped using `strip' when the user |
||
2356 | # run `make install-strip'. However `strip' might not be the right |
||
2357 | # tool to use in cross-compilation environments, therefore Automake |
||
2358 | # will honor the `STRIP' environment variable to overrule this program. |
||
2359 | if test "$cross_compiling" != no; then |
||
2360 | if test -n "$ac_tool_prefix"; then |
||
2361 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
2362 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
2363 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2364 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2365 | if test "${ac_cv_prog_STRIP+set}" = set; then |
||
2366 | $as_echo_n "(cached) " >&6 |
||
2367 | else |
||
2368 | if test -n "$STRIP"; then |
||
2369 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
2370 | else |
||
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2372 | for as_dir in $PATH |
||
2373 | do |
||
2374 | IFS=$as_save_IFS |
||
2375 | test -z "$as_dir" && as_dir=. |
||
2376 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2378 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
2379 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2380 | break 2 |
||
2381 | fi |
||
2382 | done |
||
2383 | done |
||
2384 | IFS=$as_save_IFS |
||
2385 | |||
2386 | fi |
||
2387 | fi |
||
2388 | STRIP=$ac_cv_prog_STRIP |
||
2389 | if test -n "$STRIP"; then |
||
2390 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
||
2391 | $as_echo "$STRIP" >&6; } |
||
2392 | else |
||
2393 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2394 | $as_echo "no" >&6; } |
||
2395 | fi |
||
2396 | |||
2397 | |||
2398 | fi |
||
2399 | if test -z "$ac_cv_prog_STRIP"; then |
||
2400 | ac_ct_STRIP=$STRIP |
||
2401 | # Extract the first word of "strip", so it can be a program name with args. |
||
2402 | set dummy strip; ac_word=$2 |
||
2403 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2404 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2405 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
||
2406 | $as_echo_n "(cached) " >&6 |
||
2407 | else |
||
2408 | if test -n "$ac_ct_STRIP"; then |
||
2409 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
2410 | else |
||
2411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2412 | for as_dir in $PATH |
||
2413 | do |
||
2414 | IFS=$as_save_IFS |
||
2415 | test -z "$as_dir" && as_dir=. |
||
2416 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2418 | ac_cv_prog_ac_ct_STRIP="strip" |
||
2419 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2420 | break 2 |
||
2421 | fi |
||
2422 | done |
||
2423 | done |
||
2424 | IFS=$as_save_IFS |
||
2425 | |||
2426 | fi |
||
2427 | fi |
||
2428 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
2429 | if test -n "$ac_ct_STRIP"; then |
||
2430 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
||
2431 | $as_echo "$ac_ct_STRIP" >&6; } |
||
2432 | else |
||
2433 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2434 | $as_echo "no" >&6; } |
||
2435 | fi |
||
2436 | |||
2437 | if test "x$ac_ct_STRIP" = x; then |
||
2438 | STRIP=":" |
||
2439 | else |
||
2440 | case $cross_compiling:$ac_tool_warned in |
||
2441 | yes:) |
||
2442 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
2443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
2444 | ac_tool_warned=yes ;; |
||
2445 | esac |
||
2446 | STRIP=$ac_ct_STRIP |
||
2447 | fi |
||
2448 | else |
||
2449 | STRIP="$ac_cv_prog_STRIP" |
||
2450 | fi |
||
2451 | |||
2452 | fi |
||
2453 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
||
2454 | |||
2455 | # We need awk for the "check" target. The system "awk" is bad on |
||
2456 | # some platforms. |
||
2457 | |||
2458 | |||
2459 | |||
2460 | ac_config_headers="$ac_config_headers config.h" |
||
2461 | |||
2462 | |||
2463 | |||
2464 | JBIG2DEC_LT_CURRENT=0 |
||
2465 | |||
2466 | JBIG2DEC_LT_REVISION=0 |
||
2467 | |||
2468 | JBIG2DEC_LT_AGE=0 |
||
2469 | |||
2470 | |||
2471 | # Checks for programs. |
||
2472 | ac_ext=c |
||
2473 | ac_cpp='$CPP $CPPFLAGS' |
||
2474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2477 | if test -n "$ac_tool_prefix"; then |
||
2478 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
2479 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
2480 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2481 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2482 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2483 | $as_echo_n "(cached) " >&6 |
||
2484 | else |
||
2485 | if test -n "$CC"; then |
||
2486 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2487 | else |
||
2488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2489 | for as_dir in $PATH |
||
2490 | do |
||
2491 | IFS=$as_save_IFS |
||
2492 | test -z "$as_dir" && as_dir=. |
||
2493 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2495 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
2496 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2497 | break 2 |
||
2498 | fi |
||
2499 | done |
||
2500 | done |
||
2501 | IFS=$as_save_IFS |
||
2502 | |||
2503 | fi |
||
2504 | fi |
||
2505 | CC=$ac_cv_prog_CC |
||
2506 | if test -n "$CC"; then |
||
2507 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
||
2508 | $as_echo "$CC" >&6; } |
||
2509 | else |
||
2510 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2511 | $as_echo "no" >&6; } |
||
2512 | fi |
||
2513 | |||
2514 | |||
2515 | fi |
||
2516 | if test -z "$ac_cv_prog_CC"; then |
||
2517 | ac_ct_CC=$CC |
||
2518 | # Extract the first word of "gcc", so it can be a program name with args. |
||
2519 | set dummy gcc; ac_word=$2 |
||
2520 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2521 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2522 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
2523 | $as_echo_n "(cached) " >&6 |
||
2524 | else |
||
2525 | if test -n "$ac_ct_CC"; then |
||
2526 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
2527 | else |
||
2528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2529 | for as_dir in $PATH |
||
2530 | do |
||
2531 | IFS=$as_save_IFS |
||
2532 | test -z "$as_dir" && as_dir=. |
||
2533 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2535 | ac_cv_prog_ac_ct_CC="gcc" |
||
2536 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2537 | break 2 |
||
2538 | fi |
||
2539 | done |
||
2540 | done |
||
2541 | IFS=$as_save_IFS |
||
2542 | |||
2543 | fi |
||
2544 | fi |
||
2545 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
2546 | if test -n "$ac_ct_CC"; then |
||
2547 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
2548 | $as_echo "$ac_ct_CC" >&6; } |
||
2549 | else |
||
2550 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2551 | $as_echo "no" >&6; } |
||
2552 | fi |
||
2553 | |||
2554 | if test "x$ac_ct_CC" = x; then |
||
2555 | CC="" |
||
2556 | else |
||
2557 | case $cross_compiling:$ac_tool_warned in |
||
2558 | yes:) |
||
2559 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
2560 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
2561 | ac_tool_warned=yes ;; |
||
2562 | esac |
||
2563 | CC=$ac_ct_CC |
||
2564 | fi |
||
2565 | else |
||
2566 | CC="$ac_cv_prog_CC" |
||
2567 | fi |
||
2568 | |||
2569 | if test -z "$CC"; then |
||
2570 | if test -n "$ac_tool_prefix"; then |
||
2571 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
2572 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
2573 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2574 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2575 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2576 | $as_echo_n "(cached) " >&6 |
||
2577 | else |
||
2578 | if test -n "$CC"; then |
||
2579 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2580 | else |
||
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2582 | for as_dir in $PATH |
||
2583 | do |
||
2584 | IFS=$as_save_IFS |
||
2585 | test -z "$as_dir" && as_dir=. |
||
2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2588 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
2589 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2590 | break 2 |
||
2591 | fi |
||
2592 | done |
||
2593 | done |
||
2594 | IFS=$as_save_IFS |
||
2595 | |||
2596 | fi |
||
2597 | fi |
||
2598 | CC=$ac_cv_prog_CC |
||
2599 | if test -n "$CC"; then |
||
2600 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
||
2601 | $as_echo "$CC" >&6; } |
||
2602 | else |
||
2603 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2604 | $as_echo "no" >&6; } |
||
2605 | fi |
||
2606 | |||
2607 | |||
2608 | fi |
||
2609 | fi |
||
2610 | if test -z "$CC"; then |
||
2611 | # Extract the first word of "cc", so it can be a program name with args. |
||
2612 | set dummy cc; ac_word=$2 |
||
2613 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2614 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2615 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2616 | $as_echo_n "(cached) " >&6 |
||
2617 | else |
||
2618 | if test -n "$CC"; then |
||
2619 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2620 | else |
||
2621 | ac_prog_rejected=no |
||
2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2623 | for as_dir in $PATH |
||
2624 | do |
||
2625 | IFS=$as_save_IFS |
||
2626 | test -z "$as_dir" && as_dir=. |
||
2627 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2629 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
2630 | ac_prog_rejected=yes |
||
2631 | continue |
||
2632 | fi |
||
2633 | ac_cv_prog_CC="cc" |
||
2634 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2635 | break 2 |
||
2636 | fi |
||
2637 | done |
||
2638 | done |
||
2639 | IFS=$as_save_IFS |
||
2640 | |||
2641 | if test $ac_prog_rejected = yes; then |
||
2642 | # We found a bogon in the path, so make sure we never use it. |
||
2643 | set dummy $ac_cv_prog_CC |
||
2644 | shift |
||
2645 | if test $# != 0; then |
||
2646 | # We chose a different compiler from the bogus one. |
||
2647 | # However, it has the same basename, so the bogon will be chosen |
||
2648 | # first if we set CC to just the basename; use the full file name. |
||
2649 | shift |
||
2650 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
2651 | fi |
||
2652 | fi |
||
2653 | fi |
||
2654 | fi |
||
2655 | CC=$ac_cv_prog_CC |
||
2656 | if test -n "$CC"; then |
||
2657 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
||
2658 | $as_echo "$CC" >&6; } |
||
2659 | else |
||
2660 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2661 | $as_echo "no" >&6; } |
||
2662 | fi |
||
2663 | |||
2664 | |||
2665 | fi |
||
2666 | if test -z "$CC"; then |
||
2667 | if test -n "$ac_tool_prefix"; then |
||
2668 | for ac_prog in cl.exe |
||
2669 | do |
||
2670 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
2671 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
2672 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2673 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2674 | if test "${ac_cv_prog_CC+set}" = set; then |
||
2675 | $as_echo_n "(cached) " >&6 |
||
2676 | else |
||
2677 | if test -n "$CC"; then |
||
2678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2679 | else |
||
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2681 | for as_dir in $PATH |
||
2682 | do |
||
2683 | IFS=$as_save_IFS |
||
2684 | test -z "$as_dir" && as_dir=. |
||
2685 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2687 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
2688 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2689 | break 2 |
||
2690 | fi |
||
2691 | done |
||
2692 | done |
||
2693 | IFS=$as_save_IFS |
||
2694 | |||
2695 | fi |
||
2696 | fi |
||
2697 | CC=$ac_cv_prog_CC |
||
2698 | if test -n "$CC"; then |
||
2699 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
||
2700 | $as_echo "$CC" >&6; } |
||
2701 | else |
||
2702 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2703 | $as_echo "no" >&6; } |
||
2704 | fi |
||
2705 | |||
2706 | |||
2707 | test -n "$CC" && break |
||
2708 | done |
||
2709 | fi |
||
2710 | if test -z "$CC"; then |
||
2711 | ac_ct_CC=$CC |
||
2712 | for ac_prog in cl.exe |
||
2713 | do |
||
2714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2715 | set dummy $ac_prog; ac_word=$2 |
||
2716 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2717 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2718 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
2719 | $as_echo_n "(cached) " >&6 |
||
2720 | else |
||
2721 | if test -n "$ac_ct_CC"; then |
||
2722 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
2723 | else |
||
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2725 | for as_dir in $PATH |
||
2726 | do |
||
2727 | IFS=$as_save_IFS |
||
2728 | test -z "$as_dir" && as_dir=. |
||
2729 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
2731 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
2732 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2733 | break 2 |
||
2734 | fi |
||
2735 | done |
||
2736 | done |
||
2737 | IFS=$as_save_IFS |
||
2738 | |||
2739 | fi |
||
2740 | fi |
||
2741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
2742 | if test -n "$ac_ct_CC"; then |
||
2743 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
2744 | $as_echo "$ac_ct_CC" >&6; } |
||
2745 | else |
||
2746 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
2747 | $as_echo "no" >&6; } |
||
2748 | fi |
||
2749 | |||
2750 | |||
2751 | test -n "$ac_ct_CC" && break |
||
2752 | done |
||
2753 | |||
2754 | if test "x$ac_ct_CC" = x; then |
||
2755 | CC="" |
||
2756 | else |
||
2757 | case $cross_compiling:$ac_tool_warned in |
||
2758 | yes:) |
||
2759 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
2760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
2761 | ac_tool_warned=yes ;; |
||
2762 | esac |
||
2763 | CC=$ac_ct_CC |
||
2764 | fi |
||
2765 | fi |
||
2766 | |||
2767 | fi |
||
2768 | |||
2769 | |||
2770 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
2771 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2772 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
||
2773 | See \`config.log' for more details." >&5 |
||
2774 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
||
2775 | See \`config.log' for more details." >&2;} |
||
2776 | { (exit 1); exit 1; }; }; } |
||
2777 | |||
2778 | # Provide some information about the compiler. |
||
2779 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
||
2780 | set X $ac_compile |
||
2781 | ac_compiler=$2 |
||
2782 | { (ac_try="$ac_compiler --version >&5" |
||
2783 | case "(($ac_try" in |
||
2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2785 | *) ac_try_echo=$ac_try;; |
||
2786 | esac |
||
2787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2788 | $as_echo "$ac_try_echo") >&5 |
||
2789 | (eval "$ac_compiler --version >&5") 2>&5 |
||
2790 | ac_status=$? |
||
2791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2792 | (exit $ac_status); } |
||
2793 | { (ac_try="$ac_compiler -v >&5" |
||
2794 | case "(($ac_try" in |
||
2795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2796 | *) ac_try_echo=$ac_try;; |
||
2797 | esac |
||
2798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2799 | $as_echo "$ac_try_echo") >&5 |
||
2800 | (eval "$ac_compiler -v >&5") 2>&5 |
||
2801 | ac_status=$? |
||
2802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2803 | (exit $ac_status); } |
||
2804 | { (ac_try="$ac_compiler -V >&5" |
||
2805 | case "(($ac_try" in |
||
2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2807 | *) ac_try_echo=$ac_try;; |
||
2808 | esac |
||
2809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2810 | $as_echo "$ac_try_echo") >&5 |
||
2811 | (eval "$ac_compiler -V >&5") 2>&5 |
||
2812 | ac_status=$? |
||
2813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2814 | (exit $ac_status); } |
||
2815 | |||
2816 | cat >conftest.$ac_ext <<_ACEOF |
||
2817 | /* confdefs.h. */ |
||
2818 | _ACEOF |
||
2819 | cat confdefs.h >>conftest.$ac_ext |
||
2820 | cat >>conftest.$ac_ext <<_ACEOF |
||
2821 | /* end confdefs.h. */ |
||
2822 | |||
2823 | int |
||
2824 | main () |
||
2825 | { |
||
2826 | |||
2827 | ; |
||
2828 | return 0; |
||
2829 | } |
||
2830 | _ACEOF |
||
2831 | ac_clean_files_save=$ac_clean_files |
||
2832 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
||
2833 | # Try to create an executable without -o first, disregard a.out. |
||
2834 | # It will help us diagnose broken compilers, and finding out an intuition |
||
2835 | # of exeext. |
||
2836 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
||
2837 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
||
2838 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
2839 | |||
2840 | # The possible output files: |
||
2841 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
||
2842 | |||
2843 | ac_rmfiles= |
||
2844 | for ac_file in $ac_files |
||
2845 | do |
||
2846 | case $ac_file in |
||
2847 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
2848 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
||
2849 | esac |
||
2850 | done |
||
2851 | rm -f $ac_rmfiles |
||
2852 | |||
2853 | if { (ac_try="$ac_link_default" |
||
2854 | case "(($ac_try" in |
||
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2856 | *) ac_try_echo=$ac_try;; |
||
2857 | esac |
||
2858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2859 | $as_echo "$ac_try_echo") >&5 |
||
2860 | (eval "$ac_link_default") 2>&5 |
||
2861 | ac_status=$? |
||
2862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2863 | (exit $ac_status); }; then |
||
2864 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
||
2865 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
||
2866 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
||
2867 | # so that the user can short-circuit this test for compilers unknown to |
||
2868 | # Autoconf. |
||
2869 | for ac_file in $ac_files '' |
||
2870 | do |
||
2871 | test -f "$ac_file" || continue |
||
2872 | case $ac_file in |
||
2873 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
||
2874 | ;; |
||
2875 | [ab].out ) |
||
2876 | # We found the default executable, but exeext='' is most |
||
2877 | # certainly right. |
||
2878 | break;; |
||
2879 | *.* ) |
||
2880 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
||
2881 | then :; else |
||
2882 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
2883 | fi |
||
2884 | # We set ac_cv_exeext here because the later test for it is not |
||
2885 | # safe: cross compilers may not add the suffix if given an `-o' |
||
2886 | # argument, so we may need to know it at that point already. |
||
2887 | # Even if this section looks crufty: it has the advantage of |
||
2888 | # actually working. |
||
2889 | break;; |
||
2890 | * ) |
||
2891 | break;; |
||
2892 | esac |
||
2893 | done |
||
2894 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
||
2895 | |||
2896 | else |
||
2897 | ac_file='' |
||
2898 | fi |
||
2899 | |||
2900 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
||
2901 | $as_echo "$ac_file" >&6; } |
||
2902 | if test -z "$ac_file"; then |
||
2903 | $as_echo "$as_me: failed program was:" >&5 |
||
2904 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2905 | |||
2906 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
2907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2908 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
||
2909 | See \`config.log' for more details." >&5 |
||
2910 | $as_echo "$as_me: error: C compiler cannot create executables |
||
2911 | See \`config.log' for more details." >&2;} |
||
2912 | { (exit 77); exit 77; }; }; } |
||
2913 | fi |
||
2914 | |||
2915 | ac_exeext=$ac_cv_exeext |
||
2916 | |||
2917 | # Check that the compiler produces executables we can run. If not, either |
||
2918 | # the compiler is broken, or we cross compile. |
||
2919 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
||
2920 | $as_echo_n "checking whether the C compiler works... " >&6; } |
||
2921 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
||
2922 | # If not cross compiling, check that we can run a simple program. |
||
2923 | if test "$cross_compiling" != yes; then |
||
2924 | if { ac_try='./$ac_file' |
||
2925 | { (case "(($ac_try" in |
||
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2927 | *) ac_try_echo=$ac_try;; |
||
2928 | esac |
||
2929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2930 | $as_echo "$ac_try_echo") >&5 |
||
2931 | (eval "$ac_try") 2>&5 |
||
2932 | ac_status=$? |
||
2933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2934 | (exit $ac_status); }; }; then |
||
2935 | cross_compiling=no |
||
2936 | else |
||
2937 | if test "$cross_compiling" = maybe; then |
||
2938 | cross_compiling=yes |
||
2939 | else |
||
2940 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
2941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2942 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
||
2943 | If you meant to cross compile, use \`--host'. |
||
2944 | See \`config.log' for more details." >&5 |
||
2945 | $as_echo "$as_me: error: cannot run C compiled programs. |
||
2946 | If you meant to cross compile, use \`--host'. |
||
2947 | See \`config.log' for more details." >&2;} |
||
2948 | { (exit 1); exit 1; }; }; } |
||
2949 | fi |
||
2950 | fi |
||
2951 | fi |
||
2952 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
2953 | $as_echo "yes" >&6; } |
||
2954 | |||
2955 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
||
2956 | ac_clean_files=$ac_clean_files_save |
||
2957 | # Check that the compiler produces executables we can run. If not, either |
||
2958 | # the compiler is broken, or we cross compile. |
||
2959 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
||
2960 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
||
2961 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
||
2962 | $as_echo "$cross_compiling" >&6; } |
||
2963 | |||
2964 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
||
2965 | $as_echo_n "checking for suffix of executables... " >&6; } |
||
2966 | if { (ac_try="$ac_link" |
||
2967 | case "(($ac_try" in |
||
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2969 | *) ac_try_echo=$ac_try;; |
||
2970 | esac |
||
2971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
2972 | $as_echo "$ac_try_echo") >&5 |
||
2973 | (eval "$ac_link") 2>&5 |
||
2974 | ac_status=$? |
||
2975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2976 | (exit $ac_status); }; then |
||
2977 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
2978 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
2979 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
2980 | # `rm'. |
||
2981 | for ac_file in conftest.exe conftest conftest.*; do |
||
2982 | test -f "$ac_file" || continue |
||
2983 | case $ac_file in |
||
2984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
2985 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
2986 | break;; |
||
2987 | * ) break;; |
||
2988 | esac |
||
2989 | done |
||
2990 | else |
||
2991 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
2992 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2993 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
||
2994 | See \`config.log' for more details." >&5 |
||
2995 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
||
2996 | See \`config.log' for more details." >&2;} |
||
2997 | { (exit 1); exit 1; }; }; } |
||
2998 | fi |
||
2999 | |||
3000 | rm -f conftest$ac_cv_exeext |
||
3001 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
||
3002 | $as_echo "$ac_cv_exeext" >&6; } |
||
3003 | |||
3004 | rm -f conftest.$ac_ext |
||
3005 | EXEEXT=$ac_cv_exeext |
||
3006 | ac_exeext=$EXEEXT |
||
3007 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
||
3008 | $as_echo_n "checking for suffix of object files... " >&6; } |
||
3009 | if test "${ac_cv_objext+set}" = set; then |
||
3010 | $as_echo_n "(cached) " >&6 |
||
3011 | else |
||
3012 | cat >conftest.$ac_ext <<_ACEOF |
||
3013 | /* confdefs.h. */ |
||
3014 | _ACEOF |
||
3015 | cat confdefs.h >>conftest.$ac_ext |
||
3016 | cat >>conftest.$ac_ext <<_ACEOF |
||
3017 | /* end confdefs.h. */ |
||
3018 | |||
3019 | int |
||
3020 | main () |
||
3021 | { |
||
3022 | |||
3023 | ; |
||
3024 | return 0; |
||
3025 | } |
||
3026 | _ACEOF |
||
3027 | rm -f conftest.o conftest.obj |
||
3028 | if { (ac_try="$ac_compile" |
||
3029 | case "(($ac_try" in |
||
3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3031 | *) ac_try_echo=$ac_try;; |
||
3032 | esac |
||
3033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3034 | $as_echo "$ac_try_echo") >&5 |
||
3035 | (eval "$ac_compile") 2>&5 |
||
3036 | ac_status=$? |
||
3037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3038 | (exit $ac_status); }; then |
||
3039 | for ac_file in conftest.o conftest.obj conftest.*; do |
||
3040 | test -f "$ac_file" || continue; |
||
3041 | case $ac_file in |
||
3042 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
||
3043 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
3044 | break;; |
||
3045 | esac |
||
3046 | done |
||
3047 | else |
||
3048 | $as_echo "$as_me: failed program was:" >&5 |
||
3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3050 | |||
3051 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
3052 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3053 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
||
3054 | See \`config.log' for more details." >&5 |
||
3055 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
||
3056 | See \`config.log' for more details." >&2;} |
||
3057 | { (exit 1); exit 1; }; }; } |
||
3058 | fi |
||
3059 | |||
3060 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
3061 | fi |
||
3062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
||
3063 | $as_echo "$ac_cv_objext" >&6; } |
||
3064 | OBJEXT=$ac_cv_objext |
||
3065 | ac_objext=$OBJEXT |
||
3066 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
||
3067 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
||
3068 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
||
3069 | $as_echo_n "(cached) " >&6 |
||
3070 | else |
||
3071 | cat >conftest.$ac_ext <<_ACEOF |
||
3072 | /* confdefs.h. */ |
||
3073 | _ACEOF |
||
3074 | cat confdefs.h >>conftest.$ac_ext |
||
3075 | cat >>conftest.$ac_ext <<_ACEOF |
||
3076 | /* end confdefs.h. */ |
||
3077 | |||
3078 | int |
||
3079 | main () |
||
3080 | { |
||
3081 | #ifndef __GNUC__ |
||
3082 | choke me |
||
3083 | #endif |
||
3084 | |||
3085 | ; |
||
3086 | return 0; |
||
3087 | } |
||
3088 | _ACEOF |
||
3089 | rm -f conftest.$ac_objext |
||
3090 | if { (ac_try="$ac_compile" |
||
3091 | case "(($ac_try" in |
||
3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3093 | *) ac_try_echo=$ac_try;; |
||
3094 | esac |
||
3095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3096 | $as_echo "$ac_try_echo") >&5 |
||
3097 | (eval "$ac_compile") 2>conftest.er1 |
||
3098 | ac_status=$? |
||
3099 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3100 | rm -f conftest.er1 |
||
3101 | cat conftest.err >&5 |
||
3102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3103 | (exit $ac_status); } && { |
||
3104 | test -z "$ac_c_werror_flag" || |
||
3105 | test ! -s conftest.err |
||
3106 | } && test -s conftest.$ac_objext; then |
||
3107 | ac_compiler_gnu=yes |
||
3108 | else |
||
3109 | $as_echo "$as_me: failed program was:" >&5 |
||
3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3111 | |||
3112 | ac_compiler_gnu=no |
||
3113 | fi |
||
3114 | |||
3115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3116 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
3117 | |||
3118 | fi |
||
3119 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
||
3120 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
||
3121 | if test $ac_compiler_gnu = yes; then |
||
3122 | GCC=yes |
||
3123 | else |
||
3124 | GCC= |
||
3125 | fi |
||
3126 | ac_test_CFLAGS=${CFLAGS+set} |
||
3127 | ac_save_CFLAGS=$CFLAGS |
||
3128 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
||
3129 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
||
3130 | if test "${ac_cv_prog_cc_g+set}" = set; then |
||
3131 | $as_echo_n "(cached) " >&6 |
||
3132 | else |
||
3133 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
3134 | ac_c_werror_flag=yes |
||
3135 | ac_cv_prog_cc_g=no |
||
3136 | CFLAGS="-g" |
||
3137 | cat >conftest.$ac_ext <<_ACEOF |
||
3138 | /* confdefs.h. */ |
||
3139 | _ACEOF |
||
3140 | cat confdefs.h >>conftest.$ac_ext |
||
3141 | cat >>conftest.$ac_ext <<_ACEOF |
||
3142 | /* end confdefs.h. */ |
||
3143 | |||
3144 | int |
||
3145 | main () |
||
3146 | { |
||
3147 | |||
3148 | ; |
||
3149 | return 0; |
||
3150 | } |
||
3151 | _ACEOF |
||
3152 | rm -f conftest.$ac_objext |
||
3153 | if { (ac_try="$ac_compile" |
||
3154 | case "(($ac_try" in |
||
3155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3156 | *) ac_try_echo=$ac_try;; |
||
3157 | esac |
||
3158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3159 | $as_echo "$ac_try_echo") >&5 |
||
3160 | (eval "$ac_compile") 2>conftest.er1 |
||
3161 | ac_status=$? |
||
3162 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3163 | rm -f conftest.er1 |
||
3164 | cat conftest.err >&5 |
||
3165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3166 | (exit $ac_status); } && { |
||
3167 | test -z "$ac_c_werror_flag" || |
||
3168 | test ! -s conftest.err |
||
3169 | } && test -s conftest.$ac_objext; then |
||
3170 | ac_cv_prog_cc_g=yes |
||
3171 | else |
||
3172 | $as_echo "$as_me: failed program was:" >&5 |
||
3173 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3174 | |||
3175 | CFLAGS="" |
||
3176 | cat >conftest.$ac_ext <<_ACEOF |
||
3177 | /* confdefs.h. */ |
||
3178 | _ACEOF |
||
3179 | cat confdefs.h >>conftest.$ac_ext |
||
3180 | cat >>conftest.$ac_ext <<_ACEOF |
||
3181 | /* end confdefs.h. */ |
||
3182 | |||
3183 | int |
||
3184 | main () |
||
3185 | { |
||
3186 | |||
3187 | ; |
||
3188 | return 0; |
||
3189 | } |
||
3190 | _ACEOF |
||
3191 | rm -f conftest.$ac_objext |
||
3192 | if { (ac_try="$ac_compile" |
||
3193 | case "(($ac_try" in |
||
3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3195 | *) ac_try_echo=$ac_try;; |
||
3196 | esac |
||
3197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3198 | $as_echo "$ac_try_echo") >&5 |
||
3199 | (eval "$ac_compile") 2>conftest.er1 |
||
3200 | ac_status=$? |
||
3201 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3202 | rm -f conftest.er1 |
||
3203 | cat conftest.err >&5 |
||
3204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3205 | (exit $ac_status); } && { |
||
3206 | test -z "$ac_c_werror_flag" || |
||
3207 | test ! -s conftest.err |
||
3208 | } && test -s conftest.$ac_objext; then |
||
3209 | : |
||
3210 | else |
||
3211 | $as_echo "$as_me: failed program was:" >&5 |
||
3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3213 | |||
3214 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3215 | CFLAGS="-g" |
||
3216 | cat >conftest.$ac_ext <<_ACEOF |
||
3217 | /* confdefs.h. */ |
||
3218 | _ACEOF |
||
3219 | cat confdefs.h >>conftest.$ac_ext |
||
3220 | cat >>conftest.$ac_ext <<_ACEOF |
||
3221 | /* end confdefs.h. */ |
||
3222 | |||
3223 | int |
||
3224 | main () |
||
3225 | { |
||
3226 | |||
3227 | ; |
||
3228 | return 0; |
||
3229 | } |
||
3230 | _ACEOF |
||
3231 | rm -f conftest.$ac_objext |
||
3232 | if { (ac_try="$ac_compile" |
||
3233 | case "(($ac_try" in |
||
3234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3235 | *) ac_try_echo=$ac_try;; |
||
3236 | esac |
||
3237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3238 | $as_echo "$ac_try_echo") >&5 |
||
3239 | (eval "$ac_compile") 2>conftest.er1 |
||
3240 | ac_status=$? |
||
3241 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3242 | rm -f conftest.er1 |
||
3243 | cat conftest.err >&5 |
||
3244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3245 | (exit $ac_status); } && { |
||
3246 | test -z "$ac_c_werror_flag" || |
||
3247 | test ! -s conftest.err |
||
3248 | } && test -s conftest.$ac_objext; then |
||
3249 | ac_cv_prog_cc_g=yes |
||
3250 | else |
||
3251 | $as_echo "$as_me: failed program was:" >&5 |
||
3252 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3253 | |||
3254 | |||
3255 | fi |
||
3256 | |||
3257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3258 | fi |
||
3259 | |||
3260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3261 | fi |
||
3262 | |||
3263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3264 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
3265 | fi |
||
3266 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
||
3267 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
||
3268 | if test "$ac_test_CFLAGS" = set; then |
||
3269 | CFLAGS=$ac_save_CFLAGS |
||
3270 | elif test $ac_cv_prog_cc_g = yes; then |
||
3271 | if test "$GCC" = yes; then |
||
3272 | CFLAGS="-g -O2" |
||
3273 | else |
||
3274 | CFLAGS="-g" |
||
3275 | fi |
||
3276 | else |
||
3277 | if test "$GCC" = yes; then |
||
3278 | CFLAGS="-O2" |
||
3279 | else |
||
3280 | CFLAGS= |
||
3281 | fi |
||
3282 | fi |
||
3283 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
||
3284 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
||
3285 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
||
3286 | $as_echo_n "(cached) " >&6 |
||
3287 | else |
||
3288 | ac_cv_prog_cc_c89=no |
||
3289 | ac_save_CC=$CC |
||
3290 | cat >conftest.$ac_ext <<_ACEOF |
||
3291 | /* confdefs.h. */ |
||
3292 | _ACEOF |
||
3293 | cat confdefs.h >>conftest.$ac_ext |
||
3294 | cat >>conftest.$ac_ext <<_ACEOF |
||
3295 | /* end confdefs.h. */ |
||
3296 | #include |
||
3297 | #include |
||
3298 | #include |
||
3299 | #include |
||
3300 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
3301 | struct buf { int x; }; |
||
3302 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
3303 | static char *e (p, i) |
||
3304 | char **p; |
||
3305 | int i; |
||
3306 | { |
||
3307 | return p[i]; |
||
3308 | } |
||
3309 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
3310 | { |
||
3311 | char *s; |
||
3312 | va_list v; |
||
3313 | va_start (v,p); |
||
3314 | s = g (p, va_arg (v,int)); |
||
3315 | va_end (v); |
||
3316 | return s; |
||
3317 | } |
||
3318 | |||
3319 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
3320 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
3321 | These don't provoke an error unfortunately, instead are silently treated |
||
3322 | as 'x'. The following induces an error, until -std is added to get |
||
3323 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
3324 | array size at least. It's necessary to write '\x00'==0 to get something |
||
3325 | that's true only with -std. */ |
||
3326 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
3327 | |||
3328 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
3329 | inside strings and character constants. */ |
||
3330 | #define FOO(x) 'x' |
||
3331 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
3332 | |||
3333 | int test (int i, double x); |
||
3334 | struct s1 {int (*f) (int a);}; |
||
3335 | struct s2 {int (*f) (double a);}; |
||
3336 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
3337 | int argc; |
||
3338 | char **argv; |
||
3339 | int |
||
3340 | main () |
||
3341 | { |
||
3342 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
3343 | ; |
||
3344 | return 0; |
||
3345 | } |
||
3346 | _ACEOF |
||
3347 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
3348 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
3349 | do |
||
3350 | CC="$ac_save_CC $ac_arg" |
||
3351 | rm -f conftest.$ac_objext |
||
3352 | if { (ac_try="$ac_compile" |
||
3353 | case "(($ac_try" in |
||
3354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3355 | *) ac_try_echo=$ac_try;; |
||
3356 | esac |
||
3357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3358 | $as_echo "$ac_try_echo") >&5 |
||
3359 | (eval "$ac_compile") 2>conftest.er1 |
||
3360 | ac_status=$? |
||
3361 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3362 | rm -f conftest.er1 |
||
3363 | cat conftest.err >&5 |
||
3364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3365 | (exit $ac_status); } && { |
||
3366 | test -z "$ac_c_werror_flag" || |
||
3367 | test ! -s conftest.err |
||
3368 | } && test -s conftest.$ac_objext; then |
||
3369 | ac_cv_prog_cc_c89=$ac_arg |
||
3370 | else |
||
3371 | $as_echo "$as_me: failed program was:" >&5 |
||
3372 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3373 | |||
3374 | |||
3375 | fi |
||
3376 | |||
3377 | rm -f core conftest.err conftest.$ac_objext |
||
3378 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
3379 | done |
||
3380 | rm -f conftest.$ac_ext |
||
3381 | CC=$ac_save_CC |
||
3382 | |||
3383 | fi |
||
3384 | # AC_CACHE_VAL |
||
3385 | case "x$ac_cv_prog_cc_c89" in |
||
3386 | x) |
||
3387 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
||
3388 | $as_echo "none needed" >&6; } ;; |
||
3389 | xno) |
||
3390 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
||
3391 | $as_echo "unsupported" >&6; } ;; |
||
3392 | *) |
||
3393 | CC="$CC $ac_cv_prog_cc_c89" |
||
3394 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
||
3395 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
||
3396 | esac |
||
3397 | |||
3398 | |||
3399 | ac_ext=c |
||
3400 | ac_cpp='$CPP $CPPFLAGS' |
||
3401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3404 | DEPDIR="${am__leading_dot}deps" |
||
3405 | |||
3406 | ac_config_commands="$ac_config_commands depfiles" |
||
3407 | |||
3408 | |||
3409 | am_make=${MAKE-make} |
||
3410 | cat > confinc << 'END' |
||
3411 | am__doit: |
||
3412 | @echo done |
||
3413 | .PHONY: am__doit |
||
3414 | END |
||
3415 | # If we don't find an include directive, just comment out the code. |
||
3416 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
||
3417 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
||
3418 | am__include="#" |
||
3419 | am__quote= |
||
3420 | _am_result=none |
||
3421 | # First try GNU make style include. |
||
3422 | echo "include confinc" > confmf |
||
3423 | # We grep out `Entering directory' and `Leaving directory' |
||
3424 | # messages which can occur if `w' ends up in MAKEFLAGS. |
||
3425 | # In particular we don't look at `^make:' because GNU make might |
||
3426 | # be invoked under some other name (usually "gmake"), in which |
||
3427 | # case it prints its new name instead of `make'. |
||
3428 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
||
3429 | am__include=include |
||
3430 | am__quote= |
||
3431 | _am_result=GNU |
||
3432 | fi |
||
3433 | # Now try BSD make style include. |
||
3434 | if test "$am__include" = "#"; then |
||
3435 | echo '.include "confinc"' > confmf |
||
3436 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
||
3437 | am__include=.include |
||
3438 | am__quote="\"" |
||
3439 | _am_result=BSD |
||
3440 | fi |
||
3441 | fi |
||
3442 | |||
3443 | |||
3444 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
||
3445 | $as_echo "$_am_result" >&6; } |
||
3446 | rm -f confinc confmf |
||
3447 | |||
3448 | # Check whether --enable-dependency-tracking was given. |
||
3449 | if test "${enable_dependency_tracking+set}" = set; then |
||
3450 | enableval=$enable_dependency_tracking; |
||
3451 | fi |
||
3452 | |||
3453 | if test "x$enable_dependency_tracking" != xno; then |
||
3454 | am_depcomp="$ac_aux_dir/depcomp" |
||
3455 | AMDEPBACKSLASH='\' |
||
3456 | fi |
||
3457 | |||
3458 | |||
3459 | if test "x$enable_dependency_tracking" != xno; then |
||
3460 | AMDEP_TRUE= |
||
3461 | AMDEP_FALSE='#' |
||
3462 | else |
||
3463 | AMDEP_TRUE='#' |
||
3464 | AMDEP_FALSE= |
||
3465 | fi |
||
3466 | |||
3467 | |||
3468 | |||
3469 | |||
3470 | depcc="$CC" am_compiler_list= |
||
3471 | |||
3472 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
||
3473 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
3474 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
||
3475 | $as_echo_n "(cached) " >&6 |
||
3476 | else |
||
3477 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
3478 | # We make a subdir and do the tests there. Otherwise we can end up |
||
3479 | # making bogus files that we don't know about and never remove. For |
||
3480 | # instance it was reported that on HP-UX the gcc test will end up |
||
3481 | # making a dummy file named `D' -- because `-MD' means `put the output |
||
3482 | # in D'. |
||
3483 | mkdir conftest.dir |
||
3484 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
3485 | # using a relative directory. |
||
3486 | cp "$am_depcomp" conftest.dir |
||
3487 | cd conftest.dir |
||
3488 | # We will build objects and dependencies in a subdirectory because |
||
3489 | # it helps to detect inapplicable dependency modes. For instance |
||
3490 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
3491 | # side effect of compilation, but ICC will put the dependencies in |
||
3492 | # the current directory while Tru64 will put them in the object |
||
3493 | # directory. |
||
3494 | mkdir sub |
||
3495 | |||
3496 | am_cv_CC_dependencies_compiler_type=none |
||
3497 | if test "$am_compiler_list" = ""; then |
||
3498 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
3499 | fi |
||
3500 | for depmode in $am_compiler_list; do |
||
3501 | # Setup a source with many dependencies, because some compilers |
||
3502 | # like to wrap large dependency lists on column 80 (with \), and |
||
3503 | # we should not choose a depcomp mode which is confused by this. |
||
3504 | # |
||
3505 | # We need to recreate these files for each test, as the compiler may |
||
3506 | # overwrite some of them when testing with obscure command lines. |
||
3507 | # This happens at least with the AIX C compiler. |
||
3508 | : > sub/conftest.c |
||
3509 | for i in 1 2 3 4 5 6; do |
||
3510 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
3511 | : > sub/conftst$i.h |
||
3512 | done |
||
3513 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
3514 | |||
3515 | case $depmode in |
||
3516 | nosideeffect) |
||
3517 | # after this tag, mechanisms are not by side-effect, so they'll |
||
3518 | # only be used when explicitly requested |
||
3519 | if test "x$enable_dependency_tracking" = xyes; then |
||
3520 | continue |
||
3521 | else |
||
3522 | break |
||
3523 | fi |
||
3524 | ;; |
||
3525 | none) break ;; |
||
3526 | esac |
||
3527 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
||
3528 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
3529 | # handle `-M -o', and we need to detect this. |
||
3530 | if depmode=$depmode \ |
||
3531 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
||
3532 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
3533 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
||
3534 | >/dev/null 2>conftest.err && |
||
3535 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
3536 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
||
3537 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
3538 | # icc doesn't choke on unknown options, it will just issue warnings |
||
3539 | # (even with -Werror). So we grep stderr for any message |
||
3540 | # that says an option was ignored. |
||
3541 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
||
3542 | am_cv_CC_dependencies_compiler_type=$depmode |
||
3543 | break |
||
3544 | fi |
||
3545 | fi |
||
3546 | done |
||
3547 | |||
3548 | cd .. |
||
3549 | rm -rf conftest.dir |
||
3550 | else |
||
3551 | am_cv_CC_dependencies_compiler_type=none |
||
3552 | fi |
||
3553 | |||
3554 | fi |
||
3555 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
3556 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
||
3557 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
3558 | |||
3559 | |||
3560 | |||
3561 | if |
||
3562 | test "x$enable_dependency_tracking" != xno \ |
||
3563 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
3564 | am__fastdepCC_TRUE= |
||
3565 | am__fastdepCC_FALSE='#' |
||
3566 | else |
||
3567 | am__fastdepCC_TRUE='#' |
||
3568 | am__fastdepCC_FALSE= |
||
3569 | fi |
||
3570 | |||
3571 | |||
3572 | if test "x$CC" != xcc; then |
||
3573 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
||
3574 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
||
3575 | else |
||
3576 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
||
3577 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
||
3578 | fi |
||
3579 | set dummy $CC; ac_cc=`$as_echo "$2" | |
||
3580 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
||
3581 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
||
3582 | $as_echo_n "(cached) " >&6 |
||
3583 | else |
||
3584 | cat >conftest.$ac_ext <<_ACEOF |
||
3585 | /* confdefs.h. */ |
||
3586 | _ACEOF |
||
3587 | cat confdefs.h >>conftest.$ac_ext |
||
3588 | cat >>conftest.$ac_ext <<_ACEOF |
||
3589 | /* end confdefs.h. */ |
||
3590 | |||
3591 | int |
||
3592 | main () |
||
3593 | { |
||
3594 | |||
3595 | ; |
||
3596 | return 0; |
||
3597 | } |
||
3598 | _ACEOF |
||
3599 | # Make sure it works both with $CC and with simple cc. |
||
3600 | # We do the test twice because some compilers refuse to overwrite an |
||
3601 | # existing .o file with -o, though they will create one. |
||
3602 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
||
3603 | rm -f conftest2.* |
||
3604 | if { (case "(($ac_try" in |
||
3605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3606 | *) ac_try_echo=$ac_try;; |
||
3607 | esac |
||
3608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3609 | $as_echo "$ac_try_echo") >&5 |
||
3610 | (eval "$ac_try") 2>&5 |
||
3611 | ac_status=$? |
||
3612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3613 | (exit $ac_status); } && |
||
3614 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
||
3615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3616 | *) ac_try_echo=$ac_try;; |
||
3617 | esac |
||
3618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3619 | $as_echo "$ac_try_echo") >&5 |
||
3620 | (eval "$ac_try") 2>&5 |
||
3621 | ac_status=$? |
||
3622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3623 | (exit $ac_status); }; |
||
3624 | then |
||
3625 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
||
3626 | if test "x$CC" != xcc; then |
||
3627 | # Test first that cc exists at all. |
||
3628 | if { ac_try='cc -c conftest.$ac_ext >&5' |
||
3629 | { (case "(($ac_try" in |
||
3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3631 | *) ac_try_echo=$ac_try;; |
||
3632 | esac |
||
3633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3634 | $as_echo "$ac_try_echo") >&5 |
||
3635 | (eval "$ac_try") 2>&5 |
||
3636 | ac_status=$? |
||
3637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3638 | (exit $ac_status); }; }; then |
||
3639 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
||
3640 | rm -f conftest2.* |
||
3641 | if { (case "(($ac_try" in |
||
3642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3643 | *) ac_try_echo=$ac_try;; |
||
3644 | esac |
||
3645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3646 | $as_echo "$ac_try_echo") >&5 |
||
3647 | (eval "$ac_try") 2>&5 |
||
3648 | ac_status=$? |
||
3649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3650 | (exit $ac_status); } && |
||
3651 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
||
3652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3653 | *) ac_try_echo=$ac_try;; |
||
3654 | esac |
||
3655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
3656 | $as_echo "$ac_try_echo") >&5 |
||
3657 | (eval "$ac_try") 2>&5 |
||
3658 | ac_status=$? |
||
3659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3660 | (exit $ac_status); }; |
||
3661 | then |
||
3662 | # cc works too. |
||
3663 | : |
||
3664 | else |
||
3665 | # cc exists but doesn't like -o. |
||
3666 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
||
3667 | fi |
||
3668 | fi |
||
3669 | fi |
||
3670 | else |
||
3671 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
||
3672 | fi |
||
3673 | rm -f core conftest* |
||
3674 | |||
3675 | fi |
||
3676 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
||
3677 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
3678 | $as_echo "yes" >&6; } |
||
3679 | else |
||
3680 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
3681 | $as_echo "no" >&6; } |
||
3682 | |||
3683 | cat >>confdefs.h <<\_ACEOF |
||
3684 | #define NO_MINUS_C_MINUS_O 1 |
||
3685 | _ACEOF |
||
3686 | |||
3687 | fi |
||
3688 | |||
3689 | # FIXME: we rely on the cache variable name because |
||
3690 | # there is no other way. |
||
3691 | set dummy $CC |
||
3692 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
||
3693 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
||
3694 | # Losing compiler, so override with the script. |
||
3695 | # FIXME: It is wrong to rewrite CC. |
||
3696 | # But if we don't then we get into trouble of one sort or another. |
||
3697 | # A longer-term fix would be to have automake use am__CC in this case, |
||
3698 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
||
3699 | CC="$am_aux_dir/compile $CC" |
||
3700 | fi |
||
3701 | |||
3702 | case `pwd` in |
||
3703 | *\ * | *\ *) |
||
3704 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
||
3705 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
||
3706 | esac |
||
3707 | |||
3708 | |||
3709 | |||
3710 | macro_version='2.2.6b' |
||
3711 | macro_revision='1.3017' |
||
3712 | |||
3713 | |||
3714 | |||
3715 | |||
3716 | |||
3717 | |||
3718 | |||
3719 | |||
3720 | |||
3721 | |||
3722 | |||
3723 | |||
3724 | |||
3725 | ltmain="$ac_aux_dir/ltmain.sh" |
||
3726 | |||
3727 | # Make sure we can run config.sub. |
||
3728 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
||
3729 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
||
3730 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
||
3731 | { (exit 1); exit 1; }; } |
||
3732 | |||
3733 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
||
3734 | $as_echo_n "checking build system type... " >&6; } |
||
3735 | if test "${ac_cv_build+set}" = set; then |
||
3736 | $as_echo_n "(cached) " >&6 |
||
3737 | else |
||
3738 | ac_build_alias=$build_alias |
||
3739 | test "x$ac_build_alias" = x && |
||
3740 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
||
3741 | test "x$ac_build_alias" = x && |
||
3742 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
||
3743 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
||
3744 | { (exit 1); exit 1; }; } |
||
3745 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
||
3746 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
||
3747 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
||
3748 | { (exit 1); exit 1; }; } |
||
3749 | |||
3750 | fi |
||
3751 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
||
3752 | $as_echo "$ac_cv_build" >&6; } |
||
3753 | case $ac_cv_build in |
||
3754 | *-*-*) ;; |
||
3755 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
||
3756 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
||
3757 | { (exit 1); exit 1; }; };; |
||
3758 | esac |
||
3759 | build=$ac_cv_build |
||
3760 | ac_save_IFS=$IFS; IFS='-' |
||
3761 | set x $ac_cv_build |
||
3762 | shift |
||
3763 | build_cpu=$1 |
||
3764 | build_vendor=$2 |
||
3765 | shift; shift |
||
3766 | # Remember, the first character of IFS is used to create $*, |
||
3767 | # except with old shells: |
||
3768 | build_os=$* |
||
3769 | IFS=$ac_save_IFS |
||
3770 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
||
3771 | |||
3772 | |||
3773 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
||
3774 | $as_echo_n "checking host system type... " >&6; } |
||
3775 | if test "${ac_cv_host+set}" = set; then |
||
3776 | $as_echo_n "(cached) " >&6 |
||
3777 | else |
||
3778 | if test "x$host_alias" = x; then |
||
3779 | ac_cv_host=$ac_cv_build |
||
3780 | else |
||
3781 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
||
3782 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
||
3783 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
||
3784 | { (exit 1); exit 1; }; } |
||
3785 | fi |
||
3786 | |||
3787 | fi |
||
3788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
||
3789 | $as_echo "$ac_cv_host" >&6; } |
||
3790 | case $ac_cv_host in |
||
3791 | *-*-*) ;; |
||
3792 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
||
3793 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
||
3794 | { (exit 1); exit 1; }; };; |
||
3795 | esac |
||
3796 | host=$ac_cv_host |
||
3797 | ac_save_IFS=$IFS; IFS='-' |
||
3798 | set x $ac_cv_host |
||
3799 | shift |
||
3800 | host_cpu=$1 |
||
3801 | host_vendor=$2 |
||
3802 | shift; shift |
||
3803 | # Remember, the first character of IFS is used to create $*, |
||
3804 | # except with old shells: |
||
3805 | host_os=$* |
||
3806 | IFS=$ac_save_IFS |
||
3807 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
||
3808 | |||
3809 | |||
3810 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
||
3811 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
||
3812 | if test "${ac_cv_path_SED+set}" = set; then |
||
3813 | $as_echo_n "(cached) " >&6 |
||
3814 | else |
||
3815 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
||
3816 | for ac_i in 1 2 3 4 5 6 7; do |
||
3817 | ac_script="$ac_script$as_nl$ac_script" |
||
3818 | done |
||
3819 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
||
3820 | $as_unset ac_script || ac_script= |
||
3821 | if test -z "$SED"; then |
||
3822 | ac_path_SED_found=false |
||
3823 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3825 | for as_dir in $PATH |
||
3826 | do |
||
3827 | IFS=$as_save_IFS |
||
3828 | test -z "$as_dir" && as_dir=. |
||
3829 | for ac_prog in sed gsed; do |
||
3830 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3831 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
||
3832 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
||
3833 | # Check for GNU ac_path_SED and select it if it is found. |
||
3834 | # Check for GNU $ac_path_SED |
||
3835 | case `"$ac_path_SED" --version 2>&1` in |
||
3836 | *GNU*) |
||
3837 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
||
3838 | *) |
||
3839 | ac_count=0 |
||
3840 | $as_echo_n 0123456789 >"conftest.in" |
||
3841 | while : |
||
3842 | do |
||
3843 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
3844 | mv "conftest.tmp" "conftest.in" |
||
3845 | cp "conftest.in" "conftest.nl" |
||
3846 | $as_echo '' >> "conftest.nl" |
||
3847 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
3848 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
3849 | ac_count=`expr $ac_count + 1` |
||
3850 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
||
3851 | # Best one so far, save it but keep looking for a better one |
||
3852 | ac_cv_path_SED="$ac_path_SED" |
||
3853 | ac_path_SED_max=$ac_count |
||
3854 | fi |
||
3855 | # 10*(2^10) chars as input seems more than enough |
||
3856 | test $ac_count -gt 10 && break |
||
3857 | done |
||
3858 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
3859 | esac |
||
3860 | |||
3861 | $ac_path_SED_found && break 3 |
||
3862 | done |
||
3863 | done |
||
3864 | done |
||
3865 | IFS=$as_save_IFS |
||
3866 | if test -z "$ac_cv_path_SED"; then |
||
3867 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
||
3868 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
||
3869 | { (exit 1); exit 1; }; } |
||
3870 | fi |
||
3871 | else |
||
3872 | ac_cv_path_SED=$SED |
||
3873 | fi |
||
3874 | |||
3875 | fi |
||
3876 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
||
3877 | $as_echo "$ac_cv_path_SED" >&6; } |
||
3878 | SED="$ac_cv_path_SED" |
||
3879 | rm -f conftest.sed |
||
3880 | |||
3881 | test -z "$SED" && SED=sed |
||
3882 | Xsed="$SED -e 1s/^X//" |
||
3883 | |||
3884 | |||
3885 | |||
3886 | |||
3887 | |||
3888 | |||
3889 | |||
3890 | |||
3891 | |||
3892 | |||
3893 | |||
3894 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
||
3895 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
||
3896 | if test "${ac_cv_path_GREP+set}" = set; then |
||
3897 | $as_echo_n "(cached) " >&6 |
||
3898 | else |
||
3899 | if test -z "$GREP"; then |
||
3900 | ac_path_GREP_found=false |
||
3901 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3903 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
3904 | do |
||
3905 | IFS=$as_save_IFS |
||
3906 | test -z "$as_dir" && as_dir=. |
||
3907 | for ac_prog in grep ggrep; do |
||
3908 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3909 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
||
3910 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
||
3911 | # Check for GNU ac_path_GREP and select it if it is found. |
||
3912 | # Check for GNU $ac_path_GREP |
||
3913 | case `"$ac_path_GREP" --version 2>&1` in |
||
3914 | *GNU*) |
||
3915 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
||
3916 | *) |
||
3917 | ac_count=0 |
||
3918 | $as_echo_n 0123456789 >"conftest.in" |
||
3919 | while : |
||
3920 | do |
||
3921 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
3922 | mv "conftest.tmp" "conftest.in" |
||
3923 | cp "conftest.in" "conftest.nl" |
||
3924 | $as_echo 'GREP' >> "conftest.nl" |
||
3925 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
3926 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
3927 | ac_count=`expr $ac_count + 1` |
||
3928 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
||
3929 | # Best one so far, save it but keep looking for a better one |
||
3930 | ac_cv_path_GREP="$ac_path_GREP" |
||
3931 | ac_path_GREP_max=$ac_count |
||
3932 | fi |
||
3933 | # 10*(2^10) chars as input seems more than enough |
||
3934 | test $ac_count -gt 10 && break |
||
3935 | done |
||
3936 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
3937 | esac |
||
3938 | |||
3939 | $ac_path_GREP_found && break 3 |
||
3940 | done |
||
3941 | done |
||
3942 | done |
||
3943 | IFS=$as_save_IFS |
||
3944 | if test -z "$ac_cv_path_GREP"; then |
||
3945 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
||
3946 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
||
3947 | { (exit 1); exit 1; }; } |
||
3948 | fi |
||
3949 | else |
||
3950 | ac_cv_path_GREP=$GREP |
||
3951 | fi |
||
3952 | |||
3953 | fi |
||
3954 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
||
3955 | $as_echo "$ac_cv_path_GREP" >&6; } |
||
3956 | GREP="$ac_cv_path_GREP" |
||
3957 | |||
3958 | |||
3959 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
||
3960 | $as_echo_n "checking for egrep... " >&6; } |
||
3961 | if test "${ac_cv_path_EGREP+set}" = set; then |
||
3962 | $as_echo_n "(cached) " >&6 |
||
3963 | else |
||
3964 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
||
3965 | then ac_cv_path_EGREP="$GREP -E" |
||
3966 | else |
||
3967 | if test -z "$EGREP"; then |
||
3968 | ac_path_EGREP_found=false |
||
3969 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3971 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
3972 | do |
||
3973 | IFS=$as_save_IFS |
||
3974 | test -z "$as_dir" && as_dir=. |
||
3975 | for ac_prog in egrep; do |
||
3976 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3977 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
3978 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
||
3979 | # Check for GNU ac_path_EGREP and select it if it is found. |
||
3980 | # Check for GNU $ac_path_EGREP |
||
3981 | case `"$ac_path_EGREP" --version 2>&1` in |
||
3982 | *GNU*) |
||
3983 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
||
3984 | *) |
||
3985 | ac_count=0 |
||
3986 | $as_echo_n 0123456789 >"conftest.in" |
||
3987 | while : |
||
3988 | do |
||
3989 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
3990 | mv "conftest.tmp" "conftest.in" |
||
3991 | cp "conftest.in" "conftest.nl" |
||
3992 | $as_echo 'EGREP' >> "conftest.nl" |
||
3993 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
3994 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
3995 | ac_count=`expr $ac_count + 1` |
||
3996 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
||
3997 | # Best one so far, save it but keep looking for a better one |
||
3998 | ac_cv_path_EGREP="$ac_path_EGREP" |
||
3999 | ac_path_EGREP_max=$ac_count |
||
4000 | fi |
||
4001 | # 10*(2^10) chars as input seems more than enough |
||
4002 | test $ac_count -gt 10 && break |
||
4003 | done |
||
4004 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4005 | esac |
||
4006 | |||
4007 | $ac_path_EGREP_found && break 3 |
||
4008 | done |
||
4009 | done |
||
4010 | done |
||
4011 | IFS=$as_save_IFS |
||
4012 | if test -z "$ac_cv_path_EGREP"; then |
||
4013 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
||
4014 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
||
4015 | { (exit 1); exit 1; }; } |
||
4016 | fi |
||
4017 | else |
||
4018 | ac_cv_path_EGREP=$EGREP |
||
4019 | fi |
||
4020 | |||
4021 | fi |
||
4022 | fi |
||
4023 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
||
4024 | $as_echo "$ac_cv_path_EGREP" >&6; } |
||
4025 | EGREP="$ac_cv_path_EGREP" |
||
4026 | |||
4027 | |||
4028 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
||
4029 | $as_echo_n "checking for fgrep... " >&6; } |
||
4030 | if test "${ac_cv_path_FGREP+set}" = set; then |
||
4031 | $as_echo_n "(cached) " >&6 |
||
4032 | else |
||
4033 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
||
4034 | then ac_cv_path_FGREP="$GREP -F" |
||
4035 | else |
||
4036 | if test -z "$FGREP"; then |
||
4037 | ac_path_FGREP_found=false |
||
4038 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4040 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4041 | do |
||
4042 | IFS=$as_save_IFS |
||
4043 | test -z "$as_dir" && as_dir=. |
||
4044 | for ac_prog in fgrep; do |
||
4045 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4046 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4047 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
||
4048 | # Check for GNU ac_path_FGREP and select it if it is found. |
||
4049 | # Check for GNU $ac_path_FGREP |
||
4050 | case `"$ac_path_FGREP" --version 2>&1` in |
||
4051 | *GNU*) |
||
4052 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
||
4053 | *) |
||
4054 | ac_count=0 |
||
4055 | $as_echo_n 0123456789 >"conftest.in" |
||
4056 | while : |
||
4057 | do |
||
4058 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4059 | mv "conftest.tmp" "conftest.in" |
||
4060 | cp "conftest.in" "conftest.nl" |
||
4061 | $as_echo 'FGREP' >> "conftest.nl" |
||
4062 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4063 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4064 | ac_count=`expr $ac_count + 1` |
||
4065 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
||
4066 | # Best one so far, save it but keep looking for a better one |
||
4067 | ac_cv_path_FGREP="$ac_path_FGREP" |
||
4068 | ac_path_FGREP_max=$ac_count |
||
4069 | fi |
||
4070 | # 10*(2^10) chars as input seems more than enough |
||
4071 | test $ac_count -gt 10 && break |
||
4072 | done |
||
4073 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4074 | esac |
||
4075 | |||
4076 | $ac_path_FGREP_found && break 3 |
||
4077 | done |
||
4078 | done |
||
4079 | done |
||
4080 | IFS=$as_save_IFS |
||
4081 | if test -z "$ac_cv_path_FGREP"; then |
||
4082 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
||
4083 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
||
4084 | { (exit 1); exit 1; }; } |
||
4085 | fi |
||
4086 | else |
||
4087 | ac_cv_path_FGREP=$FGREP |
||
4088 | fi |
||
4089 | |||
4090 | fi |
||
4091 | fi |
||
4092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
||
4093 | $as_echo "$ac_cv_path_FGREP" >&6; } |
||
4094 | FGREP="$ac_cv_path_FGREP" |
||
4095 | |||
4096 | |||
4097 | test -z "$GREP" && GREP=grep |
||
4098 | |||
4099 | |||
4100 | |||
4101 | |||
4102 | |||
4103 | |||
4104 | |||
4105 | |||
4106 | |||
4107 | |||
4108 | |||
4109 | |||
4110 | |||
4111 | |||
4112 | |||
4113 | |||
4114 | |||
4115 | |||
4116 | |||
4117 | # Check whether --with-gnu-ld was given. |
||
4118 | if test "${with_gnu_ld+set}" = set; then |
||
4119 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
||
4120 | else |
||
4121 | with_gnu_ld=no |
||
4122 | fi |
||
4123 | |||
4124 | ac_prog=ld |
||
4125 | if test "$GCC" = yes; then |
||
4126 | # Check if gcc -print-prog-name=ld gives a path. |
||
4127 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
||
4128 | $as_echo_n "checking for ld used by $CC... " >&6; } |
||
4129 | case $host in |
||
4130 | *-*-mingw*) |
||
4131 | # gcc leaves a trailing carriage return which upsets mingw |
||
4132 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
4133 | *) |
||
4134 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
4135 | esac |
||
4136 | case $ac_prog in |
||
4137 | # Accept absolute paths. |
||
4138 | [\\/]* | ?:[\\/]*) |
||
4139 | re_direlt='/[^/][^/]*/\.\./' |
||
4140 | # Canonicalize the pathname of ld |
||
4141 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
||
4142 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
||
4143 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
||
4144 | done |
||
4145 | test -z "$LD" && LD="$ac_prog" |
||
4146 | ;; |
||
4147 | "") |
||
4148 | # If it fails, then pretend we aren't using GCC. |
||
4149 | ac_prog=ld |
||
4150 | ;; |
||
4151 | *) |
||
4152 | # If it is relative, then search for the first ld in PATH. |
||
4153 | with_gnu_ld=unknown |
||
4154 | ;; |
||
4155 | esac |
||
4156 | elif test "$with_gnu_ld" = yes; then |
||
4157 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
||
4158 | $as_echo_n "checking for GNU ld... " >&6; } |
||
4159 | else |
||
4160 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
||
4161 | $as_echo_n "checking for non-GNU ld... " >&6; } |
||
4162 | fi |
||
4163 | if test "${lt_cv_path_LD+set}" = set; then |
||
4164 | $as_echo_n "(cached) " >&6 |
||
4165 | else |
||
4166 | if test -z "$LD"; then |
||
4167 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
4168 | for ac_dir in $PATH; do |
||
4169 | IFS="$lt_save_ifs" |
||
4170 | test -z "$ac_dir" && ac_dir=. |
||
4171 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
4172 | lt_cv_path_LD="$ac_dir/$ac_prog" |
||
4173 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
4174 | # but apparently some variants of GNU ld only accept -v. |
||
4175 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
4176 | case `"$lt_cv_path_LD" -v 2>&1 |
||
4177 | *GNU* | *'with BFD'*) |
||
4178 | test "$with_gnu_ld" != no && break |
||
4179 | ;; |
||
4180 | *) |
||
4181 | test "$with_gnu_ld" != yes && break |
||
4182 | ;; |
||
4183 | esac |
||
4184 | fi |
||
4185 | done |
||
4186 | IFS="$lt_save_ifs" |
||
4187 | else |
||
4188 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
||
4189 | fi |
||
4190 | fi |
||
4191 | |||
4192 | LD="$lt_cv_path_LD" |
||
4193 | if test -n "$LD"; then |
||
4194 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
||
4195 | $as_echo "$LD" >&6; } |
||
4196 | else |
||
4197 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
4198 | $as_echo "no" >&6; } |
||
4199 | fi |
||
4200 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
||
4201 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
||
4202 | { (exit 1); exit 1; }; } |
||
4203 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
||
4204 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
||
4205 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
||
4206 | $as_echo_n "(cached) " >&6 |
||
4207 | else |
||
4208 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
4209 | case `$LD -v 2>&1 |
||
4210 | *GNU* | *'with BFD'*) |
||
4211 | lt_cv_prog_gnu_ld=yes |
||
4212 | ;; |
||
4213 | *) |
||
4214 | lt_cv_prog_gnu_ld=no |
||
4215 | ;; |
||
4216 | esac |
||
4217 | fi |
||
4218 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
||
4219 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
||
4220 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
4221 | |||
4222 | |||
4223 | |||
4224 | |||
4225 | |||
4226 | |||
4227 | |||
4228 | |||
4229 | |||
4230 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
||
4231 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
||
4232 | if test "${lt_cv_path_NM+set}" = set; then |
||
4233 | $as_echo_n "(cached) " >&6 |
||
4234 | else |
||
4235 | if test -n "$NM"; then |
||
4236 | # Let the user override the test. |
||
4237 | lt_cv_path_NM="$NM" |
||
4238 | else |
||
4239 | lt_nm_to_check="${ac_tool_prefix}nm" |
||
4240 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
||
4241 | lt_nm_to_check="$lt_nm_to_check nm" |
||
4242 | fi |
||
4243 | for lt_tmp_nm in $lt_nm_to_check; do |
||
4244 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
4245 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
||
4246 | IFS="$lt_save_ifs" |
||
4247 | test -z "$ac_dir" && ac_dir=. |
||
4248 | tmp_nm="$ac_dir/$lt_tmp_nm" |
||
4249 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
||
4250 | # Check to see if the nm accepts a BSD-compat flag. |
||
4251 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
||
4252 | # nm: unknown option "B" ignored |
||
4253 | # Tru64's nm complains that /dev/null is an invalid object file |
||
4254 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
||
4255 | */dev/null* | *'Invalid file or object type'*) |
||
4256 | lt_cv_path_NM="$tmp_nm -B" |
||
4257 | break |
||
4258 | ;; |
||
4259 | *) |
||
4260 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
||
4261 | */dev/null*) |
||
4262 | lt_cv_path_NM="$tmp_nm -p" |
||
4263 | break |
||
4264 | ;; |
||
4265 | *) |
||
4266 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
||
4267 | continue # so that we can try to find one that supports BSD flags |
||
4268 | ;; |
||
4269 | esac |
||
4270 | ;; |
||
4271 | esac |
||
4272 | fi |
||
4273 | done |
||
4274 | IFS="$lt_save_ifs" |
||
4275 | done |
||
4276 | : ${lt_cv_path_NM=no} |
||
4277 | fi |
||
4278 | fi |
||
4279 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
||
4280 | $as_echo "$lt_cv_path_NM" >&6; } |
||
4281 | if test "$lt_cv_path_NM" != "no"; then |
||
4282 | NM="$lt_cv_path_NM" |
||
4283 | else |
||
4284 | # Didn't find any BSD compatible name lister, look for dumpbin. |
||
4285 | if test -n "$ac_tool_prefix"; then |
||
4286 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
||
4287 | do |
||
4288 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
4289 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
4290 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
4291 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4292 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
||
4293 | $as_echo_n "(cached) " >&6 |
||
4294 | else |
||
4295 | if test -n "$DUMPBIN"; then |
||
4296 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
||
4297 | else |
||
4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4299 | for as_dir in $PATH |
||
4300 | do |
||
4301 | IFS=$as_save_IFS |
||
4302 | test -z "$as_dir" && as_dir=. |
||
4303 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
4305 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
||
4306 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4307 | break 2 |
||
4308 | fi |
||
4309 | done |
||
4310 | done |
||
4311 | IFS=$as_save_IFS |
||
4312 | |||
4313 | fi |
||
4314 | fi |
||
4315 | DUMPBIN=$ac_cv_prog_DUMPBIN |
||
4316 | if test -n "$DUMPBIN"; then |
||
4317 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
||
4318 | $as_echo "$DUMPBIN" >&6; } |
||
4319 | else |
||
4320 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
4321 | $as_echo "no" >&6; } |
||
4322 | fi |
||
4323 | |||
4324 | |||
4325 | test -n "$DUMPBIN" && break |
||
4326 | done |
||
4327 | fi |
||
4328 | if test -z "$DUMPBIN"; then |
||
4329 | ac_ct_DUMPBIN=$DUMPBIN |
||
4330 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
||
4331 | do |
||
4332 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
4333 | set dummy $ac_prog; ac_word=$2 |
||
4334 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
4335 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4336 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
||
4337 | $as_echo_n "(cached) " >&6 |
||
4338 | else |
||
4339 | if test -n "$ac_ct_DUMPBIN"; then |
||
4340 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
||
4341 | else |
||
4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4343 | for as_dir in $PATH |
||
4344 | do |
||
4345 | IFS=$as_save_IFS |
||
4346 | test -z "$as_dir" && as_dir=. |
||
4347 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
4349 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
||
4350 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4351 | break 2 |
||
4352 | fi |
||
4353 | done |
||
4354 | done |
||
4355 | IFS=$as_save_IFS |
||
4356 | |||
4357 | fi |
||
4358 | fi |
||
4359 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
||
4360 | if test -n "$ac_ct_DUMPBIN"; then |
||
4361 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
||
4362 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
||
4363 | else |
||
4364 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
4365 | $as_echo "no" >&6; } |
||
4366 | fi |
||
4367 | |||
4368 | |||
4369 | test -n "$ac_ct_DUMPBIN" && break |
||
4370 | done |
||
4371 | |||
4372 | if test "x$ac_ct_DUMPBIN" = x; then |
||
4373 | DUMPBIN=":" |
||
4374 | else |
||
4375 | case $cross_compiling:$ac_tool_warned in |
||
4376 | yes:) |
||
4377 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
4378 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
4379 | ac_tool_warned=yes ;; |
||
4380 | esac |
||
4381 | DUMPBIN=$ac_ct_DUMPBIN |
||
4382 | fi |
||
4383 | fi |
||
4384 | |||
4385 | |||
4386 | if test "$DUMPBIN" != ":"; then |
||
4387 | NM="$DUMPBIN" |
||
4388 | fi |
||
4389 | fi |
||
4390 | test -z "$NM" && NM=nm |
||
4391 | |||
4392 | |||
4393 | |||
4394 | |||
4395 | |||
4396 | |||
4397 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
||
4398 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
||
4399 | if test "${lt_cv_nm_interface+set}" = set; then |
||
4400 | $as_echo_n "(cached) " >&6 |
||
4401 | else |
||
4402 | lt_cv_nm_interface="BSD nm" |
||
4403 | echo "int some_variable = 0;" > conftest.$ac_ext |
||
4404 | (eval echo "\"\$as_me:4404: $ac_compile\"" >&5) |
||
4405 | (eval "$ac_compile" 2>conftest.err) |
||
4406 | cat conftest.err >&5 |
||
4407 | (eval echo "\"\$as_me:4407: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
||
4408 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
||
4409 | cat conftest.err >&5 |
||
4410 | (eval echo "\"\$as_me:4410: output\"" >&5) |
||
4411 | cat conftest.out >&5 |
||
4412 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
||
4413 | lt_cv_nm_interface="MS dumpbin" |
||
4414 | fi |
||
4415 | rm -f conftest* |
||
4416 | fi |
||
4417 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
||
4418 | $as_echo "$lt_cv_nm_interface" >&6; } |
||
4419 | |||
4420 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
||
4421 | $as_echo_n "checking whether ln -s works... " >&6; } |
||
4422 | LN_S=$as_ln_s |
||
4423 | if test "$LN_S" = "ln -s"; then |
||
4424 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
4425 | $as_echo "yes" >&6; } |
||
4426 | else |
||
4427 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
||
4428 | $as_echo "no, using $LN_S" >&6; } |
||
4429 | fi |
||
4430 | |||
4431 | # find the maximum length of command line arguments |
||
4432 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
||
4433 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
||
4434 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
||
4435 | $as_echo_n "(cached) " >&6 |
||
4436 | else |
||
4437 | i=0 |
||
4438 | teststring="ABCD" |
||
4439 | |||
4440 | case $build_os in |
||
4441 | msdosdjgpp*) |
||
4442 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
||
4443 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
||
4444 | # during glob expansion). Even if it were fixed, the result of this |
||
4445 | # check would be larger than it should be. |
||
4446 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
||
4447 | ;; |
||
4448 | |||
4449 | gnu*) |
||
4450 | # Under GNU Hurd, this test is not required because there is |
||
4451 | # no limit to the length of command line arguments. |
||
4452 | # Libtool will interpret -1 as no limit whatsoever |
||
4453 | lt_cv_sys_max_cmd_len=-1; |
||
4454 | ;; |
||
4455 | |||
4456 | cygwin* | mingw* | cegcc*) |
||
4457 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
||
4458 | # about 5 minutes as the teststring grows exponentially. |
||
4459 | # Worse, since 9x/ME are not pre-emptively multitasking, |
||
4460 | # you end up with a "frozen" computer, even though with patience |
||
4461 | # the test eventually succeeds (with a max line length of 256k). |
||
4462 | # Instead, let's just punt: use the minimum linelength reported by |
||
4463 | # all of the supported platforms: 8192 (on NT/2K/XP). |
||
4464 | lt_cv_sys_max_cmd_len=8192; |
||
4465 | ;; |
||
4466 | |||
4467 | amigaos*) |
||
4468 | # On AmigaOS with pdksh, this test takes hours, literally. |
||
4469 | # So we just punt and use a minimum line length of 8192. |
||
4470 | lt_cv_sys_max_cmd_len=8192; |
||
4471 | ;; |
||
4472 | |||
4473 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
||
4474 | # This has been around since 386BSD, at least. Likely further. |
||
4475 | if test -x /sbin/sysctl; then |
||
4476 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
||
4477 | elif test -x /usr/sbin/sysctl; then |
||
4478 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
||
4479 | else |
||
4480 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
||
4481 | fi |
||
4482 | # And add a safety zone |
||
4483 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
4484 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
4485 | ;; |
||
4486 | |||
4487 | interix*) |
||
4488 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
||
4489 | lt_cv_sys_max_cmd_len=196608 |
||
4490 | ;; |
||
4491 | |||
4492 | osf*) |
||
4493 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
||
4494 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
||
4495 | # nice to cause kernel panics so lets avoid the loop below. |
||
4496 | # First set a reasonable default. |
||
4497 | lt_cv_sys_max_cmd_len=16384 |
||
4498 | # |
||
4499 | if test -x /sbin/sysconfig; then |
||
4500 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
||
4501 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
||
4502 | esac |
||
4503 | fi |
||
4504 | ;; |
||
4505 | sco3.2v5*) |
||
4506 | lt_cv_sys_max_cmd_len=102400 |
||
4507 | ;; |
||
4508 | sysv5* | sco5v6* | sysv4.2uw2*) |
||
4509 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
||
4510 | if test -n "$kargmax"; then |
||
4511 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
||
4512 | else |
||
4513 | lt_cv_sys_max_cmd_len=32768 |
||
4514 | fi |
||
4515 | ;; |
||
4516 | *) |
||
4517 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
||
4518 | if test -n "$lt_cv_sys_max_cmd_len"; then |
||
4519 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
4520 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
4521 | else |
||
4522 | # Make teststring a little bigger before we do anything with it. |
||
4523 | # a 1K string should be a reasonable start. |
||
4524 | for i in 1 2 3 4 5 6 7 8 ; do |
||
4525 | teststring=$teststring$teststring |
||
4526 | done |
||
4527 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
||
4528 | # If test is not a shell built-in, we'll probably end up computing a |
||
4529 | # maximum length that is only half of the actual maximum length, but |
||
4530 | # we can't tell. |
||
4531 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
||
4532 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
||
4533 | test $i != 17 # 1/2 MB should be enough |
||
4534 | do |
||
4535 | i=`expr $i + 1` |
||
4536 | teststring=$teststring$teststring |
||
4537 | done |
||
4538 | # Only check the string length outside the loop. |
||
4539 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
||
4540 | teststring= |
||
4541 | # Add a significant safety factor because C++ compilers can tack on |
||
4542 | # massive amounts of additional arguments before passing them to the |
||
4543 | # linker. It appears as though 1/2 is a usable value. |
||
4544 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
||
4545 | fi |
||
4546 | ;; |
||
4547 | esac |
||
4548 | |||
4549 | fi |
||
4550 | |||
4551 | if test -n $lt_cv_sys_max_cmd_len ; then |
||
4552 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
||
4553 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
||
4554 | else |
||
4555 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
||
4556 | $as_echo "none" >&6; } |
||
4557 | fi |
||
4558 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
4559 | |||
4560 | |||
4561 | |||
4562 | |||
4563 | |||
4564 | |||
4565 | : ${CP="cp -f"} |
||
4566 | : ${MV="mv -f"} |
||
4567 | : ${RM="rm -f"} |
||
4568 | |||
4569 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
||
4570 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
||
4571 | # Try some XSI features |
||
4572 | xsi_shell=no |
||
4573 | ( _lt_dummy="a/b/c" |
||
4574 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
||
4575 | = c,a/b,, \ |
||
4576 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
||
4577 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
||
4578 | && xsi_shell=yes |
||
4579 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
||
4580 | $as_echo "$xsi_shell" >&6; } |
||
4581 | |||
4582 | |||
4583 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
||
4584 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
||
4585 | lt_shell_append=no |
||
4586 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
||
4587 | >/dev/null 2>&1 \ |
||
4588 | && lt_shell_append=yes |
||
4589 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
||
4590 | $as_echo "$lt_shell_append" >&6; } |
||
4591 | |||
4592 | |||
4593 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
4594 | lt_unset=unset |
||
4595 | else |
||
4596 | lt_unset=false |
||
4597 | fi |
||
4598 | |||
4599 | |||
4600 | |||
4601 | |||
4602 | |||
4603 | # test EBCDIC or ASCII |
||
4604 | case `echo X|tr X '\101'` in |
||
4605 | A) # ASCII based system |
||
4606 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
||
4607 | lt_SP2NL='tr \040 \012' |
||
4608 | lt_NL2SP='tr \015\012 \040\040' |
||
4609 | ;; |
||
4610 | *) # EBCDIC based system |
||
4611 | lt_SP2NL='tr \100 \n' |
||
4612 | lt_NL2SP='tr \r\n \100\100' |
||
4613 | ;; |
||
4614 | esac |
||
4615 | |||
4616 | |||
4617 | |||
4618 | |||
4619 | |||
4620 | |||
4621 | |||
4622 | |||
4623 | |||
4624 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
||
4625 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
||
4626 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
||
4627 | $as_echo_n "(cached) " >&6 |
||
4628 | else |
||
4629 | lt_cv_ld_reload_flag='-r' |
||
4630 | fi |
||
4631 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
||
4632 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
||
4633 | reload_flag=$lt_cv_ld_reload_flag |
||
4634 | case $reload_flag in |
||
4635 | "" | " "*) ;; |
||
4636 | *) reload_flag=" $reload_flag" ;; |
||
4637 | esac |
||
4638 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
4639 | case $host_os in |
||
4640 | darwin*) |
||
4641 | if test "$GCC" = yes; then |
||
4642 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
||
4643 | else |
||
4644 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
4645 | fi |
||
4646 | ;; |
||
4647 | esac |
||
4648 | |||
4649 | |||
4650 | |||
4651 | |||
4652 | |||
4653 | |||
4654 | |||
4655 | |||
4656 | |||
4657 | if test -n "$ac_tool_prefix"; then |
||
4658 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
||
4659 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
||
4660 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
4661 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4662 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
||
4663 | $as_echo_n "(cached) " >&6 |
||
4664 | else |
||
4665 | if test -n "$OBJDUMP"; then |
||
4666 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
||
4667 | else |
||
4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4669 | for as_dir in $PATH |
||
4670 | do |
||
4671 | IFS=$as_save_IFS |
||
4672 | test -z "$as_dir" && as_dir=. |
||
4673 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
4675 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
||
4676 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4677 | break 2 |
||
4678 | fi |
||
4679 | done |
||
4680 | done |
||
4681 | IFS=$as_save_IFS |
||
4682 | |||
4683 | fi |
||
4684 | fi |
||
4685 | OBJDUMP=$ac_cv_prog_OBJDUMP |
||
4686 | if test -n "$OBJDUMP"; then |
||
4687 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
||
4688 | $as_echo "$OBJDUMP" >&6; } |
||
4689 | else |
||
4690 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
4691 | $as_echo "no" >&6; } |
||
4692 | fi |
||
4693 | |||
4694 | |||
4695 | fi |
||
4696 | if test -z "$ac_cv_prog_OBJDUMP"; then |
||
4697 | ac_ct_OBJDUMP=$OBJDUMP |
||
4698 | # Extract the first word of "objdump", so it can be a program name with args. |
||
4699 | set dummy objdump; ac_word=$2 |
||
4700 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
4701 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4702 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
||
4703 | $as_echo_n "(cached) " >&6 |
||
4704 | else |
||
4705 | if test -n "$ac_ct_OBJDUMP"; then |
||
4706 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
||
4707 | else |
||
4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4709 | for as_dir in $PATH |
||
4710 | do |
||
4711 | IFS=$as_save_IFS |
||
4712 | test -z "$as_dir" && as_dir=. |
||
4713 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
4715 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
||
4716 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4717 | break 2 |
||
4718 | fi |
||
4719 | done |
||
4720 | done |
||
4721 | IFS=$as_save_IFS |
||
4722 | |||
4723 | fi |
||
4724 | fi |
||
4725 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
||
4726 | if test -n "$ac_ct_OBJDUMP"; then |
||
4727 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
||
4728 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
||
4729 | else |
||
4730 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
4731 | $as_echo "no" >&6; } |
||
4732 | fi |
||
4733 | |||
4734 | if test "x$ac_ct_OBJDUMP" = x; then |
||
4735 | OBJDUMP="false" |
||
4736 | else |
||
4737 | case $cross_compiling:$ac_tool_warned in |
||
4738 | yes:) |
||
4739 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
4740 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
4741 | ac_tool_warned=yes ;; |
||
4742 | esac |
||
4743 | OBJDUMP=$ac_ct_OBJDUMP |
||
4744 | fi |
||
4745 | else |
||
4746 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
||
4747 | fi |
||
4748 | |||
4749 | test -z "$OBJDUMP" && OBJDUMP=objdump |
||
4750 | |||
4751 | |||
4752 | |||
4753 | |||
4754 | |||
4755 | |||
4756 | |||
4757 | |||
4758 | |||
4759 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
||
4760 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
||
4761 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
||
4762 | $as_echo_n "(cached) " >&6 |
||
4763 | else |
||
4764 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
||
4765 | lt_cv_file_magic_test_file= |
||
4766 | lt_cv_deplibs_check_method='unknown' |
||
4767 | # Need to set the preceding variable on all platforms that support |
||
4768 | # interlibrary dependencies. |
||
4769 | # 'none' -- dependencies not supported. |
||
4770 | # `unknown' -- same as none, but documents that we really don't know. |
||
4771 | # 'pass_all' -- all dependencies passed with no checks. |
||
4772 | # 'test_compile' -- check by making test program. |
||
4773 | # 'file_magic [[regex]]' -- check by looking for files in library path |
||
4774 | # which responds to the $file_magic_cmd with a given extended regex. |
||
4775 | # If you have `file' or equivalent on your system and you're not sure |
||
4776 | # whether `pass_all' will *always* work, you probably want this one. |
||
4777 | |||
4778 | case $host_os in |
||
4779 | aix[4-9]*) |
||
4780 | lt_cv_deplibs_check_method=pass_all |
||
4781 | ;; |
||
4782 | |||
4783 | beos*) |
||
4784 | lt_cv_deplibs_check_method=pass_all |
||
4785 | ;; |
||
4786 | |||
4787 | bsdi[45]*) |
||
4788 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
||
4789 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
||
4790 | lt_cv_file_magic_test_file=/shlib/libc.so |
||
4791 | ;; |
||
4792 | |||
4793 | cygwin*) |
||
4794 | # func_win32_libid is a shell function defined in ltmain.sh |
||
4795 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
4796 | lt_cv_file_magic_cmd='func_win32_libid' |
||
4797 | ;; |
||
4798 | |||
4799 | mingw* | pw32*) |
||
4800 | # Base MSYS/MinGW do not provide the 'file' command needed by |
||
4801 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
||
4802 | # unless we find 'file', for example because we are cross-compiling. |
||
4803 | if ( file / ) >/dev/null 2>&1; then |
||
4804 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
4805 | lt_cv_file_magic_cmd='func_win32_libid' |
||
4806 | else |
||
4807 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
||
4808 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
4809 | fi |
||
4810 | ;; |
||
4811 | |||
4812 | cegcc) |
||
4813 | # use the weaker test based on 'objdump'. See mingw*. |
||
4814 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
||
4815 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
4816 | ;; |
||
4817 | |||
4818 | darwin* | rhapsody*) |
||
4819 | lt_cv_deplibs_check_method=pass_all |
||
4820 | ;; |
||
4821 | |||
4822 | freebsd* | dragonfly*) |
||
4823 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
||
4824 | case $host_cpu in |
||
4825 | i*86 ) |
||
4826 | # Not sure whether the presence of OpenBSD here was a mistake. |
||
4827 | # Let's accept both of them until this is cleared up. |
||
4828 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
||
4829 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4830 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
||
4831 | ;; |
||
4832 | esac |
||
4833 | else |
||
4834 | lt_cv_deplibs_check_method=pass_all |
||
4835 | fi |
||
4836 | ;; |
||
4837 | |||
4838 | gnu*) |
||
4839 | lt_cv_deplibs_check_method=pass_all |
||
4840 | ;; |
||
4841 | |||
4842 | hpux10.20* | hpux11*) |
||
4843 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4844 | case $host_cpu in |
||
4845 | ia64*) |
||
4846 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
||
4847 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
||
4848 | ;; |
||
4849 | hppa*64*) |
||
4850 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
||
4851 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
||
4852 | ;; |
||
4853 | *) |
||
4854 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
||
4855 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
||
4856 | ;; |
||
4857 | esac |
||
4858 | ;; |
||
4859 | |||
4860 | interix[3-9]*) |
||
4861 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
||
4862 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
||
4863 | ;; |
||
4864 | |||
4865 | irix5* | irix6* | nonstopux*) |
||
4866 | case $LD in |
||
4867 | *-32|*"-32 ") libmagic=32-bit;; |
||
4868 | *-n32|*"-n32 ") libmagic=N32;; |
||
4869 | *-64|*"-64 ") libmagic=64-bit;; |
||
4870 | *) libmagic=never-match;; |
||
4871 | esac |
||
4872 | lt_cv_deplibs_check_method=pass_all |
||
4873 | ;; |
||
4874 | |||
4875 | # This must be Linux ELF. |
||
4876 | linux* | k*bsd*-gnu) |
||
4877 | lt_cv_deplibs_check_method=pass_all |
||
4878 | ;; |
||
4879 | |||
4880 | netbsd*) |
||
4881 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
||
4882 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
4883 | else |
||
4884 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
||
4885 | fi |
||
4886 | ;; |
||
4887 | |||
4888 | newos6*) |
||
4889 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
||
4890 | lt_cv_file_magic_cmd=/usr/bin/file |
||
4891 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
||
4892 | ;; |
||
4893 | |||
4894 | *nto* | *qnx*) |
||
4895 | lt_cv_deplibs_check_method=pass_all |
||
4896 | ;; |
||
4897 | |||
4898 | openbsd*) |
||
4899 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
4900 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
||
4901 | else |
||
4902 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
4903 | fi |
||
4904 | ;; |
||
4905 | |||
4906 | osf3* | osf4* | osf5*) |
||
4907 | lt_cv_deplibs_check_method=pass_all |
||
4908 | ;; |
||
4909 | |||
4910 | rdos*) |
||
4911 | lt_cv_deplibs_check_method=pass_all |
||
4912 | ;; |
||
4913 | |||
4914 | solaris*) |
||
4915 | lt_cv_deplibs_check_method=pass_all |
||
4916 | ;; |
||
4917 | |||
4918 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
4919 | lt_cv_deplibs_check_method=pass_all |
||
4920 | ;; |
||
4921 | |||
4922 | sysv4 | sysv4.3*) |
||
4923 | case $host_vendor in |
||
4924 | motorola) |
||
4925 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
||
4926 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
||
4927 | ;; |
||
4928 | ncr) |
||
4929 | lt_cv_deplibs_check_method=pass_all |
||
4930 | ;; |
||
4931 | sequent) |
||
4932 | lt_cv_file_magic_cmd='/bin/file' |
||
4933 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
||
4934 | ;; |
||
4935 | sni) |
||
4936 | lt_cv_file_magic_cmd='/bin/file' |
||
4937 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
||
4938 | lt_cv_file_magic_test_file=/lib/libc.so |
||
4939 | ;; |
||
4940 | siemens) |
||
4941 | lt_cv_deplibs_check_method=pass_all |
||
4942 | ;; |
||
4943 | pc) |
||
4944 | lt_cv_deplibs_check_method=pass_all |
||
4945 | ;; |
||
4946 | esac |
||
4947 | ;; |
||
4948 | |||
4949 | tpf*) |
||
4950 | lt_cv_deplibs_check_method=pass_all |
||
4951 | ;; |
||
4952 | esac |
||
4953 | |||
4954 | fi |
||
4955 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
||
4956 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
||
4957 | file_magic_cmd=$lt_cv_file_magic_cmd |
||
4958 | deplibs_check_method=$lt_cv_deplibs_check_method |
||
4959 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
||
4960 | |||
4961 | |||
4962 | |||
4963 | |||
4964 | |||
4965 | |||
4966 | |||
4967 | |||
4968 | |||
4969 | |||
4970 | |||
4971 | |||
4972 | if test -n "$ac_tool_prefix"; then |
||
4973 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
||
4974 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
||
4975 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
4976 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4977 | if test "${ac_cv_prog_AR+set}" = set; then |
||
4978 | $as_echo_n "(cached) " >&6 |
||
4979 | else |
||
4980 | if test -n "$AR"; then |
||
4981 | ac_cv_prog_AR="$AR" # Let the user override the test. |
||
4982 | else |
||
4983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4984 | for as_dir in $PATH |
||
4985 | do |
||
4986 | IFS=$as_save_IFS |
||
4987 | test -z "$as_dir" && as_dir=. |
||
4988 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
4990 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
||
4991 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4992 | break 2 |
||
4993 | fi |
||
4994 | done |
||
4995 | done |
||
4996 | IFS=$as_save_IFS |
||
4997 | |||
4998 | fi |
||
4999 | fi |
||
5000 | AR=$ac_cv_prog_AR |
||
5001 | if test -n "$AR"; then |
||
5002 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
||
5003 | $as_echo "$AR" >&6; } |
||
5004 | else |
||
5005 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5006 | $as_echo "no" >&6; } |
||
5007 | fi |
||
5008 | |||
5009 | |||
5010 | fi |
||
5011 | if test -z "$ac_cv_prog_AR"; then |
||
5012 | ac_ct_AR=$AR |
||
5013 | # Extract the first word of "ar", so it can be a program name with args. |
||
5014 | set dummy ar; ac_word=$2 |
||
5015 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5016 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5017 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
||
5018 | $as_echo_n "(cached) " >&6 |
||
5019 | else |
||
5020 | if test -n "$ac_ct_AR"; then |
||
5021 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
||
5022 | else |
||
5023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5024 | for as_dir in $PATH |
||
5025 | do |
||
5026 | IFS=$as_save_IFS |
||
5027 | test -z "$as_dir" && as_dir=. |
||
5028 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5030 | ac_cv_prog_ac_ct_AR="ar" |
||
5031 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5032 | break 2 |
||
5033 | fi |
||
5034 | done |
||
5035 | done |
||
5036 | IFS=$as_save_IFS |
||
5037 | |||
5038 | fi |
||
5039 | fi |
||
5040 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
||
5041 | if test -n "$ac_ct_AR"; then |
||
5042 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
||
5043 | $as_echo "$ac_ct_AR" >&6; } |
||
5044 | else |
||
5045 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5046 | $as_echo "no" >&6; } |
||
5047 | fi |
||
5048 | |||
5049 | if test "x$ac_ct_AR" = x; then |
||
5050 | AR="false" |
||
5051 | else |
||
5052 | case $cross_compiling:$ac_tool_warned in |
||
5053 | yes:) |
||
5054 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5056 | ac_tool_warned=yes ;; |
||
5057 | esac |
||
5058 | AR=$ac_ct_AR |
||
5059 | fi |
||
5060 | else |
||
5061 | AR="$ac_cv_prog_AR" |
||
5062 | fi |
||
5063 | |||
5064 | test -z "$AR" && AR=ar |
||
5065 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
||
5066 | |||
5067 | |||
5068 | |||
5069 | |||
5070 | |||
5071 | |||
5072 | |||
5073 | |||
5074 | |||
5075 | |||
5076 | |||
5077 | if test -n "$ac_tool_prefix"; then |
||
5078 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
5079 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
5080 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5081 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5082 | if test "${ac_cv_prog_STRIP+set}" = set; then |
||
5083 | $as_echo_n "(cached) " >&6 |
||
5084 | else |
||
5085 | if test -n "$STRIP"; then |
||
5086 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
5087 | else |
||
5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5089 | for as_dir in $PATH |
||
5090 | do |
||
5091 | IFS=$as_save_IFS |
||
5092 | test -z "$as_dir" && as_dir=. |
||
5093 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5095 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
5096 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5097 | break 2 |
||
5098 | fi |
||
5099 | done |
||
5100 | done |
||
5101 | IFS=$as_save_IFS |
||
5102 | |||
5103 | fi |
||
5104 | fi |
||
5105 | STRIP=$ac_cv_prog_STRIP |
||
5106 | if test -n "$STRIP"; then |
||
5107 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
||
5108 | $as_echo "$STRIP" >&6; } |
||
5109 | else |
||
5110 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5111 | $as_echo "no" >&6; } |
||
5112 | fi |
||
5113 | |||
5114 | |||
5115 | fi |
||
5116 | if test -z "$ac_cv_prog_STRIP"; then |
||
5117 | ac_ct_STRIP=$STRIP |
||
5118 | # Extract the first word of "strip", so it can be a program name with args. |
||
5119 | set dummy strip; ac_word=$2 |
||
5120 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5121 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5122 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
||
5123 | $as_echo_n "(cached) " >&6 |
||
5124 | else |
||
5125 | if test -n "$ac_ct_STRIP"; then |
||
5126 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
5127 | else |
||
5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5129 | for as_dir in $PATH |
||
5130 | do |
||
5131 | IFS=$as_save_IFS |
||
5132 | test -z "$as_dir" && as_dir=. |
||
5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5135 | ac_cv_prog_ac_ct_STRIP="strip" |
||
5136 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5137 | break 2 |
||
5138 | fi |
||
5139 | done |
||
5140 | done |
||
5141 | IFS=$as_save_IFS |
||
5142 | |||
5143 | fi |
||
5144 | fi |
||
5145 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
5146 | if test -n "$ac_ct_STRIP"; then |
||
5147 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
||
5148 | $as_echo "$ac_ct_STRIP" >&6; } |
||
5149 | else |
||
5150 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5151 | $as_echo "no" >&6; } |
||
5152 | fi |
||
5153 | |||
5154 | if test "x$ac_ct_STRIP" = x; then |
||
5155 | STRIP=":" |
||
5156 | else |
||
5157 | case $cross_compiling:$ac_tool_warned in |
||
5158 | yes:) |
||
5159 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5161 | ac_tool_warned=yes ;; |
||
5162 | esac |
||
5163 | STRIP=$ac_ct_STRIP |
||
5164 | fi |
||
5165 | else |
||
5166 | STRIP="$ac_cv_prog_STRIP" |
||
5167 | fi |
||
5168 | |||
5169 | test -z "$STRIP" && STRIP=: |
||
5170 | |||
5171 | |||
5172 | |||
5173 | |||
5174 | |||
5175 | |||
5176 | if test -n "$ac_tool_prefix"; then |
||
5177 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
5178 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
5179 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5180 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5181 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
||
5182 | $as_echo_n "(cached) " >&6 |
||
5183 | else |
||
5184 | if test -n "$RANLIB"; then |
||
5185 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
5186 | else |
||
5187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5188 | for as_dir in $PATH |
||
5189 | do |
||
5190 | IFS=$as_save_IFS |
||
5191 | test -z "$as_dir" && as_dir=. |
||
5192 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5194 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
5195 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5196 | break 2 |
||
5197 | fi |
||
5198 | done |
||
5199 | done |
||
5200 | IFS=$as_save_IFS |
||
5201 | |||
5202 | fi |
||
5203 | fi |
||
5204 | RANLIB=$ac_cv_prog_RANLIB |
||
5205 | if test -n "$RANLIB"; then |
||
5206 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
||
5207 | $as_echo "$RANLIB" >&6; } |
||
5208 | else |
||
5209 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5210 | $as_echo "no" >&6; } |
||
5211 | fi |
||
5212 | |||
5213 | |||
5214 | fi |
||
5215 | if test -z "$ac_cv_prog_RANLIB"; then |
||
5216 | ac_ct_RANLIB=$RANLIB |
||
5217 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
5218 | set dummy ranlib; ac_word=$2 |
||
5219 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5220 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5221 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
||
5222 | $as_echo_n "(cached) " >&6 |
||
5223 | else |
||
5224 | if test -n "$ac_ct_RANLIB"; then |
||
5225 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
5226 | else |
||
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5228 | for as_dir in $PATH |
||
5229 | do |
||
5230 | IFS=$as_save_IFS |
||
5231 | test -z "$as_dir" && as_dir=. |
||
5232 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5234 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
5235 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5236 | break 2 |
||
5237 | fi |
||
5238 | done |
||
5239 | done |
||
5240 | IFS=$as_save_IFS |
||
5241 | |||
5242 | fi |
||
5243 | fi |
||
5244 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
5245 | if test -n "$ac_ct_RANLIB"; then |
||
5246 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
||
5247 | $as_echo "$ac_ct_RANLIB" >&6; } |
||
5248 | else |
||
5249 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5250 | $as_echo "no" >&6; } |
||
5251 | fi |
||
5252 | |||
5253 | if test "x$ac_ct_RANLIB" = x; then |
||
5254 | RANLIB=":" |
||
5255 | else |
||
5256 | case $cross_compiling:$ac_tool_warned in |
||
5257 | yes:) |
||
5258 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5260 | ac_tool_warned=yes ;; |
||
5261 | esac |
||
5262 | RANLIB=$ac_ct_RANLIB |
||
5263 | fi |
||
5264 | else |
||
5265 | RANLIB="$ac_cv_prog_RANLIB" |
||
5266 | fi |
||
5267 | |||
5268 | test -z "$RANLIB" && RANLIB=: |
||
5269 | |||
5270 | |||
5271 | |||
5272 | |||
5273 | |||
5274 | |||
5275 | # Determine commands to create old-style static archives. |
||
5276 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
||
5277 | old_postinstall_cmds='chmod 644 $oldlib' |
||
5278 | old_postuninstall_cmds= |
||
5279 | |||
5280 | if test -n "$RANLIB"; then |
||
5281 | case $host_os in |
||
5282 | openbsd*) |
||
5283 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
||
5284 | ;; |
||
5285 | *) |
||
5286 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
||
5287 | ;; |
||
5288 | esac |
||
5289 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
||
5290 | fi |
||
5291 | |||
5292 | |||
5293 | |||
5294 | |||
5295 | |||
5296 | |||
5297 | |||
5298 | |||
5299 | |||
5300 | |||
5301 | |||
5302 | |||
5303 | |||
5304 | |||
5305 | |||
5306 | |||
5307 | |||
5308 | |||
5309 | |||
5310 | |||
5311 | |||
5312 | |||
5313 | |||
5314 | |||
5315 | |||
5316 | |||
5317 | |||
5318 | |||
5319 | |||
5320 | |||
5321 | |||
5322 | |||
5323 | |||
5324 | |||
5325 | # If no C compiler was specified, use CC. |
||
5326 | LTCC=${LTCC-"$CC"} |
||
5327 | |||
5328 | # If no C compiler flags were specified, use CFLAGS. |
||
5329 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
5330 | |||
5331 | # Allow CC to be a program name with arguments. |
||
5332 | compiler=$CC |
||
5333 | |||
5334 | |||
5335 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
||
5336 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
||
5337 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
||
5338 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
||
5339 | $as_echo_n "(cached) " >&6 |
||
5340 | else |
||
5341 | |||
5342 | # These are sane defaults that work on at least a few old systems. |
||
5343 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
||
5344 | |||
5345 | # Character class describing NM global symbol codes. |
||
5346 | symcode='[BCDEGRST]' |
||
5347 | |||
5348 | # Regexp to match symbols that can be accessed directly from C. |
||
5349 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
||
5350 | |||
5351 | # Define system-specific variables. |
||
5352 | case $host_os in |
||
5353 | aix*) |
||
5354 | symcode='[BCDT]' |
||
5355 | ;; |
||
5356 | cygwin* | mingw* | pw32* | cegcc*) |
||
5357 | symcode='[ABCDGISTW]' |
||
5358 | ;; |
||
5359 | hpux*) |
||
5360 | if test "$host_cpu" = ia64; then |
||
5361 | symcode='[ABCDEGRST]' |
||
5362 | fi |
||
5363 | ;; |
||
5364 | irix* | nonstopux*) |
||
5365 | symcode='[BCDEGRST]' |
||
5366 | ;; |
||
5367 | osf*) |
||
5368 | symcode='[BCDEGQRST]' |
||
5369 | ;; |
||
5370 | solaris*) |
||
5371 | symcode='[BDRT]' |
||
5372 | ;; |
||
5373 | sco3.2v5*) |
||
5374 | symcode='[DT]' |
||
5375 | ;; |
||
5376 | sysv4.2uw2*) |
||
5377 | symcode='[DT]' |
||
5378 | ;; |
||
5379 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
||
5380 | symcode='[ABDT]' |
||
5381 | ;; |
||
5382 | sysv4) |
||
5383 | symcode='[DFNSTU]' |
||
5384 | ;; |
||
5385 | esac |
||
5386 | |||
5387 | # If we're using GNU nm, then use its standard symbol codes. |
||
5388 | case `$NM -V 2>&1` in |
||
5389 | *GNU* | *'with BFD'*) |
||
5390 | symcode='[ABCDGIRSTW]' ;; |
||
5391 | esac |
||
5392 | |||
5393 | # Transform an extracted symbol line into a proper C declaration. |
||
5394 | # Some systems (esp. on ia64) link data and code symbols differently, |
||
5395 | # so use this general approach. |
||
5396 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
||
5397 | |||
5398 | # Transform an extracted symbol line into symbol name and symbol address |
||
5399 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
||
5400 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
||
5401 | |||
5402 | # Handle CRLF in mingw tool chain |
||
5403 | opt_cr= |
||
5404 | case $build_os in |
||
5405 | mingw*) |
||
5406 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
||
5407 | ;; |
||
5408 | esac |
||
5409 | |||
5410 | # Try without a prefix underscore, then with it. |
||
5411 | for ac_symprfx in "" "_"; do |
||
5412 | |||
5413 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
||
5414 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
||
5415 | |||
5416 | # Write the raw and C identifiers. |
||
5417 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
5418 | # Fake it for dumpbin and say T for any non-static function |
||
5419 | # and D for any global variable. |
||
5420 | # Also find C++ and __fastcall symbols from MSVC++, |
||
5421 | # which start with @ or ?. |
||
5422 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
||
5423 | " {last_section=section; section=\$ 3};"\ |
||
5424 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
||
5425 | " \$ 0!~/External *\|/{next};"\ |
||
5426 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
||
5427 | " {if(hide[section]) next};"\ |
||
5428 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
||
5429 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
||
5430 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
||
5431 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
||
5432 | " ' prfx=^$ac_symprfx" |
||
5433 | else |
||
5434 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
||
5435 | fi |
||
5436 | |||
5437 | # Check to see that the pipe works correctly. |
||
5438 | pipe_works=no |
||
5439 | |||
5440 | rm -f conftest* |
||
5441 | cat > conftest.$ac_ext <<_LT_EOF |
||
5442 | #ifdef __cplusplus |
||
5443 | extern "C" { |
||
5444 | #endif |
||
5445 | char nm_test_var; |
||
5446 | void nm_test_func(void); |
||
5447 | void nm_test_func(void){} |
||
5448 | #ifdef __cplusplus |
||
5449 | } |
||
5450 | #endif |
||
5451 | int main(){nm_test_var='a';nm_test_func();return(0);} |
||
5452 | _LT_EOF |
||
5453 | |||
5454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5455 | (eval $ac_compile) 2>&5 |
||
5456 | ac_status=$? |
||
5457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5458 | (exit $ac_status); }; then |
||
5459 | # Now try to grab the symbols. |
||
5460 | nlist=conftest.nm |
||
5461 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
||
5462 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
||
5463 | ac_status=$? |
||
5464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5465 | (exit $ac_status); } && test -s "$nlist"; then |
||
5466 | # Try sorting and uniquifying the output. |
||
5467 | if sort "$nlist" | uniq > "$nlist"T; then |
||
5468 | mv -f "$nlist"T "$nlist" |
||
5469 | else |
||
5470 | rm -f "$nlist"T |
||
5471 | fi |
||
5472 | |||
5473 | # Make sure that we snagged all the symbols we need. |
||
5474 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
||
5475 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
||
5476 | cat <<_LT_EOF > conftest.$ac_ext |
||
5477 | #ifdef __cplusplus |
||
5478 | extern "C" { |
||
5479 | #endif |
||
5480 | |||
5481 | _LT_EOF |
||
5482 | # Now generate the symbol file. |
||
5483 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
||
5484 | |||
5485 | cat <<_LT_EOF >> conftest.$ac_ext |
||
5486 | |||
5487 | /* The mapping between symbol names and symbols. */ |
||
5488 | const struct { |
||
5489 | const char *name; |
||
5490 | void *address; |
||
5491 | } |
||
5492 | lt__PROGRAM__LTX_preloaded_symbols[] = |
||
5493 | { |
||
5494 | { "@PROGRAM@", (void *) 0 }, |
||
5495 | _LT_EOF |
||
5496 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
||
5497 | cat <<\_LT_EOF >> conftest.$ac_ext |
||
5498 | {0, (void *) 0} |
||
5499 | }; |
||
5500 | |||
5501 | /* This works around a problem in FreeBSD linker */ |
||
5502 | #ifdef FREEBSD_WORKAROUND |
||
5503 | static const void *lt_preloaded_setup() { |
||
5504 | return lt__PROGRAM__LTX_preloaded_symbols; |
||
5505 | } |
||
5506 | #endif |
||
5507 | |||
5508 | #ifdef __cplusplus |
||
5509 | } |
||
5510 | #endif |
||
5511 | _LT_EOF |
||
5512 | # Now try linking the two files. |
||
5513 | mv conftest.$ac_objext conftstm.$ac_objext |
||
5514 | lt_save_LIBS="$LIBS" |
||
5515 | lt_save_CFLAGS="$CFLAGS" |
||
5516 | LIBS="conftstm.$ac_objext" |
||
5517 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
||
5518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5519 | (eval $ac_link) 2>&5 |
||
5520 | ac_status=$? |
||
5521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5522 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
||
5523 | pipe_works=yes |
||
5524 | fi |
||
5525 | LIBS="$lt_save_LIBS" |
||
5526 | CFLAGS="$lt_save_CFLAGS" |
||
5527 | else |
||
5528 | echo "cannot find nm_test_func in $nlist" >&5 |
||
5529 | fi |
||
5530 | else |
||
5531 | echo "cannot find nm_test_var in $nlist" >&5 |
||
5532 | fi |
||
5533 | else |
||
5534 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
||
5535 | fi |
||
5536 | else |
||
5537 | echo "$progname: failed program was:" >&5 |
||
5538 | cat conftest.$ac_ext >&5 |
||
5539 | fi |
||
5540 | rm -rf conftest* conftst* |
||
5541 | |||
5542 | # Do not use the global_symbol_pipe unless it works. |
||
5543 | if test "$pipe_works" = yes; then |
||
5544 | break |
||
5545 | else |
||
5546 | lt_cv_sys_global_symbol_pipe= |
||
5547 | fi |
||
5548 | done |
||
5549 | |||
5550 | fi |
||
5551 | |||
5552 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
||
5553 | lt_cv_sys_global_symbol_to_cdecl= |
||
5554 | fi |
||
5555 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
||
5556 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
||
5557 | $as_echo "failed" >&6; } |
||
5558 | else |
||
5559 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
||
5560 | $as_echo "ok" >&6; } |
||
5561 | fi |
||
5562 | |||
5563 | |||
5564 | |||
5565 | |||
5566 | |||
5567 | |||
5568 | |||
5569 | |||
5570 | |||
5571 | |||
5572 | |||
5573 | |||
5574 | |||
5575 | |||
5576 | |||
5577 | |||
5578 | |||
5579 | |||
5580 | |||
5581 | |||
5582 | |||
5583 | |||
5584 | |||
5585 | # Check whether --enable-libtool-lock was given. |
||
5586 | if test "${enable_libtool_lock+set}" = set; then |
||
5587 | enableval=$enable_libtool_lock; |
||
5588 | fi |
||
5589 | |||
5590 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
||
5591 | |||
5592 | # Some flags need to be propagated to the compiler or linker for good |
||
5593 | # libtool support. |
||
5594 | case $host in |
||
5595 | ia64-*-hpux*) |
||
5596 | # Find out which ABI we are using. |
||
5597 | echo 'int i;' > conftest.$ac_ext |
||
5598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5599 | (eval $ac_compile) 2>&5 |
||
5600 | ac_status=$? |
||
5601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5602 | (exit $ac_status); }; then |
||
5603 | case `/usr/bin/file conftest.$ac_objext` in |
||
5604 | *ELF-32*) |
||
5605 | HPUX_IA64_MODE="32" |
||
5606 | ;; |
||
5607 | *ELF-64*) |
||
5608 | HPUX_IA64_MODE="64" |
||
5609 | ;; |
||
5610 | esac |
||
5611 | fi |
||
5612 | rm -rf conftest* |
||
5613 | ;; |
||
5614 | *-*-irix6*) |
||
5615 | # Find out which ABI we are using. |
||
5616 | echo '#line 5616 "configure"' > conftest.$ac_ext |
||
5617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5618 | (eval $ac_compile) 2>&5 |
||
5619 | ac_status=$? |
||
5620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5621 | (exit $ac_status); }; then |
||
5622 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
5623 | case `/usr/bin/file conftest.$ac_objext` in |
||
5624 | *32-bit*) |
||
5625 | LD="${LD-ld} -melf32bsmip" |
||
5626 | ;; |
||
5627 | *N32*) |
||
5628 | LD="${LD-ld} -melf32bmipn32" |
||
5629 | ;; |
||
5630 | *64-bit*) |
||
5631 | LD="${LD-ld} -melf64bmip" |
||
5632 | ;; |
||
5633 | esac |
||
5634 | else |
||
5635 | case `/usr/bin/file conftest.$ac_objext` in |
||
5636 | *32-bit*) |
||
5637 | LD="${LD-ld} -32" |
||
5638 | ;; |
||
5639 | *N32*) |
||
5640 | LD="${LD-ld} -n32" |
||
5641 | ;; |
||
5642 | *64-bit*) |
||
5643 | LD="${LD-ld} -64" |
||
5644 | ;; |
||
5645 | esac |
||
5646 | fi |
||
5647 | fi |
||
5648 | rm -rf conftest* |
||
5649 | ;; |
||
5650 | |||
5651 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
||
5652 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
||
5653 | # Find out which ABI we are using. |
||
5654 | echo 'int i;' > conftest.$ac_ext |
||
5655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5656 | (eval $ac_compile) 2>&5 |
||
5657 | ac_status=$? |
||
5658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5659 | (exit $ac_status); }; then |
||
5660 | case `/usr/bin/file conftest.o` in |
||
5661 | *32-bit*) |
||
5662 | case $host in |
||
5663 | x86_64-*kfreebsd*-gnu) |
||
5664 | LD="${LD-ld} -m elf_i386_fbsd" |
||
5665 | ;; |
||
5666 | x86_64-*linux*) |
||
5667 | LD="${LD-ld} -m elf_i386" |
||
5668 | ;; |
||
5669 | ppc64-*linux*|powerpc64-*linux*) |
||
5670 | LD="${LD-ld} -m elf32ppclinux" |
||
5671 | ;; |
||
5672 | s390x-*linux*) |
||
5673 | LD="${LD-ld} -m elf_s390" |
||
5674 | ;; |
||
5675 | sparc64-*linux*) |
||
5676 | LD="${LD-ld} -m elf32_sparc" |
||
5677 | ;; |
||
5678 | esac |
||
5679 | ;; |
||
5680 | *64-bit*) |
||
5681 | case $host in |
||
5682 | x86_64-*kfreebsd*-gnu) |
||
5683 | LD="${LD-ld} -m elf_x86_64_fbsd" |
||
5684 | ;; |
||
5685 | x86_64-*linux*) |
||
5686 | LD="${LD-ld} -m elf_x86_64" |
||
5687 | ;; |
||
5688 | ppc*-*linux*|powerpc*-*linux*) |
||
5689 | LD="${LD-ld} -m elf64ppc" |
||
5690 | ;; |
||
5691 | s390*-*linux*|s390*-*tpf*) |
||
5692 | LD="${LD-ld} -m elf64_s390" |
||
5693 | ;; |
||
5694 | sparc*-*linux*) |
||
5695 | LD="${LD-ld} -m elf64_sparc" |
||
5696 | ;; |
||
5697 | esac |
||
5698 | ;; |
||
5699 | esac |
||
5700 | fi |
||
5701 | rm -rf conftest* |
||
5702 | ;; |
||
5703 | |||
5704 | *-*-sco3.2v5*) |
||
5705 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
||
5706 | SAVE_CFLAGS="$CFLAGS" |
||
5707 | CFLAGS="$CFLAGS -belf" |
||
5708 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
||
5709 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
||
5710 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
||
5711 | $as_echo_n "(cached) " >&6 |
||
5712 | else |
||
5713 | ac_ext=c |
||
5714 | ac_cpp='$CPP $CPPFLAGS' |
||
5715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
5718 | |||
5719 | cat >conftest.$ac_ext <<_ACEOF |
||
5720 | /* confdefs.h. */ |
||
5721 | _ACEOF |
||
5722 | cat confdefs.h >>conftest.$ac_ext |
||
5723 | cat >>conftest.$ac_ext <<_ACEOF |
||
5724 | /* end confdefs.h. */ |
||
5725 | |||
5726 | int |
||
5727 | main () |
||
5728 | { |
||
5729 | |||
5730 | ; |
||
5731 | return 0; |
||
5732 | } |
||
5733 | _ACEOF |
||
5734 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
5735 | if { (ac_try="$ac_link" |
||
5736 | case "(($ac_try" in |
||
5737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
5738 | *) ac_try_echo=$ac_try;; |
||
5739 | esac |
||
5740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
5741 | $as_echo "$ac_try_echo") >&5 |
||
5742 | (eval "$ac_link") 2>conftest.er1 |
||
5743 | ac_status=$? |
||
5744 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5745 | rm -f conftest.er1 |
||
5746 | cat conftest.err >&5 |
||
5747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5748 | (exit $ac_status); } && { |
||
5749 | test -z "$ac_c_werror_flag" || |
||
5750 | test ! -s conftest.err |
||
5751 | } && test -s conftest$ac_exeext && { |
||
5752 | test "$cross_compiling" = yes || |
||
5753 | $as_test_x conftest$ac_exeext |
||
5754 | }; then |
||
5755 | lt_cv_cc_needs_belf=yes |
||
5756 | else |
||
5757 | $as_echo "$as_me: failed program was:" >&5 |
||
5758 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5759 | |||
5760 | lt_cv_cc_needs_belf=no |
||
5761 | fi |
||
5762 | |||
5763 | rm -rf conftest.dSYM |
||
5764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
5765 | conftest$ac_exeext conftest.$ac_ext |
||
5766 | ac_ext=c |
||
5767 | ac_cpp='$CPP $CPPFLAGS' |
||
5768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
5771 | |||
5772 | fi |
||
5773 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
||
5774 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
||
5775 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
||
5776 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
||
5777 | CFLAGS="$SAVE_CFLAGS" |
||
5778 | fi |
||
5779 | ;; |
||
5780 | sparc*-*solaris*) |
||
5781 | # Find out which ABI we are using. |
||
5782 | echo 'int i;' > conftest.$ac_ext |
||
5783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5784 | (eval $ac_compile) 2>&5 |
||
5785 | ac_status=$? |
||
5786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5787 | (exit $ac_status); }; then |
||
5788 | case `/usr/bin/file conftest.o` in |
||
5789 | *64-bit*) |
||
5790 | case $lt_cv_prog_gnu_ld in |
||
5791 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
||
5792 | *) |
||
5793 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
||
5794 | LD="${LD-ld} -64" |
||
5795 | fi |
||
5796 | ;; |
||
5797 | esac |
||
5798 | ;; |
||
5799 | esac |
||
5800 | fi |
||
5801 | rm -rf conftest* |
||
5802 | ;; |
||
5803 | esac |
||
5804 | |||
5805 | need_locks="$enable_libtool_lock" |
||
5806 | |||
5807 | |||
5808 | case $host_os in |
||
5809 | rhapsody* | darwin*) |
||
5810 | if test -n "$ac_tool_prefix"; then |
||
5811 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
||
5812 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
||
5813 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5814 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5815 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
||
5816 | $as_echo_n "(cached) " >&6 |
||
5817 | else |
||
5818 | if test -n "$DSYMUTIL"; then |
||
5819 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
||
5820 | else |
||
5821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5822 | for as_dir in $PATH |
||
5823 | do |
||
5824 | IFS=$as_save_IFS |
||
5825 | test -z "$as_dir" && as_dir=. |
||
5826 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5828 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
||
5829 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5830 | break 2 |
||
5831 | fi |
||
5832 | done |
||
5833 | done |
||
5834 | IFS=$as_save_IFS |
||
5835 | |||
5836 | fi |
||
5837 | fi |
||
5838 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
||
5839 | if test -n "$DSYMUTIL"; then |
||
5840 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
||
5841 | $as_echo "$DSYMUTIL" >&6; } |
||
5842 | else |
||
5843 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5844 | $as_echo "no" >&6; } |
||
5845 | fi |
||
5846 | |||
5847 | |||
5848 | fi |
||
5849 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
||
5850 | ac_ct_DSYMUTIL=$DSYMUTIL |
||
5851 | # Extract the first word of "dsymutil", so it can be a program name with args. |
||
5852 | set dummy dsymutil; ac_word=$2 |
||
5853 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5854 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5855 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
||
5856 | $as_echo_n "(cached) " >&6 |
||
5857 | else |
||
5858 | if test -n "$ac_ct_DSYMUTIL"; then |
||
5859 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
||
5860 | else |
||
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5862 | for as_dir in $PATH |
||
5863 | do |
||
5864 | IFS=$as_save_IFS |
||
5865 | test -z "$as_dir" && as_dir=. |
||
5866 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5868 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
||
5869 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5870 | break 2 |
||
5871 | fi |
||
5872 | done |
||
5873 | done |
||
5874 | IFS=$as_save_IFS |
||
5875 | |||
5876 | fi |
||
5877 | fi |
||
5878 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
||
5879 | if test -n "$ac_ct_DSYMUTIL"; then |
||
5880 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
||
5881 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
||
5882 | else |
||
5883 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5884 | $as_echo "no" >&6; } |
||
5885 | fi |
||
5886 | |||
5887 | if test "x$ac_ct_DSYMUTIL" = x; then |
||
5888 | DSYMUTIL=":" |
||
5889 | else |
||
5890 | case $cross_compiling:$ac_tool_warned in |
||
5891 | yes:) |
||
5892 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5894 | ac_tool_warned=yes ;; |
||
5895 | esac |
||
5896 | DSYMUTIL=$ac_ct_DSYMUTIL |
||
5897 | fi |
||
5898 | else |
||
5899 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
||
5900 | fi |
||
5901 | |||
5902 | if test -n "$ac_tool_prefix"; then |
||
5903 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
||
5904 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
||
5905 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5906 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5907 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
||
5908 | $as_echo_n "(cached) " >&6 |
||
5909 | else |
||
5910 | if test -n "$NMEDIT"; then |
||
5911 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
||
5912 | else |
||
5913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5914 | for as_dir in $PATH |
||
5915 | do |
||
5916 | IFS=$as_save_IFS |
||
5917 | test -z "$as_dir" && as_dir=. |
||
5918 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5920 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
||
5921 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5922 | break 2 |
||
5923 | fi |
||
5924 | done |
||
5925 | done |
||
5926 | IFS=$as_save_IFS |
||
5927 | |||
5928 | fi |
||
5929 | fi |
||
5930 | NMEDIT=$ac_cv_prog_NMEDIT |
||
5931 | if test -n "$NMEDIT"; then |
||
5932 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
||
5933 | $as_echo "$NMEDIT" >&6; } |
||
5934 | else |
||
5935 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5936 | $as_echo "no" >&6; } |
||
5937 | fi |
||
5938 | |||
5939 | |||
5940 | fi |
||
5941 | if test -z "$ac_cv_prog_NMEDIT"; then |
||
5942 | ac_ct_NMEDIT=$NMEDIT |
||
5943 | # Extract the first word of "nmedit", so it can be a program name with args. |
||
5944 | set dummy nmedit; ac_word=$2 |
||
5945 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5946 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5947 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
||
5948 | $as_echo_n "(cached) " >&6 |
||
5949 | else |
||
5950 | if test -n "$ac_ct_NMEDIT"; then |
||
5951 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
||
5952 | else |
||
5953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5954 | for as_dir in $PATH |
||
5955 | do |
||
5956 | IFS=$as_save_IFS |
||
5957 | test -z "$as_dir" && as_dir=. |
||
5958 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
5960 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
||
5961 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5962 | break 2 |
||
5963 | fi |
||
5964 | done |
||
5965 | done |
||
5966 | IFS=$as_save_IFS |
||
5967 | |||
5968 | fi |
||
5969 | fi |
||
5970 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
||
5971 | if test -n "$ac_ct_NMEDIT"; then |
||
5972 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
||
5973 | $as_echo "$ac_ct_NMEDIT" >&6; } |
||
5974 | else |
||
5975 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
5976 | $as_echo "no" >&6; } |
||
5977 | fi |
||
5978 | |||
5979 | if test "x$ac_ct_NMEDIT" = x; then |
||
5980 | NMEDIT=":" |
||
5981 | else |
||
5982 | case $cross_compiling:$ac_tool_warned in |
||
5983 | yes:) |
||
5984 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5986 | ac_tool_warned=yes ;; |
||
5987 | esac |
||
5988 | NMEDIT=$ac_ct_NMEDIT |
||
5989 | fi |
||
5990 | else |
||
5991 | NMEDIT="$ac_cv_prog_NMEDIT" |
||
5992 | fi |
||
5993 | |||
5994 | if test -n "$ac_tool_prefix"; then |
||
5995 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
||
5996 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
||
5997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
5998 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5999 | if test "${ac_cv_prog_LIPO+set}" = set; then |
||
6000 | $as_echo_n "(cached) " >&6 |
||
6001 | else |
||
6002 | if test -n "$LIPO"; then |
||
6003 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
||
6004 | else |
||
6005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6006 | for as_dir in $PATH |
||
6007 | do |
||
6008 | IFS=$as_save_IFS |
||
6009 | test -z "$as_dir" && as_dir=. |
||
6010 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6012 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
||
6013 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6014 | break 2 |
||
6015 | fi |
||
6016 | done |
||
6017 | done |
||
6018 | IFS=$as_save_IFS |
||
6019 | |||
6020 | fi |
||
6021 | fi |
||
6022 | LIPO=$ac_cv_prog_LIPO |
||
6023 | if test -n "$LIPO"; then |
||
6024 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
||
6025 | $as_echo "$LIPO" >&6; } |
||
6026 | else |
||
6027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6028 | $as_echo "no" >&6; } |
||
6029 | fi |
||
6030 | |||
6031 | |||
6032 | fi |
||
6033 | if test -z "$ac_cv_prog_LIPO"; then |
||
6034 | ac_ct_LIPO=$LIPO |
||
6035 | # Extract the first word of "lipo", so it can be a program name with args. |
||
6036 | set dummy lipo; ac_word=$2 |
||
6037 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6038 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6039 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
||
6040 | $as_echo_n "(cached) " >&6 |
||
6041 | else |
||
6042 | if test -n "$ac_ct_LIPO"; then |
||
6043 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
||
6044 | else |
||
6045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6046 | for as_dir in $PATH |
||
6047 | do |
||
6048 | IFS=$as_save_IFS |
||
6049 | test -z "$as_dir" && as_dir=. |
||
6050 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6052 | ac_cv_prog_ac_ct_LIPO="lipo" |
||
6053 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6054 | break 2 |
||
6055 | fi |
||
6056 | done |
||
6057 | done |
||
6058 | IFS=$as_save_IFS |
||
6059 | |||
6060 | fi |
||
6061 | fi |
||
6062 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
||
6063 | if test -n "$ac_ct_LIPO"; then |
||
6064 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
||
6065 | $as_echo "$ac_ct_LIPO" >&6; } |
||
6066 | else |
||
6067 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6068 | $as_echo "no" >&6; } |
||
6069 | fi |
||
6070 | |||
6071 | if test "x$ac_ct_LIPO" = x; then |
||
6072 | LIPO=":" |
||
6073 | else |
||
6074 | case $cross_compiling:$ac_tool_warned in |
||
6075 | yes:) |
||
6076 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6078 | ac_tool_warned=yes ;; |
||
6079 | esac |
||
6080 | LIPO=$ac_ct_LIPO |
||
6081 | fi |
||
6082 | else |
||
6083 | LIPO="$ac_cv_prog_LIPO" |
||
6084 | fi |
||
6085 | |||
6086 | if test -n "$ac_tool_prefix"; then |
||
6087 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
||
6088 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
||
6089 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6090 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6091 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
||
6092 | $as_echo_n "(cached) " >&6 |
||
6093 | else |
||
6094 | if test -n "$OTOOL"; then |
||
6095 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
||
6096 | else |
||
6097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6098 | for as_dir in $PATH |
||
6099 | do |
||
6100 | IFS=$as_save_IFS |
||
6101 | test -z "$as_dir" && as_dir=. |
||
6102 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6104 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
||
6105 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6106 | break 2 |
||
6107 | fi |
||
6108 | done |
||
6109 | done |
||
6110 | IFS=$as_save_IFS |
||
6111 | |||
6112 | fi |
||
6113 | fi |
||
6114 | OTOOL=$ac_cv_prog_OTOOL |
||
6115 | if test -n "$OTOOL"; then |
||
6116 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
||
6117 | $as_echo "$OTOOL" >&6; } |
||
6118 | else |
||
6119 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6120 | $as_echo "no" >&6; } |
||
6121 | fi |
||
6122 | |||
6123 | |||
6124 | fi |
||
6125 | if test -z "$ac_cv_prog_OTOOL"; then |
||
6126 | ac_ct_OTOOL=$OTOOL |
||
6127 | # Extract the first word of "otool", so it can be a program name with args. |
||
6128 | set dummy otool; ac_word=$2 |
||
6129 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6130 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6131 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
||
6132 | $as_echo_n "(cached) " >&6 |
||
6133 | else |
||
6134 | if test -n "$ac_ct_OTOOL"; then |
||
6135 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
||
6136 | else |
||
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6138 | for as_dir in $PATH |
||
6139 | do |
||
6140 | IFS=$as_save_IFS |
||
6141 | test -z "$as_dir" && as_dir=. |
||
6142 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6144 | ac_cv_prog_ac_ct_OTOOL="otool" |
||
6145 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6146 | break 2 |
||
6147 | fi |
||
6148 | done |
||
6149 | done |
||
6150 | IFS=$as_save_IFS |
||
6151 | |||
6152 | fi |
||
6153 | fi |
||
6154 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
||
6155 | if test -n "$ac_ct_OTOOL"; then |
||
6156 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
||
6157 | $as_echo "$ac_ct_OTOOL" >&6; } |
||
6158 | else |
||
6159 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6160 | $as_echo "no" >&6; } |
||
6161 | fi |
||
6162 | |||
6163 | if test "x$ac_ct_OTOOL" = x; then |
||
6164 | OTOOL=":" |
||
6165 | else |
||
6166 | case $cross_compiling:$ac_tool_warned in |
||
6167 | yes:) |
||
6168 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6170 | ac_tool_warned=yes ;; |
||
6171 | esac |
||
6172 | OTOOL=$ac_ct_OTOOL |
||
6173 | fi |
||
6174 | else |
||
6175 | OTOOL="$ac_cv_prog_OTOOL" |
||
6176 | fi |
||
6177 | |||
6178 | if test -n "$ac_tool_prefix"; then |
||
6179 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
||
6180 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
||
6181 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6182 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6183 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
||
6184 | $as_echo_n "(cached) " >&6 |
||
6185 | else |
||
6186 | if test -n "$OTOOL64"; then |
||
6187 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
||
6188 | else |
||
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6196 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
||
6197 | $as_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 | fi |
||
6205 | fi |
||
6206 | OTOOL64=$ac_cv_prog_OTOOL64 |
||
6207 | if test -n "$OTOOL64"; then |
||
6208 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
||
6209 | $as_echo "$OTOOL64" >&6; } |
||
6210 | else |
||
6211 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6212 | $as_echo "no" >&6; } |
||
6213 | fi |
||
6214 | |||
6215 | |||
6216 | fi |
||
6217 | if test -z "$ac_cv_prog_OTOOL64"; then |
||
6218 | ac_ct_OTOOL64=$OTOOL64 |
||
6219 | # Extract the first word of "otool64", so it can be a program name with args. |
||
6220 | set dummy otool64; ac_word=$2 |
||
6221 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
6222 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6223 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
||
6224 | $as_echo_n "(cached) " >&6 |
||
6225 | else |
||
6226 | if test -n "$ac_ct_OTOOL64"; then |
||
6227 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
||
6228 | else |
||
6229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6230 | for as_dir in $PATH |
||
6231 | do |
||
6232 | IFS=$as_save_IFS |
||
6233 | test -z "$as_dir" && as_dir=. |
||
6234 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
||
6236 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
||
6237 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6238 | break 2 |
||
6239 | fi |
||
6240 | done |
||
6241 | done |
||
6242 | IFS=$as_save_IFS |
||
6243 | |||
6244 | fi |
||
6245 | fi |
||
6246 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
||
6247 | if test -n "$ac_ct_OTOOL64"; then |
||
6248 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
||
6249 | $as_echo "$ac_ct_OTOOL64" >&6; } |
||
6250 | else |
||
6251 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
6252 | $as_echo "no" >&6; } |
||
6253 | fi |
||
6254 | |||
6255 | if test "x$ac_ct_OTOOL64" = x; then |
||
6256 | OTOOL64=":" |
||
6257 | else |
||
6258 | case $cross_compiling:$ac_tool_warned in |
||
6259 | yes:) |
||
6260 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6262 | ac_tool_warned=yes ;; |
||
6263 | esac |
||
6264 | OTOOL64=$ac_ct_OTOOL64 |
||
6265 | fi |
||
6266 | else |
||
6267 | OTOOL64="$ac_cv_prog_OTOOL64" |
||
6268 | fi |
||
6269 | |||
6270 | |||
6271 | |||
6272 | |||
6273 | |||
6274 | |||
6275 | |||
6276 | |||
6277 | |||
6278 | |||
6279 | |||
6280 | |||
6281 | |||
6282 | |||
6283 | |||
6284 | |||
6285 | |||
6286 | |||
6287 | |||
6288 | |||
6289 | |||
6290 | |||
6291 | |||
6292 | |||
6293 | |||
6294 | |||
6295 | |||
6296 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
||
6297 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
||
6298 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
||
6299 | $as_echo_n "(cached) " >&6 |
||
6300 | else |
||
6301 | lt_cv_apple_cc_single_mod=no |
||
6302 | if test -z "${LT_MULTI_MODULE}"; then |
||
6303 | # By default we will add the -single_module flag. You can override |
||
6304 | # by either setting the environment variable LT_MULTI_MODULE |
||
6305 | # non-empty at configure time, or by adding -multi_module to the |
||
6306 | # link flags. |
||
6307 | rm -rf libconftest.dylib* |
||
6308 | echo "int foo(void){return 1;}" > conftest.c |
||
6309 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
6310 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
||
6311 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
6312 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
||
6313 | _lt_result=$? |
||
6314 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
||
6315 | lt_cv_apple_cc_single_mod=yes |
||
6316 | else |
||
6317 | cat conftest.err >&5 |
||
6318 | fi |
||
6319 | rm -rf libconftest.dylib* |
||
6320 | rm -f conftest.* |
||
6321 | fi |
||
6322 | fi |
||
6323 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
||
6324 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
||
6325 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
||
6326 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
||
6327 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
||
6328 | $as_echo_n "(cached) " >&6 |
||
6329 | else |
||
6330 | lt_cv_ld_exported_symbols_list=no |
||
6331 | save_LDFLAGS=$LDFLAGS |
||
6332 | echo "_main" > conftest.sym |
||
6333 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
||
6334 | cat >conftest.$ac_ext <<_ACEOF |
||
6335 | /* confdefs.h. */ |
||
6336 | _ACEOF |
||
6337 | cat confdefs.h >>conftest.$ac_ext |
||
6338 | cat >>conftest.$ac_ext <<_ACEOF |
||
6339 | /* end confdefs.h. */ |
||
6340 | |||
6341 | int |
||
6342 | main () |
||
6343 | { |
||
6344 | |||
6345 | ; |
||
6346 | return 0; |
||
6347 | } |
||
6348 | _ACEOF |
||
6349 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
6350 | if { (ac_try="$ac_link" |
||
6351 | case "(($ac_try" in |
||
6352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6353 | *) ac_try_echo=$ac_try;; |
||
6354 | esac |
||
6355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6356 | $as_echo "$ac_try_echo") >&5 |
||
6357 | (eval "$ac_link") 2>conftest.er1 |
||
6358 | ac_status=$? |
||
6359 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6360 | rm -f conftest.er1 |
||
6361 | cat conftest.err >&5 |
||
6362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6363 | (exit $ac_status); } && { |
||
6364 | test -z "$ac_c_werror_flag" || |
||
6365 | test ! -s conftest.err |
||
6366 | } && test -s conftest$ac_exeext && { |
||
6367 | test "$cross_compiling" = yes || |
||
6368 | $as_test_x conftest$ac_exeext |
||
6369 | }; then |
||
6370 | lt_cv_ld_exported_symbols_list=yes |
||
6371 | else |
||
6372 | $as_echo "$as_me: failed program was:" >&5 |
||
6373 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6374 | |||
6375 | lt_cv_ld_exported_symbols_list=no |
||
6376 | fi |
||
6377 | |||
6378 | rm -rf conftest.dSYM |
||
6379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
6380 | conftest$ac_exeext conftest.$ac_ext |
||
6381 | LDFLAGS="$save_LDFLAGS" |
||
6382 | |||
6383 | fi |
||
6384 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
||
6385 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
||
6386 | case $host_os in |
||
6387 | rhapsody* | darwin1.[012]) |
||
6388 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
||
6389 | darwin1.*) |
||
6390 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
||
6391 | darwin*) # darwin 5.x on |
||
6392 | # if running on 10.5 or later, the deployment target defaults |
||
6393 | # to the OS version, if on x86, and 10.4, the deployment |
||
6394 | # target defaults to 10.4. Don't you love it? |
||
6395 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
||
6396 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
||
6397 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
||
6398 | 10.[012]*) |
||
6399 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
||
6400 | 10.*) |
||
6401 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
||
6402 | esac |
||
6403 | ;; |
||
6404 | esac |
||
6405 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
||
6406 | _lt_dar_single_mod='$single_module' |
||
6407 | fi |
||
6408 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
||
6409 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
||
6410 | else |
||
6411 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
||
6412 | fi |
||
6413 | if test "$DSYMUTIL" != ":"; then |
||
6414 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
||
6415 | else |
||
6416 | _lt_dsymutil= |
||
6417 | fi |
||
6418 | ;; |
||
6419 | esac |
||
6420 | |||
6421 | ac_ext=c |
||
6422 | ac_cpp='$CPP $CPPFLAGS' |
||
6423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6426 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
||
6427 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
||
6428 | # On Suns, sometimes $CPP names a directory. |
||
6429 | if test -n "$CPP" && test -d "$CPP"; then |
||
6430 | CPP= |
||
6431 | fi |
||
6432 | if test -z "$CPP"; then |
||
6433 | if test "${ac_cv_prog_CPP+set}" = set; then |
||
6434 | $as_echo_n "(cached) " >&6 |
||
6435 | else |
||
6436 | # Double quotes because CPP needs to be expanded |
||
6437 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
6438 | do |
||
6439 | ac_preproc_ok=false |
||
6440 | for ac_c_preproc_warn_flag in '' yes |
||
6441 | do |
||
6442 | # Use a header file that comes with gcc, so configuring glibc |
||
6443 | # with a fresh cross-compiler works. |
||
6444 | # Prefer |
||
6445 | # |
||
6446 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
6447 | # not just through cpp. "Syntax error" is here to catch this case. |
||
6448 | cat >conftest.$ac_ext <<_ACEOF |
||
6449 | /* confdefs.h. */ |
||
6450 | _ACEOF |
||
6451 | cat confdefs.h >>conftest.$ac_ext |
||
6452 | cat >>conftest.$ac_ext <<_ACEOF |
||
6453 | /* end confdefs.h. */ |
||
6454 | #ifdef __STDC__ |
||
6455 | # include |
||
6456 | #else |
||
6457 | # include |
||
6458 | #endif |
||
6459 | Syntax error |
||
6460 | _ACEOF |
||
6461 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
6462 | case "(($ac_try" in |
||
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6464 | *) ac_try_echo=$ac_try;; |
||
6465 | esac |
||
6466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6467 | $as_echo "$ac_try_echo") >&5 |
||
6468 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
6469 | ac_status=$? |
||
6470 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6471 | rm -f conftest.er1 |
||
6472 | cat conftest.err >&5 |
||
6473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6474 | (exit $ac_status); } >/dev/null && { |
||
6475 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
6476 | test ! -s conftest.err |
||
6477 | }; then |
||
6478 | : |
||
6479 | else |
||
6480 | $as_echo "$as_me: failed program was:" >&5 |
||
6481 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6482 | |||
6483 | # Broken: fails on valid input. |
||
6484 | continue |
||
6485 | fi |
||
6486 | |||
6487 | rm -f conftest.err conftest.$ac_ext |
||
6488 | |||
6489 | # OK, works on sane cases. Now check whether nonexistent headers |
||
6490 | # can be detected and how. |
||
6491 | cat >conftest.$ac_ext <<_ACEOF |
||
6492 | /* confdefs.h. */ |
||
6493 | _ACEOF |
||
6494 | cat confdefs.h >>conftest.$ac_ext |
||
6495 | cat >>conftest.$ac_ext <<_ACEOF |
||
6496 | /* end confdefs.h. */ |
||
6497 | #include |
||
6498 | _ACEOF |
||
6499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
6500 | case "(($ac_try" in |
||
6501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6502 | *) ac_try_echo=$ac_try;; |
||
6503 | esac |
||
6504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6505 | $as_echo "$ac_try_echo") >&5 |
||
6506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
6507 | ac_status=$? |
||
6508 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6509 | rm -f conftest.er1 |
||
6510 | cat conftest.err >&5 |
||
6511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6512 | (exit $ac_status); } >/dev/null && { |
||
6513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
6514 | test ! -s conftest.err |
||
6515 | }; then |
||
6516 | # Broken: success on invalid input. |
||
6517 | continue |
||
6518 | else |
||
6519 | $as_echo "$as_me: failed program was:" >&5 |
||
6520 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6521 | |||
6522 | # Passes both tests. |
||
6523 | ac_preproc_ok=: |
||
6524 | break |
||
6525 | fi |
||
6526 | |||
6527 | rm -f conftest.err conftest.$ac_ext |
||
6528 | |||
6529 | done |
||
6530 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
6531 | rm -f conftest.err conftest.$ac_ext |
||
6532 | if $ac_preproc_ok; then |
||
6533 | break |
||
6534 | fi |
||
6535 | |||
6536 | done |
||
6537 | ac_cv_prog_CPP=$CPP |
||
6538 | |||
6539 | fi |
||
6540 | CPP=$ac_cv_prog_CPP |
||
6541 | else |
||
6542 | ac_cv_prog_CPP=$CPP |
||
6543 | fi |
||
6544 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
||
6545 | $as_echo "$CPP" >&6; } |
||
6546 | ac_preproc_ok=false |
||
6547 | for ac_c_preproc_warn_flag in '' yes |
||
6548 | do |
||
6549 | # Use a header file that comes with gcc, so configuring glibc |
||
6550 | # with a fresh cross-compiler works. |
||
6551 | # Prefer |
||
6552 | # |
||
6553 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
6554 | # not just through cpp. "Syntax error" is here to catch this case. |
||
6555 | cat >conftest.$ac_ext <<_ACEOF |
||
6556 | /* confdefs.h. */ |
||
6557 | _ACEOF |
||
6558 | cat confdefs.h >>conftest.$ac_ext |
||
6559 | cat >>conftest.$ac_ext <<_ACEOF |
||
6560 | /* end confdefs.h. */ |
||
6561 | #ifdef __STDC__ |
||
6562 | # include |
||
6563 | #else |
||
6564 | # include |
||
6565 | #endif |
||
6566 | Syntax error |
||
6567 | _ACEOF |
||
6568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
6569 | case "(($ac_try" in |
||
6570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6571 | *) ac_try_echo=$ac_try;; |
||
6572 | esac |
||
6573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6574 | $as_echo "$ac_try_echo") >&5 |
||
6575 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
6576 | ac_status=$? |
||
6577 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6578 | rm -f conftest.er1 |
||
6579 | cat conftest.err >&5 |
||
6580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6581 | (exit $ac_status); } >/dev/null && { |
||
6582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
6583 | test ! -s conftest.err |
||
6584 | }; then |
||
6585 | : |
||
6586 | else |
||
6587 | $as_echo "$as_me: failed program was:" >&5 |
||
6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6589 | |||
6590 | # Broken: fails on valid input. |
||
6591 | continue |
||
6592 | fi |
||
6593 | |||
6594 | rm -f conftest.err conftest.$ac_ext |
||
6595 | |||
6596 | # OK, works on sane cases. Now check whether nonexistent headers |
||
6597 | # can be detected and how. |
||
6598 | cat >conftest.$ac_ext <<_ACEOF |
||
6599 | /* confdefs.h. */ |
||
6600 | _ACEOF |
||
6601 | cat confdefs.h >>conftest.$ac_ext |
||
6602 | cat >>conftest.$ac_ext <<_ACEOF |
||
6603 | /* end confdefs.h. */ |
||
6604 | #include |
||
6605 | _ACEOF |
||
6606 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
6607 | case "(($ac_try" in |
||
6608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6609 | *) ac_try_echo=$ac_try;; |
||
6610 | esac |
||
6611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6612 | $as_echo "$ac_try_echo") >&5 |
||
6613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
6614 | ac_status=$? |
||
6615 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6616 | rm -f conftest.er1 |
||
6617 | cat conftest.err >&5 |
||
6618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6619 | (exit $ac_status); } >/dev/null && { |
||
6620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
6621 | test ! -s conftest.err |
||
6622 | }; then |
||
6623 | # Broken: success on invalid input. |
||
6624 | continue |
||
6625 | else |
||
6626 | $as_echo "$as_me: failed program was:" >&5 |
||
6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6628 | |||
6629 | # Passes both tests. |
||
6630 | ac_preproc_ok=: |
||
6631 | break |
||
6632 | fi |
||
6633 | |||
6634 | rm -f conftest.err conftest.$ac_ext |
||
6635 | |||
6636 | done |
||
6637 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
6638 | rm -f conftest.err conftest.$ac_ext |
||
6639 | if $ac_preproc_ok; then |
||
6640 | : |
||
6641 | else |
||
6642 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
6643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
6644 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
||
6645 | See \`config.log' for more details." >&5 |
||
6646 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
||
6647 | See \`config.log' for more details." >&2;} |
||
6648 | { (exit 1); exit 1; }; }; } |
||
6649 | fi |
||
6650 | |||
6651 | ac_ext=c |
||
6652 | ac_cpp='$CPP $CPPFLAGS' |
||
6653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6656 | |||
6657 | |||
6658 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
||
6659 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
6660 | if test "${ac_cv_header_stdc+set}" = set; then |
||
6661 | $as_echo_n "(cached) " >&6 |
||
6662 | else |
||
6663 | cat >conftest.$ac_ext <<_ACEOF |
||
6664 | /* confdefs.h. */ |
||
6665 | _ACEOF |
||
6666 | cat confdefs.h >>conftest.$ac_ext |
||
6667 | cat >>conftest.$ac_ext <<_ACEOF |
||
6668 | /* end confdefs.h. */ |
||
6669 | #include |
||
6670 | #include |
||
6671 | #include |
||
6672 | #include |
||
6673 | |||
6674 | int |
||
6675 | main () |
||
6676 | { |
||
6677 | |||
6678 | ; |
||
6679 | return 0; |
||
6680 | } |
||
6681 | _ACEOF |
||
6682 | rm -f conftest.$ac_objext |
||
6683 | if { (ac_try="$ac_compile" |
||
6684 | case "(($ac_try" in |
||
6685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6686 | *) ac_try_echo=$ac_try;; |
||
6687 | esac |
||
6688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6689 | $as_echo "$ac_try_echo") >&5 |
||
6690 | (eval "$ac_compile") 2>conftest.er1 |
||
6691 | ac_status=$? |
||
6692 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6693 | rm -f conftest.er1 |
||
6694 | cat conftest.err >&5 |
||
6695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6696 | (exit $ac_status); } && { |
||
6697 | test -z "$ac_c_werror_flag" || |
||
6698 | test ! -s conftest.err |
||
6699 | } && test -s conftest.$ac_objext; then |
||
6700 | ac_cv_header_stdc=yes |
||
6701 | else |
||
6702 | $as_echo "$as_me: failed program was:" >&5 |
||
6703 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6704 | |||
6705 | ac_cv_header_stdc=no |
||
6706 | fi |
||
6707 | |||
6708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6709 | |||
6710 | if test $ac_cv_header_stdc = yes; then |
||
6711 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
6712 | cat >conftest.$ac_ext <<_ACEOF |
||
6713 | /* confdefs.h. */ |
||
6714 | _ACEOF |
||
6715 | cat confdefs.h >>conftest.$ac_ext |
||
6716 | cat >>conftest.$ac_ext <<_ACEOF |
||
6717 | /* end confdefs.h. */ |
||
6718 | #include |
||
6719 | |||
6720 | _ACEOF |
||
6721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
6722 | $EGREP "memchr" >/dev/null 2>&1; then |
||
6723 | : |
||
6724 | else |
||
6725 | ac_cv_header_stdc=no |
||
6726 | fi |
||
6727 | rm -f conftest* |
||
6728 | |||
6729 | fi |
||
6730 | |||
6731 | if test $ac_cv_header_stdc = yes; then |
||
6732 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
6733 | cat >conftest.$ac_ext <<_ACEOF |
||
6734 | /* confdefs.h. */ |
||
6735 | _ACEOF |
||
6736 | cat confdefs.h >>conftest.$ac_ext |
||
6737 | cat >>conftest.$ac_ext <<_ACEOF |
||
6738 | /* end confdefs.h. */ |
||
6739 | #include |
||
6740 | |||
6741 | _ACEOF |
||
6742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
6743 | $EGREP "free" >/dev/null 2>&1; then |
||
6744 | : |
||
6745 | else |
||
6746 | ac_cv_header_stdc=no |
||
6747 | fi |
||
6748 | rm -f conftest* |
||
6749 | |||
6750 | fi |
||
6751 | |||
6752 | if test $ac_cv_header_stdc = yes; then |
||
6753 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
6754 | if test "$cross_compiling" = yes; then |
||
6755 | : |
||
6756 | else |
||
6757 | cat >conftest.$ac_ext <<_ACEOF |
||
6758 | /* confdefs.h. */ |
||
6759 | _ACEOF |
||
6760 | cat confdefs.h >>conftest.$ac_ext |
||
6761 | cat >>conftest.$ac_ext <<_ACEOF |
||
6762 | /* end confdefs.h. */ |
||
6763 | #include |
||
6764 | #include |
||
6765 | #if ((' ' & 0x0FF) == 0x020) |
||
6766 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
6767 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
6768 | #else |
||
6769 | # define ISLOWER(c) \ |
||
6770 | (('a' <= (c) && (c) <= 'i') \ |
||
6771 | || ('j' <= (c) && (c) <= 'r') \ |
||
6772 | || ('s' <= (c) && (c) <= 'z')) |
||
6773 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
6774 | #endif |
||
6775 | |||
6776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
6777 | int |
||
6778 | main () |
||
6779 | { |
||
6780 | int i; |
||
6781 | for (i = 0; i < 256; i++) |
||
6782 | if (XOR (islower (i), ISLOWER (i)) |
||
6783 | || toupper (i) != TOUPPER (i)) |
||
6784 | return 2; |
||
6785 | return 0; |
||
6786 | } |
||
6787 | _ACEOF |
||
6788 | rm -f conftest$ac_exeext |
||
6789 | if { (ac_try="$ac_link" |
||
6790 | case "(($ac_try" in |
||
6791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6792 | *) ac_try_echo=$ac_try;; |
||
6793 | esac |
||
6794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6795 | $as_echo "$ac_try_echo") >&5 |
||
6796 | (eval "$ac_link") 2>&5 |
||
6797 | ac_status=$? |
||
6798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6799 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
6800 | { (case "(($ac_try" in |
||
6801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6802 | *) ac_try_echo=$ac_try;; |
||
6803 | esac |
||
6804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6805 | $as_echo "$ac_try_echo") >&5 |
||
6806 | (eval "$ac_try") 2>&5 |
||
6807 | ac_status=$? |
||
6808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6809 | (exit $ac_status); }; }; then |
||
6810 | : |
||
6811 | else |
||
6812 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
6813 | $as_echo "$as_me: failed program was:" >&5 |
||
6814 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6815 | |||
6816 | ( exit $ac_status ) |
||
6817 | ac_cv_header_stdc=no |
||
6818 | fi |
||
6819 | rm -rf conftest.dSYM |
||
6820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
6821 | fi |
||
6822 | |||
6823 | |||
6824 | fi |
||
6825 | fi |
||
6826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
||
6827 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
6828 | if test $ac_cv_header_stdc = yes; then |
||
6829 | |||
6830 | cat >>confdefs.h <<\_ACEOF |
||
6831 | #define STDC_HEADERS 1 |
||
6832 | _ACEOF |
||
6833 | |||
6834 | fi |
||
6835 | |||
6836 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
6837 | |||
6838 | |||
6839 | |||
6840 | |||
6841 | |||
6842 | |||
6843 | |||
6844 | |||
6845 | |||
6846 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
6847 | inttypes.h stdint.h unistd.h |
||
6848 | do |
||
6849 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
6850 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
6851 | $as_echo_n "checking for $ac_header... " >&6; } |
||
6852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
6853 | $as_echo_n "(cached) " >&6 |
||
6854 | else |
||
6855 | cat >conftest.$ac_ext <<_ACEOF |
||
6856 | /* confdefs.h. */ |
||
6857 | _ACEOF |
||
6858 | cat confdefs.h >>conftest.$ac_ext |
||
6859 | cat >>conftest.$ac_ext <<_ACEOF |
||
6860 | /* end confdefs.h. */ |
||
6861 | $ac_includes_default |
||
6862 | |||
6863 | #include <$ac_header> |
||
6864 | _ACEOF |
||
6865 | rm -f conftest.$ac_objext |
||
6866 | if { (ac_try="$ac_compile" |
||
6867 | case "(($ac_try" in |
||
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6869 | *) ac_try_echo=$ac_try;; |
||
6870 | esac |
||
6871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6872 | $as_echo "$ac_try_echo") >&5 |
||
6873 | (eval "$ac_compile") 2>conftest.er1 |
||
6874 | ac_status=$? |
||
6875 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6876 | rm -f conftest.er1 |
||
6877 | cat conftest.err >&5 |
||
6878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6879 | (exit $ac_status); } && { |
||
6880 | test -z "$ac_c_werror_flag" || |
||
6881 | test ! -s conftest.err |
||
6882 | } && test -s conftest.$ac_objext; then |
||
6883 | eval "$as_ac_Header=yes" |
||
6884 | else |
||
6885 | $as_echo "$as_me: failed program was:" >&5 |
||
6886 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6887 | |||
6888 | eval "$as_ac_Header=no" |
||
6889 | fi |
||
6890 | |||
6891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6892 | fi |
||
6893 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
||
6894 | $as_echo "$as_val"'` |
||
6895 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
6896 | $as_echo "$ac_res" >&6; } |
||
6897 | as_val=`eval 'as_val=${'$as_ac_Header'} |
||
6898 | $as_echo "$as_val"'` |
||
6899 | if test "x$as_val" = x""yes; then |
||
6900 | cat >>confdefs.h <<_ACEOF |
||
6901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
6902 | _ACEOF |
||
6903 | |||
6904 | fi |
||
6905 | |||
6906 | done |
||
6907 | |||
6908 | |||
6909 | |||
6910 | for ac_header in dlfcn.h |
||
6911 | do |
||
6912 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
6913 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
6914 | $as_echo_n "checking for $ac_header... " >&6; } |
||
6915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
6916 | $as_echo_n "(cached) " >&6 |
||
6917 | else |
||
6918 | cat >conftest.$ac_ext <<_ACEOF |
||
6919 | /* confdefs.h. */ |
||
6920 | _ACEOF |
||
6921 | cat confdefs.h >>conftest.$ac_ext |
||
6922 | cat >>conftest.$ac_ext <<_ACEOF |
||
6923 | /* end confdefs.h. */ |
||
6924 | $ac_includes_default |
||
6925 | |||
6926 | #include <$ac_header> |
||
6927 | _ACEOF |
||
6928 | rm -f conftest.$ac_objext |
||
6929 | if { (ac_try="$ac_compile" |
||
6930 | case "(($ac_try" in |
||
6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6932 | *) ac_try_echo=$ac_try;; |
||
6933 | esac |
||
6934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
6935 | $as_echo "$ac_try_echo") >&5 |
||
6936 | (eval "$ac_compile") 2>conftest.er1 |
||
6937 | ac_status=$? |
||
6938 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6939 | rm -f conftest.er1 |
||
6940 | cat conftest.err >&5 |
||
6941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6942 | (exit $ac_status); } && { |
||
6943 | test -z "$ac_c_werror_flag" || |
||
6944 | test ! -s conftest.err |
||
6945 | } && test -s conftest.$ac_objext; then |
||
6946 | eval "$as_ac_Header=yes" |
||
6947 | else |
||
6948 | $as_echo "$as_me: failed program was:" >&5 |
||
6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6950 | |||
6951 | eval "$as_ac_Header=no" |
||
6952 | fi |
||
6953 | |||
6954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6955 | fi |
||
6956 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
||
6957 | $as_echo "$as_val"'` |
||
6958 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
6959 | $as_echo "$ac_res" >&6; } |
||
6960 | as_val=`eval 'as_val=${'$as_ac_Header'} |
||
6961 | $as_echo "$as_val"'` |
||
6962 | if test "x$as_val" = x""yes; then |
||
6963 | cat >>confdefs.h <<_ACEOF |
||
6964 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
6965 | _ACEOF |
||
6966 | |||
6967 | fi |
||
6968 | |||
6969 | done |
||
6970 | |||
6971 | |||
6972 | |||
6973 | # Set options |
||
6974 | |||
6975 | |||
6976 | |||
6977 | enable_dlopen=no |
||
6978 | |||
6979 | |||
6980 | enable_win32_dll=no |
||
6981 | |||
6982 | |||
6983 | # Check whether --enable-shared was given. |
||
6984 | if test "${enable_shared+set}" = set; then |
||
6985 | enableval=$enable_shared; p=${PACKAGE-default} |
||
6986 | case $enableval in |
||
6987 | yes) enable_shared=yes ;; |
||
6988 | no) enable_shared=no ;; |
||
6989 | *) |
||
6990 | enable_shared=no |
||
6991 | # Look at the argument we got. We use all the common list separators. |
||
6992 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
6993 | for pkg in $enableval; do |
||
6994 | IFS="$lt_save_ifs" |
||
6995 | if test "X$pkg" = "X$p"; then |
||
6996 | enable_shared=yes |
||
6997 | fi |
||
6998 | done |
||
6999 | IFS="$lt_save_ifs" |
||
7000 | ;; |
||
7001 | esac |
||
7002 | else |
||
7003 | enable_shared=yes |
||
7004 | fi |
||
7005 | |||
7006 | |||
7007 | |||
7008 | |||
7009 | |||
7010 | |||
7011 | |||
7012 | |||
7013 | |||
7014 | # Check whether --enable-static was given. |
||
7015 | if test "${enable_static+set}" = set; then |
||
7016 | enableval=$enable_static; p=${PACKAGE-default} |
||
7017 | case $enableval in |
||
7018 | yes) enable_static=yes ;; |
||
7019 | no) enable_static=no ;; |
||
7020 | *) |
||
7021 | enable_static=no |
||
7022 | # Look at the argument we got. We use all the common list separators. |
||
7023 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
7024 | for pkg in $enableval; do |
||
7025 | IFS="$lt_save_ifs" |
||
7026 | if test "X$pkg" = "X$p"; then |
||
7027 | enable_static=yes |
||
7028 | fi |
||
7029 | done |
||
7030 | IFS="$lt_save_ifs" |
||
7031 | ;; |
||
7032 | esac |
||
7033 | else |
||
7034 | enable_static=yes |
||
7035 | fi |
||
7036 | |||
7037 | |||
7038 | |||
7039 | |||
7040 | |||
7041 | |||
7042 | |||
7043 | |||
7044 | |||
7045 | |||
7046 | # Check whether --with-pic was given. |
||
7047 | if test "${with_pic+set}" = set; then |
||
7048 | withval=$with_pic; pic_mode="$withval" |
||
7049 | else |
||
7050 | pic_mode=default |
||
7051 | fi |
||
7052 | |||
7053 | |||
7054 | test -z "$pic_mode" && pic_mode=default |
||
7055 | |||
7056 | |||
7057 | |||
7058 | |||
7059 | |||
7060 | |||
7061 | |||
7062 | # Check whether --enable-fast-install was given. |
||
7063 | if test "${enable_fast_install+set}" = set; then |
||
7064 | enableval=$enable_fast_install; p=${PACKAGE-default} |
||
7065 | case $enableval in |
||
7066 | yes) enable_fast_install=yes ;; |
||
7067 | no) enable_fast_install=no ;; |
||
7068 | *) |
||
7069 | enable_fast_install=no |
||
7070 | # Look at the argument we got. We use all the common list separators. |
||
7071 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
||
7072 | for pkg in $enableval; do |
||
7073 | IFS="$lt_save_ifs" |
||
7074 | if test "X$pkg" = "X$p"; then |
||
7075 | enable_fast_install=yes |
||
7076 | fi |
||
7077 | done |
||
7078 | IFS="$lt_save_ifs" |
||
7079 | ;; |
||
7080 | esac |
||
7081 | else |
||
7082 | enable_fast_install=yes |
||
7083 | fi |
||
7084 | |||
7085 | |||
7086 | |||
7087 | |||
7088 | |||
7089 | |||
7090 | |||
7091 | |||
7092 | |||
7093 | |||
7094 | |||
7095 | # This can be used to rebuild libtool when needed |
||
7096 | LIBTOOL_DEPS="$ltmain" |
||
7097 | |||
7098 | # Always use our own libtool. |
||
7099 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
||
7100 | |||
7101 | |||
7102 | |||
7103 | |||
7104 | |||
7105 | |||
7106 | |||
7107 | |||
7108 | |||
7109 | |||
7110 | |||
7111 | |||
7112 | |||
7113 | |||
7114 | |||
7115 | |||
7116 | |||
7117 | |||
7118 | |||
7119 | |||
7120 | |||
7121 | |||
7122 | |||
7123 | |||
7124 | |||
7125 | test -z "$LN_S" && LN_S="ln -s" |
||
7126 | |||
7127 | |||
7128 | |||
7129 | |||
7130 | |||
7131 | |||
7132 | |||
7133 | |||
7134 | |||
7135 | |||
7136 | |||
7137 | |||
7138 | |||
7139 | |||
7140 | if test -n "${ZSH_VERSION+set}" ; then |
||
7141 | setopt NO_GLOB_SUBST |
||
7142 | fi |
||
7143 | |||
7144 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
||
7145 | $as_echo_n "checking for objdir... " >&6; } |
||
7146 | if test "${lt_cv_objdir+set}" = set; then |
||
7147 | $as_echo_n "(cached) " >&6 |
||
7148 | else |
||
7149 | rm -f .libs 2>/dev/null |
||
7150 | mkdir .libs 2>/dev/null |
||
7151 | if test -d .libs; then |
||
7152 | lt_cv_objdir=.libs |
||
7153 | else |
||
7154 | # MS-DOS does not allow filenames that begin with a dot. |
||
7155 | lt_cv_objdir=_libs |
||
7156 | fi |
||
7157 | rmdir .libs 2>/dev/null |
||
7158 | fi |
||
7159 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
||
7160 | $as_echo "$lt_cv_objdir" >&6; } |
||
7161 | objdir=$lt_cv_objdir |
||
7162 | |||
7163 | |||
7164 | |||
7165 | |||
7166 | |||
7167 | cat >>confdefs.h <<_ACEOF |
||
7168 | #define LT_OBJDIR "$lt_cv_objdir/" |
||
7169 | _ACEOF |
||
7170 | |||
7171 | |||
7172 | |||
7173 | |||
7174 | |||
7175 | |||
7176 | |||
7177 | |||
7178 | |||
7179 | |||
7180 | |||
7181 | |||
7182 | |||
7183 | |||
7184 | |||
7185 | |||
7186 | |||
7187 | case $host_os in |
||
7188 | aix3*) |
||
7189 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
7190 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
7191 | # vanish in a puff of smoke. |
||
7192 | if test "X${COLLECT_NAMES+set}" != Xset; then |
||
7193 | COLLECT_NAMES= |
||
7194 | export COLLECT_NAMES |
||
7195 | fi |
||
7196 | ;; |
||
7197 | esac |
||
7198 | |||
7199 | # Sed substitution that helps us do robust quoting. It backslashifies |
||
7200 | # metacharacters that are still active within double-quoted strings. |
||
7201 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
||
7202 | |||
7203 | # Same as above, but do not quote variable references. |
||
7204 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
||
7205 | |||
7206 | # Sed substitution to delay expansion of an escaped shell variable in a |
||
7207 | # double_quote_subst'ed string. |
||
7208 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
||
7209 | |||
7210 | # Sed substitution to delay expansion of an escaped single quote. |
||
7211 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
||
7212 | |||
7213 | # Sed substitution to avoid accidental globbing in evaled expressions |
||
7214 | no_glob_subst='s/\*/\\\*/g' |
||
7215 | |||
7216 | # Global variables: |
||
7217 | ofile=libtool |
||
7218 | can_build_shared=yes |
||
7219 | |||
7220 | # All known linkers require a `.a' archive for static linking (except MSVC, |
||
7221 | # which needs '.lib'). |
||
7222 | libext=a |
||
7223 | |||
7224 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
||
7225 | |||
7226 | old_CC="$CC" |
||
7227 | old_CFLAGS="$CFLAGS" |
||
7228 | |||
7229 | # Set sane defaults for various variables |
||
7230 | test -z "$CC" && CC=cc |
||
7231 | test -z "$LTCC" && LTCC=$CC |
||
7232 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
||
7233 | test -z "$LD" && LD=ld |
||
7234 | test -z "$ac_objext" && ac_objext=o |
||
7235 | |||
7236 | for cc_temp in $compiler""; do |
||
7237 | case $cc_temp in |
||
7238 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
7239 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
7240 | \-*) ;; |
||
7241 | *) break;; |
||
7242 | esac |
||
7243 | done |
||
7244 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
||
7245 | |||
7246 | |||
7247 | # Only perform the check for file, if the check method requires it |
||
7248 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
||
7249 | case $deplibs_check_method in |
||
7250 | file_magic*) |
||
7251 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
||
7252 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
||
7253 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
||
7254 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
||
7255 | $as_echo_n "(cached) " >&6 |
||
7256 | else |
||
7257 | case $MAGIC_CMD in |
||
7258 | [\\/*] | ?:[\\/]*) |
||
7259 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
||
7260 | ;; |
||
7261 | *) |
||
7262 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
||
7263 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
7264 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
7265 | for ac_dir in $ac_dummy; do |
||
7266 | IFS="$lt_save_ifs" |
||
7267 | test -z "$ac_dir" && ac_dir=. |
||
7268 | if test -f $ac_dir/${ac_tool_prefix}file; then |
||
7269 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
||
7270 | if test -n "$file_magic_test_file"; then |
||
7271 | case $deplibs_check_method in |
||
7272 | "file_magic "*) |
||
7273 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
7274 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
7275 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
7276 | $EGREP "$file_magic_regex" > /dev/null; then |
||
7277 | : |
||
7278 | else |
||
7279 | cat <<_LT_EOF 1>&2 |
||
7280 | |||
7281 | *** Warning: the command libtool uses to detect shared libraries, |
||
7282 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
7283 | *** The result is that libtool may fail to recognize shared libraries |
||
7284 | *** as such. This will affect the creation of libtool libraries that |
||
7285 | *** depend on shared libraries, but programs linked with such libtool |
||
7286 | *** libraries will work regardless of this problem. Nevertheless, you |
||
7287 | *** may want to report the problem to your system manager and/or to |
||
7288 | *** bug-libtool@gnu.org |
||
7289 | |||
7290 | _LT_EOF |
||
7291 | fi ;; |
||
7292 | esac |
||
7293 | fi |
||
7294 | break |
||
7295 | fi |
||
7296 | done |
||
7297 | IFS="$lt_save_ifs" |
||
7298 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
||
7299 | ;; |
||
7300 | esac |
||
7301 | fi |
||
7302 | |||
7303 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
7304 | if test -n "$MAGIC_CMD"; then |
||
7305 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
||
7306 | $as_echo "$MAGIC_CMD" >&6; } |
||
7307 | else |
||
7308 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
7309 | $as_echo "no" >&6; } |
||
7310 | fi |
||
7311 | |||
7312 | |||
7313 | |||
7314 | |||
7315 | |||
7316 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
||
7317 | if test -n "$ac_tool_prefix"; then |
||
7318 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
||
7319 | $as_echo_n "checking for file... " >&6; } |
||
7320 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
||
7321 | $as_echo_n "(cached) " >&6 |
||
7322 | else |
||
7323 | case $MAGIC_CMD in |
||
7324 | [\\/*] | ?:[\\/]*) |
||
7325 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
||
7326 | ;; |
||
7327 | *) |
||
7328 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
||
7329 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
||
7330 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
7331 | for ac_dir in $ac_dummy; do |
||
7332 | IFS="$lt_save_ifs" |
||
7333 | test -z "$ac_dir" && ac_dir=. |
||
7334 | if test -f $ac_dir/file; then |
||
7335 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
||
7336 | if test -n "$file_magic_test_file"; then |
||
7337 | case $deplibs_check_method in |
||
7338 | "file_magic "*) |
||
7339 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
7340 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
7341 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
7342 | $EGREP "$file_magic_regex" > /dev/null; then |
||
7343 | : |
||
7344 | else |
||
7345 | cat <<_LT_EOF 1>&2 |
||
7346 | |||
7347 | *** Warning: the command libtool uses to detect shared libraries, |
||
7348 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
7349 | *** The result is that libtool may fail to recognize shared libraries |
||
7350 | *** as such. This will affect the creation of libtool libraries that |
||
7351 | *** depend on shared libraries, but programs linked with such libtool |
||
7352 | *** libraries will work regardless of this problem. Nevertheless, you |
||
7353 | *** may want to report the problem to your system manager and/or to |
||
7354 | *** bug-libtool@gnu.org |
||
7355 | |||
7356 | _LT_EOF |
||
7357 | fi ;; |
||
7358 | esac |
||
7359 | fi |
||
7360 | break |
||
7361 | fi |
||
7362 | done |
||
7363 | IFS="$lt_save_ifs" |
||
7364 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
||
7365 | ;; |
||
7366 | esac |
||
7367 | fi |
||
7368 | |||
7369 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
||
7370 | if test -n "$MAGIC_CMD"; then |
||
7371 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
||
7372 | $as_echo "$MAGIC_CMD" >&6; } |
||
7373 | else |
||
7374 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
7375 | $as_echo "no" >&6; } |
||
7376 | fi |
||
7377 | |||
7378 | |||
7379 | else |
||
7380 | MAGIC_CMD=: |
||
7381 | fi |
||
7382 | fi |
||
7383 | |||
7384 | fi |
||
7385 | ;; |
||
7386 | esac |
||
7387 | |||
7388 | # Use C for the default configuration in the libtool script |
||
7389 | |||
7390 | lt_save_CC="$CC" |
||
7391 | ac_ext=c |
||
7392 | ac_cpp='$CPP $CPPFLAGS' |
||
7393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
7394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
7395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
7396 | |||
7397 | |||
7398 | # Source file extension for C test sources. |
||
7399 | ac_ext=c |
||
7400 | |||
7401 | # Object file extension for compiled C test sources. |
||
7402 | objext=o |
||
7403 | objext=$objext |
||
7404 | |||
7405 | # Code to be used in simple compile tests |
||
7406 | lt_simple_compile_test_code="int some_variable = 0;" |
||
7407 | |||
7408 | # Code to be used in simple link tests |
||
7409 | lt_simple_link_test_code='int main(){return(0);}' |
||
7410 | |||
7411 | |||
7412 | |||
7413 | |||
7414 | |||
7415 | |||
7416 | |||
7417 | # If no C compiler was specified, use CC. |
||
7418 | LTCC=${LTCC-"$CC"} |
||
7419 | |||
7420 | # If no C compiler flags were specified, use CFLAGS. |
||
7421 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
7422 | |||
7423 | # Allow CC to be a program name with arguments. |
||
7424 | compiler=$CC |
||
7425 | |||
7426 | # Save the default compiler, since it gets overwritten when the other |
||
7427 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
||
7428 | compiler_DEFAULT=$CC |
||
7429 | |||
7430 | # save warnings/boilerplate of simple test code |
||
7431 | ac_outfile=conftest.$ac_objext |
||
7432 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
7433 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
7434 | _lt_compiler_boilerplate=`cat conftest.err` |
||
7435 | $RM conftest* |
||
7436 | |||
7437 | ac_outfile=conftest.$ac_objext |
||
7438 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
7439 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
7440 | _lt_linker_boilerplate=`cat conftest.err` |
||
7441 | $RM -r conftest* |
||
7442 | |||
7443 | |||
7444 | if test -n "$compiler"; then |
||
7445 | |||
7446 | lt_prog_compiler_no_builtin_flag= |
||
7447 | |||
7448 | if test "$GCC" = yes; then |
||
7449 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
||
7450 | |||
7451 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
||
7452 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
||
7453 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
||
7454 | $as_echo_n "(cached) " >&6 |
||
7455 | else |
||
7456 | lt_cv_prog_compiler_rtti_exceptions=no |
||
7457 | ac_outfile=conftest.$ac_objext |
||
7458 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7459 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
||
7460 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7461 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7462 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7463 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7464 | # The option is referenced via a variable to avoid confusing sed. |
||
7465 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7466 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7467 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7468 | -e 's:$: $lt_compiler_flag:'` |
||
7469 | (eval echo "\"\$as_me:7469: $lt_compile\"" >&5) |
||
7470 | (eval "$lt_compile" 2>conftest.err) |
||
7471 | ac_status=$? |
||
7472 | cat conftest.err >&5 |
||
7473 | echo "$as_me:7473: \$? = $ac_status" >&5 |
||
7474 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
7475 | # The compiler can only warn and ignore the option if not recognized |
||
7476 | # So say no if there are warnings other than the usual output. |
||
7477 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
7478 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7479 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
7480 | lt_cv_prog_compiler_rtti_exceptions=yes |
||
7481 | fi |
||
7482 | fi |
||
7483 | $RM conftest* |
||
7484 | |||
7485 | fi |
||
7486 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
||
7487 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
||
7488 | |||
7489 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
||
7490 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
||
7491 | else |
||
7492 | : |
||
7493 | fi |
||
7494 | |||
7495 | fi |
||
7496 | |||
7497 | |||
7498 | |||
7499 | |||
7500 | |||
7501 | |||
7502 | lt_prog_compiler_wl= |
||
7503 | lt_prog_compiler_pic= |
||
7504 | lt_prog_compiler_static= |
||
7505 | |||
7506 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
||
7507 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
||
7508 | |||
7509 | if test "$GCC" = yes; then |
||
7510 | lt_prog_compiler_wl='-Wl,' |
||
7511 | lt_prog_compiler_static='-static' |
||
7512 | |||
7513 | case $host_os in |
||
7514 | aix*) |
||
7515 | # All AIX code is PIC. |
||
7516 | if test "$host_cpu" = ia64; then |
||
7517 | # AIX 5 now supports IA64 processor |
||
7518 | lt_prog_compiler_static='-Bstatic' |
||
7519 | fi |
||
7520 | ;; |
||
7521 | |||
7522 | amigaos*) |
||
7523 | case $host_cpu in |
||
7524 | powerpc) |
||
7525 | # see comment about AmigaOS4 .so support |
||
7526 | lt_prog_compiler_pic='-fPIC' |
||
7527 | ;; |
||
7528 | m68k) |
||
7529 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
7530 | # adding the `-m68020' flag to GCC prevents building anything better, |
||
7531 | # like `-m68040'. |
||
7532 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
||
7533 | ;; |
||
7534 | esac |
||
7535 | ;; |
||
7536 | |||
7537 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
7538 | # PIC is the default for these OSes. |
||
7539 | ;; |
||
7540 | |||
7541 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
||
7542 | # This hack is so that the source file can tell whether it is being |
||
7543 | # built for inclusion in a dll (and should export symbols for example). |
||
7544 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
7545 | # (--disable-auto-import) libraries |
||
7546 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
7547 | ;; |
||
7548 | |||
7549 | darwin* | rhapsody*) |
||
7550 | # PIC is the default on this platform |
||
7551 | # Common symbols not allowed in MH_DYLIB files |
||
7552 | lt_prog_compiler_pic='-fno-common' |
||
7553 | ;; |
||
7554 | |||
7555 | hpux*) |
||
7556 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
||
7557 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
||
7558 | # sets the default TLS model and affects inlining. |
||
7559 | case $host_cpu in |
||
7560 | hppa*64*) |
||
7561 | # +Z the default |
||
7562 | ;; |
||
7563 | *) |
||
7564 | lt_prog_compiler_pic='-fPIC' |
||
7565 | ;; |
||
7566 | esac |
||
7567 | ;; |
||
7568 | |||
7569 | interix[3-9]*) |
||
7570 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
7571 | # Instead, we relocate shared libraries at runtime. |
||
7572 | ;; |
||
7573 | |||
7574 | msdosdjgpp*) |
||
7575 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
7576 | # on systems that don't support them. |
||
7577 | lt_prog_compiler_can_build_shared=no |
||
7578 | enable_shared=no |
||
7579 | ;; |
||
7580 | |||
7581 | *nto* | *qnx*) |
||
7582 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
7583 | # it will coredump. |
||
7584 | lt_prog_compiler_pic='-fPIC -shared' |
||
7585 | ;; |
||
7586 | |||
7587 | sysv4*MP*) |
||
7588 | if test -d /usr/nec; then |
||
7589 | lt_prog_compiler_pic=-Kconform_pic |
||
7590 | fi |
||
7591 | ;; |
||
7592 | |||
7593 | *) |
||
7594 | lt_prog_compiler_pic='-fPIC' |
||
7595 | ;; |
||
7596 | esac |
||
7597 | else |
||
7598 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
7599 | case $host_os in |
||
7600 | aix*) |
||
7601 | lt_prog_compiler_wl='-Wl,' |
||
7602 | if test "$host_cpu" = ia64; then |
||
7603 | # AIX 5 now supports IA64 processor |
||
7604 | lt_prog_compiler_static='-Bstatic' |
||
7605 | else |
||
7606 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
||
7607 | fi |
||
7608 | ;; |
||
7609 | |||
7610 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
||
7611 | # This hack is so that the source file can tell whether it is being |
||
7612 | # built for inclusion in a dll (and should export symbols for example). |
||
7613 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
7614 | ;; |
||
7615 | |||
7616 | hpux9* | hpux10* | hpux11*) |
||
7617 | lt_prog_compiler_wl='-Wl,' |
||
7618 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
7619 | # not for PA HP-UX. |
||
7620 | case $host_cpu in |
||
7621 | hppa*64*|ia64*) |
||
7622 | # +Z the default |
||
7623 | ;; |
||
7624 | *) |
||
7625 | lt_prog_compiler_pic='+Z' |
||
7626 | ;; |
||
7627 | esac |
||
7628 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
7629 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
||
7630 | ;; |
||
7631 | |||
7632 | irix5* | irix6* | nonstopux*) |
||
7633 | lt_prog_compiler_wl='-Wl,' |
||
7634 | # PIC (with -KPIC) is the default. |
||
7635 | lt_prog_compiler_static='-non_shared' |
||
7636 | ;; |
||
7637 | |||
7638 | linux* | k*bsd*-gnu) |
||
7639 | case $cc_basename in |
||
7640 | # old Intel for x86_64 which still supported -KPIC. |
||
7641 | ecc*) |
||
7642 | lt_prog_compiler_wl='-Wl,' |
||
7643 | lt_prog_compiler_pic='-KPIC' |
||
7644 | lt_prog_compiler_static='-static' |
||
7645 | ;; |
||
7646 | # icc used to be incompatible with GCC. |
||
7647 | # ICC 10 doesn't accept -KPIC any more. |
||
7648 | icc* | ifort*) |
||
7649 | lt_prog_compiler_wl='-Wl,' |
||
7650 | lt_prog_compiler_pic='-fPIC' |
||
7651 | lt_prog_compiler_static='-static' |
||
7652 | ;; |
||
7653 | # Lahey Fortran 8.1. |
||
7654 | lf95*) |
||
7655 | lt_prog_compiler_wl='-Wl,' |
||
7656 | lt_prog_compiler_pic='--shared' |
||
7657 | lt_prog_compiler_static='--static' |
||
7658 | ;; |
||
7659 | pgcc* | pgf77* | pgf90* | pgf95*) |
||
7660 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
7661 | # which looks to be a dead project) |
||
7662 | lt_prog_compiler_wl='-Wl,' |
||
7663 | lt_prog_compiler_pic='-fpic' |
||
7664 | lt_prog_compiler_static='-Bstatic' |
||
7665 | ;; |
||
7666 | ccc*) |
||
7667 | lt_prog_compiler_wl='-Wl,' |
||
7668 | # All Alpha code is PIC. |
||
7669 | lt_prog_compiler_static='-non_shared' |
||
7670 | ;; |
||
7671 | xl*) |
||
7672 | # IBM XL C 8.0/Fortran 10.1 on PPC |
||
7673 | lt_prog_compiler_wl='-Wl,' |
||
7674 | lt_prog_compiler_pic='-qpic' |
||
7675 | lt_prog_compiler_static='-qstaticlink' |
||
7676 | ;; |
||
7677 | *) |
||
7678 | case `$CC -V 2>&1 | sed 5q` in |
||
7679 | *Sun\ C*) |
||
7680 | # Sun C 5.9 |
||
7681 | lt_prog_compiler_pic='-KPIC' |
||
7682 | lt_prog_compiler_static='-Bstatic' |
||
7683 | lt_prog_compiler_wl='-Wl,' |
||
7684 | ;; |
||
7685 | *Sun\ F*) |
||
7686 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
7687 | lt_prog_compiler_pic='-KPIC' |
||
7688 | lt_prog_compiler_static='-Bstatic' |
||
7689 | lt_prog_compiler_wl='' |
||
7690 | ;; |
||
7691 | esac |
||
7692 | ;; |
||
7693 | esac |
||
7694 | ;; |
||
7695 | |||
7696 | newsos6) |
||
7697 | lt_prog_compiler_pic='-KPIC' |
||
7698 | lt_prog_compiler_static='-Bstatic' |
||
7699 | ;; |
||
7700 | |||
7701 | *nto* | *qnx*) |
||
7702 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
7703 | # it will coredump. |
||
7704 | lt_prog_compiler_pic='-fPIC -shared' |
||
7705 | ;; |
||
7706 | |||
7707 | osf3* | osf4* | osf5*) |
||
7708 | lt_prog_compiler_wl='-Wl,' |
||
7709 | # All OSF/1 code is PIC. |
||
7710 | lt_prog_compiler_static='-non_shared' |
||
7711 | ;; |
||
7712 | |||
7713 | rdos*) |
||
7714 | lt_prog_compiler_static='-non_shared' |
||
7715 | ;; |
||
7716 | |||
7717 | solaris*) |
||
7718 | lt_prog_compiler_pic='-KPIC' |
||
7719 | lt_prog_compiler_static='-Bstatic' |
||
7720 | case $cc_basename in |
||
7721 | f77* | f90* | f95*) |
||
7722 | lt_prog_compiler_wl='-Qoption ld ';; |
||
7723 | *) |
||
7724 | lt_prog_compiler_wl='-Wl,';; |
||
7725 | esac |
||
7726 | ;; |
||
7727 | |||
7728 | sunos4*) |
||
7729 | lt_prog_compiler_wl='-Qoption ld ' |
||
7730 | lt_prog_compiler_pic='-PIC' |
||
7731 | lt_prog_compiler_static='-Bstatic' |
||
7732 | ;; |
||
7733 | |||
7734 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
7735 | lt_prog_compiler_wl='-Wl,' |
||
7736 | lt_prog_compiler_pic='-KPIC' |
||
7737 | lt_prog_compiler_static='-Bstatic' |
||
7738 | ;; |
||
7739 | |||
7740 | sysv4*MP*) |
||
7741 | if test -d /usr/nec ;then |
||
7742 | lt_prog_compiler_pic='-Kconform_pic' |
||
7743 | lt_prog_compiler_static='-Bstatic' |
||
7744 | fi |
||
7745 | ;; |
||
7746 | |||
7747 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
7748 | lt_prog_compiler_wl='-Wl,' |
||
7749 | lt_prog_compiler_pic='-KPIC' |
||
7750 | lt_prog_compiler_static='-Bstatic' |
||
7751 | ;; |
||
7752 | |||
7753 | unicos*) |
||
7754 | lt_prog_compiler_wl='-Wl,' |
||
7755 | lt_prog_compiler_can_build_shared=no |
||
7756 | ;; |
||
7757 | |||
7758 | uts4*) |
||
7759 | lt_prog_compiler_pic='-pic' |
||
7760 | lt_prog_compiler_static='-Bstatic' |
||
7761 | ;; |
||
7762 | |||
7763 | *) |
||
7764 | lt_prog_compiler_can_build_shared=no |
||
7765 | ;; |
||
7766 | esac |
||
7767 | fi |
||
7768 | |||
7769 | case $host_os in |
||
7770 | # For platforms which do not support PIC, -DPIC is meaningless: |
||
7771 | *djgpp*) |
||
7772 | lt_prog_compiler_pic= |
||
7773 | ;; |
||
7774 | *) |
||
7775 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
||
7776 | ;; |
||
7777 | esac |
||
7778 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
||
7779 | $as_echo "$lt_prog_compiler_pic" >&6; } |
||
7780 | |||
7781 | |||
7782 | |||
7783 | |||
7784 | |||
7785 | |||
7786 | # |
||
7787 | # Check to make sure the PIC flag actually works. |
||
7788 | # |
||
7789 | if test -n "$lt_prog_compiler_pic"; then |
||
7790 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
||
7791 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
||
7792 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
||
7793 | $as_echo_n "(cached) " >&6 |
||
7794 | else |
||
7795 | lt_cv_prog_compiler_pic_works=no |
||
7796 | ac_outfile=conftest.$ac_objext |
||
7797 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7798 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
||
7799 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7800 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7801 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7802 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7803 | # The option is referenced via a variable to avoid confusing sed. |
||
7804 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7805 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7806 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7807 | -e 's:$: $lt_compiler_flag:'` |
||
7808 | (eval echo "\"\$as_me:7808: $lt_compile\"" >&5) |
||
7809 | (eval "$lt_compile" 2>conftest.err) |
||
7810 | ac_status=$? |
||
7811 | cat conftest.err >&5 |
||
7812 | echo "$as_me:7812: \$? = $ac_status" >&5 |
||
7813 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
7814 | # The compiler can only warn and ignore the option if not recognized |
||
7815 | # So say no if there are warnings other than the usual output. |
||
7816 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
||
7817 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7818 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
7819 | lt_cv_prog_compiler_pic_works=yes |
||
7820 | fi |
||
7821 | fi |
||
7822 | $RM conftest* |
||
7823 | |||
7824 | fi |
||
7825 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
||
7826 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
||
7827 | |||
7828 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
||
7829 | case $lt_prog_compiler_pic in |
||
7830 | "" | " "*) ;; |
||
7831 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
||
7832 | esac |
||
7833 | else |
||
7834 | lt_prog_compiler_pic= |
||
7835 | lt_prog_compiler_can_build_shared=no |
||
7836 | fi |
||
7837 | |||
7838 | fi |
||
7839 | |||
7840 | |||
7841 | |||
7842 | |||
7843 | |||
7844 | |||
7845 | # |
||
7846 | # Check to make sure the static flag actually works. |
||
7847 | # |
||
7848 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
||
7849 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
7850 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
||
7851 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
||
7852 | $as_echo_n "(cached) " >&6 |
||
7853 | else |
||
7854 | lt_cv_prog_compiler_static_works=no |
||
7855 | save_LDFLAGS="$LDFLAGS" |
||
7856 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
7857 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
7858 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
7859 | # The linker can only warn and ignore the option if not recognized |
||
7860 | # So say no if there are warnings |
||
7861 | if test -s conftest.err; then |
||
7862 | # Append any errors to the config.log. |
||
7863 | cat conftest.err 1>&5 |
||
7864 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
||
7865 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
7866 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
7867 | lt_cv_prog_compiler_static_works=yes |
||
7868 | fi |
||
7869 | else |
||
7870 | lt_cv_prog_compiler_static_works=yes |
||
7871 | fi |
||
7872 | fi |
||
7873 | $RM -r conftest* |
||
7874 | LDFLAGS="$save_LDFLAGS" |
||
7875 | |||
7876 | fi |
||
7877 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
||
7878 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
||
7879 | |||
7880 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
||
7881 | : |
||
7882 | else |
||
7883 | lt_prog_compiler_static= |
||
7884 | fi |
||
7885 | |||
7886 | |||
7887 | |||
7888 | |||
7889 | |||
7890 | |||
7891 | |||
7892 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
7893 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
7894 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
||
7895 | $as_echo_n "(cached) " >&6 |
||
7896 | else |
||
7897 | lt_cv_prog_compiler_c_o=no |
||
7898 | $RM -r conftest 2>/dev/null |
||
7899 | mkdir conftest |
||
7900 | cd conftest |
||
7901 | mkdir out |
||
7902 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7903 | |||
7904 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
7905 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7906 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7907 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7908 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7909 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7910 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7911 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7912 | -e 's:$: $lt_compiler_flag:'` |
||
7913 | (eval echo "\"\$as_me:7913: $lt_compile\"" >&5) |
||
7914 | (eval "$lt_compile" 2>out/conftest.err) |
||
7915 | ac_status=$? |
||
7916 | cat out/conftest.err >&5 |
||
7917 | echo "$as_me:7917: \$? = $ac_status" >&5 |
||
7918 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
7919 | then |
||
7920 | # The compiler can only warn and ignore the option if not recognized |
||
7921 | # So say no if there are warnings |
||
7922 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
7923 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
7924 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
7925 | lt_cv_prog_compiler_c_o=yes |
||
7926 | fi |
||
7927 | fi |
||
7928 | chmod u+w . 2>&5 |
||
7929 | $RM conftest* |
||
7930 | # SGI C++ compiler will create directory out/ii_files/ for |
||
7931 | # template instantiation |
||
7932 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
7933 | $RM out/* && rmdir out |
||
7934 | cd .. |
||
7935 | $RM -r conftest |
||
7936 | $RM conftest* |
||
7937 | |||
7938 | fi |
||
7939 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
||
7940 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
7941 | |||
7942 | |||
7943 | |||
7944 | |||
7945 | |||
7946 | |||
7947 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
7948 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
7949 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
||
7950 | $as_echo_n "(cached) " >&6 |
||
7951 | else |
||
7952 | lt_cv_prog_compiler_c_o=no |
||
7953 | $RM -r conftest 2>/dev/null |
||
7954 | mkdir conftest |
||
7955 | cd conftest |
||
7956 | mkdir out |
||
7957 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
7958 | |||
7959 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
7960 | # Insert the option either (1) after the last *FLAGS variable, or |
||
7961 | # (2) before a word containing "conftest.", or (3) at the end. |
||
7962 | # Note that $ac_compile itself does not contain backslashes and begins |
||
7963 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
7964 | lt_compile=`echo "$ac_compile" | $SED \ |
||
7965 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
7966 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
7967 | -e 's:$: $lt_compiler_flag:'` |
||
7968 | (eval echo "\"\$as_me:7968: $lt_compile\"" >&5) |
||
7969 | (eval "$lt_compile" 2>out/conftest.err) |
||
7970 | ac_status=$? |
||
7971 | cat out/conftest.err >&5 |
||
7972 | echo "$as_me:7972: \$? = $ac_status" >&5 |
||
7973 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
7974 | then |
||
7975 | # The compiler can only warn and ignore the option if not recognized |
||
7976 | # So say no if there are warnings |
||
7977 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
||
7978 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
7979 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
7980 | lt_cv_prog_compiler_c_o=yes |
||
7981 | fi |
||
7982 | fi |
||
7983 | chmod u+w . 2>&5 |
||
7984 | $RM conftest* |
||
7985 | # SGI C++ compiler will create directory out/ii_files/ for |
||
7986 | # template instantiation |
||
7987 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
7988 | $RM out/* && rmdir out |
||
7989 | cd .. |
||
7990 | $RM -r conftest |
||
7991 | $RM conftest* |
||
7992 | |||
7993 | fi |
||
7994 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
||
7995 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
7996 | |||
7997 | |||
7998 | |||
7999 | |||
8000 | hard_links="nottested" |
||
8001 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
||
8002 | # do not overwrite the value of need_locks provided by the user |
||
8003 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
||
8004 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
||
8005 | hard_links=yes |
||
8006 | $RM conftest* |
||
8007 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
8008 | touch conftest.a |
||
8009 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
8010 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
8011 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
||
8012 | $as_echo "$hard_links" >&6; } |
||
8013 | if test "$hard_links" = no; then |
||
8014 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
||
8015 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
||
8016 | need_locks=warn |
||
8017 | fi |
||
8018 | else |
||
8019 | need_locks=no |
||
8020 | fi |
||
8021 | |||
8022 | |||
8023 | |||
8024 | |||
8025 | |||
8026 | |||
8027 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
8028 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
8029 | |||
8030 | runpath_var= |
||
8031 | allow_undefined_flag= |
||
8032 | always_export_symbols=no |
||
8033 | archive_cmds= |
||
8034 | archive_expsym_cmds= |
||
8035 | compiler_needs_object=no |
||
8036 | enable_shared_with_static_runtimes=no |
||
8037 | export_dynamic_flag_spec= |
||
8038 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
8039 | hardcode_automatic=no |
||
8040 | hardcode_direct=no |
||
8041 | hardcode_direct_absolute=no |
||
8042 | hardcode_libdir_flag_spec= |
||
8043 | hardcode_libdir_flag_spec_ld= |
||
8044 | hardcode_libdir_separator= |
||
8045 | hardcode_minus_L=no |
||
8046 | hardcode_shlibpath_var=unsupported |
||
8047 | inherit_rpath=no |
||
8048 | link_all_deplibs=unknown |
||
8049 | module_cmds= |
||
8050 | module_expsym_cmds= |
||
8051 | old_archive_from_new_cmds= |
||
8052 | old_archive_from_expsyms_cmds= |
||
8053 | thread_safe_flag_spec= |
||
8054 | whole_archive_flag_spec= |
||
8055 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
8056 | # included in the symbol list |
||
8057 | include_expsyms= |
||
8058 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
8059 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
||
8060 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
||
8061 | # as well as any symbol that contains `d'. |
||
8062 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
||
8063 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
8064 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
8065 | # the symbol is explicitly referenced. Since portable code cannot |
||
8066 | # rely on this symbol name, it's probably fine to never include it in |
||
8067 | # preloaded symbol tables. |
||
8068 | # Exclude shared library initialization/finalization symbols. |
||
8069 | extract_expsyms_cmds= |
||
8070 | |||
8071 | case $host_os in |
||
8072 | cygwin* | mingw* | pw32* | cegcc*) |
||
8073 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
||
8074 | # When not using gcc, we currently assume that we are using |
||
8075 | # Microsoft Visual C++. |
||
8076 | if test "$GCC" != yes; then |
||
8077 | with_gnu_ld=no |
||
8078 | fi |
||
8079 | ;; |
||
8080 | interix*) |
||
8081 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
8082 | with_gnu_ld=yes |
||
8083 | ;; |
||
8084 | openbsd*) |
||
8085 | with_gnu_ld=no |
||
8086 | ;; |
||
8087 | esac |
||
8088 | |||
8089 | ld_shlibs=yes |
||
8090 | if test "$with_gnu_ld" = yes; then |
||
8091 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
8092 | wlarc='${wl}' |
||
8093 | |||
8094 | # Set some defaults for GNU ld with shared library support. These |
||
8095 | # are reset later if shared libraries are not supported. Putting them |
||
8096 | # here allows them to be overridden if necessary. |
||
8097 | runpath_var=LD_RUN_PATH |
||
8098 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8099 | export_dynamic_flag_spec='${wl}--export-dynamic' |
||
8100 | # ancient GNU ld didn't support --whole-archive et. al. |
||
8101 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
||
8102 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
||
8103 | else |
||
8104 | whole_archive_flag_spec= |
||
8105 | fi |
||
8106 | supports_anon_versioning=no |
||
8107 | case `$LD -v 2>&1` in |
||
8108 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
8109 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
8110 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
8111 | *\ 2.11.*) ;; # other 2.11 versions |
||
8112 | *) supports_anon_versioning=yes ;; |
||
8113 | esac |
||
8114 | |||
8115 | # See if GNU ld supports shared libraries. |
||
8116 | case $host_os in |
||
8117 | aix[3-9]*) |
||
8118 | # On AIX/PPC, the GNU linker is very broken |
||
8119 | if test "$host_cpu" != ia64; then |
||
8120 | ld_shlibs=no |
||
8121 | cat <<_LT_EOF 1>&2 |
||
8122 | |||
8123 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
||
8124 | *** to be unable to reliably create shared libraries on AIX. |
||
8125 | *** Therefore, libtool is disabling shared libraries support. If you |
||
8126 | *** really care for shared libraries, you may want to modify your PATH |
||
8127 | *** so that a non-GNU linker is found, and then restart. |
||
8128 | |||
8129 | _LT_EOF |
||
8130 | fi |
||
8131 | ;; |
||
8132 | |||
8133 | amigaos*) |
||
8134 | case $host_cpu in |
||
8135 | powerpc) |
||
8136 | # see comment about AmigaOS4 .so support |
||
8137 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8138 | archive_expsym_cmds='' |
||
8139 | ;; |
||
8140 | m68k) |
||
8141 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
||
8142 | hardcode_libdir_flag_spec='-L$libdir' |
||
8143 | hardcode_minus_L=yes |
||
8144 | ;; |
||
8145 | esac |
||
8146 | ;; |
||
8147 | |||
8148 | beos*) |
||
8149 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
8150 | allow_undefined_flag=unsupported |
||
8151 | # Joseph Beckenbach |
||
8152 | # support --undefined. This deserves some investigation. FIXME |
||
8153 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8154 | else |
||
8155 | ld_shlibs=no |
||
8156 | fi |
||
8157 | ;; |
||
8158 | |||
8159 | cygwin* | mingw* | pw32* | cegcc*) |
||
8160 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
||
8161 | # as there is no search path for DLLs. |
||
8162 | hardcode_libdir_flag_spec='-L$libdir' |
||
8163 | allow_undefined_flag=unsupported |
||
8164 | always_export_symbols=no |
||
8165 | enable_shared_with_static_runtimes=yes |
||
8166 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
8167 | |||
8168 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
||
8169 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
8170 | # If the export-symbols file already is a .def file (1st line |
||
8171 | # is EXPORTS), use it as is; otherwise, prepend... |
||
8172 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
||
8173 | cp $export_symbols $output_objdir/$soname.def; |
||
8174 | else |
||
8175 | echo EXPORTS > $output_objdir/$soname.def; |
||
8176 | cat $export_symbols >> $output_objdir/$soname.def; |
||
8177 | fi~ |
||
8178 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
8179 | else |
||
8180 | ld_shlibs=no |
||
8181 | fi |
||
8182 | ;; |
||
8183 | |||
8184 | interix[3-9]*) |
||
8185 | hardcode_direct=no |
||
8186 | hardcode_shlibpath_var=no |
||
8187 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
8188 | export_dynamic_flag_spec='${wl}-E' |
||
8189 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
8190 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
8191 | # default) and relocated if they conflict, which is a slow very memory |
||
8192 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
8193 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
8194 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
8195 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
8196 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
8197 | ;; |
||
8198 | |||
8199 | gnu* | linux* | tpf* | k*bsd*-gnu) |
||
8200 | tmp_diet=no |
||
8201 | if test "$host_os" = linux-dietlibc; then |
||
8202 | case $cc_basename in |
||
8203 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
||
8204 | esac |
||
8205 | fi |
||
8206 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
||
8207 | && test "$tmp_diet" = no |
||
8208 | then |
||
8209 | tmp_addflag= |
||
8210 | tmp_sharedflag='-shared' |
||
8211 | case $cc_basename,$host_cpu in |
||
8212 | pgcc*) # Portland Group C compiler |
||
8213 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
||
8214 | tmp_addflag=' $pic_flag' |
||
8215 | ;; |
||
8216 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
||
8217 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
||
8218 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
8219 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
8220 | tmp_addflag=' -i_dynamic' ;; |
||
8221 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
8222 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
8223 | ifc* | ifort*) # Intel Fortran compiler |
||
8224 | tmp_addflag=' -nofor_main' ;; |
||
8225 | lf95*) # Lahey Fortran 8.1 |
||
8226 | whole_archive_flag_spec= |
||
8227 | tmp_sharedflag='--shared' ;; |
||
8228 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
||
8229 | tmp_sharedflag='-qmkshrobj' |
||
8230 | tmp_addflag= ;; |
||
8231 | esac |
||
8232 | case `$CC -V 2>&1 | sed 5q` in |
||
8233 | *Sun\ C*) # Sun C 5.9 |
||
8234 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
||
8235 | compiler_needs_object=yes |
||
8236 | tmp_sharedflag='-G' ;; |
||
8237 | *Sun\ F*) # Sun Fortran 8.3 |
||
8238 | tmp_sharedflag='-G' ;; |
||
8239 | esac |
||
8240 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8241 | |||
8242 | if test "x$supports_anon_versioning" = xyes; then |
||
8243 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
8244 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
8245 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
8246 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
||
8247 | fi |
||
8248 | |||
8249 | case $cc_basename in |
||
8250 | xlf*) |
||
8251 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
||
8252 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
||
8253 | hardcode_libdir_flag_spec= |
||
8254 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
||
8255 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
||
8256 | if test "x$supports_anon_versioning" = xyes; then |
||
8257 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
8258 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
8259 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
8260 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
||
8261 | fi |
||
8262 | ;; |
||
8263 | esac |
||
8264 | else |
||
8265 | ld_shlibs=no |
||
8266 | fi |
||
8267 | ;; |
||
8268 | |||
8269 | netbsd*) |
||
8270 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
8271 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
8272 | wlarc= |
||
8273 | else |
||
8274 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8275 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
8276 | fi |
||
8277 | ;; |
||
8278 | |||
8279 | solaris*) |
||
8280 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
||
8281 | ld_shlibs=no |
||
8282 | cat <<_LT_EOF 1>&2 |
||
8283 | |||
8284 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
8285 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
8286 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
8287 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
8288 | *** your PATH or compiler configuration so that the native linker is |
||
8289 | *** used, and then restart. |
||
8290 | |||
8291 | _LT_EOF |
||
8292 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
8293 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8294 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
8295 | else |
||
8296 | ld_shlibs=no |
||
8297 | fi |
||
8298 | ;; |
||
8299 | |||
8300 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
8301 | case `$LD -v 2>&1` in |
||
8302 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
8303 | ld_shlibs=no |
||
8304 | cat <<_LT_EOF 1>&2 |
||
8305 | |||
8306 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
||
8307 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
8308 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
8309 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
8310 | *** your PATH or compiler configuration so that the native linker is |
||
8311 | *** used, and then restart. |
||
8312 | |||
8313 | _LT_EOF |
||
8314 | ;; |
||
8315 | *) |
||
8316 | # For security reasons, it is highly recommended that you always |
||
8317 | # use absolute paths for naming shared libraries, and exclude the |
||
8318 | # DT_RUNPATH tag from executables and libraries. But doing so |
||
8319 | # requires that you compile everything twice, which is a pain. |
||
8320 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
8321 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8322 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8323 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
8324 | else |
||
8325 | ld_shlibs=no |
||
8326 | fi |
||
8327 | ;; |
||
8328 | esac |
||
8329 | ;; |
||
8330 | |||
8331 | sunos4*) |
||
8332 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
8333 | wlarc= |
||
8334 | hardcode_direct=yes |
||
8335 | hardcode_shlibpath_var=no |
||
8336 | ;; |
||
8337 | |||
8338 | *) |
||
8339 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
8340 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8341 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
||
8342 | else |
||
8343 | ld_shlibs=no |
||
8344 | fi |
||
8345 | ;; |
||
8346 | esac |
||
8347 | |||
8348 | if test "$ld_shlibs" = no; then |
||
8349 | runpath_var= |
||
8350 | hardcode_libdir_flag_spec= |
||
8351 | export_dynamic_flag_spec= |
||
8352 | whole_archive_flag_spec= |
||
8353 | fi |
||
8354 | else |
||
8355 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
8356 | case $host_os in |
||
8357 | aix3*) |
||
8358 | allow_undefined_flag=unsupported |
||
8359 | always_export_symbols=yes |
||
8360 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
||
8361 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
8362 | # are no directories specified by -L. |
||
8363 | hardcode_minus_L=yes |
||
8364 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
||
8365 | # Neither direct hardcoding nor static linking is supported with a |
||
8366 | # broken collect2. |
||
8367 | hardcode_direct=unsupported |
||
8368 | fi |
||
8369 | ;; |
||
8370 | |||
8371 | aix[4-9]*) |
||
8372 | if test "$host_cpu" = ia64; then |
||
8373 | # On IA64, the linker does run time linking by default, so we don't |
||
8374 | # have to do anything special. |
||
8375 | aix_use_runtimelinking=no |
||
8376 | exp_sym_flag='-Bexport' |
||
8377 | no_entry_flag="" |
||
8378 | else |
||
8379 | # If we're using GNU nm, then we don't want the "-C" option. |
||
8380 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
||
8381 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
||
8382 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
||
8383 | else |
||
8384 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
||
8385 | fi |
||
8386 | aix_use_runtimelinking=no |
||
8387 | |||
8388 | # Test if we are trying to use run time linking or normal |
||
8389 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
8390 | # need to do runtime linking. |
||
8391 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
||
8392 | for ld_flag in $LDFLAGS; do |
||
8393 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
||
8394 | aix_use_runtimelinking=yes |
||
8395 | break |
||
8396 | fi |
||
8397 | done |
||
8398 | ;; |
||
8399 | esac |
||
8400 | |||
8401 | exp_sym_flag='-bexport' |
||
8402 | no_entry_flag='-bnoentry' |
||
8403 | fi |
||
8404 | |||
8405 | # When large executables or shared objects are built, AIX ld can |
||
8406 | # have problems creating the table of contents. If linking a library |
||
8407 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
8408 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
8409 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
8410 | |||
8411 | archive_cmds='' |
||
8412 | hardcode_direct=yes |
||
8413 | hardcode_direct_absolute=yes |
||
8414 | hardcode_libdir_separator=':' |
||
8415 | link_all_deplibs=yes |
||
8416 | file_list_spec='${wl}-f,' |
||
8417 | |||
8418 | if test "$GCC" = yes; then |
||
8419 | case $host_os in aix4.[012]|aix4.[012].*) |
||
8420 | # We only want to do this on AIX 4.2 and lower, the check |
||
8421 | # below for broken collect2 doesn't work under 4.3+ |
||
8422 | collect2name=`${CC} -print-prog-name=collect2` |
||
8423 | if test -f "$collect2name" && |
||
8424 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
||
8425 | then |
||
8426 | # We have reworked collect2 |
||
8427 | : |
||
8428 | else |
||
8429 | # We have old collect2 |
||
8430 | hardcode_direct=unsupported |
||
8431 | # It fails to find uninstalled libraries when the uninstalled |
||
8432 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
8433 | # to unsupported forces relinking |
||
8434 | hardcode_minus_L=yes |
||
8435 | hardcode_libdir_flag_spec='-L$libdir' |
||
8436 | hardcode_libdir_separator= |
||
8437 | fi |
||
8438 | ;; |
||
8439 | esac |
||
8440 | shared_flag='-shared' |
||
8441 | if test "$aix_use_runtimelinking" = yes; then |
||
8442 | shared_flag="$shared_flag "'${wl}-G' |
||
8443 | fi |
||
8444 | else |
||
8445 | # not using gcc |
||
8446 | if test "$host_cpu" = ia64; then |
||
8447 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
8448 | # chokes on -Wl,-G. The following line is correct: |
||
8449 | shared_flag='-G' |
||
8450 | else |
||
8451 | if test "$aix_use_runtimelinking" = yes; then |
||
8452 | shared_flag='${wl}-G' |
||
8453 | else |
||
8454 | shared_flag='${wl}-bM:SRE' |
||
8455 | fi |
||
8456 | fi |
||
8457 | fi |
||
8458 | |||
8459 | export_dynamic_flag_spec='${wl}-bexpall' |
||
8460 | # It seems that -bexpall does not export symbols beginning with |
||
8461 | # underscore (_), so it is better to generate a list of symbols to export. |
||
8462 | always_export_symbols=yes |
||
8463 | if test "$aix_use_runtimelinking" = yes; then |
||
8464 | # Warning - without using the other runtime loading flags (-brtl), |
||
8465 | # -berok will link without error, but may produce a broken library. |
||
8466 | allow_undefined_flag='-berok' |
||
8467 | # Determine the default libpath from the value encoded in an |
||
8468 | # empty executable. |
||
8469 | cat >conftest.$ac_ext <<_ACEOF |
||
8470 | /* confdefs.h. */ |
||
8471 | _ACEOF |
||
8472 | cat confdefs.h >>conftest.$ac_ext |
||
8473 | cat >>conftest.$ac_ext <<_ACEOF |
||
8474 | /* end confdefs.h. */ |
||
8475 | |||
8476 | int |
||
8477 | main () |
||
8478 | { |
||
8479 | |||
8480 | ; |
||
8481 | return 0; |
||
8482 | } |
||
8483 | _ACEOF |
||
8484 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8485 | if { (ac_try="$ac_link" |
||
8486 | case "(($ac_try" in |
||
8487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
8488 | *) ac_try_echo=$ac_try;; |
||
8489 | esac |
||
8490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
8491 | $as_echo "$ac_try_echo") >&5 |
||
8492 | (eval "$ac_link") 2>conftest.er1 |
||
8493 | ac_status=$? |
||
8494 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8495 | rm -f conftest.er1 |
||
8496 | cat conftest.err >&5 |
||
8497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8498 | (exit $ac_status); } && { |
||
8499 | test -z "$ac_c_werror_flag" || |
||
8500 | test ! -s conftest.err |
||
8501 | } && test -s conftest$ac_exeext && { |
||
8502 | test "$cross_compiling" = yes || |
||
8503 | $as_test_x conftest$ac_exeext |
||
8504 | }; then |
||
8505 | |||
8506 | lt_aix_libpath_sed=' |
||
8507 | /Import File Strings/,/^$/ { |
||
8508 | /^0/ { |
||
8509 | s/^0 *\(.*\)$/\1/ |
||
8510 | p |
||
8511 | } |
||
8512 | }' |
||
8513 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8514 | # Check for a 64-bit object if we didn't find anything. |
||
8515 | if test -z "$aix_libpath"; then |
||
8516 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8517 | fi |
||
8518 | else |
||
8519 | $as_echo "$as_me: failed program was:" >&5 |
||
8520 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8521 | |||
8522 | |||
8523 | fi |
||
8524 | |||
8525 | rm -rf conftest.dSYM |
||
8526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
8527 | conftest$ac_exeext conftest.$ac_ext |
||
8528 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
8529 | |||
8530 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
8531 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
||
8532 | else |
||
8533 | if test "$host_cpu" = ia64; then |
||
8534 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
||
8535 | allow_undefined_flag="-z nodefs" |
||
8536 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
||
8537 | else |
||
8538 | # Determine the default libpath from the value encoded in an |
||
8539 | # empty executable. |
||
8540 | cat >conftest.$ac_ext <<_ACEOF |
||
8541 | /* confdefs.h. */ |
||
8542 | _ACEOF |
||
8543 | cat confdefs.h >>conftest.$ac_ext |
||
8544 | cat >>conftest.$ac_ext <<_ACEOF |
||
8545 | /* end confdefs.h. */ |
||
8546 | |||
8547 | int |
||
8548 | main () |
||
8549 | { |
||
8550 | |||
8551 | ; |
||
8552 | return 0; |
||
8553 | } |
||
8554 | _ACEOF |
||
8555 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8556 | if { (ac_try="$ac_link" |
||
8557 | case "(($ac_try" in |
||
8558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
8559 | *) ac_try_echo=$ac_try;; |
||
8560 | esac |
||
8561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
8562 | $as_echo "$ac_try_echo") >&5 |
||
8563 | (eval "$ac_link") 2>conftest.er1 |
||
8564 | ac_status=$? |
||
8565 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8566 | rm -f conftest.er1 |
||
8567 | cat conftest.err >&5 |
||
8568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8569 | (exit $ac_status); } && { |
||
8570 | test -z "$ac_c_werror_flag" || |
||
8571 | test ! -s conftest.err |
||
8572 | } && test -s conftest$ac_exeext && { |
||
8573 | test "$cross_compiling" = yes || |
||
8574 | $as_test_x conftest$ac_exeext |
||
8575 | }; then |
||
8576 | |||
8577 | lt_aix_libpath_sed=' |
||
8578 | /Import File Strings/,/^$/ { |
||
8579 | /^0/ { |
||
8580 | s/^0 *\(.*\)$/\1/ |
||
8581 | p |
||
8582 | } |
||
8583 | }' |
||
8584 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8585 | # Check for a 64-bit object if we didn't find anything. |
||
8586 | if test -z "$aix_libpath"; then |
||
8587 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
8588 | fi |
||
8589 | else |
||
8590 | $as_echo "$as_me: failed program was:" >&5 |
||
8591 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8592 | |||
8593 | |||
8594 | fi |
||
8595 | |||
8596 | rm -rf conftest.dSYM |
||
8597 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
8598 | conftest$ac_exeext conftest.$ac_ext |
||
8599 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
||
8600 | |||
8601 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
||
8602 | # Warning - without using the other run time loading flags, |
||
8603 | # -berok will link without error, but may produce a broken library. |
||
8604 | no_undefined_flag=' ${wl}-bernotok' |
||
8605 | allow_undefined_flag=' ${wl}-berok' |
||
8606 | # Exported symbols can be pulled into shared objects from archives |
||
8607 | whole_archive_flag_spec='$convenience' |
||
8608 | archive_cmds_need_lc=yes |
||
8609 | # This is similar to how AIX traditionally builds its shared libraries. |
||
8610 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
||
8611 | fi |
||
8612 | fi |
||
8613 | ;; |
||
8614 | |||
8615 | amigaos*) |
||
8616 | case $host_cpu in |
||
8617 | powerpc) |
||
8618 | # see comment about AmigaOS4 .so support |
||
8619 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
||
8620 | archive_expsym_cmds='' |
||
8621 | ;; |
||
8622 | m68k) |
||
8623 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
||
8624 | hardcode_libdir_flag_spec='-L$libdir' |
||
8625 | hardcode_minus_L=yes |
||
8626 | ;; |
||
8627 | esac |
||
8628 | ;; |
||
8629 | |||
8630 | bsdi[45]*) |
||
8631 | export_dynamic_flag_spec=-rdynamic |
||
8632 | ;; |
||
8633 | |||
8634 | cygwin* | mingw* | pw32* | cegcc*) |
||
8635 | # When not using gcc, we currently assume that we are using |
||
8636 | # Microsoft Visual C++. |
||
8637 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
8638 | # no search path for DLLs. |
||
8639 | hardcode_libdir_flag_spec=' ' |
||
8640 | allow_undefined_flag=unsupported |
||
8641 | # Tell ltmain to make .lib files, not .a files. |
||
8642 | libext=lib |
||
8643 | # Tell ltmain to make .dll files, not .so files. |
||
8644 | shrext_cmds=".dll" |
||
8645 | # FIXME: Setting linknames here is a bad hack. |
||
8646 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
8647 | # The linker will automatically build a .lib file if we build a DLL. |
||
8648 | old_archive_from_new_cmds='true' |
||
8649 | # FIXME: Should let the user specify the lib program. |
||
8650 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
8651 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
||
8652 | enable_shared_with_static_runtimes=yes |
||
8653 | ;; |
||
8654 | |||
8655 | darwin* | rhapsody*) |
||
8656 | |||
8657 | |||
8658 | archive_cmds_need_lc=no |
||
8659 | hardcode_direct=no |
||
8660 | hardcode_automatic=yes |
||
8661 | hardcode_shlibpath_var=unsupported |
||
8662 | whole_archive_flag_spec='' |
||
8663 | link_all_deplibs=yes |
||
8664 | allow_undefined_flag="$_lt_dar_allow_undefined" |
||
8665 | case $cc_basename in |
||
8666 | ifort*) _lt_dar_can_shared=yes ;; |
||
8667 | *) _lt_dar_can_shared=$GCC ;; |
||
8668 | esac |
||
8669 | if test "$_lt_dar_can_shared" = "yes"; then |
||
8670 | output_verbose_link_cmd=echo |
||
8671 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
||
8672 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
||
8673 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
||
8674 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
||
8675 | |||
8676 | else |
||
8677 | ld_shlibs=no |
||
8678 | fi |
||
8679 | |||
8680 | ;; |
||
8681 | |||
8682 | dgux*) |
||
8683 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8684 | hardcode_libdir_flag_spec='-L$libdir' |
||
8685 | hardcode_shlibpath_var=no |
||
8686 | ;; |
||
8687 | |||
8688 | freebsd1*) |
||
8689 | ld_shlibs=no |
||
8690 | ;; |
||
8691 | |||
8692 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
8693 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
8694 | # does not break anything, and helps significantly (at the cost of a little |
||
8695 | # extra space). |
||
8696 | freebsd2.2*) |
||
8697 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
8698 | hardcode_libdir_flag_spec='-R$libdir' |
||
8699 | hardcode_direct=yes |
||
8700 | hardcode_shlibpath_var=no |
||
8701 | ;; |
||
8702 | |||
8703 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
8704 | freebsd2*) |
||
8705 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
8706 | hardcode_direct=yes |
||
8707 | hardcode_minus_L=yes |
||
8708 | hardcode_shlibpath_var=no |
||
8709 | ;; |
||
8710 | |||
8711 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
8712 | freebsd* | dragonfly*) |
||
8713 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
||
8714 | hardcode_libdir_flag_spec='-R$libdir' |
||
8715 | hardcode_direct=yes |
||
8716 | hardcode_shlibpath_var=no |
||
8717 | ;; |
||
8718 | |||
8719 | hpux9*) |
||
8720 | if test "$GCC" = yes; then |
||
8721 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
||
8722 | else |
||
8723 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
||
8724 | fi |
||
8725 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8726 | hardcode_libdir_separator=: |
||
8727 | hardcode_direct=yes |
||
8728 | |||
8729 | # hardcode_minus_L: Not really in the search PATH, |
||
8730 | # but as the default location of the library. |
||
8731 | hardcode_minus_L=yes |
||
8732 | export_dynamic_flag_spec='${wl}-E' |
||
8733 | ;; |
||
8734 | |||
8735 | hpux10*) |
||
8736 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
8737 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8738 | else |
||
8739 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
8740 | fi |
||
8741 | if test "$with_gnu_ld" = no; then |
||
8742 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8743 | hardcode_libdir_flag_spec_ld='+b $libdir' |
||
8744 | hardcode_libdir_separator=: |
||
8745 | hardcode_direct=yes |
||
8746 | hardcode_direct_absolute=yes |
||
8747 | export_dynamic_flag_spec='${wl}-E' |
||
8748 | # hardcode_minus_L: Not really in the search PATH, |
||
8749 | # but as the default location of the library. |
||
8750 | hardcode_minus_L=yes |
||
8751 | fi |
||
8752 | ;; |
||
8753 | |||
8754 | hpux11*) |
||
8755 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
||
8756 | case $host_cpu in |
||
8757 | hppa*64*) |
||
8758 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8759 | ;; |
||
8760 | ia64*) |
||
8761 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
8762 | ;; |
||
8763 | *) |
||
8764 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8765 | ;; |
||
8766 | esac |
||
8767 | else |
||
8768 | case $host_cpu in |
||
8769 | hppa*64*) |
||
8770 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8771 | ;; |
||
8772 | ia64*) |
||
8773 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
8774 | ;; |
||
8775 | *) |
||
8776 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
8777 | ;; |
||
8778 | esac |
||
8779 | fi |
||
8780 | if test "$with_gnu_ld" = no; then |
||
8781 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
||
8782 | hardcode_libdir_separator=: |
||
8783 | |||
8784 | case $host_cpu in |
||
8785 | hppa*64*|ia64*) |
||
8786 | hardcode_direct=no |
||
8787 | hardcode_shlibpath_var=no |
||
8788 | ;; |
||
8789 | *) |
||
8790 | hardcode_direct=yes |
||
8791 | hardcode_direct_absolute=yes |
||
8792 | export_dynamic_flag_spec='${wl}-E' |
||
8793 | |||
8794 | # hardcode_minus_L: Not really in the search PATH, |
||
8795 | # but as the default location of the library. |
||
8796 | hardcode_minus_L=yes |
||
8797 | ;; |
||
8798 | esac |
||
8799 | fi |
||
8800 | ;; |
||
8801 | |||
8802 | irix5* | irix6* | nonstopux*) |
||
8803 | if test "$GCC" = yes; then |
||
8804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
||
8805 | # Try to use the -exported_symbol ld option, if it does not |
||
8806 | # work, assume that -exports_file does not work either and |
||
8807 | # implicitly export all symbols. |
||
8808 | save_LDFLAGS="$LDFLAGS" |
||
8809 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
||
8810 | cat >conftest.$ac_ext <<_ACEOF |
||
8811 | int foo(void) {} |
||
8812 | _ACEOF |
||
8813 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8814 | if { (ac_try="$ac_link" |
||
8815 | case "(($ac_try" in |
||
8816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
8817 | *) ac_try_echo=$ac_try;; |
||
8818 | esac |
||
8819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
8820 | $as_echo "$ac_try_echo") >&5 |
||
8821 | (eval "$ac_link") 2>conftest.er1 |
||
8822 | ac_status=$? |
||
8823 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8824 | rm -f conftest.er1 |
||
8825 | cat conftest.err >&5 |
||
8826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8827 | (exit $ac_status); } && { |
||
8828 | test -z "$ac_c_werror_flag" || |
||
8829 | test ! -s conftest.err |
||
8830 | } && test -s conftest$ac_exeext && { |
||
8831 | test "$cross_compiling" = yes || |
||
8832 | $as_test_x conftest$ac_exeext |
||
8833 | }; then |
||
8834 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
||
8835 | |||
8836 | else |
||
8837 | $as_echo "$as_me: failed program was:" >&5 |
||
8838 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8839 | |||
8840 | |||
8841 | fi |
||
8842 | |||
8843 | rm -rf conftest.dSYM |
||
8844 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
8845 | conftest$ac_exeext conftest.$ac_ext |
||
8846 | LDFLAGS="$save_LDFLAGS" |
||
8847 | else |
||
8848 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
||
8849 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
||
8850 | fi |
||
8851 | archive_cmds_need_lc='no' |
||
8852 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8853 | hardcode_libdir_separator=: |
||
8854 | inherit_rpath=yes |
||
8855 | link_all_deplibs=yes |
||
8856 | ;; |
||
8857 | |||
8858 | netbsd*) |
||
8859 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
8860 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
8861 | else |
||
8862 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
8863 | fi |
||
8864 | hardcode_libdir_flag_spec='-R$libdir' |
||
8865 | hardcode_direct=yes |
||
8866 | hardcode_shlibpath_var=no |
||
8867 | ;; |
||
8868 | |||
8869 | newsos6) |
||
8870 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8871 | hardcode_direct=yes |
||
8872 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8873 | hardcode_libdir_separator=: |
||
8874 | hardcode_shlibpath_var=no |
||
8875 | ;; |
||
8876 | |||
8877 | *nto* | *qnx*) |
||
8878 | ;; |
||
8879 | |||
8880 | openbsd*) |
||
8881 | if test -f /usr/libexec/ld.so; then |
||
8882 | hardcode_direct=yes |
||
8883 | hardcode_shlibpath_var=no |
||
8884 | hardcode_direct_absolute=yes |
||
8885 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
8886 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
8887 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
||
8888 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
8889 | export_dynamic_flag_spec='${wl}-E' |
||
8890 | else |
||
8891 | case $host_os in |
||
8892 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
||
8893 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
8894 | hardcode_libdir_flag_spec='-R$libdir' |
||
8895 | ;; |
||
8896 | *) |
||
8897 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
8898 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
||
8899 | ;; |
||
8900 | esac |
||
8901 | fi |
||
8902 | else |
||
8903 | ld_shlibs=no |
||
8904 | fi |
||
8905 | ;; |
||
8906 | |||
8907 | os2*) |
||
8908 | hardcode_libdir_flag_spec='-L$libdir' |
||
8909 | hardcode_minus_L=yes |
||
8910 | allow_undefined_flag=unsupported |
||
8911 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
||
8912 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
||
8913 | ;; |
||
8914 | |||
8915 | osf3*) |
||
8916 | if test "$GCC" = yes; then |
||
8917 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
||
8918 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
||
8919 | else |
||
8920 | allow_undefined_flag=' -expect_unresolved \*' |
||
8921 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
||
8922 | fi |
||
8923 | archive_cmds_need_lc='no' |
||
8924 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8925 | hardcode_libdir_separator=: |
||
8926 | ;; |
||
8927 | |||
8928 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
8929 | if test "$GCC" = yes; then |
||
8930 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
||
8931 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
||
8932 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
||
8933 | else |
||
8934 | allow_undefined_flag=' -expect_unresolved \*' |
||
8935 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
||
8936 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
||
8937 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
||
8938 | |||
8939 | # Both c and cxx compiler support -rpath directly |
||
8940 | hardcode_libdir_flag_spec='-rpath $libdir' |
||
8941 | fi |
||
8942 | archive_cmds_need_lc='no' |
||
8943 | hardcode_libdir_separator=: |
||
8944 | ;; |
||
8945 | |||
8946 | solaris*) |
||
8947 | no_undefined_flag=' -z defs' |
||
8948 | if test "$GCC" = yes; then |
||
8949 | wlarc='${wl}' |
||
8950 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8951 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
8952 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
||
8953 | else |
||
8954 | case `$CC -V 2>&1` in |
||
8955 | *"Compilers 5.0"*) |
||
8956 | wlarc='' |
||
8957 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
8958 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
8959 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
||
8960 | ;; |
||
8961 | *) |
||
8962 | wlarc='${wl}' |
||
8963 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8964 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
8965 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
||
8966 | ;; |
||
8967 | esac |
||
8968 | fi |
||
8969 | hardcode_libdir_flag_spec='-R$libdir' |
||
8970 | hardcode_shlibpath_var=no |
||
8971 | case $host_os in |
||
8972 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
8973 | *) |
||
8974 | # The compiler driver will combine and reorder linker options, |
||
8975 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
||
8976 | # but is careful enough not to reorder. |
||
8977 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
8978 | if test "$GCC" = yes; then |
||
8979 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
||
8980 | else |
||
8981 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
||
8982 | fi |
||
8983 | ;; |
||
8984 | esac |
||
8985 | link_all_deplibs=yes |
||
8986 | ;; |
||
8987 | |||
8988 | sunos4*) |
||
8989 | if test "x$host_vendor" = xsequent; then |
||
8990 | # Use $CC to link under sequent, because it throws in some extra .o |
||
8991 | # files that make .init and .fini sections work. |
||
8992 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
8993 | else |
||
8994 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
8995 | fi |
||
8996 | hardcode_libdir_flag_spec='-L$libdir' |
||
8997 | hardcode_direct=yes |
||
8998 | hardcode_minus_L=yes |
||
8999 | hardcode_shlibpath_var=no |
||
9000 | ;; |
||
9001 | |||
9002 | sysv4) |
||
9003 | case $host_vendor in |
||
9004 | sni) |
||
9005 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9006 | hardcode_direct=yes # is this really true??? |
||
9007 | ;; |
||
9008 | siemens) |
||
9009 | ## LD is ld it makes a PLAMLIB |
||
9010 | ## CC just makes a GrossModule. |
||
9011 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
9012 | reload_cmds='$CC -r -o $output$reload_objs' |
||
9013 | hardcode_direct=no |
||
9014 | ;; |
||
9015 | motorola) |
||
9016 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9017 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
||
9018 | ;; |
||
9019 | esac |
||
9020 | runpath_var='LD_RUN_PATH' |
||
9021 | hardcode_shlibpath_var=no |
||
9022 | ;; |
||
9023 | |||
9024 | sysv4.3*) |
||
9025 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9026 | hardcode_shlibpath_var=no |
||
9027 | export_dynamic_flag_spec='-Bexport' |
||
9028 | ;; |
||
9029 | |||
9030 | sysv4*MP*) |
||
9031 | if test -d /usr/nec; then |
||
9032 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9033 | hardcode_shlibpath_var=no |
||
9034 | runpath_var=LD_RUN_PATH |
||
9035 | hardcode_runpath_var=yes |
||
9036 | ld_shlibs=yes |
||
9037 | fi |
||
9038 | ;; |
||
9039 | |||
9040 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
9041 | no_undefined_flag='${wl}-z,text' |
||
9042 | archive_cmds_need_lc=no |
||
9043 | hardcode_shlibpath_var=no |
||
9044 | runpath_var='LD_RUN_PATH' |
||
9045 | |||
9046 | if test "$GCC" = yes; then |
||
9047 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9048 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9049 | else |
||
9050 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9051 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9052 | fi |
||
9053 | ;; |
||
9054 | |||
9055 | sysv5* | sco3.2v5* | sco5v6*) |
||
9056 | # Note: We can NOT use -z defs as we might desire, because we do not |
||
9057 | # link with -lc, and that would cause any symbols used from libc to |
||
9058 | # always be unresolved, which means just about no library would |
||
9059 | # ever link correctly. If we're not using GNU ld we use -z text |
||
9060 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
9061 | # as -z defs. |
||
9062 | no_undefined_flag='${wl}-z,text' |
||
9063 | allow_undefined_flag='${wl}-z,nodefs' |
||
9064 | archive_cmds_need_lc=no |
||
9065 | hardcode_shlibpath_var=no |
||
9066 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
||
9067 | hardcode_libdir_separator=':' |
||
9068 | link_all_deplibs=yes |
||
9069 | export_dynamic_flag_spec='${wl}-Bexport' |
||
9070 | runpath_var='LD_RUN_PATH' |
||
9071 | |||
9072 | if test "$GCC" = yes; then |
||
9073 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9074 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9075 | else |
||
9076 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9077 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
9078 | fi |
||
9079 | ;; |
||
9080 | |||
9081 | uts4*) |
||
9082 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
9083 | hardcode_libdir_flag_spec='-L$libdir' |
||
9084 | hardcode_shlibpath_var=no |
||
9085 | ;; |
||
9086 | |||
9087 | *) |
||
9088 | ld_shlibs=no |
||
9089 | ;; |
||
9090 | esac |
||
9091 | |||
9092 | if test x$host_vendor = xsni; then |
||
9093 | case $host in |
||
9094 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
||
9095 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
||
9096 | ;; |
||
9097 | esac |
||
9098 | fi |
||
9099 | fi |
||
9100 | |||
9101 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
||
9102 | $as_echo "$ld_shlibs" >&6; } |
||
9103 | test "$ld_shlibs" = no && can_build_shared=no |
||
9104 | |||
9105 | with_gnu_ld=$with_gnu_ld |
||
9106 | |||
9107 | |||
9108 | |||
9109 | |||
9110 | |||
9111 | |||
9112 | |||
9113 | |||
9114 | |||
9115 | |||
9116 | |||
9117 | |||
9118 | |||
9119 | |||
9120 | |||
9121 | # |
||
9122 | # Do we need to explicitly link libc? |
||
9123 | # |
||
9124 | case "x$archive_cmds_need_lc" in |
||
9125 | x|xyes) |
||
9126 | # Assume -lc should be added |
||
9127 | archive_cmds_need_lc=yes |
||
9128 | |||
9129 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
||
9130 | case $archive_cmds in |
||
9131 | *'~'*) |
||
9132 | # FIXME: we may have to deal with multi-command sequences. |
||
9133 | ;; |
||
9134 | '$CC '*) |
||
9135 | # Test whether the compiler implicitly links with -lc since on some |
||
9136 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
9137 | # to ld, don't add -lc before -lgcc. |
||
9138 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
||
9139 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
||
9140 | $RM conftest* |
||
9141 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
9142 | |||
9143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
9144 | (eval $ac_compile) 2>&5 |
||
9145 | ac_status=$? |
||
9146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9147 | (exit $ac_status); } 2>conftest.err; then |
||
9148 | soname=conftest |
||
9149 | lib=conftest |
||
9150 | libobjs=conftest.$ac_objext |
||
9151 | deplibs= |
||
9152 | wl=$lt_prog_compiler_wl |
||
9153 | pic_flag=$lt_prog_compiler_pic |
||
9154 | compiler_flags=-v |
||
9155 | linker_flags=-v |
||
9156 | verstring= |
||
9157 | output_objdir=. |
||
9158 | libname=conftest |
||
9159 | lt_save_allow_undefined_flag=$allow_undefined_flag |
||
9160 | allow_undefined_flag= |
||
9161 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
||
9162 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
9163 | ac_status=$? |
||
9164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9165 | (exit $ac_status); } |
||
9166 | then |
||
9167 | archive_cmds_need_lc=no |
||
9168 | else |
||
9169 | archive_cmds_need_lc=yes |
||
9170 | fi |
||
9171 | allow_undefined_flag=$lt_save_allow_undefined_flag |
||
9172 | else |
||
9173 | cat conftest.err 1>&5 |
||
9174 | fi |
||
9175 | $RM conftest* |
||
9176 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
||
9177 | $as_echo "$archive_cmds_need_lc" >&6; } |
||
9178 | ;; |
||
9179 | esac |
||
9180 | fi |
||
9181 | ;; |
||
9182 | esac |
||
9183 | |||
9184 | |||
9185 | |||
9186 | |||
9187 | |||
9188 | |||
9189 | |||
9190 | |||
9191 | |||
9192 | |||
9193 | |||
9194 | |||
9195 | |||
9196 | |||
9197 | |||
9198 | |||
9199 | |||
9200 | |||
9201 | |||
9202 | |||
9203 | |||
9204 | |||
9205 | |||
9206 | |||
9207 | |||
9208 | |||
9209 | |||
9210 | |||
9211 | |||
9212 | |||
9213 | |||
9214 | |||
9215 | |||
9216 | |||
9217 | |||
9218 | |||
9219 | |||
9220 | |||
9221 | |||
9222 | |||
9223 | |||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | |||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | |||
9237 | |||
9238 | |||
9239 | |||
9240 | |||
9241 | |||
9242 | |||
9243 | |||
9244 | |||
9245 | |||
9246 | |||
9247 | |||
9248 | |||
9249 | |||
9250 | |||
9251 | |||
9252 | |||
9253 | |||
9254 | |||
9255 | |||
9256 | |||
9257 | |||
9258 | |||
9259 | |||
9260 | |||
9261 | |||
9262 | |||
9263 | |||
9264 | |||
9265 | |||
9266 | |||
9267 | |||
9268 | |||
9269 | |||
9270 | |||
9271 | |||
9272 | |||
9273 | |||
9274 | |||
9275 | |||
9276 | |||
9277 | |||
9278 | |||
9279 | |||
9280 | |||
9281 | |||
9282 | |||
9283 | |||
9284 | |||
9285 | |||
9286 | |||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | |||
9292 | |||
9293 | |||
9294 | |||
9295 | |||
9296 | |||
9297 | |||
9298 | |||
9299 | |||
9300 | |||
9301 | |||
9302 | |||
9303 | |||
9304 | |||
9305 | |||
9306 | |||
9307 | |||
9308 | |||
9309 | |||
9310 | |||
9311 | |||
9312 | |||
9313 | |||
9314 | |||
9315 | |||
9316 | |||
9317 | |||
9318 | |||
9319 | |||
9320 | |||
9321 | |||
9322 | |||
9323 | |||
9324 | |||
9325 | |||
9326 | |||
9327 | |||
9328 | |||
9329 | |||
9330 | |||
9331 | |||
9332 | |||
9333 | |||
9334 | |||
9335 | |||
9336 | |||
9337 | |||
9338 | |||
9339 | |||
9340 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
||
9341 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
||
9342 | |||
9343 | if test "$GCC" = yes; then |
||
9344 | case $host_os in |
||
9345 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
||
9346 | *) lt_awk_arg="/^libraries:/" ;; |
||
9347 | esac |
||
9348 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
9349 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
||
9350 | # if the path contains ";" then we assume it to be the separator |
||
9351 | # otherwise default to the standard path separator (i.e. ":") - it is |
||
9352 | # assumed that no part of a normal pathname contains ";" but that should |
||
9353 | # okay in the real world where ";" in dirpaths is itself problematic. |
||
9354 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
||
9355 | else |
||
9356 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
9357 | fi |
||
9358 | # Ok, now we have the path, separated by spaces, we can step through it |
||
9359 | # and add multilib dir if necessary. |
||
9360 | lt_tmp_lt_search_path_spec= |
||
9361 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
||
9362 | for lt_sys_path in $lt_search_path_spec; do |
||
9363 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
||
9364 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
||
9365 | else |
||
9366 | test -d "$lt_sys_path" && \ |
||
9367 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
||
9368 | fi |
||
9369 | done |
||
9370 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
||
9371 | BEGIN {RS=" "; FS="/|\n";} { |
||
9372 | lt_foo=""; |
||
9373 | lt_count=0; |
||
9374 | for (lt_i = NF; lt_i > 0; lt_i--) { |
||
9375 | if ($lt_i != "" && $lt_i != ".") { |
||
9376 | if ($lt_i == "..") { |
||
9377 | lt_count++; |
||
9378 | } else { |
||
9379 | if (lt_count == 0) { |
||
9380 | lt_foo="/" $lt_i lt_foo; |
||
9381 | } else { |
||
9382 | lt_count--; |
||
9383 | } |
||
9384 | } |
||
9385 | } |
||
9386 | } |
||
9387 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
||
9388 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
||
9389 | }'` |
||
9390 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
||
9391 | else |
||
9392 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
9393 | fi |
||
9394 | library_names_spec= |
||
9395 | libname_spec='lib$name' |
||
9396 | soname_spec= |
||
9397 | shrext_cmds=".so" |
||
9398 | postinstall_cmds= |
||
9399 | postuninstall_cmds= |
||
9400 | finish_cmds= |
||
9401 | finish_eval= |
||
9402 | shlibpath_var= |
||
9403 | shlibpath_overrides_runpath=unknown |
||
9404 | version_type=none |
||
9405 | dynamic_linker="$host_os ld.so" |
||
9406 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
9407 | need_lib_prefix=unknown |
||
9408 | hardcode_into_libs=no |
||
9409 | |||
9410 | # when you set need_version to no, make sure it does not cause -set_version |
||
9411 | # flags to be left without arguments |
||
9412 | need_version=unknown |
||
9413 | |||
9414 | case $host_os in |
||
9415 | aix3*) |
||
9416 | version_type=linux |
||
9417 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
||
9418 | shlibpath_var=LIBPATH |
||
9419 | |||
9420 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
9421 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9422 | ;; |
||
9423 | |||
9424 | aix[4-9]*) |
||
9425 | version_type=linux |
||
9426 | need_lib_prefix=no |
||
9427 | need_version=no |
||
9428 | hardcode_into_libs=yes |
||
9429 | if test "$host_cpu" = ia64; then |
||
9430 | # AIX 5 supports IA64 |
||
9431 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
||
9432 | shlibpath_var=LD_LIBRARY_PATH |
||
9433 | else |
||
9434 | # With GCC up to 2.95.x, collect2 would create an import file |
||
9435 | # for dependence libraries. The import file would start with |
||
9436 | # the line `#! .'. This would cause the generated library to |
||
9437 | # depend on `.', always an invalid library. This was fixed in |
||
9438 | # development snapshots of GCC prior to 3.0. |
||
9439 | case $host_os in |
||
9440 | aix4 | aix4.[01] | aix4.[01].*) |
||
9441 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
9442 | echo ' yes ' |
||
9443 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
||
9444 | : |
||
9445 | else |
||
9446 | can_build_shared=no |
||
9447 | fi |
||
9448 | ;; |
||
9449 | esac |
||
9450 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
||
9451 | # soname into executable. Probably we can add versioning support to |
||
9452 | # collect2, so additional links can be useful in future. |
||
9453 | if test "$aix_use_runtimelinking" = yes; then |
||
9454 | # If using run time linking (on AIX 4.2 or later) use lib |
||
9455 | # instead of lib |
||
9456 | # typical AIX shared libraries. |
||
9457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9458 | else |
||
9459 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
9460 | # and later when we are not doing run time linking. |
||
9461 | library_names_spec='${libname}${release}.a $libname.a' |
||
9462 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9463 | fi |
||
9464 | shlibpath_var=LIBPATH |
||
9465 | fi |
||
9466 | ;; |
||
9467 | |||
9468 | amigaos*) |
||
9469 | case $host_cpu in |
||
9470 | powerpc) |
||
9471 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
||
9472 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
||
9473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9474 | ;; |
||
9475 | m68k) |
||
9476 | library_names_spec='$libname.ixlibrary $libname.a' |
||
9477 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
9478 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
||
9479 | ;; |
||
9480 | esac |
||
9481 | ;; |
||
9482 | |||
9483 | beos*) |
||
9484 | library_names_spec='${libname}${shared_ext}' |
||
9485 | dynamic_linker="$host_os ld.so" |
||
9486 | shlibpath_var=LIBRARY_PATH |
||
9487 | ;; |
||
9488 | |||
9489 | bsdi[45]*) |
||
9490 | version_type=linux |
||
9491 | need_version=no |
||
9492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9493 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9494 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
9495 | shlibpath_var=LD_LIBRARY_PATH |
||
9496 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
9497 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
9498 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
9499 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
9500 | # libtool to hard-code these into programs |
||
9501 | ;; |
||
9502 | |||
9503 | cygwin* | mingw* | pw32* | cegcc*) |
||
9504 | version_type=windows |
||
9505 | shrext_cmds=".dll" |
||
9506 | need_version=no |
||
9507 | need_lib_prefix=no |
||
9508 | |||
9509 | case $GCC,$host_os in |
||
9510 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
||
9511 | library_names_spec='$libname.dll.a' |
||
9512 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
9513 | postinstall_cmds='base_file=`basename \${file}`~ |
||
9514 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
||
9515 | dldir=$destdir/`dirname \$dlpath`~ |
||
9516 | test -d \$dldir || mkdir -p \$dldir~ |
||
9517 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
9518 | chmod a+x \$dldir/$dlname~ |
||
9519 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
9520 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
9521 | fi' |
||
9522 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
9523 | dlpath=$dir/\$dldll~ |
||
9524 | $RM \$dlpath' |
||
9525 | shlibpath_overrides_runpath=yes |
||
9526 | |||
9527 | case $host_os in |
||
9528 | cygwin*) |
||
9529 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
9530 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
9531 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
||
9532 | ;; |
||
9533 | mingw* | cegcc*) |
||
9534 | # MinGW DLLs use traditional 'lib' prefix |
||
9535 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
9536 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
||
9537 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
||
9538 | # It is most probably a Windows format PATH printed by |
||
9539 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
||
9540 | # path with ; separators, and with drive letters. We can handle the |
||
9541 | # drive letters (cygwin fileutils understands them), so leave them, |
||
9542 | # especially as we might pass files found there to a mingw objdump, |
||
9543 | # which wouldn't understand a cygwinified path. Ahh. |
||
9544 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
9545 | else |
||
9546 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
9547 | fi |
||
9548 | ;; |
||
9549 | pw32*) |
||
9550 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
9551 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
||
9552 | ;; |
||
9553 | esac |
||
9554 | ;; |
||
9555 | |||
9556 | *) |
||
9557 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
||
9558 | ;; |
||
9559 | esac |
||
9560 | dynamic_linker='Win32 ld.exe' |
||
9561 | # FIXME: first we should search . and the directory the executable is in |
||
9562 | shlibpath_var=PATH |
||
9563 | ;; |
||
9564 | |||
9565 | darwin* | rhapsody*) |
||
9566 | dynamic_linker="$host_os dyld" |
||
9567 | version_type=darwin |
||
9568 | need_lib_prefix=no |
||
9569 | need_version=no |
||
9570 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
||
9571 | soname_spec='${libname}${release}${major}$shared_ext' |
||
9572 | shlibpath_overrides_runpath=yes |
||
9573 | shlibpath_var=DYLD_LIBRARY_PATH |
||
9574 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
9575 | |||
9576 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
||
9577 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
9578 | ;; |
||
9579 | |||
9580 | dgux*) |
||
9581 | version_type=linux |
||
9582 | need_lib_prefix=no |
||
9583 | need_version=no |
||
9584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
||
9585 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9586 | shlibpath_var=LD_LIBRARY_PATH |
||
9587 | ;; |
||
9588 | |||
9589 | freebsd1*) |
||
9590 | dynamic_linker=no |
||
9591 | ;; |
||
9592 | |||
9593 | freebsd* | dragonfly*) |
||
9594 | # DragonFly does not have aout. When/if they implement a new |
||
9595 | # versioning mechanism, adjust this. |
||
9596 | if test -x /usr/bin/objformat; then |
||
9597 | objformat=`/usr/bin/objformat` |
||
9598 | else |
||
9599 | case $host_os in |
||
9600 | freebsd[123]*) objformat=aout ;; |
||
9601 | *) objformat=elf ;; |
||
9602 | esac |
||
9603 | fi |
||
9604 | version_type=freebsd-$objformat |
||
9605 | case $version_type in |
||
9606 | freebsd-elf*) |
||
9607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
9608 | need_version=no |
||
9609 | need_lib_prefix=no |
||
9610 | ;; |
||
9611 | freebsd-*) |
||
9612 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
||
9613 | need_version=yes |
||
9614 | ;; |
||
9615 | esac |
||
9616 | shlibpath_var=LD_LIBRARY_PATH |
||
9617 | case $host_os in |
||
9618 | freebsd2*) |
||
9619 | shlibpath_overrides_runpath=yes |
||
9620 | ;; |
||
9621 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
9622 | shlibpath_overrides_runpath=yes |
||
9623 | hardcode_into_libs=yes |
||
9624 | ;; |
||
9625 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
9626 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
9627 | shlibpath_overrides_runpath=no |
||
9628 | hardcode_into_libs=yes |
||
9629 | ;; |
||
9630 | *) # from 4.6 on, and DragonFly |
||
9631 | shlibpath_overrides_runpath=yes |
||
9632 | hardcode_into_libs=yes |
||
9633 | ;; |
||
9634 | esac |
||
9635 | ;; |
||
9636 | |||
9637 | gnu*) |
||
9638 | version_type=linux |
||
9639 | need_lib_prefix=no |
||
9640 | need_version=no |
||
9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
||
9642 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9643 | shlibpath_var=LD_LIBRARY_PATH |
||
9644 | hardcode_into_libs=yes |
||
9645 | ;; |
||
9646 | |||
9647 | hpux9* | hpux10* | hpux11*) |
||
9648 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
9649 | # link against other versions. |
||
9650 | version_type=sunos |
||
9651 | need_lib_prefix=no |
||
9652 | need_version=no |
||
9653 | case $host_cpu in |
||
9654 | ia64*) |
||
9655 | shrext_cmds='.so' |
||
9656 | hardcode_into_libs=yes |
||
9657 | dynamic_linker="$host_os dld.so" |
||
9658 | shlibpath_var=LD_LIBRARY_PATH |
||
9659 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
9660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9661 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9662 | if test "X$HPUX_IA64_MODE" = X32; then |
||
9663 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
9664 | else |
||
9665 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
9666 | fi |
||
9667 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
9668 | ;; |
||
9669 | hppa*64*) |
||
9670 | shrext_cmds='.sl' |
||
9671 | hardcode_into_libs=yes |
||
9672 | dynamic_linker="$host_os dld.sl" |
||
9673 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
9674 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
9675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9676 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9677 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
9678 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
9679 | ;; |
||
9680 | *) |
||
9681 | shrext_cmds='.sl' |
||
9682 | dynamic_linker="$host_os dld.sl" |
||
9683 | shlibpath_var=SHLIB_PATH |
||
9684 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
9685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9686 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9687 | ;; |
||
9688 | esac |
||
9689 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
||
9690 | postinstall_cmds='chmod 555 $lib' |
||
9691 | ;; |
||
9692 | |||
9693 | interix[3-9]*) |
||
9694 | version_type=linux |
||
9695 | need_lib_prefix=no |
||
9696 | need_version=no |
||
9697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
9698 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9699 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
9700 | shlibpath_var=LD_LIBRARY_PATH |
||
9701 | shlibpath_overrides_runpath=no |
||
9702 | hardcode_into_libs=yes |
||
9703 | ;; |
||
9704 | |||
9705 | irix5* | irix6* | nonstopux*) |
||
9706 | case $host_os in |
||
9707 | nonstopux*) version_type=nonstopux ;; |
||
9708 | *) |
||
9709 | if test "$lt_cv_prog_gnu_ld" = yes; then |
||
9710 | version_type=linux |
||
9711 | else |
||
9712 | version_type=irix |
||
9713 | fi ;; |
||
9714 | esac |
||
9715 | need_lib_prefix=no |
||
9716 | need_version=no |
||
9717 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
9719 | case $host_os in |
||
9720 | irix5* | nonstopux*) |
||
9721 | libsuff= shlibsuff= |
||
9722 | ;; |
||
9723 | *) |
||
9724 | case $LD in # libtool.m4 will add one of these switches to LD |
||
9725 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
9726 | libsuff= shlibsuff= libmagic=32-bit;; |
||
9727 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
9728 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
9729 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
9730 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
9731 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
9732 | esac |
||
9733 | ;; |
||
9734 | esac |
||
9735 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
9736 | shlibpath_overrides_runpath=no |
||
9737 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
||
9738 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
||
9739 | hardcode_into_libs=yes |
||
9740 | ;; |
||
9741 | |||
9742 | # No shared lib support for Linux oldld, aout, or coff. |
||
9743 | linux*oldld* | linux*aout* | linux*coff*) |
||
9744 | dynamic_linker=no |
||
9745 | ;; |
||
9746 | |||
9747 | # This must be Linux ELF. |
||
9748 | linux* | k*bsd*-gnu) |
||
9749 | version_type=linux |
||
9750 | need_lib_prefix=no |
||
9751 | need_version=no |
||
9752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9753 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9754 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
9755 | shlibpath_var=LD_LIBRARY_PATH |
||
9756 | shlibpath_overrides_runpath=no |
||
9757 | # Some binutils ld are patched to set DT_RUNPATH |
||
9758 | save_LDFLAGS=$LDFLAGS |
||
9759 | save_libdir=$libdir |
||
9760 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
||
9761 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
||
9762 | cat >conftest.$ac_ext <<_ACEOF |
||
9763 | /* confdefs.h. */ |
||
9764 | _ACEOF |
||
9765 | cat confdefs.h >>conftest.$ac_ext |
||
9766 | cat >>conftest.$ac_ext <<_ACEOF |
||
9767 | /* end confdefs.h. */ |
||
9768 | |||
9769 | int |
||
9770 | main () |
||
9771 | { |
||
9772 | |||
9773 | ; |
||
9774 | return 0; |
||
9775 | } |
||
9776 | _ACEOF |
||
9777 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
9778 | if { (ac_try="$ac_link" |
||
9779 | case "(($ac_try" in |
||
9780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
9781 | *) ac_try_echo=$ac_try;; |
||
9782 | esac |
||
9783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
9784 | $as_echo "$ac_try_echo") >&5 |
||
9785 | (eval "$ac_link") 2>conftest.er1 |
||
9786 | ac_status=$? |
||
9787 | grep -v '^ *+' conftest.er1 >conftest.err |
||
9788 | rm -f conftest.er1 |
||
9789 | cat conftest.err >&5 |
||
9790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
9791 | (exit $ac_status); } && { |
||
9792 | test -z "$ac_c_werror_flag" || |
||
9793 | test ! -s conftest.err |
||
9794 | } && test -s conftest$ac_exeext && { |
||
9795 | test "$cross_compiling" = yes || |
||
9796 | $as_test_x conftest$ac_exeext |
||
9797 | }; then |
||
9798 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
||
9799 | shlibpath_overrides_runpath=yes |
||
9800 | fi |
||
9801 | |||
9802 | else |
||
9803 | $as_echo "$as_me: failed program was:" >&5 |
||
9804 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
9805 | |||
9806 | |||
9807 | fi |
||
9808 | |||
9809 | rm -rf conftest.dSYM |
||
9810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
9811 | conftest$ac_exeext conftest.$ac_ext |
||
9812 | LDFLAGS=$save_LDFLAGS |
||
9813 | libdir=$save_libdir |
||
9814 | |||
9815 | # This implies no fast_install, which is unacceptable. |
||
9816 | # Some rework will be needed to allow for fast_install |
||
9817 | # before this can be enabled. |
||
9818 | hardcode_into_libs=yes |
||
9819 | |||
9820 | # Add ABI-specific directories to the system library path. |
||
9821 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
||
9822 | |||
9823 | # Append ld.so.conf contents to the search path |
||
9824 | if test -f /etc/ld.so.conf; then |
||
9825 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
||
9826 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
||
9827 | fi |
||
9828 | |||
9829 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
9830 | # powerpc, because MkLinux only supported shared libraries with the |
||
9831 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
9832 | # most powerpc-linux boxes support dynamic linking these days and |
||
9833 | # people can always --disable-shared, the test was removed, and we |
||
9834 | # assume the GNU/Linux dynamic linker is in use. |
||
9835 | dynamic_linker='GNU/Linux ld.so' |
||
9836 | ;; |
||
9837 | |||
9838 | netbsd*) |
||
9839 | version_type=sunos |
||
9840 | need_lib_prefix=no |
||
9841 | need_version=no |
||
9842 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
9843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
9844 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
9845 | dynamic_linker='NetBSD (a.out) ld.so' |
||
9846 | else |
||
9847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
9848 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9849 | dynamic_linker='NetBSD ld.elf_so' |
||
9850 | fi |
||
9851 | shlibpath_var=LD_LIBRARY_PATH |
||
9852 | shlibpath_overrides_runpath=yes |
||
9853 | hardcode_into_libs=yes |
||
9854 | ;; |
||
9855 | |||
9856 | newsos6) |
||
9857 | version_type=linux |
||
9858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9859 | shlibpath_var=LD_LIBRARY_PATH |
||
9860 | shlibpath_overrides_runpath=yes |
||
9861 | ;; |
||
9862 | |||
9863 | *nto* | *qnx*) |
||
9864 | version_type=qnx |
||
9865 | need_lib_prefix=no |
||
9866 | need_version=no |
||
9867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9868 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9869 | shlibpath_var=LD_LIBRARY_PATH |
||
9870 | shlibpath_overrides_runpath=no |
||
9871 | hardcode_into_libs=yes |
||
9872 | dynamic_linker='ldqnx.so' |
||
9873 | ;; |
||
9874 | |||
9875 | openbsd*) |
||
9876 | version_type=sunos |
||
9877 | sys_lib_dlsearch_path_spec="/usr/lib" |
||
9878 | need_lib_prefix=no |
||
9879 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
||
9880 | case $host_os in |
||
9881 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
||
9882 | *) need_version=no ;; |
||
9883 | esac |
||
9884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
9885 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
9886 | shlibpath_var=LD_LIBRARY_PATH |
||
9887 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
||
9888 | case $host_os in |
||
9889 | openbsd2.[89] | openbsd2.[89].*) |
||
9890 | shlibpath_overrides_runpath=no |
||
9891 | ;; |
||
9892 | *) |
||
9893 | shlibpath_overrides_runpath=yes |
||
9894 | ;; |
||
9895 | esac |
||
9896 | else |
||
9897 | shlibpath_overrides_runpath=yes |
||
9898 | fi |
||
9899 | ;; |
||
9900 | |||
9901 | os2*) |
||
9902 | libname_spec='$name' |
||
9903 | shrext_cmds=".dll" |
||
9904 | need_lib_prefix=no |
||
9905 | library_names_spec='$libname${shared_ext} $libname.a' |
||
9906 | dynamic_linker='OS/2 ld.exe' |
||
9907 | shlibpath_var=LIBPATH |
||
9908 | ;; |
||
9909 | |||
9910 | osf3* | osf4* | osf5*) |
||
9911 | version_type=osf |
||
9912 | need_lib_prefix=no |
||
9913 | need_version=no |
||
9914 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9916 | shlibpath_var=LD_LIBRARY_PATH |
||
9917 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
9918 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
||
9919 | ;; |
||
9920 | |||
9921 | rdos*) |
||
9922 | dynamic_linker=no |
||
9923 | ;; |
||
9924 | |||
9925 | solaris*) |
||
9926 | version_type=linux |
||
9927 | need_lib_prefix=no |
||
9928 | need_version=no |
||
9929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9930 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9931 | shlibpath_var=LD_LIBRARY_PATH |
||
9932 | shlibpath_overrides_runpath=yes |
||
9933 | hardcode_into_libs=yes |
||
9934 | # ldd complains unless libraries are executable |
||
9935 | postinstall_cmds='chmod +x $lib' |
||
9936 | ;; |
||
9937 | |||
9938 | sunos4*) |
||
9939 | version_type=sunos |
||
9940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
||
9941 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
9942 | shlibpath_var=LD_LIBRARY_PATH |
||
9943 | shlibpath_overrides_runpath=yes |
||
9944 | if test "$with_gnu_ld" = yes; then |
||
9945 | need_lib_prefix=no |
||
9946 | fi |
||
9947 | need_version=yes |
||
9948 | ;; |
||
9949 | |||
9950 | sysv4 | sysv4.3*) |
||
9951 | version_type=linux |
||
9952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
9953 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9954 | shlibpath_var=LD_LIBRARY_PATH |
||
9955 | case $host_vendor in |
||
9956 | sni) |
||
9957 | shlibpath_overrides_runpath=no |
||
9958 | need_lib_prefix=no |
||
9959 | runpath_var=LD_RUN_PATH |
||
9960 | ;; |
||
9961 | siemens) |
||
9962 | need_lib_prefix=no |
||
9963 | ;; |
||
9964 | motorola) |
||
9965 | need_lib_prefix=no |
||
9966 | need_version=no |
||
9967 | shlibpath_overrides_runpath=no |
||
9968 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
9969 | ;; |
||
9970 | esac |
||
9971 | ;; |
||
9972 | |||
9973 | sysv4*MP*) |
||
9974 | if test -d /usr/nec ;then |
||
9975 | version_type=linux |
||
9976 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
||
9977 | soname_spec='$libname${shared_ext}.$major' |
||
9978 | shlibpath_var=LD_LIBRARY_PATH |
||
9979 | fi |
||
9980 | ;; |
||
9981 | |||
9982 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
9983 | version_type=freebsd-elf |
||
9984 | need_lib_prefix=no |
||
9985 | need_version=no |
||
9986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
||
9987 | soname_spec='${libname}${release}${shared_ext}$major' |
||
9988 | shlibpath_var=LD_LIBRARY_PATH |
||
9989 | shlibpath_overrides_runpath=yes |
||
9990 | hardcode_into_libs=yes |
||
9991 | if test "$with_gnu_ld" = yes; then |
||
9992 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
9993 | else |
||
9994 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
9995 | case $host_os in |
||
9996 | sco3.2v5*) |
||
9997 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
9998 | ;; |
||
9999 | esac |
||
10000 | fi |
||
10001 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
10002 | ;; |
||
10003 | |||
10004 | tpf*) |
||
10005 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
||
10006 | version_type=linux |
||
10007 | need_lib_prefix=no |
||
10008 | need_version=no |
||
10009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
10010 | shlibpath_var=LD_LIBRARY_PATH |
||
10011 | shlibpath_overrides_runpath=no |
||
10012 | hardcode_into_libs=yes |
||
10013 | ;; |
||
10014 | |||
10015 | uts4*) |
||
10016 | version_type=linux |
||
10017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
||
10018 | soname_spec='${libname}${release}${shared_ext}$major' |
||
10019 | shlibpath_var=LD_LIBRARY_PATH |
||
10020 | ;; |
||
10021 | |||
10022 | *) |
||
10023 | dynamic_linker=no |
||
10024 | ;; |
||
10025 | esac |
||
10026 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
||
10027 | $as_echo "$dynamic_linker" >&6; } |
||
10028 | test "$dynamic_linker" = no && can_build_shared=no |
||
10029 | |||
10030 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
10031 | if test "$GCC" = yes; then |
||
10032 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
10033 | fi |
||
10034 | |||
10035 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
||
10036 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
||
10037 | fi |
||
10038 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
||
10039 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
||
10040 | fi |
||
10041 | |||
10042 | |||
10043 | |||
10044 | |||
10045 | |||
10046 | |||
10047 | |||
10048 | |||
10049 | |||
10050 | |||
10051 | |||
10052 | |||
10053 | |||
10054 | |||
10055 | |||
10056 | |||
10057 | |||
10058 | |||
10059 | |||
10060 | |||
10061 | |||
10062 | |||
10063 | |||
10064 | |||
10065 | |||
10066 | |||
10067 | |||
10068 | |||
10069 | |||
10070 | |||
10071 | |||
10072 | |||
10073 | |||
10074 | |||
10075 | |||
10076 | |||
10077 | |||
10078 | |||
10079 | |||
10080 | |||
10081 | |||
10082 | |||
10083 | |||
10084 | |||
10085 | |||
10086 | |||
10087 | |||
10088 | |||
10089 | |||
10090 | |||
10091 | |||
10092 | |||
10093 | |||
10094 | |||
10095 | |||
10096 | |||
10097 | |||
10098 | |||
10099 | |||
10100 | |||
10101 | |||
10102 | |||
10103 | |||
10104 | |||
10105 | |||
10106 | |||
10107 | |||
10108 | |||
10109 | |||
10110 | |||
10111 | |||
10112 | |||
10113 | |||
10114 | |||
10115 | |||
10116 | |||
10117 | |||
10118 | |||
10119 | |||
10120 | |||
10121 | |||
10122 | |||
10123 | |||
10124 | |||
10125 | |||
10126 | |||
10127 | |||
10128 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
||
10129 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
||
10130 | hardcode_action= |
||
10131 | if test -n "$hardcode_libdir_flag_spec" || |
||
10132 | test -n "$runpath_var" || |
||
10133 | test "X$hardcode_automatic" = "Xyes" ; then |
||
10134 | |||
10135 | # We can hardcode non-existent directories. |
||
10136 | if test "$hardcode_direct" != no && |
||
10137 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
10138 | # have to relink, otherwise we might link with an installed library |
||
10139 | # when we should be linking with a yet-to-be-installed one |
||
10140 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
||
10141 | test "$hardcode_minus_L" != no; then |
||
10142 | # Linking always hardcodes the temporary library directory. |
||
10143 | hardcode_action=relink |
||
10144 | else |
||
10145 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
10146 | hardcode_action=immediate |
||
10147 | fi |
||
10148 | else |
||
10149 | # We cannot hardcode anything, or else we can only hardcode existing |
||
10150 | # directories. |
||
10151 | hardcode_action=unsupported |
||
10152 | fi |
||
10153 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
||
10154 | $as_echo "$hardcode_action" >&6; } |
||
10155 | |||
10156 | if test "$hardcode_action" = relink || |
||
10157 | test "$inherit_rpath" = yes; then |
||
10158 | # Fast installation is not supported |
||
10159 | enable_fast_install=no |
||
10160 | elif test "$shlibpath_overrides_runpath" = yes || |
||
10161 | test "$enable_shared" = no; then |
||
10162 | # Fast installation is not necessary |
||
10163 | enable_fast_install=needless |
||
10164 | fi |
||
10165 | |||
10166 | |||
10167 | |||
10168 | |||
10169 | |||
10170 | |||
10171 | if test "x$enable_dlopen" != xyes; then |
||
10172 | enable_dlopen=unknown |
||
10173 | enable_dlopen_self=unknown |
||
10174 | enable_dlopen_self_static=unknown |
||
10175 | else |
||
10176 | lt_cv_dlopen=no |
||
10177 | lt_cv_dlopen_libs= |
||
10178 | |||
10179 | case $host_os in |
||
10180 | beos*) |
||
10181 | lt_cv_dlopen="load_add_on" |
||
10182 | lt_cv_dlopen_libs= |
||
10183 | lt_cv_dlopen_self=yes |
||
10184 | ;; |
||
10185 | |||
10186 | mingw* | pw32* | cegcc*) |
||
10187 | lt_cv_dlopen="LoadLibrary" |
||
10188 | lt_cv_dlopen_libs= |
||
10189 | ;; |
||
10190 | |||
10191 | cygwin*) |
||
10192 | lt_cv_dlopen="dlopen" |
||
10193 | lt_cv_dlopen_libs= |
||
10194 | ;; |
||
10195 | |||
10196 | darwin*) |
||
10197 | # if libdl is installed we need to link against it |
||
10198 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
||
10199 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
10200 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
||
10201 | $as_echo_n "(cached) " >&6 |
||
10202 | else |
||
10203 | ac_check_lib_save_LIBS=$LIBS |
||
10204 | LIBS="-ldl $LIBS" |
||
10205 | cat >conftest.$ac_ext <<_ACEOF |
||
10206 | /* confdefs.h. */ |
||
10207 | _ACEOF |
||
10208 | cat confdefs.h >>conftest.$ac_ext |
||
10209 | cat >>conftest.$ac_ext <<_ACEOF |
||
10210 | /* end confdefs.h. */ |
||
10211 | |||
10212 | /* Override any GCC internal prototype to avoid an error. |
||
10213 | Use char because int might match the return type of a GCC |
||
10214 | builtin and then its argument prototype would still apply. */ |
||
10215 | #ifdef __cplusplus |
||
10216 | extern "C" |
||
10217 | #endif |
||
10218 | char dlopen (); |
||
10219 | int |
||
10220 | main () |
||
10221 | { |
||
10222 | return dlopen (); |
||
10223 | ; |
||
10224 | return 0; |
||
10225 | } |
||
10226 | _ACEOF |
||
10227 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10228 | if { (ac_try="$ac_link" |
||
10229 | case "(($ac_try" in |
||
10230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10231 | *) ac_try_echo=$ac_try;; |
||
10232 | esac |
||
10233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10234 | $as_echo "$ac_try_echo") >&5 |
||
10235 | (eval "$ac_link") 2>conftest.er1 |
||
10236 | ac_status=$? |
||
10237 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10238 | rm -f conftest.er1 |
||
10239 | cat conftest.err >&5 |
||
10240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10241 | (exit $ac_status); } && { |
||
10242 | test -z "$ac_c_werror_flag" || |
||
10243 | test ! -s conftest.err |
||
10244 | } && test -s conftest$ac_exeext && { |
||
10245 | test "$cross_compiling" = yes || |
||
10246 | $as_test_x conftest$ac_exeext |
||
10247 | }; then |
||
10248 | ac_cv_lib_dl_dlopen=yes |
||
10249 | else |
||
10250 | $as_echo "$as_me: failed program was:" >&5 |
||
10251 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10252 | |||
10253 | ac_cv_lib_dl_dlopen=no |
||
10254 | fi |
||
10255 | |||
10256 | rm -rf conftest.dSYM |
||
10257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10258 | conftest$ac_exeext conftest.$ac_ext |
||
10259 | LIBS=$ac_check_lib_save_LIBS |
||
10260 | fi |
||
10261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
||
10262 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
10263 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
||
10264 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
||
10265 | else |
||
10266 | |||
10267 | lt_cv_dlopen="dyld" |
||
10268 | lt_cv_dlopen_libs= |
||
10269 | lt_cv_dlopen_self=yes |
||
10270 | |||
10271 | fi |
||
10272 | |||
10273 | ;; |
||
10274 | |||
10275 | *) |
||
10276 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
||
10277 | $as_echo_n "checking for shl_load... " >&6; } |
||
10278 | if test "${ac_cv_func_shl_load+set}" = set; then |
||
10279 | $as_echo_n "(cached) " >&6 |
||
10280 | else |
||
10281 | cat >conftest.$ac_ext <<_ACEOF |
||
10282 | /* confdefs.h. */ |
||
10283 | _ACEOF |
||
10284 | cat confdefs.h >>conftest.$ac_ext |
||
10285 | cat >>conftest.$ac_ext <<_ACEOF |
||
10286 | /* end confdefs.h. */ |
||
10287 | /* Define shl_load to an innocuous variant, in case |
||
10288 | For example, HP-UX 11i |
||
10289 | #define shl_load innocuous_shl_load |
||
10290 | |||
10291 | /* System header to define __stub macros and hopefully few prototypes, |
||
10292 | which can conflict with char shl_load (); below. |
||
10293 | Prefer |
||
10294 |
|
||
10295 | |||
10296 | #ifdef __STDC__ |
||
10297 | # include |
||
10298 | #else |
||
10299 | # include |
||
10300 | #endif |
||
10301 | |||
10302 | #undef shl_load |
||
10303 | |||
10304 | /* Override any GCC internal prototype to avoid an error. |
||
10305 | Use char because int might match the return type of a GCC |
||
10306 | builtin and then its argument prototype would still apply. */ |
||
10307 | #ifdef __cplusplus |
||
10308 | extern "C" |
||
10309 | #endif |
||
10310 | char shl_load (); |
||
10311 | /* The GNU C library defines this for functions which it implements |
||
10312 | to always fail with ENOSYS. Some functions are actually named |
||
10313 | something starting with __ and the normal name is an alias. */ |
||
10314 | #if defined __stub_shl_load || defined __stub___shl_load |
||
10315 | choke me |
||
10316 | #endif |
||
10317 | |||
10318 | int |
||
10319 | main () |
||
10320 | { |
||
10321 | return shl_load (); |
||
10322 | ; |
||
10323 | return 0; |
||
10324 | } |
||
10325 | _ACEOF |
||
10326 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10327 | if { (ac_try="$ac_link" |
||
10328 | case "(($ac_try" in |
||
10329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10330 | *) ac_try_echo=$ac_try;; |
||
10331 | esac |
||
10332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10333 | $as_echo "$ac_try_echo") >&5 |
||
10334 | (eval "$ac_link") 2>conftest.er1 |
||
10335 | ac_status=$? |
||
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10337 | rm -f conftest.er1 |
||
10338 | cat conftest.err >&5 |
||
10339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10340 | (exit $ac_status); } && { |
||
10341 | test -z "$ac_c_werror_flag" || |
||
10342 | test ! -s conftest.err |
||
10343 | } && test -s conftest$ac_exeext && { |
||
10344 | test "$cross_compiling" = yes || |
||
10345 | $as_test_x conftest$ac_exeext |
||
10346 | }; then |
||
10347 | ac_cv_func_shl_load=yes |
||
10348 | else |
||
10349 | $as_echo "$as_me: failed program was:" >&5 |
||
10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10351 | |||
10352 | ac_cv_func_shl_load=no |
||
10353 | fi |
||
10354 | |||
10355 | rm -rf conftest.dSYM |
||
10356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10357 | conftest$ac_exeext conftest.$ac_ext |
||
10358 | fi |
||
10359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
||
10360 | $as_echo "$ac_cv_func_shl_load" >&6; } |
||
10361 | if test "x$ac_cv_func_shl_load" = x""yes; then |
||
10362 | lt_cv_dlopen="shl_load" |
||
10363 | else |
||
10364 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
||
10365 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
||
10366 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
||
10367 | $as_echo_n "(cached) " >&6 |
||
10368 | else |
||
10369 | ac_check_lib_save_LIBS=$LIBS |
||
10370 | LIBS="-ldld $LIBS" |
||
10371 | cat >conftest.$ac_ext <<_ACEOF |
||
10372 | /* confdefs.h. */ |
||
10373 | _ACEOF |
||
10374 | cat confdefs.h >>conftest.$ac_ext |
||
10375 | cat >>conftest.$ac_ext <<_ACEOF |
||
10376 | /* end confdefs.h. */ |
||
10377 | |||
10378 | /* Override any GCC internal prototype to avoid an error. |
||
10379 | Use char because int might match the return type of a GCC |
||
10380 | builtin and then its argument prototype would still apply. */ |
||
10381 | #ifdef __cplusplus |
||
10382 | extern "C" |
||
10383 | #endif |
||
10384 | char shl_load (); |
||
10385 | int |
||
10386 | main () |
||
10387 | { |
||
10388 | return shl_load (); |
||
10389 | ; |
||
10390 | return 0; |
||
10391 | } |
||
10392 | _ACEOF |
||
10393 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10394 | if { (ac_try="$ac_link" |
||
10395 | case "(($ac_try" in |
||
10396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10397 | *) ac_try_echo=$ac_try;; |
||
10398 | esac |
||
10399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10400 | $as_echo "$ac_try_echo") >&5 |
||
10401 | (eval "$ac_link") 2>conftest.er1 |
||
10402 | ac_status=$? |
||
10403 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10404 | rm -f conftest.er1 |
||
10405 | cat conftest.err >&5 |
||
10406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10407 | (exit $ac_status); } && { |
||
10408 | test -z "$ac_c_werror_flag" || |
||
10409 | test ! -s conftest.err |
||
10410 | } && test -s conftest$ac_exeext && { |
||
10411 | test "$cross_compiling" = yes || |
||
10412 | $as_test_x conftest$ac_exeext |
||
10413 | }; then |
||
10414 | ac_cv_lib_dld_shl_load=yes |
||
10415 | else |
||
10416 | $as_echo "$as_me: failed program was:" >&5 |
||
10417 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10418 | |||
10419 | ac_cv_lib_dld_shl_load=no |
||
10420 | fi |
||
10421 | |||
10422 | rm -rf conftest.dSYM |
||
10423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10424 | conftest$ac_exeext conftest.$ac_ext |
||
10425 | LIBS=$ac_check_lib_save_LIBS |
||
10426 | fi |
||
10427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
||
10428 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
||
10429 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
||
10430 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
||
10431 | else |
||
10432 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
||
10433 | $as_echo_n "checking for dlopen... " >&6; } |
||
10434 | if test "${ac_cv_func_dlopen+set}" = set; then |
||
10435 | $as_echo_n "(cached) " >&6 |
||
10436 | else |
||
10437 | cat >conftest.$ac_ext <<_ACEOF |
||
10438 | /* confdefs.h. */ |
||
10439 | _ACEOF |
||
10440 | cat confdefs.h >>conftest.$ac_ext |
||
10441 | cat >>conftest.$ac_ext <<_ACEOF |
||
10442 | /* end confdefs.h. */ |
||
10443 | /* Define dlopen to an innocuous variant, in case |
||
10444 | For example, HP-UX 11i |
||
10445 | #define dlopen innocuous_dlopen |
||
10446 | |||
10447 | /* System header to define __stub macros and hopefully few prototypes, |
||
10448 | which can conflict with char dlopen (); below. |
||
10449 | Prefer |
||
10450 |
|
||
10451 | |||
10452 | #ifdef __STDC__ |
||
10453 | # include |
||
10454 | #else |
||
10455 | # include |
||
10456 | #endif |
||
10457 | |||
10458 | #undef dlopen |
||
10459 | |||
10460 | /* Override any GCC internal prototype to avoid an error. |
||
10461 | Use char because int might match the return type of a GCC |
||
10462 | builtin and then its argument prototype would still apply. */ |
||
10463 | #ifdef __cplusplus |
||
10464 | extern "C" |
||
10465 | #endif |
||
10466 | char dlopen (); |
||
10467 | /* The GNU C library defines this for functions which it implements |
||
10468 | to always fail with ENOSYS. Some functions are actually named |
||
10469 | something starting with __ and the normal name is an alias. */ |
||
10470 | #if defined __stub_dlopen || defined __stub___dlopen |
||
10471 | choke me |
||
10472 | #endif |
||
10473 | |||
10474 | int |
||
10475 | main () |
||
10476 | { |
||
10477 | return dlopen (); |
||
10478 | ; |
||
10479 | return 0; |
||
10480 | } |
||
10481 | _ACEOF |
||
10482 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10483 | if { (ac_try="$ac_link" |
||
10484 | case "(($ac_try" in |
||
10485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10486 | *) ac_try_echo=$ac_try;; |
||
10487 | esac |
||
10488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10489 | $as_echo "$ac_try_echo") >&5 |
||
10490 | (eval "$ac_link") 2>conftest.er1 |
||
10491 | ac_status=$? |
||
10492 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10493 | rm -f conftest.er1 |
||
10494 | cat conftest.err >&5 |
||
10495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10496 | (exit $ac_status); } && { |
||
10497 | test -z "$ac_c_werror_flag" || |
||
10498 | test ! -s conftest.err |
||
10499 | } && test -s conftest$ac_exeext && { |
||
10500 | test "$cross_compiling" = yes || |
||
10501 | $as_test_x conftest$ac_exeext |
||
10502 | }; then |
||
10503 | ac_cv_func_dlopen=yes |
||
10504 | else |
||
10505 | $as_echo "$as_me: failed program was:" >&5 |
||
10506 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10507 | |||
10508 | ac_cv_func_dlopen=no |
||
10509 | fi |
||
10510 | |||
10511 | rm -rf conftest.dSYM |
||
10512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10513 | conftest$ac_exeext conftest.$ac_ext |
||
10514 | fi |
||
10515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
||
10516 | $as_echo "$ac_cv_func_dlopen" >&6; } |
||
10517 | if test "x$ac_cv_func_dlopen" = x""yes; then |
||
10518 | lt_cv_dlopen="dlopen" |
||
10519 | else |
||
10520 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
||
10521 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
10522 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
||
10523 | $as_echo_n "(cached) " >&6 |
||
10524 | else |
||
10525 | ac_check_lib_save_LIBS=$LIBS |
||
10526 | LIBS="-ldl $LIBS" |
||
10527 | cat >conftest.$ac_ext <<_ACEOF |
||
10528 | /* confdefs.h. */ |
||
10529 | _ACEOF |
||
10530 | cat confdefs.h >>conftest.$ac_ext |
||
10531 | cat >>conftest.$ac_ext <<_ACEOF |
||
10532 | /* end confdefs.h. */ |
||
10533 | |||
10534 | /* Override any GCC internal prototype to avoid an error. |
||
10535 | Use char because int might match the return type of a GCC |
||
10536 | builtin and then its argument prototype would still apply. */ |
||
10537 | #ifdef __cplusplus |
||
10538 | extern "C" |
||
10539 | #endif |
||
10540 | char dlopen (); |
||
10541 | int |
||
10542 | main () |
||
10543 | { |
||
10544 | return dlopen (); |
||
10545 | ; |
||
10546 | return 0; |
||
10547 | } |
||
10548 | _ACEOF |
||
10549 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10550 | if { (ac_try="$ac_link" |
||
10551 | case "(($ac_try" in |
||
10552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10553 | *) ac_try_echo=$ac_try;; |
||
10554 | esac |
||
10555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10556 | $as_echo "$ac_try_echo") >&5 |
||
10557 | (eval "$ac_link") 2>conftest.er1 |
||
10558 | ac_status=$? |
||
10559 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10560 | rm -f conftest.er1 |
||
10561 | cat conftest.err >&5 |
||
10562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10563 | (exit $ac_status); } && { |
||
10564 | test -z "$ac_c_werror_flag" || |
||
10565 | test ! -s conftest.err |
||
10566 | } && test -s conftest$ac_exeext && { |
||
10567 | test "$cross_compiling" = yes || |
||
10568 | $as_test_x conftest$ac_exeext |
||
10569 | }; then |
||
10570 | ac_cv_lib_dl_dlopen=yes |
||
10571 | else |
||
10572 | $as_echo "$as_me: failed program was:" >&5 |
||
10573 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10574 | |||
10575 | ac_cv_lib_dl_dlopen=no |
||
10576 | fi |
||
10577 | |||
10578 | rm -rf conftest.dSYM |
||
10579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10580 | conftest$ac_exeext conftest.$ac_ext |
||
10581 | LIBS=$ac_check_lib_save_LIBS |
||
10582 | fi |
||
10583 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
||
10584 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
10585 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
||
10586 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
||
10587 | else |
||
10588 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
||
10589 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
||
10590 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
||
10591 | $as_echo_n "(cached) " >&6 |
||
10592 | else |
||
10593 | ac_check_lib_save_LIBS=$LIBS |
||
10594 | LIBS="-lsvld $LIBS" |
||
10595 | cat >conftest.$ac_ext <<_ACEOF |
||
10596 | /* confdefs.h. */ |
||
10597 | _ACEOF |
||
10598 | cat confdefs.h >>conftest.$ac_ext |
||
10599 | cat >>conftest.$ac_ext <<_ACEOF |
||
10600 | /* end confdefs.h. */ |
||
10601 | |||
10602 | /* Override any GCC internal prototype to avoid an error. |
||
10603 | Use char because int might match the return type of a GCC |
||
10604 | builtin and then its argument prototype would still apply. */ |
||
10605 | #ifdef __cplusplus |
||
10606 | extern "C" |
||
10607 | #endif |
||
10608 | char dlopen (); |
||
10609 | int |
||
10610 | main () |
||
10611 | { |
||
10612 | return dlopen (); |
||
10613 | ; |
||
10614 | return 0; |
||
10615 | } |
||
10616 | _ACEOF |
||
10617 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10618 | if { (ac_try="$ac_link" |
||
10619 | case "(($ac_try" in |
||
10620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10621 | *) ac_try_echo=$ac_try;; |
||
10622 | esac |
||
10623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10624 | $as_echo "$ac_try_echo") >&5 |
||
10625 | (eval "$ac_link") 2>conftest.er1 |
||
10626 | ac_status=$? |
||
10627 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10628 | rm -f conftest.er1 |
||
10629 | cat conftest.err >&5 |
||
10630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10631 | (exit $ac_status); } && { |
||
10632 | test -z "$ac_c_werror_flag" || |
||
10633 | test ! -s conftest.err |
||
10634 | } && test -s conftest$ac_exeext && { |
||
10635 | test "$cross_compiling" = yes || |
||
10636 | $as_test_x conftest$ac_exeext |
||
10637 | }; then |
||
10638 | ac_cv_lib_svld_dlopen=yes |
||
10639 | else |
||
10640 | $as_echo "$as_me: failed program was:" >&5 |
||
10641 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10642 | |||
10643 | ac_cv_lib_svld_dlopen=no |
||
10644 | fi |
||
10645 | |||
10646 | rm -rf conftest.dSYM |
||
10647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10648 | conftest$ac_exeext conftest.$ac_ext |
||
10649 | LIBS=$ac_check_lib_save_LIBS |
||
10650 | fi |
||
10651 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
||
10652 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
||
10653 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then |
||
10654 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
||
10655 | else |
||
10656 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
||
10657 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
||
10658 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
||
10659 | $as_echo_n "(cached) " >&6 |
||
10660 | else |
||
10661 | ac_check_lib_save_LIBS=$LIBS |
||
10662 | LIBS="-ldld $LIBS" |
||
10663 | cat >conftest.$ac_ext <<_ACEOF |
||
10664 | /* confdefs.h. */ |
||
10665 | _ACEOF |
||
10666 | cat confdefs.h >>conftest.$ac_ext |
||
10667 | cat >>conftest.$ac_ext <<_ACEOF |
||
10668 | /* end confdefs.h. */ |
||
10669 | |||
10670 | /* Override any GCC internal prototype to avoid an error. |
||
10671 | Use char because int might match the return type of a GCC |
||
10672 | builtin and then its argument prototype would still apply. */ |
||
10673 | #ifdef __cplusplus |
||
10674 | extern "C" |
||
10675 | #endif |
||
10676 | char dld_link (); |
||
10677 | int |
||
10678 | main () |
||
10679 | { |
||
10680 | return dld_link (); |
||
10681 | ; |
||
10682 | return 0; |
||
10683 | } |
||
10684 | _ACEOF |
||
10685 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
10686 | if { (ac_try="$ac_link" |
||
10687 | case "(($ac_try" in |
||
10688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
10689 | *) ac_try_echo=$ac_try;; |
||
10690 | esac |
||
10691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
10692 | $as_echo "$ac_try_echo") >&5 |
||
10693 | (eval "$ac_link") 2>conftest.er1 |
||
10694 | ac_status=$? |
||
10695 | grep -v '^ *+' conftest.er1 >conftest.err |
||
10696 | rm -f conftest.er1 |
||
10697 | cat conftest.err >&5 |
||
10698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10699 | (exit $ac_status); } && { |
||
10700 | test -z "$ac_c_werror_flag" || |
||
10701 | test ! -s conftest.err |
||
10702 | } && test -s conftest$ac_exeext && { |
||
10703 | test "$cross_compiling" = yes || |
||
10704 | $as_test_x conftest$ac_exeext |
||
10705 | }; then |
||
10706 | ac_cv_lib_dld_dld_link=yes |
||
10707 | else |
||
10708 | $as_echo "$as_me: failed program was:" >&5 |
||
10709 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
10710 | |||
10711 | ac_cv_lib_dld_dld_link=no |
||
10712 | fi |
||
10713 | |||
10714 | rm -rf conftest.dSYM |
||
10715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
10716 | conftest$ac_exeext conftest.$ac_ext |
||
10717 | LIBS=$ac_check_lib_save_LIBS |
||
10718 | fi |
||
10719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
||
10720 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
||
10721 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then |
||
10722 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
||
10723 | fi |
||
10724 | |||
10725 | |||
10726 | fi |
||
10727 | |||
10728 | |||
10729 | fi |
||
10730 | |||
10731 | |||
10732 | fi |
||
10733 | |||
10734 | |||
10735 | fi |
||
10736 | |||
10737 | |||
10738 | fi |
||
10739 | |||
10740 | ;; |
||
10741 | esac |
||
10742 | |||
10743 | if test "x$lt_cv_dlopen" != xno; then |
||
10744 | enable_dlopen=yes |
||
10745 | else |
||
10746 | enable_dlopen=no |
||
10747 | fi |
||
10748 | |||
10749 | case $lt_cv_dlopen in |
||
10750 | dlopen) |
||
10751 | save_CPPFLAGS="$CPPFLAGS" |
||
10752 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
||
10753 | |||
10754 | save_LDFLAGS="$LDFLAGS" |
||
10755 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
||
10756 | |||
10757 | save_LIBS="$LIBS" |
||
10758 | LIBS="$lt_cv_dlopen_libs $LIBS" |
||
10759 | |||
10760 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
||
10761 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
||
10762 | if test "${lt_cv_dlopen_self+set}" = set; then |
||
10763 | $as_echo_n "(cached) " >&6 |
||
10764 | else |
||
10765 | if test "$cross_compiling" = yes; then : |
||
10766 | lt_cv_dlopen_self=cross |
||
10767 | else |
||
10768 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
10769 | lt_status=$lt_dlunknown |
||
10770 | cat > conftest.$ac_ext <<_LT_EOF |
||
10771 | #line 10771 "configure" |
||
10772 | #include "confdefs.h" |
||
10773 | |||
10774 | #if HAVE_DLFCN_H |
||
10775 | #include |
||
10776 | #endif |
||
10777 | |||
10778 | #include |
||
10779 | |||
10780 | #ifdef RTLD_GLOBAL |
||
10781 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
10782 | #else |
||
10783 | # ifdef DL_GLOBAL |
||
10784 | # define LT_DLGLOBAL DL_GLOBAL |
||
10785 | # else |
||
10786 | # define LT_DLGLOBAL 0 |
||
10787 | # endif |
||
10788 | #endif |
||
10789 | |||
10790 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
10791 | find out it does not work in some platform. */ |
||
10792 | #ifndef LT_DLLAZY_OR_NOW |
||
10793 | # ifdef RTLD_LAZY |
||
10794 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
10795 | # else |
||
10796 | # ifdef DL_LAZY |
||
10797 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
10798 | # else |
||
10799 | # ifdef RTLD_NOW |
||
10800 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
10801 | # else |
||
10802 | # ifdef DL_NOW |
||
10803 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
10804 | # else |
||
10805 | # define LT_DLLAZY_OR_NOW 0 |
||
10806 | # endif |
||
10807 | # endif |
||
10808 | # endif |
||
10809 | # endif |
||
10810 | #endif |
||
10811 | |||
10812 | void fnord() { int i=42;} |
||
10813 | int main () |
||
10814 | { |
||
10815 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
10816 | int status = $lt_dlunknown; |
||
10817 | |||
10818 | if (self) |
||
10819 | { |
||
10820 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
10821 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
10822 | /* dlclose (self); */ |
||
10823 | } |
||
10824 | else |
||
10825 | puts (dlerror ()); |
||
10826 | |||
10827 | return status; |
||
10828 | } |
||
10829 | _LT_EOF |
||
10830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
10831 | (eval $ac_link) 2>&5 |
||
10832 | ac_status=$? |
||
10833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10834 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
||
10835 | (./conftest; exit; ) >&5 2>/dev/null |
||
10836 | lt_status=$? |
||
10837 | case x$lt_status in |
||
10838 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
||
10839 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
||
10840 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
||
10841 | esac |
||
10842 | else : |
||
10843 | # compilation failed |
||
10844 | lt_cv_dlopen_self=no |
||
10845 | fi |
||
10846 | fi |
||
10847 | rm -fr conftest* |
||
10848 | |||
10849 | |||
10850 | fi |
||
10851 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
||
10852 | $as_echo "$lt_cv_dlopen_self" >&6; } |
||
10853 | |||
10854 | if test "x$lt_cv_dlopen_self" = xyes; then |
||
10855 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
||
10856 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
||
10857 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
||
10858 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
||
10859 | $as_echo_n "(cached) " >&6 |
||
10860 | else |
||
10861 | if test "$cross_compiling" = yes; then : |
||
10862 | lt_cv_dlopen_self_static=cross |
||
10863 | else |
||
10864 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
10865 | lt_status=$lt_dlunknown |
||
10866 | cat > conftest.$ac_ext <<_LT_EOF |
||
10867 | #line 10867 "configure" |
||
10868 | #include "confdefs.h" |
||
10869 | |||
10870 | #if HAVE_DLFCN_H |
||
10871 | #include |
||
10872 | #endif |
||
10873 | |||
10874 | #include |
||
10875 | |||
10876 | #ifdef RTLD_GLOBAL |
||
10877 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
10878 | #else |
||
10879 | # ifdef DL_GLOBAL |
||
10880 | # define LT_DLGLOBAL DL_GLOBAL |
||
10881 | # else |
||
10882 | # define LT_DLGLOBAL 0 |
||
10883 | # endif |
||
10884 | #endif |
||
10885 | |||
10886 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
10887 | find out it does not work in some platform. */ |
||
10888 | #ifndef LT_DLLAZY_OR_NOW |
||
10889 | # ifdef RTLD_LAZY |
||
10890 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
10891 | # else |
||
10892 | # ifdef DL_LAZY |
||
10893 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
10894 | # else |
||
10895 | # ifdef RTLD_NOW |
||
10896 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
10897 | # else |
||
10898 | # ifdef DL_NOW |
||
10899 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
10900 | # else |
||
10901 | # define LT_DLLAZY_OR_NOW 0 |
||
10902 | # endif |
||
10903 | # endif |
||
10904 | # endif |
||
10905 | # endif |
||
10906 | #endif |
||
10907 | |||
10908 | void fnord() { int i=42;} |
||
10909 | int main () |
||
10910 | { |
||
10911 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
10912 | int status = $lt_dlunknown; |
||
10913 | |||
10914 | if (self) |
||
10915 | { |
||
10916 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
10917 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
10918 | /* dlclose (self); */ |
||
10919 | } |
||
10920 | else |
||
10921 | puts (dlerror ()); |
||
10922 | |||
10923 | return status; |
||
10924 | } |
||
10925 | _LT_EOF |
||
10926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
10927 | (eval $ac_link) 2>&5 |
||
10928 | ac_status=$? |
||
10929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
10930 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
||
10931 | (./conftest; exit; ) >&5 2>/dev/null |
||
10932 | lt_status=$? |
||
10933 | case x$lt_status in |
||
10934 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
||
10935 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
||
10936 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
||
10937 | esac |
||
10938 | else : |
||
10939 | # compilation failed |
||
10940 | lt_cv_dlopen_self_static=no |
||
10941 | fi |
||
10942 | fi |
||
10943 | rm -fr conftest* |
||
10944 | |||
10945 | |||
10946 | fi |
||
10947 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
||
10948 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
||
10949 | fi |
||
10950 | |||
10951 | CPPFLAGS="$save_CPPFLAGS" |
||
10952 | LDFLAGS="$save_LDFLAGS" |
||
10953 | LIBS="$save_LIBS" |
||
10954 | ;; |
||
10955 | esac |
||
10956 | |||
10957 | case $lt_cv_dlopen_self in |
||
10958 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
||
10959 | *) enable_dlopen_self=unknown ;; |
||
10960 | esac |
||
10961 | |||
10962 | case $lt_cv_dlopen_self_static in |
||
10963 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
||
10964 | *) enable_dlopen_self_static=unknown ;; |
||
10965 | esac |
||
10966 | fi |
||
10967 | |||
10968 | |||
10969 | |||
10970 | |||
10971 | |||
10972 | |||
10973 | |||
10974 | |||
10975 | |||
10976 | |||
10977 | |||
10978 | |||
10979 | |||
10980 | |||
10981 | |||
10982 | |||
10983 | |||
10984 | striplib= |
||
10985 | old_striplib= |
||
10986 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
||
10987 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
||
10988 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
||
10989 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
||
10990 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
||
10991 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
10992 | $as_echo "yes" >&6; } |
||
10993 | else |
||
10994 | # FIXME - insert some real tests, host_os isn't really good enough |
||
10995 | case $host_os in |
||
10996 | darwin*) |
||
10997 | if test -n "$STRIP" ; then |
||
10998 | striplib="$STRIP -x" |
||
10999 | old_striplib="$STRIP -S" |
||
11000 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
11001 | $as_echo "yes" >&6; } |
||
11002 | else |
||
11003 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
11004 | $as_echo "no" >&6; } |
||
11005 | fi |
||
11006 | ;; |
||
11007 | *) |
||
11008 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
11009 | $as_echo "no" >&6; } |
||
11010 | ;; |
||
11011 | esac |
||
11012 | fi |
||
11013 | |||
11014 | |||
11015 | |||
11016 | |||
11017 | |||
11018 | |||
11019 | |||
11020 | |||
11021 | |||
11022 | |||
11023 | |||
11024 | |||
11025 | # Report which library types will actually be built |
||
11026 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
||
11027 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
||
11028 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
||
11029 | $as_echo "$can_build_shared" >&6; } |
||
11030 | |||
11031 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
||
11032 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
||
11033 | test "$can_build_shared" = "no" && enable_shared=no |
||
11034 | |||
11035 | # On AIX, shared libraries and static libraries use the same namespace, and |
||
11036 | # are all built from PIC. |
||
11037 | case $host_os in |
||
11038 | aix3*) |
||
11039 | test "$enable_shared" = yes && enable_static=no |
||
11040 | if test -n "$RANLIB"; then |
||
11041 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
||
11042 | postinstall_cmds='$RANLIB $lib' |
||
11043 | fi |
||
11044 | ;; |
||
11045 | |||
11046 | aix[4-9]*) |
||
11047 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
||
11048 | test "$enable_shared" = yes && enable_static=no |
||
11049 | fi |
||
11050 | ;; |
||
11051 | esac |
||
11052 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
||
11053 | $as_echo "$enable_shared" >&6; } |
||
11054 | |||
11055 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
||
11056 | $as_echo_n "checking whether to build static libraries... " >&6; } |
||
11057 | # Make sure either enable_shared or enable_static is yes. |
||
11058 | test "$enable_shared" = yes || enable_static=yes |
||
11059 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
||
11060 | $as_echo "$enable_static" >&6; } |
||
11061 | |||
11062 | |||
11063 | |||
11064 | |||
11065 | fi |
||
11066 | ac_ext=c |
||
11067 | ac_cpp='$CPP $CPPFLAGS' |
||
11068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
11069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
11070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
11071 | |||
11072 | CC="$lt_save_CC" |
||
11073 | |||
11074 | |||
11075 | |||
11076 | |||
11077 | |||
11078 | |||
11079 | |||
11080 | |||
11081 | |||
11082 | |||
11083 | |||
11084 | |||
11085 | |||
11086 | ac_config_commands="$ac_config_commands libtool" |
||
11087 | |||
11088 | |||
11089 | |||
11090 | |||
11091 | # Only expand once: |
||
11092 | |||
11093 | |||
11094 | |||
11095 | # platform specific compiler flags |
||
11096 | if test "x$GCC" = xyes; then |
||
11097 | CFLAGS="$CFLAGS -Wall" |
||
11098 | fi |
||
11099 | |||
11100 | # Checks for libraries. |
||
11101 | |||
11102 | # Check whether --with-libpng was given. |
||
11103 | if test "${with_libpng+set}" = set; then |
||
11104 | withval=$with_libpng; ac_cv_want_libpng="$withval" |
||
11105 | else |
||
11106 | ac_cv_want_libpng="yes" |
||
11107 | fi |
||
11108 | |||
11109 | save_cflags="$CFLAGS" |
||
11110 | save_ldflags="$LDFLAGS" |
||
11111 | have_libpng="no" |
||
11112 | if test "x$ac_cv_want_libpng" != "xno"; then |
||
11113 | if test "x$ac_cv_want_libpng" != "xyes"; then |
||
11114 | CFLAGS="$CFLAGS -I$ac_cv_want_libpng/include" |
||
11115 | LDFLAGS="$LDFLAGS -L$ac_cv_want_libpng/lib" |
||
11116 | fi |
||
11117 | { $as_echo "$as_me:$LINENO: checking for library containing pow" >&5 |
||
11118 | $as_echo_n "checking for library containing pow... " >&6; } |
||
11119 | if test "${ac_cv_search_pow+set}" = set; then |
||
11120 | $as_echo_n "(cached) " >&6 |
||
11121 | else |
||
11122 | ac_func_search_save_LIBS=$LIBS |
||
11123 | cat >conftest.$ac_ext <<_ACEOF |
||
11124 | /* confdefs.h. */ |
||
11125 | _ACEOF |
||
11126 | cat confdefs.h >>conftest.$ac_ext |
||
11127 | cat >>conftest.$ac_ext <<_ACEOF |
||
11128 | /* end confdefs.h. */ |
||
11129 | |||
11130 | /* Override any GCC internal prototype to avoid an error. |
||
11131 | Use char because int might match the return type of a GCC |
||
11132 | builtin and then its argument prototype would still apply. */ |
||
11133 | #ifdef __cplusplus |
||
11134 | extern "C" |
||
11135 | #endif |
||
11136 | char pow (); |
||
11137 | int |
||
11138 | main () |
||
11139 | { |
||
11140 | return pow (); |
||
11141 | ; |
||
11142 | return 0; |
||
11143 | } |
||
11144 | _ACEOF |
||
11145 | for ac_lib in '' m; do |
||
11146 | if test -z "$ac_lib"; then |
||
11147 | ac_res="none required" |
||
11148 | else |
||
11149 | ac_res=-l$ac_lib |
||
11150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
11151 | fi |
||
11152 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
11153 | if { (ac_try="$ac_link" |
||
11154 | case "(($ac_try" in |
||
11155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11156 | *) ac_try_echo=$ac_try;; |
||
11157 | esac |
||
11158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11159 | $as_echo "$ac_try_echo") >&5 |
||
11160 | (eval "$ac_link") 2>conftest.er1 |
||
11161 | ac_status=$? |
||
11162 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11163 | rm -f conftest.er1 |
||
11164 | cat conftest.err >&5 |
||
11165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11166 | (exit $ac_status); } && { |
||
11167 | test -z "$ac_c_werror_flag" || |
||
11168 | test ! -s conftest.err |
||
11169 | } && test -s conftest$ac_exeext && { |
||
11170 | test "$cross_compiling" = yes || |
||
11171 | $as_test_x conftest$ac_exeext |
||
11172 | }; then |
||
11173 | ac_cv_search_pow=$ac_res |
||
11174 | else |
||
11175 | $as_echo "$as_me: failed program was:" >&5 |
||
11176 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11177 | |||
11178 | |||
11179 | fi |
||
11180 | |||
11181 | rm -rf conftest.dSYM |
||
11182 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
11183 | conftest$ac_exeext |
||
11184 | if test "${ac_cv_search_pow+set}" = set; then |
||
11185 | break |
||
11186 | fi |
||
11187 | done |
||
11188 | if test "${ac_cv_search_pow+set}" = set; then |
||
11189 | : |
||
11190 | else |
||
11191 | ac_cv_search_pow=no |
||
11192 | fi |
||
11193 | rm conftest.$ac_ext |
||
11194 | LIBS=$ac_func_search_save_LIBS |
||
11195 | fi |
||
11196 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5 |
||
11197 | $as_echo "$ac_cv_search_pow" >&6; } |
||
11198 | ac_res=$ac_cv_search_pow |
||
11199 | if test "$ac_res" != no; then |
||
11200 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
11201 | |||
11202 | fi |
||
11203 | |||
11204 | { $as_echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
||
11205 | $as_echo_n "checking for png_check_sig in -lpng... " >&6; } |
||
11206 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then |
||
11207 | $as_echo_n "(cached) " >&6 |
||
11208 | else |
||
11209 | ac_check_lib_save_LIBS=$LIBS |
||
11210 | LIBS="-lpng $LIBS" |
||
11211 | cat >conftest.$ac_ext <<_ACEOF |
||
11212 | /* confdefs.h. */ |
||
11213 | _ACEOF |
||
11214 | cat confdefs.h >>conftest.$ac_ext |
||
11215 | cat >>conftest.$ac_ext <<_ACEOF |
||
11216 | /* end confdefs.h. */ |
||
11217 | |||
11218 | /* Override any GCC internal prototype to avoid an error. |
||
11219 | Use char because int might match the return type of a GCC |
||
11220 | builtin and then its argument prototype would still apply. */ |
||
11221 | #ifdef __cplusplus |
||
11222 | extern "C" |
||
11223 | #endif |
||
11224 | char png_check_sig (); |
||
11225 | int |
||
11226 | main () |
||
11227 | { |
||
11228 | return png_check_sig (); |
||
11229 | ; |
||
11230 | return 0; |
||
11231 | } |
||
11232 | _ACEOF |
||
11233 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
11234 | if { (ac_try="$ac_link" |
||
11235 | case "(($ac_try" in |
||
11236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11237 | *) ac_try_echo=$ac_try;; |
||
11238 | esac |
||
11239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11240 | $as_echo "$ac_try_echo") >&5 |
||
11241 | (eval "$ac_link") 2>conftest.er1 |
||
11242 | ac_status=$? |
||
11243 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11244 | rm -f conftest.er1 |
||
11245 | cat conftest.err >&5 |
||
11246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11247 | (exit $ac_status); } && { |
||
11248 | test -z "$ac_c_werror_flag" || |
||
11249 | test ! -s conftest.err |
||
11250 | } && test -s conftest$ac_exeext && { |
||
11251 | test "$cross_compiling" = yes || |
||
11252 | $as_test_x conftest$ac_exeext |
||
11253 | }; then |
||
11254 | ac_cv_lib_png_png_check_sig=yes |
||
11255 | else |
||
11256 | $as_echo "$as_me: failed program was:" >&5 |
||
11257 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11258 | |||
11259 | ac_cv_lib_png_png_check_sig=no |
||
11260 | fi |
||
11261 | |||
11262 | rm -rf conftest.dSYM |
||
11263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
11264 | conftest$ac_exeext conftest.$ac_ext |
||
11265 | LIBS=$ac_check_lib_save_LIBS |
||
11266 | fi |
||
11267 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 |
||
11268 | $as_echo "$ac_cv_lib_png_png_check_sig" >&6; } |
||
11269 | if test "x$ac_cv_lib_png_png_check_sig" = x""yes; then |
||
11270 | |||
11271 | { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
||
11272 | $as_echo_n "checking for deflate in -lz... " >&6; } |
||
11273 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
||
11274 | $as_echo_n "(cached) " >&6 |
||
11275 | else |
||
11276 | ac_check_lib_save_LIBS=$LIBS |
||
11277 | LIBS="-lz $LIBS" |
||
11278 | cat >conftest.$ac_ext <<_ACEOF |
||
11279 | /* confdefs.h. */ |
||
11280 | _ACEOF |
||
11281 | cat confdefs.h >>conftest.$ac_ext |
||
11282 | cat >>conftest.$ac_ext <<_ACEOF |
||
11283 | /* end confdefs.h. */ |
||
11284 | |||
11285 | /* Override any GCC internal prototype to avoid an error. |
||
11286 | Use char because int might match the return type of a GCC |
||
11287 | builtin and then its argument prototype would still apply. */ |
||
11288 | #ifdef __cplusplus |
||
11289 | extern "C" |
||
11290 | #endif |
||
11291 | char deflate (); |
||
11292 | int |
||
11293 | main () |
||
11294 | { |
||
11295 | return deflate (); |
||
11296 | ; |
||
11297 | return 0; |
||
11298 | } |
||
11299 | _ACEOF |
||
11300 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
11301 | if { (ac_try="$ac_link" |
||
11302 | case "(($ac_try" in |
||
11303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11304 | *) ac_try_echo=$ac_try;; |
||
11305 | esac |
||
11306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11307 | $as_echo "$ac_try_echo") >&5 |
||
11308 | (eval "$ac_link") 2>conftest.er1 |
||
11309 | ac_status=$? |
||
11310 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11311 | rm -f conftest.er1 |
||
11312 | cat conftest.err >&5 |
||
11313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11314 | (exit $ac_status); } && { |
||
11315 | test -z "$ac_c_werror_flag" || |
||
11316 | test ! -s conftest.err |
||
11317 | } && test -s conftest$ac_exeext && { |
||
11318 | test "$cross_compiling" = yes || |
||
11319 | $as_test_x conftest$ac_exeext |
||
11320 | }; then |
||
11321 | ac_cv_lib_z_deflate=yes |
||
11322 | else |
||
11323 | $as_echo "$as_me: failed program was:" >&5 |
||
11324 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11325 | |||
11326 | ac_cv_lib_z_deflate=no |
||
11327 | fi |
||
11328 | |||
11329 | rm -rf conftest.dSYM |
||
11330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
11331 | conftest$ac_exeext conftest.$ac_ext |
||
11332 | LIBS=$ac_check_lib_save_LIBS |
||
11333 | fi |
||
11334 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
||
11335 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
||
11336 | if test "x$ac_cv_lib_z_deflate" = x""yes; then |
||
11337 | |||
11338 | |||
11339 | cat >>confdefs.h <<\_ACEOF |
||
11340 | #define HAVE_LIBPNG 1 |
||
11341 | _ACEOF |
||
11342 | |||
11343 | LIBS="-lpng -lz $LIBS" |
||
11344 | case " $LIBOBJS " in |
||
11345 | *" jbig2_image_png.$ac_objext "* ) ;; |
||
11346 | *) LIBOBJS="$LIBOBJS jbig2_image_png.$ac_objext" |
||
11347 | ;; |
||
11348 | esac |
||
11349 | |||
11350 | have_libpng="yes" |
||
11351 | |||
11352 | fi |
||
11353 | |||
11354 | |||
11355 | fi |
||
11356 | |||
11357 | fi |
||
11358 | if test "x$have_libpng" != "xyes"; then |
||
11359 | CFLAGS="$save_cflags" |
||
11360 | LDFLAGS="$save_ldflags" |
||
11361 | fi |
||
11362 | |||
11363 | # Checks for header files. |
||
11364 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
||
11365 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
11366 | if test "${ac_cv_header_stdc+set}" = set; then |
||
11367 | $as_echo_n "(cached) " >&6 |
||
11368 | else |
||
11369 | cat >conftest.$ac_ext <<_ACEOF |
||
11370 | /* confdefs.h. */ |
||
11371 | _ACEOF |
||
11372 | cat confdefs.h >>conftest.$ac_ext |
||
11373 | cat >>conftest.$ac_ext <<_ACEOF |
||
11374 | /* end confdefs.h. */ |
||
11375 | #include |
||
11376 | #include |
||
11377 | #include |
||
11378 | #include |
||
11379 | |||
11380 | int |
||
11381 | main () |
||
11382 | { |
||
11383 | |||
11384 | ; |
||
11385 | return 0; |
||
11386 | } |
||
11387 | _ACEOF |
||
11388 | rm -f conftest.$ac_objext |
||
11389 | if { (ac_try="$ac_compile" |
||
11390 | case "(($ac_try" in |
||
11391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11392 | *) ac_try_echo=$ac_try;; |
||
11393 | esac |
||
11394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11395 | $as_echo "$ac_try_echo") >&5 |
||
11396 | (eval "$ac_compile") 2>conftest.er1 |
||
11397 | ac_status=$? |
||
11398 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11399 | rm -f conftest.er1 |
||
11400 | cat conftest.err >&5 |
||
11401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11402 | (exit $ac_status); } && { |
||
11403 | test -z "$ac_c_werror_flag" || |
||
11404 | test ! -s conftest.err |
||
11405 | } && test -s conftest.$ac_objext; then |
||
11406 | ac_cv_header_stdc=yes |
||
11407 | else |
||
11408 | $as_echo "$as_me: failed program was:" >&5 |
||
11409 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11410 | |||
11411 | ac_cv_header_stdc=no |
||
11412 | fi |
||
11413 | |||
11414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11415 | |||
11416 | if test $ac_cv_header_stdc = yes; then |
||
11417 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
11418 | cat >conftest.$ac_ext <<_ACEOF |
||
11419 | /* confdefs.h. */ |
||
11420 | _ACEOF |
||
11421 | cat confdefs.h >>conftest.$ac_ext |
||
11422 | cat >>conftest.$ac_ext <<_ACEOF |
||
11423 | /* end confdefs.h. */ |
||
11424 | #include |
||
11425 | |||
11426 | _ACEOF |
||
11427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
11428 | $EGREP "memchr" >/dev/null 2>&1; then |
||
11429 | : |
||
11430 | else |
||
11431 | ac_cv_header_stdc=no |
||
11432 | fi |
||
11433 | rm -f conftest* |
||
11434 | |||
11435 | fi |
||
11436 | |||
11437 | if test $ac_cv_header_stdc = yes; then |
||
11438 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
11439 | cat >conftest.$ac_ext <<_ACEOF |
||
11440 | /* confdefs.h. */ |
||
11441 | _ACEOF |
||
11442 | cat confdefs.h >>conftest.$ac_ext |
||
11443 | cat >>conftest.$ac_ext <<_ACEOF |
||
11444 | /* end confdefs.h. */ |
||
11445 | #include |
||
11446 | |||
11447 | _ACEOF |
||
11448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
11449 | $EGREP "free" >/dev/null 2>&1; then |
||
11450 | : |
||
11451 | else |
||
11452 | ac_cv_header_stdc=no |
||
11453 | fi |
||
11454 | rm -f conftest* |
||
11455 | |||
11456 | fi |
||
11457 | |||
11458 | if test $ac_cv_header_stdc = yes; then |
||
11459 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
11460 | if test "$cross_compiling" = yes; then |
||
11461 | : |
||
11462 | else |
||
11463 | cat >conftest.$ac_ext <<_ACEOF |
||
11464 | /* confdefs.h. */ |
||
11465 | _ACEOF |
||
11466 | cat confdefs.h >>conftest.$ac_ext |
||
11467 | cat >>conftest.$ac_ext <<_ACEOF |
||
11468 | /* end confdefs.h. */ |
||
11469 | #include |
||
11470 | #include |
||
11471 | #if ((' ' & 0x0FF) == 0x020) |
||
11472 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
11473 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
11474 | #else |
||
11475 | # define ISLOWER(c) \ |
||
11476 | (('a' <= (c) && (c) <= 'i') \ |
||
11477 | || ('j' <= (c) && (c) <= 'r') \ |
||
11478 | || ('s' <= (c) && (c) <= 'z')) |
||
11479 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
11480 | #endif |
||
11481 | |||
11482 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
11483 | int |
||
11484 | main () |
||
11485 | { |
||
11486 | int i; |
||
11487 | for (i = 0; i < 256; i++) |
||
11488 | if (XOR (islower (i), ISLOWER (i)) |
||
11489 | || toupper (i) != TOUPPER (i)) |
||
11490 | return 2; |
||
11491 | return 0; |
||
11492 | } |
||
11493 | _ACEOF |
||
11494 | rm -f conftest$ac_exeext |
||
11495 | if { (ac_try="$ac_link" |
||
11496 | case "(($ac_try" in |
||
11497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11498 | *) ac_try_echo=$ac_try;; |
||
11499 | esac |
||
11500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11501 | $as_echo "$ac_try_echo") >&5 |
||
11502 | (eval "$ac_link") 2>&5 |
||
11503 | ac_status=$? |
||
11504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
11506 | { (case "(($ac_try" in |
||
11507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11508 | *) ac_try_echo=$ac_try;; |
||
11509 | esac |
||
11510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11511 | $as_echo "$ac_try_echo") >&5 |
||
11512 | (eval "$ac_try") 2>&5 |
||
11513 | ac_status=$? |
||
11514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11515 | (exit $ac_status); }; }; then |
||
11516 | : |
||
11517 | else |
||
11518 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
11519 | $as_echo "$as_me: failed program was:" >&5 |
||
11520 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11521 | |||
11522 | ( exit $ac_status ) |
||
11523 | ac_cv_header_stdc=no |
||
11524 | fi |
||
11525 | rm -rf conftest.dSYM |
||
11526 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
11527 | fi |
||
11528 | |||
11529 | |||
11530 | fi |
||
11531 | fi |
||
11532 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
||
11533 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
11534 | if test $ac_cv_header_stdc = yes; then |
||
11535 | |||
11536 | cat >>confdefs.h <<\_ACEOF |
||
11537 | #define STDC_HEADERS 1 |
||
11538 | _ACEOF |
||
11539 | |||
11540 | fi |
||
11541 | |||
11542 | |||
11543 | |||
11544 | |||
11545 | |||
11546 | for ac_header in libintl.h stddef.h unistd.h strings.h |
||
11547 | do |
||
11548 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
11549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
11550 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
11551 | $as_echo_n "checking for $ac_header... " >&6; } |
||
11552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
11553 | $as_echo_n "(cached) " >&6 |
||
11554 | fi |
||
11555 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
||
11556 | $as_echo "$as_val"'` |
||
11557 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
11558 | $as_echo "$ac_res" >&6; } |
||
11559 | else |
||
11560 | # Is the header compilable? |
||
11561 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
11562 | $as_echo_n "checking $ac_header usability... " >&6; } |
||
11563 | cat >conftest.$ac_ext <<_ACEOF |
||
11564 | /* confdefs.h. */ |
||
11565 | _ACEOF |
||
11566 | cat confdefs.h >>conftest.$ac_ext |
||
11567 | cat >>conftest.$ac_ext <<_ACEOF |
||
11568 | /* end confdefs.h. */ |
||
11569 | $ac_includes_default |
||
11570 | #include <$ac_header> |
||
11571 | _ACEOF |
||
11572 | rm -f conftest.$ac_objext |
||
11573 | if { (ac_try="$ac_compile" |
||
11574 | case "(($ac_try" in |
||
11575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11576 | *) ac_try_echo=$ac_try;; |
||
11577 | esac |
||
11578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11579 | $as_echo "$ac_try_echo") >&5 |
||
11580 | (eval "$ac_compile") 2>conftest.er1 |
||
11581 | ac_status=$? |
||
11582 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11583 | rm -f conftest.er1 |
||
11584 | cat conftest.err >&5 |
||
11585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11586 | (exit $ac_status); } && { |
||
11587 | test -z "$ac_c_werror_flag" || |
||
11588 | test ! -s conftest.err |
||
11589 | } && test -s conftest.$ac_objext; then |
||
11590 | ac_header_compiler=yes |
||
11591 | else |
||
11592 | $as_echo "$as_me: failed program was:" >&5 |
||
11593 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11594 | |||
11595 | ac_header_compiler=no |
||
11596 | fi |
||
11597 | |||
11598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11599 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
11600 | $as_echo "$ac_header_compiler" >&6; } |
||
11601 | |||
11602 | # Is the header present? |
||
11603 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
11604 | $as_echo_n "checking $ac_header presence... " >&6; } |
||
11605 | cat >conftest.$ac_ext <<_ACEOF |
||
11606 | /* confdefs.h. */ |
||
11607 | _ACEOF |
||
11608 | cat confdefs.h >>conftest.$ac_ext |
||
11609 | cat >>conftest.$ac_ext <<_ACEOF |
||
11610 | /* end confdefs.h. */ |
||
11611 | #include <$ac_header> |
||
11612 | _ACEOF |
||
11613 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
11614 | case "(($ac_try" in |
||
11615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11616 | *) ac_try_echo=$ac_try;; |
||
11617 | esac |
||
11618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11619 | $as_echo "$ac_try_echo") >&5 |
||
11620 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
11621 | ac_status=$? |
||
11622 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11623 | rm -f conftest.er1 |
||
11624 | cat conftest.err >&5 |
||
11625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11626 | (exit $ac_status); } >/dev/null && { |
||
11627 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
11628 | test ! -s conftest.err |
||
11629 | }; then |
||
11630 | ac_header_preproc=yes |
||
11631 | else |
||
11632 | $as_echo "$as_me: failed program was:" >&5 |
||
11633 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11634 | |||
11635 | ac_header_preproc=no |
||
11636 | fi |
||
11637 | |||
11638 | rm -f conftest.err conftest.$ac_ext |
||
11639 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
11640 | $as_echo "$ac_header_preproc" >&6; } |
||
11641 | |||
11642 | # So? What about this header? |
||
11643 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
11644 | yes:no: ) |
||
11645 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
11646 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
11647 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
11648 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
11649 | ac_header_preproc=yes |
||
11650 | ;; |
||
11651 | no:yes:* ) |
||
11652 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
11653 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
11654 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
11655 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
11656 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
11657 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
11658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
11659 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
11660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
11661 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
11662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
11663 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
11664 | ( cat <<\_ASBOX |
||
11665 | ## ---------------------------------------- ## |
||
11666 | ## Report this to jbig2-dev@ghostscript.com ## |
||
11667 | ## ---------------------------------------- ## |
||
11668 | _ASBOX |
||
11669 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
||
11670 | ;; |
||
11671 | esac |
||
11672 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
11673 | $as_echo_n "checking for $ac_header... " >&6; } |
||
11674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
||
11675 | $as_echo_n "(cached) " >&6 |
||
11676 | else |
||
11677 | eval "$as_ac_Header=\$ac_header_preproc" |
||
11678 | fi |
||
11679 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
||
11680 | $as_echo "$as_val"'` |
||
11681 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
11682 | $as_echo "$ac_res" >&6; } |
||
11683 | |||
11684 | fi |
||
11685 | as_val=`eval 'as_val=${'$as_ac_Header'} |
||
11686 | $as_echo "$as_val"'` |
||
11687 | if test "x$as_val" = x""yes; then |
||
11688 | cat >>confdefs.h <<_ACEOF |
||
11689 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
11690 | _ACEOF |
||
11691 | |||
11692 | fi |
||
11693 | |||
11694 | done |
||
11695 | |||
11696 | |||
11697 | |||
11698 | stdint_types_in="no_replacement_found" |
||
11699 | stdint_types_discovered="yes" |
||
11700 | # The cast to long int works around a bug in the HP C Compiler |
||
11701 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
11702 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
11703 | # This bug is HP SR number 8606223364. |
||
11704 | { $as_echo "$as_me:$LINENO: checking size of char" >&5 |
||
11705 | $as_echo_n "checking size of char... " >&6; } |
||
11706 | if test "${ac_cv_sizeof_char+set}" = set; then |
||
11707 | $as_echo_n "(cached) " >&6 |
||
11708 | else |
||
11709 | if test "$cross_compiling" = yes; then |
||
11710 | # Depending upon the size, compute the lo and hi bounds. |
||
11711 | cat >conftest.$ac_ext <<_ACEOF |
||
11712 | /* confdefs.h. */ |
||
11713 | _ACEOF |
||
11714 | cat confdefs.h >>conftest.$ac_ext |
||
11715 | cat >>conftest.$ac_ext <<_ACEOF |
||
11716 | /* end confdefs.h. */ |
||
11717 | $ac_includes_default |
||
11718 | int |
||
11719 | main () |
||
11720 | { |
||
11721 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; |
||
11722 | test_array [0] = 0 |
||
11723 | |||
11724 | ; |
||
11725 | return 0; |
||
11726 | } |
||
11727 | _ACEOF |
||
11728 | rm -f conftest.$ac_objext |
||
11729 | if { (ac_try="$ac_compile" |
||
11730 | case "(($ac_try" in |
||
11731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11732 | *) ac_try_echo=$ac_try;; |
||
11733 | esac |
||
11734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11735 | $as_echo "$ac_try_echo") >&5 |
||
11736 | (eval "$ac_compile") 2>conftest.er1 |
||
11737 | ac_status=$? |
||
11738 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11739 | rm -f conftest.er1 |
||
11740 | cat conftest.err >&5 |
||
11741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11742 | (exit $ac_status); } && { |
||
11743 | test -z "$ac_c_werror_flag" || |
||
11744 | test ! -s conftest.err |
||
11745 | } && test -s conftest.$ac_objext; then |
||
11746 | ac_lo=0 ac_mid=0 |
||
11747 | while :; do |
||
11748 | cat >conftest.$ac_ext <<_ACEOF |
||
11749 | /* confdefs.h. */ |
||
11750 | _ACEOF |
||
11751 | cat confdefs.h >>conftest.$ac_ext |
||
11752 | cat >>conftest.$ac_ext <<_ACEOF |
||
11753 | /* end confdefs.h. */ |
||
11754 | $ac_includes_default |
||
11755 | int |
||
11756 | main () |
||
11757 | { |
||
11758 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
||
11759 | test_array [0] = 0 |
||
11760 | |||
11761 | ; |
||
11762 | return 0; |
||
11763 | } |
||
11764 | _ACEOF |
||
11765 | rm -f conftest.$ac_objext |
||
11766 | if { (ac_try="$ac_compile" |
||
11767 | case "(($ac_try" in |
||
11768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11769 | *) ac_try_echo=$ac_try;; |
||
11770 | esac |
||
11771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11772 | $as_echo "$ac_try_echo") >&5 |
||
11773 | (eval "$ac_compile") 2>conftest.er1 |
||
11774 | ac_status=$? |
||
11775 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11776 | rm -f conftest.er1 |
||
11777 | cat conftest.err >&5 |
||
11778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11779 | (exit $ac_status); } && { |
||
11780 | test -z "$ac_c_werror_flag" || |
||
11781 | test ! -s conftest.err |
||
11782 | } && test -s conftest.$ac_objext; then |
||
11783 | ac_hi=$ac_mid; break |
||
11784 | else |
||
11785 | $as_echo "$as_me: failed program was:" >&5 |
||
11786 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11787 | |||
11788 | ac_lo=`expr $ac_mid + 1` |
||
11789 | if test $ac_lo -le $ac_mid; then |
||
11790 | ac_lo= ac_hi= |
||
11791 | break |
||
11792 | fi |
||
11793 | ac_mid=`expr 2 '*' $ac_mid + 1` |
||
11794 | fi |
||
11795 | |||
11796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11797 | done |
||
11798 | else |
||
11799 | $as_echo "$as_me: failed program was:" >&5 |
||
11800 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11801 | |||
11802 | cat >conftest.$ac_ext <<_ACEOF |
||
11803 | /* confdefs.h. */ |
||
11804 | _ACEOF |
||
11805 | cat confdefs.h >>conftest.$ac_ext |
||
11806 | cat >>conftest.$ac_ext <<_ACEOF |
||
11807 | /* end confdefs.h. */ |
||
11808 | $ac_includes_default |
||
11809 | int |
||
11810 | main () |
||
11811 | { |
||
11812 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; |
||
11813 | test_array [0] = 0 |
||
11814 | |||
11815 | ; |
||
11816 | return 0; |
||
11817 | } |
||
11818 | _ACEOF |
||
11819 | rm -f conftest.$ac_objext |
||
11820 | if { (ac_try="$ac_compile" |
||
11821 | case "(($ac_try" in |
||
11822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11823 | *) ac_try_echo=$ac_try;; |
||
11824 | esac |
||
11825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11826 | $as_echo "$ac_try_echo") >&5 |
||
11827 | (eval "$ac_compile") 2>conftest.er1 |
||
11828 | ac_status=$? |
||
11829 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11830 | rm -f conftest.er1 |
||
11831 | cat conftest.err >&5 |
||
11832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11833 | (exit $ac_status); } && { |
||
11834 | test -z "$ac_c_werror_flag" || |
||
11835 | test ! -s conftest.err |
||
11836 | } && test -s conftest.$ac_objext; then |
||
11837 | ac_hi=-1 ac_mid=-1 |
||
11838 | while :; do |
||
11839 | cat >conftest.$ac_ext <<_ACEOF |
||
11840 | /* confdefs.h. */ |
||
11841 | _ACEOF |
||
11842 | cat confdefs.h >>conftest.$ac_ext |
||
11843 | cat >>conftest.$ac_ext <<_ACEOF |
||
11844 | /* end confdefs.h. */ |
||
11845 | $ac_includes_default |
||
11846 | int |
||
11847 | main () |
||
11848 | { |
||
11849 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; |
||
11850 | test_array [0] = 0 |
||
11851 | |||
11852 | ; |
||
11853 | return 0; |
||
11854 | } |
||
11855 | _ACEOF |
||
11856 | rm -f conftest.$ac_objext |
||
11857 | if { (ac_try="$ac_compile" |
||
11858 | case "(($ac_try" in |
||
11859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11860 | *) ac_try_echo=$ac_try;; |
||
11861 | esac |
||
11862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11863 | $as_echo "$ac_try_echo") >&5 |
||
11864 | (eval "$ac_compile") 2>conftest.er1 |
||
11865 | ac_status=$? |
||
11866 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11867 | rm -f conftest.er1 |
||
11868 | cat conftest.err >&5 |
||
11869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11870 | (exit $ac_status); } && { |
||
11871 | test -z "$ac_c_werror_flag" || |
||
11872 | test ! -s conftest.err |
||
11873 | } && test -s conftest.$ac_objext; then |
||
11874 | ac_lo=$ac_mid; break |
||
11875 | else |
||
11876 | $as_echo "$as_me: failed program was:" >&5 |
||
11877 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11878 | |||
11879 | ac_hi=`expr '(' $ac_mid ')' - 1` |
||
11880 | if test $ac_mid -le $ac_hi; then |
||
11881 | ac_lo= ac_hi= |
||
11882 | break |
||
11883 | fi |
||
11884 | ac_mid=`expr 2 '*' $ac_mid` |
||
11885 | fi |
||
11886 | |||
11887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11888 | done |
||
11889 | else |
||
11890 | $as_echo "$as_me: failed program was:" >&5 |
||
11891 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11892 | |||
11893 | ac_lo= ac_hi= |
||
11894 | fi |
||
11895 | |||
11896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11897 | fi |
||
11898 | |||
11899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11900 | # Binary search between lo and hi bounds. |
||
11901 | while test "x$ac_lo" != "x$ac_hi"; do |
||
11902 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
||
11903 | cat >conftest.$ac_ext <<_ACEOF |
||
11904 | /* confdefs.h. */ |
||
11905 | _ACEOF |
||
11906 | cat confdefs.h >>conftest.$ac_ext |
||
11907 | cat >>conftest.$ac_ext <<_ACEOF |
||
11908 | /* end confdefs.h. */ |
||
11909 | $ac_includes_default |
||
11910 | int |
||
11911 | main () |
||
11912 | { |
||
11913 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
||
11914 | test_array [0] = 0 |
||
11915 | |||
11916 | ; |
||
11917 | return 0; |
||
11918 | } |
||
11919 | _ACEOF |
||
11920 | rm -f conftest.$ac_objext |
||
11921 | if { (ac_try="$ac_compile" |
||
11922 | case "(($ac_try" in |
||
11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
11924 | *) ac_try_echo=$ac_try;; |
||
11925 | esac |
||
11926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
11927 | $as_echo "$ac_try_echo") >&5 |
||
11928 | (eval "$ac_compile") 2>conftest.er1 |
||
11929 | ac_status=$? |
||
11930 | grep -v '^ *+' conftest.er1 >conftest.err |
||
11931 | rm -f conftest.er1 |
||
11932 | cat conftest.err >&5 |
||
11933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
11934 | (exit $ac_status); } && { |
||
11935 | test -z "$ac_c_werror_flag" || |
||
11936 | test ! -s conftest.err |
||
11937 | } && test -s conftest.$ac_objext; then |
||
11938 | ac_hi=$ac_mid |
||
11939 | else |
||
11940 | $as_echo "$as_me: failed program was:" >&5 |
||
11941 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
11942 | |||
11943 | ac_lo=`expr '(' $ac_mid ')' + 1` |
||
11944 | fi |
||
11945 | |||
11946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
11947 | done |
||
11948 | case $ac_lo in |
||
11949 | ?*) ac_cv_sizeof_char=$ac_lo;; |
||
11950 | '') if test "$ac_cv_type_char" = yes; then |
||
11951 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
11952 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
11953 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
||
11954 | See \`config.log' for more details." >&5 |
||
11955 | $as_echo "$as_me: error: cannot compute sizeof (char) |
||
11956 | See \`config.log' for more details." >&2;} |
||
11957 | { (exit 77); exit 77; }; }; } |
||
11958 | else |
||
11959 | ac_cv_sizeof_char=0 |
||
11960 | fi ;; |
||
11961 | esac |
||
11962 | else |
||
11963 | cat >conftest.$ac_ext <<_ACEOF |
||
11964 | /* confdefs.h. */ |
||
11965 | _ACEOF |
||
11966 | cat confdefs.h >>conftest.$ac_ext |
||
11967 | cat >>conftest.$ac_ext <<_ACEOF |
||
11968 | /* end confdefs.h. */ |
||
11969 | $ac_includes_default |
||
11970 | static long int longval () { return (long int) (sizeof (char)); } |
||
11971 | static unsigned long int ulongval () { return (long int) (sizeof (char)); } |
||
11972 | #include |
||
11973 | #include |
||
11974 | int |
||
11975 | main () |
||
11976 | { |
||
11977 | |||
11978 | FILE *f = fopen ("conftest.val", "w"); |
||
11979 | if (! f) |
||
11980 | return 1; |
||
11981 | if (((long int) (sizeof (char))) < 0) |
||
11982 | { |
||
11983 | long int i = longval (); |
||
11984 | if (i != ((long int) (sizeof (char)))) |
||
11985 | return 1; |
||
11986 | fprintf (f, "%ld", i); |
||
11987 | } |
||
11988 | else |
||
11989 | { |
||
11990 | unsigned long int i = ulongval (); |
||
11991 | if (i != ((long int) (sizeof (char)))) |
||
11992 | return 1; |
||
11993 | fprintf (f, "%lu", i); |
||
11994 | } |
||
11995 | /* Do not output a trailing newline, as this causes \r\n confusion |
||
11996 | on some platforms. */ |
||
11997 | return ferror (f) || fclose (f) != 0; |
||
11998 | |||
11999 | ; |
||
12000 | return 0; |
||
12001 | } |
||
12002 | _ACEOF |
||
12003 | rm -f conftest$ac_exeext |
||
12004 | if { (ac_try="$ac_link" |
||
12005 | case "(($ac_try" in |
||
12006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12007 | *) ac_try_echo=$ac_try;; |
||
12008 | esac |
||
12009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12010 | $as_echo "$ac_try_echo") >&5 |
||
12011 | (eval "$ac_link") 2>&5 |
||
12012 | ac_status=$? |
||
12013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
12015 | { (case "(($ac_try" in |
||
12016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12017 | *) ac_try_echo=$ac_try;; |
||
12018 | esac |
||
12019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12020 | $as_echo "$ac_try_echo") >&5 |
||
12021 | (eval "$ac_try") 2>&5 |
||
12022 | ac_status=$? |
||
12023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12024 | (exit $ac_status); }; }; then |
||
12025 | ac_cv_sizeof_char=`cat conftest.val` |
||
12026 | else |
||
12027 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
12028 | $as_echo "$as_me: failed program was:" >&5 |
||
12029 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12030 | |||
12031 | ( exit $ac_status ) |
||
12032 | if test "$ac_cv_type_char" = yes; then |
||
12033 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
12034 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12035 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
||
12036 | See \`config.log' for more details." >&5 |
||
12037 | $as_echo "$as_me: error: cannot compute sizeof (char) |
||
12038 | See \`config.log' for more details." >&2;} |
||
12039 | { (exit 77); exit 77; }; }; } |
||
12040 | else |
||
12041 | ac_cv_sizeof_char=0 |
||
12042 | fi |
||
12043 | fi |
||
12044 | rm -rf conftest.dSYM |
||
12045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
12046 | fi |
||
12047 | rm -f conftest.val |
||
12048 | fi |
||
12049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
||
12050 | $as_echo "$ac_cv_sizeof_char" >&6; } |
||
12051 | |||
12052 | |||
12053 | |||
12054 | cat >>confdefs.h <<_ACEOF |
||
12055 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
||
12056 | _ACEOF |
||
12057 | |||
12058 | |||
12059 | # The cast to long int works around a bug in the HP C Compiler |
||
12060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
12061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
12062 | # This bug is HP SR number 8606223364. |
||
12063 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
||
12064 | $as_echo_n "checking size of short... " >&6; } |
||
12065 | if test "${ac_cv_sizeof_short+set}" = set; then |
||
12066 | $as_echo_n "(cached) " >&6 |
||
12067 | else |
||
12068 | if test "$cross_compiling" = yes; then |
||
12069 | # Depending upon the size, compute the lo and hi bounds. |
||
12070 | cat >conftest.$ac_ext <<_ACEOF |
||
12071 | /* confdefs.h. */ |
||
12072 | _ACEOF |
||
12073 | cat confdefs.h >>conftest.$ac_ext |
||
12074 | cat >>conftest.$ac_ext <<_ACEOF |
||
12075 | /* end confdefs.h. */ |
||
12076 | $ac_includes_default |
||
12077 | int |
||
12078 | main () |
||
12079 | { |
||
12080 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
||
12081 | test_array [0] = 0 |
||
12082 | |||
12083 | ; |
||
12084 | return 0; |
||
12085 | } |
||
12086 | _ACEOF |
||
12087 | rm -f conftest.$ac_objext |
||
12088 | if { (ac_try="$ac_compile" |
||
12089 | case "(($ac_try" in |
||
12090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12091 | *) ac_try_echo=$ac_try;; |
||
12092 | esac |
||
12093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12094 | $as_echo "$ac_try_echo") >&5 |
||
12095 | (eval "$ac_compile") 2>conftest.er1 |
||
12096 | ac_status=$? |
||
12097 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12098 | rm -f conftest.er1 |
||
12099 | cat conftest.err >&5 |
||
12100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12101 | (exit $ac_status); } && { |
||
12102 | test -z "$ac_c_werror_flag" || |
||
12103 | test ! -s conftest.err |
||
12104 | } && test -s conftest.$ac_objext; then |
||
12105 | ac_lo=0 ac_mid=0 |
||
12106 | while :; do |
||
12107 | cat >conftest.$ac_ext <<_ACEOF |
||
12108 | /* confdefs.h. */ |
||
12109 | _ACEOF |
||
12110 | cat confdefs.h >>conftest.$ac_ext |
||
12111 | cat >>conftest.$ac_ext <<_ACEOF |
||
12112 | /* end confdefs.h. */ |
||
12113 | $ac_includes_default |
||
12114 | int |
||
12115 | main () |
||
12116 | { |
||
12117 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
||
12118 | test_array [0] = 0 |
||
12119 | |||
12120 | ; |
||
12121 | return 0; |
||
12122 | } |
||
12123 | _ACEOF |
||
12124 | rm -f conftest.$ac_objext |
||
12125 | if { (ac_try="$ac_compile" |
||
12126 | case "(($ac_try" in |
||
12127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12128 | *) ac_try_echo=$ac_try;; |
||
12129 | esac |
||
12130 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12131 | $as_echo "$ac_try_echo") >&5 |
||
12132 | (eval "$ac_compile") 2>conftest.er1 |
||
12133 | ac_status=$? |
||
12134 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12135 | rm -f conftest.er1 |
||
12136 | cat conftest.err >&5 |
||
12137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12138 | (exit $ac_status); } && { |
||
12139 | test -z "$ac_c_werror_flag" || |
||
12140 | test ! -s conftest.err |
||
12141 | } && test -s conftest.$ac_objext; then |
||
12142 | ac_hi=$ac_mid; break |
||
12143 | else |
||
12144 | $as_echo "$as_me: failed program was:" >&5 |
||
12145 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12146 | |||
12147 | ac_lo=`expr $ac_mid + 1` |
||
12148 | if test $ac_lo -le $ac_mid; then |
||
12149 | ac_lo= ac_hi= |
||
12150 | break |
||
12151 | fi |
||
12152 | ac_mid=`expr 2 '*' $ac_mid + 1` |
||
12153 | fi |
||
12154 | |||
12155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12156 | done |
||
12157 | else |
||
12158 | $as_echo "$as_me: failed program was:" >&5 |
||
12159 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12160 | |||
12161 | cat >conftest.$ac_ext <<_ACEOF |
||
12162 | /* confdefs.h. */ |
||
12163 | _ACEOF |
||
12164 | cat confdefs.h >>conftest.$ac_ext |
||
12165 | cat >>conftest.$ac_ext <<_ACEOF |
||
12166 | /* end confdefs.h. */ |
||
12167 | $ac_includes_default |
||
12168 | int |
||
12169 | main () |
||
12170 | { |
||
12171 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
||
12172 | test_array [0] = 0 |
||
12173 | |||
12174 | ; |
||
12175 | return 0; |
||
12176 | } |
||
12177 | _ACEOF |
||
12178 | rm -f conftest.$ac_objext |
||
12179 | if { (ac_try="$ac_compile" |
||
12180 | case "(($ac_try" in |
||
12181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12182 | *) ac_try_echo=$ac_try;; |
||
12183 | esac |
||
12184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12185 | $as_echo "$ac_try_echo") >&5 |
||
12186 | (eval "$ac_compile") 2>conftest.er1 |
||
12187 | ac_status=$? |
||
12188 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12189 | rm -f conftest.er1 |
||
12190 | cat conftest.err >&5 |
||
12191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12192 | (exit $ac_status); } && { |
||
12193 | test -z "$ac_c_werror_flag" || |
||
12194 | test ! -s conftest.err |
||
12195 | } && test -s conftest.$ac_objext; then |
||
12196 | ac_hi=-1 ac_mid=-1 |
||
12197 | while :; do |
||
12198 | cat >conftest.$ac_ext <<_ACEOF |
||
12199 | /* confdefs.h. */ |
||
12200 | _ACEOF |
||
12201 | cat confdefs.h >>conftest.$ac_ext |
||
12202 | cat >>conftest.$ac_ext <<_ACEOF |
||
12203 | /* end confdefs.h. */ |
||
12204 | $ac_includes_default |
||
12205 | int |
||
12206 | main () |
||
12207 | { |
||
12208 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
||
12209 | test_array [0] = 0 |
||
12210 | |||
12211 | ; |
||
12212 | return 0; |
||
12213 | } |
||
12214 | _ACEOF |
||
12215 | rm -f conftest.$ac_objext |
||
12216 | if { (ac_try="$ac_compile" |
||
12217 | case "(($ac_try" in |
||
12218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12219 | *) ac_try_echo=$ac_try;; |
||
12220 | esac |
||
12221 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12222 | $as_echo "$ac_try_echo") >&5 |
||
12223 | (eval "$ac_compile") 2>conftest.er1 |
||
12224 | ac_status=$? |
||
12225 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12226 | rm -f conftest.er1 |
||
12227 | cat conftest.err >&5 |
||
12228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12229 | (exit $ac_status); } && { |
||
12230 | test -z "$ac_c_werror_flag" || |
||
12231 | test ! -s conftest.err |
||
12232 | } && test -s conftest.$ac_objext; then |
||
12233 | ac_lo=$ac_mid; break |
||
12234 | else |
||
12235 | $as_echo "$as_me: failed program was:" >&5 |
||
12236 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12237 | |||
12238 | ac_hi=`expr '(' $ac_mid ')' - 1` |
||
12239 | if test $ac_mid -le $ac_hi; then |
||
12240 | ac_lo= ac_hi= |
||
12241 | break |
||
12242 | fi |
||
12243 | ac_mid=`expr 2 '*' $ac_mid` |
||
12244 | fi |
||
12245 | |||
12246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12247 | done |
||
12248 | else |
||
12249 | $as_echo "$as_me: failed program was:" >&5 |
||
12250 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12251 | |||
12252 | ac_lo= ac_hi= |
||
12253 | fi |
||
12254 | |||
12255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12256 | fi |
||
12257 | |||
12258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12259 | # Binary search between lo and hi bounds. |
||
12260 | while test "x$ac_lo" != "x$ac_hi"; do |
||
12261 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
||
12262 | cat >conftest.$ac_ext <<_ACEOF |
||
12263 | /* confdefs.h. */ |
||
12264 | _ACEOF |
||
12265 | cat confdefs.h >>conftest.$ac_ext |
||
12266 | cat >>conftest.$ac_ext <<_ACEOF |
||
12267 | /* end confdefs.h. */ |
||
12268 | $ac_includes_default |
||
12269 | int |
||
12270 | main () |
||
12271 | { |
||
12272 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
||
12273 | test_array [0] = 0 |
||
12274 | |||
12275 | ; |
||
12276 | return 0; |
||
12277 | } |
||
12278 | _ACEOF |
||
12279 | rm -f conftest.$ac_objext |
||
12280 | if { (ac_try="$ac_compile" |
||
12281 | case "(($ac_try" in |
||
12282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12283 | *) ac_try_echo=$ac_try;; |
||
12284 | esac |
||
12285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12286 | $as_echo "$ac_try_echo") >&5 |
||
12287 | (eval "$ac_compile") 2>conftest.er1 |
||
12288 | ac_status=$? |
||
12289 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12290 | rm -f conftest.er1 |
||
12291 | cat conftest.err >&5 |
||
12292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12293 | (exit $ac_status); } && { |
||
12294 | test -z "$ac_c_werror_flag" || |
||
12295 | test ! -s conftest.err |
||
12296 | } && test -s conftest.$ac_objext; then |
||
12297 | ac_hi=$ac_mid |
||
12298 | else |
||
12299 | $as_echo "$as_me: failed program was:" >&5 |
||
12300 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12301 | |||
12302 | ac_lo=`expr '(' $ac_mid ')' + 1` |
||
12303 | fi |
||
12304 | |||
12305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12306 | done |
||
12307 | case $ac_lo in |
||
12308 | ?*) ac_cv_sizeof_short=$ac_lo;; |
||
12309 | '') if test "$ac_cv_type_short" = yes; then |
||
12310 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
12311 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12312 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
||
12313 | See \`config.log' for more details." >&5 |
||
12314 | $as_echo "$as_me: error: cannot compute sizeof (short) |
||
12315 | See \`config.log' for more details." >&2;} |
||
12316 | { (exit 77); exit 77; }; }; } |
||
12317 | else |
||
12318 | ac_cv_sizeof_short=0 |
||
12319 | fi ;; |
||
12320 | esac |
||
12321 | else |
||
12322 | cat >conftest.$ac_ext <<_ACEOF |
||
12323 | /* confdefs.h. */ |
||
12324 | _ACEOF |
||
12325 | cat confdefs.h >>conftest.$ac_ext |
||
12326 | cat >>conftest.$ac_ext <<_ACEOF |
||
12327 | /* end confdefs.h. */ |
||
12328 | $ac_includes_default |
||
12329 | static long int longval () { return (long int) (sizeof (short)); } |
||
12330 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
||
12331 | #include |
||
12332 | #include |
||
12333 | int |
||
12334 | main () |
||
12335 | { |
||
12336 | |||
12337 | FILE *f = fopen ("conftest.val", "w"); |
||
12338 | if (! f) |
||
12339 | return 1; |
||
12340 | if (((long int) (sizeof (short))) < 0) |
||
12341 | { |
||
12342 | long int i = longval (); |
||
12343 | if (i != ((long int) (sizeof (short)))) |
||
12344 | return 1; |
||
12345 | fprintf (f, "%ld", i); |
||
12346 | } |
||
12347 | else |
||
12348 | { |
||
12349 | unsigned long int i = ulongval (); |
||
12350 | if (i != ((long int) (sizeof (short)))) |
||
12351 | return 1; |
||
12352 | fprintf (f, "%lu", i); |
||
12353 | } |
||
12354 | /* Do not output a trailing newline, as this causes \r\n confusion |
||
12355 | on some platforms. */ |
||
12356 | return ferror (f) || fclose (f) != 0; |
||
12357 | |||
12358 | ; |
||
12359 | return 0; |
||
12360 | } |
||
12361 | _ACEOF |
||
12362 | rm -f conftest$ac_exeext |
||
12363 | if { (ac_try="$ac_link" |
||
12364 | case "(($ac_try" in |
||
12365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12366 | *) ac_try_echo=$ac_try;; |
||
12367 | esac |
||
12368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12369 | $as_echo "$ac_try_echo") >&5 |
||
12370 | (eval "$ac_link") 2>&5 |
||
12371 | ac_status=$? |
||
12372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12373 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
12374 | { (case "(($ac_try" in |
||
12375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12376 | *) ac_try_echo=$ac_try;; |
||
12377 | esac |
||
12378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12379 | $as_echo "$ac_try_echo") >&5 |
||
12380 | (eval "$ac_try") 2>&5 |
||
12381 | ac_status=$? |
||
12382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12383 | (exit $ac_status); }; }; then |
||
12384 | ac_cv_sizeof_short=`cat conftest.val` |
||
12385 | else |
||
12386 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
12387 | $as_echo "$as_me: failed program was:" >&5 |
||
12388 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12389 | |||
12390 | ( exit $ac_status ) |
||
12391 | if test "$ac_cv_type_short" = yes; then |
||
12392 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
12393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12394 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
||
12395 | See \`config.log' for more details." >&5 |
||
12396 | $as_echo "$as_me: error: cannot compute sizeof (short) |
||
12397 | See \`config.log' for more details." >&2;} |
||
12398 | { (exit 77); exit 77; }; }; } |
||
12399 | else |
||
12400 | ac_cv_sizeof_short=0 |
||
12401 | fi |
||
12402 | fi |
||
12403 | rm -rf conftest.dSYM |
||
12404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
12405 | fi |
||
12406 | rm -f conftest.val |
||
12407 | fi |
||
12408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
||
12409 | $as_echo "$ac_cv_sizeof_short" >&6; } |
||
12410 | |||
12411 | |||
12412 | |||
12413 | cat >>confdefs.h <<_ACEOF |
||
12414 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
||
12415 | _ACEOF |
||
12416 | |||
12417 | |||
12418 | # The cast to long int works around a bug in the HP C Compiler |
||
12419 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
12420 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
12421 | # This bug is HP SR number 8606223364. |
||
12422 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
||
12423 | $as_echo_n "checking size of int... " >&6; } |
||
12424 | if test "${ac_cv_sizeof_int+set}" = set; then |
||
12425 | $as_echo_n "(cached) " >&6 |
||
12426 | else |
||
12427 | if test "$cross_compiling" = yes; then |
||
12428 | # Depending upon the size, compute the lo and hi bounds. |
||
12429 | cat >conftest.$ac_ext <<_ACEOF |
||
12430 | /* confdefs.h. */ |
||
12431 | _ACEOF |
||
12432 | cat confdefs.h >>conftest.$ac_ext |
||
12433 | cat >>conftest.$ac_ext <<_ACEOF |
||
12434 | /* end confdefs.h. */ |
||
12435 | $ac_includes_default |
||
12436 | int |
||
12437 | main () |
||
12438 | { |
||
12439 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
||
12440 | test_array [0] = 0 |
||
12441 | |||
12442 | ; |
||
12443 | return 0; |
||
12444 | } |
||
12445 | _ACEOF |
||
12446 | rm -f conftest.$ac_objext |
||
12447 | if { (ac_try="$ac_compile" |
||
12448 | case "(($ac_try" in |
||
12449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12450 | *) ac_try_echo=$ac_try;; |
||
12451 | esac |
||
12452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12453 | $as_echo "$ac_try_echo") >&5 |
||
12454 | (eval "$ac_compile") 2>conftest.er1 |
||
12455 | ac_status=$? |
||
12456 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12457 | rm -f conftest.er1 |
||
12458 | cat conftest.err >&5 |
||
12459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12460 | (exit $ac_status); } && { |
||
12461 | test -z "$ac_c_werror_flag" || |
||
12462 | test ! -s conftest.err |
||
12463 | } && test -s conftest.$ac_objext; then |
||
12464 | ac_lo=0 ac_mid=0 |
||
12465 | while :; do |
||
12466 | cat >conftest.$ac_ext <<_ACEOF |
||
12467 | /* confdefs.h. */ |
||
12468 | _ACEOF |
||
12469 | cat confdefs.h >>conftest.$ac_ext |
||
12470 | cat >>conftest.$ac_ext <<_ACEOF |
||
12471 | /* end confdefs.h. */ |
||
12472 | $ac_includes_default |
||
12473 | int |
||
12474 | main () |
||
12475 | { |
||
12476 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
||
12477 | test_array [0] = 0 |
||
12478 | |||
12479 | ; |
||
12480 | return 0; |
||
12481 | } |
||
12482 | _ACEOF |
||
12483 | rm -f conftest.$ac_objext |
||
12484 | if { (ac_try="$ac_compile" |
||
12485 | case "(($ac_try" in |
||
12486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12487 | *) ac_try_echo=$ac_try;; |
||
12488 | esac |
||
12489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12490 | $as_echo "$ac_try_echo") >&5 |
||
12491 | (eval "$ac_compile") 2>conftest.er1 |
||
12492 | ac_status=$? |
||
12493 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12494 | rm -f conftest.er1 |
||
12495 | cat conftest.err >&5 |
||
12496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12497 | (exit $ac_status); } && { |
||
12498 | test -z "$ac_c_werror_flag" || |
||
12499 | test ! -s conftest.err |
||
12500 | } && test -s conftest.$ac_objext; then |
||
12501 | ac_hi=$ac_mid; break |
||
12502 | else |
||
12503 | $as_echo "$as_me: failed program was:" >&5 |
||
12504 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12505 | |||
12506 | ac_lo=`expr $ac_mid + 1` |
||
12507 | if test $ac_lo -le $ac_mid; then |
||
12508 | ac_lo= ac_hi= |
||
12509 | break |
||
12510 | fi |
||
12511 | ac_mid=`expr 2 '*' $ac_mid + 1` |
||
12512 | fi |
||
12513 | |||
12514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12515 | done |
||
12516 | else |
||
12517 | $as_echo "$as_me: failed program was:" >&5 |
||
12518 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12519 | |||
12520 | cat >conftest.$ac_ext <<_ACEOF |
||
12521 | /* confdefs.h. */ |
||
12522 | _ACEOF |
||
12523 | cat confdefs.h >>conftest.$ac_ext |
||
12524 | cat >>conftest.$ac_ext <<_ACEOF |
||
12525 | /* end confdefs.h. */ |
||
12526 | $ac_includes_default |
||
12527 | int |
||
12528 | main () |
||
12529 | { |
||
12530 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
||
12531 | test_array [0] = 0 |
||
12532 | |||
12533 | ; |
||
12534 | return 0; |
||
12535 | } |
||
12536 | _ACEOF |
||
12537 | rm -f conftest.$ac_objext |
||
12538 | if { (ac_try="$ac_compile" |
||
12539 | case "(($ac_try" in |
||
12540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12541 | *) ac_try_echo=$ac_try;; |
||
12542 | esac |
||
12543 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12544 | $as_echo "$ac_try_echo") >&5 |
||
12545 | (eval "$ac_compile") 2>conftest.er1 |
||
12546 | ac_status=$? |
||
12547 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12548 | rm -f conftest.er1 |
||
12549 | cat conftest.err >&5 |
||
12550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12551 | (exit $ac_status); } && { |
||
12552 | test -z "$ac_c_werror_flag" || |
||
12553 | test ! -s conftest.err |
||
12554 | } && test -s conftest.$ac_objext; then |
||
12555 | ac_hi=-1 ac_mid=-1 |
||
12556 | while :; do |
||
12557 | cat >conftest.$ac_ext <<_ACEOF |
||
12558 | /* confdefs.h. */ |
||
12559 | _ACEOF |
||
12560 | cat confdefs.h >>conftest.$ac_ext |
||
12561 | cat >>conftest.$ac_ext <<_ACEOF |
||
12562 | /* end confdefs.h. */ |
||
12563 | $ac_includes_default |
||
12564 | int |
||
12565 | main () |
||
12566 | { |
||
12567 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
||
12568 | test_array [0] = 0 |
||
12569 | |||
12570 | ; |
||
12571 | return 0; |
||
12572 | } |
||
12573 | _ACEOF |
||
12574 | rm -f conftest.$ac_objext |
||
12575 | if { (ac_try="$ac_compile" |
||
12576 | case "(($ac_try" in |
||
12577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12578 | *) ac_try_echo=$ac_try;; |
||
12579 | esac |
||
12580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12581 | $as_echo "$ac_try_echo") >&5 |
||
12582 | (eval "$ac_compile") 2>conftest.er1 |
||
12583 | ac_status=$? |
||
12584 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12585 | rm -f conftest.er1 |
||
12586 | cat conftest.err >&5 |
||
12587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12588 | (exit $ac_status); } && { |
||
12589 | test -z "$ac_c_werror_flag" || |
||
12590 | test ! -s conftest.err |
||
12591 | } && test -s conftest.$ac_objext; then |
||
12592 | ac_lo=$ac_mid; break |
||
12593 | else |
||
12594 | $as_echo "$as_me: failed program was:" >&5 |
||
12595 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12596 | |||
12597 | ac_hi=`expr '(' $ac_mid ')' - 1` |
||
12598 | if test $ac_mid -le $ac_hi; then |
||
12599 | ac_lo= ac_hi= |
||
12600 | break |
||
12601 | fi |
||
12602 | ac_mid=`expr 2 '*' $ac_mid` |
||
12603 | fi |
||
12604 | |||
12605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12606 | done |
||
12607 | else |
||
12608 | $as_echo "$as_me: failed program was:" >&5 |
||
12609 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12610 | |||
12611 | ac_lo= ac_hi= |
||
12612 | fi |
||
12613 | |||
12614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12615 | fi |
||
12616 | |||
12617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12618 | # Binary search between lo and hi bounds. |
||
12619 | while test "x$ac_lo" != "x$ac_hi"; do |
||
12620 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
||
12621 | cat >conftest.$ac_ext <<_ACEOF |
||
12622 | /* confdefs.h. */ |
||
12623 | _ACEOF |
||
12624 | cat confdefs.h >>conftest.$ac_ext |
||
12625 | cat >>conftest.$ac_ext <<_ACEOF |
||
12626 | /* end confdefs.h. */ |
||
12627 | $ac_includes_default |
||
12628 | int |
||
12629 | main () |
||
12630 | { |
||
12631 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
||
12632 | test_array [0] = 0 |
||
12633 | |||
12634 | ; |
||
12635 | return 0; |
||
12636 | } |
||
12637 | _ACEOF |
||
12638 | rm -f conftest.$ac_objext |
||
12639 | if { (ac_try="$ac_compile" |
||
12640 | case "(($ac_try" in |
||
12641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12642 | *) ac_try_echo=$ac_try;; |
||
12643 | esac |
||
12644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12645 | $as_echo "$ac_try_echo") >&5 |
||
12646 | (eval "$ac_compile") 2>conftest.er1 |
||
12647 | ac_status=$? |
||
12648 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12649 | rm -f conftest.er1 |
||
12650 | cat conftest.err >&5 |
||
12651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12652 | (exit $ac_status); } && { |
||
12653 | test -z "$ac_c_werror_flag" || |
||
12654 | test ! -s conftest.err |
||
12655 | } && test -s conftest.$ac_objext; then |
||
12656 | ac_hi=$ac_mid |
||
12657 | else |
||
12658 | $as_echo "$as_me: failed program was:" >&5 |
||
12659 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12660 | |||
12661 | ac_lo=`expr '(' $ac_mid ')' + 1` |
||
12662 | fi |
||
12663 | |||
12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12665 | done |
||
12666 | case $ac_lo in |
||
12667 | ?*) ac_cv_sizeof_int=$ac_lo;; |
||
12668 | '') if test "$ac_cv_type_int" = yes; then |
||
12669 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
12670 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12671 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
||
12672 | See \`config.log' for more details." >&5 |
||
12673 | $as_echo "$as_me: error: cannot compute sizeof (int) |
||
12674 | See \`config.log' for more details." >&2;} |
||
12675 | { (exit 77); exit 77; }; }; } |
||
12676 | else |
||
12677 | ac_cv_sizeof_int=0 |
||
12678 | fi ;; |
||
12679 | esac |
||
12680 | else |
||
12681 | cat >conftest.$ac_ext <<_ACEOF |
||
12682 | /* confdefs.h. */ |
||
12683 | _ACEOF |
||
12684 | cat confdefs.h >>conftest.$ac_ext |
||
12685 | cat >>conftest.$ac_ext <<_ACEOF |
||
12686 | /* end confdefs.h. */ |
||
12687 | $ac_includes_default |
||
12688 | static long int longval () { return (long int) (sizeof (int)); } |
||
12689 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
||
12690 | #include |
||
12691 | #include |
||
12692 | int |
||
12693 | main () |
||
12694 | { |
||
12695 | |||
12696 | FILE *f = fopen ("conftest.val", "w"); |
||
12697 | if (! f) |
||
12698 | return 1; |
||
12699 | if (((long int) (sizeof (int))) < 0) |
||
12700 | { |
||
12701 | long int i = longval (); |
||
12702 | if (i != ((long int) (sizeof (int)))) |
||
12703 | return 1; |
||
12704 | fprintf (f, "%ld", i); |
||
12705 | } |
||
12706 | else |
||
12707 | { |
||
12708 | unsigned long int i = ulongval (); |
||
12709 | if (i != ((long int) (sizeof (int)))) |
||
12710 | return 1; |
||
12711 | fprintf (f, "%lu", i); |
||
12712 | } |
||
12713 | /* Do not output a trailing newline, as this causes \r\n confusion |
||
12714 | on some platforms. */ |
||
12715 | return ferror (f) || fclose (f) != 0; |
||
12716 | |||
12717 | ; |
||
12718 | return 0; |
||
12719 | } |
||
12720 | _ACEOF |
||
12721 | rm -f conftest$ac_exeext |
||
12722 | if { (ac_try="$ac_link" |
||
12723 | case "(($ac_try" in |
||
12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12725 | *) ac_try_echo=$ac_try;; |
||
12726 | esac |
||
12727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12728 | $as_echo "$ac_try_echo") >&5 |
||
12729 | (eval "$ac_link") 2>&5 |
||
12730 | ac_status=$? |
||
12731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
12733 | { (case "(($ac_try" in |
||
12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12735 | *) ac_try_echo=$ac_try;; |
||
12736 | esac |
||
12737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12738 | $as_echo "$ac_try_echo") >&5 |
||
12739 | (eval "$ac_try") 2>&5 |
||
12740 | ac_status=$? |
||
12741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12742 | (exit $ac_status); }; }; then |
||
12743 | ac_cv_sizeof_int=`cat conftest.val` |
||
12744 | else |
||
12745 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
12746 | $as_echo "$as_me: failed program was:" >&5 |
||
12747 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12748 | |||
12749 | ( exit $ac_status ) |
||
12750 | if test "$ac_cv_type_int" = yes; then |
||
12751 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
12752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
12753 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
||
12754 | See \`config.log' for more details." >&5 |
||
12755 | $as_echo "$as_me: error: cannot compute sizeof (int) |
||
12756 | See \`config.log' for more details." >&2;} |
||
12757 | { (exit 77); exit 77; }; }; } |
||
12758 | else |
||
12759 | ac_cv_sizeof_int=0 |
||
12760 | fi |
||
12761 | fi |
||
12762 | rm -rf conftest.dSYM |
||
12763 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
12764 | fi |
||
12765 | rm -f conftest.val |
||
12766 | fi |
||
12767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
||
12768 | $as_echo "$ac_cv_sizeof_int" >&6; } |
||
12769 | |||
12770 | |||
12771 | |||
12772 | cat >>confdefs.h <<_ACEOF |
||
12773 | #define SIZEOF_INT $ac_cv_sizeof_int |
||
12774 | _ACEOF |
||
12775 | |||
12776 | |||
12777 | # The cast to long int works around a bug in the HP C Compiler |
||
12778 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
12779 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
12780 | # This bug is HP SR number 8606223364. |
||
12781 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
||
12782 | $as_echo_n "checking size of long... " >&6; } |
||
12783 | if test "${ac_cv_sizeof_long+set}" = set; then |
||
12784 | $as_echo_n "(cached) " >&6 |
||
12785 | else |
||
12786 | if test "$cross_compiling" = yes; then |
||
12787 | # Depending upon the size, compute the lo and hi bounds. |
||
12788 | cat >conftest.$ac_ext <<_ACEOF |
||
12789 | /* confdefs.h. */ |
||
12790 | _ACEOF |
||
12791 | cat confdefs.h >>conftest.$ac_ext |
||
12792 | cat >>conftest.$ac_ext <<_ACEOF |
||
12793 | /* end confdefs.h. */ |
||
12794 | $ac_includes_default |
||
12795 | int |
||
12796 | main () |
||
12797 | { |
||
12798 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
||
12799 | test_array [0] = 0 |
||
12800 | |||
12801 | ; |
||
12802 | return 0; |
||
12803 | } |
||
12804 | _ACEOF |
||
12805 | rm -f conftest.$ac_objext |
||
12806 | if { (ac_try="$ac_compile" |
||
12807 | case "(($ac_try" in |
||
12808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12809 | *) ac_try_echo=$ac_try;; |
||
12810 | esac |
||
12811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12812 | $as_echo "$ac_try_echo") >&5 |
||
12813 | (eval "$ac_compile") 2>conftest.er1 |
||
12814 | ac_status=$? |
||
12815 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12816 | rm -f conftest.er1 |
||
12817 | cat conftest.err >&5 |
||
12818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12819 | (exit $ac_status); } && { |
||
12820 | test -z "$ac_c_werror_flag" || |
||
12821 | test ! -s conftest.err |
||
12822 | } && test -s conftest.$ac_objext; then |
||
12823 | ac_lo=0 ac_mid=0 |
||
12824 | while :; do |
||
12825 | cat >conftest.$ac_ext <<_ACEOF |
||
12826 | /* confdefs.h. */ |
||
12827 | _ACEOF |
||
12828 | cat confdefs.h >>conftest.$ac_ext |
||
12829 | cat >>conftest.$ac_ext <<_ACEOF |
||
12830 | /* end confdefs.h. */ |
||
12831 | $ac_includes_default |
||
12832 | int |
||
12833 | main () |
||
12834 | { |
||
12835 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
||
12836 | test_array [0] = 0 |
||
12837 | |||
12838 | ; |
||
12839 | return 0; |
||
12840 | } |
||
12841 | _ACEOF |
||
12842 | rm -f conftest.$ac_objext |
||
12843 | if { (ac_try="$ac_compile" |
||
12844 | case "(($ac_try" in |
||
12845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12846 | *) ac_try_echo=$ac_try;; |
||
12847 | esac |
||
12848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12849 | $as_echo "$ac_try_echo") >&5 |
||
12850 | (eval "$ac_compile") 2>conftest.er1 |
||
12851 | ac_status=$? |
||
12852 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12853 | rm -f conftest.er1 |
||
12854 | cat conftest.err >&5 |
||
12855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12856 | (exit $ac_status); } && { |
||
12857 | test -z "$ac_c_werror_flag" || |
||
12858 | test ! -s conftest.err |
||
12859 | } && test -s conftest.$ac_objext; then |
||
12860 | ac_hi=$ac_mid; break |
||
12861 | else |
||
12862 | $as_echo "$as_me: failed program was:" >&5 |
||
12863 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12864 | |||
12865 | ac_lo=`expr $ac_mid + 1` |
||
12866 | if test $ac_lo -le $ac_mid; then |
||
12867 | ac_lo= ac_hi= |
||
12868 | break |
||
12869 | fi |
||
12870 | ac_mid=`expr 2 '*' $ac_mid + 1` |
||
12871 | fi |
||
12872 | |||
12873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12874 | done |
||
12875 | else |
||
12876 | $as_echo "$as_me: failed program was:" >&5 |
||
12877 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12878 | |||
12879 | cat >conftest.$ac_ext <<_ACEOF |
||
12880 | /* confdefs.h. */ |
||
12881 | _ACEOF |
||
12882 | cat confdefs.h >>conftest.$ac_ext |
||
12883 | cat >>conftest.$ac_ext <<_ACEOF |
||
12884 | /* end confdefs.h. */ |
||
12885 | $ac_includes_default |
||
12886 | int |
||
12887 | main () |
||
12888 | { |
||
12889 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
||
12890 | test_array [0] = 0 |
||
12891 | |||
12892 | ; |
||
12893 | return 0; |
||
12894 | } |
||
12895 | _ACEOF |
||
12896 | rm -f conftest.$ac_objext |
||
12897 | if { (ac_try="$ac_compile" |
||
12898 | case "(($ac_try" in |
||
12899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12900 | *) ac_try_echo=$ac_try;; |
||
12901 | esac |
||
12902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12903 | $as_echo "$ac_try_echo") >&5 |
||
12904 | (eval "$ac_compile") 2>conftest.er1 |
||
12905 | ac_status=$? |
||
12906 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12907 | rm -f conftest.er1 |
||
12908 | cat conftest.err >&5 |
||
12909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12910 | (exit $ac_status); } && { |
||
12911 | test -z "$ac_c_werror_flag" || |
||
12912 | test ! -s conftest.err |
||
12913 | } && test -s conftest.$ac_objext; then |
||
12914 | ac_hi=-1 ac_mid=-1 |
||
12915 | while :; do |
||
12916 | cat >conftest.$ac_ext <<_ACEOF |
||
12917 | /* confdefs.h. */ |
||
12918 | _ACEOF |
||
12919 | cat confdefs.h >>conftest.$ac_ext |
||
12920 | cat >>conftest.$ac_ext <<_ACEOF |
||
12921 | /* end confdefs.h. */ |
||
12922 | $ac_includes_default |
||
12923 | int |
||
12924 | main () |
||
12925 | { |
||
12926 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
||
12927 | test_array [0] = 0 |
||
12928 | |||
12929 | ; |
||
12930 | return 0; |
||
12931 | } |
||
12932 | _ACEOF |
||
12933 | rm -f conftest.$ac_objext |
||
12934 | if { (ac_try="$ac_compile" |
||
12935 | case "(($ac_try" in |
||
12936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
12937 | *) ac_try_echo=$ac_try;; |
||
12938 | esac |
||
12939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
12940 | $as_echo "$ac_try_echo") >&5 |
||
12941 | (eval "$ac_compile") 2>conftest.er1 |
||
12942 | ac_status=$? |
||
12943 | grep -v '^ *+' conftest.er1 >conftest.err |
||
12944 | rm -f conftest.er1 |
||
12945 | cat conftest.err >&5 |
||
12946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12947 | (exit $ac_status); } && { |
||
12948 | test -z "$ac_c_werror_flag" || |
||
12949 | test ! -s conftest.err |
||
12950 | } && test -s conftest.$ac_objext; then |
||
12951 | ac_lo=$ac_mid; break |
||
12952 | else |
||
12953 | $as_echo "$as_me: failed program was:" >&5 |
||
12954 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12955 | |||
12956 | ac_hi=`expr '(' $ac_mid ')' - 1` |
||
12957 | if test $ac_mid -le $ac_hi; then |
||
12958 | ac_lo= ac_hi= |
||
12959 | break |
||
12960 | fi |
||
12961 | ac_mid=`expr 2 '*' $ac_mid` |
||
12962 | fi |
||
12963 | |||
12964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12965 | done |
||
12966 | else |
||
12967 | $as_echo "$as_me: failed program was:" >&5 |
||
12968 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
12969 | |||
12970 | ac_lo= ac_hi= |
||
12971 | fi |
||
12972 | |||
12973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12974 | fi |
||
12975 | |||
12976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
12977 | # Binary search between lo and hi bounds. |
||
12978 | while test "x$ac_lo" != "x$ac_hi"; do |
||
12979 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
||
12980 | cat >conftest.$ac_ext <<_ACEOF |
||
12981 | /* confdefs.h. */ |
||
12982 | _ACEOF |
||
12983 | cat confdefs.h >>conftest.$ac_ext |
||
12984 | cat >>conftest.$ac_ext <<_ACEOF |
||
12985 | /* end confdefs.h. */ |
||
12986 | $ac_includes_default |
||
12987 | int |
||
12988 | main () |
||
12989 | { |
||
12990 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
||
12991 | test_array [0] = 0 |
||
12992 | |||
12993 | ; |
||
12994 | return 0; |
||
12995 | } |
||
12996 | _ACEOF |
||
12997 | rm -f conftest.$ac_objext |
||
12998 | if { (ac_try="$ac_compile" |
||
12999 | case "(($ac_try" in |
||
13000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13001 | *) ac_try_echo=$ac_try;; |
||
13002 | esac |
||
13003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13004 | $as_echo "$ac_try_echo") >&5 |
||
13005 | (eval "$ac_compile") 2>conftest.er1 |
||
13006 | ac_status=$? |
||
13007 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13008 | rm -f conftest.er1 |
||
13009 | cat conftest.err >&5 |
||
13010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13011 | (exit $ac_status); } && { |
||
13012 | test -z "$ac_c_werror_flag" || |
||
13013 | test ! -s conftest.err |
||
13014 | } && test -s conftest.$ac_objext; then |
||
13015 | ac_hi=$ac_mid |
||
13016 | else |
||
13017 | $as_echo "$as_me: failed program was:" >&5 |
||
13018 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13019 | |||
13020 | ac_lo=`expr '(' $ac_mid ')' + 1` |
||
13021 | fi |
||
13022 | |||
13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13024 | done |
||
13025 | case $ac_lo in |
||
13026 | ?*) ac_cv_sizeof_long=$ac_lo;; |
||
13027 | '') if test "$ac_cv_type_long" = yes; then |
||
13028 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
13029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
13030 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
||
13031 | See \`config.log' for more details." >&5 |
||
13032 | $as_echo "$as_me: error: cannot compute sizeof (long) |
||
13033 | See \`config.log' for more details." >&2;} |
||
13034 | { (exit 77); exit 77; }; }; } |
||
13035 | else |
||
13036 | ac_cv_sizeof_long=0 |
||
13037 | fi ;; |
||
13038 | esac |
||
13039 | else |
||
13040 | cat >conftest.$ac_ext <<_ACEOF |
||
13041 | /* confdefs.h. */ |
||
13042 | _ACEOF |
||
13043 | cat confdefs.h >>conftest.$ac_ext |
||
13044 | cat >>conftest.$ac_ext <<_ACEOF |
||
13045 | /* end confdefs.h. */ |
||
13046 | $ac_includes_default |
||
13047 | static long int longval () { return (long int) (sizeof (long)); } |
||
13048 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
||
13049 | #include |
||
13050 | #include |
||
13051 | int |
||
13052 | main () |
||
13053 | { |
||
13054 | |||
13055 | FILE *f = fopen ("conftest.val", "w"); |
||
13056 | if (! f) |
||
13057 | return 1; |
||
13058 | if (((long int) (sizeof (long))) < 0) |
||
13059 | { |
||
13060 | long int i = longval (); |
||
13061 | if (i != ((long int) (sizeof (long)))) |
||
13062 | return 1; |
||
13063 | fprintf (f, "%ld", i); |
||
13064 | } |
||
13065 | else |
||
13066 | { |
||
13067 | unsigned long int i = ulongval (); |
||
13068 | if (i != ((long int) (sizeof (long)))) |
||
13069 | return 1; |
||
13070 | fprintf (f, "%lu", i); |
||
13071 | } |
||
13072 | /* Do not output a trailing newline, as this causes \r\n confusion |
||
13073 | on some platforms. */ |
||
13074 | return ferror (f) || fclose (f) != 0; |
||
13075 | |||
13076 | ; |
||
13077 | return 0; |
||
13078 | } |
||
13079 | _ACEOF |
||
13080 | rm -f conftest$ac_exeext |
||
13081 | if { (ac_try="$ac_link" |
||
13082 | case "(($ac_try" in |
||
13083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13084 | *) ac_try_echo=$ac_try;; |
||
13085 | esac |
||
13086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13087 | $as_echo "$ac_try_echo") >&5 |
||
13088 | (eval "$ac_link") 2>&5 |
||
13089 | ac_status=$? |
||
13090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
13092 | { (case "(($ac_try" in |
||
13093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13094 | *) ac_try_echo=$ac_try;; |
||
13095 | esac |
||
13096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13097 | $as_echo "$ac_try_echo") >&5 |
||
13098 | (eval "$ac_try") 2>&5 |
||
13099 | ac_status=$? |
||
13100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13101 | (exit $ac_status); }; }; then |
||
13102 | ac_cv_sizeof_long=`cat conftest.val` |
||
13103 | else |
||
13104 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
13105 | $as_echo "$as_me: failed program was:" >&5 |
||
13106 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13107 | |||
13108 | ( exit $ac_status ) |
||
13109 | if test "$ac_cv_type_long" = yes; then |
||
13110 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
||
13111 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
13112 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
||
13113 | See \`config.log' for more details." >&5 |
||
13114 | $as_echo "$as_me: error: cannot compute sizeof (long) |
||
13115 | See \`config.log' for more details." >&2;} |
||
13116 | { (exit 77); exit 77; }; }; } |
||
13117 | else |
||
13118 | ac_cv_sizeof_long=0 |
||
13119 | fi |
||
13120 | fi |
||
13121 | rm -rf conftest.dSYM |
||
13122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
13123 | fi |
||
13124 | rm -f conftest.val |
||
13125 | fi |
||
13126 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
||
13127 | $as_echo "$ac_cv_sizeof_long" >&6; } |
||
13128 | |||
13129 | |||
13130 | |||
13131 | cat >>confdefs.h <<_ACEOF |
||
13132 | #define SIZEOF_LONG $ac_cv_sizeof_long |
||
13133 | _ACEOF |
||
13134 | |||
13135 | |||
13136 | case 1 in |
||
13137 | $ac_cv_sizeof_char) int8_type="char";; |
||
13138 | *) stdint_types_discovered="no" |
||
13139 | esac |
||
13140 | case 2 in |
||
13141 | $ac_cv_sizeof_short) int16_type="short";; |
||
13142 | $ac_cv_sizeof_char) int16_type="char";; |
||
13143 | $ac_cv_sizeof_int) int16_type="char";; |
||
13144 | *) stdint_types_discovered="no";; |
||
13145 | esac |
||
13146 | case 4 in |
||
13147 | $ac_cv_sizeof_int) int32_type="int";; |
||
13148 | $ac_cv_sizeof_long) int32_type="long";; |
||
13149 | $ac_cv_sizeof_short) int32_type="short";; |
||
13150 | *) stdint_types_discovered="no";; |
||
13151 | esac |
||
13152 | if test "${ac_cv_header_stdint_h+set}" = set; then |
||
13153 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
||
13154 | $as_echo_n "checking for stdint.h... " >&6; } |
||
13155 | if test "${ac_cv_header_stdint_h+set}" = set; then |
||
13156 | $as_echo_n "(cached) " >&6 |
||
13157 | fi |
||
13158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
||
13159 | $as_echo "$ac_cv_header_stdint_h" >&6; } |
||
13160 | else |
||
13161 | # Is the header compilable? |
||
13162 | { $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
||
13163 | $as_echo_n "checking stdint.h usability... " >&6; } |
||
13164 | cat >conftest.$ac_ext <<_ACEOF |
||
13165 | /* confdefs.h. */ |
||
13166 | _ACEOF |
||
13167 | cat confdefs.h >>conftest.$ac_ext |
||
13168 | cat >>conftest.$ac_ext <<_ACEOF |
||
13169 | /* end confdefs.h. */ |
||
13170 | $ac_includes_default |
||
13171 | #include |
||
13172 | _ACEOF |
||
13173 | rm -f conftest.$ac_objext |
||
13174 | if { (ac_try="$ac_compile" |
||
13175 | case "(($ac_try" in |
||
13176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13177 | *) ac_try_echo=$ac_try;; |
||
13178 | esac |
||
13179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13180 | $as_echo "$ac_try_echo") >&5 |
||
13181 | (eval "$ac_compile") 2>conftest.er1 |
||
13182 | ac_status=$? |
||
13183 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13184 | rm -f conftest.er1 |
||
13185 | cat conftest.err >&5 |
||
13186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13187 | (exit $ac_status); } && { |
||
13188 | test -z "$ac_c_werror_flag" || |
||
13189 | test ! -s conftest.err |
||
13190 | } && test -s conftest.$ac_objext; then |
||
13191 | ac_header_compiler=yes |
||
13192 | else |
||
13193 | $as_echo "$as_me: failed program was:" >&5 |
||
13194 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13195 | |||
13196 | ac_header_compiler=no |
||
13197 | fi |
||
13198 | |||
13199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13200 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
13201 | $as_echo "$ac_header_compiler" >&6; } |
||
13202 | |||
13203 | # Is the header present? |
||
13204 | { $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
||
13205 | $as_echo_n "checking stdint.h presence... " >&6; } |
||
13206 | cat >conftest.$ac_ext <<_ACEOF |
||
13207 | /* confdefs.h. */ |
||
13208 | _ACEOF |
||
13209 | cat confdefs.h >>conftest.$ac_ext |
||
13210 | cat >>conftest.$ac_ext <<_ACEOF |
||
13211 | /* end confdefs.h. */ |
||
13212 | #include |
||
13213 | _ACEOF |
||
13214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
||
13215 | case "(($ac_try" in |
||
13216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13217 | *) ac_try_echo=$ac_try;; |
||
13218 | esac |
||
13219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13220 | $as_echo "$ac_try_echo") >&5 |
||
13221 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
||
13222 | ac_status=$? |
||
13223 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13224 | rm -f conftest.er1 |
||
13225 | cat conftest.err >&5 |
||
13226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13227 | (exit $ac_status); } >/dev/null && { |
||
13228 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
13229 | test ! -s conftest.err |
||
13230 | }; then |
||
13231 | ac_header_preproc=yes |
||
13232 | else |
||
13233 | $as_echo "$as_me: failed program was:" >&5 |
||
13234 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13235 | |||
13236 | ac_header_preproc=no |
||
13237 | fi |
||
13238 | |||
13239 | rm -f conftest.err conftest.$ac_ext |
||
13240 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
13241 | $as_echo "$ac_header_preproc" >&6; } |
||
13242 | |||
13243 | # So? What about this header? |
||
13244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
13245 | yes:no: ) |
||
13246 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
13247 | $as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
13248 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
||
13249 | $as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
||
13250 | ac_header_preproc=yes |
||
13251 | ;; |
||
13252 | no:yes:* ) |
||
13253 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
||
13254 | $as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
||
13255 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
||
13256 | $as_echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
||
13257 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
||
13258 | $as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
||
13259 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
||
13260 | $as_echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
||
13261 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
||
13262 | $as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
||
13263 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
||
13264 | $as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
||
13265 | ( cat <<\_ASBOX |
||
13266 | ## ---------------------------------------- ## |
||
13267 | ## Report this to jbig2-dev@ghostscript.com ## |
||
13268 | ## ---------------------------------------- ## |
||
13269 | _ASBOX |
||
13270 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
||
13271 | ;; |
||
13272 | esac |
||
13273 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
||
13274 | $as_echo_n "checking for stdint.h... " >&6; } |
||
13275 | if test "${ac_cv_header_stdint_h+set}" = set; then |
||
13276 | $as_echo_n "(cached) " >&6 |
||
13277 | else |
||
13278 | ac_cv_header_stdint_h=$ac_header_preproc |
||
13279 | fi |
||
13280 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
||
13281 | $as_echo "$ac_cv_header_stdint_h" >&6; } |
||
13282 | |||
13283 | fi |
||
13284 | |||
13285 | |||
13286 | if test "x$ac_cv_header_stdint_h" != "xyes"; then |
||
13287 | for include in sys/types.h inttypes.h sys/inttypes.h sys/int_types.h ; do |
||
13288 | { $as_echo "$as_me:$LINENO: checking for uint32_t in $include" >&5 |
||
13289 | $as_echo_n "checking for uint32_t in $include... " >&6; } |
||
13290 | cat >conftest.$ac_ext <<_ACEOF |
||
13291 | /* confdefs.h. */ |
||
13292 | _ACEOF |
||
13293 | cat confdefs.h >>conftest.$ac_ext |
||
13294 | cat >>conftest.$ac_ext <<_ACEOF |
||
13295 | /* end confdefs.h. */ |
||
13296 | #include <$include> |
||
13297 | int |
||
13298 | main () |
||
13299 | { |
||
13300 | uint32_t canary; |
||
13301 | ; |
||
13302 | return 0; |
||
13303 | } |
||
13304 | _ACEOF |
||
13305 | rm -f conftest.$ac_objext |
||
13306 | if { (ac_try="$ac_compile" |
||
13307 | case "(($ac_try" in |
||
13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13309 | *) ac_try_echo=$ac_try;; |
||
13310 | esac |
||
13311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13312 | $as_echo "$ac_try_echo") >&5 |
||
13313 | (eval "$ac_compile") 2>conftest.er1 |
||
13314 | ac_status=$? |
||
13315 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13316 | rm -f conftest.er1 |
||
13317 | cat conftest.err >&5 |
||
13318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13319 | (exit $ac_status); } && { |
||
13320 | test -z "$ac_c_werror_flag" || |
||
13321 | test ! -s conftest.err |
||
13322 | } && test -s conftest.$ac_objext; then |
||
13323 | |||
13324 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
||
13325 | $as_echo "yes" >&6; } |
||
13326 | stdint_types_in="$include" |
||
13327 | break; |
||
13328 | |||
13329 | else |
||
13330 | $as_echo "$as_me: failed program was:" >&5 |
||
13331 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13332 | |||
13333 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
||
13334 | $as_echo "no" >&6; } |
||
13335 | |||
13336 | fi |
||
13337 | |||
13338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13339 | done |
||
13340 | if test "x$stdint_types_in" != "xno_replacement_found"; then |
||
13341 | { $as_echo "$as_me:$LINENO: result: Adding $stdint_types_in to config header for stdint types" >&5 |
||
13342 | $as_echo "Adding $stdint_types_in to config header for stdint types" >&6; } |
||
13343 | |||
13344 | cat >>confdefs.h <<\_ACEOF |
||
13345 | #define JBIG2_REPLACE_STDINT_H /**/ |
||
13346 | _ACEOF |
||
13347 | |||
13348 | elif test "x$stdint_types_discovered" = "xno"; then |
||
13349 | { { $as_echo "$as_me:$LINENO: error: |
||
13350 | Unable to find suitable definitions of the stdint.h types (uint32_t and friends) |
||
13351 | You will have to define these yourself in a separate header. |
||
13352 | See config_win32.h for an example. |
||
13353 | " >&5 |
||
13354 | $as_echo "$as_me: error: |
||
13355 | Unable to find suitable definitions of the stdint.h types (uint32_t and friends) |
||
13356 | You will have to define these yourself in a separate header. |
||
13357 | See config_win32.h for an example. |
||
13358 | " >&2;} |
||
13359 | { (exit 1); exit 1; }; } |
||
13360 | fi |
||
13361 | fi |
||
13362 | JBIG2_INT32_T=$int32_type |
||
13363 | |||
13364 | JBIG2_INT16_T=$int16_type |
||
13365 | |||
13366 | JBIG2_INT8_T=$int8_type |
||
13367 | |||
13368 | JBIG2_STDINT_H=$stdint_types_in |
||
13369 | |||
13370 | |||
13371 | # Checks for typedefs, structures, and compiler characteristics. |
||
13372 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
||
13373 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
||
13374 | if test "${ac_cv_c_const+set}" = set; then |
||
13375 | $as_echo_n "(cached) " >&6 |
||
13376 | else |
||
13377 | cat >conftest.$ac_ext <<_ACEOF |
||
13378 | /* confdefs.h. */ |
||
13379 | _ACEOF |
||
13380 | cat confdefs.h >>conftest.$ac_ext |
||
13381 | cat >>conftest.$ac_ext <<_ACEOF |
||
13382 | /* end confdefs.h. */ |
||
13383 | |||
13384 | int |
||
13385 | main () |
||
13386 | { |
||
13387 | /* FIXME: Include the comments suggested by Paul. */ |
||
13388 | #ifndef __cplusplus |
||
13389 | /* Ultrix mips cc rejects this. */ |
||
13390 | typedef int charset[2]; |
||
13391 | const charset cs; |
||
13392 | /* SunOS 4.1.1 cc rejects this. */ |
||
13393 | char const *const *pcpcc; |
||
13394 | char **ppc; |
||
13395 | /* NEC SVR4.0.2 mips cc rejects this. */ |
||
13396 | struct point {int x, y;}; |
||
13397 | static struct point const zero = {0,0}; |
||
13398 | /* AIX XL C 1.02.0.0 rejects this. |
||
13399 | It does not let you subtract one const X* pointer from another in |
||
13400 | an arm of an if-expression whose if-part is not a constant |
||
13401 | expression */ |
||
13402 | const char *g = "string"; |
||
13403 | pcpcc = &g + (g ? g-g : 0); |
||
13404 | /* HPUX 7.0 cc rejects these. */ |
||
13405 | ++pcpcc; |
||
13406 | ppc = (char**) pcpcc; |
||
13407 | pcpcc = (char const *const *) ppc; |
||
13408 | { /* SCO 3.2v4 cc rejects this. */ |
||
13409 | char *t; |
||
13410 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
||
13411 | |||
13412 | *t++ = 0; |
||
13413 | if (s) return 0; |
||
13414 | } |
||
13415 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
||
13416 | int x[] = {25, 17}; |
||
13417 | const int *foo = &x[0]; |
||
13418 | ++foo; |
||
13419 | } |
||
13420 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
||
13421 | typedef const int *iptr; |
||
13422 | iptr p = 0; |
||
13423 | ++p; |
||
13424 | } |
||
13425 | { /* AIX XL C 1.02.0.0 rejects this saying |
||
13426 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
||
13427 | struct s { int j; const int *ap[3]; }; |
||
13428 | struct s *b; b->j = 5; |
||
13429 | } |
||
13430 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
||
13431 | const int foo = 10; |
||
13432 | if (!foo) return 0; |
||
13433 | } |
||
13434 | return !cs[0] && !zero.x; |
||
13435 | #endif |
||
13436 | |||
13437 | ; |
||
13438 | return 0; |
||
13439 | } |
||
13440 | _ACEOF |
||
13441 | rm -f conftest.$ac_objext |
||
13442 | if { (ac_try="$ac_compile" |
||
13443 | case "(($ac_try" in |
||
13444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13445 | *) ac_try_echo=$ac_try;; |
||
13446 | esac |
||
13447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13448 | $as_echo "$ac_try_echo") >&5 |
||
13449 | (eval "$ac_compile") 2>conftest.er1 |
||
13450 | ac_status=$? |
||
13451 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13452 | rm -f conftest.er1 |
||
13453 | cat conftest.err >&5 |
||
13454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13455 | (exit $ac_status); } && { |
||
13456 | test -z "$ac_c_werror_flag" || |
||
13457 | test ! -s conftest.err |
||
13458 | } && test -s conftest.$ac_objext; then |
||
13459 | ac_cv_c_const=yes |
||
13460 | else |
||
13461 | $as_echo "$as_me: failed program was:" >&5 |
||
13462 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13463 | |||
13464 | ac_cv_c_const=no |
||
13465 | fi |
||
13466 | |||
13467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13468 | fi |
||
13469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
||
13470 | $as_echo "$ac_cv_c_const" >&6; } |
||
13471 | if test $ac_cv_c_const = no; then |
||
13472 | |||
13473 | cat >>confdefs.h <<\_ACEOF |
||
13474 | #define const /**/ |
||
13475 | _ACEOF |
||
13476 | |||
13477 | fi |
||
13478 | |||
13479 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
||
13480 | $as_echo_n "checking for size_t... " >&6; } |
||
13481 | if test "${ac_cv_type_size_t+set}" = set; then |
||
13482 | $as_echo_n "(cached) " >&6 |
||
13483 | else |
||
13484 | ac_cv_type_size_t=no |
||
13485 | cat >conftest.$ac_ext <<_ACEOF |
||
13486 | /* confdefs.h. */ |
||
13487 | _ACEOF |
||
13488 | cat confdefs.h >>conftest.$ac_ext |
||
13489 | cat >>conftest.$ac_ext <<_ACEOF |
||
13490 | /* end confdefs.h. */ |
||
13491 | $ac_includes_default |
||
13492 | int |
||
13493 | main () |
||
13494 | { |
||
13495 | if (sizeof (size_t)) |
||
13496 | return 0; |
||
13497 | ; |
||
13498 | return 0; |
||
13499 | } |
||
13500 | _ACEOF |
||
13501 | rm -f conftest.$ac_objext |
||
13502 | if { (ac_try="$ac_compile" |
||
13503 | case "(($ac_try" in |
||
13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13505 | *) ac_try_echo=$ac_try;; |
||
13506 | esac |
||
13507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13508 | $as_echo "$ac_try_echo") >&5 |
||
13509 | (eval "$ac_compile") 2>conftest.er1 |
||
13510 | ac_status=$? |
||
13511 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13512 | rm -f conftest.er1 |
||
13513 | cat conftest.err >&5 |
||
13514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13515 | (exit $ac_status); } && { |
||
13516 | test -z "$ac_c_werror_flag" || |
||
13517 | test ! -s conftest.err |
||
13518 | } && test -s conftest.$ac_objext; then |
||
13519 | cat >conftest.$ac_ext <<_ACEOF |
||
13520 | /* confdefs.h. */ |
||
13521 | _ACEOF |
||
13522 | cat confdefs.h >>conftest.$ac_ext |
||
13523 | cat >>conftest.$ac_ext <<_ACEOF |
||
13524 | /* end confdefs.h. */ |
||
13525 | $ac_includes_default |
||
13526 | int |
||
13527 | main () |
||
13528 | { |
||
13529 | if (sizeof ((size_t))) |
||
13530 | return 0; |
||
13531 | ; |
||
13532 | return 0; |
||
13533 | } |
||
13534 | _ACEOF |
||
13535 | rm -f conftest.$ac_objext |
||
13536 | if { (ac_try="$ac_compile" |
||
13537 | case "(($ac_try" in |
||
13538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13539 | *) ac_try_echo=$ac_try;; |
||
13540 | esac |
||
13541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13542 | $as_echo "$ac_try_echo") >&5 |
||
13543 | (eval "$ac_compile") 2>conftest.er1 |
||
13544 | ac_status=$? |
||
13545 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13546 | rm -f conftest.er1 |
||
13547 | cat conftest.err >&5 |
||
13548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13549 | (exit $ac_status); } && { |
||
13550 | test -z "$ac_c_werror_flag" || |
||
13551 | test ! -s conftest.err |
||
13552 | } && test -s conftest.$ac_objext; then |
||
13553 | : |
||
13554 | else |
||
13555 | $as_echo "$as_me: failed program was:" >&5 |
||
13556 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13557 | |||
13558 | ac_cv_type_size_t=yes |
||
13559 | fi |
||
13560 | |||
13561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13562 | else |
||
13563 | $as_echo "$as_me: failed program was:" >&5 |
||
13564 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13565 | |||
13566 | |||
13567 | fi |
||
13568 | |||
13569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13570 | fi |
||
13571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
||
13572 | $as_echo "$ac_cv_type_size_t" >&6; } |
||
13573 | if test "x$ac_cv_type_size_t" = x""yes; then |
||
13574 | : |
||
13575 | else |
||
13576 | |||
13577 | cat >>confdefs.h <<_ACEOF |
||
13578 | #define size_t unsigned int |
||
13579 | _ACEOF |
||
13580 | |||
13581 | fi |
||
13582 | |||
13583 | |||
13584 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
||
13585 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
||
13586 | if test "${ac_cv_c_bigendian+set}" = set; then |
||
13587 | $as_echo_n "(cached) " >&6 |
||
13588 | else |
||
13589 | ac_cv_c_bigendian=unknown |
||
13590 | # See if we're dealing with a universal compiler. |
||
13591 | cat >conftest.$ac_ext <<_ACEOF |
||
13592 | /* confdefs.h. */ |
||
13593 | _ACEOF |
||
13594 | cat confdefs.h >>conftest.$ac_ext |
||
13595 | cat >>conftest.$ac_ext <<_ACEOF |
||
13596 | /* end confdefs.h. */ |
||
13597 | #ifndef __APPLE_CC__ |
||
13598 | not a universal capable compiler |
||
13599 | #endif |
||
13600 | typedef int dummy; |
||
13601 | |||
13602 | _ACEOF |
||
13603 | rm -f conftest.$ac_objext |
||
13604 | if { (ac_try="$ac_compile" |
||
13605 | case "(($ac_try" in |
||
13606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13607 | *) ac_try_echo=$ac_try;; |
||
13608 | esac |
||
13609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13610 | $as_echo "$ac_try_echo") >&5 |
||
13611 | (eval "$ac_compile") 2>conftest.er1 |
||
13612 | ac_status=$? |
||
13613 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13614 | rm -f conftest.er1 |
||
13615 | cat conftest.err >&5 |
||
13616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13617 | (exit $ac_status); } && { |
||
13618 | test -z "$ac_c_werror_flag" || |
||
13619 | test ! -s conftest.err |
||
13620 | } && test -s conftest.$ac_objext; then |
||
13621 | |||
13622 | # Check for potential -arch flags. It is not universal unless |
||
13623 | # there are some -arch flags. Note that *ppc* also matches |
||
13624 | # ppc64. This check is also rather less than ideal. |
||
13625 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
||
13626 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
||
13627 | esac |
||
13628 | else |
||
13629 | $as_echo "$as_me: failed program was:" >&5 |
||
13630 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13631 | |||
13632 | |||
13633 | fi |
||
13634 | |||
13635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13636 | if test $ac_cv_c_bigendian = unknown; then |
||
13637 | # See if sys/param.h defines the BYTE_ORDER macro. |
||
13638 | cat >conftest.$ac_ext <<_ACEOF |
||
13639 | /* confdefs.h. */ |
||
13640 | _ACEOF |
||
13641 | cat confdefs.h >>conftest.$ac_ext |
||
13642 | cat >>conftest.$ac_ext <<_ACEOF |
||
13643 | /* end confdefs.h. */ |
||
13644 | #include |
||
13645 | #include |
||
13646 | |||
13647 | int |
||
13648 | main () |
||
13649 | { |
||
13650 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
||
13651 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
||
13652 | && LITTLE_ENDIAN) |
||
13653 | bogus endian macros |
||
13654 | #endif |
||
13655 | |||
13656 | ; |
||
13657 | return 0; |
||
13658 | } |
||
13659 | _ACEOF |
||
13660 | rm -f conftest.$ac_objext |
||
13661 | if { (ac_try="$ac_compile" |
||
13662 | case "(($ac_try" in |
||
13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13664 | *) ac_try_echo=$ac_try;; |
||
13665 | esac |
||
13666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13667 | $as_echo "$ac_try_echo") >&5 |
||
13668 | (eval "$ac_compile") 2>conftest.er1 |
||
13669 | ac_status=$? |
||
13670 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13671 | rm -f conftest.er1 |
||
13672 | cat conftest.err >&5 |
||
13673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13674 | (exit $ac_status); } && { |
||
13675 | test -z "$ac_c_werror_flag" || |
||
13676 | test ! -s conftest.err |
||
13677 | } && test -s conftest.$ac_objext; then |
||
13678 | # It does; now see whether it defined to BIG_ENDIAN or not. |
||
13679 | cat >conftest.$ac_ext <<_ACEOF |
||
13680 | /* confdefs.h. */ |
||
13681 | _ACEOF |
||
13682 | cat confdefs.h >>conftest.$ac_ext |
||
13683 | cat >>conftest.$ac_ext <<_ACEOF |
||
13684 | /* end confdefs.h. */ |
||
13685 | #include |
||
13686 | #include |
||
13687 | |||
13688 | int |
||
13689 | main () |
||
13690 | { |
||
13691 | #if BYTE_ORDER != BIG_ENDIAN |
||
13692 | not big endian |
||
13693 | #endif |
||
13694 | |||
13695 | ; |
||
13696 | return 0; |
||
13697 | } |
||
13698 | _ACEOF |
||
13699 | rm -f conftest.$ac_objext |
||
13700 | if { (ac_try="$ac_compile" |
||
13701 | case "(($ac_try" in |
||
13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13703 | *) ac_try_echo=$ac_try;; |
||
13704 | esac |
||
13705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13706 | $as_echo "$ac_try_echo") >&5 |
||
13707 | (eval "$ac_compile") 2>conftest.er1 |
||
13708 | ac_status=$? |
||
13709 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13710 | rm -f conftest.er1 |
||
13711 | cat conftest.err >&5 |
||
13712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13713 | (exit $ac_status); } && { |
||
13714 | test -z "$ac_c_werror_flag" || |
||
13715 | test ! -s conftest.err |
||
13716 | } && test -s conftest.$ac_objext; then |
||
13717 | ac_cv_c_bigendian=yes |
||
13718 | else |
||
13719 | $as_echo "$as_me: failed program was:" >&5 |
||
13720 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13721 | |||
13722 | ac_cv_c_bigendian=no |
||
13723 | fi |
||
13724 | |||
13725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13726 | else |
||
13727 | $as_echo "$as_me: failed program was:" >&5 |
||
13728 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13729 | |||
13730 | |||
13731 | fi |
||
13732 | |||
13733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13734 | fi |
||
13735 | if test $ac_cv_c_bigendian = unknown; then |
||
13736 | # See if |
||
13737 | cat >conftest.$ac_ext <<_ACEOF |
||
13738 | /* confdefs.h. */ |
||
13739 | _ACEOF |
||
13740 | cat confdefs.h >>conftest.$ac_ext |
||
13741 | cat >>conftest.$ac_ext <<_ACEOF |
||
13742 | /* end confdefs.h. */ |
||
13743 | #include |
||
13744 | |||
13745 | int |
||
13746 | main () |
||
13747 | { |
||
13748 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
||
13749 | bogus endian macros |
||
13750 | #endif |
||
13751 | |||
13752 | ; |
||
13753 | return 0; |
||
13754 | } |
||
13755 | _ACEOF |
||
13756 | rm -f conftest.$ac_objext |
||
13757 | if { (ac_try="$ac_compile" |
||
13758 | case "(($ac_try" in |
||
13759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13760 | *) ac_try_echo=$ac_try;; |
||
13761 | esac |
||
13762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13763 | $as_echo "$ac_try_echo") >&5 |
||
13764 | (eval "$ac_compile") 2>conftest.er1 |
||
13765 | ac_status=$? |
||
13766 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13767 | rm -f conftest.er1 |
||
13768 | cat conftest.err >&5 |
||
13769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13770 | (exit $ac_status); } && { |
||
13771 | test -z "$ac_c_werror_flag" || |
||
13772 | test ! -s conftest.err |
||
13773 | } && test -s conftest.$ac_objext; then |
||
13774 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
||
13775 | cat >conftest.$ac_ext <<_ACEOF |
||
13776 | /* confdefs.h. */ |
||
13777 | _ACEOF |
||
13778 | cat confdefs.h >>conftest.$ac_ext |
||
13779 | cat >>conftest.$ac_ext <<_ACEOF |
||
13780 | /* end confdefs.h. */ |
||
13781 | #include |
||
13782 | |||
13783 | int |
||
13784 | main () |
||
13785 | { |
||
13786 | #ifndef _BIG_ENDIAN |
||
13787 | not big endian |
||
13788 | #endif |
||
13789 | |||
13790 | ; |
||
13791 | return 0; |
||
13792 | } |
||
13793 | _ACEOF |
||
13794 | rm -f conftest.$ac_objext |
||
13795 | if { (ac_try="$ac_compile" |
||
13796 | case "(($ac_try" in |
||
13797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13798 | *) ac_try_echo=$ac_try;; |
||
13799 | esac |
||
13800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13801 | $as_echo "$ac_try_echo") >&5 |
||
13802 | (eval "$ac_compile") 2>conftest.er1 |
||
13803 | ac_status=$? |
||
13804 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13805 | rm -f conftest.er1 |
||
13806 | cat conftest.err >&5 |
||
13807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13808 | (exit $ac_status); } && { |
||
13809 | test -z "$ac_c_werror_flag" || |
||
13810 | test ! -s conftest.err |
||
13811 | } && test -s conftest.$ac_objext; then |
||
13812 | ac_cv_c_bigendian=yes |
||
13813 | else |
||
13814 | $as_echo "$as_me: failed program was:" >&5 |
||
13815 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13816 | |||
13817 | ac_cv_c_bigendian=no |
||
13818 | fi |
||
13819 | |||
13820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13821 | else |
||
13822 | $as_echo "$as_me: failed program was:" >&5 |
||
13823 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13824 | |||
13825 | |||
13826 | fi |
||
13827 | |||
13828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13829 | fi |
||
13830 | if test $ac_cv_c_bigendian = unknown; then |
||
13831 | # Compile a test program. |
||
13832 | if test "$cross_compiling" = yes; then |
||
13833 | # Try to guess by grepping values from an object file. |
||
13834 | cat >conftest.$ac_ext <<_ACEOF |
||
13835 | /* confdefs.h. */ |
||
13836 | _ACEOF |
||
13837 | cat confdefs.h >>conftest.$ac_ext |
||
13838 | cat >>conftest.$ac_ext <<_ACEOF |
||
13839 | /* end confdefs.h. */ |
||
13840 | short int ascii_mm[] = |
||
13841 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
||
13842 | short int ascii_ii[] = |
||
13843 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
||
13844 | int use_ascii (int i) { |
||
13845 | return ascii_mm[i] + ascii_ii[i]; |
||
13846 | } |
||
13847 | short int ebcdic_ii[] = |
||
13848 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
||
13849 | short int ebcdic_mm[] = |
||
13850 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
||
13851 | int use_ebcdic (int i) { |
||
13852 | return ebcdic_mm[i] + ebcdic_ii[i]; |
||
13853 | } |
||
13854 | extern int foo; |
||
13855 | |||
13856 | int |
||
13857 | main () |
||
13858 | { |
||
13859 | return use_ascii (foo) == use_ebcdic (foo); |
||
13860 | ; |
||
13861 | return 0; |
||
13862 | } |
||
13863 | _ACEOF |
||
13864 | rm -f conftest.$ac_objext |
||
13865 | if { (ac_try="$ac_compile" |
||
13866 | case "(($ac_try" in |
||
13867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13868 | *) ac_try_echo=$ac_try;; |
||
13869 | esac |
||
13870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13871 | $as_echo "$ac_try_echo") >&5 |
||
13872 | (eval "$ac_compile") 2>conftest.er1 |
||
13873 | ac_status=$? |
||
13874 | grep -v '^ *+' conftest.er1 >conftest.err |
||
13875 | rm -f conftest.er1 |
||
13876 | cat conftest.err >&5 |
||
13877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13878 | (exit $ac_status); } && { |
||
13879 | test -z "$ac_c_werror_flag" || |
||
13880 | test ! -s conftest.err |
||
13881 | } && test -s conftest.$ac_objext; then |
||
13882 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
||
13883 | ac_cv_c_bigendian=yes |
||
13884 | fi |
||
13885 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
||
13886 | if test "$ac_cv_c_bigendian" = unknown; then |
||
13887 | ac_cv_c_bigendian=no |
||
13888 | else |
||
13889 | # finding both strings is unlikely to happen, but who knows? |
||
13890 | ac_cv_c_bigendian=unknown |
||
13891 | fi |
||
13892 | fi |
||
13893 | else |
||
13894 | $as_echo "$as_me: failed program was:" >&5 |
||
13895 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13896 | |||
13897 | |||
13898 | fi |
||
13899 | |||
13900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
13901 | else |
||
13902 | cat >conftest.$ac_ext <<_ACEOF |
||
13903 | /* confdefs.h. */ |
||
13904 | _ACEOF |
||
13905 | cat confdefs.h >>conftest.$ac_ext |
||
13906 | cat >>conftest.$ac_ext <<_ACEOF |
||
13907 | /* end confdefs.h. */ |
||
13908 | $ac_includes_default |
||
13909 | int |
||
13910 | main () |
||
13911 | { |
||
13912 | |||
13913 | /* Are we little or big endian? From Harbison&Steele. */ |
||
13914 | union |
||
13915 | { |
||
13916 | long int l; |
||
13917 | char c[sizeof (long int)]; |
||
13918 | } u; |
||
13919 | u.l = 1; |
||
13920 | return u.c[sizeof (long int) - 1] == 1; |
||
13921 | |||
13922 | ; |
||
13923 | return 0; |
||
13924 | } |
||
13925 | _ACEOF |
||
13926 | rm -f conftest$ac_exeext |
||
13927 | if { (ac_try="$ac_link" |
||
13928 | case "(($ac_try" in |
||
13929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13930 | *) ac_try_echo=$ac_try;; |
||
13931 | esac |
||
13932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13933 | $as_echo "$ac_try_echo") >&5 |
||
13934 | (eval "$ac_link") 2>&5 |
||
13935 | ac_status=$? |
||
13936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
13938 | { (case "(($ac_try" in |
||
13939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
13940 | *) ac_try_echo=$ac_try;; |
||
13941 | esac |
||
13942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
13943 | $as_echo "$ac_try_echo") >&5 |
||
13944 | (eval "$ac_try") 2>&5 |
||
13945 | ac_status=$? |
||
13946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13947 | (exit $ac_status); }; }; then |
||
13948 | ac_cv_c_bigendian=no |
||
13949 | else |
||
13950 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
13951 | $as_echo "$as_me: failed program was:" >&5 |
||
13952 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
13953 | |||
13954 | ( exit $ac_status ) |
||
13955 | ac_cv_c_bigendian=yes |
||
13956 | fi |
||
13957 | rm -rf conftest.dSYM |
||
13958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
13959 | fi |
||
13960 | |||
13961 | |||
13962 | fi |
||
13963 | fi |
||
13964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
||
13965 | $as_echo "$ac_cv_c_bigendian" >&6; } |
||
13966 | case $ac_cv_c_bigendian in #( |
||
13967 | yes) |
||
13968 | cat >>confdefs.h <<\_ACEOF |
||
13969 | #define WORDS_BIGENDIAN 1 |
||
13970 | _ACEOF |
||
13971 | ;; #( |
||
13972 | no) |
||
13973 | ;; #( |
||
13974 | universal) |
||
13975 | |||
13976 | cat >>confdefs.h <<\_ACEOF |
||
13977 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
||
13978 | _ACEOF |
||
13979 | |||
13980 | ;; #( |
||
13981 | *) |
||
13982 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
||
13983 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
||
13984 | $as_echo "$as_me: error: unknown endianness |
||
13985 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
||
13986 | { (exit 1); exit 1; }; } ;; |
||
13987 | esac |
||
13988 | |||
13989 | |||
13990 | # Checks for library functions. |
||
13991 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
||
13992 | $as_echo_n "checking for working memcmp... " >&6; } |
||
13993 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
||
13994 | $as_echo_n "(cached) " >&6 |
||
13995 | else |
||
13996 | if test "$cross_compiling" = yes; then |
||
13997 | ac_cv_func_memcmp_working=no |
||
13998 | else |
||
13999 | cat >conftest.$ac_ext <<_ACEOF |
||
14000 | /* confdefs.h. */ |
||
14001 | _ACEOF |
||
14002 | cat confdefs.h >>conftest.$ac_ext |
||
14003 | cat >>conftest.$ac_ext <<_ACEOF |
||
14004 | /* end confdefs.h. */ |
||
14005 | $ac_includes_default |
||
14006 | int |
||
14007 | main () |
||
14008 | { |
||
14009 | |||
14010 | /* Some versions of memcmp are not 8-bit clean. */ |
||
14011 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
||
14012 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
||
14013 | return 1; |
||
14014 | |||
14015 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
||
14016 | or more and with at least one buffer not starting on a 4-byte boundary. |
||
14017 | William Lewis provided this test program. */ |
||
14018 | { |
||
14019 | char foo[21]; |
||
14020 | char bar[21]; |
||
14021 | int i; |
||
14022 | for (i = 0; i < 4; i++) |
||
14023 | { |
||
14024 | char *a = foo + i; |
||
14025 | char *b = bar + i; |
||
14026 | strcpy (a, "--------01111111"); |
||
14027 | strcpy (b, "--------10000000"); |
||
14028 | if (memcmp (a, b, 16) >= 0) |
||
14029 | return 1; |
||
14030 | } |
||
14031 | return 0; |
||
14032 | } |
||
14033 | |||
14034 | ; |
||
14035 | return 0; |
||
14036 | } |
||
14037 | _ACEOF |
||
14038 | rm -f conftest$ac_exeext |
||
14039 | if { (ac_try="$ac_link" |
||
14040 | case "(($ac_try" in |
||
14041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14042 | *) ac_try_echo=$ac_try;; |
||
14043 | esac |
||
14044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
14045 | $as_echo "$ac_try_echo") >&5 |
||
14046 | (eval "$ac_link") 2>&5 |
||
14047 | ac_status=$? |
||
14048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
14050 | { (case "(($ac_try" in |
||
14051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14052 | *) ac_try_echo=$ac_try;; |
||
14053 | esac |
||
14054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
14055 | $as_echo "$ac_try_echo") >&5 |
||
14056 | (eval "$ac_try") 2>&5 |
||
14057 | ac_status=$? |
||
14058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14059 | (exit $ac_status); }; }; then |
||
14060 | ac_cv_func_memcmp_working=yes |
||
14061 | else |
||
14062 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
14063 | $as_echo "$as_me: failed program was:" >&5 |
||
14064 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14065 | |||
14066 | ( exit $ac_status ) |
||
14067 | ac_cv_func_memcmp_working=no |
||
14068 | fi |
||
14069 | rm -rf conftest.dSYM |
||
14070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
14071 | fi |
||
14072 | |||
14073 | |||
14074 | fi |
||
14075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
||
14076 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
||
14077 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
||
14078 | *" memcmp.$ac_objext "* ) ;; |
||
14079 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
||
14080 | ;; |
||
14081 | esac |
||
14082 | |||
14083 | |||
14084 | |||
14085 | for ac_func in snprintf |
||
14086 | do |
||
14087 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
14088 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
14089 | $as_echo_n "checking for $ac_func... " >&6; } |
||
14090 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
||
14091 | $as_echo_n "(cached) " >&6 |
||
14092 | else |
||
14093 | cat >conftest.$ac_ext <<_ACEOF |
||
14094 | /* confdefs.h. */ |
||
14095 | _ACEOF |
||
14096 | cat confdefs.h >>conftest.$ac_ext |
||
14097 | cat >>conftest.$ac_ext <<_ACEOF |
||
14098 | /* end confdefs.h. */ |
||
14099 | /* Define $ac_func to an innocuous variant, in case |
||
14100 | For example, HP-UX 11i |
||
14101 | #define $ac_func innocuous_$ac_func |
||
14102 | |||
14103 | /* System header to define __stub macros and hopefully few prototypes, |
||
14104 | which can conflict with char $ac_func (); below. |
||
14105 | Prefer |
||
14106 |
|
||
14107 | |||
14108 | #ifdef __STDC__ |
||
14109 | # include |
||
14110 | #else |
||
14111 | # include |
||
14112 | #endif |
||
14113 | |||
14114 | #undef $ac_func |
||
14115 | |||
14116 | /* Override any GCC internal prototype to avoid an error. |
||
14117 | Use char because int might match the return type of a GCC |
||
14118 | builtin and then its argument prototype would still apply. */ |
||
14119 | #ifdef __cplusplus |
||
14120 | extern "C" |
||
14121 | #endif |
||
14122 | char $ac_func (); |
||
14123 | /* The GNU C library defines this for functions which it implements |
||
14124 | to always fail with ENOSYS. Some functions are actually named |
||
14125 | something starting with __ and the normal name is an alias. */ |
||
14126 | #if defined __stub_$ac_func || defined __stub___$ac_func |
||
14127 | choke me |
||
14128 | #endif |
||
14129 | |||
14130 | int |
||
14131 | main () |
||
14132 | { |
||
14133 | return $ac_func (); |
||
14134 | ; |
||
14135 | return 0; |
||
14136 | } |
||
14137 | _ACEOF |
||
14138 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
14139 | if { (ac_try="$ac_link" |
||
14140 | case "(($ac_try" in |
||
14141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14142 | *) ac_try_echo=$ac_try;; |
||
14143 | esac |
||
14144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
14145 | $as_echo "$ac_try_echo") >&5 |
||
14146 | (eval "$ac_link") 2>conftest.er1 |
||
14147 | ac_status=$? |
||
14148 | grep -v '^ *+' conftest.er1 >conftest.err |
||
14149 | rm -f conftest.er1 |
||
14150 | cat conftest.err >&5 |
||
14151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14152 | (exit $ac_status); } && { |
||
14153 | test -z "$ac_c_werror_flag" || |
||
14154 | test ! -s conftest.err |
||
14155 | } && test -s conftest$ac_exeext && { |
||
14156 | test "$cross_compiling" = yes || |
||
14157 | $as_test_x conftest$ac_exeext |
||
14158 | }; then |
||
14159 | eval "$as_ac_var=yes" |
||
14160 | else |
||
14161 | $as_echo "$as_me: failed program was:" >&5 |
||
14162 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14163 | |||
14164 | eval "$as_ac_var=no" |
||
14165 | fi |
||
14166 | |||
14167 | rm -rf conftest.dSYM |
||
14168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
14169 | conftest$ac_exeext conftest.$ac_ext |
||
14170 | fi |
||
14171 | ac_res=`eval 'as_val=${'$as_ac_var'} |
||
14172 | $as_echo "$as_val"'` |
||
14173 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
14174 | $as_echo "$ac_res" >&6; } |
||
14175 | as_val=`eval 'as_val=${'$as_ac_var'} |
||
14176 | $as_echo "$as_val"'` |
||
14177 | if test "x$as_val" = x""yes; then |
||
14178 | cat >>confdefs.h <<_ACEOF |
||
14179 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
14180 | _ACEOF |
||
14181 | |||
14182 | else |
||
14183 | case " $LIBOBJS " in |
||
14184 | *" $ac_func.$ac_objext "* ) ;; |
||
14185 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
||
14186 | ;; |
||
14187 | esac |
||
14188 | |||
14189 | fi |
||
14190 | done |
||
14191 | |||
14192 | |||
14193 | |||
14194 | |||
14195 | |||
14196 | for ac_func in memset strdup |
||
14197 | do |
||
14198 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
14199 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
14200 | $as_echo_n "checking for $ac_func... " >&6; } |
||
14201 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
||
14202 | $as_echo_n "(cached) " >&6 |
||
14203 | else |
||
14204 | cat >conftest.$ac_ext <<_ACEOF |
||
14205 | /* confdefs.h. */ |
||
14206 | _ACEOF |
||
14207 | cat confdefs.h >>conftest.$ac_ext |
||
14208 | cat >>conftest.$ac_ext <<_ACEOF |
||
14209 | /* end confdefs.h. */ |
||
14210 | /* Define $ac_func to an innocuous variant, in case |
||
14211 | For example, HP-UX 11i |
||
14212 | #define $ac_func innocuous_$ac_func |
||
14213 | |||
14214 | /* System header to define __stub macros and hopefully few prototypes, |
||
14215 | which can conflict with char $ac_func (); below. |
||
14216 | Prefer |
||
14217 |
|
||
14218 | |||
14219 | #ifdef __STDC__ |
||
14220 | # include |
||
14221 | #else |
||
14222 | # include |
||
14223 | #endif |
||
14224 | |||
14225 | #undef $ac_func |
||
14226 | |||
14227 | /* Override any GCC internal prototype to avoid an error. |
||
14228 | Use char because int might match the return type of a GCC |
||
14229 | builtin and then its argument prototype would still apply. */ |
||
14230 | #ifdef __cplusplus |
||
14231 | extern "C" |
||
14232 | #endif |
||
14233 | char $ac_func (); |
||
14234 | /* The GNU C library defines this for functions which it implements |
||
14235 | to always fail with ENOSYS. Some functions are actually named |
||
14236 | something starting with __ and the normal name is an alias. */ |
||
14237 | #if defined __stub_$ac_func || defined __stub___$ac_func |
||
14238 | choke me |
||
14239 | #endif |
||
14240 | |||
14241 | int |
||
14242 | main () |
||
14243 | { |
||
14244 | return $ac_func (); |
||
14245 | ; |
||
14246 | return 0; |
||
14247 | } |
||
14248 | _ACEOF |
||
14249 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
14250 | if { (ac_try="$ac_link" |
||
14251 | case "(($ac_try" in |
||
14252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14253 | *) ac_try_echo=$ac_try;; |
||
14254 | esac |
||
14255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
14256 | $as_echo "$ac_try_echo") >&5 |
||
14257 | (eval "$ac_link") 2>conftest.er1 |
||
14258 | ac_status=$? |
||
14259 | grep -v '^ *+' conftest.er1 >conftest.err |
||
14260 | rm -f conftest.er1 |
||
14261 | cat conftest.err >&5 |
||
14262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14263 | (exit $ac_status); } && { |
||
14264 | test -z "$ac_c_werror_flag" || |
||
14265 | test ! -s conftest.err |
||
14266 | } && test -s conftest$ac_exeext && { |
||
14267 | test "$cross_compiling" = yes || |
||
14268 | $as_test_x conftest$ac_exeext |
||
14269 | }; then |
||
14270 | eval "$as_ac_var=yes" |
||
14271 | else |
||
14272 | $as_echo "$as_me: failed program was:" >&5 |
||
14273 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14274 | |||
14275 | eval "$as_ac_var=no" |
||
14276 | fi |
||
14277 | |||
14278 | rm -rf conftest.dSYM |
||
14279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
14280 | conftest$ac_exeext conftest.$ac_ext |
||
14281 | fi |
||
14282 | ac_res=`eval 'as_val=${'$as_ac_var'} |
||
14283 | $as_echo "$as_val"'` |
||
14284 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
||
14285 | $as_echo "$ac_res" >&6; } |
||
14286 | as_val=`eval 'as_val=${'$as_ac_var'} |
||
14287 | $as_echo "$as_val"'` |
||
14288 | if test "x$as_val" = x""yes; then |
||
14289 | cat >>confdefs.h <<_ACEOF |
||
14290 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
14291 | _ACEOF |
||
14292 | |||
14293 | fi |
||
14294 | done |
||
14295 | |||
14296 | |||
14297 | { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5 |
||
14298 | $as_echo_n "checking for getopt_long... " >&6; } |
||
14299 | if test "${ac_cv_func_getopt_long+set}" = set; then |
||
14300 | $as_echo_n "(cached) " >&6 |
||
14301 | else |
||
14302 | cat >conftest.$ac_ext <<_ACEOF |
||
14303 | /* confdefs.h. */ |
||
14304 | _ACEOF |
||
14305 | cat confdefs.h >>conftest.$ac_ext |
||
14306 | cat >>conftest.$ac_ext <<_ACEOF |
||
14307 | /* end confdefs.h. */ |
||
14308 | /* Define getopt_long to an innocuous variant, in case |
||
14309 | For example, HP-UX 11i |
||
14310 | #define getopt_long innocuous_getopt_long |
||
14311 | |||
14312 | /* System header to define __stub macros and hopefully few prototypes, |
||
14313 | which can conflict with char getopt_long (); below. |
||
14314 | Prefer |
||
14315 |
|
||
14316 | |||
14317 | #ifdef __STDC__ |
||
14318 | # include |
||
14319 | #else |
||
14320 | # include |
||
14321 | #endif |
||
14322 | |||
14323 | #undef getopt_long |
||
14324 | |||
14325 | /* Override any GCC internal prototype to avoid an error. |
||
14326 | Use char because int might match the return type of a GCC |
||
14327 | builtin and then its argument prototype would still apply. */ |
||
14328 | #ifdef __cplusplus |
||
14329 | extern "C" |
||
14330 | #endif |
||
14331 | char getopt_long (); |
||
14332 | /* The GNU C library defines this for functions which it implements |
||
14333 | to always fail with ENOSYS. Some functions are actually named |
||
14334 | something starting with __ and the normal name is an alias. */ |
||
14335 | #if defined __stub_getopt_long || defined __stub___getopt_long |
||
14336 | choke me |
||
14337 | #endif |
||
14338 | |||
14339 | int |
||
14340 | main () |
||
14341 | { |
||
14342 | return getopt_long (); |
||
14343 | ; |
||
14344 | return 0; |
||
14345 | } |
||
14346 | _ACEOF |
||
14347 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
14348 | if { (ac_try="$ac_link" |
||
14349 | case "(($ac_try" in |
||
14350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
14351 | *) ac_try_echo=$ac_try;; |
||
14352 | esac |
||
14353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
||
14354 | $as_echo "$ac_try_echo") >&5 |
||
14355 | (eval "$ac_link") 2>conftest.er1 |
||
14356 | ac_status=$? |
||
14357 | grep -v '^ *+' conftest.er1 >conftest.err |
||
14358 | rm -f conftest.er1 |
||
14359 | cat conftest.err >&5 |
||
14360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
14361 | (exit $ac_status); } && { |
||
14362 | test -z "$ac_c_werror_flag" || |
||
14363 | test ! -s conftest.err |
||
14364 | } && test -s conftest$ac_exeext && { |
||
14365 | test "$cross_compiling" = yes || |
||
14366 | $as_test_x conftest$ac_exeext |
||
14367 | }; then |
||
14368 | ac_cv_func_getopt_long=yes |
||
14369 | else |
||
14370 | $as_echo "$as_me: failed program was:" >&5 |
||
14371 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
14372 | |||
14373 | ac_cv_func_getopt_long=no |
||
14374 | fi |
||
14375 | |||
14376 | rm -rf conftest.dSYM |
||
14377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
||
14378 | conftest$ac_exeext conftest.$ac_ext |
||
14379 | fi |
||
14380 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 |
||
14381 | $as_echo "$ac_cv_func_getopt_long" >&6; } |
||
14382 | if test "x$ac_cv_func_getopt_long" = x""yes; then |
||
14383 | |||
14384 | cat >>confdefs.h <<\_ACEOF |
||
14385 | #define HAVE_GETOPT_LONG /**/ |
||
14386 | _ACEOF |
||
14387 | |||
14388 | else |
||
14389 | |||
14390 | case " $LIBOBJS " in |
||
14391 | *" getopt.$ac_objext "* ) ;; |
||
14392 | *) LIBOBJS="$LIBOBJS getopt.$ac_objext" |
||
14393 | ;; |
||
14394 | esac |
||
14395 | |||
14396 | case " $LIBOBJS " in |
||
14397 | *" getopt1.$ac_objext "* ) ;; |
||
14398 | *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" |
||
14399 | ;; |
||
14400 | esac |
||
14401 | |||
14402 | |||
14403 | fi |
||
14404 | |||
14405 | |||
14406 | # generate output |
||
14407 | ac_config_files="$ac_config_files Makefile config_types.h" |
||
14408 | |||
14409 | cat >confcache <<\_ACEOF |
||
14410 | # This file is a shell script that caches the results of configure |
||
14411 | # tests run on this system so they can be shared between configure |
||
14412 | # scripts and configure runs, see configure's option --config-cache. |
||
14413 | # It is not useful on other systems. If it contains results you don't |
||
14414 | # want to keep, you may remove or edit it. |
||
14415 | # |
||
14416 | # config.status only pays attention to the cache file if you give it |
||
14417 | # the --recheck option to rerun configure. |
||
14418 | # |
||
14419 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
14420 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
14421 | # following values. |
||
14422 | |||
14423 | _ACEOF |
||
14424 | |||
14425 | # The following way of writing the cache mishandles newlines in values, |
||
14426 | # but we know of no workaround that is simple, portable, and efficient. |
||
14427 | # So, we kill variables containing newlines. |
||
14428 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
14429 | # and sets the high bit in the cache file unless we assign to the vars. |
||
14430 | ( |
||
14431 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
||
14432 | eval ac_val=\$$ac_var |
||
14433 | case $ac_val in #( |
||
14434 | *${as_nl}*) |
||
14435 | case $ac_var in #( |
||
14436 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
||
14437 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
14438 | esac |
||
14439 | case $ac_var in #( |
||
14440 | _ | IFS | as_nl) ;; #( |
||
14441 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
14442 | *) $as_unset $ac_var ;; |
||
14443 | esac ;; |
||
14444 | esac |
||
14445 | done |
||
14446 | |||
14447 | (set) 2>&1 | |
||
14448 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
||
14449 | *${as_nl}ac_space=\ *) |
||
14450 | # `set' does not quote correctly, so add quotes (double-quote |
||
14451 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
||
14452 | sed -n \ |
||
14453 | "s/'/'\\\\''/g; |
||
14454 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
14455 | ;; #( |
||
14456 | *) |
||
14457 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
14458 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
14459 | ;; |
||
14460 | esac | |
||
14461 | sort |
||
14462 | ) | |
||
14463 | sed ' |
||
14464 | /^ac_cv_env_/b end |
||
14465 | t clear |
||
14466 | :clear |
||
14467 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
14468 | t end |
||
14469 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
14470 | :end' >>confcache |
||
14471 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
||
14472 | if test -w "$cache_file"; then |
||
14473 | test "x$cache_file" != "x/dev/null" && |
||
14474 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
||
14475 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
||
14476 | cat confcache >$cache_file |
||
14477 | else |
||
14478 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
||
14479 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
||
14480 | fi |
||
14481 | fi |
||
14482 | rm -f confcache |
||
14483 | |||
14484 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
14485 | # Let make expand exec_prefix. |
||
14486 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
14487 | |||
14488 | DEFS=-DHAVE_CONFIG_H |
||
14489 | |||
14490 | ac_libobjs= |
||
14491 | ac_ltlibobjs= |
||
14492 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
14493 | # 1. Remove the extension, and $U if already installed. |
||
14494 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
||
14495 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
||
14496 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
||
14497 | # will be set to the directory where LIBOBJS objects are built. |
||
14498 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
||
14499 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
||
14500 | done |
||
14501 | LIBOBJS=$ac_libobjs |
||
14502 | |||
14503 | LTLIBOBJS=$ac_ltlibobjs |
||
14504 | |||
14505 | |||
14506 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
||
14507 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
||
14508 | Usually this means the macro was only invoked conditionally." >&5 |
||
14509 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
||
14510 | Usually this means the macro was only invoked conditionally." >&2;} |
||
14511 | { (exit 1); exit 1; }; } |
||
14512 | fi |
||
14513 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
14514 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
||
14515 | Usually this means the macro was only invoked conditionally." >&5 |
||
14516 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
||
14517 | Usually this means the macro was only invoked conditionally." >&2;} |
||
14518 | { (exit 1); exit 1; }; } |
||
14519 | fi |
||
14520 | |||
14521 | |||
14522 | : ${CONFIG_STATUS=./config.status} |
||
14523 | ac_write_fail=0 |
||
14524 | ac_clean_files_save=$ac_clean_files |
||
14525 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
14526 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
||
14527 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
14528 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
14529 | #! $SHELL |
||
14530 | # Generated by $as_me. |
||
14531 | # Run this file to recreate the current configuration. |
||
14532 | # Compiler output produced by configure, useful for debugging |
||
14533 | # configure, is in config.log if it exists. |
||
14534 | |||
14535 | debug=false |
||
14536 | ac_cs_recheck=false |
||
14537 | ac_cs_silent=false |
||
14538 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
14539 | _ACEOF |
||
14540 | |||
14541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
14542 | ## --------------------- ## |
||
14543 | ## M4sh Initialization. ## |
||
14544 | ## --------------------- ## |
||
14545 | |||
14546 | # Be more Bourne compatible |
||
14547 | DUALCASE=1; export DUALCASE # for MKS sh |
||
14548 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
14549 | emulate sh |
||
14550 | NULLCMD=: |
||
14551 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
14552 | # is contrary to our usage. Disable this feature. |
||
14553 | alias -g '${1+"$@"}'='"$@"' |
||
14554 | setopt NO_GLOB_SUBST |
||
14555 | else |
||
14556 | case `(set -o) 2>/dev/null` in |
||
14557 | *posix*) set -o posix ;; |
||
14558 | esac |
||
14559 | |||
14560 | fi |
||
14561 | |||
14562 | |||
14563 | |||
14564 | |||
14565 | # PATH needs CR |
||
14566 | # Avoid depending upon Character Ranges. |
||
14567 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
14568 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
14569 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
14570 | as_cr_digits='0123456789' |
||
14571 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
14572 | |||
14573 | as_nl=' |
||
14574 | ' |
||
14575 | export as_nl |
||
14576 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
14577 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
14578 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
14579 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
14580 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
14581 | as_echo='printf %s\n' |
||
14582 | as_echo_n='printf %s' |
||
14583 | else |
||
14584 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
14585 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
14586 | as_echo_n='/usr/ucb/echo -n' |
||
14587 | else |
||
14588 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
14589 | as_echo_n_body='eval |
||
14590 | arg=$1; |
||
14591 | case $arg in |
||
14592 | *"$as_nl"*) |
||
14593 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
14594 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
14595 | esac; |
||
14596 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
14597 | ' |
||
14598 | export as_echo_n_body |
||
14599 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
14600 | fi |
||
14601 | export as_echo_body |
||
14602 | as_echo='sh -c $as_echo_body as_echo' |
||
14603 | fi |
||
14604 | |||
14605 | # The user is always right. |
||
14606 | if test "${PATH_SEPARATOR+set}" != set; then |
||
14607 | PATH_SEPARATOR=: |
||
14608 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
14609 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
14610 | PATH_SEPARATOR=';' |
||
14611 | } |
||
14612 | fi |
||
14613 | |||
14614 | # Support unset when possible. |
||
14615 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
14616 | as_unset=unset |
||
14617 | else |
||
14618 | as_unset=false |
||
14619 | fi |
||
14620 | |||
14621 | |||
14622 | # IFS |
||
14623 | # We need space, tab and new line, in precisely that order. Quoting is |
||
14624 | # there to prevent editors from complaining about space-tab. |
||
14625 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
14626 | # splitting by setting IFS to empty value.) |
||
14627 | IFS=" "" $as_nl" |
||
14628 | |||
14629 | # Find who we are. Look in the path if we contain no directory separator. |
||
14630 | case $0 in |
||
14631 | *[\\/]* ) as_myself=$0 ;; |
||
14632 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
14633 | for as_dir in $PATH |
||
14634 | do |
||
14635 | IFS=$as_save_IFS |
||
14636 | test -z "$as_dir" && as_dir=. |
||
14637 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
14638 | done |
||
14639 | IFS=$as_save_IFS |
||
14640 | |||
14641 | ;; |
||
14642 | esac |
||
14643 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
14644 | # in which case we are not to be found in the path. |
||
14645 | if test "x$as_myself" = x; then |
||
14646 | as_myself=$0 |
||
14647 | fi |
||
14648 | if test ! -f "$as_myself"; then |
||
14649 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
14650 | { (exit 1); exit 1; } |
||
14651 | fi |
||
14652 | |||
14653 | # Work around bugs in pre-3.0 UWIN ksh. |
||
14654 | for as_var in ENV MAIL MAILPATH |
||
14655 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
||
14656 | done |
||
14657 | PS1='$ ' |
||
14658 | PS2='> ' |
||
14659 | PS4='+ ' |
||
14660 | |||
14661 | # NLS nuisances. |
||
14662 | LC_ALL=C |
||
14663 | export LC_ALL |
||
14664 | LANGUAGE=C |
||
14665 | export LANGUAGE |
||
14666 | |||
14667 | # Required to use basename. |
||
14668 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
14669 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
14670 | as_expr=expr |
||
14671 | else |
||
14672 | as_expr=false |
||
14673 | fi |
||
14674 | |||
14675 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
14676 | as_basename=basename |
||
14677 | else |
||
14678 | as_basename=false |
||
14679 | fi |
||
14680 | |||
14681 | |||
14682 | # Name of the executable. |
||
14683 | as_me=`$as_basename -- "$0" || |
||
14684 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
14685 | X"$0" : 'X\(//\)$' \| \ |
||
14686 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
14687 | $as_echo X/"$0" | |
||
14688 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
14689 | s//\1/ |
||
14690 | q |
||
14691 | } |
||
14692 | /^X\/\(\/\/\)$/{ |
||
14693 | s//\1/ |
||
14694 | q |
||
14695 | } |
||
14696 | /^X\/\(\/\).*/{ |
||
14697 | s//\1/ |
||
14698 | q |
||
14699 | } |
||
14700 | s/.*/./; q'` |
||
14701 | |||
14702 | # CDPATH. |
||
14703 | $as_unset CDPATH |
||
14704 | |||
14705 | |||
14706 | |||
14707 | as_lineno_1=$LINENO |
||
14708 | as_lineno_2=$LINENO |
||
14709 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
14710 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
||
14711 | |||
14712 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
14713 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
14714 | # line-number line after each line using $LINENO; the second 'sed' |
||
14715 | # does the real work. The second script uses 'N' to pair each |
||
14716 | # line-number line with the line containing $LINENO, and appends |
||
14717 | # trailing '-' during substitution so that $LINENO is not a special |
||
14718 | # case at line end. |
||
14719 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
14720 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
||
14721 | # E. McMahon (1931-1989) for sed's syntax. :-) |
||
14722 | sed -n ' |
||
14723 | p |
||
14724 | /[$]LINENO/= |
||
14725 | ' <$as_myself | |
||
14726 | sed ' |
||
14727 | s/[$]LINENO.*/&-/ |
||
14728 | t lineno |
||
14729 | b |
||
14730 | :lineno |
||
14731 | N |
||
14732 | :loop |
||
14733 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
14734 | t loop |
||
14735 | s/-\n.*// |
||
14736 | ' >$as_me.lineno && |
||
14737 | chmod +x "$as_me.lineno" || |
||
14738 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
||
14739 | { (exit 1); exit 1; }; } |
||
14740 | |||
14741 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
14742 | # (the dirname of $[0] is not the place where we might find the |
||
14743 | # original and so on. Autoconf is especially sensitive to this). |
||
14744 | . "./$as_me.lineno" |
||
14745 | # Exit status is that of the last command. |
||
14746 | exit |
||
14747 | } |
||
14748 | |||
14749 | |||
14750 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
14751 | as_dirname=dirname |
||
14752 | else |
||
14753 | as_dirname=false |
||
14754 | fi |
||
14755 | |||
14756 | ECHO_C= ECHO_N= ECHO_T= |
||
14757 | case `echo -n x` in |
||
14758 | -n*) |
||
14759 | case `echo 'x\c'` in |
||
14760 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
14761 | *) ECHO_C='\c';; |
||
14762 | esac;; |
||
14763 | *) |
||
14764 | ECHO_N='-n';; |
||
14765 | esac |
||
14766 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
14767 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
14768 | as_expr=expr |
||
14769 | else |
||
14770 | as_expr=false |
||
14771 | fi |
||
14772 | |||
14773 | rm -f conf$$ conf$$.exe conf$$.file |
||
14774 | if test -d conf$$.dir; then |
||
14775 | rm -f conf$$.dir/conf$$.file |
||
14776 | else |
||
14777 | rm -f conf$$.dir |
||
14778 | mkdir conf$$.dir 2>/dev/null |
||
14779 | fi |
||
14780 | if (echo >conf$$.file) 2>/dev/null; then |
||
14781 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
14782 | as_ln_s='ln -s' |
||
14783 | # ... but there are two gotchas: |
||
14784 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
14785 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
14786 | # In both cases, we have to default to `cp -p'. |
||
14787 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
14788 | as_ln_s='cp -p' |
||
14789 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
14790 | as_ln_s=ln |
||
14791 | else |
||
14792 | as_ln_s='cp -p' |
||
14793 | fi |
||
14794 | else |
||
14795 | as_ln_s='cp -p' |
||
14796 | fi |
||
14797 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
14798 | rmdir conf$$.dir 2>/dev/null |
||
14799 | |||
14800 | if mkdir -p . 2>/dev/null; then |
||
14801 | as_mkdir_p=: |
||
14802 | else |
||
14803 | test -d ./-p && rmdir ./-p |
||
14804 | as_mkdir_p=false |
||
14805 | fi |
||
14806 | |||
14807 | if test -x / >/dev/null 2>&1; then |
||
14808 | as_test_x='test -x' |
||
14809 | else |
||
14810 | if ls -dL / >/dev/null 2>&1; then |
||
14811 | as_ls_L_option=L |
||
14812 | else |
||
14813 | as_ls_L_option= |
||
14814 | fi |
||
14815 | as_test_x=' |
||
14816 | eval sh -c '\'' |
||
14817 | if test -d "$1"; then |
||
14818 | test -d "$1/."; |
||
14819 | else |
||
14820 | case $1 in |
||
14821 | -*)set "./$1";; |
||
14822 | esac; |
||
14823 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
||
14824 | ???[sx]*):;;*)false;;esac;fi |
||
14825 | '\'' sh |
||
14826 | ' |
||
14827 | fi |
||
14828 | as_executable_p=$as_test_x |
||
14829 | |||
14830 | # Sed expression to map a string onto a valid CPP name. |
||
14831 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
14832 | |||
14833 | # Sed expression to map a string onto a valid variable name. |
||
14834 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
14835 | |||
14836 | |||
14837 | exec 6>&1 |
||
14838 | |||
14839 | # Save the log message, to keep $[0] and so on meaningful, and to |
||
14840 | # report actual input values of CONFIG_FILES etc. instead of their |
||
14841 | # values after options handling. |
||
14842 | ac_log=" |
||
14843 | This file was extended by jbig2dec $as_me 0.11, which was |
||
14844 | generated by GNU Autoconf 2.63. Invocation command line was |
||
14845 | |||
14846 | CONFIG_FILES = $CONFIG_FILES |
||
14847 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
14848 | CONFIG_LINKS = $CONFIG_LINKS |
||
14849 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
14850 | $ $0 $@ |
||
14851 | |||
14852 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
14853 | " |
||
14854 | |||
14855 | _ACEOF |
||
14856 | |||
14857 | case $ac_config_files in *" |
||
14858 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
||
14859 | esac |
||
14860 | |||
14861 | case $ac_config_headers in *" |
||
14862 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
||
14863 | esac |
||
14864 | |||
14865 | |||
14866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
14867 | # Files that config.status was made for. |
||
14868 | config_files="$ac_config_files" |
||
14869 | config_headers="$ac_config_headers" |
||
14870 | config_commands="$ac_config_commands" |
||
14871 | |||
14872 | _ACEOF |
||
14873 | |||
14874 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
14875 | ac_cs_usage="\ |
||
14876 | \`$as_me' instantiates files from templates according to the |
||
14877 | current configuration. |
||
14878 | |||
14879 | Usage: $0 [OPTION]... [FILE]... |
||
14880 | |||
14881 | -h, --help print this help, then exit |
||
14882 | -V, --version print version number and configuration settings, then exit |
||
14883 | -q, --quiet, --silent |
||
14884 | do not print progress messages |
||
14885 | -d, --debug don't remove temporary files |
||
14886 | --recheck update $as_me by reconfiguring in the same conditions |
||
14887 | --file=FILE[:TEMPLATE] |
||
14888 | instantiate the configuration file FILE |
||
14889 | --header=FILE[:TEMPLATE] |
||
14890 | instantiate the configuration header FILE |
||
14891 | |||
14892 | Configuration files: |
||
14893 | $config_files |
||
14894 | |||
14895 | Configuration headers: |
||
14896 | $config_headers |
||
14897 | |||
14898 | Configuration commands: |
||
14899 | $config_commands |
||
14900 | |||
14901 | Report bugs to |
||
14902 | |||
14903 | _ACEOF |
||
14904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
14905 | ac_cs_version="\\ |
||
14906 | jbig2dec config.status 0.11 |
||
14907 | configured by $0, generated by GNU Autoconf 2.63, |
||
14908 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
||
14909 | |||
14910 | Copyright (C) 2008 Free Software Foundation, Inc. |
||
14911 | This config.status script is free software; the Free Software Foundation |
||
14912 | gives unlimited permission to copy, distribute and modify it." |
||
14913 | |||
14914 | ac_pwd='$ac_pwd' |
||
14915 | srcdir='$srcdir' |
||
14916 | INSTALL='$INSTALL' |
||
14917 | AWK='$AWK' |
||
14918 | test -n "\$AWK" || AWK=awk |
||
14919 | _ACEOF |
||
14920 | |||
14921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
14922 | # The default lists apply if the user does not specify any file. |
||
14923 | ac_need_defaults=: |
||
14924 | while test $# != 0 |
||
14925 | do |
||
14926 | case $1 in |
||
14927 | --*=*) |
||
14928 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
14929 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
||
14930 | ac_shift=: |
||
14931 | ;; |
||
14932 | *) |
||
14933 | ac_option=$1 |
||
14934 | ac_optarg=$2 |
||
14935 | ac_shift=shift |
||
14936 | ;; |
||
14937 | esac |
||
14938 | |||
14939 | case $ac_option in |
||
14940 | # Handling of the options. |
||
14941 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
14942 | ac_cs_recheck=: ;; |
||
14943 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
||
14944 | $as_echo "$ac_cs_version"; exit ;; |
||
14945 | --debug | --debu | --deb | --de | --d | -d ) |
||
14946 | debug=: ;; |
||
14947 | --file | --fil | --fi | --f ) |
||
14948 | $ac_shift |
||
14949 | case $ac_optarg in |
||
14950 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
14951 | esac |
||
14952 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
||
14953 | ac_need_defaults=false;; |
||
14954 | --header | --heade | --head | --hea ) |
||
14955 | $ac_shift |
||
14956 | case $ac_optarg in |
||
14957 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
14958 | esac |
||
14959 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
||
14960 | ac_need_defaults=false;; |
||
14961 | --he | --h) |
||
14962 | # Conflict between --help and --header |
||
14963 | { $as_echo "$as_me: error: ambiguous option: $1 |
||
14964 | Try \`$0 --help' for more information." >&2 |
||
14965 | { (exit 1); exit 1; }; };; |
||
14966 | --help | --hel | -h ) |
||
14967 | $as_echo "$ac_cs_usage"; exit ;; |
||
14968 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
14969 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
14970 | ac_cs_silent=: ;; |
||
14971 | |||
14972 | # This is an error. |
||
14973 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
||
14974 | Try \`$0 --help' for more information." >&2 |
||
14975 | { (exit 1); exit 1; }; } ;; |
||
14976 | |||
14977 | *) ac_config_targets="$ac_config_targets $1" |
||
14978 | ac_need_defaults=false ;; |
||
14979 | |||
14980 | esac |
||
14981 | shift |
||
14982 | done |
||
14983 | |||
14984 | ac_configure_extra_args= |
||
14985 | |||
14986 | if $ac_cs_silent; then |
||
14987 | exec 6>/dev/null |
||
14988 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
14989 | fi |
||
14990 | |||
14991 | _ACEOF |
||
14992 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
14993 | if \$ac_cs_recheck; then |
||
14994 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
14995 | shift |
||
14996 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
||
14997 | CONFIG_SHELL='$SHELL' |
||
14998 | export CONFIG_SHELL |
||
14999 | exec "\$@" |
||
15000 | fi |
||
15001 | |||
15002 | _ACEOF |
||
15003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
15004 | exec 5>>config.log |
||
15005 | { |
||
15006 | echo |
||
15007 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
15008 | ## Running $as_me. ## |
||
15009 | _ASBOX |
||
15010 | $as_echo "$ac_log" |
||
15011 | } >&5 |
||
15012 | |||
15013 | _ACEOF |
||
15014 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
15015 | # |
||
15016 | # INIT-COMMANDS |
||
15017 | # |
||
15018 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
||
15019 | |||
15020 | |||
15021 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
15022 | # if CDPATH is set. |
||
15023 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
15024 | |||
15025 | sed_quote_subst='$sed_quote_subst' |
||
15026 | double_quote_subst='$double_quote_subst' |
||
15027 | delay_variable_subst='$delay_variable_subst' |
||
15028 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
||
15029 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
||
15030 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
||
15031 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
||
15032 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
||
15033 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
||
15034 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
||
15035 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
||
15036 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
||
15037 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
||
15038 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
||
15039 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
||
15040 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
||
15041 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
||
15042 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15043 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15044 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15045 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
||
15046 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
||
15047 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
||
15048 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
||
15049 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
||
15050 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
||
15051 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
||
15052 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
||
15053 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15054 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
||
15055 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15056 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15057 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
||
15058 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
||
15059 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
||
15060 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
||
15061 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
||
15062 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
||
15063 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15064 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15065 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15066 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
||
15067 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
||
15068 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
||
15069 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
||
15070 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
||
15071 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
||
15072 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
||
15073 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
||
15074 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
||
15075 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
||
15076 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
||
15077 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
||
15078 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
||
15079 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
||
15080 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
||
15081 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
||
15082 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
||
15083 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
||
15084 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
||
15085 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
||
15086 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
||
15087 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
||
15088 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
||
15089 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
||
15090 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15091 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15092 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
||
15093 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
||
15094 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15095 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15096 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
||
15097 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15098 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15099 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15100 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15101 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15102 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15103 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
||
15104 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
||
15105 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
||
15106 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15107 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
||
15108 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
||
15109 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
||
15110 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
||
15111 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
||
15112 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
||
15113 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
||
15114 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
||
15115 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
||
15116 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
||
15117 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
||
15118 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15119 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
||
15120 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
||
15121 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15122 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15123 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
||
15124 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
||
15125 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
||
15126 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
||
15127 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
||
15128 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
||
15129 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
||
15130 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15131 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15132 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15133 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15134 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15135 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
||
15136 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
||
15137 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
||
15138 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15139 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
||
15140 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
||
15141 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
||
15142 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
||
15143 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
||
15144 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
||
15145 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
||
15146 | |||
15147 | LTCC='$LTCC' |
||
15148 | LTCFLAGS='$LTCFLAGS' |
||
15149 | compiler='$compiler_DEFAULT' |
||
15150 | |||
15151 | # Quote evaled strings. |
||
15152 | for var in SED \ |
||
15153 | GREP \ |
||
15154 | EGREP \ |
||
15155 | FGREP \ |
||
15156 | LD \ |
||
15157 | NM \ |
||
15158 | LN_S \ |
||
15159 | lt_SP2NL \ |
||
15160 | lt_NL2SP \ |
||
15161 | reload_flag \ |
||
15162 | OBJDUMP \ |
||
15163 | deplibs_check_method \ |
||
15164 | file_magic_cmd \ |
||
15165 | AR \ |
||
15166 | AR_FLAGS \ |
||
15167 | STRIP \ |
||
15168 | RANLIB \ |
||
15169 | CC \ |
||
15170 | CFLAGS \ |
||
15171 | compiler \ |
||
15172 | lt_cv_sys_global_symbol_pipe \ |
||
15173 | lt_cv_sys_global_symbol_to_cdecl \ |
||
15174 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
15175 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
||
15176 | SHELL \ |
||
15177 | ECHO \ |
||
15178 | lt_prog_compiler_no_builtin_flag \ |
||
15179 | lt_prog_compiler_wl \ |
||
15180 | lt_prog_compiler_pic \ |
||
15181 | lt_prog_compiler_static \ |
||
15182 | lt_cv_prog_compiler_c_o \ |
||
15183 | need_locks \ |
||
15184 | DSYMUTIL \ |
||
15185 | NMEDIT \ |
||
15186 | LIPO \ |
||
15187 | OTOOL \ |
||
15188 | OTOOL64 \ |
||
15189 | shrext_cmds \ |
||
15190 | export_dynamic_flag_spec \ |
||
15191 | whole_archive_flag_spec \ |
||
15192 | compiler_needs_object \ |
||
15193 | with_gnu_ld \ |
||
15194 | allow_undefined_flag \ |
||
15195 | no_undefined_flag \ |
||
15196 | hardcode_libdir_flag_spec \ |
||
15197 | hardcode_libdir_flag_spec_ld \ |
||
15198 | hardcode_libdir_separator \ |
||
15199 | fix_srcfile_path \ |
||
15200 | exclude_expsyms \ |
||
15201 | include_expsyms \ |
||
15202 | file_list_spec \ |
||
15203 | variables_saved_for_relink \ |
||
15204 | libname_spec \ |
||
15205 | library_names_spec \ |
||
15206 | soname_spec \ |
||
15207 | finish_eval \ |
||
15208 | old_striplib \ |
||
15209 | striplib; do |
||
15210 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
||
15211 | *[\\\\\\\`\\"\\\$]*) |
||
15212 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
||
15213 | ;; |
||
15214 | *) |
||
15215 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
15216 | ;; |
||
15217 | esac |
||
15218 | done |
||
15219 | |||
15220 | # Double-quote double-evaled strings. |
||
15221 | for var in reload_cmds \ |
||
15222 | old_postinstall_cmds \ |
||
15223 | old_postuninstall_cmds \ |
||
15224 | old_archive_cmds \ |
||
15225 | extract_expsyms_cmds \ |
||
15226 | old_archive_from_new_cmds \ |
||
15227 | old_archive_from_expsyms_cmds \ |
||
15228 | archive_cmds \ |
||
15229 | archive_expsym_cmds \ |
||
15230 | module_cmds \ |
||
15231 | module_expsym_cmds \ |
||
15232 | export_symbols_cmds \ |
||
15233 | prelink_cmds \ |
||
15234 | postinstall_cmds \ |
||
15235 | postuninstall_cmds \ |
||
15236 | finish_cmds \ |
||
15237 | sys_lib_search_path_spec \ |
||
15238 | sys_lib_dlsearch_path_spec; do |
||
15239 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
||
15240 | *[\\\\\\\`\\"\\\$]*) |
||
15241 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
||
15242 | ;; |
||
15243 | *) |
||
15244 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
15245 | ;; |
||
15246 | esac |
||
15247 | done |
||
15248 | |||
15249 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
||
15250 | case \$lt_ECHO in |
||
15251 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
||
15252 | ;; |
||
15253 | esac |
||
15254 | |||
15255 | ac_aux_dir='$ac_aux_dir' |
||
15256 | xsi_shell='$xsi_shell' |
||
15257 | lt_shell_append='$lt_shell_append' |
||
15258 | |||
15259 | # See if we are running on zsh, and set the options which allow our |
||
15260 | # commands through without removal of \ escapes INIT. |
||
15261 | if test -n "\${ZSH_VERSION+set}" ; then |
||
15262 | setopt NO_GLOB_SUBST |
||
15263 | fi |
||
15264 | |||
15265 | |||
15266 | PACKAGE='$PACKAGE' |
||
15267 | VERSION='$VERSION' |
||
15268 | TIMESTAMP='$TIMESTAMP' |
||
15269 | RM='$RM' |
||
15270 | ofile='$ofile' |
||
15271 | |||
15272 | |||
15273 | |||
15274 | |||
15275 | _ACEOF |
||
15276 | |||
15277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
15278 | |||
15279 | # Handling of arguments. |
||
15280 | for ac_config_target in $ac_config_targets |
||
15281 | do |
||
15282 | case $ac_config_target in |
||
15283 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
||
15284 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
||
15285 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
||
15286 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
15287 | "config_types.h") CONFIG_FILES="$CONFIG_FILES config_types.h" ;; |
||
15288 | |||
15289 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
||
15290 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
||
15291 | { (exit 1); exit 1; }; };; |
||
15292 | esac |
||
15293 | done |
||
15294 | |||
15295 | |||
15296 | # If the user did not use the arguments to specify the items to instantiate, |
||
15297 | # then the envvar interface is used. Set only those that are not. |
||
15298 | # We use the long form for the default assignment because of an extremely |
||
15299 | # bizarre bug on SunOS 4.1.3. |
||
15300 | if $ac_need_defaults; then |
||
15301 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
15302 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
||
15303 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
||
15304 | fi |
||
15305 | |||
15306 | # Have a temporary directory for convenience. Make it in the build tree |
||
15307 | # simply because there is no reason against having it here, and in addition, |
||
15308 | # creating and moving files from /tmp can sometimes cause problems. |
||
15309 | # Hook for its removal unless debugging. |
||
15310 | # Note that there is a small window in which the directory will not be cleaned: |
||
15311 | # after its creation but before its name has been assigned to `$tmp'. |
||
15312 | $debug || |
||
15313 | { |
||
15314 | tmp= |
||
15315 | trap 'exit_status=$? |
||
15316 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
||
15317 | ' 0 |
||
15318 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
||
15319 | } |
||
15320 | # Create a (secure) tmp directory for tmp files. |
||
15321 | |||
15322 | { |
||
15323 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
||
15324 | test -n "$tmp" && test -d "$tmp" |
||
15325 | } || |
||
15326 | { |
||
15327 | tmp=./conf$$-$RANDOM |
||
15328 | (umask 077 && mkdir "$tmp") |
||
15329 | } || |
||
15330 | { |
||
15331 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
||
15332 | { (exit 1); exit 1; } |
||
15333 | } |
||
15334 | |||
15335 | # Set up the scripts for CONFIG_FILES section. |
||
15336 | # No need to generate them if there are no CONFIG_FILES. |
||
15337 | # This happens for instance with `./config.status config.h'. |
||
15338 | if test -n "$CONFIG_FILES"; then |
||
15339 | |||
15340 | |||
15341 | ac_cr=' ' |
||
15342 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` |
||
15343 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
||
15344 | ac_cs_awk_cr='\\r' |
||
15345 | else |
||
15346 | ac_cs_awk_cr=$ac_cr |
||
15347 | fi |
||
15348 | |||
15349 | |||
15350 | _ACEOF |
||
15351 | |||
15352 | |||
15353 | |||
15354 | echo "cat >conf$$subs.awk <<_ACEOF" && |
||
15355 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
||
15356 | echo "_ACEOF" |
||
15357 | } >conf$$subs.sh || |
||
15358 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
||
15359 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
||
15360 | { (exit 1); exit 1; }; } |
||
15361 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
||
15362 | ac_delim='%!_!# ' |
||
15363 | for ac_last_try in false false false false false :; do |
||
15364 | . ./conf$$subs.sh || |
||
15365 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
||
15366 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
||
15367 | { (exit 1); exit 1; }; } |
||
15368 | |||
15369 | |||
15370 | if test $ac_delim_n = $ac_delim_num; then |
||
15371 | break |
||
15372 | elif $ac_last_try; then |
||
15373 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
||
15374 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
||
15375 | { (exit 1); exit 1; }; } |
||
15376 | else |
||
15377 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
15378 | fi |
||
15379 | done |
||
15380 | rm -f conf$$subs.sh |
||
15381 | |||
15382 | |||
15383 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
||
15384 | _ACEOF |
||
15385 | sed -n ' |
||
15386 | h |
||
15387 | s/^/S["/; s/!.*/"]=/ |
||
15388 | p |
||
15389 | g |
||
15390 | s/^[^!]*!// |
||
15391 | :repl |
||
15392 | t repl |
||
15393 | s/'"$ac_delim"'$// |
||
15394 | t delim |
||
15395 | :nl |
||
15396 | h |
||
15397 | s/\(.\{148\}\).*/\1/ |
||
15398 | t more1 |
||
15399 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
||
15400 | p |
||
15401 | n |
||
15402 | b repl |
||
15403 | :more1 |
||
15404 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
15405 | p |
||
15406 | g |
||
15407 | s/.\{148\}// |
||
15408 | t nl |
||
15409 | :delim |
||
15410 | h |
||
15411 | s/\(.\{148\}\).*/\1/ |
||
15412 | t more2 |
||
15413 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
||
15414 | p |
||
15415 | b |
||
15416 | :more2 |
||
15417 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
15418 | p |
||
15419 | g |
||
15420 | s/.\{148\}// |
||
15421 | t delim |
||
15422 | ' |
||
15423 | /^[^""]/{ |
||
15424 | N |
||
15425 | s/\n// |
||
15426 | } |
||
15427 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
||
15428 | rm -f conf$$subs.awk |
||
15429 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
15430 | _ACAWK |
||
15431 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
||
15432 | for (key in S) S_is_set[key] = 1 |
||
15433 | FS = "" |
||
15434 | |||
15435 | |||
15436 | { |
||
15437 | line = $ 0 |
||
15438 | nfields = split(line, field, "@") |
||
15439 | substed = 0 |
||
15440 | len = length(field[1]) |
||
15441 | for (i = 2; i < nfields; i++) { |
||
15442 | key = field[i] |
||
15443 | keylen = length(key) |
||
15444 | if (S_is_set[key]) { |
||
15445 | value = S[key] |
||
15446 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
||
15447 | len += length(value) + length(field[++i]) |
||
15448 | substed = 1 |
||
15449 | } else |
||
15450 | len += 1 + keylen |
||
15451 | } |
||
15452 | |||
15453 | |||
15454 | } |
||
15455 | |||
15456 | |||
15457 | _ACEOF |
||
15458 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
15459 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
||
15460 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
||
15461 | else |
||
15462 | cat |
||
15463 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
||
15464 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
||
15465 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
||
15466 | { (exit 1); exit 1; }; } |
||
15467 | _ACEOF |
||
15468 | |||
15469 | |||
15470 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
||
15471 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
15472 | # (actually we leave an empty line to preserve line numbers). |
||
15473 | if test "x$srcdir" = x.; then |
||
15474 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
||
15475 | s/:*\$(srcdir):*/:/ |
||
15476 | s/:*\${srcdir}:*/:/ |
||
15477 | s/:*@srcdir@:*/:/ |
||
15478 | s/^\([^=]*=[ ]*\):*/\1/ |
||
15479 | s/:*$// |
||
15480 | s/^[^=]*=[ ]*$// |
||
15481 | }' |
||
15482 | fi |
||
15483 | |||
15484 | |||
15485 | fi # test -n "$CONFIG_FILES" |
||
15486 | |||
15487 | |||
15488 | # No need to generate them if there are no CONFIG_HEADERS. |
||
15489 | # This happens for instance with `./config.status Makefile'. |
||
15490 | if test -n "$CONFIG_HEADERS"; then |
||
15491 | cat >"$tmp/defines.awk" <<\_ACAWK || |
||
15492 | BEGIN { |
||
15493 | _ACEOF |
||
15494 | |||
15495 | |||
15496 | # here-document in config.status, that substitutes the proper values into |
||
15497 | # config.h.in to produce config.h. |
||
15498 | |||
15499 | |||
15500 | # handling of long lines. |
||
15501 | ac_delim='%!_!# ' |
||
15502 | for ac_last_try in false false :; do |
||
15503 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
||
15504 | if test -z "$ac_t"; then |
||
15505 | break |
||
15506 | elif $ac_last_try; then |
||
15507 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
||
15508 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
||
15509 | { (exit 1); exit 1; }; } |
||
15510 | else |
||
15511 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
15512 | fi |
||
15513 | done |
||
15514 | |||
15515 | |||
15516 | # likewise P contains macro parameters if any. Preserve backslash |
||
15517 | # newline sequences. |
||
15518 | |||
15519 | |||
15520 | sed -n ' |
||
15521 | s/.\{148\}/&'"$ac_delim"'/g |
||
15522 | t rset |
||
15523 | :rset |
||
15524 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
||
15525 | t def |
||
15526 | d |
||
15527 | :def |
||
15528 | s/\\$// |
||
15529 | t bsnl |
||
15530 | s/["\\]/\\&/g |
||
15531 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
15532 | D["\1"]=" \3"/p |
||
15533 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
||
15534 | d |
||
15535 | :bsnl |
||
15536 | s/["\\]/\\&/g |
||
15537 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
15538 | D["\1"]=" \3\\\\\\n"\\/p |
||
15539 | t cont |
||
15540 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
||
15541 | t cont |
||
15542 | d |
||
15543 | :cont |
||
15544 | n |
||
15545 | s/.\{148\}/&'"$ac_delim"'/g |
||
15546 | t clear |
||
15547 | :clear |
||
15548 | s/\\$// |
||
15549 | t bsnlc |
||
15550 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
||
15551 | d |
||
15552 | :bsnlc |
||
15553 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
||
15554 | b cont |
||
15555 | ' |
||
15556 | s/'"$ac_delim"'/"\\\ |
||
15557 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
||
15558 | |||
15559 | |||
15560 | for (key in D) D_is_set[key] = 1 |
||
15561 | FS = "" |
||
15562 | } |
||
15563 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
||
15564 | line = \$ 0 |
||
15565 | split(line, arg, " ") |
||
15566 | if (arg[1] == "#") { |
||
15567 | defundef = arg[2] |
||
15568 | mac1 = arg[3] |
||
15569 | } else { |
||
15570 | defundef = substr(arg[1], 2) |
||
15571 | mac1 = arg[2] |
||
15572 | } |
||
15573 | split(mac1, mac2, "(") #) |
||
15574 | macro = mac2[1] |
||
15575 | prefix = substr(line, 1, index(line, defundef) - 1) |
||
15576 | if (D_is_set[macro]) { |
||
15577 | # Preserve the white space surrounding the "#". |
||
15578 | print prefix "define", macro P[macro] D[macro] |
||
15579 | next |
||
15580 | } else { |
||
15581 | # Replace #undef with comments. This is necessary, for example, |
||
15582 | # in the case of _POSIX_SOURCE, which is predefined and required |
||
15583 | # on some systems where configure will not decide to define it. |
||
15584 | if (defundef == "undef") { |
||
15585 | print "/*", prefix defundef, macro, "*/" |
||
15586 | next |
||
15587 | } |
||
15588 | } |
||
15589 | } |
||
15590 | { print } |
||
15591 | _ACAWK |
||
15592 | _ACEOF |
||
15593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
15594 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
||
15595 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
||
15596 | { (exit 1); exit 1; }; } |
||
15597 | fi # test -n "$CONFIG_HEADERS" |
||
15598 | |||
15599 | |||
15600 | |||
15601 | shift |
||
15602 | for ac_tag |
||
15603 | do |
||
15604 | case $ac_tag in |
||
15605 | :[FHLC]) ac_mode=$ac_tag; continue;; |
||
15606 | esac |
||
15607 | case $ac_mode$ac_tag in |
||
15608 | :[FHL]*:*);; |
||
15609 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
||
15610 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
||
15611 | { (exit 1); exit 1; }; };; |
||
15612 | :[FH]-) ac_tag=-:-;; |
||
15613 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
||
15614 | esac |
||
15615 | ac_save_IFS=$IFS |
||
15616 | IFS=: |
||
15617 | set x $ac_tag |
||
15618 | IFS=$ac_save_IFS |
||
15619 | shift |
||
15620 | ac_file=$1 |
||
15621 | shift |
||
15622 | |||
15623 | |||
15624 | :L) ac_source=$1;; |
||
15625 | :[FH]) |
||
15626 | ac_file_inputs= |
||
15627 | for ac_f |
||
15628 | do |
||
15629 | case $ac_f in |
||
15630 | -) ac_f="$tmp/stdin";; |
||
15631 | *) # Look for the file first in the build tree, then in the source tree |
||
15632 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
||
15633 | # because $ac_f cannot contain `:'. |
||
15634 | test -f "$ac_f" || |
||
15635 | case $ac_f in |
||
15636 | [\\/$]*) false;; |
||
15637 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
||
15638 | esac || |
||
15639 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
||
15640 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
||
15641 | { (exit 1); exit 1; }; };; |
||
15642 | esac |
||
15643 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
||
15644 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
||
15645 | done |
||
15646 | |||
15647 | |||
15648 | # use $as_me), people would be surprised to read: |
||
15649 | # /* config.h. Generated by config.status. */ |
||
15650 | configure_input='Generated from '` |
||
15651 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
||
15652 | `' by configure.' |
||
15653 | if test x"$ac_file" != x-; then |
||
15654 | configure_input="$ac_file. $configure_input" |
||
15655 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
||
15656 | $as_echo "$as_me: creating $ac_file" >&6;} |
||
15657 | fi |
||
15658 | # Neutralize special characters interpreted by sed in replacement strings. |
||
15659 | case $configure_input in #( |
||
15660 | *\&* | *\|* | *\\* ) |
||
15661 | ac_sed_conf_input=`$as_echo "$configure_input" | |
||
15662 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
||
15663 | *) ac_sed_conf_input=$configure_input;; |
||
15664 | esac |
||
15665 | |||
15666 | |||
15667 | *:-:* | *:-) cat >"$tmp/stdin" \ |
||
15668 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
||
15669 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
||
15670 | { (exit 1); exit 1; }; } ;; |
||
15671 | esac |
||
15672 | ;; |
||
15673 | esac |
||
15674 | |||
15675 | |||
15676 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
15677 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
15678 | X"$ac_file" : 'X\(//\)$' \| \ |
||
15679 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
15680 | $as_echo X"$ac_file" | |
||
15681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
15682 | s//\1/ |
||
15683 | q |
||
15684 | } |
||
15685 | /^X\(\/\/\)[^/].*/{ |
||
15686 | s//\1/ |
||
15687 | q |
||
15688 | } |
||
15689 | /^X\(\/\/\)$/{ |
||
15690 | s//\1/ |
||
15691 | q |
||
15692 | } |
||
15693 | /^X\(\/\).*/{ |
||
15694 | s//\1/ |
||
15695 | q |
||
15696 | } |
||
15697 | s/.*/./; q'` |
||
15698 | { as_dir="$ac_dir" |
||
15699 | case $as_dir in #( |
||
15700 | -*) as_dir=./$as_dir;; |
||
15701 | esac |
||
15702 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
||
15703 | as_dirs= |
||
15704 | while :; do |
||
15705 | case $as_dir in #( |
||
15706 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
15707 | *) as_qdir=$as_dir;; |
||
15708 | esac |
||
15709 | as_dirs="'$as_qdir' $as_dirs" |
||
15710 | as_dir=`$as_dirname -- "$as_dir" || |
||
15711 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
15712 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
15713 | X"$as_dir" : 'X\(//\)$' \| \ |
||
15714 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
15715 | $as_echo X"$as_dir" | |
||
15716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
15717 | s//\1/ |
||
15718 | q |
||
15719 | } |
||
15720 | /^X\(\/\/\)[^/].*/{ |
||
15721 | s//\1/ |
||
15722 | q |
||
15723 | } |
||
15724 | /^X\(\/\/\)$/{ |
||
15725 | s//\1/ |
||
15726 | q |
||
15727 | } |
||
15728 | /^X\(\/\).*/{ |
||
15729 | s//\1/ |
||
15730 | q |
||
15731 | } |
||
15732 | s/.*/./; q'` |
||
15733 | test -d "$as_dir" && break |
||
15734 | done |
||
15735 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
15736 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
||
15737 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
||
15738 | { (exit 1); exit 1; }; }; } |
||
15739 | ac_builddir=. |
||
15740 | |||
15741 | |||
15742 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
15743 | *) |
||
15744 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
15745 | # A ".." for each directory in $ac_dir_suffix. |
||
15746 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
15747 | case $ac_top_builddir_sub in |
||
15748 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
15749 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
15750 | esac ;; |
||
15751 | esac |
||
15752 | ac_abs_top_builddir=$ac_pwd |
||
15753 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
15754 | # for backward compatibility: |
||
15755 | ac_top_builddir=$ac_top_build_prefix |
||
15756 | |||
15757 | |||
15758 | .) # We are building in place. |
||
15759 | ac_srcdir=. |
||
15760 | ac_top_srcdir=$ac_top_builddir_sub |
||
15761 | ac_abs_top_srcdir=$ac_pwd ;; |
||
15762 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
15763 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
15764 | ac_top_srcdir=$srcdir |
||
15765 | ac_abs_top_srcdir=$srcdir ;; |
||
15766 | *) # Relative name. |
||
15767 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
15768 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
15769 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
15770 | esac |
||
15771 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
15772 | |||
15773 | |||
15774 | |||
15775 | :F) |
||
15776 | # |
||
15777 | # CONFIG_FILE |
||
15778 | # |
||
15779 | |||
15780 | |||
15781 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
||
15782 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
||
15783 | esac |
||
15784 | _ACEOF |
||
15785 | |||
15786 | |||
15787 | # If the template does not know about datarootdir, expand it. |
||
15788 | # FIXME: This hack should be removed a few years after 2.60. |
||
15789 | ac_datarootdir_hack=; ac_datarootdir_seen= |
||
15790 | |||
15791 | |||
15792 | /datarootdir/ { |
||
15793 | p |
||
15794 | q |
||
15795 | } |
||
15796 | /@datadir@/p |
||
15797 | /@docdir@/p |
||
15798 | /@infodir@/p |
||
15799 | /@localedir@/p |
||
15800 | /@mandir@/p |
||
15801 | ' |
||
15802 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
||
15803 | *datarootdir*) ac_datarootdir_seen=yes;; |
||
15804 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
||
15805 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
||
15806 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
||
15807 | _ACEOF |
||
15808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
15809 | ac_datarootdir_hack=' |
||
15810 | s&@datadir@&$datadir&g |
||
15811 | s&@docdir@&$docdir&g |
||
15812 | s&@infodir@&$infodir&g |
||
15813 | s&@localedir@&$localedir&g |
||
15814 | s&@mandir@&$mandir&g |
||
15815 | s&\\\${datarootdir}&$datarootdir&g' ;; |
||
15816 | esac |
||
15817 | _ACEOF |
||
15818 | |||
15819 | |||
15820 | # Shell code in configure.ac might set extrasub. |
||
15821 | # FIXME: do we really want to maintain this feature? |
||
15822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
15823 | ac_sed_extra="$ac_vpsub |
||
15824 | $extrasub |
||
15825 | _ACEOF |
||
15826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
15827 | :t |
||
15828 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
15829 | s|@configure_input@|$ac_sed_conf_input|;t t |
||
15830 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
||
15831 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
||
15832 | s&@srcdir@&$ac_srcdir&;t t |
||
15833 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
||
15834 | s&@top_srcdir@&$ac_top_srcdir&;t t |
||
15835 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
||
15836 | s&@builddir@&$ac_builddir&;t t |
||
15837 | s&@abs_builddir@&$ac_abs_builddir&;t t |
||
15838 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
||
15839 | s&@INSTALL@&$ac_INSTALL&;t t |
||
15840 | $ac_datarootdir_hack |
||
15841 | " |
||
15842 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
||
15843 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
||
15844 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
||
15845 | { (exit 1); exit 1; }; } |
||
15846 | |||
15847 | |||
15848 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
||
15849 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
||
15850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
15851 | which seems to be undefined. Please make sure it is defined." >&5 |
||
15852 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
15853 | which seems to be undefined. Please make sure it is defined." >&2;} |
||
15854 | |||
15855 | |||
15856 | case $ac_file in |
||
15857 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
||
15858 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
||
15859 | esac \ |
||
15860 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
||
15861 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
||
15862 | { (exit 1); exit 1; }; } |
||
15863 | ;; |
||
15864 | :H) |
||
15865 | # |
||
15866 | # CONFIG_HEADER |
||
15867 | # |
||
15868 | if test x"$ac_file" != x-; then |
||
15869 | { |
||
15870 | $as_echo "/* $configure_input */" \ |
||
15871 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
||
15872 | } >"$tmp/config.h" \ |
||
15873 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
||
15874 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
||
15875 | { (exit 1); exit 1; }; } |
||
15876 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
||
15877 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
||
15878 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
||
15879 | else |
||
15880 | rm -f "$ac_file" |
||
15881 | mv "$tmp/config.h" "$ac_file" \ |
||
15882 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
||
15883 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
||
15884 | { (exit 1); exit 1; }; } |
||
15885 | fi |
||
15886 | else |
||
15887 | $as_echo "/* $configure_input */" \ |
||
15888 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
||
15889 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
||
15890 | $as_echo "$as_me: error: could not create -" >&2;} |
||
15891 | { (exit 1); exit 1; }; } |
||
15892 | fi |
||
15893 | # Compute "$ac_file"'s index in $config_headers. |
||
15894 | _am_stamp_count=1 |
||
15895 | for _am_header in $config_headers :; do |
||
15896 | case $_am_header in |
||
15897 | "$ac_file" | "$ac_file":* ) |
||
15898 | break ;; |
||
15899 | * ) |
||
15900 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
||
15901 | esac |
||
15902 | done |
||
15903 | echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || |
||
15904 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
15905 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
15906 | X"$ac_file" : 'X\(//\)$' \| \ |
||
15907 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
15908 | $as_echo X"$ac_file" | |
||
15909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
15910 | s//\1/ |
||
15911 | q |
||
15912 | } |
||
15913 | /^X\(\/\/\)[^/].*/{ |
||
15914 | s//\1/ |
||
15915 | q |
||
15916 | } |
||
15917 | /^X\(\/\/\)$/{ |
||
15918 | s//\1/ |
||
15919 | q |
||
15920 | } |
||
15921 | /^X\(\/\).*/{ |
||
15922 | s//\1/ |
||
15923 | q |
||
15924 | } |
||
15925 | s/.*/./; q'`/stamp-h$_am_stamp_count |
||
15926 | ;; |
||
15927 | |||
15928 | |||
15929 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
||
15930 | ;; |
||
15931 | esac |
||
15932 | |||
15933 | |||
15934 | |||
15935 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
||
15936 | # Strip MF so we end up with the name of the file. |
||
15937 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
||
15938 | # Check whether this is an Automake generated Makefile or not. |
||
15939 | # We used to match only the files named `Makefile.in', but |
||
15940 | # some people rename them; so instead we look at the file content. |
||
15941 | # Grep'ing the first line is not enough: some people post-process |
||
15942 | # each Makefile.in and add a new line on top of each file to say so. |
||
15943 | # So let's grep whole file. |
||
15944 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
||
15945 | dirpart=`$as_dirname -- "$mf" || |
||
15946 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
15947 | X"$mf" : 'X\(//\)[^/]' \| \ |
||
15948 | X"$mf" : 'X\(//\)$' \| \ |
||
15949 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
||
15950 | $as_echo X"$mf" | |
||
15951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
15952 | s//\1/ |
||
15953 | q |
||
15954 | } |
||
15955 | /^X\(\/\/\)[^/].*/{ |
||
15956 | s//\1/ |
||
15957 | q |
||
15958 | } |
||
15959 | /^X\(\/\/\)$/{ |
||
15960 | s//\1/ |
||
15961 | q |
||
15962 | } |
||
15963 | /^X\(\/\).*/{ |
||
15964 | s//\1/ |
||
15965 | q |
||
15966 | } |
||
15967 | s/.*/./; q'` |
||
15968 | else |
||
15969 | continue |
||
15970 | fi |
||
15971 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
||
15972 | # Extract the definition of DEP_FILES from the Makefile without |
||
15973 | # running `make'. |
||
15974 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
||
15975 | test -z "$DEPDIR" && continue |
||
15976 | # When using ansi2knr, U may be empty or an underscore; expand it |
||
15977 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
||
15978 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
||
15979 | # We invoke sed twice because it is the simplest approach to |
||
15980 | # changing $(DEPDIR) to its actual value in the expansion. |
||
15981 | for file in `sed -n -e ' |
||
15982 | /^DEP_FILES = .*\\\\$/ { |
||
15983 | s/^DEP_FILES = // |
||
15984 | :loop |
||
15985 | s/\\\\$// |
||
15986 | p |
||
15987 | n |
||
15988 | /\\\\$/ b loop |
||
15989 | p |
||
15990 | } |
||
15991 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
||
15992 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
||
15993 | # Make sure the directory exists. |
||
15994 | test -f "$dirpart/$file" && continue |
||
15995 | fdir=`$as_dirname -- "$file" || |
||
15996 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
15997 | X"$file" : 'X\(//\)[^/]' \| \ |
||
15998 | X"$file" : 'X\(//\)$' \| \ |
||
15999 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
||
16000 | $as_echo X"$file" | |
||
16001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
16002 | s//\1/ |
||
16003 | q |
||
16004 | } |
||
16005 | /^X\(\/\/\)[^/].*/{ |
||
16006 | s//\1/ |
||
16007 | q |
||
16008 | } |
||
16009 | /^X\(\/\/\)$/{ |
||
16010 | s//\1/ |
||
16011 | q |
||
16012 | } |
||
16013 | /^X\(\/\).*/{ |
||
16014 | s//\1/ |
||
16015 | q |
||
16016 | } |
||
16017 | s/.*/./; q'` |
||
16018 | { as_dir=$dirpart/$fdir |
||
16019 | case $as_dir in #( |
||
16020 | -*) as_dir=./$as_dir;; |
||
16021 | esac |
||
16022 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
||
16023 | as_dirs= |
||
16024 | while :; do |
||
16025 | case $as_dir in #( |
||
16026 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
16027 | *) as_qdir=$as_dir;; |
||
16028 | esac |
||
16029 | as_dirs="'$as_qdir' $as_dirs" |
||
16030 | as_dir=`$as_dirname -- "$as_dir" || |
||
16031 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
16032 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
16033 | X"$as_dir" : 'X\(//\)$' \| \ |
||
16034 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
16035 | $as_echo X"$as_dir" | |
||
16036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
16037 | s//\1/ |
||
16038 | q |
||
16039 | } |
||
16040 | /^X\(\/\/\)[^/].*/{ |
||
16041 | s//\1/ |
||
16042 | q |
||
16043 | } |
||
16044 | /^X\(\/\/\)$/{ |
||
16045 | s//\1/ |
||
16046 | q |
||
16047 | } |
||
16048 | /^X\(\/\).*/{ |
||
16049 | s//\1/ |
||
16050 | q |
||
16051 | } |
||
16052 | s/.*/./; q'` |
||
16053 | test -d "$as_dir" && break |
||
16054 | done |
||
16055 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
16056 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
||
16057 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
||
16058 | { (exit 1); exit 1; }; }; } |
||
16059 | # echo "creating $dirpart/$file" |
||
16060 | echo '# dummy' > "$dirpart/$file" |
||
16061 | done |
||
16062 | done |
||
16063 | ;; |
||
16064 | "libtool":C) |
||
16065 | |||
16066 | |||
16067 | # commands through without removal of \ escapes. |
||
16068 | if test -n "${ZSH_VERSION+set}" ; then |
||
16069 | setopt NO_GLOB_SUBST |
||
16070 | fi |
||
16071 | |||
16072 | |||
16073 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
||
16074 | $RM "$cfgfile" |
||
16075 | |||
16076 | |||
16077 | #! $SHELL |
||
16078 | |||
16079 | |||
16080 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
||
16081 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
16082 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
||
16083 | # |
||
16084 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
||
16085 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
||
16086 | # Written by Gordon Matzigkeit, 1996 |
||
16087 | # |
||
16088 | # This file is part of GNU Libtool. |
||
16089 | # |
||
16090 | # GNU Libtool is free software; you can redistribute it and/or |
||
16091 | # modify it under the terms of the GNU General Public License as |
||
16092 | # published by the Free Software Foundation; either version 2 of |
||
16093 | # the License, or (at your option) any later version. |
||
16094 | # |
||
16095 | # As a special exception to the GNU General Public License, |
||
16096 | # if you distribute this file as part of a program or library that |
||
16097 | # is built using GNU Libtool, you may include this file under the |
||
16098 | # same distribution terms that you use for the rest of that program. |
||
16099 | # |
||
16100 | # GNU Libtool is distributed in the hope that it will be useful, |
||
16101 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16102 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
16103 | # GNU General Public License for more details. |
||
16104 | # |
||
16105 | # You should have received a copy of the GNU General Public License |
||
16106 | # along with GNU Libtool; see the file COPYING. If not, a copy |
||
16107 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
||
16108 | # obtained by writing to the Free Software Foundation, Inc., |
||
16109 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||
16110 | |||
16111 | |||
16112 | |||
16113 | available_tags="" |
||
16114 | |||
16115 | |||
16116 | |||
16117 | |||
16118 | macro_version=$macro_version |
||
16119 | macro_revision=$macro_revision |
||
16120 | |||
16121 | |||
16122 | build_libtool_libs=$enable_shared |
||
16123 | |||
16124 | |||
16125 | build_old_libs=$enable_static |
||
16126 | |||
16127 | |||
16128 | pic_mode=$pic_mode |
||
16129 | |||
16130 | |||
16131 | fast_install=$enable_fast_install |
||
16132 | |||
16133 | |||
16134 | host_alias=$host_alias |
||
16135 | host=$host |
||
16136 | host_os=$host_os |
||
16137 | |||
16138 | |||
16139 | build_alias=$build_alias |
||
16140 | build=$build |
||
16141 | build_os=$build_os |
||
16142 | |||
16143 | |||
16144 | SED=$lt_SED |
||
16145 | |||
16146 | |||
16147 | Xsed="\$SED -e 1s/^X//" |
||
16148 | |||
16149 | |||
16150 | GREP=$lt_GREP |
||
16151 | |||
16152 | |||
16153 | EGREP=$lt_EGREP |
||
16154 | |||
16155 | |||
16156 | FGREP=$lt_FGREP |
||
16157 | |||
16158 | |||
16159 | NM=$lt_NM |
||
16160 | |||
16161 | |||
16162 | LN_S=$lt_LN_S |
||
16163 | |||
16164 | |||
16165 | max_cmd_len=$max_cmd_len |
||
16166 | |||
16167 | |||
16168 | objext=$ac_objext |
||
16169 | |||
16170 | |||
16171 | exeext=$exeext |
||
16172 | |||
16173 | |||
16174 | lt_unset=$lt_unset |
||
16175 | |||
16176 | |||
16177 | SP2NL=$lt_lt_SP2NL |
||
16178 | |||
16179 | |||
16180 | NL2SP=$lt_lt_NL2SP |
||
16181 | |||
16182 | |||
16183 | reload_flag=$lt_reload_flag |
||
16184 | reload_cmds=$lt_reload_cmds |
||
16185 | |||
16186 | |||
16187 | OBJDUMP=$lt_OBJDUMP |
||
16188 | |||
16189 | |||
16190 | deplibs_check_method=$lt_deplibs_check_method |
||
16191 | |||
16192 | |||
16193 | file_magic_cmd=$lt_file_magic_cmd |
||
16194 | |||
16195 | |||
16196 | AR=$lt_AR |
||
16197 | AR_FLAGS=$lt_AR_FLAGS |
||
16198 | |||
16199 | |||
16200 | STRIP=$lt_STRIP |
||
16201 | |||
16202 | |||
16203 | RANLIB=$lt_RANLIB |
||
16204 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
16205 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
16206 | |||
16207 | |||
16208 | LTCC=$lt_CC |
||
16209 | |||
16210 | |||
16211 | LTCFLAGS=$lt_CFLAGS |
||
16212 | |||
16213 | |||
16214 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
16215 | |||
16216 | |||
16217 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
16218 | |||
16219 | |||
16220 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
16221 | |||
16222 | |||
16223 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
||
16224 | |||
16225 | |||
16226 | objdir=$objdir |
||
16227 | |||
16228 | |||
16229 | SHELL=$lt_SHELL |
||
16230 | |||
16231 | |||
16232 | ECHO=$lt_ECHO |
||
16233 | |||
16234 | |||
16235 | MAGIC_CMD=$MAGIC_CMD |
||
16236 | |||
16237 | |||
16238 | need_locks=$lt_need_locks |
||
16239 | |||
16240 | |||
16241 | DSYMUTIL=$lt_DSYMUTIL |
||
16242 | |||
16243 | |||
16244 | NMEDIT=$lt_NMEDIT |
||
16245 | |||
16246 | |||
16247 | LIPO=$lt_LIPO |
||
16248 | |||
16249 | |||
16250 | OTOOL=$lt_OTOOL |
||
16251 | |||
16252 | |||
16253 | OTOOL64=$lt_OTOOL64 |
||
16254 | |||
16255 | |||
16256 | libext=$libext |
||
16257 | |||
16258 | |||
16259 | shrext_cmds=$lt_shrext_cmds |
||
16260 | |||
16261 | |||
16262 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
16263 | |||
16264 | |||
16265 | # restored at link time. |
||
16266 | variables_saved_for_relink=$lt_variables_saved_for_relink |
||
16267 | |||
16268 | |||
16269 | need_lib_prefix=$need_lib_prefix |
||
16270 | |||
16271 | |||
16272 | need_version=$need_version |
||
16273 | |||
16274 | |||
16275 | version_type=$version_type |
||
16276 | |||
16277 | |||
16278 | runpath_var=$runpath_var |
||
16279 | |||
16280 | |||
16281 | shlibpath_var=$shlibpath_var |
||
16282 | |||
16283 | |||
16284 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
16285 | |||
16286 | |||
16287 | libname_spec=$lt_libname_spec |
||
16288 | |||
16289 | |||
16290 | # The last name is the one that the linker finds with -lNAME |
||
16291 | library_names_spec=$lt_library_names_spec |
||
16292 | |||
16293 | |||
16294 | soname_spec=$lt_soname_spec |
||
16295 | |||
16296 | |||
16297 | postinstall_cmds=$lt_postinstall_cmds |
||
16298 | |||
16299 | |||
16300 | postuninstall_cmds=$lt_postuninstall_cmds |
||
16301 | |||
16302 | |||
16303 | finish_cmds=$lt_finish_cmds |
||
16304 | |||
16305 | |||
16306 | # not shown. |
||
16307 | finish_eval=$lt_finish_eval |
||
16308 | |||
16309 | |||
16310 | hardcode_into_libs=$hardcode_into_libs |
||
16311 | |||
16312 | |||
16313 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
16314 | |||
16315 | |||
16316 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
||
16317 | |||
16318 | |||
16319 | dlopen_support=$enable_dlopen |
||
16320 | |||
16321 | |||
16322 | dlopen_self=$enable_dlopen_self |
||
16323 | |||
16324 | |||
16325 | dlopen_self_static=$enable_dlopen_self_static |
||
16326 | |||
16327 | |||
16328 | old_striplib=$lt_old_striplib |
||
16329 | striplib=$lt_striplib |
||
16330 | |||
16331 | |||
16332 | |||
16333 | LD=$lt_LD |
||
16334 | |||
16335 | |||
16336 | old_archive_cmds=$lt_old_archive_cmds |
||
16337 | |||
16338 | |||
16339 | CC=$lt_compiler |
||
16340 | |||
16341 | |||
16342 | with_gcc=$GCC |
||
16343 | |||
16344 | |||
16345 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
||
16346 | |||
16347 | |||
16348 | wl=$lt_lt_prog_compiler_wl |
||
16349 | |||
16350 | |||
16351 | pic_flag=$lt_lt_prog_compiler_pic |
||
16352 | |||
16353 | |||
16354 | link_static_flag=$lt_lt_prog_compiler_static |
||
16355 | |||
16356 | |||
16357 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
||
16358 | |||
16359 | |||
16360 | build_libtool_need_lc=$archive_cmds_need_lc |
||
16361 | |||
16362 | |||
16363 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
||
16364 | |||
16365 | |||
16366 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
||
16367 | |||
16368 | |||
16369 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
||
16370 | |||
16371 | |||
16372 | compiler_needs_object=$lt_compiler_needs_object |
||
16373 | |||
16374 | |||
16375 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
||
16376 | |||
16377 | |||
16378 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
||
16379 | |||
16380 | |||
16381 | archive_cmds=$lt_archive_cmds |
||
16382 | archive_expsym_cmds=$lt_archive_expsym_cmds |
||
16383 | |||
16384 | |||
16385 | # a shared archive. |
||
16386 | module_cmds=$lt_module_cmds |
||
16387 | module_expsym_cmds=$lt_module_expsym_cmds |
||
16388 | |||
16389 | |||
16390 | with_gnu_ld=$lt_with_gnu_ld |
||
16391 | |||
16392 | |||
16393 | allow_undefined_flag=$lt_allow_undefined_flag |
||
16394 | |||
16395 | |||
16396 | no_undefined_flag=$lt_no_undefined_flag |
||
16397 | |||
16398 | |||
16399 | # This must work even if \$libdir does not exist |
||
16400 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
||
16401 | |||
16402 | |||
16403 | # during linking. This must work even if \$libdir does not exist. |
||
16404 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
||
16405 | |||
16406 | |||
16407 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
||
16408 | |||
16409 | |||
16410 | # DIR into the resulting binary. |
||
16411 | hardcode_direct=$hardcode_direct |
||
16412 | |||
16413 | |||
16414 | # DIR into the resulting binary and the resulting library dependency is |
||
16415 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
||
16416 | # library is relocated. |
||
16417 | hardcode_direct_absolute=$hardcode_direct_absolute |
||
16418 | |||
16419 | |||
16420 | # into the resulting binary. |
||
16421 | hardcode_minus_L=$hardcode_minus_L |
||
16422 | |||
16423 | |||
16424 | # into the resulting binary. |
||
16425 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
||
16426 | |||
16427 | |||
16428 | # into the library and all subsequent libraries and executables linked |
||
16429 | # against it. |
||
16430 | hardcode_automatic=$hardcode_automatic |
||
16431 | |||
16432 | |||
16433 | # to runtime path list. |
||
16434 | inherit_rpath=$inherit_rpath |
||
16435 | |||
16436 | |||
16437 | link_all_deplibs=$link_all_deplibs |
||
16438 | |||
16439 | |||
16440 | fix_srcfile_path=$lt_fix_srcfile_path |
||
16441 | |||
16442 | |||
16443 | always_export_symbols=$always_export_symbols |
||
16444 | |||
16445 | |||
16446 | export_symbols_cmds=$lt_export_symbols_cmds |
||
16447 | |||
16448 | |||
16449 | exclude_expsyms=$lt_exclude_expsyms |
||
16450 | |||
16451 | |||
16452 | include_expsyms=$lt_include_expsyms |
||
16453 | |||
16454 | |||
16455 | prelink_cmds=$lt_prelink_cmds |
||
16456 | |||
16457 | |||
16458 | file_list_spec=$lt_file_list_spec |
||
16459 | |||
16460 | |||
16461 | hardcode_action=$hardcode_action |
||
16462 | |||
16463 | |||
16464 | |||
16465 | |||
16466 | |||
16467 | |||
16468 | aix3*) |
||
16469 | cat <<\_LT_EOF >> "$cfgfile" |
||
16470 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
16471 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
16472 | # vanish in a puff of smoke. |
||
16473 | if test "X${COLLECT_NAMES+set}" != Xset; then |
||
16474 | COLLECT_NAMES= |
||
16475 | export COLLECT_NAMES |
||
16476 | fi |
||
16477 | _LT_EOF |
||
16478 | ;; |
||
16479 | esac |
||
16480 | |||
16481 | |||
16482 | |||
16483 | |||
16484 | |||
16485 | |||
16486 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
||
16487 | # text mode, it properly converts lines to CR/LF. This bash problem |
||
16488 | # is reportedly fixed, but why not run on old versions too? |
||
16489 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
||
16490 | || (rm -f "$cfgfile"; exit 1) |
||
16491 | |||
16492 | |||
16493 | yes) |
||
16494 | cat << \_LT_EOF >> "$cfgfile" |
||
16495 | |||
16496 | |||
16497 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
||
16498 | # otherwise set result to NONDIR_REPLACEMENT. |
||
16499 | func_dirname () |
||
16500 | { |
||
16501 | case ${1} in |
||
16502 | */*) func_dirname_result="${1%/*}${2}" ;; |
||
16503 | * ) func_dirname_result="${3}" ;; |
||
16504 | esac |
||
16505 | } |
||
16506 | |||
16507 | |||
16508 | func_basename () |
||
16509 | { |
||
16510 | func_basename_result="${1##*/}" |
||
16511 | } |
||
16512 | |||
16513 | |||
16514 | # perform func_basename and func_dirname in a single function |
||
16515 | # call: |
||
16516 | # dirname: Compute the dirname of FILE. If nonempty, |
||
16517 | # add APPEND to the result, otherwise set result |
||
16518 | # to NONDIR_REPLACEMENT. |
||
16519 | # value returned in "$func_dirname_result" |
||
16520 | # basename: Compute filename of FILE. |
||
16521 | # value retuned in "$func_basename_result" |
||
16522 | # Implementation must be kept synchronized with func_dirname |
||
16523 | # and func_basename. For efficiency, we do not delegate to |
||
16524 | # those functions but instead duplicate the functionality here. |
||
16525 | func_dirname_and_basename () |
||
16526 | { |
||
16527 | case ${1} in |
||
16528 | */*) func_dirname_result="${1%/*}${2}" ;; |
||
16529 | * ) func_dirname_result="${3}" ;; |
||
16530 | esac |
||
16531 | func_basename_result="${1##*/}" |
||
16532 | } |
||
16533 | |||
16534 | |||
16535 | # strip PREFIX and SUFFIX off of NAME. |
||
16536 | # PREFIX and SUFFIX must not contain globbing or regex special |
||
16537 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
||
16538 | # dot (in which case that matches only a dot). |
||
16539 | func_stripname () |
||
16540 | { |
||
16541 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
||
16542 | # positional parameters, so assign one to ordinary parameter first. |
||
16543 | func_stripname_result=${3} |
||
16544 | func_stripname_result=${func_stripname_result#"${1}"} |
||
16545 | func_stripname_result=${func_stripname_result%"${2}"} |
||
16546 | } |
||
16547 | |||
16548 | |||
16549 | func_opt_split () |
||
16550 | { |
||
16551 | func_opt_split_opt=${1%%=*} |
||
16552 | func_opt_split_arg=${1#*=} |
||
16553 | } |
||
16554 | |||
16555 | |||
16556 | func_lo2o () |
||
16557 | { |
||
16558 | case ${1} in |
||
16559 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
||
16560 | *) func_lo2o_result=${1} ;; |
||
16561 | esac |
||
16562 | } |
||
16563 | |||
16564 | |||
16565 | func_xform () |
||
16566 | { |
||
16567 | func_xform_result=${1%.*}.lo |
||
16568 | } |
||
16569 | |||
16570 | |||
16571 | func_arith () |
||
16572 | { |
||
16573 | func_arith_result=$(( $* )) |
||
16574 | } |
||
16575 | |||
16576 | |||
16577 | # STRING may not start with a hyphen. |
||
16578 | func_len () |
||
16579 | { |
||
16580 | func_len_result=${#1} |
||
16581 | } |
||
16582 | |||
16583 | |||
16584 | ;; |
||
16585 | *) # Bourne compatible functions. |
||
16586 | cat << \_LT_EOF >> "$cfgfile" |
||
16587 | |||
16588 | |||
16589 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
||
16590 | # otherwise set result to NONDIR_REPLACEMENT. |
||
16591 | func_dirname () |
||
16592 | { |
||
16593 | # Extract subdirectory from the argument. |
||
16594 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
||
16595 | if test "X$func_dirname_result" = "X${1}"; then |
||
16596 | func_dirname_result="${3}" |
||
16597 | else |
||
16598 | func_dirname_result="$func_dirname_result${2}" |
||
16599 | fi |
||
16600 | } |
||
16601 | |||
16602 | |||
16603 | func_basename () |
||
16604 | { |
||
16605 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
||
16606 | } |
||
16607 | |||
16608 | |||
16609 | |||
16610 | # strip PREFIX and SUFFIX off of NAME. |
||
16611 | # PREFIX and SUFFIX must not contain globbing or regex special |
||
16612 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
||
16613 | # dot (in which case that matches only a dot). |
||
16614 | # func_strip_suffix prefix name |
||
16615 | func_stripname () |
||
16616 | { |
||
16617 | case ${2} in |
||
16618 | .*) func_stripname_result=`$ECHO "X${3}" \ |
||
16619 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
||
16620 | *) func_stripname_result=`$ECHO "X${3}" \ |
||
16621 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
||
16622 | esac |
||
16623 | } |
||
16624 | |||
16625 | |||
16626 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
||
16627 | my_sed_long_arg='1s/^-[^=]*=//' |
||
16628 | |||
16629 | |||
16630 | func_opt_split () |
||
16631 | { |
||
16632 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
||
16633 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
||
16634 | } |
||
16635 | |||
16636 | |||
16637 | func_lo2o () |
||
16638 | { |
||
16639 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
||
16640 | } |
||
16641 | |||
16642 | |||
16643 | func_xform () |
||
16644 | { |
||
16645 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
||
16646 | } |
||
16647 | |||
16648 | |||
16649 | func_arith () |
||
16650 | { |
||
16651 | func_arith_result=`expr "$@"` |
||
16652 | } |
||
16653 | |||
16654 | |||
16655 | # STRING may not start with a hyphen. |
||
16656 | func_len () |
||
16657 | { |
||
16658 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
||
16659 | } |
||
16660 | |||
16661 | |||
16662 | esac |
||
16663 | |||
16664 | |||
16665 | yes) |
||
16666 | cat << \_LT_EOF >> "$cfgfile" |
||
16667 | |||
16668 | |||
16669 | # Append VALUE to the end of shell variable VAR. |
||
16670 | func_append () |
||
16671 | { |
||
16672 | eval "$1+=\$2" |
||
16673 | } |
||
16674 | _LT_EOF |
||
16675 | ;; |
||
16676 | *) |
||
16677 | cat << \_LT_EOF >> "$cfgfile" |
||
16678 | |||
16679 | |||
16680 | # Append VALUE to the end of shell variable VAR. |
||
16681 | func_append () |
||
16682 | { |
||
16683 | eval "$1=\$$1\$2" |
||
16684 | } |
||
16685 | |||
16686 | |||
16687 | ;; |
||
16688 | esac |
||
16689 | |||
16690 | |||
16691 | |||
16692 | || (rm -f "$cfgfile"; exit 1) |
||
16693 | |||
16694 | |||
16695 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
||
16696 | chmod +x "$ofile" |
||
16697 | |||
16698 | |||
16699 | |||
16700 | |||
16701 | done # for ac_tag |
||
16702 | |||
16703 | |||
16704 | |||
16705 | _ACEOF |
||
16706 | chmod +x $CONFIG_STATUS |
||
16707 | ac_clean_files=$ac_clean_files_save |
||
16708 | |||
16709 | |||
16710 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
||
16711 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
||
16712 | { (exit 1); exit 1; }; } |
||
16713 | |||
16714 | |||
16715 | |||
16716 | # config.status does its own redirection, appending to config.log. |
||
16717 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
16718 | # by configure, so config.status won't be able to write to it; its |
||
16719 | # output is simply discarded. So we exec the FD to /dev/null, |
||
16720 | # effectively closing config.log, so it can be properly (re)opened and |
||
16721 | # appended to by config.status. When coming back to configure, we |
||
16722 | # need to make the FD available again. |
||
16723 | if test "$no_create" != yes; then |
||
16724 | ac_cs_success=: |
||
16725 | ac_config_status_args= |
||
16726 | test "$silent" = yes && |
||
16727 | ac_config_status_args="$ac_config_status_args --quiet" |
||
16728 | exec 5>/dev/null |
||
16729 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
16730 | exec 5>>config.log |
||
16731 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
16732 | # would make configure fail if this is the last instruction. |
||
16733 | $ac_cs_success || { (exit 1); exit 1; } |
||
16734 | fi |
||
16735 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
||
16736 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
||
16737 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
||
16738 | fi><>><>><>><>\_LT_EOF><\_LT_EOF><_LT_EOF>>>>>\_ACEOF><\_ACEOF><_ACEOF><_ACEOF>\_ACEOF><\_ACEOF>\_ACEOF><\_ACEOF><_ACEOF>\_ACAWK><\_ACAWK>\_ACEOF><\_ACEOF>>>\_ACEOF><\_ACEOF>><_ACAWK><_ACEOF>\\_ACAWK><\\_ACAWK><_ACEOF><_ACEOF">\_ACEOF><\_ACEOF><_ACEOF> |
||
16739 | ##><_ASBOX |
||
16740 |