]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.63 for yaml 0.1.3. | |
4 | # | |
5 | # Report bugs to <http://pyyaml.org/newticket?component=libyaml>. | |
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 </dev/null 6>&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='yaml' | |
747 | PACKAGE_TARNAME='yaml' | |
748 | PACKAGE_VERSION='0.1.3' | |
749 | PACKAGE_STRING='yaml 0.1.3' | |
750 | PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml' | |
751 | ||
752 | # Factoring default headers for most tests. | |
753 | ac_includes_default="\ | |
754 | #include <stdio.h> | |
755 | #ifdef HAVE_SYS_TYPES_H | |
756 | # include <sys/types.h> | |
757 | #endif | |
758 | #ifdef HAVE_SYS_STAT_H | |
759 | # include <sys/stat.h> | |
760 | #endif | |
761 | #ifdef STDC_HEADERS | |
762 | # include <stdlib.h> | |
763 | # include <stddef.h> | |
764 | #else | |
765 | # ifdef HAVE_STDLIB_H | |
766 | # include <stdlib.h> | |
767 | # endif | |
768 | #endif | |
769 | #ifdef HAVE_STRING_H | |
770 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
771 | # include <memory.h> | |
772 | # endif | |
773 | # include <string.h> | |
774 | #endif | |
775 | #ifdef HAVE_STRINGS_H | |
776 | # include <strings.h> | |
777 | #endif | |
778 | #ifdef HAVE_INTTYPES_H | |
779 | # include <inttypes.h> | |
780 | #endif | |
781 | #ifdef HAVE_STDINT_H | |
782 | # include <stdint.h> | |
783 | #endif | |
784 | #ifdef HAVE_UNISTD_H | |
785 | # include <unistd.h> | |
786 | #endif" | |
787 | ||
788 | ac_subst_vars='LTLIBOBJS | |
789 | LIBOBJS | |
790 | DOXYGEN_FALSE | |
791 | DOXYGEN_TRUE | |
792 | DOXYGEN | |
793 | OTOOL64 | |
794 | OTOOL | |
795 | LIPO | |
796 | NMEDIT | |
797 | DSYMUTIL | |
798 | lt_ECHO | |
799 | RANLIB | |
800 | AR | |
801 | OBJDUMP | |
802 | NM | |
803 | ac_ct_DUMPBIN | |
804 | DUMPBIN | |
805 | LD | |
806 | FGREP | |
807 | EGREP | |
808 | GREP | |
809 | SED | |
810 | host_os | |
811 | host_vendor | |
812 | host_cpu | |
813 | host | |
814 | build_os | |
815 | build_vendor | |
816 | build_cpu | |
817 | build | |
818 | LIBTOOL | |
819 | LN_S | |
820 | CPP | |
821 | am__fastdepCC_FALSE | |
822 | am__fastdepCC_TRUE | |
823 | CCDEPMODE | |
824 | AMDEPBACKSLASH | |
825 | AMDEP_FALSE | |
826 | AMDEP_TRUE | |
827 | am__quote | |
828 | am__include | |
829 | DEPDIR | |
830 | OBJEXT | |
831 | EXEEXT | |
832 | ac_ct_CC | |
833 | CPPFLAGS | |
834 | LDFLAGS | |
835 | CFLAGS | |
836 | CC | |
837 | YAML_LT_AGE | |
838 | YAML_LT_REVISION | |
839 | YAML_LT_CURRENT | |
840 | YAML_LT_RELEASE | |
841 | am__untar | |
842 | am__tar | |
843 | AMTAR | |
844 | am__leading_dot | |
845 | SET_MAKE | |
846 | AWK | |
847 | mkdir_p | |
848 | MKDIR_P | |
849 | INSTALL_STRIP_PROGRAM | |
850 | STRIP | |
851 | install_sh | |
852 | MAKEINFO | |
853 | AUTOHEADER | |
854 | AUTOMAKE | |
855 | AUTOCONF | |
856 | ACLOCAL | |
857 | VERSION | |
858 | PACKAGE | |
859 | CYGPATH_W | |
860 | am__isrc | |
861 | INSTALL_DATA | |
862 | INSTALL_SCRIPT | |
863 | INSTALL_PROGRAM | |
864 | target_alias | |
865 | host_alias | |
866 | build_alias | |
867 | LIBS | |
868 | ECHO_T | |
869 | ECHO_N | |
870 | ECHO_C | |
871 | DEFS | |
872 | mandir | |
873 | localedir | |
874 | libdir | |
875 | psdir | |
876 | pdfdir | |
877 | dvidir | |
878 | htmldir | |
879 | infodir | |
880 | docdir | |
881 | oldincludedir | |
882 | includedir | |
883 | localstatedir | |
884 | sharedstatedir | |
885 | sysconfdir | |
886 | datadir | |
887 | datarootdir | |
888 | libexecdir | |
889 | sbindir | |
890 | bindir | |
891 | program_transform_name | |
892 | prefix | |
893 | exec_prefix | |
894 | PACKAGE_BUGREPORT | |
895 | PACKAGE_STRING | |
896 | PACKAGE_VERSION | |
897 | PACKAGE_TARNAME | |
898 | PACKAGE_NAME | |
899 | PATH_SEPARATOR | |
900 | SHELL' | |
901 | ac_subst_files='' | |
902 | ac_user_opts=' | |
903 | enable_option_checking | |
904 | enable_dependency_tracking | |
905 | enable_shared | |
906 | enable_static | |
907 | with_pic | |
908 | enable_fast_install | |
909 | with_gnu_ld | |
910 | enable_libtool_lock | |
911 | ' | |
912 | ac_precious_vars='build_alias | |
913 | host_alias | |
914 | target_alias | |
915 | CC | |
916 | CFLAGS | |
917 | LDFLAGS | |
918 | LIBS | |
919 | CPPFLAGS | |
920 | CPP' | |
921 | ||
922 | ||
923 | # Initialize some variables set by options. | |
924 | ac_init_help= | |
925 | ac_init_version=false | |
926 | ac_unrecognized_opts= | |
927 | ac_unrecognized_sep= | |
928 | # The variables have the same names as the options, with | |
929 | # dashes changed to underlines. | |
930 | cache_file=/dev/null | |
931 | exec_prefix=NONE | |
932 | no_create= | |
933 | no_recursion= | |
934 | prefix=NONE | |
935 | program_prefix=NONE | |
936 | program_suffix=NONE | |
937 | program_transform_name=s,x,x, | |
938 | silent= | |
939 | site= | |
940 | srcdir= | |
941 | verbose= | |
942 | x_includes=NONE | |
943 | x_libraries=NONE | |
944 | ||
945 | # Installation directory options. | |
946 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
947 | # and all the variables that are supposed to be based on exec_prefix | |
948 | # by default will actually change. | |
949 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
950 | # (The list follows the same order as the GNU Coding Standards.) | |
951 | bindir='${exec_prefix}/bin' | |
952 | sbindir='${exec_prefix}/sbin' | |
953 | libexecdir='${exec_prefix}/libexec' | |
954 | datarootdir='${prefix}/share' | |
955 | datadir='${datarootdir}' | |
956 | sysconfdir='${prefix}/etc' | |
957 | sharedstatedir='${prefix}/com' | |
958 | localstatedir='${prefix}/var' | |
959 | includedir='${prefix}/include' | |
960 | oldincludedir='/usr/include' | |
961 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
962 | infodir='${datarootdir}/info' | |
963 | htmldir='${docdir}' | |
964 | dvidir='${docdir}' | |
965 | pdfdir='${docdir}' | |
966 | psdir='${docdir}' | |
967 | libdir='${exec_prefix}/lib' | |
968 | localedir='${datarootdir}/locale' | |
969 | mandir='${datarootdir}/man' | |
970 | ||
971 | ac_prev= | |
972 | ac_dashdash= | |
973 | for ac_option | |
974 | do | |
975 | # If the previous option needs an argument, assign it. | |
976 | if test -n "$ac_prev"; then | |
977 | eval $ac_prev=\$ac_option | |
978 | ac_prev= | |
979 | continue | |
980 | fi | |
981 | ||
982 | case $ac_option in | |
983 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
984 | *) ac_optarg=yes ;; | |
985 | esac | |
986 | ||
987 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
988 | ||
989 | case $ac_dashdash$ac_option in | |
990 | --) | |
991 | ac_dashdash=yes ;; | |
992 | ||
993 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
994 | ac_prev=bindir ;; | |
995 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
996 | bindir=$ac_optarg ;; | |
997 | ||
998 | -build | --build | --buil | --bui | --bu) | |
999 | ac_prev=build_alias ;; | |
1000 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1001 | build_alias=$ac_optarg ;; | |
1002 | ||
1003 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1004 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1005 | ac_prev=cache_file ;; | |
1006 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1007 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1008 | cache_file=$ac_optarg ;; | |
1009 | ||
1010 | --config-cache | -C) | |
1011 | cache_file=config.cache ;; | |
1012 | ||
1013 | -datadir | --datadir | --datadi | --datad) | |
1014 | ac_prev=datadir ;; | |
1015 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1016 | datadir=$ac_optarg ;; | |
1017 | ||
1018 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1019 | | --dataroo | --dataro | --datar) | |
1020 | ac_prev=datarootdir ;; | |
1021 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1022 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1023 | datarootdir=$ac_optarg ;; | |
1024 | ||
1025 | -disable-* | --disable-*) | |
1026 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1027 | # Reject names that are not valid shell variable names. | |
1028 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1029 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1030 | { (exit 1); exit 1; }; } | |
1031 | ac_useropt_orig=$ac_useropt | |
1032 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1033 | case $ac_user_opts in | |
1034 | *" | |
1035 | "enable_$ac_useropt" | |
1036 | "*) ;; | |
1037 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1038 | ac_unrecognized_sep=', ';; | |
1039 | esac | |
1040 | eval enable_$ac_useropt=no ;; | |
1041 | ||
1042 | -docdir | --docdir | --docdi | --doc | --do) | |
1043 | ac_prev=docdir ;; | |
1044 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1045 | docdir=$ac_optarg ;; | |
1046 | ||
1047 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1048 | ac_prev=dvidir ;; | |
1049 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1050 | dvidir=$ac_optarg ;; | |
1051 | ||
1052 | -enable-* | --enable-*) | |
1053 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1054 | # Reject names that are not valid shell variable names. | |
1055 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1056 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1057 | { (exit 1); exit 1; }; } | |
1058 | ac_useropt_orig=$ac_useropt | |
1059 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1060 | case $ac_user_opts in | |
1061 | *" | |
1062 | "enable_$ac_useropt" | |
1063 | "*) ;; | |
1064 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1065 | ac_unrecognized_sep=', ';; | |
1066 | esac | |
1067 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1068 | ||
1069 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1070 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1071 | | --exec | --exe | --ex) | |
1072 | ac_prev=exec_prefix ;; | |
1073 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1074 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1075 | | --exec=* | --exe=* | --ex=*) | |
1076 | exec_prefix=$ac_optarg ;; | |
1077 | ||
1078 | -gas | --gas | --ga | --g) | |
1079 | # Obsolete; use --with-gas. | |
1080 | with_gas=yes ;; | |
1081 | ||
1082 | -help | --help | --hel | --he | -h) | |
1083 | ac_init_help=long ;; | |
1084 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1085 | ac_init_help=recursive ;; | |
1086 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1087 | ac_init_help=short ;; | |
1088 | ||
1089 | -host | --host | --hos | --ho) | |
1090 | ac_prev=host_alias ;; | |
1091 | -host=* | --host=* | --hos=* | --ho=*) | |
1092 | host_alias=$ac_optarg ;; | |
1093 | ||
1094 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1095 | ac_prev=htmldir ;; | |
1096 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1097 | | --ht=*) | |
1098 | htmldir=$ac_optarg ;; | |
1099 | ||
1100 | -includedir | --includedir | --includedi | --included | --include \ | |
1101 | | --includ | --inclu | --incl | --inc) | |
1102 | ac_prev=includedir ;; | |
1103 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1104 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1105 | includedir=$ac_optarg ;; | |
1106 | ||
1107 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1108 | ac_prev=infodir ;; | |
1109 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1110 | infodir=$ac_optarg ;; | |
1111 | ||
1112 | -libdir | --libdir | --libdi | --libd) | |
1113 | ac_prev=libdir ;; | |
1114 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1115 | libdir=$ac_optarg ;; | |
1116 | ||
1117 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1118 | | --libexe | --libex | --libe) | |
1119 | ac_prev=libexecdir ;; | |
1120 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1121 | | --libexe=* | --libex=* | --libe=*) | |
1122 | libexecdir=$ac_optarg ;; | |
1123 | ||
1124 | -localedir | --localedir | --localedi | --localed | --locale) | |
1125 | ac_prev=localedir ;; | |
1126 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1127 | localedir=$ac_optarg ;; | |
1128 | ||
1129 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1130 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1131 | ac_prev=localstatedir ;; | |
1132 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1133 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1134 | localstatedir=$ac_optarg ;; | |
1135 | ||
1136 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1137 | ac_prev=mandir ;; | |
1138 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1139 | mandir=$ac_optarg ;; | |
1140 | ||
1141 | -nfp | --nfp | --nf) | |
1142 | # Obsolete; use --without-fp. | |
1143 | with_fp=no ;; | |
1144 | ||
1145 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1146 | | --no-cr | --no-c | -n) | |
1147 | no_create=yes ;; | |
1148 | ||
1149 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1150 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1151 | no_recursion=yes ;; | |
1152 | ||
1153 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1154 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1155 | | --oldin | --oldi | --old | --ol | --o) | |
1156 | ac_prev=oldincludedir ;; | |
1157 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1158 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1159 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1160 | oldincludedir=$ac_optarg ;; | |
1161 | ||
1162 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1163 | ac_prev=prefix ;; | |
1164 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1165 | prefix=$ac_optarg ;; | |
1166 | ||
1167 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1168 | | --program-pre | --program-pr | --program-p) | |
1169 | ac_prev=program_prefix ;; | |
1170 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1171 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1172 | program_prefix=$ac_optarg ;; | |
1173 | ||
1174 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1175 | | --program-suf | --program-su | --program-s) | |
1176 | ac_prev=program_suffix ;; | |
1177 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1178 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1179 | program_suffix=$ac_optarg ;; | |
1180 | ||
1181 | -program-transform-name | --program-transform-name \ | |
1182 | | --program-transform-nam | --program-transform-na \ | |
1183 | | --program-transform-n | --program-transform- \ | |
1184 | | --program-transform | --program-transfor \ | |
1185 | | --program-transfo | --program-transf \ | |
1186 | | --program-trans | --program-tran \ | |
1187 | | --progr-tra | --program-tr | --program-t) | |
1188 | ac_prev=program_transform_name ;; | |
1189 | -program-transform-name=* | --program-transform-name=* \ | |
1190 | | --program-transform-nam=* | --program-transform-na=* \ | |
1191 | | --program-transform-n=* | --program-transform-=* \ | |
1192 | | --program-transform=* | --program-transfor=* \ | |
1193 | | --program-transfo=* | --program-transf=* \ | |
1194 | | --program-trans=* | --program-tran=* \ | |
1195 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1196 | program_transform_name=$ac_optarg ;; | |
1197 | ||
1198 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1199 | ac_prev=pdfdir ;; | |
1200 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1201 | pdfdir=$ac_optarg ;; | |
1202 | ||
1203 | -psdir | --psdir | --psdi | --psd | --ps) | |
1204 | ac_prev=psdir ;; | |
1205 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1206 | psdir=$ac_optarg ;; | |
1207 | ||
1208 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1209 | | -silent | --silent | --silen | --sile | --sil) | |
1210 | silent=yes ;; | |
1211 | ||
1212 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1213 | ac_prev=sbindir ;; | |
1214 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1215 | | --sbi=* | --sb=*) | |
1216 | sbindir=$ac_optarg ;; | |
1217 | ||
1218 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1219 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1220 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1221 | | --sha | --sh) | |
1222 | ac_prev=sharedstatedir ;; | |
1223 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1224 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1225 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1226 | | --sha=* | --sh=*) | |
1227 | sharedstatedir=$ac_optarg ;; | |
1228 | ||
1229 | -site | --site | --sit) | |
1230 | ac_prev=site ;; | |
1231 | -site=* | --site=* | --sit=*) | |
1232 | site=$ac_optarg ;; | |
1233 | ||
1234 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1235 | ac_prev=srcdir ;; | |
1236 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1237 | srcdir=$ac_optarg ;; | |
1238 | ||
1239 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1240 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1241 | ac_prev=sysconfdir ;; | |
1242 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1243 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1244 | sysconfdir=$ac_optarg ;; | |
1245 | ||
1246 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1247 | ac_prev=target_alias ;; | |
1248 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1249 | target_alias=$ac_optarg ;; | |
1250 | ||
1251 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1252 | verbose=yes ;; | |
1253 | ||
1254 | -version | --version | --versio | --versi | --vers | -V) | |
1255 | ac_init_version=: ;; | |
1256 | ||
1257 | -with-* | --with-*) | |
1258 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1259 | # Reject names that are not valid shell variable names. | |
1260 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1261 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1262 | { (exit 1); exit 1; }; } | |
1263 | ac_useropt_orig=$ac_useropt | |
1264 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1265 | case $ac_user_opts in | |
1266 | *" | |
1267 | "with_$ac_useropt" | |
1268 | "*) ;; | |
1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1270 | ac_unrecognized_sep=', ';; | |
1271 | esac | |
1272 | eval with_$ac_useropt=\$ac_optarg ;; | |
1273 | ||
1274 | -without-* | --without-*) | |
1275 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1276 | # Reject names that are not valid shell variable names. | |
1277 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1278 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1279 | { (exit 1); exit 1; }; } | |
1280 | ac_useropt_orig=$ac_useropt | |
1281 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1282 | case $ac_user_opts in | |
1283 | *" | |
1284 | "with_$ac_useropt" | |
1285 | "*) ;; | |
1286 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1287 | ac_unrecognized_sep=', ';; | |
1288 | esac | |
1289 | eval with_$ac_useropt=no ;; | |
1290 | ||
1291 | --x) | |
1292 | # Obsolete; use --with-x. | |
1293 | with_x=yes ;; | |
1294 | ||
1295 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1296 | | --x-incl | --x-inc | --x-in | --x-i) | |
1297 | ac_prev=x_includes ;; | |
1298 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1299 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1300 | x_includes=$ac_optarg ;; | |
1301 | ||
1302 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1303 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1304 | ac_prev=x_libraries ;; | |
1305 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1306 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1307 | x_libraries=$ac_optarg ;; | |
1308 | ||
1309 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1310 | Try \`$0 --help' for more information." >&2 | |
1311 | { (exit 1); exit 1; }; } | |
1312 | ;; | |
1313 | ||
1314 | *=*) | |
1315 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1316 | # Reject names that are not valid shell variable names. | |
1317 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1318 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1319 | { (exit 1); exit 1; }; } | |
1320 | eval $ac_envvar=\$ac_optarg | |
1321 | export $ac_envvar ;; | |
1322 | ||
1323 | *) | |
1324 | # FIXME: should be removed in autoconf 3.0. | |
1325 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1326 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1327 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1328 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1329 | ;; | |
1330 | ||
1331 | esac | |
1332 | done | |
1333 | ||
1334 | if test -n "$ac_prev"; then | |
1335 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1336 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1337 | { (exit 1); exit 1; }; } | |
1338 | fi | |
1339 | ||
1340 | if test -n "$ac_unrecognized_opts"; then | |
1341 | case $enable_option_checking in | |
1342 | no) ;; | |
1343 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1344 | { (exit 1); exit 1; }; } ;; | |
1345 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1346 | esac | |
1347 | fi | |
1348 | ||
1349 | # Check all directory arguments for consistency. | |
1350 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1351 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1352 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1353 | libdir localedir mandir | |
1354 | do | |
1355 | eval ac_val=\$$ac_var | |
1356 | # Remove trailing slashes. | |
1357 | case $ac_val in | |
1358 | */ ) | |
1359 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1360 | eval $ac_var=\$ac_val;; | |
1361 | esac | |
1362 | # Be sure to have absolute directory names. | |
1363 | case $ac_val in | |
1364 | [\\/$]* | ?:[\\/]* ) continue;; | |
1365 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1366 | esac | |
1367 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1368 | { (exit 1); exit 1; }; } | |
1369 | done | |
1370 | ||
1371 | # There might be people who depend on the old broken behavior: `$host' | |
1372 | # used to hold the argument of --host etc. | |
1373 | # FIXME: To remove some day. | |
1374 | build=$build_alias | |
1375 | host=$host_alias | |
1376 | target=$target_alias | |
1377 | ||
1378 | # FIXME: To remove some day. | |
1379 | if test "x$host_alias" != x; then | |
1380 | if test "x$build_alias" = x; then | |
1381 | cross_compiling=maybe | |
1382 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1383 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1384 | elif test "x$build_alias" != "x$host_alias"; then | |
1385 | cross_compiling=yes | |
1386 | fi | |
1387 | fi | |
1388 | ||
1389 | ac_tool_prefix= | |
1390 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1391 | ||
1392 | test "$silent" = yes && exec 6>/dev/null | |
1393 | ||
1394 | ||
1395 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1396 | ac_ls_di=`ls -di .` && | |
1397 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1398 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1399 | { (exit 1); exit 1; }; } | |
1400 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1401 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1402 | { (exit 1); exit 1; }; } | |
1403 | ||
1404 | ||
1405 | # Find the source files, if location was not specified. | |
1406 | if test -z "$srcdir"; then | |
1407 | ac_srcdir_defaulted=yes | |
1408 | # Try the directory containing this script, then the parent directory. | |
1409 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1410 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1411 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1412 | X"$as_myself" : 'X\(//\)$' \| \ | |
1413 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1414 | $as_echo X"$as_myself" | | |
1415 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1416 | s//\1/ | |
1417 | q | |
1418 | } | |
1419 | /^X\(\/\/\)[^/].*/{ | |
1420 | s//\1/ | |
1421 | q | |
1422 | } | |
1423 | /^X\(\/\/\)$/{ | |
1424 | s//\1/ | |
1425 | q | |
1426 | } | |
1427 | /^X\(\/\).*/{ | |
1428 | s//\1/ | |
1429 | q | |
1430 | } | |
1431 | s/.*/./; q'` | |
1432 | srcdir=$ac_confdir | |
1433 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1434 | srcdir=.. | |
1435 | fi | |
1436 | else | |
1437 | ac_srcdir_defaulted=no | |
1438 | fi | |
1439 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1440 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1441 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1442 | { (exit 1); exit 1; }; } | |
1443 | fi | |
1444 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1445 | ac_abs_confdir=`( | |
1446 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1447 | { (exit 1); exit 1; }; } | |
1448 | pwd)` | |
1449 | # When building in place, set srcdir=. | |
1450 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1451 | srcdir=. | |
1452 | fi | |
1453 | # Remove unnecessary trailing slashes from srcdir. | |
1454 | # Double slashes in file names in object file debugging info | |
1455 | # mess up M-x gdb in Emacs. | |
1456 | case $srcdir in | |
1457 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1458 | esac | |
1459 | for ac_var in $ac_precious_vars; do | |
1460 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1461 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1462 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1463 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1464 | done | |
1465 | ||
1466 | # | |
1467 | # Report the --help message. | |
1468 | # | |
1469 | if test "$ac_init_help" = "long"; then | |
1470 | # Omit some internal or obsolete options to make the list less imposing. | |
1471 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1472 | cat <<_ACEOF | |
1473 | \`configure' configures yaml 0.1.3 to adapt to many kinds of systems. | |
1474 | ||
1475 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1476 | ||
1477 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1478 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1479 | ||
1480 | Defaults for the options are specified in brackets. | |
1481 | ||
1482 | Configuration: | |
1483 | -h, --help display this help and exit | |
1484 | --help=short display options specific to this package | |
1485 | --help=recursive display the short help of all the included packages | |
1486 | -V, --version display version information and exit | |
1487 | -q, --quiet, --silent do not print \`checking...' messages | |
1488 | --cache-file=FILE cache test results in FILE [disabled] | |
1489 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1490 | -n, --no-create do not create output files | |
1491 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1492 | ||
1493 | Installation directories: | |
1494 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1495 | [$ac_default_prefix] | |
1496 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1497 | [PREFIX] | |
1498 | ||
1499 | By default, \`make install' will install all the files in | |
1500 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1501 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1502 | for instance \`--prefix=\$HOME'. | |
1503 | ||
1504 | For better control, use the options below. | |
1505 | ||
1506 | Fine tuning of the installation directories: | |
1507 | --bindir=DIR user executables [EPREFIX/bin] | |
1508 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1509 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1510 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1511 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1512 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1513 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1514 | --includedir=DIR C header files [PREFIX/include] | |
1515 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1516 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1517 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1518 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1519 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1520 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1521 | --docdir=DIR documentation root [DATAROOTDIR/doc/yaml] | |
1522 | --htmldir=DIR html documentation [DOCDIR] | |
1523 | --dvidir=DIR dvi documentation [DOCDIR] | |
1524 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1525 | --psdir=DIR ps documentation [DOCDIR] | |
1526 | _ACEOF | |
1527 | ||
1528 | cat <<\_ACEOF | |
1529 | ||
1530 | Program names: | |
1531 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1532 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1533 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1534 | ||
1535 | System types: | |
1536 | --build=BUILD configure for building on BUILD [guessed] | |
1537 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1538 | _ACEOF | |
1539 | fi | |
1540 | ||
1541 | if test -n "$ac_init_help"; then | |
1542 | case $ac_init_help in | |
1543 | short | recursive ) echo "Configuration of yaml 0.1.3:";; | |
1544 | esac | |
1545 | cat <<\_ACEOF | |
1546 | ||
1547 | Optional Features: | |
1548 | --disable-option-checking ignore unrecognized --enable/--with options | |
1549 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1550 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1551 | --disable-dependency-tracking speeds up one-time build | |
1552 | --enable-dependency-tracking do not reject slow dependency extractors | |
1553 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1554 | --enable-static[=PKGS] build static libraries [default=yes] | |
1555 | --enable-fast-install[=PKGS] | |
1556 | optimize for fast installation [default=yes] | |
1557 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1558 | ||
1559 | Optional Packages: | |
1560 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1561 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1562 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1563 | both] | |
1564 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1565 | ||
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
1571 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1572 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1573 | you have headers in a nonstandard directory <include dir> | |
1574 | CPP C preprocessor | |
1575 | ||
1576 | Use these variables to override the choices made by `configure' or to help | |
1577 | it to find libraries and programs with nonstandard names/locations. | |
1578 | ||
1579 | Report bugs to <http://pyyaml.org/newticket?component=libyaml>. | |
1580 | _ACEOF | |
1581 | ac_status=$? | |
1582 | fi | |
1583 | ||
1584 | if test "$ac_init_help" = "recursive"; then | |
1585 | # If there are subdirs, report their specific --help. | |
1586 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1587 | test -d "$ac_dir" || | |
1588 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1589 | continue | |
1590 | ac_builddir=. | |
1591 | ||
1592 | case "$ac_dir" in | |
1593 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1594 | *) | |
1595 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1596 | # A ".." for each directory in $ac_dir_suffix. | |
1597 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1598 | case $ac_top_builddir_sub in | |
1599 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1600 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1601 | esac ;; | |
1602 | esac | |
1603 | ac_abs_top_builddir=$ac_pwd | |
1604 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1605 | # for backward compatibility: | |
1606 | ac_top_builddir=$ac_top_build_prefix | |
1607 | ||
1608 | case $srcdir in | |
1609 | .) # We are building in place. | |
1610 | ac_srcdir=. | |
1611 | ac_top_srcdir=$ac_top_builddir_sub | |
1612 | ac_abs_top_srcdir=$ac_pwd ;; | |
1613 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1614 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1615 | ac_top_srcdir=$srcdir | |
1616 | ac_abs_top_srcdir=$srcdir ;; | |
1617 | *) # Relative name. | |
1618 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1619 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1620 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1621 | esac | |
1622 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1623 | ||
1624 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1625 | # Check for guested configure. | |
1626 | if test -f "$ac_srcdir/configure.gnu"; then | |
1627 | echo && | |
1628 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1629 | elif test -f "$ac_srcdir/configure"; then | |
1630 | echo && | |
1631 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1632 | else | |
1633 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1634 | fi || ac_status=$? | |
1635 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1636 | done | |
1637 | fi | |
1638 | ||
1639 | test -n "$ac_init_help" && exit $ac_status | |
1640 | if $ac_init_version; then | |
1641 | cat <<\_ACEOF | |
1642 | yaml configure 0.1.3 | |
1643 | generated by GNU Autoconf 2.63 | |
1644 | ||
1645 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1646 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1647 | This configure script is free software; the Free Software Foundation | |
1648 | gives unlimited permission to copy, distribute and modify it. | |
1649 | _ACEOF | |
1650 | exit | |
1651 | fi | |
1652 | cat >config.log <<_ACEOF | |
1653 | This file contains any messages produced by compilers while | |
1654 | running configure, to aid debugging if configure makes a mistake. | |
1655 | ||
1656 | It was created by yaml $as_me 0.1.3, which was | |
1657 | generated by GNU Autoconf 2.63. Invocation command line was | |
1658 | ||
1659 | $ $0 $@ | |
1660 | ||
1661 | _ACEOF | |
1662 | exec 5>>config.log | |
1663 | { | |
1664 | cat <<_ASUNAME | |
1665 | ## --------- ## | |
1666 | ## Platform. ## | |
1667 | ## --------- ## | |
1668 | ||
1669 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1670 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1671 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1672 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1673 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1674 | ||
1675 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1676 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1677 | ||
1678 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1679 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1680 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1681 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1682 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1683 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1684 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1685 | ||
1686 | _ASUNAME | |
1687 | ||
1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1689 | for as_dir in $PATH | |
1690 | do | |
1691 | IFS=$as_save_IFS | |
1692 | test -z "$as_dir" && as_dir=. | |
1693 | $as_echo "PATH: $as_dir" | |
1694 | done | |
1695 | IFS=$as_save_IFS | |
1696 | ||
1697 | } >&5 | |
1698 | ||
1699 | cat >&5 <<_ACEOF | |
1700 | ||
1701 | ||
1702 | ## ----------- ## | |
1703 | ## Core tests. ## | |
1704 | ## ----------- ## | |
1705 | ||
1706 | _ACEOF | |
1707 | ||
1708 | ||
1709 | # Keep a trace of the command line. | |
1710 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1711 | # Strip out --silent because we don't want to record it for future runs. | |
1712 | # Also quote any args containing shell meta-characters. | |
1713 | # Make two passes to allow for proper duplicate-argument suppression. | |
1714 | ac_configure_args= | |
1715 | ac_configure_args0= | |
1716 | ac_configure_args1= | |
1717 | ac_must_keep_next=false | |
1718 | for ac_pass in 1 2 | |
1719 | do | |
1720 | for ac_arg | |
1721 | do | |
1722 | case $ac_arg in | |
1723 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1724 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1725 | | -silent | --silent | --silen | --sile | --sil) | |
1726 | continue ;; | |
1727 | *\'*) | |
1728 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1729 | esac | |
1730 | case $ac_pass in | |
1731 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1732 | 2) | |
1733 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1734 | if test $ac_must_keep_next = true; then | |
1735 | ac_must_keep_next=false # Got value, back to normal. | |
1736 | else | |
1737 | case $ac_arg in | |
1738 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1739 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1740 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1741 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1742 | case "$ac_configure_args0 " in | |
1743 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1744 | esac | |
1745 | ;; | |
1746 | -* ) ac_must_keep_next=true ;; | |
1747 | esac | |
1748 | fi | |
1749 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1750 | ;; | |
1751 | esac | |
1752 | done | |
1753 | done | |
1754 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1755 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1756 | ||
1757 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1758 | # config.log. We remove comments because anyway the quotes in there | |
1759 | # would cause problems or look ugly. | |
1760 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1761 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1762 | trap 'exit_status=$? | |
1763 | # Save into config.log some information that might help in debugging. | |
1764 | { | |
1765 | echo | |
1766 | ||
1767 | cat <<\_ASBOX | |
1768 | ## ---------------- ## | |
1769 | ## Cache variables. ## | |
1770 | ## ---------------- ## | |
1771 | _ASBOX | |
1772 | echo | |
1773 | # The following way of writing the cache mishandles newlines in values, | |
1774 | ( | |
1775 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1776 | eval ac_val=\$$ac_var | |
1777 | case $ac_val in #( | |
1778 | *${as_nl}*) | |
1779 | case $ac_var in #( | |
1780 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1781 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1782 | esac | |
1783 | case $ac_var in #( | |
1784 | _ | IFS | as_nl) ;; #( | |
1785 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1786 | *) $as_unset $ac_var ;; | |
1787 | esac ;; | |
1788 | esac | |
1789 | done | |
1790 | (set) 2>&1 | | |
1791 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1792 | *${as_nl}ac_space=\ *) | |
1793 | sed -n \ | |
1794 | "s/'\''/'\''\\\\'\'''\''/g; | |
1795 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1796 | ;; #( | |
1797 | *) | |
1798 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1799 | ;; | |
1800 | esac | | |
1801 | sort | |
1802 | ) | |
1803 | echo | |
1804 | ||
1805 | cat <<\_ASBOX | |
1806 | ## ----------------- ## | |
1807 | ## Output variables. ## | |
1808 | ## ----------------- ## | |
1809 | _ASBOX | |
1810 | echo | |
1811 | for ac_var in $ac_subst_vars | |
1812 | do | |
1813 | eval ac_val=\$$ac_var | |
1814 | case $ac_val in | |
1815 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1816 | esac | |
1817 | $as_echo "$ac_var='\''$ac_val'\''" | |
1818 | done | sort | |
1819 | echo | |
1820 | ||
1821 | if test -n "$ac_subst_files"; then | |
1822 | cat <<\_ASBOX | |
1823 | ## ------------------- ## | |
1824 | ## File substitutions. ## | |
1825 | ## ------------------- ## | |
1826 | _ASBOX | |
1827 | echo | |
1828 | for ac_var in $ac_subst_files | |
1829 | do | |
1830 | eval ac_val=\$$ac_var | |
1831 | case $ac_val in | |
1832 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1833 | esac | |
1834 | $as_echo "$ac_var='\''$ac_val'\''" | |
1835 | done | sort | |
1836 | echo | |
1837 | fi | |
1838 | ||
1839 | if test -s confdefs.h; then | |
1840 | cat <<\_ASBOX | |
1841 | ## ----------- ## | |
1842 | ## confdefs.h. ## | |
1843 | ## ----------- ## | |
1844 | _ASBOX | |
1845 | echo | |
1846 | cat confdefs.h | |
1847 | echo | |
1848 | fi | |
1849 | test "$ac_signal" != 0 && | |
1850 | $as_echo "$as_me: caught signal $ac_signal" | |
1851 | $as_echo "$as_me: exit $exit_status" | |
1852 | } >&5 | |
1853 | rm -f core *.core core.conftest.* && | |
1854 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1855 | exit $exit_status | |
1856 | ' 0 | |
1857 | for ac_signal in 1 2 13 15; do | |
1858 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1859 | done | |
1860 | ac_signal=0 | |
1861 | ||
1862 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1863 | rm -f -r conftest* confdefs.h | |
1864 | ||
1865 | # Predefined preprocessor variables. | |
1866 | ||
1867 | cat >>confdefs.h <<_ACEOF | |
1868 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1869 | _ACEOF | |
1870 | ||
1871 | ||
1872 | cat >>confdefs.h <<_ACEOF | |
1873 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1874 | _ACEOF | |
1875 | ||
1876 | ||
1877 | cat >>confdefs.h <<_ACEOF | |
1878 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1879 | _ACEOF | |
1880 | ||
1881 | ||
1882 | cat >>confdefs.h <<_ACEOF | |
1883 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1884 | _ACEOF | |
1885 | ||
1886 | ||
1887 | cat >>confdefs.h <<_ACEOF | |
1888 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1889 | _ACEOF | |
1890 | ||
1891 | ||
1892 | # Let the site file select an alternate cache file if it wants to. | |
1893 | # Prefer an explicitly selected file to automatically selected ones. | |
1894 | ac_site_file1=NONE | |
1895 | ac_site_file2=NONE | |
1896 | if test -n "$CONFIG_SITE"; then | |
1897 | ac_site_file1=$CONFIG_SITE | |
1898 | elif test "x$prefix" != xNONE; then | |
1899 | ac_site_file1=$prefix/share/config.site | |
1900 | ac_site_file2=$prefix/etc/config.site | |
1901 | else | |
1902 | ac_site_file1=$ac_default_prefix/share/config.site | |
1903 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1904 | fi | |
1905 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1906 | do | |
1907 | test "x$ac_site_file" = xNONE && continue | |
1908 | if test -r "$ac_site_file"; then | |
1909 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1910 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1911 | sed 's/^/| /' "$ac_site_file" >&5 | |
1912 | . "$ac_site_file" | |
1913 | fi | |
1914 | done | |
1915 | ||
1916 | if test -r "$cache_file"; then | |
1917 | # Some versions of bash will fail to source /dev/null (special | |
1918 | # files actually), so we avoid doing that. | |
1919 | if test -f "$cache_file"; then | |
1920 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1921 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1922 | case $cache_file in | |
1923 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1924 | *) . "./$cache_file";; | |
1925 | esac | |
1926 | fi | |
1927 | else | |
1928 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1929 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1930 | >$cache_file | |
1931 | fi | |
1932 | ||
1933 | # Check that the precious variables saved in the cache have kept the same | |
1934 | # value. | |
1935 | ac_cache_corrupted=false | |
1936 | for ac_var in $ac_precious_vars; do | |
1937 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1938 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1939 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1940 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1941 | case $ac_old_set,$ac_new_set in | |
1942 | set,) | |
1943 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1944 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1945 | ac_cache_corrupted=: ;; | |
1946 | ,set) | |
1947 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1948 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1949 | ac_cache_corrupted=: ;; | |
1950 | ,);; | |
1951 | *) | |
1952 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1953 | # differences in whitespace do not lead to failure. | |
1954 | ac_old_val_w=`echo x $ac_old_val` | |
1955 | ac_new_val_w=`echo x $ac_new_val` | |
1956 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1957 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1958 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1959 | ac_cache_corrupted=: | |
1960 | else | |
1961 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1962 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1963 | eval $ac_var=\$ac_old_val | |
1964 | fi | |
1965 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1966 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1967 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1968 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1969 | fi;; | |
1970 | esac | |
1971 | # Pass precious variables to config.status. | |
1972 | if test "$ac_new_set" = set; then | |
1973 | case $ac_new_val in | |
1974 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1975 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1976 | esac | |
1977 | case " $ac_configure_args " in | |
1978 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1979 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1980 | esac | |
1981 | fi | |
1982 | done | |
1983 | if $ac_cache_corrupted; then | |
1984 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
1985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1986 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1987 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1988 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1989 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1990 | { (exit 1); exit 1; }; } | |
1991 | fi | |
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 | ||
2017 | ac_ext=c | |
2018 | ac_cpp='$CPP $CPPFLAGS' | |
2019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2022 | ||
2023 | ||
2024 | ac_aux_dir= | |
2025 | for ac_dir in config "$srcdir"/config; do | |
2026 | if test -f "$ac_dir/install-sh"; then | |
2027 | ac_aux_dir=$ac_dir | |
2028 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2029 | break | |
2030 | elif test -f "$ac_dir/install.sh"; then | |
2031 | ac_aux_dir=$ac_dir | |
2032 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2033 | break | |
2034 | elif test -f "$ac_dir/shtool"; then | |
2035 | ac_aux_dir=$ac_dir | |
2036 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2037 | break | |
2038 | fi | |
2039 | done | |
2040 | if test -z "$ac_aux_dir"; then | |
2041 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 | |
2042 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
2043 | { (exit 1); exit 1; }; } | |
2044 | fi | |
2045 | ||
2046 | # These three variables are undocumented and unsupported, | |
2047 | # and are intended to be withdrawn in a future Autoconf release. | |
2048 | # They can cause serious problems if a builder's source tree is in a directory | |
2049 | # whose full name contains unusual characters. | |
2050 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2051 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2052 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2053 | ||
2054 | ||
2055 | ac_config_headers="$ac_config_headers config.h" | |
2056 | ||
2057 | am__api_version='1.10' | |
2058 | ||
2059 | # Find a good install program. We prefer a C program (faster), | |
2060 | # so one script is as good as another. But avoid the broken or | |
2061 | # incompatible versions: | |
2062 | # SysV /etc/install, /usr/sbin/install | |
2063 | # SunOS /usr/etc/install | |
2064 | # IRIX /sbin/install | |
2065 | # AIX /bin/install | |
2066 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2067 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2068 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2069 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2070 | # OS/2's system install, which has a completely different semantic | |
2071 | # ./install, which can be erroneously created by make from ./install.sh. | |
2072 | # Reject install programs that cannot install multiple files. | |
2073 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2074 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2075 | if test -z "$INSTALL"; then | |
2076 | if test "${ac_cv_path_install+set}" = set; then | |
2077 | $as_echo_n "(cached) " >&6 | |
2078 | else | |
2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2080 | for as_dir in $PATH | |
2081 | do | |
2082 | IFS=$as_save_IFS | |
2083 | test -z "$as_dir" && as_dir=. | |
2084 | # Account for people who put trailing slashes in PATH elements. | |
2085 | case $as_dir/ in | |
2086 | ./ | .// | /cC/* | \ | |
2087 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2088 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2089 | /usr/ucb/* ) ;; | |
2090 | *) | |
2091 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2092 | # Don't use installbsd from OSF since it installs stuff as root | |
2093 | # by default. | |
2094 | for ac_prog in ginstall scoinst install; do | |
2095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2096 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2097 | if test $ac_prog = install && | |
2098 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2099 | # AIX install. It has an incompatible calling convention. | |
2100 | : | |
2101 | elif test $ac_prog = install && | |
2102 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2103 | # program-specific install script used by HP pwplus--don't use. | |
2104 | : | |
2105 | else | |
2106 | rm -rf conftest.one conftest.two conftest.dir | |
2107 | echo one > conftest.one | |
2108 | echo two > conftest.two | |
2109 | mkdir conftest.dir | |
2110 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2111 | test -s conftest.one && test -s conftest.two && | |
2112 | test -s conftest.dir/conftest.one && | |
2113 | test -s conftest.dir/conftest.two | |
2114 | then | |
2115 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2116 | break 3 | |
2117 | fi | |
2118 | fi | |
2119 | fi | |
2120 | done | |
2121 | done | |
2122 | ;; | |
2123 | esac | |
2124 | ||
2125 | done | |
2126 | IFS=$as_save_IFS | |
2127 | ||
2128 | rm -rf conftest.one conftest.two conftest.dir | |
2129 | ||
2130 | fi | |
2131 | if test "${ac_cv_path_install+set}" = set; then | |
2132 | INSTALL=$ac_cv_path_install | |
2133 | else | |
2134 | # As a last resort, use the slow shell script. Don't cache a | |
2135 | # value for INSTALL within a source directory, because that will | |
2136 | # break other packages using the cache if that directory is | |
2137 | # removed, or if the value is a relative name. | |
2138 | INSTALL=$ac_install_sh | |
2139 | fi | |
2140 | fi | |
2141 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2142 | $as_echo "$INSTALL" >&6; } | |
2143 | ||
2144 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2145 | # It thinks the first close brace ends the variable substitution. | |
2146 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2147 | ||
2148 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2149 | ||
2150 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2151 | ||
2152 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2153 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2154 | # Just in case | |
2155 | sleep 1 | |
2156 | echo timestamp > conftest.file | |
2157 | # Do `set' in a subshell so we don't clobber the current shell's | |
2158 | # arguments. Must try -L first in case configure is actually a | |
2159 | # symlink; some systems play weird games with the mod time of symlinks | |
2160 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2161 | # directory). | |
2162 | if ( | |
2163 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2164 | if test "$*" = "X"; then | |
2165 | # -L didn't work. | |
2166 | set X `ls -t $srcdir/configure conftest.file` | |
2167 | fi | |
2168 | rm -f conftest.file | |
2169 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2170 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2171 | ||
2172 | # If neither matched, then we have a broken ls. This can happen | |
2173 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2174 | # broken ls alias from the environment. This has actually | |
2175 | # happened. Such a system could not be considered "sane". | |
2176 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2177 | alias in your environment" >&5 | |
2178 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2179 | alias in your environment" >&2;} | |
2180 | { (exit 1); exit 1; }; } | |
2181 | fi | |
2182 | ||
2183 | test "$2" = conftest.file | |
2184 | ) | |
2185 | then | |
2186 | # Ok. | |
2187 | : | |
2188 | else | |
2189 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2190 | Check your system clock" >&5 | |
2191 | $as_echo "$as_me: error: newly created file is older than distributed files! | |
2192 | Check your system clock" >&2;} | |
2193 | { (exit 1); exit 1; }; } | |
2194 | fi | |
2195 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2196 | $as_echo "yes" >&6; } | |
2197 | test "$program_prefix" != NONE && | |
2198 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2199 | # Use a double $ so make ignores it. | |
2200 | test "$program_suffix" != NONE && | |
2201 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2202 | # Double any \ or $. | |
2203 | # By default was `s,x,x', remove it if useless. | |
2204 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2205 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
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 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2221 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2222 | if test -z "$MKDIR_P"; then | |
2223 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2224 | $as_echo_n "(cached) " >&6 | |
2225 | else | |
2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2227 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2228 | do | |
2229 | IFS=$as_save_IFS | |
2230 | test -z "$as_dir" && as_dir=. | |
2231 | for ac_prog in mkdir gmkdir; do | |
2232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2233 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2234 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2235 | 'mkdir (GNU coreutils) '* | \ | |
2236 | 'mkdir (coreutils) '* | \ | |
2237 | 'mkdir (fileutils) '4.1*) | |
2238 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2239 | break 3;; | |
2240 | esac | |
2241 | done | |
2242 | done | |
2243 | done | |
2244 | IFS=$as_save_IFS | |
2245 | ||
2246 | fi | |
2247 | ||
2248 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2249 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2250 | else | |
2251 | # As a last resort, use the slow shell script. Don't cache a | |
2252 | # value for MKDIR_P within a source directory, because that will | |
2253 | # break other packages using the cache if that directory is | |
2254 | # removed, or if the value is a relative name. | |
2255 | test -d ./--version && rmdir ./--version | |
2256 | MKDIR_P="$ac_install_sh -d" | |
2257 | fi | |
2258 | fi | |
2259 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2260 | $as_echo "$MKDIR_P" >&6; } | |
2261 | ||
2262 | mkdir_p="$MKDIR_P" | |
2263 | case $mkdir_p in | |
2264 | [\\/$]* | ?:[\\/]*) ;; | |
2265 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2266 | esac | |
2267 | ||
2268 | for ac_prog in gawk mawk nawk awk | |
2269 | do | |
2270 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2271 | set dummy $ac_prog; ac_word=$2 | |
2272 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2273 | $as_echo_n "checking for $ac_word... " >&6; } | |
2274 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2275 | $as_echo_n "(cached) " >&6 | |
2276 | else | |
2277 | if test -n "$AWK"; then | |
2278 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2279 | else | |
2280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2281 | for as_dir in $PATH | |
2282 | do | |
2283 | IFS=$as_save_IFS | |
2284 | test -z "$as_dir" && as_dir=. | |
2285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2287 | ac_cv_prog_AWK="$ac_prog" | |
2288 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2289 | break 2 | |
2290 | fi | |
2291 | done | |
2292 | done | |
2293 | IFS=$as_save_IFS | |
2294 | ||
2295 | fi | |
2296 | fi | |
2297 | AWK=$ac_cv_prog_AWK | |
2298 | if test -n "$AWK"; then | |
2299 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
2300 | $as_echo "$AWK" >&6; } | |
2301 | else | |
2302 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2303 | $as_echo "no" >&6; } | |
2304 | fi | |
2305 | ||
2306 | ||
2307 | test -n "$AWK" && break | |
2308 | done | |
2309 | ||
2310 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2311 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2312 | set x ${MAKE-make} | |
2313 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2314 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2315 | $as_echo_n "(cached) " >&6 | |
2316 | else | |
2317 | cat >conftest.make <<\_ACEOF | |
2318 | SHELL = /bin/sh | |
2319 | all: | |
2320 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2321 | _ACEOF | |
2322 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2323 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2324 | *@@@%%%=?*=@@@%%%*) | |
2325 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2326 | *) | |
2327 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2328 | esac | |
2329 | rm -f conftest.make | |
2330 | fi | |
2331 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2332 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2333 | $as_echo "yes" >&6; } | |
2334 | SET_MAKE= | |
2335 | else | |
2336 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2337 | $as_echo "no" >&6; } | |
2338 | SET_MAKE="MAKE=${MAKE-make}" | |
2339 | fi | |
2340 | ||
2341 | rm -rf .tst 2>/dev/null | |
2342 | mkdir .tst 2>/dev/null | |
2343 | if test -d .tst; then | |
2344 | am__leading_dot=. | |
2345 | else | |
2346 | am__leading_dot=_ | |
2347 | fi | |
2348 | rmdir .tst 2>/dev/null | |
2349 | ||
2350 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2351 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2352 | # is not polluted with repeated "-I." | |
2353 | am__isrc=' -I$(srcdir)' | |
2354 | # test to see if srcdir already configured | |
2355 | if test -f $srcdir/config.status; then | |
2356 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2357 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2358 | { (exit 1); exit 1; }; } | |
2359 | fi | |
2360 | fi | |
2361 | ||
2362 | # test whether we have cygpath | |
2363 | if test -z "$CYGPATH_W"; then | |
2364 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2365 | CYGPATH_W='cygpath -w' | |
2366 | else | |
2367 | CYGPATH_W=echo | |
2368 | fi | |
2369 | fi | |
2370 | ||
2371 | ||
2372 | # Define the identity of the package. | |
2373 | PACKAGE='yaml' | |
2374 | VERSION='0.1.3' | |
2375 | ||
2376 | ||
2377 | cat >>confdefs.h <<_ACEOF | |
2378 | #define PACKAGE "$PACKAGE" | |
2379 | _ACEOF | |
2380 | ||
2381 | ||
2382 | cat >>confdefs.h <<_ACEOF | |
2383 | #define VERSION "$VERSION" | |
2384 | _ACEOF | |
2385 | ||
2386 | # Some tools Automake needs. | |
2387 | ||
2388 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2389 | ||
2390 | ||
2391 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2392 | ||
2393 | ||
2394 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2395 | ||
2396 | ||
2397 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2398 | ||
2399 | ||
2400 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2401 | ||
2402 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2403 | ||
2404 | # Installed binaries are usually stripped using `strip' when the user | |
2405 | # run `make install-strip'. However `strip' might not be the right | |
2406 | # tool to use in cross-compilation environments, therefore Automake | |
2407 | # will honor the `STRIP' environment variable to overrule this program. | |
2408 | if test "$cross_compiling" != no; then | |
2409 | if test -n "$ac_tool_prefix"; then | |
2410 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2411 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2412 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2413 | $as_echo_n "checking for $ac_word... " >&6; } | |
2414 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2415 | $as_echo_n "(cached) " >&6 | |
2416 | else | |
2417 | if test -n "$STRIP"; then | |
2418 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2419 | else | |
2420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2421 | for as_dir in $PATH | |
2422 | do | |
2423 | IFS=$as_save_IFS | |
2424 | test -z "$as_dir" && as_dir=. | |
2425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2427 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2428 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2429 | break 2 | |
2430 | fi | |
2431 | done | |
2432 | done | |
2433 | IFS=$as_save_IFS | |
2434 | ||
2435 | fi | |
2436 | fi | |
2437 | STRIP=$ac_cv_prog_STRIP | |
2438 | if test -n "$STRIP"; then | |
2439 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2440 | $as_echo "$STRIP" >&6; } | |
2441 | else | |
2442 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2443 | $as_echo "no" >&6; } | |
2444 | fi | |
2445 | ||
2446 | ||
2447 | fi | |
2448 | if test -z "$ac_cv_prog_STRIP"; then | |
2449 | ac_ct_STRIP=$STRIP | |
2450 | # Extract the first word of "strip", so it can be a program name with args. | |
2451 | set dummy strip; ac_word=$2 | |
2452 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2453 | $as_echo_n "checking for $ac_word... " >&6; } | |
2454 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2455 | $as_echo_n "(cached) " >&6 | |
2456 | else | |
2457 | if test -n "$ac_ct_STRIP"; then | |
2458 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2459 | else | |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
2465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2467 | ac_cv_prog_ac_ct_STRIP="strip" | |
2468 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2469 | break 2 | |
2470 | fi | |
2471 | done | |
2472 | done | |
2473 | IFS=$as_save_IFS | |
2474 | ||
2475 | fi | |
2476 | fi | |
2477 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2478 | if test -n "$ac_ct_STRIP"; then | |
2479 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2480 | $as_echo "$ac_ct_STRIP" >&6; } | |
2481 | else | |
2482 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2483 | $as_echo "no" >&6; } | |
2484 | fi | |
2485 | ||
2486 | if test "x$ac_ct_STRIP" = x; then | |
2487 | STRIP=":" | |
2488 | else | |
2489 | case $cross_compiling:$ac_tool_warned in | |
2490 | yes:) | |
2491 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2492 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2493 | ac_tool_warned=yes ;; | |
2494 | esac | |
2495 | STRIP=$ac_ct_STRIP | |
2496 | fi | |
2497 | else | |
2498 | STRIP="$ac_cv_prog_STRIP" | |
2499 | fi | |
2500 | ||
2501 | fi | |
2502 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2503 | ||
2504 | # We need awk for the "check" target. The system "awk" is bad on | |
2505 | # some platforms. | |
2506 | # Always define AMTAR for backward compatibility. | |
2507 | ||
2508 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2509 | ||
2510 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2511 | ||
2512 | ||
2513 | ||
2514 | ||
2515 | ||
2516 | ||
2517 | # Define macro variables for the package version numbers. | |
2518 | ||
2519 | cat >>confdefs.h <<\_ACEOF | |
2520 | #define YAML_VERSION_MAJOR 0 | |
2521 | _ACEOF | |
2522 | ||
2523 | ||
2524 | cat >>confdefs.h <<\_ACEOF | |
2525 | #define YAML_VERSION_MINOR 1 | |
2526 | _ACEOF | |
2527 | ||
2528 | ||
2529 | cat >>confdefs.h <<\_ACEOF | |
2530 | #define YAML_VERSION_PATCH 3 | |
2531 | _ACEOF | |
2532 | ||
2533 | ||
2534 | cat >>confdefs.h <<\_ACEOF | |
2535 | #define YAML_VERSION_STRING "0.1.3" | |
2536 | _ACEOF | |
2537 | ||
2538 | ||
2539 | # Define substitutions for the libtool version numbers. | |
2540 | YAML_LT_RELEASE=0 | |
2541 | YAML_LT_CURRENT=2 | |
2542 | YAML_LT_REVISION=1 | |
2543 | YAML_LT_AGE=0 | |
2544 | ||
2545 | ||
2546 | ||
2547 | ||
2548 | ||
2549 | # Note: in order to update checks, run `autoscan` and look through "configure.scan". | |
2550 | ||
2551 | # Checks for programs. | |
2552 | ac_ext=c | |
2553 | ac_cpp='$CPP $CPPFLAGS' | |
2554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2557 | if test -n "$ac_tool_prefix"; then | |
2558 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2559 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2560 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2561 | $as_echo_n "checking for $ac_word... " >&6; } | |
2562 | if test "${ac_cv_prog_CC+set}" = set; then | |
2563 | $as_echo_n "(cached) " >&6 | |
2564 | else | |
2565 | if test -n "$CC"; then | |
2566 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2567 | else | |
2568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2569 | for as_dir in $PATH | |
2570 | do | |
2571 | IFS=$as_save_IFS | |
2572 | test -z "$as_dir" && as_dir=. | |
2573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2575 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2576 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2577 | break 2 | |
2578 | fi | |
2579 | done | |
2580 | done | |
2581 | IFS=$as_save_IFS | |
2582 | ||
2583 | fi | |
2584 | fi | |
2585 | CC=$ac_cv_prog_CC | |
2586 | if test -n "$CC"; then | |
2587 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2588 | $as_echo "$CC" >&6; } | |
2589 | else | |
2590 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2591 | $as_echo "no" >&6; } | |
2592 | fi | |
2593 | ||
2594 | ||
2595 | fi | |
2596 | if test -z "$ac_cv_prog_CC"; then | |
2597 | ac_ct_CC=$CC | |
2598 | # Extract the first word of "gcc", so it can be a program name with args. | |
2599 | set dummy gcc; ac_word=$2 | |
2600 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2601 | $as_echo_n "checking for $ac_word... " >&6; } | |
2602 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2603 | $as_echo_n "(cached) " >&6 | |
2604 | else | |
2605 | if test -n "$ac_ct_CC"; then | |
2606 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2607 | else | |
2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2609 | for as_dir in $PATH | |
2610 | do | |
2611 | IFS=$as_save_IFS | |
2612 | test -z "$as_dir" && as_dir=. | |
2613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2615 | ac_cv_prog_ac_ct_CC="gcc" | |
2616 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2617 | break 2 | |
2618 | fi | |
2619 | done | |
2620 | done | |
2621 | IFS=$as_save_IFS | |
2622 | ||
2623 | fi | |
2624 | fi | |
2625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2626 | if test -n "$ac_ct_CC"; then | |
2627 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2628 | $as_echo "$ac_ct_CC" >&6; } | |
2629 | else | |
2630 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2631 | $as_echo "no" >&6; } | |
2632 | fi | |
2633 | ||
2634 | if test "x$ac_ct_CC" = x; then | |
2635 | CC="" | |
2636 | else | |
2637 | case $cross_compiling:$ac_tool_warned in | |
2638 | yes:) | |
2639 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2640 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2641 | ac_tool_warned=yes ;; | |
2642 | esac | |
2643 | CC=$ac_ct_CC | |
2644 | fi | |
2645 | else | |
2646 | CC="$ac_cv_prog_CC" | |
2647 | fi | |
2648 | ||
2649 | if test -z "$CC"; then | |
2650 | if test -n "$ac_tool_prefix"; then | |
2651 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2652 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2653 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2654 | $as_echo_n "checking for $ac_word... " >&6; } | |
2655 | if test "${ac_cv_prog_CC+set}" = set; then | |
2656 | $as_echo_n "(cached) " >&6 | |
2657 | else | |
2658 | if test -n "$CC"; then | |
2659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2660 | else | |
2661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2662 | for as_dir in $PATH | |
2663 | do | |
2664 | IFS=$as_save_IFS | |
2665 | test -z "$as_dir" && as_dir=. | |
2666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2668 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2669 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2670 | break 2 | |
2671 | fi | |
2672 | done | |
2673 | done | |
2674 | IFS=$as_save_IFS | |
2675 | ||
2676 | fi | |
2677 | fi | |
2678 | CC=$ac_cv_prog_CC | |
2679 | if test -n "$CC"; then | |
2680 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2681 | $as_echo "$CC" >&6; } | |
2682 | else | |
2683 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2684 | $as_echo "no" >&6; } | |
2685 | fi | |
2686 | ||
2687 | ||
2688 | fi | |
2689 | fi | |
2690 | if test -z "$CC"; then | |
2691 | # Extract the first word of "cc", so it can be a program name with args. | |
2692 | set dummy cc; ac_word=$2 | |
2693 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2694 | $as_echo_n "checking for $ac_word... " >&6; } | |
2695 | if test "${ac_cv_prog_CC+set}" = set; then | |
2696 | $as_echo_n "(cached) " >&6 | |
2697 | else | |
2698 | if test -n "$CC"; then | |
2699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2700 | else | |
2701 | ac_prog_rejected=no | |
2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2703 | for as_dir in $PATH | |
2704 | do | |
2705 | IFS=$as_save_IFS | |
2706 | test -z "$as_dir" && as_dir=. | |
2707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2709 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2710 | ac_prog_rejected=yes | |
2711 | continue | |
2712 | fi | |
2713 | ac_cv_prog_CC="cc" | |
2714 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2715 | break 2 | |
2716 | fi | |
2717 | done | |
2718 | done | |
2719 | IFS=$as_save_IFS | |
2720 | ||
2721 | if test $ac_prog_rejected = yes; then | |
2722 | # We found a bogon in the path, so make sure we never use it. | |
2723 | set dummy $ac_cv_prog_CC | |
2724 | shift | |
2725 | if test $# != 0; then | |
2726 | # We chose a different compiler from the bogus one. | |
2727 | # However, it has the same basename, so the bogon will be chosen | |
2728 | # first if we set CC to just the basename; use the full file name. | |
2729 | shift | |
2730 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2731 | fi | |
2732 | fi | |
2733 | fi | |
2734 | fi | |
2735 | CC=$ac_cv_prog_CC | |
2736 | if test -n "$CC"; then | |
2737 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2738 | $as_echo "$CC" >&6; } | |
2739 | else | |
2740 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2741 | $as_echo "no" >&6; } | |
2742 | fi | |
2743 | ||
2744 | ||
2745 | fi | |
2746 | if test -z "$CC"; then | |
2747 | if test -n "$ac_tool_prefix"; then | |
2748 | for ac_prog in cl.exe | |
2749 | do | |
2750 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2751 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2752 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2753 | $as_echo_n "checking for $ac_word... " >&6; } | |
2754 | if test "${ac_cv_prog_CC+set}" = set; then | |
2755 | $as_echo_n "(cached) " >&6 | |
2756 | else | |
2757 | if test -n "$CC"; then | |
2758 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2759 | else | |
2760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2761 | for as_dir in $PATH | |
2762 | do | |
2763 | IFS=$as_save_IFS | |
2764 | test -z "$as_dir" && as_dir=. | |
2765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2767 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2768 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2769 | break 2 | |
2770 | fi | |
2771 | done | |
2772 | done | |
2773 | IFS=$as_save_IFS | |
2774 | ||
2775 | fi | |
2776 | fi | |
2777 | CC=$ac_cv_prog_CC | |
2778 | if test -n "$CC"; then | |
2779 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2780 | $as_echo "$CC" >&6; } | |
2781 | else | |
2782 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2783 | $as_echo "no" >&6; } | |
2784 | fi | |
2785 | ||
2786 | ||
2787 | test -n "$CC" && break | |
2788 | done | |
2789 | fi | |
2790 | if test -z "$CC"; then | |
2791 | ac_ct_CC=$CC | |
2792 | for ac_prog in cl.exe | |
2793 | do | |
2794 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2795 | set dummy $ac_prog; ac_word=$2 | |
2796 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2797 | $as_echo_n "checking for $ac_word... " >&6; } | |
2798 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2799 | $as_echo_n "(cached) " >&6 | |
2800 | else | |
2801 | if test -n "$ac_ct_CC"; then | |
2802 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2803 | else | |
2804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2805 | for as_dir in $PATH | |
2806 | do | |
2807 | IFS=$as_save_IFS | |
2808 | test -z "$as_dir" && as_dir=. | |
2809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2811 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2812 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2813 | break 2 | |
2814 | fi | |
2815 | done | |
2816 | done | |
2817 | IFS=$as_save_IFS | |
2818 | ||
2819 | fi | |
2820 | fi | |
2821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2822 | if test -n "$ac_ct_CC"; then | |
2823 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2824 | $as_echo "$ac_ct_CC" >&6; } | |
2825 | else | |
2826 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2827 | $as_echo "no" >&6; } | |
2828 | fi | |
2829 | ||
2830 | ||
2831 | test -n "$ac_ct_CC" && break | |
2832 | done | |
2833 | ||
2834 | if test "x$ac_ct_CC" = x; then | |
2835 | CC="" | |
2836 | else | |
2837 | case $cross_compiling:$ac_tool_warned in | |
2838 | yes:) | |
2839 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2841 | ac_tool_warned=yes ;; | |
2842 | esac | |
2843 | CC=$ac_ct_CC | |
2844 | fi | |
2845 | fi | |
2846 | ||
2847 | fi | |
2848 | ||
2849 | ||
2850 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2852 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2853 | See \`config.log' for more details." >&5 | |
2854 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2855 | See \`config.log' for more details." >&2;} | |
2856 | { (exit 1); exit 1; }; }; } | |
2857 | ||
2858 | # Provide some information about the compiler. | |
2859 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2860 | set X $ac_compile | |
2861 | ac_compiler=$2 | |
2862 | { (ac_try="$ac_compiler --version >&5" | |
2863 | case "(($ac_try" in | |
2864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2865 | *) ac_try_echo=$ac_try;; | |
2866 | esac | |
2867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2868 | $as_echo "$ac_try_echo") >&5 | |
2869 | (eval "$ac_compiler --version >&5") 2>&5 | |
2870 | ac_status=$? | |
2871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2872 | (exit $ac_status); } | |
2873 | { (ac_try="$ac_compiler -v >&5" | |
2874 | case "(($ac_try" in | |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2876 | *) ac_try_echo=$ac_try;; | |
2877 | esac | |
2878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2879 | $as_echo "$ac_try_echo") >&5 | |
2880 | (eval "$ac_compiler -v >&5") 2>&5 | |
2881 | ac_status=$? | |
2882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2883 | (exit $ac_status); } | |
2884 | { (ac_try="$ac_compiler -V >&5" | |
2885 | case "(($ac_try" in | |
2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2887 | *) ac_try_echo=$ac_try;; | |
2888 | esac | |
2889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2890 | $as_echo "$ac_try_echo") >&5 | |
2891 | (eval "$ac_compiler -V >&5") 2>&5 | |
2892 | ac_status=$? | |
2893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2894 | (exit $ac_status); } | |
2895 | ||
2896 | cat >conftest.$ac_ext <<_ACEOF | |
2897 | /* confdefs.h. */ | |
2898 | _ACEOF | |
2899 | cat confdefs.h >>conftest.$ac_ext | |
2900 | cat >>conftest.$ac_ext <<_ACEOF | |
2901 | /* end confdefs.h. */ | |
2902 | ||
2903 | int | |
2904 | main () | |
2905 | { | |
2906 | ||
2907 | ; | |
2908 | return 0; | |
2909 | } | |
2910 | _ACEOF | |
2911 | ac_clean_files_save=$ac_clean_files | |
2912 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2913 | # Try to create an executable without -o first, disregard a.out. | |
2914 | # It will help us diagnose broken compilers, and finding out an intuition | |
2915 | # of exeext. | |
2916 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2917 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2918 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2919 | ||
2920 | # The possible output files: | |
2921 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2922 | ||
2923 | ac_rmfiles= | |
2924 | for ac_file in $ac_files | |
2925 | do | |
2926 | case $ac_file in | |
2927 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2928 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2929 | esac | |
2930 | done | |
2931 | rm -f $ac_rmfiles | |
2932 | ||
2933 | if { (ac_try="$ac_link_default" | |
2934 | case "(($ac_try" in | |
2935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2936 | *) ac_try_echo=$ac_try;; | |
2937 | esac | |
2938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2939 | $as_echo "$ac_try_echo") >&5 | |
2940 | (eval "$ac_link_default") 2>&5 | |
2941 | ac_status=$? | |
2942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2943 | (exit $ac_status); }; then | |
2944 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2945 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2946 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2947 | # so that the user can short-circuit this test for compilers unknown to | |
2948 | # Autoconf. | |
2949 | for ac_file in $ac_files '' | |
2950 | do | |
2951 | test -f "$ac_file" || continue | |
2952 | case $ac_file in | |
2953 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2954 | ;; | |
2955 | [ab].out ) | |
2956 | # We found the default executable, but exeext='' is most | |
2957 | # certainly right. | |
2958 | break;; | |
2959 | *.* ) | |
2960 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2961 | then :; else | |
2962 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2963 | fi | |
2964 | # We set ac_cv_exeext here because the later test for it is not | |
2965 | # safe: cross compilers may not add the suffix if given an `-o' | |
2966 | # argument, so we may need to know it at that point already. | |
2967 | # Even if this section looks crufty: it has the advantage of | |
2968 | # actually working. | |
2969 | break;; | |
2970 | * ) | |
2971 | break;; | |
2972 | esac | |
2973 | done | |
2974 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2975 | ||
2976 | else | |
2977 | ac_file='' | |
2978 | fi | |
2979 | ||
2980 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2981 | $as_echo "$ac_file" >&6; } | |
2982 | if test -z "$ac_file"; then | |
2983 | $as_echo "$as_me: failed program was:" >&5 | |
2984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2985 | ||
2986 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2987 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2988 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2989 | See \`config.log' for more details." >&5 | |
2990 | $as_echo "$as_me: error: C compiler cannot create executables | |
2991 | See \`config.log' for more details." >&2;} | |
2992 | { (exit 77); exit 77; }; }; } | |
2993 | fi | |
2994 | ||
2995 | ac_exeext=$ac_cv_exeext | |
2996 | ||
2997 | # Check that the compiler produces executables we can run. If not, either | |
2998 | # the compiler is broken, or we cross compile. | |
2999 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3000 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3001 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3002 | # If not cross compiling, check that we can run a simple program. | |
3003 | if test "$cross_compiling" != yes; then | |
3004 | if { ac_try='./$ac_file' | |
3005 | { (case "(($ac_try" in | |
3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3007 | *) ac_try_echo=$ac_try;; | |
3008 | esac | |
3009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3010 | $as_echo "$ac_try_echo") >&5 | |
3011 | (eval "$ac_try") 2>&5 | |
3012 | ac_status=$? | |
3013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3014 | (exit $ac_status); }; }; then | |
3015 | cross_compiling=no | |
3016 | else | |
3017 | if test "$cross_compiling" = maybe; then | |
3018 | cross_compiling=yes | |
3019 | else | |
3020 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3022 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3023 | If you meant to cross compile, use \`--host'. | |
3024 | See \`config.log' for more details." >&5 | |
3025 | $as_echo "$as_me: error: cannot run C compiled programs. | |
3026 | If you meant to cross compile, use \`--host'. | |
3027 | See \`config.log' for more details." >&2;} | |
3028 | { (exit 1); exit 1; }; }; } | |
3029 | fi | |
3030 | fi | |
3031 | fi | |
3032 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3033 | $as_echo "yes" >&6; } | |
3034 | ||
3035 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3036 | ac_clean_files=$ac_clean_files_save | |
3037 | # Check that the compiler produces executables we can run. If not, either | |
3038 | # the compiler is broken, or we cross compile. | |
3039 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3040 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3041 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3042 | $as_echo "$cross_compiling" >&6; } | |
3043 | ||
3044 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3045 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3046 | if { (ac_try="$ac_link" | |
3047 | case "(($ac_try" in | |
3048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3049 | *) ac_try_echo=$ac_try;; | |
3050 | esac | |
3051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3052 | $as_echo "$ac_try_echo") >&5 | |
3053 | (eval "$ac_link") 2>&5 | |
3054 | ac_status=$? | |
3055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3056 | (exit $ac_status); }; then | |
3057 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3058 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3059 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3060 | # `rm'. | |
3061 | for ac_file in conftest.exe conftest conftest.*; do | |
3062 | test -f "$ac_file" || continue | |
3063 | case $ac_file in | |
3064 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3065 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3066 | break;; | |
3067 | * ) break;; | |
3068 | esac | |
3069 | done | |
3070 | else | |
3071 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3072 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3073 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3074 | See \`config.log' for more details." >&5 | |
3075 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3076 | See \`config.log' for more details." >&2;} | |
3077 | { (exit 1); exit 1; }; }; } | |
3078 | fi | |
3079 | ||
3080 | rm -f conftest$ac_cv_exeext | |
3081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3082 | $as_echo "$ac_cv_exeext" >&6; } | |
3083 | ||
3084 | rm -f conftest.$ac_ext | |
3085 | EXEEXT=$ac_cv_exeext | |
3086 | ac_exeext=$EXEEXT | |
3087 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3088 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3089 | if test "${ac_cv_objext+set}" = set; then | |
3090 | $as_echo_n "(cached) " >&6 | |
3091 | else | |
3092 | cat >conftest.$ac_ext <<_ACEOF | |
3093 | /* confdefs.h. */ | |
3094 | _ACEOF | |
3095 | cat confdefs.h >>conftest.$ac_ext | |
3096 | cat >>conftest.$ac_ext <<_ACEOF | |
3097 | /* end confdefs.h. */ | |
3098 | ||
3099 | int | |
3100 | main () | |
3101 | { | |
3102 | ||
3103 | ; | |
3104 | return 0; | |
3105 | } | |
3106 | _ACEOF | |
3107 | rm -f conftest.o conftest.obj | |
3108 | if { (ac_try="$ac_compile" | |
3109 | case "(($ac_try" in | |
3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3111 | *) ac_try_echo=$ac_try;; | |
3112 | esac | |
3113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3114 | $as_echo "$ac_try_echo") >&5 | |
3115 | (eval "$ac_compile") 2>&5 | |
3116 | ac_status=$? | |
3117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3118 | (exit $ac_status); }; then | |
3119 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3120 | test -f "$ac_file" || continue; | |
3121 | case $ac_file in | |
3122 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3123 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3124 | break;; | |
3125 | esac | |
3126 | done | |
3127 | else | |
3128 | $as_echo "$as_me: failed program was:" >&5 | |
3129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3130 | ||
3131 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3132 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3133 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3134 | See \`config.log' for more details." >&5 | |
3135 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3136 | See \`config.log' for more details." >&2;} | |
3137 | { (exit 1); exit 1; }; }; } | |
3138 | fi | |
3139 | ||
3140 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3141 | fi | |
3142 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3143 | $as_echo "$ac_cv_objext" >&6; } | |
3144 | OBJEXT=$ac_cv_objext | |
3145 | ac_objext=$OBJEXT | |
3146 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3147 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3148 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3149 | $as_echo_n "(cached) " >&6 | |
3150 | else | |
3151 | cat >conftest.$ac_ext <<_ACEOF | |
3152 | /* confdefs.h. */ | |
3153 | _ACEOF | |
3154 | cat confdefs.h >>conftest.$ac_ext | |
3155 | cat >>conftest.$ac_ext <<_ACEOF | |
3156 | /* end confdefs.h. */ | |
3157 | ||
3158 | int | |
3159 | main () | |
3160 | { | |
3161 | #ifndef __GNUC__ | |
3162 | choke me | |
3163 | #endif | |
3164 | ||
3165 | ; | |
3166 | return 0; | |
3167 | } | |
3168 | _ACEOF | |
3169 | rm -f conftest.$ac_objext | |
3170 | if { (ac_try="$ac_compile" | |
3171 | case "(($ac_try" in | |
3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3173 | *) ac_try_echo=$ac_try;; | |
3174 | esac | |
3175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3176 | $as_echo "$ac_try_echo") >&5 | |
3177 | (eval "$ac_compile") 2>conftest.er1 | |
3178 | ac_status=$? | |
3179 | grep -v '^ *+' conftest.er1 >conftest.err | |
3180 | rm -f conftest.er1 | |
3181 | cat conftest.err >&5 | |
3182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3183 | (exit $ac_status); } && { | |
3184 | test -z "$ac_c_werror_flag" || | |
3185 | test ! -s conftest.err | |
3186 | } && test -s conftest.$ac_objext; then | |
3187 | ac_compiler_gnu=yes | |
3188 | else | |
3189 | $as_echo "$as_me: failed program was:" >&5 | |
3190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3191 | ||
3192 | ac_compiler_gnu=no | |
3193 | fi | |
3194 | ||
3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3196 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3197 | ||
3198 | fi | |
3199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3200 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3201 | if test $ac_compiler_gnu = yes; then | |
3202 | GCC=yes | |
3203 | else | |
3204 | GCC= | |
3205 | fi | |
3206 | ac_test_CFLAGS=${CFLAGS+set} | |
3207 | ac_save_CFLAGS=$CFLAGS | |
3208 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3209 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3210 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3211 | $as_echo_n "(cached) " >&6 | |
3212 | else | |
3213 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3214 | ac_c_werror_flag=yes | |
3215 | ac_cv_prog_cc_g=no | |
3216 | CFLAGS="-g" | |
3217 | cat >conftest.$ac_ext <<_ACEOF | |
3218 | /* confdefs.h. */ | |
3219 | _ACEOF | |
3220 | cat confdefs.h >>conftest.$ac_ext | |
3221 | cat >>conftest.$ac_ext <<_ACEOF | |
3222 | /* end confdefs.h. */ | |
3223 | ||
3224 | int | |
3225 | main () | |
3226 | { | |
3227 | ||
3228 | ; | |
3229 | return 0; | |
3230 | } | |
3231 | _ACEOF | |
3232 | rm -f conftest.$ac_objext | |
3233 | if { (ac_try="$ac_compile" | |
3234 | case "(($ac_try" in | |
3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3236 | *) ac_try_echo=$ac_try;; | |
3237 | esac | |
3238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3239 | $as_echo "$ac_try_echo") >&5 | |
3240 | (eval "$ac_compile") 2>conftest.er1 | |
3241 | ac_status=$? | |
3242 | grep -v '^ *+' conftest.er1 >conftest.err | |
3243 | rm -f conftest.er1 | |
3244 | cat conftest.err >&5 | |
3245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3246 | (exit $ac_status); } && { | |
3247 | test -z "$ac_c_werror_flag" || | |
3248 | test ! -s conftest.err | |
3249 | } && test -s conftest.$ac_objext; then | |
3250 | ac_cv_prog_cc_g=yes | |
3251 | else | |
3252 | $as_echo "$as_me: failed program was:" >&5 | |
3253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3254 | ||
3255 | CFLAGS="" | |
3256 | cat >conftest.$ac_ext <<_ACEOF | |
3257 | /* confdefs.h. */ | |
3258 | _ACEOF | |
3259 | cat confdefs.h >>conftest.$ac_ext | |
3260 | cat >>conftest.$ac_ext <<_ACEOF | |
3261 | /* end confdefs.h. */ | |
3262 | ||
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | ||
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
3271 | rm -f conftest.$ac_objext | |
3272 | if { (ac_try="$ac_compile" | |
3273 | case "(($ac_try" in | |
3274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3275 | *) ac_try_echo=$ac_try;; | |
3276 | esac | |
3277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3278 | $as_echo "$ac_try_echo") >&5 | |
3279 | (eval "$ac_compile") 2>conftest.er1 | |
3280 | ac_status=$? | |
3281 | grep -v '^ *+' conftest.er1 >conftest.err | |
3282 | rm -f conftest.er1 | |
3283 | cat conftest.err >&5 | |
3284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3285 | (exit $ac_status); } && { | |
3286 | test -z "$ac_c_werror_flag" || | |
3287 | test ! -s conftest.err | |
3288 | } && test -s conftest.$ac_objext; then | |
3289 | : | |
3290 | else | |
3291 | $as_echo "$as_me: failed program was:" >&5 | |
3292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3293 | ||
3294 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3295 | CFLAGS="-g" | |
3296 | cat >conftest.$ac_ext <<_ACEOF | |
3297 | /* confdefs.h. */ | |
3298 | _ACEOF | |
3299 | cat confdefs.h >>conftest.$ac_ext | |
3300 | cat >>conftest.$ac_ext <<_ACEOF | |
3301 | /* end confdefs.h. */ | |
3302 | ||
3303 | int | |
3304 | main () | |
3305 | { | |
3306 | ||
3307 | ; | |
3308 | return 0; | |
3309 | } | |
3310 | _ACEOF | |
3311 | rm -f conftest.$ac_objext | |
3312 | if { (ac_try="$ac_compile" | |
3313 | case "(($ac_try" in | |
3314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3315 | *) ac_try_echo=$ac_try;; | |
3316 | esac | |
3317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3318 | $as_echo "$ac_try_echo") >&5 | |
3319 | (eval "$ac_compile") 2>conftest.er1 | |
3320 | ac_status=$? | |
3321 | grep -v '^ *+' conftest.er1 >conftest.err | |
3322 | rm -f conftest.er1 | |
3323 | cat conftest.err >&5 | |
3324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3325 | (exit $ac_status); } && { | |
3326 | test -z "$ac_c_werror_flag" || | |
3327 | test ! -s conftest.err | |
3328 | } && test -s conftest.$ac_objext; then | |
3329 | ac_cv_prog_cc_g=yes | |
3330 | else | |
3331 | $as_echo "$as_me: failed program was:" >&5 | |
3332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3333 | ||
3334 | ||
3335 | fi | |
3336 | ||
3337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3338 | fi | |
3339 | ||
3340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3341 | fi | |
3342 | ||
3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3344 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3345 | fi | |
3346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3347 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3348 | if test "$ac_test_CFLAGS" = set; then | |
3349 | CFLAGS=$ac_save_CFLAGS | |
3350 | elif test $ac_cv_prog_cc_g = yes; then | |
3351 | if test "$GCC" = yes; then | |
3352 | CFLAGS="-g -O2" | |
3353 | else | |
3354 | CFLAGS="-g" | |
3355 | fi | |
3356 | else | |
3357 | if test "$GCC" = yes; then | |
3358 | CFLAGS="-O2" | |
3359 | else | |
3360 | CFLAGS= | |
3361 | fi | |
3362 | fi | |
3363 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3364 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3365 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3366 | $as_echo_n "(cached) " >&6 | |
3367 | else | |
3368 | ac_cv_prog_cc_c89=no | |
3369 | ac_save_CC=$CC | |
3370 | cat >conftest.$ac_ext <<_ACEOF | |
3371 | /* confdefs.h. */ | |
3372 | _ACEOF | |
3373 | cat confdefs.h >>conftest.$ac_ext | |
3374 | cat >>conftest.$ac_ext <<_ACEOF | |
3375 | /* end confdefs.h. */ | |
3376 | #include <stdarg.h> | |
3377 | #include <stdio.h> | |
3378 | #include <sys/types.h> | |
3379 | #include <sys/stat.h> | |
3380 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3381 | struct buf { int x; }; | |
3382 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3383 | static char *e (p, i) | |
3384 | char **p; | |
3385 | int i; | |
3386 | { | |
3387 | return p[i]; | |
3388 | } | |
3389 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3390 | { | |
3391 | char *s; | |
3392 | va_list v; | |
3393 | va_start (v,p); | |
3394 | s = g (p, va_arg (v,int)); | |
3395 | va_end (v); | |
3396 | return s; | |
3397 | } | |
3398 | ||
3399 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3400 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3401 | These don't provoke an error unfortunately, instead are silently treated | |
3402 | as 'x'. The following induces an error, until -std is added to get | |
3403 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3404 | array size at least. It's necessary to write '\x00'==0 to get something | |
3405 | that's true only with -std. */ | |
3406 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3407 | ||
3408 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3409 | inside strings and character constants. */ | |
3410 | #define FOO(x) 'x' | |
3411 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3412 | ||
3413 | int test (int i, double x); | |
3414 | struct s1 {int (*f) (int a);}; | |
3415 | struct s2 {int (*f) (double a);}; | |
3416 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3417 | int argc; | |
3418 | char **argv; | |
3419 | int | |
3420 | main () | |
3421 | { | |
3422 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3423 | ; | |
3424 | return 0; | |
3425 | } | |
3426 | _ACEOF | |
3427 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3428 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3429 | do | |
3430 | CC="$ac_save_CC $ac_arg" | |
3431 | rm -f conftest.$ac_objext | |
3432 | if { (ac_try="$ac_compile" | |
3433 | case "(($ac_try" in | |
3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3435 | *) ac_try_echo=$ac_try;; | |
3436 | esac | |
3437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3438 | $as_echo "$ac_try_echo") >&5 | |
3439 | (eval "$ac_compile") 2>conftest.er1 | |
3440 | ac_status=$? | |
3441 | grep -v '^ *+' conftest.er1 >conftest.err | |
3442 | rm -f conftest.er1 | |
3443 | cat conftest.err >&5 | |
3444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3445 | (exit $ac_status); } && { | |
3446 | test -z "$ac_c_werror_flag" || | |
3447 | test ! -s conftest.err | |
3448 | } && test -s conftest.$ac_objext; then | |
3449 | ac_cv_prog_cc_c89=$ac_arg | |
3450 | else | |
3451 | $as_echo "$as_me: failed program was:" >&5 | |
3452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3453 | ||
3454 | ||
3455 | fi | |
3456 | ||
3457 | rm -f core conftest.err conftest.$ac_objext | |
3458 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3459 | done | |
3460 | rm -f conftest.$ac_ext | |
3461 | CC=$ac_save_CC | |
3462 | ||
3463 | fi | |
3464 | # AC_CACHE_VAL | |
3465 | case "x$ac_cv_prog_cc_c89" in | |
3466 | x) | |
3467 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3468 | $as_echo "none needed" >&6; } ;; | |
3469 | xno) | |
3470 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3471 | $as_echo "unsupported" >&6; } ;; | |
3472 | *) | |
3473 | CC="$CC $ac_cv_prog_cc_c89" | |
3474 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3475 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3476 | esac | |
3477 | ||
3478 | ||
3479 | ac_ext=c | |
3480 | ac_cpp='$CPP $CPPFLAGS' | |
3481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3484 | DEPDIR="${am__leading_dot}deps" | |
3485 | ||
3486 | ac_config_commands="$ac_config_commands depfiles" | |
3487 | ||
3488 | ||
3489 | am_make=${MAKE-make} | |
3490 | cat > confinc << 'END' | |
3491 | am__doit: | |
3492 | @echo done | |
3493 | .PHONY: am__doit | |
3494 | END | |
3495 | # If we don't find an include directive, just comment out the code. | |
3496 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3497 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3498 | am__include="#" | |
3499 | am__quote= | |
3500 | _am_result=none | |
3501 | # First try GNU make style include. | |
3502 | echo "include confinc" > confmf | |
3503 | # We grep out `Entering directory' and `Leaving directory' | |
3504 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3505 | # In particular we don't look at `^make:' because GNU make might | |
3506 | # be invoked under some other name (usually "gmake"), in which | |
3507 | # case it prints its new name instead of `make'. | |
3508 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3509 | am__include=include | |
3510 | am__quote= | |
3511 | _am_result=GNU | |
3512 | fi | |
3513 | # Now try BSD make style include. | |
3514 | if test "$am__include" = "#"; then | |
3515 | echo '.include "confinc"' > confmf | |
3516 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3517 | am__include=.include | |
3518 | am__quote="\"" | |
3519 | _am_result=BSD | |
3520 | fi | |
3521 | fi | |
3522 | ||
3523 | ||
3524 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3525 | $as_echo "$_am_result" >&6; } | |
3526 | rm -f confinc confmf | |
3527 | ||
3528 | # Check whether --enable-dependency-tracking was given. | |
3529 | if test "${enable_dependency_tracking+set}" = set; then | |
3530 | enableval=$enable_dependency_tracking; | |
3531 | fi | |
3532 | ||
3533 | if test "x$enable_dependency_tracking" != xno; then | |
3534 | am_depcomp="$ac_aux_dir/depcomp" | |
3535 | AMDEPBACKSLASH='\' | |
3536 | fi | |
3537 | if test "x$enable_dependency_tracking" != xno; then | |
3538 | AMDEP_TRUE= | |
3539 | AMDEP_FALSE='#' | |
3540 | else | |
3541 | AMDEP_TRUE='#' | |
3542 | AMDEP_FALSE= | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | ||
3547 | depcc="$CC" am_compiler_list= | |
3548 | ||
3549 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3550 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3551 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3552 | $as_echo_n "(cached) " >&6 | |
3553 | else | |
3554 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3555 | # We make a subdir and do the tests there. Otherwise we can end up | |
3556 | # making bogus files that we don't know about and never remove. For | |
3557 | # instance it was reported that on HP-UX the gcc test will end up | |
3558 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3559 | # in D'. | |
3560 | mkdir conftest.dir | |
3561 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3562 | # using a relative directory. | |
3563 | cp "$am_depcomp" conftest.dir | |
3564 | cd conftest.dir | |
3565 | # We will build objects and dependencies in a subdirectory because | |
3566 | # it helps to detect inapplicable dependency modes. For instance | |
3567 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3568 | # side effect of compilation, but ICC will put the dependencies in | |
3569 | # the current directory while Tru64 will put them in the object | |
3570 | # directory. | |
3571 | mkdir sub | |
3572 | ||
3573 | am_cv_CC_dependencies_compiler_type=none | |
3574 | if test "$am_compiler_list" = ""; then | |
3575 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3576 | fi | |
3577 | for depmode in $am_compiler_list; do | |
3578 | # Setup a source with many dependencies, because some compilers | |
3579 | # like to wrap large dependency lists on column 80 (with \), and | |
3580 | # we should not choose a depcomp mode which is confused by this. | |
3581 | # | |
3582 | # We need to recreate these files for each test, as the compiler may | |
3583 | # overwrite some of them when testing with obscure command lines. | |
3584 | # This happens at least with the AIX C compiler. | |
3585 | : > sub/conftest.c | |
3586 | for i in 1 2 3 4 5 6; do | |
3587 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3588 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3589 | # Solaris 8's {/usr,}/bin/sh. | |
3590 | touch sub/conftst$i.h | |
3591 | done | |
3592 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3593 | ||
3594 | case $depmode in | |
3595 | nosideeffect) | |
3596 | # after this tag, mechanisms are not by side-effect, so they'll | |
3597 | # only be used when explicitly requested | |
3598 | if test "x$enable_dependency_tracking" = xyes; then | |
3599 | continue | |
3600 | else | |
3601 | break | |
3602 | fi | |
3603 | ;; | |
3604 | none) break ;; | |
3605 | esac | |
3606 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3607 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3608 | # handle `-M -o', and we need to detect this. | |
3609 | if depmode=$depmode \ | |
3610 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3611 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3612 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3613 | >/dev/null 2>conftest.err && | |
3614 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3615 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3616 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3617 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3618 | # icc doesn't choke on unknown options, it will just issue warnings | |
3619 | # or remarks (even with -Werror). So we grep stderr for any message | |
3620 | # that says an option was ignored or not supported. | |
3621 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3622 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3623 | # The diagnosis changed in icc 8.0: | |
3624 | # icc: Command line remark: option '-MP' not supported | |
3625 | if (grep 'ignoring option' conftest.err || | |
3626 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3627 | am_cv_CC_dependencies_compiler_type=$depmode | |
3628 | break | |
3629 | fi | |
3630 | fi | |
3631 | done | |
3632 | ||
3633 | cd .. | |
3634 | rm -rf conftest.dir | |
3635 | else | |
3636 | am_cv_CC_dependencies_compiler_type=none | |
3637 | fi | |
3638 | ||
3639 | fi | |
3640 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3641 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3642 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3643 | ||
3644 | if | |
3645 | test "x$enable_dependency_tracking" != xno \ | |
3646 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3647 | am__fastdepCC_TRUE= | |
3648 | am__fastdepCC_FALSE='#' | |
3649 | else | |
3650 | am__fastdepCC_TRUE='#' | |
3651 | am__fastdepCC_FALSE= | |
3652 | fi | |
3653 | ||
3654 | ||
3655 | ac_ext=c | |
3656 | ac_cpp='$CPP $CPPFLAGS' | |
3657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3660 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3661 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3662 | # On Suns, sometimes $CPP names a directory. | |
3663 | if test -n "$CPP" && test -d "$CPP"; then | |
3664 | CPP= | |
3665 | fi | |
3666 | if test -z "$CPP"; then | |
3667 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3668 | $as_echo_n "(cached) " >&6 | |
3669 | else | |
3670 | # Double quotes because CPP needs to be expanded | |
3671 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3672 | do | |
3673 | ac_preproc_ok=false | |
3674 | for ac_c_preproc_warn_flag in '' yes | |
3675 | do | |
3676 | # Use a header file that comes with gcc, so configuring glibc | |
3677 | # with a fresh cross-compiler works. | |
3678 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3679 | # <limits.h> exists even on freestanding compilers. | |
3680 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3681 | # not just through cpp. "Syntax error" is here to catch this case. | |
3682 | cat >conftest.$ac_ext <<_ACEOF | |
3683 | /* confdefs.h. */ | |
3684 | _ACEOF | |
3685 | cat confdefs.h >>conftest.$ac_ext | |
3686 | cat >>conftest.$ac_ext <<_ACEOF | |
3687 | /* end confdefs.h. */ | |
3688 | #ifdef __STDC__ | |
3689 | # include <limits.h> | |
3690 | #else | |
3691 | # include <assert.h> | |
3692 | #endif | |
3693 | Syntax error | |
3694 | _ACEOF | |
3695 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3696 | case "(($ac_try" in | |
3697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3698 | *) ac_try_echo=$ac_try;; | |
3699 | esac | |
3700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3701 | $as_echo "$ac_try_echo") >&5 | |
3702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3703 | ac_status=$? | |
3704 | grep -v '^ *+' conftest.er1 >conftest.err | |
3705 | rm -f conftest.er1 | |
3706 | cat conftest.err >&5 | |
3707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3708 | (exit $ac_status); } >/dev/null && { | |
3709 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3710 | test ! -s conftest.err | |
3711 | }; then | |
3712 | : | |
3713 | else | |
3714 | $as_echo "$as_me: failed program was:" >&5 | |
3715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3716 | ||
3717 | # Broken: fails on valid input. | |
3718 | continue | |
3719 | fi | |
3720 | ||
3721 | rm -f conftest.err conftest.$ac_ext | |
3722 | ||
3723 | # OK, works on sane cases. Now check whether nonexistent headers | |
3724 | # can be detected and how. | |
3725 | cat >conftest.$ac_ext <<_ACEOF | |
3726 | /* confdefs.h. */ | |
3727 | _ACEOF | |
3728 | cat confdefs.h >>conftest.$ac_ext | |
3729 | cat >>conftest.$ac_ext <<_ACEOF | |
3730 | /* end confdefs.h. */ | |
3731 | #include <ac_nonexistent.h> | |
3732 | _ACEOF | |
3733 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3734 | case "(($ac_try" in | |
3735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3736 | *) ac_try_echo=$ac_try;; | |
3737 | esac | |
3738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3739 | $as_echo "$ac_try_echo") >&5 | |
3740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3741 | ac_status=$? | |
3742 | grep -v '^ *+' conftest.er1 >conftest.err | |
3743 | rm -f conftest.er1 | |
3744 | cat conftest.err >&5 | |
3745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3746 | (exit $ac_status); } >/dev/null && { | |
3747 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3748 | test ! -s conftest.err | |
3749 | }; then | |
3750 | # Broken: success on invalid input. | |
3751 | continue | |
3752 | else | |
3753 | $as_echo "$as_me: failed program was:" >&5 | |
3754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3755 | ||
3756 | # Passes both tests. | |
3757 | ac_preproc_ok=: | |
3758 | break | |
3759 | fi | |
3760 | ||
3761 | rm -f conftest.err conftest.$ac_ext | |
3762 | ||
3763 | done | |
3764 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3765 | rm -f conftest.err conftest.$ac_ext | |
3766 | if $ac_preproc_ok; then | |
3767 | break | |
3768 | fi | |
3769 | ||
3770 | done | |
3771 | ac_cv_prog_CPP=$CPP | |
3772 | ||
3773 | fi | |
3774 | CPP=$ac_cv_prog_CPP | |
3775 | else | |
3776 | ac_cv_prog_CPP=$CPP | |
3777 | fi | |
3778 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
3779 | $as_echo "$CPP" >&6; } | |
3780 | ac_preproc_ok=false | |
3781 | for ac_c_preproc_warn_flag in '' yes | |
3782 | do | |
3783 | # Use a header file that comes with gcc, so configuring glibc | |
3784 | # with a fresh cross-compiler works. | |
3785 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3786 | # <limits.h> exists even on freestanding compilers. | |
3787 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3788 | # not just through cpp. "Syntax error" is here to catch this case. | |
3789 | cat >conftest.$ac_ext <<_ACEOF | |
3790 | /* confdefs.h. */ | |
3791 | _ACEOF | |
3792 | cat confdefs.h >>conftest.$ac_ext | |
3793 | cat >>conftest.$ac_ext <<_ACEOF | |
3794 | /* end confdefs.h. */ | |
3795 | #ifdef __STDC__ | |
3796 | # include <limits.h> | |
3797 | #else | |
3798 | # include <assert.h> | |
3799 | #endif | |
3800 | Syntax error | |
3801 | _ACEOF | |
3802 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3803 | case "(($ac_try" in | |
3804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3805 | *) ac_try_echo=$ac_try;; | |
3806 | esac | |
3807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3808 | $as_echo "$ac_try_echo") >&5 | |
3809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3810 | ac_status=$? | |
3811 | grep -v '^ *+' conftest.er1 >conftest.err | |
3812 | rm -f conftest.er1 | |
3813 | cat conftest.err >&5 | |
3814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3815 | (exit $ac_status); } >/dev/null && { | |
3816 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3817 | test ! -s conftest.err | |
3818 | }; then | |
3819 | : | |
3820 | else | |
3821 | $as_echo "$as_me: failed program was:" >&5 | |
3822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3823 | ||
3824 | # Broken: fails on valid input. | |
3825 | continue | |
3826 | fi | |
3827 | ||
3828 | rm -f conftest.err conftest.$ac_ext | |
3829 | ||
3830 | # OK, works on sane cases. Now check whether nonexistent headers | |
3831 | # can be detected and how. | |
3832 | cat >conftest.$ac_ext <<_ACEOF | |
3833 | /* confdefs.h. */ | |
3834 | _ACEOF | |
3835 | cat confdefs.h >>conftest.$ac_ext | |
3836 | cat >>conftest.$ac_ext <<_ACEOF | |
3837 | /* end confdefs.h. */ | |
3838 | #include <ac_nonexistent.h> | |
3839 | _ACEOF | |
3840 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3841 | case "(($ac_try" in | |
3842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3843 | *) ac_try_echo=$ac_try;; | |
3844 | esac | |
3845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3846 | $as_echo "$ac_try_echo") >&5 | |
3847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3848 | ac_status=$? | |
3849 | grep -v '^ *+' conftest.er1 >conftest.err | |
3850 | rm -f conftest.er1 | |
3851 | cat conftest.err >&5 | |
3852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3853 | (exit $ac_status); } >/dev/null && { | |
3854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3855 | test ! -s conftest.err | |
3856 | }; then | |
3857 | # Broken: success on invalid input. | |
3858 | continue | |
3859 | else | |
3860 | $as_echo "$as_me: failed program was:" >&5 | |
3861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3862 | ||
3863 | # Passes both tests. | |
3864 | ac_preproc_ok=: | |
3865 | break | |
3866 | fi | |
3867 | ||
3868 | rm -f conftest.err conftest.$ac_ext | |
3869 | ||
3870 | done | |
3871 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3872 | rm -f conftest.err conftest.$ac_ext | |
3873 | if $ac_preproc_ok; then | |
3874 | : | |
3875 | else | |
3876 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3878 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3879 | See \`config.log' for more details." >&5 | |
3880 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3881 | See \`config.log' for more details." >&2;} | |
3882 | { (exit 1); exit 1; }; }; } | |
3883 | fi | |
3884 | ||
3885 | ac_ext=c | |
3886 | ac_cpp='$CPP $CPPFLAGS' | |
3887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3890 | ||
3891 | # Find a good install program. We prefer a C program (faster), | |
3892 | # so one script is as good as another. But avoid the broken or | |
3893 | # incompatible versions: | |
3894 | # SysV /etc/install, /usr/sbin/install | |
3895 | # SunOS /usr/etc/install | |
3896 | # IRIX /sbin/install | |
3897 | # AIX /bin/install | |
3898 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3899 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3900 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3901 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3902 | # OS/2's system install, which has a completely different semantic | |
3903 | # ./install, which can be erroneously created by make from ./install.sh. | |
3904 | # Reject install programs that cannot install multiple files. | |
3905 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3906 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3907 | if test -z "$INSTALL"; then | |
3908 | if test "${ac_cv_path_install+set}" = set; then | |
3909 | $as_echo_n "(cached) " >&6 | |
3910 | else | |
3911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3912 | for as_dir in $PATH | |
3913 | do | |
3914 | IFS=$as_save_IFS | |
3915 | test -z "$as_dir" && as_dir=. | |
3916 | # Account for people who put trailing slashes in PATH elements. | |
3917 | case $as_dir/ in | |
3918 | ./ | .// | /cC/* | \ | |
3919 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3920 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3921 | /usr/ucb/* ) ;; | |
3922 | *) | |
3923 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3924 | # Don't use installbsd from OSF since it installs stuff as root | |
3925 | # by default. | |
3926 | for ac_prog in ginstall scoinst install; do | |
3927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3928 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3929 | if test $ac_prog = install && | |
3930 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3931 | # AIX install. It has an incompatible calling convention. | |
3932 | : | |
3933 | elif test $ac_prog = install && | |
3934 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3935 | # program-specific install script used by HP pwplus--don't use. | |
3936 | : | |
3937 | else | |
3938 | rm -rf conftest.one conftest.two conftest.dir | |
3939 | echo one > conftest.one | |
3940 | echo two > conftest.two | |
3941 | mkdir conftest.dir | |
3942 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3943 | test -s conftest.one && test -s conftest.two && | |
3944 | test -s conftest.dir/conftest.one && | |
3945 | test -s conftest.dir/conftest.two | |
3946 | then | |
3947 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3948 | break 3 | |
3949 | fi | |
3950 | fi | |
3951 | fi | |
3952 | done | |
3953 | done | |
3954 | ;; | |
3955 | esac | |
3956 | ||
3957 | done | |
3958 | IFS=$as_save_IFS | |
3959 | ||
3960 | rm -rf conftest.one conftest.two conftest.dir | |
3961 | ||
3962 | fi | |
3963 | if test "${ac_cv_path_install+set}" = set; then | |
3964 | INSTALL=$ac_cv_path_install | |
3965 | else | |
3966 | # As a last resort, use the slow shell script. Don't cache a | |
3967 | # value for INSTALL within a source directory, because that will | |
3968 | # break other packages using the cache if that directory is | |
3969 | # removed, or if the value is a relative name. | |
3970 | INSTALL=$ac_install_sh | |
3971 | fi | |
3972 | fi | |
3973 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3974 | $as_echo "$INSTALL" >&6; } | |
3975 | ||
3976 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3977 | # It thinks the first close brace ends the variable substitution. | |
3978 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3979 | ||
3980 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3981 | ||
3982 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3983 | ||
3984 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3985 | $as_echo_n "checking whether ln -s works... " >&6; } | |
3986 | LN_S=$as_ln_s | |
3987 | if test "$LN_S" = "ln -s"; then | |
3988 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3989 | $as_echo "yes" >&6; } | |
3990 | else | |
3991 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3992 | $as_echo "no, using $LN_S" >&6; } | |
3993 | fi | |
3994 | ||
3995 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3996 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3997 | set x ${MAKE-make} | |
3998 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3999 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
4000 | $as_echo_n "(cached) " >&6 | |
4001 | else | |
4002 | cat >conftest.make <<\_ACEOF | |
4003 | SHELL = /bin/sh | |
4004 | all: | |
4005 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4006 | _ACEOF | |
4007 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4008 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4009 | *@@@%%%=?*=@@@%%%*) | |
4010 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4011 | *) | |
4012 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4013 | esac | |
4014 | rm -f conftest.make | |
4015 | fi | |
4016 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4017 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
4018 | $as_echo "yes" >&6; } | |
4019 | SET_MAKE= | |
4020 | else | |
4021 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4022 | $as_echo "no" >&6; } | |
4023 | SET_MAKE="MAKE=${MAKE-make}" | |
4024 | fi | |
4025 | ||
4026 | case `pwd` in | |
4027 | *\ * | *\ *) | |
4028 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4029 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4030 | esac | |
4031 | ||
4032 | ||
4033 | ||
4034 | macro_version='2.2.6' | |
4035 | macro_revision='1.3012' | |
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | ||
4049 | ltmain="$ac_aux_dir/ltmain.sh" | |
4050 | ||
4051 | # Make sure we can run config.sub. | |
4052 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4053 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
4054 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
4055 | { (exit 1); exit 1; }; } | |
4056 | ||
4057 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
4058 | $as_echo_n "checking build system type... " >&6; } | |
4059 | if test "${ac_cv_build+set}" = set; then | |
4060 | $as_echo_n "(cached) " >&6 | |
4061 | else | |
4062 | ac_build_alias=$build_alias | |
4063 | test "x$ac_build_alias" = x && | |
4064 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4065 | test "x$ac_build_alias" = x && | |
4066 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
4067 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
4068 | { (exit 1); exit 1; }; } | |
4069 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4070 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
4071 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
4072 | { (exit 1); exit 1; }; } | |
4073 | ||
4074 | fi | |
4075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
4076 | $as_echo "$ac_cv_build" >&6; } | |
4077 | case $ac_cv_build in | |
4078 | *-*-*) ;; | |
4079 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
4080 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
4081 | { (exit 1); exit 1; }; };; | |
4082 | esac | |
4083 | build=$ac_cv_build | |
4084 | ac_save_IFS=$IFS; IFS='-' | |
4085 | set x $ac_cv_build | |
4086 | shift | |
4087 | build_cpu=$1 | |
4088 | build_vendor=$2 | |
4089 | shift; shift | |
4090 | # Remember, the first character of IFS is used to create $*, | |
4091 | # except with old shells: | |
4092 | build_os=$* | |
4093 | IFS=$ac_save_IFS | |
4094 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4095 | ||
4096 | ||
4097 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
4098 | $as_echo_n "checking host system type... " >&6; } | |
4099 | if test "${ac_cv_host+set}" = set; then | |
4100 | $as_echo_n "(cached) " >&6 | |
4101 | else | |
4102 | if test "x$host_alias" = x; then | |
4103 | ac_cv_host=$ac_cv_build | |
4104 | else | |
4105 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4106 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
4107 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
4108 | { (exit 1); exit 1; }; } | |
4109 | fi | |
4110 | ||
4111 | fi | |
4112 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
4113 | $as_echo "$ac_cv_host" >&6; } | |
4114 | case $ac_cv_host in | |
4115 | *-*-*) ;; | |
4116 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
4117 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
4118 | { (exit 1); exit 1; }; };; | |
4119 | esac | |
4120 | host=$ac_cv_host | |
4121 | ac_save_IFS=$IFS; IFS='-' | |
4122 | set x $ac_cv_host | |
4123 | shift | |
4124 | host_cpu=$1 | |
4125 | host_vendor=$2 | |
4126 | shift; shift | |
4127 | # Remember, the first character of IFS is used to create $*, | |
4128 | # except with old shells: | |
4129 | host_os=$* | |
4130 | IFS=$ac_save_IFS | |
4131 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4132 | ||
4133 | ||
4134 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4135 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4136 | if test "${ac_cv_path_SED+set}" = set; then | |
4137 | $as_echo_n "(cached) " >&6 | |
4138 | else | |
4139 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4140 | for ac_i in 1 2 3 4 5 6 7; do | |
4141 | ac_script="$ac_script$as_nl$ac_script" | |
4142 | done | |
4143 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4144 | $as_unset ac_script || ac_script= | |
4145 | if test -z "$SED"; then | |
4146 | ac_path_SED_found=false | |
4147 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4149 | for as_dir in $PATH | |
4150 | do | |
4151 | IFS=$as_save_IFS | |
4152 | test -z "$as_dir" && as_dir=. | |
4153 | for ac_prog in sed gsed; do | |
4154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4155 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4156 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4157 | # Check for GNU ac_path_SED and select it if it is found. | |
4158 | # Check for GNU $ac_path_SED | |
4159 | case `"$ac_path_SED" --version 2>&1` in | |
4160 | *GNU*) | |
4161 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4162 | *) | |
4163 | ac_count=0 | |
4164 | $as_echo_n 0123456789 >"conftest.in" | |
4165 | while : | |
4166 | do | |
4167 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4168 | mv "conftest.tmp" "conftest.in" | |
4169 | cp "conftest.in" "conftest.nl" | |
4170 | $as_echo '' >> "conftest.nl" | |
4171 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4172 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4173 | ac_count=`expr $ac_count + 1` | |
4174 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4175 | # Best one so far, save it but keep looking for a better one | |
4176 | ac_cv_path_SED="$ac_path_SED" | |
4177 | ac_path_SED_max=$ac_count | |
4178 | fi | |
4179 | # 10*(2^10) chars as input seems more than enough | |
4180 | test $ac_count -gt 10 && break | |
4181 | done | |
4182 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4183 | esac | |
4184 | ||
4185 | $ac_path_SED_found && break 3 | |
4186 | done | |
4187 | done | |
4188 | done | |
4189 | IFS=$as_save_IFS | |
4190 | if test -z "$ac_cv_path_SED"; then | |
4191 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4192 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4193 | { (exit 1); exit 1; }; } | |
4194 | fi | |
4195 | else | |
4196 | ac_cv_path_SED=$SED | |
4197 | fi | |
4198 | ||
4199 | fi | |
4200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
4201 | $as_echo "$ac_cv_path_SED" >&6; } | |
4202 | SED="$ac_cv_path_SED" | |
4203 | rm -f conftest.sed | |
4204 | ||
4205 | test -z "$SED" && SED=sed | |
4206 | Xsed="$SED -e 1s/^X//" | |
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | ||
4218 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4219 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4220 | if test "${ac_cv_path_GREP+set}" = set; then | |
4221 | $as_echo_n "(cached) " >&6 | |
4222 | else | |
4223 | if test -z "$GREP"; then | |
4224 | ac_path_GREP_found=false | |
4225 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4227 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4228 | do | |
4229 | IFS=$as_save_IFS | |
4230 | test -z "$as_dir" && as_dir=. | |
4231 | for ac_prog in grep ggrep; do | |
4232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4233 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4234 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4235 | # Check for GNU ac_path_GREP and select it if it is found. | |
4236 | # Check for GNU $ac_path_GREP | |
4237 | case `"$ac_path_GREP" --version 2>&1` in | |
4238 | *GNU*) | |
4239 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4240 | *) | |
4241 | ac_count=0 | |
4242 | $as_echo_n 0123456789 >"conftest.in" | |
4243 | while : | |
4244 | do | |
4245 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4246 | mv "conftest.tmp" "conftest.in" | |
4247 | cp "conftest.in" "conftest.nl" | |
4248 | $as_echo 'GREP' >> "conftest.nl" | |
4249 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4250 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4251 | ac_count=`expr $ac_count + 1` | |
4252 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4253 | # Best one so far, save it but keep looking for a better one | |
4254 | ac_cv_path_GREP="$ac_path_GREP" | |
4255 | ac_path_GREP_max=$ac_count | |
4256 | fi | |
4257 | # 10*(2^10) chars as input seems more than enough | |
4258 | test $ac_count -gt 10 && break | |
4259 | done | |
4260 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4261 | esac | |
4262 | ||
4263 | $ac_path_GREP_found && break 3 | |
4264 | done | |
4265 | done | |
4266 | done | |
4267 | IFS=$as_save_IFS | |
4268 | if test -z "$ac_cv_path_GREP"; then | |
4269 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4270 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4271 | { (exit 1); exit 1; }; } | |
4272 | fi | |
4273 | else | |
4274 | ac_cv_path_GREP=$GREP | |
4275 | fi | |
4276 | ||
4277 | fi | |
4278 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4279 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4280 | GREP="$ac_cv_path_GREP" | |
4281 | ||
4282 | ||
4283 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4284 | $as_echo_n "checking for egrep... " >&6; } | |
4285 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4286 | $as_echo_n "(cached) " >&6 | |
4287 | else | |
4288 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4289 | then ac_cv_path_EGREP="$GREP -E" | |
4290 | else | |
4291 | if test -z "$EGREP"; then | |
4292 | ac_path_EGREP_found=false | |
4293 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4295 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4296 | do | |
4297 | IFS=$as_save_IFS | |
4298 | test -z "$as_dir" && as_dir=. | |
4299 | for ac_prog in egrep; do | |
4300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4301 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4302 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4303 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4304 | # Check for GNU $ac_path_EGREP | |
4305 | case `"$ac_path_EGREP" --version 2>&1` in | |
4306 | *GNU*) | |
4307 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4308 | *) | |
4309 | ac_count=0 | |
4310 | $as_echo_n 0123456789 >"conftest.in" | |
4311 | while : | |
4312 | do | |
4313 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4314 | mv "conftest.tmp" "conftest.in" | |
4315 | cp "conftest.in" "conftest.nl" | |
4316 | $as_echo 'EGREP' >> "conftest.nl" | |
4317 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4318 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4319 | ac_count=`expr $ac_count + 1` | |
4320 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4321 | # Best one so far, save it but keep looking for a better one | |
4322 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4323 | ac_path_EGREP_max=$ac_count | |
4324 | fi | |
4325 | # 10*(2^10) chars as input seems more than enough | |
4326 | test $ac_count -gt 10 && break | |
4327 | done | |
4328 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4329 | esac | |
4330 | ||
4331 | $ac_path_EGREP_found && break 3 | |
4332 | done | |
4333 | done | |
4334 | done | |
4335 | IFS=$as_save_IFS | |
4336 | if test -z "$ac_cv_path_EGREP"; then | |
4337 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4338 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4339 | { (exit 1); exit 1; }; } | |
4340 | fi | |
4341 | else | |
4342 | ac_cv_path_EGREP=$EGREP | |
4343 | fi | |
4344 | ||
4345 | fi | |
4346 | fi | |
4347 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4348 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4349 | EGREP="$ac_cv_path_EGREP" | |
4350 | ||
4351 | ||
4352 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4353 | $as_echo_n "checking for fgrep... " >&6; } | |
4354 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4355 | $as_echo_n "(cached) " >&6 | |
4356 | else | |
4357 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4358 | then ac_cv_path_FGREP="$GREP -F" | |
4359 | else | |
4360 | if test -z "$FGREP"; then | |
4361 | ac_path_FGREP_found=false | |
4362 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4364 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4365 | do | |
4366 | IFS=$as_save_IFS | |
4367 | test -z "$as_dir" && as_dir=. | |
4368 | for ac_prog in fgrep; do | |
4369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4370 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4371 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4372 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4373 | # Check for GNU $ac_path_FGREP | |
4374 | case `"$ac_path_FGREP" --version 2>&1` in | |
4375 | *GNU*) | |
4376 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4377 | *) | |
4378 | ac_count=0 | |
4379 | $as_echo_n 0123456789 >"conftest.in" | |
4380 | while : | |
4381 | do | |
4382 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4383 | mv "conftest.tmp" "conftest.in" | |
4384 | cp "conftest.in" "conftest.nl" | |
4385 | $as_echo 'FGREP' >> "conftest.nl" | |
4386 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4387 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4388 | ac_count=`expr $ac_count + 1` | |
4389 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4390 | # Best one so far, save it but keep looking for a better one | |
4391 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4392 | ac_path_FGREP_max=$ac_count | |
4393 | fi | |
4394 | # 10*(2^10) chars as input seems more than enough | |
4395 | test $ac_count -gt 10 && break | |
4396 | done | |
4397 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4398 | esac | |
4399 | ||
4400 | $ac_path_FGREP_found && break 3 | |
4401 | done | |
4402 | done | |
4403 | done | |
4404 | IFS=$as_save_IFS | |
4405 | if test -z "$ac_cv_path_FGREP"; then | |
4406 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4407 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4408 | { (exit 1); exit 1; }; } | |
4409 | fi | |
4410 | else | |
4411 | ac_cv_path_FGREP=$FGREP | |
4412 | fi | |
4413 | ||
4414 | fi | |
4415 | fi | |
4416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4417 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4418 | FGREP="$ac_cv_path_FGREP" | |
4419 | ||
4420 | ||
4421 | test -z "$GREP" && GREP=grep | |
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | ||
4440 | ||
4441 | # Check whether --with-gnu-ld was given. | |
4442 | if test "${with_gnu_ld+set}" = set; then | |
4443 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4444 | else | |
4445 | with_gnu_ld=no | |
4446 | fi | |
4447 | ||
4448 | ac_prog=ld | |
4449 | if test "$GCC" = yes; then | |
4450 | # Check if gcc -print-prog-name=ld gives a path. | |
4451 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4452 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4453 | case $host in | |
4454 | *-*-mingw*) | |
4455 | # gcc leaves a trailing carriage return which upsets mingw | |
4456 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4457 | *) | |
4458 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4459 | esac | |
4460 | case $ac_prog in | |
4461 | # Accept absolute paths. | |
4462 | [\\/]* | ?:[\\/]*) | |
4463 | re_direlt='/[^/][^/]*/\.\./' | |
4464 | # Canonicalize the pathname of ld | |
4465 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4466 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4467 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4468 | done | |
4469 | test -z "$LD" && LD="$ac_prog" | |
4470 | ;; | |
4471 | "") | |
4472 | # If it fails, then pretend we aren't using GCC. | |
4473 | ac_prog=ld | |
4474 | ;; | |
4475 | *) | |
4476 | # If it is relative, then search for the first ld in PATH. | |
4477 | with_gnu_ld=unknown | |
4478 | ;; | |
4479 | esac | |
4480 | elif test "$with_gnu_ld" = yes; then | |
4481 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4482 | $as_echo_n "checking for GNU ld... " >&6; } | |
4483 | else | |
4484 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4485 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4486 | fi | |
4487 | if test "${lt_cv_path_LD+set}" = set; then | |
4488 | $as_echo_n "(cached) " >&6 | |
4489 | else | |
4490 | if test -z "$LD"; then | |
4491 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4492 | for ac_dir in $PATH; do | |
4493 | IFS="$lt_save_ifs" | |
4494 | test -z "$ac_dir" && ac_dir=. | |
4495 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4496 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4497 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4498 | # but apparently some variants of GNU ld only accept -v. | |
4499 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4500 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4501 | *GNU* | *'with BFD'*) | |
4502 | test "$with_gnu_ld" != no && break | |
4503 | ;; | |
4504 | *) | |
4505 | test "$with_gnu_ld" != yes && break | |
4506 | ;; | |
4507 | esac | |
4508 | fi | |
4509 | done | |
4510 | IFS="$lt_save_ifs" | |
4511 | else | |
4512 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4513 | fi | |
4514 | fi | |
4515 | ||
4516 | LD="$lt_cv_path_LD" | |
4517 | if test -n "$LD"; then | |
4518 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
4519 | $as_echo "$LD" >&6; } | |
4520 | else | |
4521 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4522 | $as_echo "no" >&6; } | |
4523 | fi | |
4524 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4525 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4526 | { (exit 1); exit 1; }; } | |
4527 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4528 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4529 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4530 | $as_echo_n "(cached) " >&6 | |
4531 | else | |
4532 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4533 | case `$LD -v 2>&1 </dev/null` in | |
4534 | *GNU* | *'with BFD'*) | |
4535 | lt_cv_prog_gnu_ld=yes | |
4536 | ;; | |
4537 | *) | |
4538 | lt_cv_prog_gnu_ld=no | |
4539 | ;; | |
4540 | esac | |
4541 | fi | |
4542 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4543 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4544 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4545 | ||
4546 | ||
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | ||
4552 | ||
4553 | ||
4554 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4555 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4556 | if test "${lt_cv_path_NM+set}" = set; then | |
4557 | $as_echo_n "(cached) " >&6 | |
4558 | else | |
4559 | if test -n "$NM"; then | |
4560 | # Let the user override the test. | |
4561 | lt_cv_path_NM="$NM" | |
4562 | else | |
4563 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4564 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4565 | lt_nm_to_check="$lt_nm_to_check nm" | |
4566 | fi | |
4567 | for lt_tmp_nm in $lt_nm_to_check; do | |
4568 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4569 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4570 | IFS="$lt_save_ifs" | |
4571 | test -z "$ac_dir" && ac_dir=. | |
4572 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4573 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4574 | # Check to see if the nm accepts a BSD-compat flag. | |
4575 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4576 | # nm: unknown option "B" ignored | |
4577 | # Tru64's nm complains that /dev/null is an invalid object file | |
4578 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4579 | */dev/null* | *'Invalid file or object type'*) | |
4580 | lt_cv_path_NM="$tmp_nm -B" | |
4581 | break | |
4582 | ;; | |
4583 | *) | |
4584 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4585 | */dev/null*) | |
4586 | lt_cv_path_NM="$tmp_nm -p" | |
4587 | break | |
4588 | ;; | |
4589 | *) | |
4590 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4591 | continue # so that we can try to find one that supports BSD flags | |
4592 | ;; | |
4593 | esac | |
4594 | ;; | |
4595 | esac | |
4596 | fi | |
4597 | done | |
4598 | IFS="$lt_save_ifs" | |
4599 | done | |
4600 | : ${lt_cv_path_NM=no} | |
4601 | fi | |
4602 | fi | |
4603 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4604 | $as_echo "$lt_cv_path_NM" >&6; } | |
4605 | if test "$lt_cv_path_NM" != "no"; then | |
4606 | NM="$lt_cv_path_NM" | |
4607 | else | |
4608 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4609 | if test -n "$ac_tool_prefix"; then | |
4610 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4611 | do | |
4612 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4613 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4614 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4615 | $as_echo_n "checking for $ac_word... " >&6; } | |
4616 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4617 | $as_echo_n "(cached) " >&6 | |
4618 | else | |
4619 | if test -n "$DUMPBIN"; then | |
4620 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4621 | else | |
4622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4623 | for as_dir in $PATH | |
4624 | do | |
4625 | IFS=$as_save_IFS | |
4626 | test -z "$as_dir" && as_dir=. | |
4627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4629 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4630 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4631 | break 2 | |
4632 | fi | |
4633 | done | |
4634 | done | |
4635 | IFS=$as_save_IFS | |
4636 | ||
4637 | fi | |
4638 | fi | |
4639 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4640 | if test -n "$DUMPBIN"; then | |
4641 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4642 | $as_echo "$DUMPBIN" >&6; } | |
4643 | else | |
4644 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4645 | $as_echo "no" >&6; } | |
4646 | fi | |
4647 | ||
4648 | ||
4649 | test -n "$DUMPBIN" && break | |
4650 | done | |
4651 | fi | |
4652 | if test -z "$DUMPBIN"; then | |
4653 | ac_ct_DUMPBIN=$DUMPBIN | |
4654 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4655 | do | |
4656 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4657 | set dummy $ac_prog; ac_word=$2 | |
4658 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4659 | $as_echo_n "checking for $ac_word... " >&6; } | |
4660 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4661 | $as_echo_n "(cached) " >&6 | |
4662 | else | |
4663 | if test -n "$ac_ct_DUMPBIN"; then | |
4664 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4665 | else | |
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4667 | for as_dir in $PATH | |
4668 | do | |
4669 | IFS=$as_save_IFS | |
4670 | test -z "$as_dir" && as_dir=. | |
4671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4673 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4674 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4675 | break 2 | |
4676 | fi | |
4677 | done | |
4678 | done | |
4679 | IFS=$as_save_IFS | |
4680 | ||
4681 | fi | |
4682 | fi | |
4683 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4684 | if test -n "$ac_ct_DUMPBIN"; then | |
4685 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4686 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4687 | else | |
4688 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4689 | $as_echo "no" >&6; } | |
4690 | fi | |
4691 | ||
4692 | ||
4693 | test -n "$ac_ct_DUMPBIN" && break | |
4694 | done | |
4695 | ||
4696 | if test "x$ac_ct_DUMPBIN" = x; then | |
4697 | DUMPBIN=":" | |
4698 | else | |
4699 | case $cross_compiling:$ac_tool_warned in | |
4700 | yes:) | |
4701 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4703 | ac_tool_warned=yes ;; | |
4704 | esac | |
4705 | DUMPBIN=$ac_ct_DUMPBIN | |
4706 | fi | |
4707 | fi | |
4708 | ||
4709 | ||
4710 | if test "$DUMPBIN" != ":"; then | |
4711 | NM="$DUMPBIN" | |
4712 | fi | |
4713 | fi | |
4714 | test -z "$NM" && NM=nm | |
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4722 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4723 | if test "${lt_cv_nm_interface+set}" = set; then | |
4724 | $as_echo_n "(cached) " >&6 | |
4725 | else | |
4726 | lt_cv_nm_interface="BSD nm" | |
4727 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4728 | (eval echo "\"\$as_me:4728: $ac_compile\"" >&5) | |
4729 | (eval "$ac_compile" 2>conftest.err) | |
4730 | cat conftest.err >&5 | |
4731 | (eval echo "\"\$as_me:4731: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4732 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4733 | cat conftest.err >&5 | |
4734 | (eval echo "\"\$as_me:4734: output\"" >&5) | |
4735 | cat conftest.out >&5 | |
4736 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4737 | lt_cv_nm_interface="MS dumpbin" | |
4738 | fi | |
4739 | rm -f conftest* | |
4740 | fi | |
4741 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4742 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4743 | ||
4744 | # find the maximum length of command line arguments | |
4745 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4746 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4747 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4748 | $as_echo_n "(cached) " >&6 | |
4749 | else | |
4750 | i=0 | |
4751 | teststring="ABCD" | |
4752 | ||
4753 | case $build_os in | |
4754 | msdosdjgpp*) | |
4755 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4756 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4757 | # during glob expansion). Even if it were fixed, the result of this | |
4758 | # check would be larger than it should be. | |
4759 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4760 | ;; | |
4761 | ||
4762 | gnu*) | |
4763 | # Under GNU Hurd, this test is not required because there is | |
4764 | # no limit to the length of command line arguments. | |
4765 | # Libtool will interpret -1 as no limit whatsoever | |
4766 | lt_cv_sys_max_cmd_len=-1; | |
4767 | ;; | |
4768 | ||
4769 | cygwin* | mingw* | cegcc*) | |
4770 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4771 | # about 5 minutes as the teststring grows exponentially. | |
4772 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4773 | # you end up with a "frozen" computer, even though with patience | |
4774 | # the test eventually succeeds (with a max line length of 256k). | |
4775 | # Instead, let's just punt: use the minimum linelength reported by | |
4776 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4777 | lt_cv_sys_max_cmd_len=8192; | |
4778 | ;; | |
4779 | ||
4780 | amigaos*) | |
4781 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4782 | # So we just punt and use a minimum line length of 8192. | |
4783 | lt_cv_sys_max_cmd_len=8192; | |
4784 | ;; | |
4785 | ||
4786 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4787 | # This has been around since 386BSD, at least. Likely further. | |
4788 | if test -x /sbin/sysctl; then | |
4789 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4790 | elif test -x /usr/sbin/sysctl; then | |
4791 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4792 | else | |
4793 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4794 | fi | |
4795 | # And add a safety zone | |
4796 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4797 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4798 | ;; | |
4799 | ||
4800 | interix*) | |
4801 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4802 | lt_cv_sys_max_cmd_len=196608 | |
4803 | ;; | |
4804 | ||
4805 | osf*) | |
4806 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4807 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4808 | # nice to cause kernel panics so lets avoid the loop below. | |
4809 | # First set a reasonable default. | |
4810 | lt_cv_sys_max_cmd_len=16384 | |
4811 | # | |
4812 | if test -x /sbin/sysconfig; then | |
4813 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4814 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4815 | esac | |
4816 | fi | |
4817 | ;; | |
4818 | sco3.2v5*) | |
4819 | lt_cv_sys_max_cmd_len=102400 | |
4820 | ;; | |
4821 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4822 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4823 | if test -n "$kargmax"; then | |
4824 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4825 | else | |
4826 | lt_cv_sys_max_cmd_len=32768 | |
4827 | fi | |
4828 | ;; | |
4829 | *) | |
4830 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4831 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4832 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4833 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4834 | else | |
4835 | # Make teststring a little bigger before we do anything with it. | |
4836 | # a 1K string should be a reasonable start. | |
4837 | for i in 1 2 3 4 5 6 7 8 ; do | |
4838 | teststring=$teststring$teststring | |
4839 | done | |
4840 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4841 | # If test is not a shell built-in, we'll probably end up computing a | |
4842 | # maximum length that is only half of the actual maximum length, but | |
4843 | # we can't tell. | |
4844 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4845 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4846 | test $i != 17 # 1/2 MB should be enough | |
4847 | do | |
4848 | i=`expr $i + 1` | |
4849 | teststring=$teststring$teststring | |
4850 | done | |
4851 | # Only check the string length outside the loop. | |
4852 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4853 | teststring= | |
4854 | # Add a significant safety factor because C++ compilers can tack on | |
4855 | # massive amounts of additional arguments before passing them to the | |
4856 | # linker. It appears as though 1/2 is a usable value. | |
4857 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4858 | fi | |
4859 | ;; | |
4860 | esac | |
4861 | ||
4862 | fi | |
4863 | ||
4864 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4865 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4866 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4867 | else | |
4868 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4869 | $as_echo "none" >&6; } | |
4870 | fi | |
4871 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4872 | ||
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | : ${CP="cp -f"} | |
4879 | : ${MV="mv -f"} | |
4880 | : ${RM="rm -f"} | |
4881 | ||
4882 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4883 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4884 | # Try some XSI features | |
4885 | xsi_shell=no | |
4886 | ( _lt_dummy="a/b/c" | |
4887 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4888 | = c,a/b,, \ | |
4889 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4890 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4891 | && xsi_shell=yes | |
4892 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4893 | $as_echo "$xsi_shell" >&6; } | |
4894 | ||
4895 | ||
4896 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4897 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4898 | lt_shell_append=no | |
4899 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4900 | >/dev/null 2>&1 \ | |
4901 | && lt_shell_append=yes | |
4902 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4903 | $as_echo "$lt_shell_append" >&6; } | |
4904 | ||
4905 | ||
4906 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4907 | lt_unset=unset | |
4908 | else | |
4909 | lt_unset=false | |
4910 | fi | |
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | # test EBCDIC or ASCII | |
4917 | case `echo X|tr X '\101'` in | |
4918 | A) # ASCII based system | |
4919 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4920 | lt_SP2NL='tr \040 \012' | |
4921 | lt_NL2SP='tr \015\012 \040\040' | |
4922 | ;; | |
4923 | *) # EBCDIC based system | |
4924 | lt_SP2NL='tr \100 \n' | |
4925 | lt_NL2SP='tr \r\n \100\100' | |
4926 | ;; | |
4927 | esac | |
4928 | ||
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4938 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4939 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4940 | $as_echo_n "(cached) " >&6 | |
4941 | else | |
4942 | lt_cv_ld_reload_flag='-r' | |
4943 | fi | |
4944 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4945 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4946 | reload_flag=$lt_cv_ld_reload_flag | |
4947 | case $reload_flag in | |
4948 | "" | " "*) ;; | |
4949 | *) reload_flag=" $reload_flag" ;; | |
4950 | esac | |
4951 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4952 | case $host_os in | |
4953 | darwin*) | |
4954 | if test "$GCC" = yes; then | |
4955 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4956 | else | |
4957 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4958 | fi | |
4959 | ;; | |
4960 | esac | |
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | if test -n "$ac_tool_prefix"; then | |
4971 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4972 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4973 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4974 | $as_echo_n "checking for $ac_word... " >&6; } | |
4975 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4976 | $as_echo_n "(cached) " >&6 | |
4977 | else | |
4978 | if test -n "$OBJDUMP"; then | |
4979 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4980 | else | |
4981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4982 | for as_dir in $PATH | |
4983 | do | |
4984 | IFS=$as_save_IFS | |
4985 | test -z "$as_dir" && as_dir=. | |
4986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4988 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4989 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4990 | break 2 | |
4991 | fi | |
4992 | done | |
4993 | done | |
4994 | IFS=$as_save_IFS | |
4995 | ||
4996 | fi | |
4997 | fi | |
4998 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4999 | if test -n "$OBJDUMP"; then | |
5000 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5001 | $as_echo "$OBJDUMP" >&6; } | |
5002 | else | |
5003 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5004 | $as_echo "no" >&6; } | |
5005 | fi | |
5006 | ||
5007 | ||
5008 | fi | |
5009 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5010 | ac_ct_OBJDUMP=$OBJDUMP | |
5011 | # Extract the first word of "objdump", so it can be a program name with args. | |
5012 | set dummy objdump; ac_word=$2 | |
5013 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5014 | $as_echo_n "checking for $ac_word... " >&6; } | |
5015 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5016 | $as_echo_n "(cached) " >&6 | |
5017 | else | |
5018 | if test -n "$ac_ct_OBJDUMP"; then | |
5019 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5020 | else | |
5021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5022 | for as_dir in $PATH | |
5023 | do | |
5024 | IFS=$as_save_IFS | |
5025 | test -z "$as_dir" && as_dir=. | |
5026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5028 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5029 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5030 | break 2 | |
5031 | fi | |
5032 | done | |
5033 | done | |
5034 | IFS=$as_save_IFS | |
5035 | ||
5036 | fi | |
5037 | fi | |
5038 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5039 | if test -n "$ac_ct_OBJDUMP"; then | |
5040 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5041 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5042 | else | |
5043 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5044 | $as_echo "no" >&6; } | |
5045 | fi | |
5046 | ||
5047 | if test "x$ac_ct_OBJDUMP" = x; then | |
5048 | OBJDUMP="false" | |
5049 | else | |
5050 | case $cross_compiling:$ac_tool_warned in | |
5051 | yes:) | |
5052 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5053 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5054 | ac_tool_warned=yes ;; | |
5055 | esac | |
5056 | OBJDUMP=$ac_ct_OBJDUMP | |
5057 | fi | |
5058 | else | |
5059 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5060 | fi | |
5061 | ||
5062 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5063 | ||
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | ||
5069 | ||
5070 | ||
5071 | ||
5072 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
5073 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5074 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5075 | $as_echo_n "(cached) " >&6 | |
5076 | else | |
5077 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5078 | lt_cv_file_magic_test_file= | |
5079 | lt_cv_deplibs_check_method='unknown' | |
5080 | # Need to set the preceding variable on all platforms that support | |
5081 | # interlibrary dependencies. | |
5082 | # 'none' -- dependencies not supported. | |
5083 | # `unknown' -- same as none, but documents that we really don't know. | |
5084 | # 'pass_all' -- all dependencies passed with no checks. | |
5085 | # 'test_compile' -- check by making test program. | |
5086 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5087 | # which responds to the $file_magic_cmd with a given extended regex. | |
5088 | # If you have `file' or equivalent on your system and you're not sure | |
5089 | # whether `pass_all' will *always* work, you probably want this one. | |
5090 | ||
5091 | case $host_os in | |
5092 | aix[4-9]*) | |
5093 | lt_cv_deplibs_check_method=pass_all | |
5094 | ;; | |
5095 | ||
5096 | beos*) | |
5097 | lt_cv_deplibs_check_method=pass_all | |
5098 | ;; | |
5099 | ||
5100 | bsdi[45]*) | |
5101 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5102 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5103 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5104 | ;; | |
5105 | ||
5106 | cygwin*) | |
5107 | # func_win32_libid is a shell function defined in ltmain.sh | |
5108 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5109 | lt_cv_file_magic_cmd='func_win32_libid' | |
5110 | ;; | |
5111 | ||
5112 | mingw* | pw32*) | |
5113 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5114 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5115 | # unless we find 'file', for example because we are cross-compiling. | |
5116 | if ( file / ) >/dev/null 2>&1; then | |
5117 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5118 | lt_cv_file_magic_cmd='func_win32_libid' | |
5119 | else | |
5120 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5121 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5122 | fi | |
5123 | ;; | |
5124 | ||
5125 | cegcc) | |
5126 | # use the weaker test based on 'objdump'. See mingw*. | |
5127 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5128 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5129 | ;; | |
5130 | ||
5131 | darwin* | rhapsody*) | |
5132 | lt_cv_deplibs_check_method=pass_all | |
5133 | ;; | |
5134 | ||
5135 | freebsd* | dragonfly*) | |
5136 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5137 | case $host_cpu in | |
5138 | i*86 ) | |
5139 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5140 | # Let's accept both of them until this is cleared up. | |
5141 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5142 | lt_cv_file_magic_cmd=/usr/bin/file | |
5143 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5144 | ;; | |
5145 | esac | |
5146 | else | |
5147 | lt_cv_deplibs_check_method=pass_all | |
5148 | fi | |
5149 | ;; | |
5150 | ||
5151 | gnu*) | |
5152 | lt_cv_deplibs_check_method=pass_all | |
5153 | ;; | |
5154 | ||
5155 | hpux10.20* | hpux11*) | |
5156 | lt_cv_file_magic_cmd=/usr/bin/file | |
5157 | case $host_cpu in | |
5158 | ia64*) | |
5159 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5160 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5161 | ;; | |
5162 | hppa*64*) | |
5163 | 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]' | |
5164 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5165 | ;; | |
5166 | *) | |
5167 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5168 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5169 | ;; | |
5170 | esac | |
5171 | ;; | |
5172 | ||
5173 | interix[3-9]*) | |
5174 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5175 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5176 | ;; | |
5177 | ||
5178 | irix5* | irix6* | nonstopux*) | |
5179 | case $LD in | |
5180 | *-32|*"-32 ") libmagic=32-bit;; | |
5181 | *-n32|*"-n32 ") libmagic=N32;; | |
5182 | *-64|*"-64 ") libmagic=64-bit;; | |
5183 | *) libmagic=never-match;; | |
5184 | esac | |
5185 | lt_cv_deplibs_check_method=pass_all | |
5186 | ;; | |
5187 | ||
5188 | # This must be Linux ELF. | |
5189 | linux* | k*bsd*-gnu) | |
5190 | lt_cv_deplibs_check_method=pass_all | |
5191 | ;; | |
5192 | ||
5193 | netbsd* | netbsdelf*-gnu) | |
5194 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5195 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5196 | else | |
5197 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5198 | fi | |
5199 | ;; | |
5200 | ||
5201 | newos6*) | |
5202 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5203 | lt_cv_file_magic_cmd=/usr/bin/file | |
5204 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5205 | ;; | |
5206 | ||
5207 | *nto* | *qnx*) | |
5208 | lt_cv_deplibs_check_method=pass_all | |
5209 | ;; | |
5210 | ||
5211 | openbsd*) | |
5212 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5213 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5214 | else | |
5215 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5216 | fi | |
5217 | ;; | |
5218 | ||
5219 | osf3* | osf4* | osf5*) | |
5220 | lt_cv_deplibs_check_method=pass_all | |
5221 | ;; | |
5222 | ||
5223 | rdos*) | |
5224 | lt_cv_deplibs_check_method=pass_all | |
5225 | ;; | |
5226 | ||
5227 | solaris*) | |
5228 | lt_cv_deplibs_check_method=pass_all | |
5229 | ;; | |
5230 | ||
5231 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5232 | lt_cv_deplibs_check_method=pass_all | |
5233 | ;; | |
5234 | ||
5235 | sysv4 | sysv4.3*) | |
5236 | case $host_vendor in | |
5237 | motorola) | |
5238 | 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]' | |
5239 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5240 | ;; | |
5241 | ncr) | |
5242 | lt_cv_deplibs_check_method=pass_all | |
5243 | ;; | |
5244 | sequent) | |
5245 | lt_cv_file_magic_cmd='/bin/file' | |
5246 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5247 | ;; | |
5248 | sni) | |
5249 | lt_cv_file_magic_cmd='/bin/file' | |
5250 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5251 | lt_cv_file_magic_test_file=/lib/libc.so | |
5252 | ;; | |
5253 | siemens) | |
5254 | lt_cv_deplibs_check_method=pass_all | |
5255 | ;; | |
5256 | pc) | |
5257 | lt_cv_deplibs_check_method=pass_all | |
5258 | ;; | |
5259 | esac | |
5260 | ;; | |
5261 | ||
5262 | tpf*) | |
5263 | lt_cv_deplibs_check_method=pass_all | |
5264 | ;; | |
5265 | esac | |
5266 | ||
5267 | fi | |
5268 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5269 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5270 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5271 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5272 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | if test -n "$ac_tool_prefix"; then | |
5286 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5287 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5288 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5289 | $as_echo_n "checking for $ac_word... " >&6; } | |
5290 | if test "${ac_cv_prog_AR+set}" = set; then | |
5291 | $as_echo_n "(cached) " >&6 | |
5292 | else | |
5293 | if test -n "$AR"; then | |
5294 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5295 | else | |
5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5297 | for as_dir in $PATH | |
5298 | do | |
5299 | IFS=$as_save_IFS | |
5300 | test -z "$as_dir" && as_dir=. | |
5301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5303 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5304 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5305 | break 2 | |
5306 | fi | |
5307 | done | |
5308 | done | |
5309 | IFS=$as_save_IFS | |
5310 | ||
5311 | fi | |
5312 | fi | |
5313 | AR=$ac_cv_prog_AR | |
5314 | if test -n "$AR"; then | |
5315 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5316 | $as_echo "$AR" >&6; } | |
5317 | else | |
5318 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5319 | $as_echo "no" >&6; } | |
5320 | fi | |
5321 | ||
5322 | ||
5323 | fi | |
5324 | if test -z "$ac_cv_prog_AR"; then | |
5325 | ac_ct_AR=$AR | |
5326 | # Extract the first word of "ar", so it can be a program name with args. | |
5327 | set dummy ar; ac_word=$2 | |
5328 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5329 | $as_echo_n "checking for $ac_word... " >&6; } | |
5330 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5331 | $as_echo_n "(cached) " >&6 | |
5332 | else | |
5333 | if test -n "$ac_ct_AR"; then | |
5334 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5335 | else | |
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5337 | for as_dir in $PATH | |
5338 | do | |
5339 | IFS=$as_save_IFS | |
5340 | test -z "$as_dir" && as_dir=. | |
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5343 | ac_cv_prog_ac_ct_AR="ar" | |
5344 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5345 | break 2 | |
5346 | fi | |
5347 | done | |
5348 | done | |
5349 | IFS=$as_save_IFS | |
5350 | ||
5351 | fi | |
5352 | fi | |
5353 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5354 | if test -n "$ac_ct_AR"; then | |
5355 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5356 | $as_echo "$ac_ct_AR" >&6; } | |
5357 | else | |
5358 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5359 | $as_echo "no" >&6; } | |
5360 | fi | |
5361 | ||
5362 | if test "x$ac_ct_AR" = x; then | |
5363 | AR="false" | |
5364 | else | |
5365 | case $cross_compiling:$ac_tool_warned in | |
5366 | yes:) | |
5367 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5368 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5369 | ac_tool_warned=yes ;; | |
5370 | esac | |
5371 | AR=$ac_ct_AR | |
5372 | fi | |
5373 | else | |
5374 | AR="$ac_cv_prog_AR" | |
5375 | fi | |
5376 | ||
5377 | test -z "$AR" && AR=ar | |
5378 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | if test -n "$ac_tool_prefix"; then | |
5391 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5392 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5393 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5394 | $as_echo_n "checking for $ac_word... " >&6; } | |
5395 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5396 | $as_echo_n "(cached) " >&6 | |
5397 | else | |
5398 | if test -n "$STRIP"; then | |
5399 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5400 | else | |
5401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5402 | for as_dir in $PATH | |
5403 | do | |
5404 | IFS=$as_save_IFS | |
5405 | test -z "$as_dir" && as_dir=. | |
5406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5408 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5409 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5410 | break 2 | |
5411 | fi | |
5412 | done | |
5413 | done | |
5414 | IFS=$as_save_IFS | |
5415 | ||
5416 | fi | |
5417 | fi | |
5418 | STRIP=$ac_cv_prog_STRIP | |
5419 | if test -n "$STRIP"; then | |
5420 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5421 | $as_echo "$STRIP" >&6; } | |
5422 | else | |
5423 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5424 | $as_echo "no" >&6; } | |
5425 | fi | |
5426 | ||
5427 | ||
5428 | fi | |
5429 | if test -z "$ac_cv_prog_STRIP"; then | |
5430 | ac_ct_STRIP=$STRIP | |
5431 | # Extract the first word of "strip", so it can be a program name with args. | |
5432 | set dummy strip; ac_word=$2 | |
5433 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5434 | $as_echo_n "checking for $ac_word... " >&6; } | |
5435 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5436 | $as_echo_n "(cached) " >&6 | |
5437 | else | |
5438 | if test -n "$ac_ct_STRIP"; then | |
5439 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5440 | else | |
5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5442 | for as_dir in $PATH | |
5443 | do | |
5444 | IFS=$as_save_IFS | |
5445 | test -z "$as_dir" && as_dir=. | |
5446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5448 | ac_cv_prog_ac_ct_STRIP="strip" | |
5449 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5450 | break 2 | |
5451 | fi | |
5452 | done | |
5453 | done | |
5454 | IFS=$as_save_IFS | |
5455 | ||
5456 | fi | |
5457 | fi | |
5458 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5459 | if test -n "$ac_ct_STRIP"; then | |
5460 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5461 | $as_echo "$ac_ct_STRIP" >&6; } | |
5462 | else | |
5463 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5464 | $as_echo "no" >&6; } | |
5465 | fi | |
5466 | ||
5467 | if test "x$ac_ct_STRIP" = x; then | |
5468 | STRIP=":" | |
5469 | else | |
5470 | case $cross_compiling:$ac_tool_warned in | |
5471 | yes:) | |
5472 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5474 | ac_tool_warned=yes ;; | |
5475 | esac | |
5476 | STRIP=$ac_ct_STRIP | |
5477 | fi | |
5478 | else | |
5479 | STRIP="$ac_cv_prog_STRIP" | |
5480 | fi | |
5481 | ||
5482 | test -z "$STRIP" && STRIP=: | |
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | if test -n "$ac_tool_prefix"; then | |
5490 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5491 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5492 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5493 | $as_echo_n "checking for $ac_word... " >&6; } | |
5494 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5495 | $as_echo_n "(cached) " >&6 | |
5496 | else | |
5497 | if test -n "$RANLIB"; then | |
5498 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5499 | else | |
5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5501 | for as_dir in $PATH | |
5502 | do | |
5503 | IFS=$as_save_IFS | |
5504 | test -z "$as_dir" && as_dir=. | |
5505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5507 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5508 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5509 | break 2 | |
5510 | fi | |
5511 | done | |
5512 | done | |
5513 | IFS=$as_save_IFS | |
5514 | ||
5515 | fi | |
5516 | fi | |
5517 | RANLIB=$ac_cv_prog_RANLIB | |
5518 | if test -n "$RANLIB"; then | |
5519 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5520 | $as_echo "$RANLIB" >&6; } | |
5521 | else | |
5522 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5523 | $as_echo "no" >&6; } | |
5524 | fi | |
5525 | ||
5526 | ||
5527 | fi | |
5528 | if test -z "$ac_cv_prog_RANLIB"; then | |
5529 | ac_ct_RANLIB=$RANLIB | |
5530 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5531 | set dummy ranlib; ac_word=$2 | |
5532 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5533 | $as_echo_n "checking for $ac_word... " >&6; } | |
5534 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5535 | $as_echo_n "(cached) " >&6 | |
5536 | else | |
5537 | if test -n "$ac_ct_RANLIB"; then | |
5538 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5539 | else | |
5540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5541 | for as_dir in $PATH | |
5542 | do | |
5543 | IFS=$as_save_IFS | |
5544 | test -z "$as_dir" && as_dir=. | |
5545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5547 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5548 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5549 | break 2 | |
5550 | fi | |
5551 | done | |
5552 | done | |
5553 | IFS=$as_save_IFS | |
5554 | ||
5555 | fi | |
5556 | fi | |
5557 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5558 | if test -n "$ac_ct_RANLIB"; then | |
5559 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5560 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5561 | else | |
5562 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5563 | $as_echo "no" >&6; } | |
5564 | fi | |
5565 | ||
5566 | if test "x$ac_ct_RANLIB" = x; then | |
5567 | RANLIB=":" | |
5568 | else | |
5569 | case $cross_compiling:$ac_tool_warned in | |
5570 | yes:) | |
5571 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5573 | ac_tool_warned=yes ;; | |
5574 | esac | |
5575 | RANLIB=$ac_ct_RANLIB | |
5576 | fi | |
5577 | else | |
5578 | RANLIB="$ac_cv_prog_RANLIB" | |
5579 | fi | |
5580 | ||
5581 | test -z "$RANLIB" && RANLIB=: | |
5582 | ||
5583 | ||
5584 | ||
5585 | ||
5586 | ||
5587 | ||
5588 | # Determine commands to create old-style static archives. | |
5589 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5590 | old_postinstall_cmds='chmod 644 $oldlib' | |
5591 | old_postuninstall_cmds= | |
5592 | ||
5593 | if test -n "$RANLIB"; then | |
5594 | case $host_os in | |
5595 | openbsd*) | |
5596 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5597 | ;; | |
5598 | *) | |
5599 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5600 | ;; | |
5601 | esac | |
5602 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5603 | fi | |
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | ||
5626 | ||
5627 | ||
5628 | ||
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
5637 | ||
5638 | # If no C compiler was specified, use CC. | |
5639 | LTCC=${LTCC-"$CC"} | |
5640 | ||
5641 | # If no C compiler flags were specified, use CFLAGS. | |
5642 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5643 | ||
5644 | # Allow CC to be a program name with arguments. | |
5645 | compiler=$CC | |
5646 | ||
5647 | ||
5648 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5649 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5650 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5651 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5652 | $as_echo_n "(cached) " >&6 | |
5653 | else | |
5654 | ||
5655 | # These are sane defaults that work on at least a few old systems. | |
5656 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5657 | ||
5658 | # Character class describing NM global symbol codes. | |
5659 | symcode='[BCDEGRST]' | |
5660 | ||
5661 | # Regexp to match symbols that can be accessed directly from C. | |
5662 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5663 | ||
5664 | # Define system-specific variables. | |
5665 | case $host_os in | |
5666 | aix*) | |
5667 | symcode='[BCDT]' | |
5668 | ;; | |
5669 | cygwin* | mingw* | pw32* | cegcc*) | |
5670 | symcode='[ABCDGISTW]' | |
5671 | ;; | |
5672 | hpux*) | |
5673 | if test "$host_cpu" = ia64; then | |
5674 | symcode='[ABCDEGRST]' | |
5675 | fi | |
5676 | ;; | |
5677 | irix* | nonstopux*) | |
5678 | symcode='[BCDEGRST]' | |
5679 | ;; | |
5680 | osf*) | |
5681 | symcode='[BCDEGQRST]' | |
5682 | ;; | |
5683 | solaris*) | |
5684 | symcode='[BDRT]' | |
5685 | ;; | |
5686 | sco3.2v5*) | |
5687 | symcode='[DT]' | |
5688 | ;; | |
5689 | sysv4.2uw2*) | |
5690 | symcode='[DT]' | |
5691 | ;; | |
5692 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5693 | symcode='[ABDT]' | |
5694 | ;; | |
5695 | sysv4) | |
5696 | symcode='[DFNSTU]' | |
5697 | ;; | |
5698 | esac | |
5699 | ||
5700 | # If we're using GNU nm, then use its standard symbol codes. | |
5701 | case `$NM -V 2>&1` in | |
5702 | *GNU* | *'with BFD'*) | |
5703 | symcode='[ABCDGIRSTW]' ;; | |
5704 | esac | |
5705 | ||
5706 | # Transform an extracted symbol line into a proper C declaration. | |
5707 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5708 | # so use this general approach. | |
5709 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5710 | ||
5711 | # Transform an extracted symbol line into symbol name and symbol address | |
5712 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5713 | 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'" | |
5714 | ||
5715 | # Handle CRLF in mingw tool chain | |
5716 | opt_cr= | |
5717 | case $build_os in | |
5718 | mingw*) | |
5719 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5720 | ;; | |
5721 | esac | |
5722 | ||
5723 | # Try without a prefix underscore, then with it. | |
5724 | for ac_symprfx in "" "_"; do | |
5725 | ||
5726 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5727 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5728 | ||
5729 | # Write the raw and C identifiers. | |
5730 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5731 | # Fake it for dumpbin and say T for any non-static function | |
5732 | # and D for any global variable. | |
5733 | # Also find C++ and __fastcall symbols from MSVC++, | |
5734 | # which start with @ or ?. | |
5735 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5736 | " {last_section=section; section=\$ 3};"\ | |
5737 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5738 | " \$ 0!~/External *\|/{next};"\ | |
5739 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5740 | " {if(hide[section]) next};"\ | |
5741 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5742 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5743 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5744 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5745 | " ' prfx=^$ac_symprfx" | |
5746 | else | |
5747 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5748 | fi | |
5749 | ||
5750 | # Check to see that the pipe works correctly. | |
5751 | pipe_works=no | |
5752 | ||
5753 | rm -f conftest* | |
5754 | cat > conftest.$ac_ext <<_LT_EOF | |
5755 | #ifdef __cplusplus | |
5756 | extern "C" { | |
5757 | #endif | |
5758 | char nm_test_var; | |
5759 | void nm_test_func(void); | |
5760 | void nm_test_func(void){} | |
5761 | #ifdef __cplusplus | |
5762 | } | |
5763 | #endif | |
5764 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5765 | _LT_EOF | |
5766 | ||
5767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5768 | (eval $ac_compile) 2>&5 | |
5769 | ac_status=$? | |
5770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5771 | (exit $ac_status); }; then | |
5772 | # Now try to grab the symbols. | |
5773 | nlist=conftest.nm | |
5774 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5775 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5776 | ac_status=$? | |
5777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 | (exit $ac_status); } && test -s "$nlist"; then | |
5779 | # Try sorting and uniquifying the output. | |
5780 | if sort "$nlist" | uniq > "$nlist"T; then | |
5781 | mv -f "$nlist"T "$nlist" | |
5782 | else | |
5783 | rm -f "$nlist"T | |
5784 | fi | |
5785 | ||
5786 | # Make sure that we snagged all the symbols we need. | |
5787 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5788 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5789 | cat <<_LT_EOF > conftest.$ac_ext | |
5790 | #ifdef __cplusplus | |
5791 | extern "C" { | |
5792 | #endif | |
5793 | ||
5794 | _LT_EOF | |
5795 | # Now generate the symbol file. | |
5796 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5797 | ||
5798 | cat <<_LT_EOF >> conftest.$ac_ext | |
5799 | ||
5800 | /* The mapping between symbol names and symbols. */ | |
5801 | const struct { | |
5802 | const char *name; | |
5803 | void *address; | |
5804 | } | |
5805 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5806 | { | |
5807 | { "@PROGRAM@", (void *) 0 }, | |
5808 | _LT_EOF | |
5809 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5810 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5811 | {0, (void *) 0} | |
5812 | }; | |
5813 | ||
5814 | /* This works around a problem in FreeBSD linker */ | |
5815 | #ifdef FREEBSD_WORKAROUND | |
5816 | static const void *lt_preloaded_setup() { | |
5817 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5818 | } | |
5819 | #endif | |
5820 | ||
5821 | #ifdef __cplusplus | |
5822 | } | |
5823 | #endif | |
5824 | _LT_EOF | |
5825 | # Now try linking the two files. | |
5826 | mv conftest.$ac_objext conftstm.$ac_objext | |
5827 | lt_save_LIBS="$LIBS" | |
5828 | lt_save_CFLAGS="$CFLAGS" | |
5829 | LIBS="conftstm.$ac_objext" | |
5830 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5832 | (eval $ac_link) 2>&5 | |
5833 | ac_status=$? | |
5834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5835 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5836 | pipe_works=yes | |
5837 | fi | |
5838 | LIBS="$lt_save_LIBS" | |
5839 | CFLAGS="$lt_save_CFLAGS" | |
5840 | else | |
5841 | echo "cannot find nm_test_func in $nlist" >&5 | |
5842 | fi | |
5843 | else | |
5844 | echo "cannot find nm_test_var in $nlist" >&5 | |
5845 | fi | |
5846 | else | |
5847 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5848 | fi | |
5849 | else | |
5850 | echo "$progname: failed program was:" >&5 | |
5851 | cat conftest.$ac_ext >&5 | |
5852 | fi | |
5853 | rm -rf conftest* conftst* | |
5854 | ||
5855 | # Do not use the global_symbol_pipe unless it works. | |
5856 | if test "$pipe_works" = yes; then | |
5857 | break | |
5858 | else | |
5859 | lt_cv_sys_global_symbol_pipe= | |
5860 | fi | |
5861 | done | |
5862 | ||
5863 | fi | |
5864 | ||
5865 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5866 | lt_cv_sys_global_symbol_to_cdecl= | |
5867 | fi | |
5868 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5869 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
5870 | $as_echo "failed" >&6; } | |
5871 | else | |
5872 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
5873 | $as_echo "ok" >&6; } | |
5874 | fi | |
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | # Check whether --enable-libtool-lock was given. | |
5899 | if test "${enable_libtool_lock+set}" = set; then | |
5900 | enableval=$enable_libtool_lock; | |
5901 | fi | |
5902 | ||
5903 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5904 | ||
5905 | # Some flags need to be propagated to the compiler or linker for good | |
5906 | # libtool support. | |
5907 | case $host in | |
5908 | ia64-*-hpux*) | |
5909 | # Find out which ABI we are using. | |
5910 | echo 'int i;' > conftest.$ac_ext | |
5911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5912 | (eval $ac_compile) 2>&5 | |
5913 | ac_status=$? | |
5914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5915 | (exit $ac_status); }; then | |
5916 | case `/usr/bin/file conftest.$ac_objext` in | |
5917 | *ELF-32*) | |
5918 | HPUX_IA64_MODE="32" | |
5919 | ;; | |
5920 | *ELF-64*) | |
5921 | HPUX_IA64_MODE="64" | |
5922 | ;; | |
5923 | esac | |
5924 | fi | |
5925 | rm -rf conftest* | |
5926 | ;; | |
5927 | *-*-irix6*) | |
5928 | # Find out which ABI we are using. | |
5929 | echo '#line 5929 "configure"' > conftest.$ac_ext | |
5930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5931 | (eval $ac_compile) 2>&5 | |
5932 | ac_status=$? | |
5933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5934 | (exit $ac_status); }; then | |
5935 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5936 | case `/usr/bin/file conftest.$ac_objext` in | |
5937 | *32-bit*) | |
5938 | LD="${LD-ld} -melf32bsmip" | |
5939 | ;; | |
5940 | *N32*) | |
5941 | LD="${LD-ld} -melf32bmipn32" | |
5942 | ;; | |
5943 | *64-bit*) | |
5944 | LD="${LD-ld} -melf64bmip" | |
5945 | ;; | |
5946 | esac | |
5947 | else | |
5948 | case `/usr/bin/file conftest.$ac_objext` in | |
5949 | *32-bit*) | |
5950 | LD="${LD-ld} -32" | |
5951 | ;; | |
5952 | *N32*) | |
5953 | LD="${LD-ld} -n32" | |
5954 | ;; | |
5955 | *64-bit*) | |
5956 | LD="${LD-ld} -64" | |
5957 | ;; | |
5958 | esac | |
5959 | fi | |
5960 | fi | |
5961 | rm -rf conftest* | |
5962 | ;; | |
5963 | ||
5964 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5965 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5966 | # Find out which ABI we are using. | |
5967 | echo 'int i;' > conftest.$ac_ext | |
5968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5969 | (eval $ac_compile) 2>&5 | |
5970 | ac_status=$? | |
5971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5972 | (exit $ac_status); }; then | |
5973 | case `/usr/bin/file conftest.o` in | |
5974 | *32-bit*) | |
5975 | case $host in | |
5976 | x86_64-*kfreebsd*-gnu) | |
5977 | LD="${LD-ld} -m elf_i386_fbsd" | |
5978 | ;; | |
5979 | x86_64-*linux*) | |
5980 | LD="${LD-ld} -m elf_i386" | |
5981 | ;; | |
5982 | ppc64-*linux*|powerpc64-*linux*) | |
5983 | LD="${LD-ld} -m elf32ppclinux" | |
5984 | ;; | |
5985 | s390x-*linux*) | |
5986 | LD="${LD-ld} -m elf_s390" | |
5987 | ;; | |
5988 | sparc64-*linux*) | |
5989 | LD="${LD-ld} -m elf32_sparc" | |
5990 | ;; | |
5991 | esac | |
5992 | ;; | |
5993 | *64-bit*) | |
5994 | case $host in | |
5995 | x86_64-*kfreebsd*-gnu) | |
5996 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5997 | ;; | |
5998 | x86_64-*linux*) | |
5999 | LD="${LD-ld} -m elf_x86_64" | |
6000 | ;; | |
6001 | ppc*-*linux*|powerpc*-*linux*) | |
6002 | LD="${LD-ld} -m elf64ppc" | |
6003 | ;; | |
6004 | s390*-*linux*|s390*-*tpf*) | |
6005 | LD="${LD-ld} -m elf64_s390" | |
6006 | ;; | |
6007 | sparc*-*linux*) | |
6008 | LD="${LD-ld} -m elf64_sparc" | |
6009 | ;; | |
6010 | esac | |
6011 | ;; | |
6012 | esac | |
6013 | fi | |
6014 | rm -rf conftest* | |
6015 | ;; | |
6016 | ||
6017 | *-*-sco3.2v5*) | |
6018 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6019 | SAVE_CFLAGS="$CFLAGS" | |
6020 | CFLAGS="$CFLAGS -belf" | |
6021 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6022 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6023 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6024 | $as_echo_n "(cached) " >&6 | |
6025 | else | |
6026 | ac_ext=c | |
6027 | ac_cpp='$CPP $CPPFLAGS' | |
6028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6031 | ||
6032 | cat >conftest.$ac_ext <<_ACEOF | |
6033 | /* confdefs.h. */ | |
6034 | _ACEOF | |
6035 | cat confdefs.h >>conftest.$ac_ext | |
6036 | cat >>conftest.$ac_ext <<_ACEOF | |
6037 | /* end confdefs.h. */ | |
6038 | ||
6039 | int | |
6040 | main () | |
6041 | { | |
6042 | ||
6043 | ; | |
6044 | return 0; | |
6045 | } | |
6046 | _ACEOF | |
6047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6048 | if { (ac_try="$ac_link" | |
6049 | case "(($ac_try" in | |
6050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6051 | *) ac_try_echo=$ac_try;; | |
6052 | esac | |
6053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6054 | $as_echo "$ac_try_echo") >&5 | |
6055 | (eval "$ac_link") 2>conftest.er1 | |
6056 | ac_status=$? | |
6057 | grep -v '^ *+' conftest.er1 >conftest.err | |
6058 | rm -f conftest.er1 | |
6059 | cat conftest.err >&5 | |
6060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6061 | (exit $ac_status); } && { | |
6062 | test -z "$ac_c_werror_flag" || | |
6063 | test ! -s conftest.err | |
6064 | } && test -s conftest$ac_exeext && { | |
6065 | test "$cross_compiling" = yes || | |
6066 | $as_test_x conftest$ac_exeext | |
6067 | }; then | |
6068 | lt_cv_cc_needs_belf=yes | |
6069 | else | |
6070 | $as_echo "$as_me: failed program was:" >&5 | |
6071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6072 | ||
6073 | lt_cv_cc_needs_belf=no | |
6074 | fi | |
6075 | ||
6076 | rm -rf conftest.dSYM | |
6077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6078 | conftest$ac_exeext conftest.$ac_ext | |
6079 | ac_ext=c | |
6080 | ac_cpp='$CPP $CPPFLAGS' | |
6081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6084 | ||
6085 | fi | |
6086 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6087 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6088 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6089 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6090 | CFLAGS="$SAVE_CFLAGS" | |
6091 | fi | |
6092 | ;; | |
6093 | sparc*-*solaris*) | |
6094 | # Find out which ABI we are using. | |
6095 | echo 'int i;' > conftest.$ac_ext | |
6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6097 | (eval $ac_compile) 2>&5 | |
6098 | ac_status=$? | |
6099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6100 | (exit $ac_status); }; then | |
6101 | case `/usr/bin/file conftest.o` in | |
6102 | *64-bit*) | |
6103 | case $lt_cv_prog_gnu_ld in | |
6104 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6105 | *) | |
6106 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6107 | LD="${LD-ld} -64" | |
6108 | fi | |
6109 | ;; | |
6110 | esac | |
6111 | ;; | |
6112 | esac | |
6113 | fi | |
6114 | rm -rf conftest* | |
6115 | ;; | |
6116 | esac | |
6117 | ||
6118 | need_locks="$enable_libtool_lock" | |
6119 | ||
6120 | ||
6121 | case $host_os in | |
6122 | rhapsody* | darwin*) | |
6123 | if test -n "$ac_tool_prefix"; then | |
6124 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6125 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6126 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6127 | $as_echo_n "checking for $ac_word... " >&6; } | |
6128 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6129 | $as_echo_n "(cached) " >&6 | |
6130 | else | |
6131 | if test -n "$DSYMUTIL"; then | |
6132 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6133 | else | |
6134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6135 | for as_dir in $PATH | |
6136 | do | |
6137 | IFS=$as_save_IFS | |
6138 | test -z "$as_dir" && as_dir=. | |
6139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6141 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6142 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6143 | break 2 | |
6144 | fi | |
6145 | done | |
6146 | done | |
6147 | IFS=$as_save_IFS | |
6148 | ||
6149 | fi | |
6150 | fi | |
6151 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6152 | if test -n "$DSYMUTIL"; then | |
6153 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6154 | $as_echo "$DSYMUTIL" >&6; } | |
6155 | else | |
6156 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6157 | $as_echo "no" >&6; } | |
6158 | fi | |
6159 | ||
6160 | ||
6161 | fi | |
6162 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6163 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6164 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6165 | set dummy dsymutil; ac_word=$2 | |
6166 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6167 | $as_echo_n "checking for $ac_word... " >&6; } | |
6168 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6169 | $as_echo_n "(cached) " >&6 | |
6170 | else | |
6171 | if test -n "$ac_ct_DSYMUTIL"; then | |
6172 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6173 | else | |
6174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6175 | for as_dir in $PATH | |
6176 | do | |
6177 | IFS=$as_save_IFS | |
6178 | test -z "$as_dir" && as_dir=. | |
6179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6181 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6182 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6183 | break 2 | |
6184 | fi | |
6185 | done | |
6186 | done | |
6187 | IFS=$as_save_IFS | |
6188 | ||
6189 | fi | |
6190 | fi | |
6191 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6192 | if test -n "$ac_ct_DSYMUTIL"; then | |
6193 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6194 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6195 | else | |
6196 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6197 | $as_echo "no" >&6; } | |
6198 | fi | |
6199 | ||
6200 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6201 | DSYMUTIL=":" | |
6202 | else | |
6203 | case $cross_compiling:$ac_tool_warned in | |
6204 | yes:) | |
6205 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6206 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6207 | ac_tool_warned=yes ;; | |
6208 | esac | |
6209 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6210 | fi | |
6211 | else | |
6212 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6213 | fi | |
6214 | ||
6215 | if test -n "$ac_tool_prefix"; then | |
6216 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6217 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6218 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6219 | $as_echo_n "checking for $ac_word... " >&6; } | |
6220 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6221 | $as_echo_n "(cached) " >&6 | |
6222 | else | |
6223 | if test -n "$NMEDIT"; then | |
6224 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6225 | else | |
6226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6227 | for as_dir in $PATH | |
6228 | do | |
6229 | IFS=$as_save_IFS | |
6230 | test -z "$as_dir" && as_dir=. | |
6231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6233 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6234 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6235 | break 2 | |
6236 | fi | |
6237 | done | |
6238 | done | |
6239 | IFS=$as_save_IFS | |
6240 | ||
6241 | fi | |
6242 | fi | |
6243 | NMEDIT=$ac_cv_prog_NMEDIT | |
6244 | if test -n "$NMEDIT"; then | |
6245 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6246 | $as_echo "$NMEDIT" >&6; } | |
6247 | else | |
6248 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6249 | $as_echo "no" >&6; } | |
6250 | fi | |
6251 | ||
6252 | ||
6253 | fi | |
6254 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6255 | ac_ct_NMEDIT=$NMEDIT | |
6256 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6257 | set dummy nmedit; ac_word=$2 | |
6258 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6259 | $as_echo_n "checking for $ac_word... " >&6; } | |
6260 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6261 | $as_echo_n "(cached) " >&6 | |
6262 | else | |
6263 | if test -n "$ac_ct_NMEDIT"; then | |
6264 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6265 | else | |
6266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6267 | for as_dir in $PATH | |
6268 | do | |
6269 | IFS=$as_save_IFS | |
6270 | test -z "$as_dir" && as_dir=. | |
6271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6273 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6274 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6275 | break 2 | |
6276 | fi | |
6277 | done | |
6278 | done | |
6279 | IFS=$as_save_IFS | |
6280 | ||
6281 | fi | |
6282 | fi | |
6283 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6284 | if test -n "$ac_ct_NMEDIT"; then | |
6285 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6286 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6287 | else | |
6288 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6289 | $as_echo "no" >&6; } | |
6290 | fi | |
6291 | ||
6292 | if test "x$ac_ct_NMEDIT" = x; then | |
6293 | NMEDIT=":" | |
6294 | else | |
6295 | case $cross_compiling:$ac_tool_warned in | |
6296 | yes:) | |
6297 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6299 | ac_tool_warned=yes ;; | |
6300 | esac | |
6301 | NMEDIT=$ac_ct_NMEDIT | |
6302 | fi | |
6303 | else | |
6304 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6305 | fi | |
6306 | ||
6307 | if test -n "$ac_tool_prefix"; then | |
6308 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6309 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6310 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6311 | $as_echo_n "checking for $ac_word... " >&6; } | |
6312 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6313 | $as_echo_n "(cached) " >&6 | |
6314 | else | |
6315 | if test -n "$LIPO"; then | |
6316 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6317 | else | |
6318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6319 | for as_dir in $PATH | |
6320 | do | |
6321 | IFS=$as_save_IFS | |
6322 | test -z "$as_dir" && as_dir=. | |
6323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6325 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6326 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6327 | break 2 | |
6328 | fi | |
6329 | done | |
6330 | done | |
6331 | IFS=$as_save_IFS | |
6332 | ||
6333 | fi | |
6334 | fi | |
6335 | LIPO=$ac_cv_prog_LIPO | |
6336 | if test -n "$LIPO"; then | |
6337 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6338 | $as_echo "$LIPO" >&6; } | |
6339 | else | |
6340 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6341 | $as_echo "no" >&6; } | |
6342 | fi | |
6343 | ||
6344 | ||
6345 | fi | |
6346 | if test -z "$ac_cv_prog_LIPO"; then | |
6347 | ac_ct_LIPO=$LIPO | |
6348 | # Extract the first word of "lipo", so it can be a program name with args. | |
6349 | set dummy lipo; ac_word=$2 | |
6350 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6351 | $as_echo_n "checking for $ac_word... " >&6; } | |
6352 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6353 | $as_echo_n "(cached) " >&6 | |
6354 | else | |
6355 | if test -n "$ac_ct_LIPO"; then | |
6356 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6357 | else | |
6358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6359 | for as_dir in $PATH | |
6360 | do | |
6361 | IFS=$as_save_IFS | |
6362 | test -z "$as_dir" && as_dir=. | |
6363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6365 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6366 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6367 | break 2 | |
6368 | fi | |
6369 | done | |
6370 | done | |
6371 | IFS=$as_save_IFS | |
6372 | ||
6373 | fi | |
6374 | fi | |
6375 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6376 | if test -n "$ac_ct_LIPO"; then | |
6377 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6378 | $as_echo "$ac_ct_LIPO" >&6; } | |
6379 | else | |
6380 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6381 | $as_echo "no" >&6; } | |
6382 | fi | |
6383 | ||
6384 | if test "x$ac_ct_LIPO" = x; then | |
6385 | LIPO=":" | |
6386 | else | |
6387 | case $cross_compiling:$ac_tool_warned in | |
6388 | yes:) | |
6389 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6390 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6391 | ac_tool_warned=yes ;; | |
6392 | esac | |
6393 | LIPO=$ac_ct_LIPO | |
6394 | fi | |
6395 | else | |
6396 | LIPO="$ac_cv_prog_LIPO" | |
6397 | fi | |
6398 | ||
6399 | if test -n "$ac_tool_prefix"; then | |
6400 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6401 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6402 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6403 | $as_echo_n "checking for $ac_word... " >&6; } | |
6404 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6405 | $as_echo_n "(cached) " >&6 | |
6406 | else | |
6407 | if test -n "$OTOOL"; then | |
6408 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6409 | else | |
6410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6411 | for as_dir in $PATH | |
6412 | do | |
6413 | IFS=$as_save_IFS | |
6414 | test -z "$as_dir" && as_dir=. | |
6415 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6416 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6417 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6418 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6419 | break 2 | |
6420 | fi | |
6421 | done | |
6422 | done | |
6423 | IFS=$as_save_IFS | |
6424 | ||
6425 | fi | |
6426 | fi | |
6427 | OTOOL=$ac_cv_prog_OTOOL | |
6428 | if test -n "$OTOOL"; then | |
6429 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6430 | $as_echo "$OTOOL" >&6; } | |
6431 | else | |
6432 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6433 | $as_echo "no" >&6; } | |
6434 | fi | |
6435 | ||
6436 | ||
6437 | fi | |
6438 | if test -z "$ac_cv_prog_OTOOL"; then | |
6439 | ac_ct_OTOOL=$OTOOL | |
6440 | # Extract the first word of "otool", so it can be a program name with args. | |
6441 | set dummy otool; ac_word=$2 | |
6442 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6443 | $as_echo_n "checking for $ac_word... " >&6; } | |
6444 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6445 | $as_echo_n "(cached) " >&6 | |
6446 | else | |
6447 | if test -n "$ac_ct_OTOOL"; then | |
6448 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6449 | else | |
6450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6451 | for as_dir in $PATH | |
6452 | do | |
6453 | IFS=$as_save_IFS | |
6454 | test -z "$as_dir" && as_dir=. | |
6455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6457 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6458 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6459 | break 2 | |
6460 | fi | |
6461 | done | |
6462 | done | |
6463 | IFS=$as_save_IFS | |
6464 | ||
6465 | fi | |
6466 | fi | |
6467 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6468 | if test -n "$ac_ct_OTOOL"; then | |
6469 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6470 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6471 | else | |
6472 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6473 | $as_echo "no" >&6; } | |
6474 | fi | |
6475 | ||
6476 | if test "x$ac_ct_OTOOL" = x; then | |
6477 | OTOOL=":" | |
6478 | else | |
6479 | case $cross_compiling:$ac_tool_warned in | |
6480 | yes:) | |
6481 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6482 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6483 | ac_tool_warned=yes ;; | |
6484 | esac | |
6485 | OTOOL=$ac_ct_OTOOL | |
6486 | fi | |
6487 | else | |
6488 | OTOOL="$ac_cv_prog_OTOOL" | |
6489 | fi | |
6490 | ||
6491 | if test -n "$ac_tool_prefix"; then | |
6492 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6493 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6494 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6495 | $as_echo_n "checking for $ac_word... " >&6; } | |
6496 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6497 | $as_echo_n "(cached) " >&6 | |
6498 | else | |
6499 | if test -n "$OTOOL64"; then | |
6500 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6501 | else | |
6502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6503 | for as_dir in $PATH | |
6504 | do | |
6505 | IFS=$as_save_IFS | |
6506 | test -z "$as_dir" && as_dir=. | |
6507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6509 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6510 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6511 | break 2 | |
6512 | fi | |
6513 | done | |
6514 | done | |
6515 | IFS=$as_save_IFS | |
6516 | ||
6517 | fi | |
6518 | fi | |
6519 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6520 | if test -n "$OTOOL64"; then | |
6521 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6522 | $as_echo "$OTOOL64" >&6; } | |
6523 | else | |
6524 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6525 | $as_echo "no" >&6; } | |
6526 | fi | |
6527 | ||
6528 | ||
6529 | fi | |
6530 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6531 | ac_ct_OTOOL64=$OTOOL64 | |
6532 | # Extract the first word of "otool64", so it can be a program name with args. | |
6533 | set dummy otool64; ac_word=$2 | |
6534 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6535 | $as_echo_n "checking for $ac_word... " >&6; } | |
6536 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6537 | $as_echo_n "(cached) " >&6 | |
6538 | else | |
6539 | if test -n "$ac_ct_OTOOL64"; then | |
6540 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6541 | else | |
6542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6543 | for as_dir in $PATH | |
6544 | do | |
6545 | IFS=$as_save_IFS | |
6546 | test -z "$as_dir" && as_dir=. | |
6547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6549 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6550 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6551 | break 2 | |
6552 | fi | |
6553 | done | |
6554 | done | |
6555 | IFS=$as_save_IFS | |
6556 | ||
6557 | fi | |
6558 | fi | |
6559 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6560 | if test -n "$ac_ct_OTOOL64"; then | |
6561 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6562 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6563 | else | |
6564 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6565 | $as_echo "no" >&6; } | |
6566 | fi | |
6567 | ||
6568 | if test "x$ac_ct_OTOOL64" = x; then | |
6569 | OTOOL64=":" | |
6570 | else | |
6571 | case $cross_compiling:$ac_tool_warned in | |
6572 | yes:) | |
6573 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6575 | ac_tool_warned=yes ;; | |
6576 | esac | |
6577 | OTOOL64=$ac_ct_OTOOL64 | |
6578 | fi | |
6579 | else | |
6580 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6581 | fi | |
6582 | ||
6583 | ||
6584 | ||
6585 | ||
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6610 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6611 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6612 | $as_echo_n "(cached) " >&6 | |
6613 | else | |
6614 | lt_cv_apple_cc_single_mod=no | |
6615 | if test -z "${LT_MULTI_MODULE}"; then | |
6616 | # By default we will add the -single_module flag. You can override | |
6617 | # by either setting the environment variable LT_MULTI_MODULE | |
6618 | # non-empty at configure time, or by adding -multi_module to the | |
6619 | # link flags. | |
6620 | rm -rf libconftest.dylib* | |
6621 | echo "int foo(void){return 1;}" > conftest.c | |
6622 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6623 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6624 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6625 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6626 | _lt_result=$? | |
6627 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6628 | lt_cv_apple_cc_single_mod=yes | |
6629 | else | |
6630 | cat conftest.err >&5 | |
6631 | fi | |
6632 | rm -rf libconftest.dylib* | |
6633 | rm -f conftest.* | |
6634 | fi | |
6635 | fi | |
6636 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6637 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6638 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6639 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6640 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6641 | $as_echo_n "(cached) " >&6 | |
6642 | else | |
6643 | lt_cv_ld_exported_symbols_list=no | |
6644 | save_LDFLAGS=$LDFLAGS | |
6645 | echo "_main" > conftest.sym | |
6646 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6647 | cat >conftest.$ac_ext <<_ACEOF | |
6648 | /* confdefs.h. */ | |
6649 | _ACEOF | |
6650 | cat confdefs.h >>conftest.$ac_ext | |
6651 | cat >>conftest.$ac_ext <<_ACEOF | |
6652 | /* end confdefs.h. */ | |
6653 | ||
6654 | int | |
6655 | main () | |
6656 | { | |
6657 | ||
6658 | ; | |
6659 | return 0; | |
6660 | } | |
6661 | _ACEOF | |
6662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6663 | if { (ac_try="$ac_link" | |
6664 | case "(($ac_try" in | |
6665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6666 | *) ac_try_echo=$ac_try;; | |
6667 | esac | |
6668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6669 | $as_echo "$ac_try_echo") >&5 | |
6670 | (eval "$ac_link") 2>conftest.er1 | |
6671 | ac_status=$? | |
6672 | grep -v '^ *+' conftest.er1 >conftest.err | |
6673 | rm -f conftest.er1 | |
6674 | cat conftest.err >&5 | |
6675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6676 | (exit $ac_status); } && { | |
6677 | test -z "$ac_c_werror_flag" || | |
6678 | test ! -s conftest.err | |
6679 | } && test -s conftest$ac_exeext && { | |
6680 | test "$cross_compiling" = yes || | |
6681 | $as_test_x conftest$ac_exeext | |
6682 | }; then | |
6683 | lt_cv_ld_exported_symbols_list=yes | |
6684 | else | |
6685 | $as_echo "$as_me: failed program was:" >&5 | |
6686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6687 | ||
6688 | lt_cv_ld_exported_symbols_list=no | |
6689 | fi | |
6690 | ||
6691 | rm -rf conftest.dSYM | |
6692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6693 | conftest$ac_exeext conftest.$ac_ext | |
6694 | LDFLAGS="$save_LDFLAGS" | |
6695 | ||
6696 | fi | |
6697 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6698 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6699 | case $host_os in | |
6700 | rhapsody* | darwin1.[012]) | |
6701 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6702 | darwin1.*) | |
6703 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6704 | darwin*) # darwin 5.x on | |
6705 | # if running on 10.5 or later, the deployment target defaults | |
6706 | # to the OS version, if on x86, and 10.4, the deployment | |
6707 | # target defaults to 10.4. Don't you love it? | |
6708 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6709 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6710 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6711 | 10.[012]*) | |
6712 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6713 | 10.*) | |
6714 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6715 | esac | |
6716 | ;; | |
6717 | esac | |
6718 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6719 | _lt_dar_single_mod='$single_module' | |
6720 | fi | |
6721 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6722 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6723 | else | |
6724 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6725 | fi | |
6726 | if test "$DSYMUTIL" != ":"; then | |
6727 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6728 | else | |
6729 | _lt_dsymutil= | |
6730 | fi | |
6731 | ;; | |
6732 | esac | |
6733 | ||
6734 | ||
6735 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6736 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6737 | if test "${ac_cv_header_stdc+set}" = set; then | |
6738 | $as_echo_n "(cached) " >&6 | |
6739 | else | |
6740 | cat >conftest.$ac_ext <<_ACEOF | |
6741 | /* confdefs.h. */ | |
6742 | _ACEOF | |
6743 | cat confdefs.h >>conftest.$ac_ext | |
6744 | cat >>conftest.$ac_ext <<_ACEOF | |
6745 | /* end confdefs.h. */ | |
6746 | #include <stdlib.h> | |
6747 | #include <stdarg.h> | |
6748 | #include <string.h> | |
6749 | #include <float.h> | |
6750 | ||
6751 | int | |
6752 | main () | |
6753 | { | |
6754 | ||
6755 | ; | |
6756 | return 0; | |
6757 | } | |
6758 | _ACEOF | |
6759 | rm -f conftest.$ac_objext | |
6760 | if { (ac_try="$ac_compile" | |
6761 | case "(($ac_try" in | |
6762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6763 | *) ac_try_echo=$ac_try;; | |
6764 | esac | |
6765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6766 | $as_echo "$ac_try_echo") >&5 | |
6767 | (eval "$ac_compile") 2>conftest.er1 | |
6768 | ac_status=$? | |
6769 | grep -v '^ *+' conftest.er1 >conftest.err | |
6770 | rm -f conftest.er1 | |
6771 | cat conftest.err >&5 | |
6772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6773 | (exit $ac_status); } && { | |
6774 | test -z "$ac_c_werror_flag" || | |
6775 | test ! -s conftest.err | |
6776 | } && test -s conftest.$ac_objext; then | |
6777 | ac_cv_header_stdc=yes | |
6778 | else | |
6779 | $as_echo "$as_me: failed program was:" >&5 | |
6780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6781 | ||
6782 | ac_cv_header_stdc=no | |
6783 | fi | |
6784 | ||
6785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6786 | ||
6787 | if test $ac_cv_header_stdc = yes; then | |
6788 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6789 | cat >conftest.$ac_ext <<_ACEOF | |
6790 | /* confdefs.h. */ | |
6791 | _ACEOF | |
6792 | cat confdefs.h >>conftest.$ac_ext | |
6793 | cat >>conftest.$ac_ext <<_ACEOF | |
6794 | /* end confdefs.h. */ | |
6795 | #include <string.h> | |
6796 | ||
6797 | _ACEOF | |
6798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6799 | $EGREP "memchr" >/dev/null 2>&1; then | |
6800 | : | |
6801 | else | |
6802 | ac_cv_header_stdc=no | |
6803 | fi | |
6804 | rm -f conftest* | |
6805 | ||
6806 | fi | |
6807 | ||
6808 | if test $ac_cv_header_stdc = yes; then | |
6809 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6810 | cat >conftest.$ac_ext <<_ACEOF | |
6811 | /* confdefs.h. */ | |
6812 | _ACEOF | |
6813 | cat confdefs.h >>conftest.$ac_ext | |
6814 | cat >>conftest.$ac_ext <<_ACEOF | |
6815 | /* end confdefs.h. */ | |
6816 | #include <stdlib.h> | |
6817 | ||
6818 | _ACEOF | |
6819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6820 | $EGREP "free" >/dev/null 2>&1; then | |
6821 | : | |
6822 | else | |
6823 | ac_cv_header_stdc=no | |
6824 | fi | |
6825 | rm -f conftest* | |
6826 | ||
6827 | fi | |
6828 | ||
6829 | if test $ac_cv_header_stdc = yes; then | |
6830 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6831 | if test "$cross_compiling" = yes; then | |
6832 | : | |
6833 | else | |
6834 | cat >conftest.$ac_ext <<_ACEOF | |
6835 | /* confdefs.h. */ | |
6836 | _ACEOF | |
6837 | cat confdefs.h >>conftest.$ac_ext | |
6838 | cat >>conftest.$ac_ext <<_ACEOF | |
6839 | /* end confdefs.h. */ | |
6840 | #include <ctype.h> | |
6841 | #include <stdlib.h> | |
6842 | #if ((' ' & 0x0FF) == 0x020) | |
6843 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6844 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6845 | #else | |
6846 | # define ISLOWER(c) \ | |
6847 | (('a' <= (c) && (c) <= 'i') \ | |
6848 | || ('j' <= (c) && (c) <= 'r') \ | |
6849 | || ('s' <= (c) && (c) <= 'z')) | |
6850 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6851 | #endif | |
6852 | ||
6853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6854 | int | |
6855 | main () | |
6856 | { | |
6857 | int i; | |
6858 | for (i = 0; i < 256; i++) | |
6859 | if (XOR (islower (i), ISLOWER (i)) | |
6860 | || toupper (i) != TOUPPER (i)) | |
6861 | return 2; | |
6862 | return 0; | |
6863 | } | |
6864 | _ACEOF | |
6865 | rm -f conftest$ac_exeext | |
6866 | if { (ac_try="$ac_link" | |
6867 | case "(($ac_try" in | |
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6869 | *) ac_try_echo=$ac_try;; | |
6870 | esac | |
6871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6872 | $as_echo "$ac_try_echo") >&5 | |
6873 | (eval "$ac_link") 2>&5 | |
6874 | ac_status=$? | |
6875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6877 | { (case "(($ac_try" in | |
6878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6879 | *) ac_try_echo=$ac_try;; | |
6880 | esac | |
6881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6882 | $as_echo "$ac_try_echo") >&5 | |
6883 | (eval "$ac_try") 2>&5 | |
6884 | ac_status=$? | |
6885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6886 | (exit $ac_status); }; }; then | |
6887 | : | |
6888 | else | |
6889 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6890 | $as_echo "$as_me: failed program was:" >&5 | |
6891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6892 | ||
6893 | ( exit $ac_status ) | |
6894 | ac_cv_header_stdc=no | |
6895 | fi | |
6896 | rm -rf conftest.dSYM | |
6897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6898 | fi | |
6899 | ||
6900 | ||
6901 | fi | |
6902 | fi | |
6903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6904 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6905 | if test $ac_cv_header_stdc = yes; then | |
6906 | ||
6907 | cat >>confdefs.h <<\_ACEOF | |
6908 | #define STDC_HEADERS 1 | |
6909 | _ACEOF | |
6910 | ||
6911 | fi | |
6912 | ||
6913 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6924 | inttypes.h stdint.h unistd.h | |
6925 | do | |
6926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6927 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6928 | $as_echo_n "checking for $ac_header... " >&6; } | |
6929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6930 | $as_echo_n "(cached) " >&6 | |
6931 | else | |
6932 | cat >conftest.$ac_ext <<_ACEOF | |
6933 | /* confdefs.h. */ | |
6934 | _ACEOF | |
6935 | cat confdefs.h >>conftest.$ac_ext | |
6936 | cat >>conftest.$ac_ext <<_ACEOF | |
6937 | /* end confdefs.h. */ | |
6938 | $ac_includes_default | |
6939 | ||
6940 | #include <$ac_header> | |
6941 | _ACEOF | |
6942 | rm -f conftest.$ac_objext | |
6943 | if { (ac_try="$ac_compile" | |
6944 | case "(($ac_try" in | |
6945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6946 | *) ac_try_echo=$ac_try;; | |
6947 | esac | |
6948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6949 | $as_echo "$ac_try_echo") >&5 | |
6950 | (eval "$ac_compile") 2>conftest.er1 | |
6951 | ac_status=$? | |
6952 | grep -v '^ *+' conftest.er1 >conftest.err | |
6953 | rm -f conftest.er1 | |
6954 | cat conftest.err >&5 | |
6955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6956 | (exit $ac_status); } && { | |
6957 | test -z "$ac_c_werror_flag" || | |
6958 | test ! -s conftest.err | |
6959 | } && test -s conftest.$ac_objext; then | |
6960 | eval "$as_ac_Header=yes" | |
6961 | else | |
6962 | $as_echo "$as_me: failed program was:" >&5 | |
6963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6964 | ||
6965 | eval "$as_ac_Header=no" | |
6966 | fi | |
6967 | ||
6968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6969 | fi | |
6970 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6971 | $as_echo "$as_val"'` | |
6972 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6973 | $as_echo "$ac_res" >&6; } | |
6974 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6975 | $as_echo "$as_val"'` | |
6976 | if test "x$as_val" = x""yes; then | |
6977 | cat >>confdefs.h <<_ACEOF | |
6978 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6979 | _ACEOF | |
6980 | ||
6981 | fi | |
6982 | ||
6983 | done | |
6984 | ||
6985 | ||
6986 | ||
6987 | for ac_header in dlfcn.h | |
6988 | do | |
6989 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6990 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6991 | $as_echo_n "checking for $ac_header... " >&6; } | |
6992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6993 | $as_echo_n "(cached) " >&6 | |
6994 | else | |
6995 | cat >conftest.$ac_ext <<_ACEOF | |
6996 | /* confdefs.h. */ | |
6997 | _ACEOF | |
6998 | cat confdefs.h >>conftest.$ac_ext | |
6999 | cat >>conftest.$ac_ext <<_ACEOF | |
7000 | /* end confdefs.h. */ | |
7001 | $ac_includes_default | |
7002 | ||
7003 | #include <$ac_header> | |
7004 | _ACEOF | |
7005 | rm -f conftest.$ac_objext | |
7006 | if { (ac_try="$ac_compile" | |
7007 | case "(($ac_try" in | |
7008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7009 | *) ac_try_echo=$ac_try;; | |
7010 | esac | |
7011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7012 | $as_echo "$ac_try_echo") >&5 | |
7013 | (eval "$ac_compile") 2>conftest.er1 | |
7014 | ac_status=$? | |
7015 | grep -v '^ *+' conftest.er1 >conftest.err | |
7016 | rm -f conftest.er1 | |
7017 | cat conftest.err >&5 | |
7018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7019 | (exit $ac_status); } && { | |
7020 | test -z "$ac_c_werror_flag" || | |
7021 | test ! -s conftest.err | |
7022 | } && test -s conftest.$ac_objext; then | |
7023 | eval "$as_ac_Header=yes" | |
7024 | else | |
7025 | $as_echo "$as_me: failed program was:" >&5 | |
7026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7027 | ||
7028 | eval "$as_ac_Header=no" | |
7029 | fi | |
7030 | ||
7031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7032 | fi | |
7033 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7034 | $as_echo "$as_val"'` | |
7035 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7036 | $as_echo "$ac_res" >&6; } | |
7037 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7038 | $as_echo "$as_val"'` | |
7039 | if test "x$as_val" = x""yes; then | |
7040 | cat >>confdefs.h <<_ACEOF | |
7041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7042 | _ACEOF | |
7043 | ||
7044 | fi | |
7045 | ||
7046 | done | |
7047 | ||
7048 | ||
7049 | ||
7050 | # Set options | |
7051 | ||
7052 | ||
7053 | ||
7054 | enable_dlopen=no | |
7055 | ||
7056 | ||
7057 | enable_win32_dll=no | |
7058 | ||
7059 | ||
7060 | # Check whether --enable-shared was given. | |
7061 | if test "${enable_shared+set}" = set; then | |
7062 | enableval=$enable_shared; p=${PACKAGE-default} | |
7063 | case $enableval in | |
7064 | yes) enable_shared=yes ;; | |
7065 | no) enable_shared=no ;; | |
7066 | *) | |
7067 | enable_shared=no | |
7068 | # Look at the argument we got. We use all the common list separators. | |
7069 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7070 | for pkg in $enableval; do | |
7071 | IFS="$lt_save_ifs" | |
7072 | if test "X$pkg" = "X$p"; then | |
7073 | enable_shared=yes | |
7074 | fi | |
7075 | done | |
7076 | IFS="$lt_save_ifs" | |
7077 | ;; | |
7078 | esac | |
7079 | else | |
7080 | enable_shared=yes | |
7081 | fi | |
7082 | ||
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | ||
7088 | ||
7089 | ||
7090 | ||
7091 | # Check whether --enable-static was given. | |
7092 | if test "${enable_static+set}" = set; then | |
7093 | enableval=$enable_static; p=${PACKAGE-default} | |
7094 | case $enableval in | |
7095 | yes) enable_static=yes ;; | |
7096 | no) enable_static=no ;; | |
7097 | *) | |
7098 | enable_static=no | |
7099 | # Look at the argument we got. We use all the common list separators. | |
7100 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7101 | for pkg in $enableval; do | |
7102 | IFS="$lt_save_ifs" | |
7103 | if test "X$pkg" = "X$p"; then | |
7104 | enable_static=yes | |
7105 | fi | |
7106 | done | |
7107 | IFS="$lt_save_ifs" | |
7108 | ;; | |
7109 | esac | |
7110 | else | |
7111 | enable_static=yes | |
7112 | fi | |
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | # Check whether --with-pic was given. | |
7124 | if test "${with_pic+set}" = set; then | |
7125 | withval=$with_pic; pic_mode="$withval" | |
7126 | else | |
7127 | pic_mode=default | |
7128 | fi | |
7129 | ||
7130 | ||
7131 | test -z "$pic_mode" && pic_mode=default | |
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | # Check whether --enable-fast-install was given. | |
7140 | if test "${enable_fast_install+set}" = set; then | |
7141 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7142 | case $enableval in | |
7143 | yes) enable_fast_install=yes ;; | |
7144 | no) enable_fast_install=no ;; | |
7145 | *) | |
7146 | enable_fast_install=no | |
7147 | # Look at the argument we got. We use all the common list separators. | |
7148 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7149 | for pkg in $enableval; do | |
7150 | IFS="$lt_save_ifs" | |
7151 | if test "X$pkg" = "X$p"; then | |
7152 | enable_fast_install=yes | |
7153 | fi | |
7154 | done | |
7155 | IFS="$lt_save_ifs" | |
7156 | ;; | |
7157 | esac | |
7158 | else | |
7159 | enable_fast_install=yes | |
7160 | fi | |
7161 | ||
7162 | ||
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
7172 | # This can be used to rebuild libtool when needed | |
7173 | LIBTOOL_DEPS="$ltmain" | |
7174 | ||
7175 | # Always use our own libtool. | |
7176 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7177 | ||
7178 | ||
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
7184 | ||
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | test -z "$LN_S" && LN_S="ln -s" | |
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | if test -n "${ZSH_VERSION+set}" ; then | |
7218 | setopt NO_GLOB_SUBST | |
7219 | fi | |
7220 | ||
7221 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 | |
7222 | $as_echo_n "checking for objdir... " >&6; } | |
7223 | if test "${lt_cv_objdir+set}" = set; then | |
7224 | $as_echo_n "(cached) " >&6 | |
7225 | else | |
7226 | rm -f .libs 2>/dev/null | |
7227 | mkdir .libs 2>/dev/null | |
7228 | if test -d .libs; then | |
7229 | lt_cv_objdir=.libs | |
7230 | else | |
7231 | # MS-DOS does not allow filenames that begin with a dot. | |
7232 | lt_cv_objdir=_libs | |
7233 | fi | |
7234 | rmdir .libs 2>/dev/null | |
7235 | fi | |
7236 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7237 | $as_echo "$lt_cv_objdir" >&6; } | |
7238 | objdir=$lt_cv_objdir | |
7239 | ||
7240 | ||
7241 | ||
7242 | ||
7243 | ||
7244 | cat >>confdefs.h <<_ACEOF | |
7245 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7246 | _ACEOF | |
7247 | ||
7248 | ||
7249 | ||
7250 | ||
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | case $host_os in | |
7265 | aix3*) | |
7266 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7267 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7268 | # vanish in a puff of smoke. | |
7269 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7270 | COLLECT_NAMES= | |
7271 | export COLLECT_NAMES | |
7272 | fi | |
7273 | ;; | |
7274 | esac | |
7275 | ||
7276 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7277 | # metacharacters that are still active within double-quoted strings. | |
7278 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7279 | ||
7280 | # Same as above, but do not quote variable references. | |
7281 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7282 | ||
7283 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7284 | # double_quote_subst'ed string. | |
7285 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7286 | ||
7287 | # Sed substitution to delay expansion of an escaped single quote. | |
7288 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7289 | ||
7290 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7291 | no_glob_subst='s/\*/\\\*/g' | |
7292 | ||
7293 | # Global variables: | |
7294 | ofile=libtool | |
7295 | can_build_shared=yes | |
7296 | ||
7297 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7298 | # which needs '.lib'). | |
7299 | libext=a | |
7300 | ||
7301 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7302 | ||
7303 | old_CC="$CC" | |
7304 | old_CFLAGS="$CFLAGS" | |
7305 | ||
7306 | # Set sane defaults for various variables | |
7307 | test -z "$CC" && CC=cc | |
7308 | test -z "$LTCC" && LTCC=$CC | |
7309 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7310 | test -z "$LD" && LD=ld | |
7311 | test -z "$ac_objext" && ac_objext=o | |
7312 | ||
7313 | for cc_temp in $compiler""; do | |
7314 | case $cc_temp in | |
7315 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7316 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7317 | \-*) ;; | |
7318 | *) break;; | |
7319 | esac | |
7320 | done | |
7321 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7322 | ||
7323 | ||
7324 | # Only perform the check for file, if the check method requires it | |
7325 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7326 | case $deplibs_check_method in | |
7327 | file_magic*) | |
7328 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7329 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7330 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7331 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7332 | $as_echo_n "(cached) " >&6 | |
7333 | else | |
7334 | case $MAGIC_CMD in | |
7335 | [\\/*] | ?:[\\/]*) | |
7336 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7337 | ;; | |
7338 | *) | |
7339 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7340 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7341 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7342 | for ac_dir in $ac_dummy; do | |
7343 | IFS="$lt_save_ifs" | |
7344 | test -z "$ac_dir" && ac_dir=. | |
7345 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7346 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7347 | if test -n "$file_magic_test_file"; then | |
7348 | case $deplibs_check_method in | |
7349 | "file_magic "*) | |
7350 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7351 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7352 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7353 | $EGREP "$file_magic_regex" > /dev/null; then | |
7354 | : | |
7355 | else | |
7356 | cat <<_LT_EOF 1>&2 | |
7357 | ||
7358 | *** Warning: the command libtool uses to detect shared libraries, | |
7359 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7360 | *** The result is that libtool may fail to recognize shared libraries | |
7361 | *** as such. This will affect the creation of libtool libraries that | |
7362 | *** depend on shared libraries, but programs linked with such libtool | |
7363 | *** libraries will work regardless of this problem. Nevertheless, you | |
7364 | *** may want to report the problem to your system manager and/or to | |
7365 | *** bug-libtool@gnu.org | |
7366 | ||
7367 | _LT_EOF | |
7368 | fi ;; | |
7369 | esac | |
7370 | fi | |
7371 | break | |
7372 | fi | |
7373 | done | |
7374 | IFS="$lt_save_ifs" | |
7375 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7376 | ;; | |
7377 | esac | |
7378 | fi | |
7379 | ||
7380 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7381 | if test -n "$MAGIC_CMD"; then | |
7382 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7383 | $as_echo "$MAGIC_CMD" >&6; } | |
7384 | else | |
7385 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7386 | $as_echo "no" >&6; } | |
7387 | fi | |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7394 | if test -n "$ac_tool_prefix"; then | |
7395 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7396 | $as_echo_n "checking for file... " >&6; } | |
7397 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7398 | $as_echo_n "(cached) " >&6 | |
7399 | else | |
7400 | case $MAGIC_CMD in | |
7401 | [\\/*] | ?:[\\/]*) | |
7402 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7403 | ;; | |
7404 | *) | |
7405 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7406 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7407 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7408 | for ac_dir in $ac_dummy; do | |
7409 | IFS="$lt_save_ifs" | |
7410 | test -z "$ac_dir" && ac_dir=. | |
7411 | if test -f $ac_dir/file; then | |
7412 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7413 | if test -n "$file_magic_test_file"; then | |
7414 | case $deplibs_check_method in | |
7415 | "file_magic "*) | |
7416 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7417 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7418 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7419 | $EGREP "$file_magic_regex" > /dev/null; then | |
7420 | : | |
7421 | else | |
7422 | cat <<_LT_EOF 1>&2 | |
7423 | ||
7424 | *** Warning: the command libtool uses to detect shared libraries, | |
7425 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7426 | *** The result is that libtool may fail to recognize shared libraries | |
7427 | *** as such. This will affect the creation of libtool libraries that | |
7428 | *** depend on shared libraries, but programs linked with such libtool | |
7429 | *** libraries will work regardless of this problem. Nevertheless, you | |
7430 | *** may want to report the problem to your system manager and/or to | |
7431 | *** bug-libtool@gnu.org | |
7432 | ||
7433 | _LT_EOF | |
7434 | fi ;; | |
7435 | esac | |
7436 | fi | |
7437 | break | |
7438 | fi | |
7439 | done | |
7440 | IFS="$lt_save_ifs" | |
7441 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7442 | ;; | |
7443 | esac | |
7444 | fi | |
7445 | ||
7446 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7447 | if test -n "$MAGIC_CMD"; then | |
7448 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7449 | $as_echo "$MAGIC_CMD" >&6; } | |
7450 | else | |
7451 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7452 | $as_echo "no" >&6; } | |
7453 | fi | |
7454 | ||
7455 | ||
7456 | else | |
7457 | MAGIC_CMD=: | |
7458 | fi | |
7459 | fi | |
7460 | ||
7461 | fi | |
7462 | ;; | |
7463 | esac | |
7464 | ||
7465 | # Use C for the default configuration in the libtool script | |
7466 | ||
7467 | lt_save_CC="$CC" | |
7468 | ac_ext=c | |
7469 | ac_cpp='$CPP $CPPFLAGS' | |
7470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7473 | ||
7474 | ||
7475 | # Source file extension for C test sources. | |
7476 | ac_ext=c | |
7477 | ||
7478 | # Object file extension for compiled C test sources. | |
7479 | objext=o | |
7480 | objext=$objext | |
7481 | ||
7482 | # Code to be used in simple compile tests | |
7483 | lt_simple_compile_test_code="int some_variable = 0;" | |
7484 | ||
7485 | # Code to be used in simple link tests | |
7486 | lt_simple_link_test_code='int main(){return(0);}' | |
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | # If no C compiler was specified, use CC. | |
7495 | LTCC=${LTCC-"$CC"} | |
7496 | ||
7497 | # If no C compiler flags were specified, use CFLAGS. | |
7498 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7499 | ||
7500 | # Allow CC to be a program name with arguments. | |
7501 | compiler=$CC | |
7502 | ||
7503 | # Save the default compiler, since it gets overwritten when the other | |
7504 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7505 | compiler_DEFAULT=$CC | |
7506 | ||
7507 | # save warnings/boilerplate of simple test code | |
7508 | ac_outfile=conftest.$ac_objext | |
7509 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7510 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7511 | _lt_compiler_boilerplate=`cat conftest.err` | |
7512 | $RM conftest* | |
7513 | ||
7514 | ac_outfile=conftest.$ac_objext | |
7515 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7516 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7517 | _lt_linker_boilerplate=`cat conftest.err` | |
7518 | $RM -r conftest* | |
7519 | ||
7520 | ||
7521 | if test -n "$compiler"; then | |
7522 | ||
7523 | lt_prog_compiler_no_builtin_flag= | |
7524 | ||
7525 | if test "$GCC" = yes; then | |
7526 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7527 | ||
7528 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7529 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7530 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7531 | $as_echo_n "(cached) " >&6 | |
7532 | else | |
7533 | lt_cv_prog_compiler_rtti_exceptions=no | |
7534 | ac_outfile=conftest.$ac_objext | |
7535 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7536 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7537 | # Insert the option either (1) after the last *FLAGS variable, or | |
7538 | # (2) before a word containing "conftest.", or (3) at the end. | |
7539 | # Note that $ac_compile itself does not contain backslashes and begins | |
7540 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7541 | # The option is referenced via a variable to avoid confusing sed. | |
7542 | lt_compile=`echo "$ac_compile" | $SED \ | |
7543 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7544 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7545 | -e 's:$: $lt_compiler_flag:'` | |
7546 | (eval echo "\"\$as_me:7546: $lt_compile\"" >&5) | |
7547 | (eval "$lt_compile" 2>conftest.err) | |
7548 | ac_status=$? | |
7549 | cat conftest.err >&5 | |
7550 | echo "$as_me:7550: \$? = $ac_status" >&5 | |
7551 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7552 | # The compiler can only warn and ignore the option if not recognized | |
7553 | # So say no if there are warnings other than the usual output. | |
7554 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7555 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7556 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7557 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7558 | fi | |
7559 | fi | |
7560 | $RM conftest* | |
7561 | ||
7562 | fi | |
7563 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7564 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7565 | ||
7566 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7567 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7568 | else | |
7569 | : | |
7570 | fi | |
7571 | ||
7572 | fi | |
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | lt_prog_compiler_wl= | |
7580 | lt_prog_compiler_pic= | |
7581 | lt_prog_compiler_static= | |
7582 | ||
7583 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7584 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7585 | ||
7586 | if test "$GCC" = yes; then | |
7587 | lt_prog_compiler_wl='-Wl,' | |
7588 | lt_prog_compiler_static='-static' | |
7589 | ||
7590 | case $host_os in | |
7591 | aix*) | |
7592 | # All AIX code is PIC. | |
7593 | if test "$host_cpu" = ia64; then | |
7594 | # AIX 5 now supports IA64 processor | |
7595 | lt_prog_compiler_static='-Bstatic' | |
7596 | fi | |
7597 | ;; | |
7598 | ||
7599 | amigaos*) | |
7600 | case $host_cpu in | |
7601 | powerpc) | |
7602 | # see comment about AmigaOS4 .so support | |
7603 | lt_prog_compiler_pic='-fPIC' | |
7604 | ;; | |
7605 | m68k) | |
7606 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7607 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7608 | # like `-m68040'. | |
7609 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7610 | ;; | |
7611 | esac | |
7612 | ;; | |
7613 | ||
7614 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7615 | # PIC is the default for these OSes. | |
7616 | ;; | |
7617 | ||
7618 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7619 | # This hack is so that the source file can tell whether it is being | |
7620 | # built for inclusion in a dll (and should export symbols for example). | |
7621 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7622 | # (--disable-auto-import) libraries | |
7623 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7624 | ;; | |
7625 | ||
7626 | darwin* | rhapsody*) | |
7627 | # PIC is the default on this platform | |
7628 | # Common symbols not allowed in MH_DYLIB files | |
7629 | lt_prog_compiler_pic='-fno-common' | |
7630 | ;; | |
7631 | ||
7632 | hpux*) | |
7633 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7634 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7635 | # sets the default TLS model and affects inlining. | |
7636 | case $host_cpu in | |
7637 | hppa*64*) | |
7638 | # +Z the default | |
7639 | ;; | |
7640 | *) | |
7641 | lt_prog_compiler_pic='-fPIC' | |
7642 | ;; | |
7643 | esac | |
7644 | ;; | |
7645 | ||
7646 | interix[3-9]*) | |
7647 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7648 | # Instead, we relocate shared libraries at runtime. | |
7649 | ;; | |
7650 | ||
7651 | msdosdjgpp*) | |
7652 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7653 | # on systems that don't support them. | |
7654 | lt_prog_compiler_can_build_shared=no | |
7655 | enable_shared=no | |
7656 | ;; | |
7657 | ||
7658 | *nto* | *qnx*) | |
7659 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7660 | # it will coredump. | |
7661 | lt_prog_compiler_pic='-fPIC -shared' | |
7662 | ;; | |
7663 | ||
7664 | sysv4*MP*) | |
7665 | if test -d /usr/nec; then | |
7666 | lt_prog_compiler_pic=-Kconform_pic | |
7667 | fi | |
7668 | ;; | |
7669 | ||
7670 | *) | |
7671 | lt_prog_compiler_pic='-fPIC' | |
7672 | ;; | |
7673 | esac | |
7674 | else | |
7675 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7676 | case $host_os in | |
7677 | aix*) | |
7678 | lt_prog_compiler_wl='-Wl,' | |
7679 | if test "$host_cpu" = ia64; then | |
7680 | # AIX 5 now supports IA64 processor | |
7681 | lt_prog_compiler_static='-Bstatic' | |
7682 | else | |
7683 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7684 | fi | |
7685 | ;; | |
7686 | ||
7687 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7688 | # This hack is so that the source file can tell whether it is being | |
7689 | # built for inclusion in a dll (and should export symbols for example). | |
7690 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7691 | ;; | |
7692 | ||
7693 | hpux9* | hpux10* | hpux11*) | |
7694 | lt_prog_compiler_wl='-Wl,' | |
7695 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7696 | # not for PA HP-UX. | |
7697 | case $host_cpu in | |
7698 | hppa*64*|ia64*) | |
7699 | # +Z the default | |
7700 | ;; | |
7701 | *) | |
7702 | lt_prog_compiler_pic='+Z' | |
7703 | ;; | |
7704 | esac | |
7705 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7706 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7707 | ;; | |
7708 | ||
7709 | irix5* | irix6* | nonstopux*) | |
7710 | lt_prog_compiler_wl='-Wl,' | |
7711 | # PIC (with -KPIC) is the default. | |
7712 | lt_prog_compiler_static='-non_shared' | |
7713 | ;; | |
7714 | ||
7715 | linux* | k*bsd*-gnu) | |
7716 | case $cc_basename in | |
7717 | # old Intel for x86_64 which still supported -KPIC. | |
7718 | ecc*) | |
7719 | lt_prog_compiler_wl='-Wl,' | |
7720 | lt_prog_compiler_pic='-KPIC' | |
7721 | lt_prog_compiler_static='-static' | |
7722 | ;; | |
7723 | # icc used to be incompatible with GCC. | |
7724 | # ICC 10 doesn't accept -KPIC any more. | |
7725 | icc* | ifort*) | |
7726 | lt_prog_compiler_wl='-Wl,' | |
7727 | lt_prog_compiler_pic='-fPIC' | |
7728 | lt_prog_compiler_static='-static' | |
7729 | ;; | |
7730 | # Lahey Fortran 8.1. | |
7731 | lf95*) | |
7732 | lt_prog_compiler_wl='-Wl,' | |
7733 | lt_prog_compiler_pic='--shared' | |
7734 | lt_prog_compiler_static='--static' | |
7735 | ;; | |
7736 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7737 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7738 | # which looks to be a dead project) | |
7739 | lt_prog_compiler_wl='-Wl,' | |
7740 | lt_prog_compiler_pic='-fpic' | |
7741 | lt_prog_compiler_static='-Bstatic' | |
7742 | ;; | |
7743 | ccc*) | |
7744 | lt_prog_compiler_wl='-Wl,' | |
7745 | # All Alpha code is PIC. | |
7746 | lt_prog_compiler_static='-non_shared' | |
7747 | ;; | |
7748 | xl*) | |
7749 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7750 | lt_prog_compiler_wl='-Wl,' | |
7751 | lt_prog_compiler_pic='-qpic' | |
7752 | lt_prog_compiler_static='-qstaticlink' | |
7753 | ;; | |
7754 | *) | |
7755 | case `$CC -V 2>&1 | sed 5q` in | |
7756 | *Sun\ C*) | |
7757 | # Sun C 5.9 | |
7758 | lt_prog_compiler_pic='-KPIC' | |
7759 | lt_prog_compiler_static='-Bstatic' | |
7760 | lt_prog_compiler_wl='-Wl,' | |
7761 | ;; | |
7762 | *Sun\ F*) | |
7763 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7764 | lt_prog_compiler_pic='-KPIC' | |
7765 | lt_prog_compiler_static='-Bstatic' | |
7766 | lt_prog_compiler_wl='' | |
7767 | ;; | |
7768 | esac | |
7769 | ;; | |
7770 | esac | |
7771 | ;; | |
7772 | ||
7773 | newsos6) | |
7774 | lt_prog_compiler_pic='-KPIC' | |
7775 | lt_prog_compiler_static='-Bstatic' | |
7776 | ;; | |
7777 | ||
7778 | *nto* | *qnx*) | |
7779 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7780 | # it will coredump. | |
7781 | lt_prog_compiler_pic='-fPIC -shared' | |
7782 | ;; | |
7783 | ||
7784 | osf3* | osf4* | osf5*) | |
7785 | lt_prog_compiler_wl='-Wl,' | |
7786 | # All OSF/1 code is PIC. | |
7787 | lt_prog_compiler_static='-non_shared' | |
7788 | ;; | |
7789 | ||
7790 | rdos*) | |
7791 | lt_prog_compiler_static='-non_shared' | |
7792 | ;; | |
7793 | ||
7794 | solaris*) | |
7795 | lt_prog_compiler_pic='-KPIC' | |
7796 | lt_prog_compiler_static='-Bstatic' | |
7797 | case $cc_basename in | |
7798 | f77* | f90* | f95*) | |
7799 | lt_prog_compiler_wl='-Qoption ld ';; | |
7800 | *) | |
7801 | lt_prog_compiler_wl='-Wl,';; | |
7802 | esac | |
7803 | ;; | |
7804 | ||
7805 | sunos4*) | |
7806 | lt_prog_compiler_wl='-Qoption ld ' | |
7807 | lt_prog_compiler_pic='-PIC' | |
7808 | lt_prog_compiler_static='-Bstatic' | |
7809 | ;; | |
7810 | ||
7811 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7812 | lt_prog_compiler_wl='-Wl,' | |
7813 | lt_prog_compiler_pic='-KPIC' | |
7814 | lt_prog_compiler_static='-Bstatic' | |
7815 | ;; | |
7816 | ||
7817 | sysv4*MP*) | |
7818 | if test -d /usr/nec ;then | |
7819 | lt_prog_compiler_pic='-Kconform_pic' | |
7820 | lt_prog_compiler_static='-Bstatic' | |
7821 | fi | |
7822 | ;; | |
7823 | ||
7824 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7825 | lt_prog_compiler_wl='-Wl,' | |
7826 | lt_prog_compiler_pic='-KPIC' | |
7827 | lt_prog_compiler_static='-Bstatic' | |
7828 | ;; | |
7829 | ||
7830 | unicos*) | |
7831 | lt_prog_compiler_wl='-Wl,' | |
7832 | lt_prog_compiler_can_build_shared=no | |
7833 | ;; | |
7834 | ||
7835 | uts4*) | |
7836 | lt_prog_compiler_pic='-pic' | |
7837 | lt_prog_compiler_static='-Bstatic' | |
7838 | ;; | |
7839 | ||
7840 | *) | |
7841 | lt_prog_compiler_can_build_shared=no | |
7842 | ;; | |
7843 | esac | |
7844 | fi | |
7845 | ||
7846 | case $host_os in | |
7847 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7848 | *djgpp*) | |
7849 | lt_prog_compiler_pic= | |
7850 | ;; | |
7851 | *) | |
7852 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7853 | ;; | |
7854 | esac | |
7855 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7856 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7857 | ||
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | # | |
7864 | # Check to make sure the PIC flag actually works. | |
7865 | # | |
7866 | if test -n "$lt_prog_compiler_pic"; then | |
7867 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7868 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7869 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
7870 | $as_echo_n "(cached) " >&6 | |
7871 | else | |
7872 | lt_cv_prog_compiler_pic_works=no | |
7873 | ac_outfile=conftest.$ac_objext | |
7874 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7875 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7876 | # Insert the option either (1) after the last *FLAGS variable, or | |
7877 | # (2) before a word containing "conftest.", or (3) at the end. | |
7878 | # Note that $ac_compile itself does not contain backslashes and begins | |
7879 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7880 | # The option is referenced via a variable to avoid confusing sed. | |
7881 | lt_compile=`echo "$ac_compile" | $SED \ | |
7882 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7883 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7884 | -e 's:$: $lt_compiler_flag:'` | |
7885 | (eval echo "\"\$as_me:7885: $lt_compile\"" >&5) | |
7886 | (eval "$lt_compile" 2>conftest.err) | |
7887 | ac_status=$? | |
7888 | cat conftest.err >&5 | |
7889 | echo "$as_me:7889: \$? = $ac_status" >&5 | |
7890 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7891 | # The compiler can only warn and ignore the option if not recognized | |
7892 | # So say no if there are warnings other than the usual output. | |
7893 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7894 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7895 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7896 | lt_cv_prog_compiler_pic_works=yes | |
7897 | fi | |
7898 | fi | |
7899 | $RM conftest* | |
7900 | ||
7901 | fi | |
7902 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7903 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7904 | ||
7905 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7906 | case $lt_prog_compiler_pic in | |
7907 | "" | " "*) ;; | |
7908 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7909 | esac | |
7910 | else | |
7911 | lt_prog_compiler_pic= | |
7912 | lt_prog_compiler_can_build_shared=no | |
7913 | fi | |
7914 | ||
7915 | fi | |
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | ||
7921 | ||
7922 | # | |
7923 | # Check to make sure the static flag actually works. | |
7924 | # | |
7925 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7926 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7927 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7928 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
7929 | $as_echo_n "(cached) " >&6 | |
7930 | else | |
7931 | lt_cv_prog_compiler_static_works=no | |
7932 | save_LDFLAGS="$LDFLAGS" | |
7933 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7934 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7935 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7936 | # The linker can only warn and ignore the option if not recognized | |
7937 | # So say no if there are warnings | |
7938 | if test -s conftest.err; then | |
7939 | # Append any errors to the config.log. | |
7940 | cat conftest.err 1>&5 | |
7941 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7942 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7943 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7944 | lt_cv_prog_compiler_static_works=yes | |
7945 | fi | |
7946 | else | |
7947 | lt_cv_prog_compiler_static_works=yes | |
7948 | fi | |
7949 | fi | |
7950 | $RM -r conftest* | |
7951 | LDFLAGS="$save_LDFLAGS" | |
7952 | ||
7953 | fi | |
7954 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
7955 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7956 | ||
7957 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7958 | : | |
7959 | else | |
7960 | lt_prog_compiler_static= | |
7961 | fi | |
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7970 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7971 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7972 | $as_echo_n "(cached) " >&6 | |
7973 | else | |
7974 | lt_cv_prog_compiler_c_o=no | |
7975 | $RM -r conftest 2>/dev/null | |
7976 | mkdir conftest | |
7977 | cd conftest | |
7978 | mkdir out | |
7979 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7980 | ||
7981 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7982 | # Insert the option either (1) after the last *FLAGS variable, or | |
7983 | # (2) before a word containing "conftest.", or (3) at the end. | |
7984 | # Note that $ac_compile itself does not contain backslashes and begins | |
7985 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7986 | lt_compile=`echo "$ac_compile" | $SED \ | |
7987 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7988 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7989 | -e 's:$: $lt_compiler_flag:'` | |
7990 | (eval echo "\"\$as_me:7990: $lt_compile\"" >&5) | |
7991 | (eval "$lt_compile" 2>out/conftest.err) | |
7992 | ac_status=$? | |
7993 | cat out/conftest.err >&5 | |
7994 | echo "$as_me:7994: \$? = $ac_status" >&5 | |
7995 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7996 | then | |
7997 | # The compiler can only warn and ignore the option if not recognized | |
7998 | # So say no if there are warnings | |
7999 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8000 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8001 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8002 | lt_cv_prog_compiler_c_o=yes | |
8003 | fi | |
8004 | fi | |
8005 | chmod u+w . 2>&5 | |
8006 | $RM conftest* | |
8007 | # SGI C++ compiler will create directory out/ii_files/ for | |
8008 | # template instantiation | |
8009 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8010 | $RM out/* && rmdir out | |
8011 | cd .. | |
8012 | $RM -r conftest | |
8013 | $RM conftest* | |
8014 | ||
8015 | fi | |
8016 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8017 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8025 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8026 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8027 | $as_echo_n "(cached) " >&6 | |
8028 | else | |
8029 | lt_cv_prog_compiler_c_o=no | |
8030 | $RM -r conftest 2>/dev/null | |
8031 | mkdir conftest | |
8032 | cd conftest | |
8033 | mkdir out | |
8034 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8035 | ||
8036 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8037 | # Insert the option either (1) after the last *FLAGS variable, or | |
8038 | # (2) before a word containing "conftest.", or (3) at the end. | |
8039 | # Note that $ac_compile itself does not contain backslashes and begins | |
8040 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8041 | lt_compile=`echo "$ac_compile" | $SED \ | |
8042 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8043 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8044 | -e 's:$: $lt_compiler_flag:'` | |
8045 | (eval echo "\"\$as_me:8045: $lt_compile\"" >&5) | |
8046 | (eval "$lt_compile" 2>out/conftest.err) | |
8047 | ac_status=$? | |
8048 | cat out/conftest.err >&5 | |
8049 | echo "$as_me:8049: \$? = $ac_status" >&5 | |
8050 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8051 | then | |
8052 | # The compiler can only warn and ignore the option if not recognized | |
8053 | # So say no if there are warnings | |
8054 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8055 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8056 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8057 | lt_cv_prog_compiler_c_o=yes | |
8058 | fi | |
8059 | fi | |
8060 | chmod u+w . 2>&5 | |
8061 | $RM conftest* | |
8062 | # SGI C++ compiler will create directory out/ii_files/ for | |
8063 | # template instantiation | |
8064 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8065 | $RM out/* && rmdir out | |
8066 | cd .. | |
8067 | $RM -r conftest | |
8068 | $RM conftest* | |
8069 | ||
8070 | fi | |
8071 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8072 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | hard_links="nottested" | |
8078 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8079 | # do not overwrite the value of need_locks provided by the user | |
8080 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8081 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8082 | hard_links=yes | |
8083 | $RM conftest* | |
8084 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8085 | touch conftest.a | |
8086 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8087 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8088 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8089 | $as_echo "$hard_links" >&6; } | |
8090 | if test "$hard_links" = no; then | |
8091 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8092 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8093 | need_locks=warn | |
8094 | fi | |
8095 | else | |
8096 | need_locks=no | |
8097 | fi | |
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8105 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8106 | ||
8107 | runpath_var= | |
8108 | allow_undefined_flag= | |
8109 | always_export_symbols=no | |
8110 | archive_cmds= | |
8111 | archive_expsym_cmds= | |
8112 | compiler_needs_object=no | |
8113 | enable_shared_with_static_runtimes=no | |
8114 | export_dynamic_flag_spec= | |
8115 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8116 | hardcode_automatic=no | |
8117 | hardcode_direct=no | |
8118 | hardcode_direct_absolute=no | |
8119 | hardcode_libdir_flag_spec= | |
8120 | hardcode_libdir_flag_spec_ld= | |
8121 | hardcode_libdir_separator= | |
8122 | hardcode_minus_L=no | |
8123 | hardcode_shlibpath_var=unsupported | |
8124 | inherit_rpath=no | |
8125 | link_all_deplibs=unknown | |
8126 | module_cmds= | |
8127 | module_expsym_cmds= | |
8128 | old_archive_from_new_cmds= | |
8129 | old_archive_from_expsyms_cmds= | |
8130 | thread_safe_flag_spec= | |
8131 | whole_archive_flag_spec= | |
8132 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8133 | # included in the symbol list | |
8134 | include_expsyms= | |
8135 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8136 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8137 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8138 | # as well as any symbol that contains `d'. | |
8139 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8140 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8141 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8142 | # the symbol is explicitly referenced. Since portable code cannot | |
8143 | # rely on this symbol name, it's probably fine to never include it in | |
8144 | # preloaded symbol tables. | |
8145 | # Exclude shared library initialization/finalization symbols. | |
8146 | extract_expsyms_cmds= | |
8147 | ||
8148 | case $host_os in | |
8149 | cygwin* | mingw* | pw32* | cegcc*) | |
8150 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8151 | # When not using gcc, we currently assume that we are using | |
8152 | # Microsoft Visual C++. | |
8153 | if test "$GCC" != yes; then | |
8154 | with_gnu_ld=no | |
8155 | fi | |
8156 | ;; | |
8157 | interix*) | |
8158 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8159 | with_gnu_ld=yes | |
8160 | ;; | |
8161 | openbsd*) | |
8162 | with_gnu_ld=no | |
8163 | ;; | |
8164 | esac | |
8165 | ||
8166 | ld_shlibs=yes | |
8167 | if test "$with_gnu_ld" = yes; then | |
8168 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8169 | wlarc='${wl}' | |
8170 | ||
8171 | # Set some defaults for GNU ld with shared library support. These | |
8172 | # are reset later if shared libraries are not supported. Putting them | |
8173 | # here allows them to be overridden if necessary. | |
8174 | runpath_var=LD_RUN_PATH | |
8175 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8176 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8177 | # ancient GNU ld didn't support --whole-archive et. al. | |
8178 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8179 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8180 | else | |
8181 | whole_archive_flag_spec= | |
8182 | fi | |
8183 | supports_anon_versioning=no | |
8184 | case `$LD -v 2>&1` in | |
8185 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8186 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8187 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8188 | *\ 2.11.*) ;; # other 2.11 versions | |
8189 | *) supports_anon_versioning=yes ;; | |
8190 | esac | |
8191 | ||
8192 | # See if GNU ld supports shared libraries. | |
8193 | case $host_os in | |
8194 | aix[3-9]*) | |
8195 | # On AIX/PPC, the GNU linker is very broken | |
8196 | if test "$host_cpu" != ia64; then | |
8197 | ld_shlibs=no | |
8198 | cat <<_LT_EOF 1>&2 | |
8199 | ||
8200 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8201 | *** to be unable to reliably create shared libraries on AIX. | |
8202 | *** Therefore, libtool is disabling shared libraries support. If you | |
8203 | *** really care for shared libraries, you may want to modify your PATH | |
8204 | *** so that a non-GNU linker is found, and then restart. | |
8205 | ||
8206 | _LT_EOF | |
8207 | fi | |
8208 | ;; | |
8209 | ||
8210 | amigaos*) | |
8211 | case $host_cpu in | |
8212 | powerpc) | |
8213 | # see comment about AmigaOS4 .so support | |
8214 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8215 | archive_expsym_cmds='' | |
8216 | ;; | |
8217 | m68k) | |
8218 | 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)' | |
8219 | hardcode_libdir_flag_spec='-L$libdir' | |
8220 | hardcode_minus_L=yes | |
8221 | ;; | |
8222 | esac | |
8223 | ;; | |
8224 | ||
8225 | beos*) | |
8226 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8227 | allow_undefined_flag=unsupported | |
8228 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8229 | # support --undefined. This deserves some investigation. FIXME | |
8230 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8231 | else | |
8232 | ld_shlibs=no | |
8233 | fi | |
8234 | ;; | |
8235 | ||
8236 | cygwin* | mingw* | pw32* | cegcc*) | |
8237 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8238 | # as there is no search path for DLLs. | |
8239 | hardcode_libdir_flag_spec='-L$libdir' | |
8240 | allow_undefined_flag=unsupported | |
8241 | always_export_symbols=no | |
8242 | enable_shared_with_static_runtimes=yes | |
8243 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8244 | ||
8245 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8246 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8247 | # If the export-symbols file already is a .def file (1st line | |
8248 | # is EXPORTS), use it as is; otherwise, prepend... | |
8249 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8250 | cp $export_symbols $output_objdir/$soname.def; | |
8251 | else | |
8252 | echo EXPORTS > $output_objdir/$soname.def; | |
8253 | cat $export_symbols >> $output_objdir/$soname.def; | |
8254 | fi~ | |
8255 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8256 | else | |
8257 | ld_shlibs=no | |
8258 | fi | |
8259 | ;; | |
8260 | ||
8261 | interix[3-9]*) | |
8262 | hardcode_direct=no | |
8263 | hardcode_shlibpath_var=no | |
8264 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8265 | export_dynamic_flag_spec='${wl}-E' | |
8266 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8267 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8268 | # default) and relocated if they conflict, which is a slow very memory | |
8269 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8270 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8271 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8272 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8273 | 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' | |
8274 | ;; | |
8275 | ||
8276 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
8277 | tmp_diet=no | |
8278 | if test "$host_os" = linux-dietlibc; then | |
8279 | case $cc_basename in | |
8280 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8281 | esac | |
8282 | fi | |
8283 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8284 | && test "$tmp_diet" = no | |
8285 | then | |
8286 | tmp_addflag= | |
8287 | tmp_sharedflag='-shared' | |
8288 | case $cc_basename,$host_cpu in | |
8289 | pgcc*) # Portland Group C compiler | |
8290 | 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' | |
8291 | tmp_addflag=' $pic_flag' | |
8292 | ;; | |
8293 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8294 | 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' | |
8295 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8296 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8297 | tmp_addflag=' -i_dynamic' ;; | |
8298 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8299 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8300 | ifc* | ifort*) # Intel Fortran compiler | |
8301 | tmp_addflag=' -nofor_main' ;; | |
8302 | lf95*) # Lahey Fortran 8.1 | |
8303 | whole_archive_flag_spec= | |
8304 | tmp_sharedflag='--shared' ;; | |
8305 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8306 | tmp_sharedflag='-qmkshrobj' | |
8307 | tmp_addflag= ;; | |
8308 | esac | |
8309 | case `$CC -V 2>&1 | sed 5q` in | |
8310 | *Sun\ C*) # Sun C 5.9 | |
8311 | 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' | |
8312 | compiler_needs_object=yes | |
8313 | tmp_sharedflag='-G' ;; | |
8314 | *Sun\ F*) # Sun Fortran 8.3 | |
8315 | tmp_sharedflag='-G' ;; | |
8316 | esac | |
8317 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8318 | ||
8319 | if test "x$supports_anon_versioning" = xyes; then | |
8320 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8321 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8322 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8323 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8324 | fi | |
8325 | ||
8326 | case $cc_basename in | |
8327 | xlf*) | |
8328 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8329 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8330 | hardcode_libdir_flag_spec= | |
8331 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8332 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8333 | if test "x$supports_anon_versioning" = xyes; then | |
8334 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8335 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8336 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8337 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8338 | fi | |
8339 | ;; | |
8340 | esac | |
8341 | else | |
8342 | ld_shlibs=no | |
8343 | fi | |
8344 | ;; | |
8345 | ||
8346 | netbsd* | netbsdelf*-gnu) | |
8347 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8348 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8349 | wlarc= | |
8350 | else | |
8351 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8352 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8353 | fi | |
8354 | ;; | |
8355 | ||
8356 | solaris*) | |
8357 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8358 | ld_shlibs=no | |
8359 | cat <<_LT_EOF 1>&2 | |
8360 | ||
8361 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8362 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8363 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8364 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8365 | *** your PATH or compiler configuration so that the native linker is | |
8366 | *** used, and then restart. | |
8367 | ||
8368 | _LT_EOF | |
8369 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8370 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8371 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8372 | else | |
8373 | ld_shlibs=no | |
8374 | fi | |
8375 | ;; | |
8376 | ||
8377 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8378 | case `$LD -v 2>&1` in | |
8379 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8380 | ld_shlibs=no | |
8381 | cat <<_LT_EOF 1>&2 | |
8382 | ||
8383 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8384 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8385 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8386 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8387 | *** your PATH or compiler configuration so that the native linker is | |
8388 | *** used, and then restart. | |
8389 | ||
8390 | _LT_EOF | |
8391 | ;; | |
8392 | *) | |
8393 | # For security reasons, it is highly recommended that you always | |
8394 | # use absolute paths for naming shared libraries, and exclude the | |
8395 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8396 | # requires that you compile everything twice, which is a pain. | |
8397 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8398 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8399 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8400 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8401 | else | |
8402 | ld_shlibs=no | |
8403 | fi | |
8404 | ;; | |
8405 | esac | |
8406 | ;; | |
8407 | ||
8408 | sunos4*) | |
8409 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8410 | wlarc= | |
8411 | hardcode_direct=yes | |
8412 | hardcode_shlibpath_var=no | |
8413 | ;; | |
8414 | ||
8415 | *) | |
8416 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8417 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8418 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8419 | else | |
8420 | ld_shlibs=no | |
8421 | fi | |
8422 | ;; | |
8423 | esac | |
8424 | ||
8425 | if test "$ld_shlibs" = no; then | |
8426 | runpath_var= | |
8427 | hardcode_libdir_flag_spec= | |
8428 | export_dynamic_flag_spec= | |
8429 | whole_archive_flag_spec= | |
8430 | fi | |
8431 | else | |
8432 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8433 | case $host_os in | |
8434 | aix3*) | |
8435 | allow_undefined_flag=unsupported | |
8436 | always_export_symbols=yes | |
8437 | 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' | |
8438 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8439 | # are no directories specified by -L. | |
8440 | hardcode_minus_L=yes | |
8441 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8442 | # Neither direct hardcoding nor static linking is supported with a | |
8443 | # broken collect2. | |
8444 | hardcode_direct=unsupported | |
8445 | fi | |
8446 | ;; | |
8447 | ||
8448 | aix[4-9]*) | |
8449 | if test "$host_cpu" = ia64; then | |
8450 | # On IA64, the linker does run time linking by default, so we don't | |
8451 | # have to do anything special. | |
8452 | aix_use_runtimelinking=no | |
8453 | exp_sym_flag='-Bexport' | |
8454 | no_entry_flag="" | |
8455 | else | |
8456 | # If we're using GNU nm, then we don't want the "-C" option. | |
8457 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8458 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8459 | 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' | |
8460 | else | |
8461 | 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' | |
8462 | fi | |
8463 | aix_use_runtimelinking=no | |
8464 | ||
8465 | # Test if we are trying to use run time linking or normal | |
8466 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8467 | # need to do runtime linking. | |
8468 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8469 | for ld_flag in $LDFLAGS; do | |
8470 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8471 | aix_use_runtimelinking=yes | |
8472 | break | |
8473 | fi | |
8474 | done | |
8475 | ;; | |
8476 | esac | |
8477 | ||
8478 | exp_sym_flag='-bexport' | |
8479 | no_entry_flag='-bnoentry' | |
8480 | fi | |
8481 | ||
8482 | # When large executables or shared objects are built, AIX ld can | |
8483 | # have problems creating the table of contents. If linking a library | |
8484 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8485 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8486 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8487 | ||
8488 | archive_cmds='' | |
8489 | hardcode_direct=yes | |
8490 | hardcode_direct_absolute=yes | |
8491 | hardcode_libdir_separator=':' | |
8492 | link_all_deplibs=yes | |
8493 | file_list_spec='${wl}-f,' | |
8494 | ||
8495 | if test "$GCC" = yes; then | |
8496 | case $host_os in aix4.[012]|aix4.[012].*) | |
8497 | # We only want to do this on AIX 4.2 and lower, the check | |
8498 | # below for broken collect2 doesn't work under 4.3+ | |
8499 | collect2name=`${CC} -print-prog-name=collect2` | |
8500 | if test -f "$collect2name" && | |
8501 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8502 | then | |
8503 | # We have reworked collect2 | |
8504 | : | |
8505 | else | |
8506 | # We have old collect2 | |
8507 | hardcode_direct=unsupported | |
8508 | # It fails to find uninstalled libraries when the uninstalled | |
8509 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8510 | # to unsupported forces relinking | |
8511 | hardcode_minus_L=yes | |
8512 | hardcode_libdir_flag_spec='-L$libdir' | |
8513 | hardcode_libdir_separator= | |
8514 | fi | |
8515 | ;; | |
8516 | esac | |
8517 | shared_flag='-shared' | |
8518 | if test "$aix_use_runtimelinking" = yes; then | |
8519 | shared_flag="$shared_flag "'${wl}-G' | |
8520 | fi | |
8521 | link_all_deplibs=no | |
8522 | else | |
8523 | # not using gcc | |
8524 | if test "$host_cpu" = ia64; then | |
8525 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8526 | # chokes on -Wl,-G. The following line is correct: | |
8527 | shared_flag='-G' | |
8528 | else | |
8529 | if test "$aix_use_runtimelinking" = yes; then | |
8530 | shared_flag='${wl}-G' | |
8531 | else | |
8532 | shared_flag='${wl}-bM:SRE' | |
8533 | fi | |
8534 | fi | |
8535 | fi | |
8536 | ||
8537 | export_dynamic_flag_spec='${wl}-bexpall' | |
8538 | # It seems that -bexpall does not export symbols beginning with | |
8539 | # underscore (_), so it is better to generate a list of symbols to export. | |
8540 | always_export_symbols=yes | |
8541 | if test "$aix_use_runtimelinking" = yes; then | |
8542 | # Warning - without using the other runtime loading flags (-brtl), | |
8543 | # -berok will link without error, but may produce a broken library. | |
8544 | allow_undefined_flag='-berok' | |
8545 | # Determine the default libpath from the value encoded in an | |
8546 | # empty executable. | |
8547 | cat >conftest.$ac_ext <<_ACEOF | |
8548 | /* confdefs.h. */ | |
8549 | _ACEOF | |
8550 | cat confdefs.h >>conftest.$ac_ext | |
8551 | cat >>conftest.$ac_ext <<_ACEOF | |
8552 | /* end confdefs.h. */ | |
8553 | ||
8554 | int | |
8555 | main () | |
8556 | { | |
8557 | ||
8558 | ; | |
8559 | return 0; | |
8560 | } | |
8561 | _ACEOF | |
8562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8563 | if { (ac_try="$ac_link" | |
8564 | case "(($ac_try" in | |
8565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8566 | *) ac_try_echo=$ac_try;; | |
8567 | esac | |
8568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8569 | $as_echo "$ac_try_echo") >&5 | |
8570 | (eval "$ac_link") 2>conftest.er1 | |
8571 | ac_status=$? | |
8572 | grep -v '^ *+' conftest.er1 >conftest.err | |
8573 | rm -f conftest.er1 | |
8574 | cat conftest.err >&5 | |
8575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8576 | (exit $ac_status); } && { | |
8577 | test -z "$ac_c_werror_flag" || | |
8578 | test ! -s conftest.err | |
8579 | } && test -s conftest$ac_exeext && { | |
8580 | test "$cross_compiling" = yes || | |
8581 | $as_test_x conftest$ac_exeext | |
8582 | }; then | |
8583 | ||
8584 | lt_aix_libpath_sed=' | |
8585 | /Import File Strings/,/^$/ { | |
8586 | /^0/ { | |
8587 | s/^0 *\(.*\)$/\1/ | |
8588 | p | |
8589 | } | |
8590 | }' | |
8591 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8592 | # Check for a 64-bit object if we didn't find anything. | |
8593 | if test -z "$aix_libpath"; then | |
8594 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8595 | fi | |
8596 | else | |
8597 | $as_echo "$as_me: failed program was:" >&5 | |
8598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8599 | ||
8600 | ||
8601 | fi | |
8602 | ||
8603 | rm -rf conftest.dSYM | |
8604 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8605 | conftest$ac_exeext conftest.$ac_ext | |
8606 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8607 | ||
8608 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8609 | 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" | |
8610 | else | |
8611 | if test "$host_cpu" = ia64; then | |
8612 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8613 | allow_undefined_flag="-z nodefs" | |
8614 | 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" | |
8615 | else | |
8616 | # Determine the default libpath from the value encoded in an | |
8617 | # empty executable. | |
8618 | cat >conftest.$ac_ext <<_ACEOF | |
8619 | /* confdefs.h. */ | |
8620 | _ACEOF | |
8621 | cat confdefs.h >>conftest.$ac_ext | |
8622 | cat >>conftest.$ac_ext <<_ACEOF | |
8623 | /* end confdefs.h. */ | |
8624 | ||
8625 | int | |
8626 | main () | |
8627 | { | |
8628 | ||
8629 | ; | |
8630 | return 0; | |
8631 | } | |
8632 | _ACEOF | |
8633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8634 | if { (ac_try="$ac_link" | |
8635 | case "(($ac_try" in | |
8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8637 | *) ac_try_echo=$ac_try;; | |
8638 | esac | |
8639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8640 | $as_echo "$ac_try_echo") >&5 | |
8641 | (eval "$ac_link") 2>conftest.er1 | |
8642 | ac_status=$? | |
8643 | grep -v '^ *+' conftest.er1 >conftest.err | |
8644 | rm -f conftest.er1 | |
8645 | cat conftest.err >&5 | |
8646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8647 | (exit $ac_status); } && { | |
8648 | test -z "$ac_c_werror_flag" || | |
8649 | test ! -s conftest.err | |
8650 | } && test -s conftest$ac_exeext && { | |
8651 | test "$cross_compiling" = yes || | |
8652 | $as_test_x conftest$ac_exeext | |
8653 | }; then | |
8654 | ||
8655 | lt_aix_libpath_sed=' | |
8656 | /Import File Strings/,/^$/ { | |
8657 | /^0/ { | |
8658 | s/^0 *\(.*\)$/\1/ | |
8659 | p | |
8660 | } | |
8661 | }' | |
8662 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8663 | # Check for a 64-bit object if we didn't find anything. | |
8664 | if test -z "$aix_libpath"; then | |
8665 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8666 | fi | |
8667 | else | |
8668 | $as_echo "$as_me: failed program was:" >&5 | |
8669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8670 | ||
8671 | ||
8672 | fi | |
8673 | ||
8674 | rm -rf conftest.dSYM | |
8675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8676 | conftest$ac_exeext conftest.$ac_ext | |
8677 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8678 | ||
8679 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8680 | # Warning - without using the other run time loading flags, | |
8681 | # -berok will link without error, but may produce a broken library. | |
8682 | no_undefined_flag=' ${wl}-bernotok' | |
8683 | allow_undefined_flag=' ${wl}-berok' | |
8684 | # Exported symbols can be pulled into shared objects from archives | |
8685 | whole_archive_flag_spec='$convenience' | |
8686 | archive_cmds_need_lc=yes | |
8687 | # This is similar to how AIX traditionally builds its shared libraries. | |
8688 | 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' | |
8689 | fi | |
8690 | fi | |
8691 | ;; | |
8692 | ||
8693 | amigaos*) | |
8694 | case $host_cpu in | |
8695 | powerpc) | |
8696 | # see comment about AmigaOS4 .so support | |
8697 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8698 | archive_expsym_cmds='' | |
8699 | ;; | |
8700 | m68k) | |
8701 | 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)' | |
8702 | hardcode_libdir_flag_spec='-L$libdir' | |
8703 | hardcode_minus_L=yes | |
8704 | ;; | |
8705 | esac | |
8706 | ;; | |
8707 | ||
8708 | bsdi[45]*) | |
8709 | export_dynamic_flag_spec=-rdynamic | |
8710 | ;; | |
8711 | ||
8712 | cygwin* | mingw* | pw32* | cegcc*) | |
8713 | # When not using gcc, we currently assume that we are using | |
8714 | # Microsoft Visual C++. | |
8715 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8716 | # no search path for DLLs. | |
8717 | hardcode_libdir_flag_spec=' ' | |
8718 | allow_undefined_flag=unsupported | |
8719 | # Tell ltmain to make .lib files, not .a files. | |
8720 | libext=lib | |
8721 | # Tell ltmain to make .dll files, not .so files. | |
8722 | shrext_cmds=".dll" | |
8723 | # FIXME: Setting linknames here is a bad hack. | |
8724 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8725 | # The linker will automatically build a .lib file if we build a DLL. | |
8726 | old_archive_from_new_cmds='true' | |
8727 | # FIXME: Should let the user specify the lib program. | |
8728 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8729 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8730 | enable_shared_with_static_runtimes=yes | |
8731 | ;; | |
8732 | ||
8733 | darwin* | rhapsody*) | |
8734 | ||
8735 | ||
8736 | archive_cmds_need_lc=no | |
8737 | hardcode_direct=no | |
8738 | hardcode_automatic=yes | |
8739 | hardcode_shlibpath_var=unsupported | |
8740 | whole_archive_flag_spec='' | |
8741 | link_all_deplibs=yes | |
8742 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8743 | case $cc_basename in | |
8744 | ifort*) _lt_dar_can_shared=yes ;; | |
8745 | *) _lt_dar_can_shared=$GCC ;; | |
8746 | esac | |
8747 | if test "$_lt_dar_can_shared" = "yes"; then | |
8748 | output_verbose_link_cmd=echo | |
8749 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8750 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8751 | 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}" | |
8752 | 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}" | |
8753 | ||
8754 | else | |
8755 | ld_shlibs=no | |
8756 | fi | |
8757 | ||
8758 | ;; | |
8759 | ||
8760 | dgux*) | |
8761 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8762 | hardcode_libdir_flag_spec='-L$libdir' | |
8763 | hardcode_shlibpath_var=no | |
8764 | ;; | |
8765 | ||
8766 | freebsd1*) | |
8767 | ld_shlibs=no | |
8768 | ;; | |
8769 | ||
8770 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8771 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8772 | # does not break anything, and helps significantly (at the cost of a little | |
8773 | # extra space). | |
8774 | freebsd2.2*) | |
8775 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8776 | hardcode_libdir_flag_spec='-R$libdir' | |
8777 | hardcode_direct=yes | |
8778 | hardcode_shlibpath_var=no | |
8779 | ;; | |
8780 | ||
8781 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8782 | freebsd2*) | |
8783 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8784 | hardcode_direct=yes | |
8785 | hardcode_minus_L=yes | |
8786 | hardcode_shlibpath_var=no | |
8787 | ;; | |
8788 | ||
8789 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8790 | freebsd* | dragonfly*) | |
8791 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8792 | hardcode_libdir_flag_spec='-R$libdir' | |
8793 | hardcode_direct=yes | |
8794 | hardcode_shlibpath_var=no | |
8795 | ;; | |
8796 | ||
8797 | hpux9*) | |
8798 | if test "$GCC" = yes; then | |
8799 | 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' | |
8800 | else | |
8801 | 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' | |
8802 | fi | |
8803 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8804 | hardcode_libdir_separator=: | |
8805 | hardcode_direct=yes | |
8806 | ||
8807 | # hardcode_minus_L: Not really in the search PATH, | |
8808 | # but as the default location of the library. | |
8809 | hardcode_minus_L=yes | |
8810 | export_dynamic_flag_spec='${wl}-E' | |
8811 | ;; | |
8812 | ||
8813 | hpux10*) | |
8814 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8815 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8816 | else | |
8817 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8818 | fi | |
8819 | if test "$with_gnu_ld" = no; then | |
8820 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8821 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8822 | hardcode_libdir_separator=: | |
8823 | hardcode_direct=yes | |
8824 | hardcode_direct_absolute=yes | |
8825 | export_dynamic_flag_spec='${wl}-E' | |
8826 | # hardcode_minus_L: Not really in the search PATH, | |
8827 | # but as the default location of the library. | |
8828 | hardcode_minus_L=yes | |
8829 | fi | |
8830 | ;; | |
8831 | ||
8832 | hpux11*) | |
8833 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8834 | case $host_cpu in | |
8835 | hppa*64*) | |
8836 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8837 | ;; | |
8838 | ia64*) | |
8839 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8840 | ;; | |
8841 | *) | |
8842 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8843 | ;; | |
8844 | esac | |
8845 | else | |
8846 | case $host_cpu in | |
8847 | hppa*64*) | |
8848 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8849 | ;; | |
8850 | ia64*) | |
8851 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8852 | ;; | |
8853 | *) | |
8854 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8855 | ;; | |
8856 | esac | |
8857 | fi | |
8858 | if test "$with_gnu_ld" = no; then | |
8859 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8860 | hardcode_libdir_separator=: | |
8861 | ||
8862 | case $host_cpu in | |
8863 | hppa*64*|ia64*) | |
8864 | hardcode_direct=no | |
8865 | hardcode_shlibpath_var=no | |
8866 | ;; | |
8867 | *) | |
8868 | hardcode_direct=yes | |
8869 | hardcode_direct_absolute=yes | |
8870 | export_dynamic_flag_spec='${wl}-E' | |
8871 | ||
8872 | # hardcode_minus_L: Not really in the search PATH, | |
8873 | # but as the default location of the library. | |
8874 | hardcode_minus_L=yes | |
8875 | ;; | |
8876 | esac | |
8877 | fi | |
8878 | ;; | |
8879 | ||
8880 | irix5* | irix6* | nonstopux*) | |
8881 | if test "$GCC" = yes; then | |
8882 | 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' | |
8883 | # Try to use the -exported_symbol ld option, if it does not | |
8884 | # work, assume that -exports_file does not work either and | |
8885 | # implicitly export all symbols. | |
8886 | save_LDFLAGS="$LDFLAGS" | |
8887 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8888 | cat >conftest.$ac_ext <<_ACEOF | |
8889 | int foo(void) {} | |
8890 | _ACEOF | |
8891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8892 | if { (ac_try="$ac_link" | |
8893 | case "(($ac_try" in | |
8894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8895 | *) ac_try_echo=$ac_try;; | |
8896 | esac | |
8897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8898 | $as_echo "$ac_try_echo") >&5 | |
8899 | (eval "$ac_link") 2>conftest.er1 | |
8900 | ac_status=$? | |
8901 | grep -v '^ *+' conftest.er1 >conftest.err | |
8902 | rm -f conftest.er1 | |
8903 | cat conftest.err >&5 | |
8904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8905 | (exit $ac_status); } && { | |
8906 | test -z "$ac_c_werror_flag" || | |
8907 | test ! -s conftest.err | |
8908 | } && test -s conftest$ac_exeext && { | |
8909 | test "$cross_compiling" = yes || | |
8910 | $as_test_x conftest$ac_exeext | |
8911 | }; then | |
8912 | 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' | |
8913 | ||
8914 | else | |
8915 | $as_echo "$as_me: failed program was:" >&5 | |
8916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8917 | ||
8918 | ||
8919 | fi | |
8920 | ||
8921 | rm -rf conftest.dSYM | |
8922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8923 | conftest$ac_exeext conftest.$ac_ext | |
8924 | LDFLAGS="$save_LDFLAGS" | |
8925 | else | |
8926 | 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' | |
8927 | 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' | |
8928 | fi | |
8929 | archive_cmds_need_lc='no' | |
8930 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8931 | hardcode_libdir_separator=: | |
8932 | inherit_rpath=yes | |
8933 | link_all_deplibs=yes | |
8934 | ;; | |
8935 | ||
8936 | netbsd* | netbsdelf*-gnu) | |
8937 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8938 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8939 | else | |
8940 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8941 | fi | |
8942 | hardcode_libdir_flag_spec='-R$libdir' | |
8943 | hardcode_direct=yes | |
8944 | hardcode_shlibpath_var=no | |
8945 | ;; | |
8946 | ||
8947 | newsos6) | |
8948 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8949 | hardcode_direct=yes | |
8950 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8951 | hardcode_libdir_separator=: | |
8952 | hardcode_shlibpath_var=no | |
8953 | ;; | |
8954 | ||
8955 | *nto* | *qnx*) | |
8956 | ;; | |
8957 | ||
8958 | openbsd*) | |
8959 | if test -f /usr/libexec/ld.so; then | |
8960 | hardcode_direct=yes | |
8961 | hardcode_shlibpath_var=no | |
8962 | hardcode_direct_absolute=yes | |
8963 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8964 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8965 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8966 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8967 | export_dynamic_flag_spec='${wl}-E' | |
8968 | else | |
8969 | case $host_os in | |
8970 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8971 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8972 | hardcode_libdir_flag_spec='-R$libdir' | |
8973 | ;; | |
8974 | *) | |
8975 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8976 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8977 | ;; | |
8978 | esac | |
8979 | fi | |
8980 | else | |
8981 | ld_shlibs=no | |
8982 | fi | |
8983 | ;; | |
8984 | ||
8985 | os2*) | |
8986 | hardcode_libdir_flag_spec='-L$libdir' | |
8987 | hardcode_minus_L=yes | |
8988 | allow_undefined_flag=unsupported | |
8989 | 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' | |
8990 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8991 | ;; | |
8992 | ||
8993 | osf3*) | |
8994 | if test "$GCC" = yes; then | |
8995 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8996 | 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' | |
8997 | else | |
8998 | allow_undefined_flag=' -expect_unresolved \*' | |
8999 | 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' | |
9000 | fi | |
9001 | archive_cmds_need_lc='no' | |
9002 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9003 | hardcode_libdir_separator=: | |
9004 | ;; | |
9005 | ||
9006 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9007 | if test "$GCC" = yes; then | |
9008 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9009 | 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' | |
9010 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9011 | else | |
9012 | allow_undefined_flag=' -expect_unresolved \*' | |
9013 | 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' | |
9014 | 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~ | |
9015 | $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' | |
9016 | ||
9017 | # Both c and cxx compiler support -rpath directly | |
9018 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9019 | fi | |
9020 | archive_cmds_need_lc='no' | |
9021 | hardcode_libdir_separator=: | |
9022 | ;; | |
9023 | ||
9024 | solaris*) | |
9025 | no_undefined_flag=' -z defs' | |
9026 | if test "$GCC" = yes; then | |
9027 | wlarc='${wl}' | |
9028 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9029 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9030 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9031 | else | |
9032 | case `$CC -V 2>&1` in | |
9033 | *"Compilers 5.0"*) | |
9034 | wlarc='' | |
9035 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9036 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9037 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9038 | ;; | |
9039 | *) | |
9040 | wlarc='${wl}' | |
9041 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9042 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9043 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9044 | ;; | |
9045 | esac | |
9046 | fi | |
9047 | hardcode_libdir_flag_spec='-R$libdir' | |
9048 | hardcode_shlibpath_var=no | |
9049 | case $host_os in | |
9050 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9051 | *) | |
9052 | # The compiler driver will combine and reorder linker options, | |
9053 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9054 | # but is careful enough not to reorder. | |
9055 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9056 | if test "$GCC" = yes; then | |
9057 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9058 | else | |
9059 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9060 | fi | |
9061 | ;; | |
9062 | esac | |
9063 | link_all_deplibs=yes | |
9064 | ;; | |
9065 | ||
9066 | sunos4*) | |
9067 | if test "x$host_vendor" = xsequent; then | |
9068 | # Use $CC to link under sequent, because it throws in some extra .o | |
9069 | # files that make .init and .fini sections work. | |
9070 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9071 | else | |
9072 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9073 | fi | |
9074 | hardcode_libdir_flag_spec='-L$libdir' | |
9075 | hardcode_direct=yes | |
9076 | hardcode_minus_L=yes | |
9077 | hardcode_shlibpath_var=no | |
9078 | ;; | |
9079 | ||
9080 | sysv4) | |
9081 | case $host_vendor in | |
9082 | sni) | |
9083 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9084 | hardcode_direct=yes # is this really true??? | |
9085 | ;; | |
9086 | siemens) | |
9087 | ## LD is ld it makes a PLAMLIB | |
9088 | ## CC just makes a GrossModule. | |
9089 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9090 | reload_cmds='$CC -r -o $output$reload_objs' | |
9091 | hardcode_direct=no | |
9092 | ;; | |
9093 | motorola) | |
9094 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9095 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9096 | ;; | |
9097 | esac | |
9098 | runpath_var='LD_RUN_PATH' | |
9099 | hardcode_shlibpath_var=no | |
9100 | ;; | |
9101 | ||
9102 | sysv4.3*) | |
9103 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9104 | hardcode_shlibpath_var=no | |
9105 | export_dynamic_flag_spec='-Bexport' | |
9106 | ;; | |
9107 | ||
9108 | sysv4*MP*) | |
9109 | if test -d /usr/nec; then | |
9110 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9111 | hardcode_shlibpath_var=no | |
9112 | runpath_var=LD_RUN_PATH | |
9113 | hardcode_runpath_var=yes | |
9114 | ld_shlibs=yes | |
9115 | fi | |
9116 | ;; | |
9117 | ||
9118 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9119 | no_undefined_flag='${wl}-z,text' | |
9120 | archive_cmds_need_lc=no | |
9121 | hardcode_shlibpath_var=no | |
9122 | runpath_var='LD_RUN_PATH' | |
9123 | ||
9124 | if test "$GCC" = yes; then | |
9125 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9126 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9127 | else | |
9128 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9129 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9130 | fi | |
9131 | ;; | |
9132 | ||
9133 | sysv5* | sco3.2v5* | sco5v6*) | |
9134 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9135 | # link with -lc, and that would cause any symbols used from libc to | |
9136 | # always be unresolved, which means just about no library would | |
9137 | # ever link correctly. If we're not using GNU ld we use -z text | |
9138 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9139 | # as -z defs. | |
9140 | no_undefined_flag='${wl}-z,text' | |
9141 | allow_undefined_flag='${wl}-z,nodefs' | |
9142 | archive_cmds_need_lc=no | |
9143 | hardcode_shlibpath_var=no | |
9144 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9145 | hardcode_libdir_separator=':' | |
9146 | link_all_deplibs=yes | |
9147 | export_dynamic_flag_spec='${wl}-Bexport' | |
9148 | runpath_var='LD_RUN_PATH' | |
9149 | ||
9150 | if test "$GCC" = yes; then | |
9151 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9152 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9153 | else | |
9154 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9155 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9156 | fi | |
9157 | ;; | |
9158 | ||
9159 | uts4*) | |
9160 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9161 | hardcode_libdir_flag_spec='-L$libdir' | |
9162 | hardcode_shlibpath_var=no | |
9163 | ;; | |
9164 | ||
9165 | *) | |
9166 | ld_shlibs=no | |
9167 | ;; | |
9168 | esac | |
9169 | ||
9170 | if test x$host_vendor = xsni; then | |
9171 | case $host in | |
9172 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9173 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9174 | ;; | |
9175 | esac | |
9176 | fi | |
9177 | fi | |
9178 | ||
9179 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9180 | $as_echo "$ld_shlibs" >&6; } | |
9181 | test "$ld_shlibs" = no && can_build_shared=no | |
9182 | ||
9183 | with_gnu_ld=$with_gnu_ld | |
9184 | ||
9185 | ||
9186 | ||
9187 | ||
9188 | ||
9189 | ||
9190 | ||
9191 | ||
9192 | ||
9193 | ||
9194 | ||
9195 | ||
9196 | ||
9197 | ||
9198 | ||
9199 | # | |
9200 | # Do we need to explicitly link libc? | |
9201 | # | |
9202 | case "x$archive_cmds_need_lc" in | |
9203 | x|xyes) | |
9204 | # Assume -lc should be added | |
9205 | archive_cmds_need_lc=yes | |
9206 | ||
9207 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9208 | case $archive_cmds in | |
9209 | *'~'*) | |
9210 | # FIXME: we may have to deal with multi-command sequences. | |
9211 | ;; | |
9212 | '$CC '*) | |
9213 | # Test whether the compiler implicitly links with -lc since on some | |
9214 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9215 | # to ld, don't add -lc before -lgcc. | |
9216 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9217 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9218 | $RM conftest* | |
9219 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9220 | ||
9221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9222 | (eval $ac_compile) 2>&5 | |
9223 | ac_status=$? | |
9224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9225 | (exit $ac_status); } 2>conftest.err; then | |
9226 | soname=conftest | |
9227 | lib=conftest | |
9228 | libobjs=conftest.$ac_objext | |
9229 | deplibs= | |
9230 | wl=$lt_prog_compiler_wl | |
9231 | pic_flag=$lt_prog_compiler_pic | |
9232 | compiler_flags=-v | |
9233 | linker_flags=-v | |
9234 | verstring= | |
9235 | output_objdir=. | |
9236 | libname=conftest | |
9237 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9238 | allow_undefined_flag= | |
9239 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9240 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9241 | ac_status=$? | |
9242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9243 | (exit $ac_status); } | |
9244 | then | |
9245 | archive_cmds_need_lc=no | |
9246 | else | |
9247 | archive_cmds_need_lc=yes | |
9248 | fi | |
9249 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9250 | else | |
9251 | cat conftest.err 1>&5 | |
9252 | fi | |
9253 | $RM conftest* | |
9254 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9255 | $as_echo "$archive_cmds_need_lc" >&6; } | |
9256 | ;; | |
9257 | esac | |
9258 | fi | |
9259 | ;; | |
9260 | esac | |
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 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9419 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9420 | ||
9421 | if test "$GCC" = yes; then | |
9422 | case $host_os in | |
9423 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9424 | *) lt_awk_arg="/^libraries:/" ;; | |
9425 | esac | |
9426 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9427 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9428 | # if the path contains ";" then we assume it to be the separator | |
9429 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9430 | # assumed that no part of a normal pathname contains ";" but that should | |
9431 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9432 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9433 | else | |
9434 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9435 | fi | |
9436 | # Ok, now we have the path, separated by spaces, we can step through it | |
9437 | # and add multilib dir if necessary. | |
9438 | lt_tmp_lt_search_path_spec= | |
9439 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9440 | for lt_sys_path in $lt_search_path_spec; do | |
9441 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9442 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9443 | else | |
9444 | test -d "$lt_sys_path" && \ | |
9445 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9446 | fi | |
9447 | done | |
9448 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9449 | BEGIN {RS=" "; FS="/|\n";} { | |
9450 | lt_foo=""; | |
9451 | lt_count=0; | |
9452 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9453 | if ($lt_i != "" && $lt_i != ".") { | |
9454 | if ($lt_i == "..") { | |
9455 | lt_count++; | |
9456 | } else { | |
9457 | if (lt_count == 0) { | |
9458 | lt_foo="/" $lt_i lt_foo; | |
9459 | } else { | |
9460 | lt_count--; | |
9461 | } | |
9462 | } | |
9463 | } | |
9464 | } | |
9465 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9466 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9467 | }'` | |
9468 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9469 | else | |
9470 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9471 | fi | |
9472 | library_names_spec= | |
9473 | libname_spec='lib$name' | |
9474 | soname_spec= | |
9475 | shrext_cmds=".so" | |
9476 | postinstall_cmds= | |
9477 | postuninstall_cmds= | |
9478 | finish_cmds= | |
9479 | finish_eval= | |
9480 | shlibpath_var= | |
9481 | shlibpath_overrides_runpath=unknown | |
9482 | version_type=none | |
9483 | dynamic_linker="$host_os ld.so" | |
9484 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9485 | need_lib_prefix=unknown | |
9486 | hardcode_into_libs=no | |
9487 | ||
9488 | # when you set need_version to no, make sure it does not cause -set_version | |
9489 | # flags to be left without arguments | |
9490 | need_version=unknown | |
9491 | ||
9492 | case $host_os in | |
9493 | aix3*) | |
9494 | version_type=linux | |
9495 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9496 | shlibpath_var=LIBPATH | |
9497 | ||
9498 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9499 | soname_spec='${libname}${release}${shared_ext}$major' | |
9500 | ;; | |
9501 | ||
9502 | aix[4-9]*) | |
9503 | version_type=linux | |
9504 | need_lib_prefix=no | |
9505 | need_version=no | |
9506 | hardcode_into_libs=yes | |
9507 | if test "$host_cpu" = ia64; then | |
9508 | # AIX 5 supports IA64 | |
9509 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9510 | shlibpath_var=LD_LIBRARY_PATH | |
9511 | else | |
9512 | # With GCC up to 2.95.x, collect2 would create an import file | |
9513 | # for dependence libraries. The import file would start with | |
9514 | # the line `#! .'. This would cause the generated library to | |
9515 | # depend on `.', always an invalid library. This was fixed in | |
9516 | # development snapshots of GCC prior to 3.0. | |
9517 | case $host_os in | |
9518 | aix4 | aix4.[01] | aix4.[01].*) | |
9519 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9520 | echo ' yes ' | |
9521 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9522 | : | |
9523 | else | |
9524 | can_build_shared=no | |
9525 | fi | |
9526 | ;; | |
9527 | esac | |
9528 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9529 | # soname into executable. Probably we can add versioning support to | |
9530 | # collect2, so additional links can be useful in future. | |
9531 | if test "$aix_use_runtimelinking" = yes; then | |
9532 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9533 | # instead of lib<name>.a to let people know that these are not | |
9534 | # typical AIX shared libraries. | |
9535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9536 | else | |
9537 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9538 | # and later when we are not doing run time linking. | |
9539 | library_names_spec='${libname}${release}.a $libname.a' | |
9540 | soname_spec='${libname}${release}${shared_ext}$major' | |
9541 | fi | |
9542 | shlibpath_var=LIBPATH | |
9543 | fi | |
9544 | ;; | |
9545 | ||
9546 | amigaos*) | |
9547 | case $host_cpu in | |
9548 | powerpc) | |
9549 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9550 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9552 | ;; | |
9553 | m68k) | |
9554 | library_names_spec='$libname.ixlibrary $libname.a' | |
9555 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9556 | 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' | |
9557 | ;; | |
9558 | esac | |
9559 | ;; | |
9560 | ||
9561 | beos*) | |
9562 | library_names_spec='${libname}${shared_ext}' | |
9563 | dynamic_linker="$host_os ld.so" | |
9564 | shlibpath_var=LIBRARY_PATH | |
9565 | ;; | |
9566 | ||
9567 | bsdi[45]*) | |
9568 | version_type=linux | |
9569 | need_version=no | |
9570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9571 | soname_spec='${libname}${release}${shared_ext}$major' | |
9572 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9573 | shlibpath_var=LD_LIBRARY_PATH | |
9574 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9575 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9576 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9577 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9578 | # libtool to hard-code these into programs | |
9579 | ;; | |
9580 | ||
9581 | cygwin* | mingw* | pw32* | cegcc*) | |
9582 | version_type=windows | |
9583 | shrext_cmds=".dll" | |
9584 | need_version=no | |
9585 | need_lib_prefix=no | |
9586 | ||
9587 | case $GCC,$host_os in | |
9588 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
9589 | library_names_spec='$libname.dll.a' | |
9590 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9591 | postinstall_cmds='base_file=`basename \${file}`~ | |
9592 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9593 | dldir=$destdir/`dirname \$dlpath`~ | |
9594 | test -d \$dldir || mkdir -p \$dldir~ | |
9595 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9596 | chmod a+x \$dldir/$dlname~ | |
9597 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9598 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9599 | fi' | |
9600 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9601 | dlpath=$dir/\$dldll~ | |
9602 | $RM \$dlpath' | |
9603 | shlibpath_overrides_runpath=yes | |
9604 | ||
9605 | case $host_os in | |
9606 | cygwin*) | |
9607 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9608 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9609 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9610 | ;; | |
9611 | mingw* | cegcc*) | |
9612 | # MinGW DLLs use traditional 'lib' prefix | |
9613 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9614 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9615 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9616 | # It is most probably a Windows format PATH printed by | |
9617 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9618 | # path with ; separators, and with drive letters. We can handle the | |
9619 | # drive letters (cygwin fileutils understands them), so leave them, | |
9620 | # especially as we might pass files found there to a mingw objdump, | |
9621 | # which wouldn't understand a cygwinified path. Ahh. | |
9622 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9623 | else | |
9624 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9625 | fi | |
9626 | ;; | |
9627 | pw32*) | |
9628 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9629 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9630 | ;; | |
9631 | esac | |
9632 | ;; | |
9633 | ||
9634 | *) | |
9635 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9636 | ;; | |
9637 | esac | |
9638 | dynamic_linker='Win32 ld.exe' | |
9639 | # FIXME: first we should search . and the directory the executable is in | |
9640 | shlibpath_var=PATH | |
9641 | ;; | |
9642 | ||
9643 | darwin* | rhapsody*) | |
9644 | dynamic_linker="$host_os dyld" | |
9645 | version_type=darwin | |
9646 | need_lib_prefix=no | |
9647 | need_version=no | |
9648 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9649 | soname_spec='${libname}${release}${major}$shared_ext' | |
9650 | shlibpath_overrides_runpath=yes | |
9651 | shlibpath_var=DYLD_LIBRARY_PATH | |
9652 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9653 | ||
9654 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9655 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9656 | ;; | |
9657 | ||
9658 | dgux*) | |
9659 | version_type=linux | |
9660 | need_lib_prefix=no | |
9661 | need_version=no | |
9662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9663 | soname_spec='${libname}${release}${shared_ext}$major' | |
9664 | shlibpath_var=LD_LIBRARY_PATH | |
9665 | ;; | |
9666 | ||
9667 | freebsd1*) | |
9668 | dynamic_linker=no | |
9669 | ;; | |
9670 | ||
9671 | freebsd* | dragonfly*) | |
9672 | # DragonFly does not have aout. When/if they implement a new | |
9673 | # versioning mechanism, adjust this. | |
9674 | if test -x /usr/bin/objformat; then | |
9675 | objformat=`/usr/bin/objformat` | |
9676 | else | |
9677 | case $host_os in | |
9678 | freebsd[123]*) objformat=aout ;; | |
9679 | *) objformat=elf ;; | |
9680 | esac | |
9681 | fi | |
9682 | version_type=freebsd-$objformat | |
9683 | case $version_type in | |
9684 | freebsd-elf*) | |
9685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9686 | need_version=no | |
9687 | need_lib_prefix=no | |
9688 | ;; | |
9689 | freebsd-*) | |
9690 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9691 | need_version=yes | |
9692 | ;; | |
9693 | esac | |
9694 | shlibpath_var=LD_LIBRARY_PATH | |
9695 | case $host_os in | |
9696 | freebsd2*) | |
9697 | shlibpath_overrides_runpath=yes | |
9698 | ;; | |
9699 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9700 | shlibpath_overrides_runpath=yes | |
9701 | hardcode_into_libs=yes | |
9702 | ;; | |
9703 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9704 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9705 | shlibpath_overrides_runpath=no | |
9706 | hardcode_into_libs=yes | |
9707 | ;; | |
9708 | *) # from 4.6 on, and DragonFly | |
9709 | shlibpath_overrides_runpath=yes | |
9710 | hardcode_into_libs=yes | |
9711 | ;; | |
9712 | esac | |
9713 | ;; | |
9714 | ||
9715 | gnu*) | |
9716 | version_type=linux | |
9717 | need_lib_prefix=no | |
9718 | need_version=no | |
9719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9720 | soname_spec='${libname}${release}${shared_ext}$major' | |
9721 | shlibpath_var=LD_LIBRARY_PATH | |
9722 | hardcode_into_libs=yes | |
9723 | ;; | |
9724 | ||
9725 | hpux9* | hpux10* | hpux11*) | |
9726 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9727 | # link against other versions. | |
9728 | version_type=sunos | |
9729 | need_lib_prefix=no | |
9730 | need_version=no | |
9731 | case $host_cpu in | |
9732 | ia64*) | |
9733 | shrext_cmds='.so' | |
9734 | hardcode_into_libs=yes | |
9735 | dynamic_linker="$host_os dld.so" | |
9736 | shlibpath_var=LD_LIBRARY_PATH | |
9737 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9739 | soname_spec='${libname}${release}${shared_ext}$major' | |
9740 | if test "X$HPUX_IA64_MODE" = X32; then | |
9741 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9742 | else | |
9743 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9744 | fi | |
9745 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9746 | ;; | |
9747 | hppa*64*) | |
9748 | shrext_cmds='.sl' | |
9749 | hardcode_into_libs=yes | |
9750 | dynamic_linker="$host_os dld.sl" | |
9751 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9752 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9754 | soname_spec='${libname}${release}${shared_ext}$major' | |
9755 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9756 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9757 | ;; | |
9758 | *) | |
9759 | shrext_cmds='.sl' | |
9760 | dynamic_linker="$host_os dld.sl" | |
9761 | shlibpath_var=SHLIB_PATH | |
9762 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9764 | soname_spec='${libname}${release}${shared_ext}$major' | |
9765 | ;; | |
9766 | esac | |
9767 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9768 | postinstall_cmds='chmod 555 $lib' | |
9769 | ;; | |
9770 | ||
9771 | interix[3-9]*) | |
9772 | version_type=linux | |
9773 | need_lib_prefix=no | |
9774 | need_version=no | |
9775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9776 | soname_spec='${libname}${release}${shared_ext}$major' | |
9777 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9778 | shlibpath_var=LD_LIBRARY_PATH | |
9779 | shlibpath_overrides_runpath=no | |
9780 | hardcode_into_libs=yes | |
9781 | ;; | |
9782 | ||
9783 | irix5* | irix6* | nonstopux*) | |
9784 | case $host_os in | |
9785 | nonstopux*) version_type=nonstopux ;; | |
9786 | *) | |
9787 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9788 | version_type=linux | |
9789 | else | |
9790 | version_type=irix | |
9791 | fi ;; | |
9792 | esac | |
9793 | need_lib_prefix=no | |
9794 | need_version=no | |
9795 | soname_spec='${libname}${release}${shared_ext}$major' | |
9796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9797 | case $host_os in | |
9798 | irix5* | nonstopux*) | |
9799 | libsuff= shlibsuff= | |
9800 | ;; | |
9801 | *) | |
9802 | case $LD in # libtool.m4 will add one of these switches to LD | |
9803 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9804 | libsuff= shlibsuff= libmagic=32-bit;; | |
9805 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9806 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9807 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9808 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9809 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9810 | esac | |
9811 | ;; | |
9812 | esac | |
9813 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9814 | shlibpath_overrides_runpath=no | |
9815 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9816 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9817 | hardcode_into_libs=yes | |
9818 | ;; | |
9819 | ||
9820 | # No shared lib support for Linux oldld, aout, or coff. | |
9821 | linux*oldld* | linux*aout* | linux*coff*) | |
9822 | dynamic_linker=no | |
9823 | ;; | |
9824 | ||
9825 | # This must be Linux ELF. | |
9826 | linux* | k*bsd*-gnu) | |
9827 | version_type=linux | |
9828 | need_lib_prefix=no | |
9829 | need_version=no | |
9830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9831 | soname_spec='${libname}${release}${shared_ext}$major' | |
9832 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9833 | shlibpath_var=LD_LIBRARY_PATH | |
9834 | shlibpath_overrides_runpath=no | |
9835 | # Some binutils ld are patched to set DT_RUNPATH | |
9836 | save_LDFLAGS=$LDFLAGS | |
9837 | save_libdir=$libdir | |
9838 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9839 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9840 | cat >conftest.$ac_ext <<_ACEOF | |
9841 | /* confdefs.h. */ | |
9842 | _ACEOF | |
9843 | cat confdefs.h >>conftest.$ac_ext | |
9844 | cat >>conftest.$ac_ext <<_ACEOF | |
9845 | /* end confdefs.h. */ | |
9846 | ||
9847 | int | |
9848 | main () | |
9849 | { | |
9850 | ||
9851 | ; | |
9852 | return 0; | |
9853 | } | |
9854 | _ACEOF | |
9855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9856 | if { (ac_try="$ac_link" | |
9857 | case "(($ac_try" in | |
9858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9859 | *) ac_try_echo=$ac_try;; | |
9860 | esac | |
9861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9862 | $as_echo "$ac_try_echo") >&5 | |
9863 | (eval "$ac_link") 2>conftest.er1 | |
9864 | ac_status=$? | |
9865 | grep -v '^ *+' conftest.er1 >conftest.err | |
9866 | rm -f conftest.er1 | |
9867 | cat conftest.err >&5 | |
9868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9869 | (exit $ac_status); } && { | |
9870 | test -z "$ac_c_werror_flag" || | |
9871 | test ! -s conftest.err | |
9872 | } && test -s conftest$ac_exeext && { | |
9873 | test "$cross_compiling" = yes || | |
9874 | $as_test_x conftest$ac_exeext | |
9875 | }; then | |
9876 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9877 | shlibpath_overrides_runpath=yes | |
9878 | fi | |
9879 | ||
9880 | else | |
9881 | $as_echo "$as_me: failed program was:" >&5 | |
9882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9883 | ||
9884 | ||
9885 | fi | |
9886 | ||
9887 | rm -rf conftest.dSYM | |
9888 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9889 | conftest$ac_exeext conftest.$ac_ext | |
9890 | LDFLAGS=$save_LDFLAGS | |
9891 | libdir=$save_libdir | |
9892 | ||
9893 | # This implies no fast_install, which is unacceptable. | |
9894 | # Some rework will be needed to allow for fast_install | |
9895 | # before this can be enabled. | |
9896 | hardcode_into_libs=yes | |
9897 | ||
9898 | # Append ld.so.conf contents to the search path | |
9899 | if test -f /etc/ld.so.conf; then | |
9900 | 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' ' '` | |
9901 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9902 | fi | |
9903 | ||
9904 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9905 | # powerpc, because MkLinux only supported shared libraries with the | |
9906 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9907 | # most powerpc-linux boxes support dynamic linking these days and | |
9908 | # people can always --disable-shared, the test was removed, and we | |
9909 | # assume the GNU/Linux dynamic linker is in use. | |
9910 | dynamic_linker='GNU/Linux ld.so' | |
9911 | ;; | |
9912 | ||
9913 | netbsdelf*-gnu) | |
9914 | version_type=linux | |
9915 | need_lib_prefix=no | |
9916 | need_version=no | |
9917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9918 | soname_spec='${libname}${release}${shared_ext}$major' | |
9919 | shlibpath_var=LD_LIBRARY_PATH | |
9920 | shlibpath_overrides_runpath=no | |
9921 | hardcode_into_libs=yes | |
9922 | dynamic_linker='NetBSD ld.elf_so' | |
9923 | ;; | |
9924 | ||
9925 | netbsd*) | |
9926 | version_type=sunos | |
9927 | need_lib_prefix=no | |
9928 | need_version=no | |
9929 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9931 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9932 | dynamic_linker='NetBSD (a.out) ld.so' | |
9933 | else | |
9934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9935 | soname_spec='${libname}${release}${shared_ext}$major' | |
9936 | dynamic_linker='NetBSD ld.elf_so' | |
9937 | fi | |
9938 | shlibpath_var=LD_LIBRARY_PATH | |
9939 | shlibpath_overrides_runpath=yes | |
9940 | hardcode_into_libs=yes | |
9941 | ;; | |
9942 | ||
9943 | newsos6) | |
9944 | version_type=linux | |
9945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9946 | shlibpath_var=LD_LIBRARY_PATH | |
9947 | shlibpath_overrides_runpath=yes | |
9948 | ;; | |
9949 | ||
9950 | *nto* | *qnx*) | |
9951 | version_type=qnx | |
9952 | need_lib_prefix=no | |
9953 | need_version=no | |
9954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9955 | soname_spec='${libname}${release}${shared_ext}$major' | |
9956 | shlibpath_var=LD_LIBRARY_PATH | |
9957 | shlibpath_overrides_runpath=no | |
9958 | hardcode_into_libs=yes | |
9959 | dynamic_linker='ldqnx.so' | |
9960 | ;; | |
9961 | ||
9962 | openbsd*) | |
9963 | version_type=sunos | |
9964 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9965 | need_lib_prefix=no | |
9966 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9967 | case $host_os in | |
9968 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9969 | *) need_version=no ;; | |
9970 | esac | |
9971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9972 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9973 | shlibpath_var=LD_LIBRARY_PATH | |
9974 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9975 | case $host_os in | |
9976 | openbsd2.[89] | openbsd2.[89].*) | |
9977 | shlibpath_overrides_runpath=no | |
9978 | ;; | |
9979 | *) | |
9980 | shlibpath_overrides_runpath=yes | |
9981 | ;; | |
9982 | esac | |
9983 | else | |
9984 | shlibpath_overrides_runpath=yes | |
9985 | fi | |
9986 | ;; | |
9987 | ||
9988 | os2*) | |
9989 | libname_spec='$name' | |
9990 | shrext_cmds=".dll" | |
9991 | need_lib_prefix=no | |
9992 | library_names_spec='$libname${shared_ext} $libname.a' | |
9993 | dynamic_linker='OS/2 ld.exe' | |
9994 | shlibpath_var=LIBPATH | |
9995 | ;; | |
9996 | ||
9997 | osf3* | osf4* | osf5*) | |
9998 | version_type=osf | |
9999 | need_lib_prefix=no | |
10000 | need_version=no | |
10001 | soname_spec='${libname}${release}${shared_ext}$major' | |
10002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10003 | shlibpath_var=LD_LIBRARY_PATH | |
10004 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10005 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10006 | ;; | |
10007 | ||
10008 | rdos*) | |
10009 | dynamic_linker=no | |
10010 | ;; | |
10011 | ||
10012 | solaris*) | |
10013 | version_type=linux | |
10014 | need_lib_prefix=no | |
10015 | need_version=no | |
10016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10017 | soname_spec='${libname}${release}${shared_ext}$major' | |
10018 | shlibpath_var=LD_LIBRARY_PATH | |
10019 | shlibpath_overrides_runpath=yes | |
10020 | hardcode_into_libs=yes | |
10021 | # ldd complains unless libraries are executable | |
10022 | postinstall_cmds='chmod +x $lib' | |
10023 | ;; | |
10024 | ||
10025 | sunos4*) | |
10026 | version_type=sunos | |
10027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10028 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10029 | shlibpath_var=LD_LIBRARY_PATH | |
10030 | shlibpath_overrides_runpath=yes | |
10031 | if test "$with_gnu_ld" = yes; then | |
10032 | need_lib_prefix=no | |
10033 | fi | |
10034 | need_version=yes | |
10035 | ;; | |
10036 | ||
10037 | sysv4 | sysv4.3*) | |
10038 | version_type=linux | |
10039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10040 | soname_spec='${libname}${release}${shared_ext}$major' | |
10041 | shlibpath_var=LD_LIBRARY_PATH | |
10042 | case $host_vendor in | |
10043 | sni) | |
10044 | shlibpath_overrides_runpath=no | |
10045 | need_lib_prefix=no | |
10046 | runpath_var=LD_RUN_PATH | |
10047 | ;; | |
10048 | siemens) | |
10049 | need_lib_prefix=no | |
10050 | ;; | |
10051 | motorola) | |
10052 | need_lib_prefix=no | |
10053 | need_version=no | |
10054 | shlibpath_overrides_runpath=no | |
10055 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10056 | ;; | |
10057 | esac | |
10058 | ;; | |
10059 | ||
10060 | sysv4*MP*) | |
10061 | if test -d /usr/nec ;then | |
10062 | version_type=linux | |
10063 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10064 | soname_spec='$libname${shared_ext}.$major' | |
10065 | shlibpath_var=LD_LIBRARY_PATH | |
10066 | fi | |
10067 | ;; | |
10068 | ||
10069 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10070 | version_type=freebsd-elf | |
10071 | need_lib_prefix=no | |
10072 | need_version=no | |
10073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10074 | soname_spec='${libname}${release}${shared_ext}$major' | |
10075 | shlibpath_var=LD_LIBRARY_PATH | |
10076 | shlibpath_overrides_runpath=yes | |
10077 | hardcode_into_libs=yes | |
10078 | if test "$with_gnu_ld" = yes; then | |
10079 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10080 | else | |
10081 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10082 | case $host_os in | |
10083 | sco3.2v5*) | |
10084 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10085 | ;; | |
10086 | esac | |
10087 | fi | |
10088 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10089 | ;; | |
10090 | ||
10091 | tpf*) | |
10092 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10093 | version_type=linux | |
10094 | need_lib_prefix=no | |
10095 | need_version=no | |
10096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10097 | shlibpath_var=LD_LIBRARY_PATH | |
10098 | shlibpath_overrides_runpath=no | |
10099 | hardcode_into_libs=yes | |
10100 | ;; | |
10101 | ||
10102 | uts4*) | |
10103 | version_type=linux | |
10104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10105 | soname_spec='${libname}${release}${shared_ext}$major' | |
10106 | shlibpath_var=LD_LIBRARY_PATH | |
10107 | ;; | |
10108 | ||
10109 | *) | |
10110 | dynamic_linker=no | |
10111 | ;; | |
10112 | esac | |
10113 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10114 | $as_echo "$dynamic_linker" >&6; } | |
10115 | test "$dynamic_linker" = no && can_build_shared=no | |
10116 | ||
10117 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10118 | if test "$GCC" = yes; then | |
10119 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10120 | fi | |
10121 | ||
10122 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10123 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10124 | fi | |
10125 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10126 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10127 | fi | |
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10216 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10217 | hardcode_action= | |
10218 | if test -n "$hardcode_libdir_flag_spec" || | |
10219 | test -n "$runpath_var" || | |
10220 | test "X$hardcode_automatic" = "Xyes" ; then | |
10221 | ||
10222 | # We can hardcode non-existent directories. | |
10223 | if test "$hardcode_direct" != no && | |
10224 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10225 | # have to relink, otherwise we might link with an installed library | |
10226 | # when we should be linking with a yet-to-be-installed one | |
10227 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10228 | test "$hardcode_minus_L" != no; then | |
10229 | # Linking always hardcodes the temporary library directory. | |
10230 | hardcode_action=relink | |
10231 | else | |
10232 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10233 | hardcode_action=immediate | |
10234 | fi | |
10235 | else | |
10236 | # We cannot hardcode anything, or else we can only hardcode existing | |
10237 | # directories. | |
10238 | hardcode_action=unsupported | |
10239 | fi | |
10240 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10241 | $as_echo "$hardcode_action" >&6; } | |
10242 | ||
10243 | if test "$hardcode_action" = relink || | |
10244 | test "$inherit_rpath" = yes; then | |
10245 | # Fast installation is not supported | |
10246 | enable_fast_install=no | |
10247 | elif test "$shlibpath_overrides_runpath" = yes || | |
10248 | test "$enable_shared" = no; then | |
10249 | # Fast installation is not necessary | |
10250 | enable_fast_install=needless | |
10251 | fi | |
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | if test "x$enable_dlopen" != xyes; then | |
10259 | enable_dlopen=unknown | |
10260 | enable_dlopen_self=unknown | |
10261 | enable_dlopen_self_static=unknown | |
10262 | else | |
10263 | lt_cv_dlopen=no | |
10264 | lt_cv_dlopen_libs= | |
10265 | ||
10266 | case $host_os in | |
10267 | beos*) | |
10268 | lt_cv_dlopen="load_add_on" | |
10269 | lt_cv_dlopen_libs= | |
10270 | lt_cv_dlopen_self=yes | |
10271 | ;; | |
10272 | ||
10273 | mingw* | pw32* | cegcc*) | |
10274 | lt_cv_dlopen="LoadLibrary" | |
10275 | lt_cv_dlopen_libs= | |
10276 | ;; | |
10277 | ||
10278 | cygwin*) | |
10279 | lt_cv_dlopen="dlopen" | |
10280 | lt_cv_dlopen_libs= | |
10281 | ;; | |
10282 | ||
10283 | darwin*) | |
10284 | # if libdl is installed we need to link against it | |
10285 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10286 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10287 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10288 | $as_echo_n "(cached) " >&6 | |
10289 | else | |
10290 | ac_check_lib_save_LIBS=$LIBS | |
10291 | LIBS="-ldl $LIBS" | |
10292 | cat >conftest.$ac_ext <<_ACEOF | |
10293 | /* confdefs.h. */ | |
10294 | _ACEOF | |
10295 | cat confdefs.h >>conftest.$ac_ext | |
10296 | cat >>conftest.$ac_ext <<_ACEOF | |
10297 | /* end confdefs.h. */ | |
10298 | ||
10299 | /* Override any GCC internal prototype to avoid an error. | |
10300 | Use char because int might match the return type of a GCC | |
10301 | builtin and then its argument prototype would still apply. */ | |
10302 | #ifdef __cplusplus | |
10303 | extern "C" | |
10304 | #endif | |
10305 | char dlopen (); | |
10306 | int | |
10307 | main () | |
10308 | { | |
10309 | return dlopen (); | |
10310 | ; | |
10311 | return 0; | |
10312 | } | |
10313 | _ACEOF | |
10314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10315 | if { (ac_try="$ac_link" | |
10316 | case "(($ac_try" in | |
10317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10318 | *) ac_try_echo=$ac_try;; | |
10319 | esac | |
10320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10321 | $as_echo "$ac_try_echo") >&5 | |
10322 | (eval "$ac_link") 2>conftest.er1 | |
10323 | ac_status=$? | |
10324 | grep -v '^ *+' conftest.er1 >conftest.err | |
10325 | rm -f conftest.er1 | |
10326 | cat conftest.err >&5 | |
10327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10328 | (exit $ac_status); } && { | |
10329 | test -z "$ac_c_werror_flag" || | |
10330 | test ! -s conftest.err | |
10331 | } && test -s conftest$ac_exeext && { | |
10332 | test "$cross_compiling" = yes || | |
10333 | $as_test_x conftest$ac_exeext | |
10334 | }; then | |
10335 | ac_cv_lib_dl_dlopen=yes | |
10336 | else | |
10337 | $as_echo "$as_me: failed program was:" >&5 | |
10338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10339 | ||
10340 | ac_cv_lib_dl_dlopen=no | |
10341 | fi | |
10342 | ||
10343 | rm -rf conftest.dSYM | |
10344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10345 | conftest$ac_exeext conftest.$ac_ext | |
10346 | LIBS=$ac_check_lib_save_LIBS | |
10347 | fi | |
10348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10349 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10350 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10351 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10352 | else | |
10353 | ||
10354 | lt_cv_dlopen="dyld" | |
10355 | lt_cv_dlopen_libs= | |
10356 | lt_cv_dlopen_self=yes | |
10357 | ||
10358 | fi | |
10359 | ||
10360 | ;; | |
10361 | ||
10362 | *) | |
10363 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10364 | $as_echo_n "checking for shl_load... " >&6; } | |
10365 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10366 | $as_echo_n "(cached) " >&6 | |
10367 | else | |
10368 | cat >conftest.$ac_ext <<_ACEOF | |
10369 | /* confdefs.h. */ | |
10370 | _ACEOF | |
10371 | cat confdefs.h >>conftest.$ac_ext | |
10372 | cat >>conftest.$ac_ext <<_ACEOF | |
10373 | /* end confdefs.h. */ | |
10374 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10376 | #define shl_load innocuous_shl_load | |
10377 | ||
10378 | /* System header to define __stub macros and hopefully few prototypes, | |
10379 | which can conflict with char shl_load (); below. | |
10380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10381 | <limits.h> exists even on freestanding compilers. */ | |
10382 | ||
10383 | #ifdef __STDC__ | |
10384 | # include <limits.h> | |
10385 | #else | |
10386 | # include <assert.h> | |
10387 | #endif | |
10388 | ||
10389 | #undef shl_load | |
10390 | ||
10391 | /* Override any GCC internal prototype to avoid an error. | |
10392 | Use char because int might match the return type of a GCC | |
10393 | builtin and then its argument prototype would still apply. */ | |
10394 | #ifdef __cplusplus | |
10395 | extern "C" | |
10396 | #endif | |
10397 | char shl_load (); | |
10398 | /* The GNU C library defines this for functions which it implements | |
10399 | to always fail with ENOSYS. Some functions are actually named | |
10400 | something starting with __ and the normal name is an alias. */ | |
10401 | #if defined __stub_shl_load || defined __stub___shl_load | |
10402 | choke me | |
10403 | #endif | |
10404 | ||
10405 | int | |
10406 | main () | |
10407 | { | |
10408 | return shl_load (); | |
10409 | ; | |
10410 | return 0; | |
10411 | } | |
10412 | _ACEOF | |
10413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10414 | if { (ac_try="$ac_link" | |
10415 | case "(($ac_try" in | |
10416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10417 | *) ac_try_echo=$ac_try;; | |
10418 | esac | |
10419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10420 | $as_echo "$ac_try_echo") >&5 | |
10421 | (eval "$ac_link") 2>conftest.er1 | |
10422 | ac_status=$? | |
10423 | grep -v '^ *+' conftest.er1 >conftest.err | |
10424 | rm -f conftest.er1 | |
10425 | cat conftest.err >&5 | |
10426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10427 | (exit $ac_status); } && { | |
10428 | test -z "$ac_c_werror_flag" || | |
10429 | test ! -s conftest.err | |
10430 | } && test -s conftest$ac_exeext && { | |
10431 | test "$cross_compiling" = yes || | |
10432 | $as_test_x conftest$ac_exeext | |
10433 | }; then | |
10434 | ac_cv_func_shl_load=yes | |
10435 | else | |
10436 | $as_echo "$as_me: failed program was:" >&5 | |
10437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10438 | ||
10439 | ac_cv_func_shl_load=no | |
10440 | fi | |
10441 | ||
10442 | rm -rf conftest.dSYM | |
10443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10444 | conftest$ac_exeext conftest.$ac_ext | |
10445 | fi | |
10446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10447 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10448 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10449 | lt_cv_dlopen="shl_load" | |
10450 | else | |
10451 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10452 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10453 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10454 | $as_echo_n "(cached) " >&6 | |
10455 | else | |
10456 | ac_check_lib_save_LIBS=$LIBS | |
10457 | LIBS="-ldld $LIBS" | |
10458 | cat >conftest.$ac_ext <<_ACEOF | |
10459 | /* confdefs.h. */ | |
10460 | _ACEOF | |
10461 | cat confdefs.h >>conftest.$ac_ext | |
10462 | cat >>conftest.$ac_ext <<_ACEOF | |
10463 | /* end confdefs.h. */ | |
10464 | ||
10465 | /* Override any GCC internal prototype to avoid an error. | |
10466 | Use char because int might match the return type of a GCC | |
10467 | builtin and then its argument prototype would still apply. */ | |
10468 | #ifdef __cplusplus | |
10469 | extern "C" | |
10470 | #endif | |
10471 | char shl_load (); | |
10472 | int | |
10473 | main () | |
10474 | { | |
10475 | return shl_load (); | |
10476 | ; | |
10477 | return 0; | |
10478 | } | |
10479 | _ACEOF | |
10480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10481 | if { (ac_try="$ac_link" | |
10482 | case "(($ac_try" in | |
10483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10484 | *) ac_try_echo=$ac_try;; | |
10485 | esac | |
10486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10487 | $as_echo "$ac_try_echo") >&5 | |
10488 | (eval "$ac_link") 2>conftest.er1 | |
10489 | ac_status=$? | |
10490 | grep -v '^ *+' conftest.er1 >conftest.err | |
10491 | rm -f conftest.er1 | |
10492 | cat conftest.err >&5 | |
10493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10494 | (exit $ac_status); } && { | |
10495 | test -z "$ac_c_werror_flag" || | |
10496 | test ! -s conftest.err | |
10497 | } && test -s conftest$ac_exeext && { | |
10498 | test "$cross_compiling" = yes || | |
10499 | $as_test_x conftest$ac_exeext | |
10500 | }; then | |
10501 | ac_cv_lib_dld_shl_load=yes | |
10502 | else | |
10503 | $as_echo "$as_me: failed program was:" >&5 | |
10504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10505 | ||
10506 | ac_cv_lib_dld_shl_load=no | |
10507 | fi | |
10508 | ||
10509 | rm -rf conftest.dSYM | |
10510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10511 | conftest$ac_exeext conftest.$ac_ext | |
10512 | LIBS=$ac_check_lib_save_LIBS | |
10513 | fi | |
10514 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10515 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10516 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10517 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10518 | else | |
10519 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10520 | $as_echo_n "checking for dlopen... " >&6; } | |
10521 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10522 | $as_echo_n "(cached) " >&6 | |
10523 | else | |
10524 | cat >conftest.$ac_ext <<_ACEOF | |
10525 | /* confdefs.h. */ | |
10526 | _ACEOF | |
10527 | cat confdefs.h >>conftest.$ac_ext | |
10528 | cat >>conftest.$ac_ext <<_ACEOF | |
10529 | /* end confdefs.h. */ | |
10530 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10532 | #define dlopen innocuous_dlopen | |
10533 | ||
10534 | /* System header to define __stub macros and hopefully few prototypes, | |
10535 | which can conflict with char dlopen (); below. | |
10536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10537 | <limits.h> exists even on freestanding compilers. */ | |
10538 | ||
10539 | #ifdef __STDC__ | |
10540 | # include <limits.h> | |
10541 | #else | |
10542 | # include <assert.h> | |
10543 | #endif | |
10544 | ||
10545 | #undef dlopen | |
10546 | ||
10547 | /* Override any GCC internal prototype to avoid an error. | |
10548 | Use char because int might match the return type of a GCC | |
10549 | builtin and then its argument prototype would still apply. */ | |
10550 | #ifdef __cplusplus | |
10551 | extern "C" | |
10552 | #endif | |
10553 | char dlopen (); | |
10554 | /* The GNU C library defines this for functions which it implements | |
10555 | to always fail with ENOSYS. Some functions are actually named | |
10556 | something starting with __ and the normal name is an alias. */ | |
10557 | #if defined __stub_dlopen || defined __stub___dlopen | |
10558 | choke me | |
10559 | #endif | |
10560 | ||
10561 | int | |
10562 | main () | |
10563 | { | |
10564 | return dlopen (); | |
10565 | ; | |
10566 | return 0; | |
10567 | } | |
10568 | _ACEOF | |
10569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10570 | if { (ac_try="$ac_link" | |
10571 | case "(($ac_try" in | |
10572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10573 | *) ac_try_echo=$ac_try;; | |
10574 | esac | |
10575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10576 | $as_echo "$ac_try_echo") >&5 | |
10577 | (eval "$ac_link") 2>conftest.er1 | |
10578 | ac_status=$? | |
10579 | grep -v '^ *+' conftest.er1 >conftest.err | |
10580 | rm -f conftest.er1 | |
10581 | cat conftest.err >&5 | |
10582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10583 | (exit $ac_status); } && { | |
10584 | test -z "$ac_c_werror_flag" || | |
10585 | test ! -s conftest.err | |
10586 | } && test -s conftest$ac_exeext && { | |
10587 | test "$cross_compiling" = yes || | |
10588 | $as_test_x conftest$ac_exeext | |
10589 | }; then | |
10590 | ac_cv_func_dlopen=yes | |
10591 | else | |
10592 | $as_echo "$as_me: failed program was:" >&5 | |
10593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10594 | ||
10595 | ac_cv_func_dlopen=no | |
10596 | fi | |
10597 | ||
10598 | rm -rf conftest.dSYM | |
10599 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10600 | conftest$ac_exeext conftest.$ac_ext | |
10601 | fi | |
10602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10603 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10604 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10605 | lt_cv_dlopen="dlopen" | |
10606 | else | |
10607 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10608 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10609 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10610 | $as_echo_n "(cached) " >&6 | |
10611 | else | |
10612 | ac_check_lib_save_LIBS=$LIBS | |
10613 | LIBS="-ldl $LIBS" | |
10614 | cat >conftest.$ac_ext <<_ACEOF | |
10615 | /* confdefs.h. */ | |
10616 | _ACEOF | |
10617 | cat confdefs.h >>conftest.$ac_ext | |
10618 | cat >>conftest.$ac_ext <<_ACEOF | |
10619 | /* end confdefs.h. */ | |
10620 | ||
10621 | /* Override any GCC internal prototype to avoid an error. | |
10622 | Use char because int might match the return type of a GCC | |
10623 | builtin and then its argument prototype would still apply. */ | |
10624 | #ifdef __cplusplus | |
10625 | extern "C" | |
10626 | #endif | |
10627 | char dlopen (); | |
10628 | int | |
10629 | main () | |
10630 | { | |
10631 | return dlopen (); | |
10632 | ; | |
10633 | return 0; | |
10634 | } | |
10635 | _ACEOF | |
10636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10637 | if { (ac_try="$ac_link" | |
10638 | case "(($ac_try" in | |
10639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10640 | *) ac_try_echo=$ac_try;; | |
10641 | esac | |
10642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10643 | $as_echo "$ac_try_echo") >&5 | |
10644 | (eval "$ac_link") 2>conftest.er1 | |
10645 | ac_status=$? | |
10646 | grep -v '^ *+' conftest.er1 >conftest.err | |
10647 | rm -f conftest.er1 | |
10648 | cat conftest.err >&5 | |
10649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10650 | (exit $ac_status); } && { | |
10651 | test -z "$ac_c_werror_flag" || | |
10652 | test ! -s conftest.err | |
10653 | } && test -s conftest$ac_exeext && { | |
10654 | test "$cross_compiling" = yes || | |
10655 | $as_test_x conftest$ac_exeext | |
10656 | }; then | |
10657 | ac_cv_lib_dl_dlopen=yes | |
10658 | else | |
10659 | $as_echo "$as_me: failed program was:" >&5 | |
10660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10661 | ||
10662 | ac_cv_lib_dl_dlopen=no | |
10663 | fi | |
10664 | ||
10665 | rm -rf conftest.dSYM | |
10666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10667 | conftest$ac_exeext conftest.$ac_ext | |
10668 | LIBS=$ac_check_lib_save_LIBS | |
10669 | fi | |
10670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10671 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10672 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10673 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10674 | else | |
10675 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10676 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10677 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10678 | $as_echo_n "(cached) " >&6 | |
10679 | else | |
10680 | ac_check_lib_save_LIBS=$LIBS | |
10681 | LIBS="-lsvld $LIBS" | |
10682 | cat >conftest.$ac_ext <<_ACEOF | |
10683 | /* confdefs.h. */ | |
10684 | _ACEOF | |
10685 | cat confdefs.h >>conftest.$ac_ext | |
10686 | cat >>conftest.$ac_ext <<_ACEOF | |
10687 | /* end confdefs.h. */ | |
10688 | ||
10689 | /* Override any GCC internal prototype to avoid an error. | |
10690 | Use char because int might match the return type of a GCC | |
10691 | builtin and then its argument prototype would still apply. */ | |
10692 | #ifdef __cplusplus | |
10693 | extern "C" | |
10694 | #endif | |
10695 | char dlopen (); | |
10696 | int | |
10697 | main () | |
10698 | { | |
10699 | return dlopen (); | |
10700 | ; | |
10701 | return 0; | |
10702 | } | |
10703 | _ACEOF | |
10704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10705 | if { (ac_try="$ac_link" | |
10706 | case "(($ac_try" in | |
10707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10708 | *) ac_try_echo=$ac_try;; | |
10709 | esac | |
10710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10711 | $as_echo "$ac_try_echo") >&5 | |
10712 | (eval "$ac_link") 2>conftest.er1 | |
10713 | ac_status=$? | |
10714 | grep -v '^ *+' conftest.er1 >conftest.err | |
10715 | rm -f conftest.er1 | |
10716 | cat conftest.err >&5 | |
10717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10718 | (exit $ac_status); } && { | |
10719 | test -z "$ac_c_werror_flag" || | |
10720 | test ! -s conftest.err | |
10721 | } && test -s conftest$ac_exeext && { | |
10722 | test "$cross_compiling" = yes || | |
10723 | $as_test_x conftest$ac_exeext | |
10724 | }; then | |
10725 | ac_cv_lib_svld_dlopen=yes | |
10726 | else | |
10727 | $as_echo "$as_me: failed program was:" >&5 | |
10728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10729 | ||
10730 | ac_cv_lib_svld_dlopen=no | |
10731 | fi | |
10732 | ||
10733 | rm -rf conftest.dSYM | |
10734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10735 | conftest$ac_exeext conftest.$ac_ext | |
10736 | LIBS=$ac_check_lib_save_LIBS | |
10737 | fi | |
10738 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10739 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10740 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
10741 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10742 | else | |
10743 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10744 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10745 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10746 | $as_echo_n "(cached) " >&6 | |
10747 | else | |
10748 | ac_check_lib_save_LIBS=$LIBS | |
10749 | LIBS="-ldld $LIBS" | |
10750 | cat >conftest.$ac_ext <<_ACEOF | |
10751 | /* confdefs.h. */ | |
10752 | _ACEOF | |
10753 | cat confdefs.h >>conftest.$ac_ext | |
10754 | cat >>conftest.$ac_ext <<_ACEOF | |
10755 | /* end confdefs.h. */ | |
10756 | ||
10757 | /* Override any GCC internal prototype to avoid an error. | |
10758 | Use char because int might match the return type of a GCC | |
10759 | builtin and then its argument prototype would still apply. */ | |
10760 | #ifdef __cplusplus | |
10761 | extern "C" | |
10762 | #endif | |
10763 | char dld_link (); | |
10764 | int | |
10765 | main () | |
10766 | { | |
10767 | return dld_link (); | |
10768 | ; | |
10769 | return 0; | |
10770 | } | |
10771 | _ACEOF | |
10772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10773 | if { (ac_try="$ac_link" | |
10774 | case "(($ac_try" in | |
10775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10776 | *) ac_try_echo=$ac_try;; | |
10777 | esac | |
10778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10779 | $as_echo "$ac_try_echo") >&5 | |
10780 | (eval "$ac_link") 2>conftest.er1 | |
10781 | ac_status=$? | |
10782 | grep -v '^ *+' conftest.er1 >conftest.err | |
10783 | rm -f conftest.er1 | |
10784 | cat conftest.err >&5 | |
10785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10786 | (exit $ac_status); } && { | |
10787 | test -z "$ac_c_werror_flag" || | |
10788 | test ! -s conftest.err | |
10789 | } && test -s conftest$ac_exeext && { | |
10790 | test "$cross_compiling" = yes || | |
10791 | $as_test_x conftest$ac_exeext | |
10792 | }; then | |
10793 | ac_cv_lib_dld_dld_link=yes | |
10794 | else | |
10795 | $as_echo "$as_me: failed program was:" >&5 | |
10796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10797 | ||
10798 | ac_cv_lib_dld_dld_link=no | |
10799 | fi | |
10800 | ||
10801 | rm -rf conftest.dSYM | |
10802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10803 | conftest$ac_exeext conftest.$ac_ext | |
10804 | LIBS=$ac_check_lib_save_LIBS | |
10805 | fi | |
10806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10807 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10808 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
10809 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10810 | fi | |
10811 | ||
10812 | ||
10813 | fi | |
10814 | ||
10815 | ||
10816 | fi | |
10817 | ||
10818 | ||
10819 | fi | |
10820 | ||
10821 | ||
10822 | fi | |
10823 | ||
10824 | ||
10825 | fi | |
10826 | ||
10827 | ;; | |
10828 | esac | |
10829 | ||
10830 | if test "x$lt_cv_dlopen" != xno; then | |
10831 | enable_dlopen=yes | |
10832 | else | |
10833 | enable_dlopen=no | |
10834 | fi | |
10835 | ||
10836 | case $lt_cv_dlopen in | |
10837 | dlopen) | |
10838 | save_CPPFLAGS="$CPPFLAGS" | |
10839 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10840 | ||
10841 | save_LDFLAGS="$LDFLAGS" | |
10842 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10843 | ||
10844 | save_LIBS="$LIBS" | |
10845 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10846 | ||
10847 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10848 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10849 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10850 | $as_echo_n "(cached) " >&6 | |
10851 | else | |
10852 | if test "$cross_compiling" = yes; then : | |
10853 | lt_cv_dlopen_self=cross | |
10854 | else | |
10855 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10856 | lt_status=$lt_dlunknown | |
10857 | cat > conftest.$ac_ext <<_LT_EOF | |
10858 | #line 10858 "configure" | |
10859 | #include "confdefs.h" | |
10860 | ||
10861 | #if HAVE_DLFCN_H | |
10862 | #include <dlfcn.h> | |
10863 | #endif | |
10864 | ||
10865 | #include <stdio.h> | |
10866 | ||
10867 | #ifdef RTLD_GLOBAL | |
10868 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10869 | #else | |
10870 | # ifdef DL_GLOBAL | |
10871 | # define LT_DLGLOBAL DL_GLOBAL | |
10872 | # else | |
10873 | # define LT_DLGLOBAL 0 | |
10874 | # endif | |
10875 | #endif | |
10876 | ||
10877 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10878 | find out it does not work in some platform. */ | |
10879 | #ifndef LT_DLLAZY_OR_NOW | |
10880 | # ifdef RTLD_LAZY | |
10881 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10882 | # else | |
10883 | # ifdef DL_LAZY | |
10884 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10885 | # else | |
10886 | # ifdef RTLD_NOW | |
10887 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10888 | # else | |
10889 | # ifdef DL_NOW | |
10890 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10891 | # else | |
10892 | # define LT_DLLAZY_OR_NOW 0 | |
10893 | # endif | |
10894 | # endif | |
10895 | # endif | |
10896 | # endif | |
10897 | #endif | |
10898 | ||
10899 | void fnord() { int i=42;} | |
10900 | int main () | |
10901 | { | |
10902 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10903 | int status = $lt_dlunknown; | |
10904 | ||
10905 | if (self) | |
10906 | { | |
10907 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10908 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10909 | /* dlclose (self); */ | |
10910 | } | |
10911 | else | |
10912 | puts (dlerror ()); | |
10913 | ||
10914 | return status; | |
10915 | } | |
10916 | _LT_EOF | |
10917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10918 | (eval $ac_link) 2>&5 | |
10919 | ac_status=$? | |
10920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10921 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10922 | (./conftest; exit; ) >&5 2>/dev/null | |
10923 | lt_status=$? | |
10924 | case x$lt_status in | |
10925 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10926 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10927 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10928 | esac | |
10929 | else : | |
10930 | # compilation failed | |
10931 | lt_cv_dlopen_self=no | |
10932 | fi | |
10933 | fi | |
10934 | rm -fr conftest* | |
10935 | ||
10936 | ||
10937 | fi | |
10938 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10939 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
10940 | ||
10941 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10942 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10943 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10944 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10945 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10946 | $as_echo_n "(cached) " >&6 | |
10947 | else | |
10948 | if test "$cross_compiling" = yes; then : | |
10949 | lt_cv_dlopen_self_static=cross | |
10950 | else | |
10951 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10952 | lt_status=$lt_dlunknown | |
10953 | cat > conftest.$ac_ext <<_LT_EOF | |
10954 | #line 10954 "configure" | |
10955 | #include "confdefs.h" | |
10956 | ||
10957 | #if HAVE_DLFCN_H | |
10958 | #include <dlfcn.h> | |
10959 | #endif | |
10960 | ||
10961 | #include <stdio.h> | |
10962 | ||
10963 | #ifdef RTLD_GLOBAL | |
10964 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10965 | #else | |
10966 | # ifdef DL_GLOBAL | |
10967 | # define LT_DLGLOBAL DL_GLOBAL | |
10968 | # else | |
10969 | # define LT_DLGLOBAL 0 | |
10970 | # endif | |
10971 | #endif | |
10972 | ||
10973 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10974 | find out it does not work in some platform. */ | |
10975 | #ifndef LT_DLLAZY_OR_NOW | |
10976 | # ifdef RTLD_LAZY | |
10977 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10978 | # else | |
10979 | # ifdef DL_LAZY | |
10980 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10981 | # else | |
10982 | # ifdef RTLD_NOW | |
10983 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10984 | # else | |
10985 | # ifdef DL_NOW | |
10986 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10987 | # else | |
10988 | # define LT_DLLAZY_OR_NOW 0 | |
10989 | # endif | |
10990 | # endif | |
10991 | # endif | |
10992 | # endif | |
10993 | #endif | |
10994 | ||
10995 | void fnord() { int i=42;} | |
10996 | int main () | |
10997 | { | |
10998 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10999 | int status = $lt_dlunknown; | |
11000 | ||
11001 | if (self) | |
11002 | { | |
11003 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11004 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11005 | /* dlclose (self); */ | |
11006 | } | |
11007 | else | |
11008 | puts (dlerror ()); | |
11009 | ||
11010 | return status; | |
11011 | } | |
11012 | _LT_EOF | |
11013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11014 | (eval $ac_link) 2>&5 | |
11015 | ac_status=$? | |
11016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11017 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11018 | (./conftest; exit; ) >&5 2>/dev/null | |
11019 | lt_status=$? | |
11020 | case x$lt_status in | |
11021 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11022 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11023 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11024 | esac | |
11025 | else : | |
11026 | # compilation failed | |
11027 | lt_cv_dlopen_self_static=no | |
11028 | fi | |
11029 | fi | |
11030 | rm -fr conftest* | |
11031 | ||
11032 | ||
11033 | fi | |
11034 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11035 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11036 | fi | |
11037 | ||
11038 | CPPFLAGS="$save_CPPFLAGS" | |
11039 | LDFLAGS="$save_LDFLAGS" | |
11040 | LIBS="$save_LIBS" | |
11041 | ;; | |
11042 | esac | |
11043 | ||
11044 | case $lt_cv_dlopen_self in | |
11045 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11046 | *) enable_dlopen_self=unknown ;; | |
11047 | esac | |
11048 | ||
11049 | case $lt_cv_dlopen_self_static in | |
11050 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11051 | *) enable_dlopen_self_static=unknown ;; | |
11052 | esac | |
11053 | fi | |
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | striplib= | |
11072 | old_striplib= | |
11073 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11074 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11075 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11076 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11077 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11078 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11079 | $as_echo "yes" >&6; } | |
11080 | else | |
11081 | # FIXME - insert some real tests, host_os isn't really good enough | |
11082 | case $host_os in | |
11083 | darwin*) | |
11084 | if test -n "$STRIP" ; then | |
11085 | striplib="$STRIP -x" | |
11086 | old_striplib="$STRIP -S" | |
11087 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11088 | $as_echo "yes" >&6; } | |
11089 | else | |
11090 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11091 | $as_echo "no" >&6; } | |
11092 | fi | |
11093 | ;; | |
11094 | *) | |
11095 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11096 | $as_echo "no" >&6; } | |
11097 | ;; | |
11098 | esac | |
11099 | fi | |
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | # Report which library types will actually be built | |
11113 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11114 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11115 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11116 | $as_echo "$can_build_shared" >&6; } | |
11117 | ||
11118 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11119 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11120 | test "$can_build_shared" = "no" && enable_shared=no | |
11121 | ||
11122 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11123 | # are all built from PIC. | |
11124 | case $host_os in | |
11125 | aix3*) | |
11126 | test "$enable_shared" = yes && enable_static=no | |
11127 | if test -n "$RANLIB"; then | |
11128 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11129 | postinstall_cmds='$RANLIB $lib' | |
11130 | fi | |
11131 | ;; | |
11132 | ||
11133 | aix[4-9]*) | |
11134 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11135 | test "$enable_shared" = yes && enable_static=no | |
11136 | fi | |
11137 | ;; | |
11138 | esac | |
11139 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11140 | $as_echo "$enable_shared" >&6; } | |
11141 | ||
11142 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11143 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11144 | # Make sure either enable_shared or enable_static is yes. | |
11145 | test "$enable_shared" = yes || enable_static=yes | |
11146 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11147 | $as_echo "$enable_static" >&6; } | |
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | fi | |
11153 | ac_ext=c | |
11154 | ac_cpp='$CPP $CPPFLAGS' | |
11155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11158 | ||
11159 | CC="$lt_save_CC" | |
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ac_config_commands="$ac_config_commands libtool" | |
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | # Only expand once: | |
11179 | ||
11180 | ||
11181 | ||
11182 | # Extract the first word of "doxygen", so it can be a program name with args. | |
11183 | set dummy doxygen; ac_word=$2 | |
11184 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11185 | $as_echo_n "checking for $ac_word... " >&6; } | |
11186 | if test "${ac_cv_prog_DOXYGEN+set}" = set; then | |
11187 | $as_echo_n "(cached) " >&6 | |
11188 | else | |
11189 | if test -n "$DOXYGEN"; then | |
11190 | ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | |
11191 | else | |
11192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11193 | for as_dir in $PATH | |
11194 | do | |
11195 | IFS=$as_save_IFS | |
11196 | test -z "$as_dir" && as_dir=. | |
11197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11199 | ac_cv_prog_DOXYGEN="true" | |
11200 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11201 | break 2 | |
11202 | fi | |
11203 | done | |
11204 | done | |
11205 | IFS=$as_save_IFS | |
11206 | ||
11207 | test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false" | |
11208 | fi | |
11209 | fi | |
11210 | DOXYGEN=$ac_cv_prog_DOXYGEN | |
11211 | if test -n "$DOXYGEN"; then | |
11212 | { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | |
11213 | $as_echo "$DOXYGEN" >&6; } | |
11214 | else | |
11215 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11216 | $as_echo "no" >&6; } | |
11217 | fi | |
11218 | ||
11219 | ||
11220 | if test "$DOXYGEN" = true; then | |
11221 | DOXYGEN_TRUE= | |
11222 | DOXYGEN_FALSE='#' | |
11223 | else | |
11224 | DOXYGEN_TRUE='#' | |
11225 | DOXYGEN_FALSE= | |
11226 | fi | |
11227 | ||
11228 | ||
11229 | # Checks for header files. | |
11230 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
11231 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
11232 | if test "${ac_cv_header_stdc+set}" = set; then | |
11233 | $as_echo_n "(cached) " >&6 | |
11234 | else | |
11235 | cat >conftest.$ac_ext <<_ACEOF | |
11236 | /* confdefs.h. */ | |
11237 | _ACEOF | |
11238 | cat confdefs.h >>conftest.$ac_ext | |
11239 | cat >>conftest.$ac_ext <<_ACEOF | |
11240 | /* end confdefs.h. */ | |
11241 | #include <stdlib.h> | |
11242 | #include <stdarg.h> | |
11243 | #include <string.h> | |
11244 | #include <float.h> | |
11245 | ||
11246 | int | |
11247 | main () | |
11248 | { | |
11249 | ||
11250 | ; | |
11251 | return 0; | |
11252 | } | |
11253 | _ACEOF | |
11254 | rm -f conftest.$ac_objext | |
11255 | if { (ac_try="$ac_compile" | |
11256 | case "(($ac_try" in | |
11257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11258 | *) ac_try_echo=$ac_try;; | |
11259 | esac | |
11260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11261 | $as_echo "$ac_try_echo") >&5 | |
11262 | (eval "$ac_compile") 2>conftest.er1 | |
11263 | ac_status=$? | |
11264 | grep -v '^ *+' conftest.er1 >conftest.err | |
11265 | rm -f conftest.er1 | |
11266 | cat conftest.err >&5 | |
11267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11268 | (exit $ac_status); } && { | |
11269 | test -z "$ac_c_werror_flag" || | |
11270 | test ! -s conftest.err | |
11271 | } && test -s conftest.$ac_objext; then | |
11272 | ac_cv_header_stdc=yes | |
11273 | else | |
11274 | $as_echo "$as_me: failed program was:" >&5 | |
11275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11276 | ||
11277 | ac_cv_header_stdc=no | |
11278 | fi | |
11279 | ||
11280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11281 | ||
11282 | if test $ac_cv_header_stdc = yes; then | |
11283 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11284 | cat >conftest.$ac_ext <<_ACEOF | |
11285 | /* confdefs.h. */ | |
11286 | _ACEOF | |
11287 | cat confdefs.h >>conftest.$ac_ext | |
11288 | cat >>conftest.$ac_ext <<_ACEOF | |
11289 | /* end confdefs.h. */ | |
11290 | #include <string.h> | |
11291 | ||
11292 | _ACEOF | |
11293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11294 | $EGREP "memchr" >/dev/null 2>&1; then | |
11295 | : | |
11296 | else | |
11297 | ac_cv_header_stdc=no | |
11298 | fi | |
11299 | rm -f conftest* | |
11300 | ||
11301 | fi | |
11302 | ||
11303 | if test $ac_cv_header_stdc = yes; then | |
11304 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11305 | cat >conftest.$ac_ext <<_ACEOF | |
11306 | /* confdefs.h. */ | |
11307 | _ACEOF | |
11308 | cat confdefs.h >>conftest.$ac_ext | |
11309 | cat >>conftest.$ac_ext <<_ACEOF | |
11310 | /* end confdefs.h. */ | |
11311 | #include <stdlib.h> | |
11312 | ||
11313 | _ACEOF | |
11314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11315 | $EGREP "free" >/dev/null 2>&1; then | |
11316 | : | |
11317 | else | |
11318 | ac_cv_header_stdc=no | |
11319 | fi | |
11320 | rm -f conftest* | |
11321 | ||
11322 | fi | |
11323 | ||
11324 | if test $ac_cv_header_stdc = yes; then | |
11325 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11326 | if test "$cross_compiling" = yes; then | |
11327 | : | |
11328 | else | |
11329 | cat >conftest.$ac_ext <<_ACEOF | |
11330 | /* confdefs.h. */ | |
11331 | _ACEOF | |
11332 | cat confdefs.h >>conftest.$ac_ext | |
11333 | cat >>conftest.$ac_ext <<_ACEOF | |
11334 | /* end confdefs.h. */ | |
11335 | #include <ctype.h> | |
11336 | #include <stdlib.h> | |
11337 | #if ((' ' & 0x0FF) == 0x020) | |
11338 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11339 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11340 | #else | |
11341 | # define ISLOWER(c) \ | |
11342 | (('a' <= (c) && (c) <= 'i') \ | |
11343 | || ('j' <= (c) && (c) <= 'r') \ | |
11344 | || ('s' <= (c) && (c) <= 'z')) | |
11345 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11346 | #endif | |
11347 | ||
11348 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11349 | int | |
11350 | main () | |
11351 | { | |
11352 | int i; | |
11353 | for (i = 0; i < 256; i++) | |
11354 | if (XOR (islower (i), ISLOWER (i)) | |
11355 | || toupper (i) != TOUPPER (i)) | |
11356 | return 2; | |
11357 | return 0; | |
11358 | } | |
11359 | _ACEOF | |
11360 | rm -f conftest$ac_exeext | |
11361 | if { (ac_try="$ac_link" | |
11362 | case "(($ac_try" in | |
11363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11364 | *) ac_try_echo=$ac_try;; | |
11365 | esac | |
11366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11367 | $as_echo "$ac_try_echo") >&5 | |
11368 | (eval "$ac_link") 2>&5 | |
11369 | ac_status=$? | |
11370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11372 | { (case "(($ac_try" in | |
11373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11374 | *) ac_try_echo=$ac_try;; | |
11375 | esac | |
11376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11377 | $as_echo "$ac_try_echo") >&5 | |
11378 | (eval "$ac_try") 2>&5 | |
11379 | ac_status=$? | |
11380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11381 | (exit $ac_status); }; }; then | |
11382 | : | |
11383 | else | |
11384 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
11385 | $as_echo "$as_me: failed program was:" >&5 | |
11386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11387 | ||
11388 | ( exit $ac_status ) | |
11389 | ac_cv_header_stdc=no | |
11390 | fi | |
11391 | rm -rf conftest.dSYM | |
11392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11393 | fi | |
11394 | ||
11395 | ||
11396 | fi | |
11397 | fi | |
11398 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11399 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11400 | if test $ac_cv_header_stdc = yes; then | |
11401 | ||
11402 | cat >>confdefs.h <<\_ACEOF | |
11403 | #define STDC_HEADERS 1 | |
11404 | _ACEOF | |
11405 | ||
11406 | fi | |
11407 | ||
11408 | ||
11409 | for ac_header in stdlib.h | |
11410 | do | |
11411 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11413 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11414 | $as_echo_n "checking for $ac_header... " >&6; } | |
11415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11416 | $as_echo_n "(cached) " >&6 | |
11417 | fi | |
11418 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11419 | $as_echo "$as_val"'` | |
11420 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11421 | $as_echo "$ac_res" >&6; } | |
11422 | else | |
11423 | # Is the header compilable? | |
11424 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11425 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11426 | cat >conftest.$ac_ext <<_ACEOF | |
11427 | /* confdefs.h. */ | |
11428 | _ACEOF | |
11429 | cat confdefs.h >>conftest.$ac_ext | |
11430 | cat >>conftest.$ac_ext <<_ACEOF | |
11431 | /* end confdefs.h. */ | |
11432 | $ac_includes_default | |
11433 | #include <$ac_header> | |
11434 | _ACEOF | |
11435 | rm -f conftest.$ac_objext | |
11436 | if { (ac_try="$ac_compile" | |
11437 | case "(($ac_try" in | |
11438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11439 | *) ac_try_echo=$ac_try;; | |
11440 | esac | |
11441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11442 | $as_echo "$ac_try_echo") >&5 | |
11443 | (eval "$ac_compile") 2>conftest.er1 | |
11444 | ac_status=$? | |
11445 | grep -v '^ *+' conftest.er1 >conftest.err | |
11446 | rm -f conftest.er1 | |
11447 | cat conftest.err >&5 | |
11448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11449 | (exit $ac_status); } && { | |
11450 | test -z "$ac_c_werror_flag" || | |
11451 | test ! -s conftest.err | |
11452 | } && test -s conftest.$ac_objext; then | |
11453 | ac_header_compiler=yes | |
11454 | else | |
11455 | $as_echo "$as_me: failed program was:" >&5 | |
11456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11457 | ||
11458 | ac_header_compiler=no | |
11459 | fi | |
11460 | ||
11461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11462 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11463 | $as_echo "$ac_header_compiler" >&6; } | |
11464 | ||
11465 | # Is the header present? | |
11466 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11467 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11468 | cat >conftest.$ac_ext <<_ACEOF | |
11469 | /* confdefs.h. */ | |
11470 | _ACEOF | |
11471 | cat confdefs.h >>conftest.$ac_ext | |
11472 | cat >>conftest.$ac_ext <<_ACEOF | |
11473 | /* end confdefs.h. */ | |
11474 | #include <$ac_header> | |
11475 | _ACEOF | |
11476 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11477 | case "(($ac_try" in | |
11478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11479 | *) ac_try_echo=$ac_try;; | |
11480 | esac | |
11481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11482 | $as_echo "$ac_try_echo") >&5 | |
11483 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11484 | ac_status=$? | |
11485 | grep -v '^ *+' conftest.er1 >conftest.err | |
11486 | rm -f conftest.er1 | |
11487 | cat conftest.err >&5 | |
11488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11489 | (exit $ac_status); } >/dev/null && { | |
11490 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11491 | test ! -s conftest.err | |
11492 | }; then | |
11493 | ac_header_preproc=yes | |
11494 | else | |
11495 | $as_echo "$as_me: failed program was:" >&5 | |
11496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11497 | ||
11498 | ac_header_preproc=no | |
11499 | fi | |
11500 | ||
11501 | rm -f conftest.err conftest.$ac_ext | |
11502 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11503 | $as_echo "$ac_header_preproc" >&6; } | |
11504 | ||
11505 | # So? What about this header? | |
11506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11507 | yes:no: ) | |
11508 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11509 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11510 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11511 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11512 | ac_header_preproc=yes | |
11513 | ;; | |
11514 | no:yes:* ) | |
11515 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11516 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11517 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11518 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11519 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11520 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11521 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11522 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11523 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11524 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11525 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11526 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11527 | ( cat <<\_ASBOX | |
11528 | ## ------------------------------------------------------------ ## | |
11529 | ## Report this to http://pyyaml.org/newticket?component=libyaml ## | |
11530 | ## ------------------------------------------------------------ ## | |
11531 | _ASBOX | |
11532 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11533 | ;; | |
11534 | esac | |
11535 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11536 | $as_echo_n "checking for $ac_header... " >&6; } | |
11537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11538 | $as_echo_n "(cached) " >&6 | |
11539 | else | |
11540 | eval "$as_ac_Header=\$ac_header_preproc" | |
11541 | fi | |
11542 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11543 | $as_echo "$as_val"'` | |
11544 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11545 | $as_echo "$ac_res" >&6; } | |
11546 | ||
11547 | fi | |
11548 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11549 | $as_echo "$as_val"'` | |
11550 | if test "x$as_val" = x""yes; then | |
11551 | cat >>confdefs.h <<_ACEOF | |
11552 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11553 | _ACEOF | |
11554 | ||
11555 | fi | |
11556 | ||
11557 | done | |
11558 | ||
11559 | ||
11560 | # Checks for typedefs, structures, and compiler characteristics. | |
11561 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
11562 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
11563 | if test "${ac_cv_c_const+set}" = set; then | |
11564 | $as_echo_n "(cached) " >&6 | |
11565 | else | |
11566 | cat >conftest.$ac_ext <<_ACEOF | |
11567 | /* confdefs.h. */ | |
11568 | _ACEOF | |
11569 | cat confdefs.h >>conftest.$ac_ext | |
11570 | cat >>conftest.$ac_ext <<_ACEOF | |
11571 | /* end confdefs.h. */ | |
11572 | ||
11573 | int | |
11574 | main () | |
11575 | { | |
11576 | /* FIXME: Include the comments suggested by Paul. */ | |
11577 | #ifndef __cplusplus | |
11578 | /* Ultrix mips cc rejects this. */ | |
11579 | typedef int charset[2]; | |
11580 | const charset cs; | |
11581 | /* SunOS 4.1.1 cc rejects this. */ | |
11582 | char const *const *pcpcc; | |
11583 | char **ppc; | |
11584 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11585 | struct point {int x, y;}; | |
11586 | static struct point const zero = {0,0}; | |
11587 | /* AIX XL C 1.02.0.0 rejects this. | |
11588 | It does not let you subtract one const X* pointer from another in | |
11589 | an arm of an if-expression whose if-part is not a constant | |
11590 | expression */ | |
11591 | const char *g = "string"; | |
11592 | pcpcc = &g + (g ? g-g : 0); | |
11593 | /* HPUX 7.0 cc rejects these. */ | |
11594 | ++pcpcc; | |
11595 | ppc = (char**) pcpcc; | |
11596 | pcpcc = (char const *const *) ppc; | |
11597 | { /* SCO 3.2v4 cc rejects this. */ | |
11598 | char *t; | |
11599 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11600 | ||
11601 | *t++ = 0; | |
11602 | if (s) return 0; | |
11603 | } | |
11604 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11605 | int x[] = {25, 17}; | |
11606 | const int *foo = &x[0]; | |
11607 | ++foo; | |
11608 | } | |
11609 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11610 | typedef const int *iptr; | |
11611 | iptr p = 0; | |
11612 | ++p; | |
11613 | } | |
11614 | { /* AIX XL C 1.02.0.0 rejects this saying | |
11615 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11616 | struct s { int j; const int *ap[3]; }; | |
11617 | struct s *b; b->j = 5; | |
11618 | } | |
11619 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11620 | const int foo = 10; | |
11621 | if (!foo) return 0; | |
11622 | } | |
11623 | return !cs[0] && !zero.x; | |
11624 | #endif | |
11625 | ||
11626 | ; | |
11627 | return 0; | |
11628 | } | |
11629 | _ACEOF | |
11630 | rm -f conftest.$ac_objext | |
11631 | if { (ac_try="$ac_compile" | |
11632 | case "(($ac_try" in | |
11633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11634 | *) ac_try_echo=$ac_try;; | |
11635 | esac | |
11636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11637 | $as_echo "$ac_try_echo") >&5 | |
11638 | (eval "$ac_compile") 2>conftest.er1 | |
11639 | ac_status=$? | |
11640 | grep -v '^ *+' conftest.er1 >conftest.err | |
11641 | rm -f conftest.er1 | |
11642 | cat conftest.err >&5 | |
11643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11644 | (exit $ac_status); } && { | |
11645 | test -z "$ac_c_werror_flag" || | |
11646 | test ! -s conftest.err | |
11647 | } && test -s conftest.$ac_objext; then | |
11648 | ac_cv_c_const=yes | |
11649 | else | |
11650 | $as_echo "$as_me: failed program was:" >&5 | |
11651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11652 | ||
11653 | ac_cv_c_const=no | |
11654 | fi | |
11655 | ||
11656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11657 | fi | |
11658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
11659 | $as_echo "$ac_cv_c_const" >&6; } | |
11660 | if test $ac_cv_c_const = no; then | |
11661 | ||
11662 | cat >>confdefs.h <<\_ACEOF | |
11663 | #define const /**/ | |
11664 | _ACEOF | |
11665 | ||
11666 | fi | |
11667 | ||
11668 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
11669 | $as_echo_n "checking for size_t... " >&6; } | |
11670 | if test "${ac_cv_type_size_t+set}" = set; then | |
11671 | $as_echo_n "(cached) " >&6 | |
11672 | else | |
11673 | ac_cv_type_size_t=no | |
11674 | cat >conftest.$ac_ext <<_ACEOF | |
11675 | /* confdefs.h. */ | |
11676 | _ACEOF | |
11677 | cat confdefs.h >>conftest.$ac_ext | |
11678 | cat >>conftest.$ac_ext <<_ACEOF | |
11679 | /* end confdefs.h. */ | |
11680 | $ac_includes_default | |
11681 | int | |
11682 | main () | |
11683 | { | |
11684 | if (sizeof (size_t)) | |
11685 | return 0; | |
11686 | ; | |
11687 | return 0; | |
11688 | } | |
11689 | _ACEOF | |
11690 | rm -f conftest.$ac_objext | |
11691 | if { (ac_try="$ac_compile" | |
11692 | case "(($ac_try" in | |
11693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11694 | *) ac_try_echo=$ac_try;; | |
11695 | esac | |
11696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11697 | $as_echo "$ac_try_echo") >&5 | |
11698 | (eval "$ac_compile") 2>conftest.er1 | |
11699 | ac_status=$? | |
11700 | grep -v '^ *+' conftest.er1 >conftest.err | |
11701 | rm -f conftest.er1 | |
11702 | cat conftest.err >&5 | |
11703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11704 | (exit $ac_status); } && { | |
11705 | test -z "$ac_c_werror_flag" || | |
11706 | test ! -s conftest.err | |
11707 | } && test -s conftest.$ac_objext; then | |
11708 | cat >conftest.$ac_ext <<_ACEOF | |
11709 | /* confdefs.h. */ | |
11710 | _ACEOF | |
11711 | cat confdefs.h >>conftest.$ac_ext | |
11712 | cat >>conftest.$ac_ext <<_ACEOF | |
11713 | /* end confdefs.h. */ | |
11714 | $ac_includes_default | |
11715 | int | |
11716 | main () | |
11717 | { | |
11718 | if (sizeof ((size_t))) | |
11719 | return 0; | |
11720 | ; | |
11721 | return 0; | |
11722 | } | |
11723 | _ACEOF | |
11724 | rm -f conftest.$ac_objext | |
11725 | if { (ac_try="$ac_compile" | |
11726 | case "(($ac_try" in | |
11727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11728 | *) ac_try_echo=$ac_try;; | |
11729 | esac | |
11730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11731 | $as_echo "$ac_try_echo") >&5 | |
11732 | (eval "$ac_compile") 2>conftest.er1 | |
11733 | ac_status=$? | |
11734 | grep -v '^ *+' conftest.er1 >conftest.err | |
11735 | rm -f conftest.er1 | |
11736 | cat conftest.err >&5 | |
11737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 | (exit $ac_status); } && { | |
11739 | test -z "$ac_c_werror_flag" || | |
11740 | test ! -s conftest.err | |
11741 | } && test -s conftest.$ac_objext; then | |
11742 | : | |
11743 | else | |
11744 | $as_echo "$as_me: failed program was:" >&5 | |
11745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11746 | ||
11747 | ac_cv_type_size_t=yes | |
11748 | fi | |
11749 | ||
11750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11751 | else | |
11752 | $as_echo "$as_me: failed program was:" >&5 | |
11753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11754 | ||
11755 | ||
11756 | fi | |
11757 | ||
11758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11759 | fi | |
11760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
11761 | $as_echo "$ac_cv_type_size_t" >&6; } | |
11762 | if test "x$ac_cv_type_size_t" = x""yes; then | |
11763 | : | |
11764 | else | |
11765 | ||
11766 | cat >>confdefs.h <<_ACEOF | |
11767 | #define size_t unsigned int | |
11768 | _ACEOF | |
11769 | ||
11770 | fi | |
11771 | ||
11772 | ||
11773 | # Define Makefiles. | |
11774 | ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile" | |
11775 | ||
11776 | ||
11777 | # Generate the "configure" script. | |
11778 | cat >confcache <<\_ACEOF | |
11779 | # This file is a shell script that caches the results of configure | |
11780 | # tests run on this system so they can be shared between configure | |
11781 | # scripts and configure runs, see configure's option --config-cache. | |
11782 | # It is not useful on other systems. If it contains results you don't | |
11783 | # want to keep, you may remove or edit it. | |
11784 | # | |
11785 | # config.status only pays attention to the cache file if you give it | |
11786 | # the --recheck option to rerun configure. | |
11787 | # | |
11788 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11789 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11790 | # following values. | |
11791 | ||
11792 | _ACEOF | |
11793 | ||
11794 | # The following way of writing the cache mishandles newlines in values, | |
11795 | # but we know of no workaround that is simple, portable, and efficient. | |
11796 | # So, we kill variables containing newlines. | |
11797 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11798 | # and sets the high bit in the cache file unless we assign to the vars. | |
11799 | ( | |
11800 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11801 | eval ac_val=\$$ac_var | |
11802 | case $ac_val in #( | |
11803 | *${as_nl}*) | |
11804 | case $ac_var in #( | |
11805 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
11806 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11807 | esac | |
11808 | case $ac_var in #( | |
11809 | _ | IFS | as_nl) ;; #( | |
11810 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11811 | *) $as_unset $ac_var ;; | |
11812 | esac ;; | |
11813 | esac | |
11814 | done | |
11815 | ||
11816 | (set) 2>&1 | | |
11817 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11818 | *${as_nl}ac_space=\ *) | |
11819 | # `set' does not quote correctly, so add quotes (double-quote | |
11820 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11821 | sed -n \ | |
11822 | "s/'/'\\\\''/g; | |
11823 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11824 | ;; #( | |
11825 | *) | |
11826 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11827 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11828 | ;; | |
11829 | esac | | |
11830 | sort | |
11831 | ) | | |
11832 | sed ' | |
11833 | /^ac_cv_env_/b end | |
11834 | t clear | |
11835 | :clear | |
11836 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11837 | t end | |
11838 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11839 | :end' >>confcache | |
11840 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11841 | if test -w "$cache_file"; then | |
11842 | test "x$cache_file" != "x/dev/null" && | |
11843 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
11844 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11845 | cat confcache >$cache_file | |
11846 | else | |
11847 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
11848 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11849 | fi | |
11850 | fi | |
11851 | rm -f confcache | |
11852 | ||
11853 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11854 | # Let make expand exec_prefix. | |
11855 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11856 | ||
11857 | DEFS=-DHAVE_CONFIG_H | |
11858 | ||
11859 | ac_libobjs= | |
11860 | ac_ltlibobjs= | |
11861 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11862 | # 1. Remove the extension, and $U if already installed. | |
11863 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11864 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11865 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11866 | # will be set to the directory where LIBOBJS objects are built. | |
11867 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11868 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
11869 | done | |
11870 | LIBOBJS=$ac_libobjs | |
11871 | ||
11872 | LTLIBOBJS=$ac_ltlibobjs | |
11873 | ||
11874 | ||
11875 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11876 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11877 | Usually this means the macro was only invoked conditionally." >&5 | |
11878 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11879 | Usually this means the macro was only invoked conditionally." >&2;} | |
11880 | { (exit 1); exit 1; }; } | |
11881 | fi | |
11882 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11883 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11884 | Usually this means the macro was only invoked conditionally." >&5 | |
11885 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11886 | Usually this means the macro was only invoked conditionally." >&2;} | |
11887 | { (exit 1); exit 1; }; } | |
11888 | fi | |
11889 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then | |
11890 | { { $as_echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. | |
11891 | Usually this means the macro was only invoked conditionally." >&5 | |
11892 | $as_echo "$as_me: error: conditional \"DOXYGEN\" was never defined. | |
11893 | Usually this means the macro was only invoked conditionally." >&2;} | |
11894 | { (exit 1); exit 1; }; } | |
11895 | fi | |
11896 | ||
11897 | : ${CONFIG_STATUS=./config.status} | |
11898 | ac_write_fail=0 | |
11899 | ac_clean_files_save=$ac_clean_files | |
11900 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11901 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11902 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11903 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11904 | #! $SHELL | |
11905 | # Generated by $as_me. | |
11906 | # Run this file to recreate the current configuration. | |
11907 | # Compiler output produced by configure, useful for debugging | |
11908 | # configure, is in config.log if it exists. | |
11909 | ||
11910 | debug=false | |
11911 | ac_cs_recheck=false | |
11912 | ac_cs_silent=false | |
11913 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11914 | _ACEOF | |
11915 | ||
11916 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11917 | ## --------------------- ## | |
11918 | ## M4sh Initialization. ## | |
11919 | ## --------------------- ## | |
11920 | ||
11921 | # Be more Bourne compatible | |
11922 | DUALCASE=1; export DUALCASE # for MKS sh | |
11923 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11924 | emulate sh | |
11925 | NULLCMD=: | |
11926 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11927 | # is contrary to our usage. Disable this feature. | |
11928 | alias -g '${1+"$@"}'='"$@"' | |
11929 | setopt NO_GLOB_SUBST | |
11930 | else | |
11931 | case `(set -o) 2>/dev/null` in | |
11932 | *posix*) set -o posix ;; | |
11933 | esac | |
11934 | ||
11935 | fi | |
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | # PATH needs CR | |
11941 | # Avoid depending upon Character Ranges. | |
11942 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11943 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11944 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11945 | as_cr_digits='0123456789' | |
11946 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11947 | ||
11948 | as_nl=' | |
11949 | ' | |
11950 | export as_nl | |
11951 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11952 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11953 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11954 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11955 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11956 | as_echo='printf %s\n' | |
11957 | as_echo_n='printf %s' | |
11958 | else | |
11959 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11960 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11961 | as_echo_n='/usr/ucb/echo -n' | |
11962 | else | |
11963 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11964 | as_echo_n_body='eval | |
11965 | arg=$1; | |
11966 | case $arg in | |
11967 | *"$as_nl"*) | |
11968 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11969 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11970 | esac; | |
11971 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11972 | ' | |
11973 | export as_echo_n_body | |
11974 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
11975 | fi | |
11976 | export as_echo_body | |
11977 | as_echo='sh -c $as_echo_body as_echo' | |
11978 | fi | |
11979 | ||
11980 | # The user is always right. | |
11981 | if test "${PATH_SEPARATOR+set}" != set; then | |
11982 | PATH_SEPARATOR=: | |
11983 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11984 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11985 | PATH_SEPARATOR=';' | |
11986 | } | |
11987 | fi | |
11988 | ||
11989 | # Support unset when possible. | |
11990 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11991 | as_unset=unset | |
11992 | else | |
11993 | as_unset=false | |
11994 | fi | |
11995 | ||
11996 | ||
11997 | # IFS | |
11998 | # We need space, tab and new line, in precisely that order. Quoting is | |
11999 | # there to prevent editors from complaining about space-tab. | |
12000 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12001 | # splitting by setting IFS to empty value.) | |
12002 | IFS=" "" $as_nl" | |
12003 | ||
12004 | # Find who we are. Look in the path if we contain no directory separator. | |
12005 | case $0 in | |
12006 | *[\\/]* ) as_myself=$0 ;; | |
12007 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12008 | for as_dir in $PATH | |
12009 | do | |
12010 | IFS=$as_save_IFS | |
12011 | test -z "$as_dir" && as_dir=. | |
12012 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12013 | done | |
12014 | IFS=$as_save_IFS | |
12015 | ||
12016 | ;; | |
12017 | esac | |
12018 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12019 | # in which case we are not to be found in the path. | |
12020 | if test "x$as_myself" = x; then | |
12021 | as_myself=$0 | |
12022 | fi | |
12023 | if test ! -f "$as_myself"; then | |
12024 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12025 | { (exit 1); exit 1; } | |
12026 | fi | |
12027 | ||
12028 | # Work around bugs in pre-3.0 UWIN ksh. | |
12029 | for as_var in ENV MAIL MAILPATH | |
12030 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12031 | done | |
12032 | PS1='$ ' | |
12033 | PS2='> ' | |
12034 | PS4='+ ' | |
12035 | ||
12036 | # NLS nuisances. | |
12037 | LC_ALL=C | |
12038 | export LC_ALL | |
12039 | LANGUAGE=C | |
12040 | export LANGUAGE | |
12041 | ||
12042 | # Required to use basename. | |
12043 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12044 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12045 | as_expr=expr | |
12046 | else | |
12047 | as_expr=false | |
12048 | fi | |
12049 | ||
12050 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12051 | as_basename=basename | |
12052 | else | |
12053 | as_basename=false | |
12054 | fi | |
12055 | ||
12056 | ||
12057 | # Name of the executable. | |
12058 | as_me=`$as_basename -- "$0" || | |
12059 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12060 | X"$0" : 'X\(//\)$' \| \ | |
12061 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12062 | $as_echo X/"$0" | | |
12063 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12064 | s//\1/ | |
12065 | q | |
12066 | } | |
12067 | /^X\/\(\/\/\)$/{ | |
12068 | s//\1/ | |
12069 | q | |
12070 | } | |
12071 | /^X\/\(\/\).*/{ | |
12072 | s//\1/ | |
12073 | q | |
12074 | } | |
12075 | s/.*/./; q'` | |
12076 | ||
12077 | # CDPATH. | |
12078 | $as_unset CDPATH | |
12079 | ||
12080 | ||
12081 | ||
12082 | as_lineno_1=$LINENO | |
12083 | as_lineno_2=$LINENO | |
12084 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12085 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
12086 | ||
12087 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12088 | # uniformly replaced by the line number. The first 'sed' inserts a | |
12089 | # line-number line after each line using $LINENO; the second 'sed' | |
12090 | # does the real work. The second script uses 'N' to pair each | |
12091 | # line-number line with the line containing $LINENO, and appends | |
12092 | # trailing '-' during substitution so that $LINENO is not a special | |
12093 | # case at line end. | |
12094 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
12095 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
12096 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12097 | sed -n ' | |
12098 | p | |
12099 | /[$]LINENO/= | |
12100 | ' <$as_myself | | |
12101 | sed ' | |
12102 | s/[$]LINENO.*/&-/ | |
12103 | t lineno | |
12104 | b | |
12105 | :lineno | |
12106 | N | |
12107 | :loop | |
12108 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
12109 | t loop | |
12110 | s/-\n.*// | |
12111 | ' >$as_me.lineno && | |
12112 | chmod +x "$as_me.lineno" || | |
12113 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
12114 | { (exit 1); exit 1; }; } | |
12115 | ||
12116 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12117 | # (the dirname of $[0] is not the place where we might find the | |
12118 | # original and so on. Autoconf is especially sensitive to this). | |
12119 | . "./$as_me.lineno" | |
12120 | # Exit status is that of the last command. | |
12121 | exit | |
12122 | } | |
12123 | ||
12124 | ||
12125 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12126 | as_dirname=dirname | |
12127 | else | |
12128 | as_dirname=false | |
12129 | fi | |
12130 | ||
12131 | ECHO_C= ECHO_N= ECHO_T= | |
12132 | case `echo -n x` in | |
12133 | -n*) | |
12134 | case `echo 'x\c'` in | |
12135 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12136 | *) ECHO_C='\c';; | |
12137 | esac;; | |
12138 | *) | |
12139 | ECHO_N='-n';; | |
12140 | esac | |
12141 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12142 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12143 | as_expr=expr | |
12144 | else | |
12145 | as_expr=false | |
12146 | fi | |
12147 | ||
12148 | rm -f conf$$ conf$$.exe conf$$.file | |
12149 | if test -d conf$$.dir; then | |
12150 | rm -f conf$$.dir/conf$$.file | |
12151 | else | |
12152 | rm -f conf$$.dir | |
12153 | mkdir conf$$.dir 2>/dev/null | |
12154 | fi | |
12155 | if (echo >conf$$.file) 2>/dev/null; then | |
12156 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12157 | as_ln_s='ln -s' | |
12158 | # ... but there are two gotchas: | |
12159 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12160 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12161 | # In both cases, we have to default to `cp -p'. | |
12162 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12163 | as_ln_s='cp -p' | |
12164 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12165 | as_ln_s=ln | |
12166 | else | |
12167 | as_ln_s='cp -p' | |
12168 | fi | |
12169 | else | |
12170 | as_ln_s='cp -p' | |
12171 | fi | |
12172 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12173 | rmdir conf$$.dir 2>/dev/null | |
12174 | ||
12175 | if mkdir -p . 2>/dev/null; then | |
12176 | as_mkdir_p=: | |
12177 | else | |
12178 | test -d ./-p && rmdir ./-p | |
12179 | as_mkdir_p=false | |
12180 | fi | |
12181 | ||
12182 | if test -x / >/dev/null 2>&1; then | |
12183 | as_test_x='test -x' | |
12184 | else | |
12185 | if ls -dL / >/dev/null 2>&1; then | |
12186 | as_ls_L_option=L | |
12187 | else | |
12188 | as_ls_L_option= | |
12189 | fi | |
12190 | as_test_x=' | |
12191 | eval sh -c '\'' | |
12192 | if test -d "$1"; then | |
12193 | test -d "$1/."; | |
12194 | else | |
12195 | case $1 in | |
12196 | -*)set "./$1";; | |
12197 | esac; | |
12198 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12199 | ???[sx]*):;;*)false;;esac;fi | |
12200 | '\'' sh | |
12201 | ' | |
12202 | fi | |
12203 | as_executable_p=$as_test_x | |
12204 | ||
12205 | # Sed expression to map a string onto a valid CPP name. | |
12206 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12207 | ||
12208 | # Sed expression to map a string onto a valid variable name. | |
12209 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12210 | ||
12211 | ||
12212 | exec 6>&1 | |
12213 | ||
12214 | # Save the log message, to keep $[0] and so on meaningful, and to | |
12215 | # report actual input values of CONFIG_FILES etc. instead of their | |
12216 | # values after options handling. | |
12217 | ac_log=" | |
12218 | This file was extended by yaml $as_me 0.1.3, which was | |
12219 | generated by GNU Autoconf 2.63. Invocation command line was | |
12220 | ||
12221 | CONFIG_FILES = $CONFIG_FILES | |
12222 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12223 | CONFIG_LINKS = $CONFIG_LINKS | |
12224 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12225 | $ $0 $@ | |
12226 | ||
12227 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12228 | " | |
12229 | ||
12230 | _ACEOF | |
12231 | ||
12232 | case $ac_config_files in *" | |
12233 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12234 | esac | |
12235 | ||
12236 | case $ac_config_headers in *" | |
12237 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12238 | esac | |
12239 | ||
12240 | ||
12241 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12242 | # Files that config.status was made for. | |
12243 | config_files="$ac_config_files" | |
12244 | config_headers="$ac_config_headers" | |
12245 | config_commands="$ac_config_commands" | |
12246 | ||
12247 | _ACEOF | |
12248 | ||
12249 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12250 | ac_cs_usage="\ | |
12251 | \`$as_me' instantiates files from templates according to the | |
12252 | current configuration. | |
12253 | ||
12254 | Usage: $0 [OPTION]... [FILE]... | |
12255 | ||
12256 | -h, --help print this help, then exit | |
12257 | -V, --version print version number and configuration settings, then exit | |
12258 | -q, --quiet, --silent | |
12259 | do not print progress messages | |
12260 | -d, --debug don't remove temporary files | |
12261 | --recheck update $as_me by reconfiguring in the same conditions | |
12262 | --file=FILE[:TEMPLATE] | |
12263 | instantiate the configuration file FILE | |
12264 | --header=FILE[:TEMPLATE] | |
12265 | instantiate the configuration header FILE | |
12266 | ||
12267 | Configuration files: | |
12268 | $config_files | |
12269 | ||
12270 | Configuration headers: | |
12271 | $config_headers | |
12272 | ||
12273 | Configuration commands: | |
12274 | $config_commands | |
12275 | ||
12276 | Report bugs to <bug-autoconf@gnu.org>." | |
12277 | ||
12278 | _ACEOF | |
12279 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12280 | ac_cs_version="\\ | |
12281 | yaml config.status 0.1.3 | |
12282 | configured by $0, generated by GNU Autoconf 2.63, | |
12283 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
12284 | ||
12285 | Copyright (C) 2008 Free Software Foundation, Inc. | |
12286 | This config.status script is free software; the Free Software Foundation | |
12287 | gives unlimited permission to copy, distribute and modify it." | |
12288 | ||
12289 | ac_pwd='$ac_pwd' | |
12290 | srcdir='$srcdir' | |
12291 | INSTALL='$INSTALL' | |
12292 | MKDIR_P='$MKDIR_P' | |
12293 | AWK='$AWK' | |
12294 | test -n "\$AWK" || AWK=awk | |
12295 | _ACEOF | |
12296 | ||
12297 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12298 | # The default lists apply if the user does not specify any file. | |
12299 | ac_need_defaults=: | |
12300 | while test $# != 0 | |
12301 | do | |
12302 | case $1 in | |
12303 | --*=*) | |
12304 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12305 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12306 | ac_shift=: | |
12307 | ;; | |
12308 | *) | |
12309 | ac_option=$1 | |
12310 | ac_optarg=$2 | |
12311 | ac_shift=shift | |
12312 | ;; | |
12313 | esac | |
12314 | ||
12315 | case $ac_option in | |
12316 | # Handling of the options. | |
12317 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12318 | ac_cs_recheck=: ;; | |
12319 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12320 | $as_echo "$ac_cs_version"; exit ;; | |
12321 | --debug | --debu | --deb | --de | --d | -d ) | |
12322 | debug=: ;; | |
12323 | --file | --fil | --fi | --f ) | |
12324 | $ac_shift | |
12325 | case $ac_optarg in | |
12326 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12327 | esac | |
12328 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
12329 | ac_need_defaults=false;; | |
12330 | --header | --heade | --head | --hea ) | |
12331 | $ac_shift | |
12332 | case $ac_optarg in | |
12333 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12334 | esac | |
12335 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
12336 | ac_need_defaults=false;; | |
12337 | --he | --h) | |
12338 | # Conflict between --help and --header | |
12339 | { $as_echo "$as_me: error: ambiguous option: $1 | |
12340 | Try \`$0 --help' for more information." >&2 | |
12341 | { (exit 1); exit 1; }; };; | |
12342 | --help | --hel | -h ) | |
12343 | $as_echo "$ac_cs_usage"; exit ;; | |
12344 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12345 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12346 | ac_cs_silent=: ;; | |
12347 | ||
12348 | # This is an error. | |
12349 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
12350 | Try \`$0 --help' for more information." >&2 | |
12351 | { (exit 1); exit 1; }; } ;; | |
12352 | ||
12353 | *) ac_config_targets="$ac_config_targets $1" | |
12354 | ac_need_defaults=false ;; | |
12355 | ||
12356 | esac | |
12357 | shift | |
12358 | done | |
12359 | ||
12360 | ac_configure_extra_args= | |
12361 | ||
12362 | if $ac_cs_silent; then | |
12363 | exec 6>/dev/null | |
12364 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12365 | fi | |
12366 | ||
12367 | _ACEOF | |
12368 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12369 | if \$ac_cs_recheck; then | |
12370 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12371 | shift | |
12372 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12373 | CONFIG_SHELL='$SHELL' | |
12374 | export CONFIG_SHELL | |
12375 | exec "\$@" | |
12376 | fi | |
12377 | ||
12378 | _ACEOF | |
12379 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12380 | exec 5>>config.log | |
12381 | { | |
12382 | echo | |
12383 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12384 | ## Running $as_me. ## | |
12385 | _ASBOX | |
12386 | $as_echo "$ac_log" | |
12387 | } >&5 | |
12388 | ||
12389 | _ACEOF | |
12390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12391 | # | |
12392 | # INIT-COMMANDS | |
12393 | # | |
12394 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12395 | ||
12396 | ||
12397 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12398 | # if CDPATH is set. | |
12399 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12400 | ||
12401 | sed_quote_subst='$sed_quote_subst' | |
12402 | double_quote_subst='$double_quote_subst' | |
12403 | delay_variable_subst='$delay_variable_subst' | |
12404 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12405 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12406 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12407 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12408 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12409 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12410 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12411 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12412 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12413 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12414 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12415 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12416 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12417 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12418 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12419 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12420 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12421 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12422 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12423 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12424 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12425 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12426 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12427 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12428 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12429 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12430 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12431 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12432 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
12433 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12434 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12435 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12436 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12437 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12438 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12439 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12440 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12441 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12442 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12443 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12444 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12445 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12446 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12447 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12448 | 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"`' | |
12449 | 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"`' | |
12450 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12451 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12452 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12453 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12454 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12455 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12456 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12457 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12458 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12459 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
12460 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
12461 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
12462 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
12463 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
12464 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
12465 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
12466 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12467 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12468 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12469 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12470 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12471 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12472 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12473 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12474 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12475 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12476 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12477 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12478 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12479 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12480 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12481 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12482 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12483 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12484 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12485 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12486 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12487 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12488 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12489 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12490 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12491 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12492 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12493 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12494 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12495 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12496 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12497 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12498 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12499 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12500 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12501 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12502 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12503 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12504 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12505 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12506 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12507 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12508 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12509 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12510 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12511 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12512 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12513 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12514 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12515 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12516 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12517 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12518 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12519 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12520 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12521 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12522 | ||
12523 | LTCC='$LTCC' | |
12524 | LTCFLAGS='$LTCFLAGS' | |
12525 | compiler='$compiler_DEFAULT' | |
12526 | ||
12527 | # Quote evaled strings. | |
12528 | for var in SED \ | |
12529 | GREP \ | |
12530 | EGREP \ | |
12531 | FGREP \ | |
12532 | LD \ | |
12533 | NM \ | |
12534 | LN_S \ | |
12535 | lt_SP2NL \ | |
12536 | lt_NL2SP \ | |
12537 | reload_flag \ | |
12538 | OBJDUMP \ | |
12539 | deplibs_check_method \ | |
12540 | file_magic_cmd \ | |
12541 | AR \ | |
12542 | AR_FLAGS \ | |
12543 | STRIP \ | |
12544 | RANLIB \ | |
12545 | CC \ | |
12546 | CFLAGS \ | |
12547 | compiler \ | |
12548 | lt_cv_sys_global_symbol_pipe \ | |
12549 | lt_cv_sys_global_symbol_to_cdecl \ | |
12550 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12551 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12552 | SHELL \ | |
12553 | ECHO \ | |
12554 | lt_prog_compiler_no_builtin_flag \ | |
12555 | lt_prog_compiler_wl \ | |
12556 | lt_prog_compiler_pic \ | |
12557 | lt_prog_compiler_static \ | |
12558 | lt_cv_prog_compiler_c_o \ | |
12559 | need_locks \ | |
12560 | DSYMUTIL \ | |
12561 | NMEDIT \ | |
12562 | LIPO \ | |
12563 | OTOOL \ | |
12564 | OTOOL64 \ | |
12565 | shrext_cmds \ | |
12566 | export_dynamic_flag_spec \ | |
12567 | whole_archive_flag_spec \ | |
12568 | compiler_needs_object \ | |
12569 | with_gnu_ld \ | |
12570 | allow_undefined_flag \ | |
12571 | no_undefined_flag \ | |
12572 | hardcode_libdir_flag_spec \ | |
12573 | hardcode_libdir_flag_spec_ld \ | |
12574 | hardcode_libdir_separator \ | |
12575 | fix_srcfile_path \ | |
12576 | exclude_expsyms \ | |
12577 | include_expsyms \ | |
12578 | file_list_spec \ | |
12579 | variables_saved_for_relink \ | |
12580 | libname_spec \ | |
12581 | library_names_spec \ | |
12582 | soname_spec \ | |
12583 | finish_eval \ | |
12584 | old_striplib \ | |
12585 | striplib; do | |
12586 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12587 | *[\\\\\\\`\\"\\\$]*) | |
12588 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12589 | ;; | |
12590 | *) | |
12591 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12592 | ;; | |
12593 | esac | |
12594 | done | |
12595 | ||
12596 | # Double-quote double-evaled strings. | |
12597 | for var in reload_cmds \ | |
12598 | old_postinstall_cmds \ | |
12599 | old_postuninstall_cmds \ | |
12600 | old_archive_cmds \ | |
12601 | extract_expsyms_cmds \ | |
12602 | old_archive_from_new_cmds \ | |
12603 | old_archive_from_expsyms_cmds \ | |
12604 | archive_cmds \ | |
12605 | archive_expsym_cmds \ | |
12606 | module_cmds \ | |
12607 | module_expsym_cmds \ | |
12608 | export_symbols_cmds \ | |
12609 | prelink_cmds \ | |
12610 | postinstall_cmds \ | |
12611 | postuninstall_cmds \ | |
12612 | finish_cmds \ | |
12613 | sys_lib_search_path_spec \ | |
12614 | sys_lib_dlsearch_path_spec; do | |
12615 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12616 | *[\\\\\\\`\\"\\\$]*) | |
12617 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12618 | ;; | |
12619 | *) | |
12620 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12621 | ;; | |
12622 | esac | |
12623 | done | |
12624 | ||
12625 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12626 | case \$lt_ECHO in | |
12627 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12628 | ;; | |
12629 | esac | |
12630 | ||
12631 | ac_aux_dir='$ac_aux_dir' | |
12632 | xsi_shell='$xsi_shell' | |
12633 | lt_shell_append='$lt_shell_append' | |
12634 | ||
12635 | # See if we are running on zsh, and set the options which allow our | |
12636 | # commands through without removal of \ escapes INIT. | |
12637 | if test -n "\${ZSH_VERSION+set}" ; then | |
12638 | setopt NO_GLOB_SUBST | |
12639 | fi | |
12640 | ||
12641 | ||
12642 | PACKAGE='$PACKAGE' | |
12643 | VERSION='$VERSION' | |
12644 | TIMESTAMP='$TIMESTAMP' | |
12645 | RM='$RM' | |
12646 | ofile='$ofile' | |
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | _ACEOF | |
12652 | ||
12653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12654 | ||
12655 | # Handling of arguments. | |
12656 | for ac_config_target in $ac_config_targets | |
12657 | do | |
12658 | case $ac_config_target in | |
12659 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12660 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12661 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12662 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
12663 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
12664 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12665 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
12666 | "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; | |
12667 | ||
12668 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
12669 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12670 | { (exit 1); exit 1; }; };; | |
12671 | esac | |
12672 | done | |
12673 | ||
12674 | ||
12675 | # If the user did not use the arguments to specify the items to instantiate, | |
12676 | # then the envvar interface is used. Set only those that are not. | |
12677 | # We use the long form for the default assignment because of an extremely | |
12678 | # bizarre bug on SunOS 4.1.3. | |
12679 | if $ac_need_defaults; then | |
12680 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12681 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12682 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12683 | fi | |
12684 | ||
12685 | # Have a temporary directory for convenience. Make it in the build tree | |
12686 | # simply because there is no reason against having it here, and in addition, | |
12687 | # creating and moving files from /tmp can sometimes cause problems. | |
12688 | # Hook for its removal unless debugging. | |
12689 | # Note that there is a small window in which the directory will not be cleaned: | |
12690 | # after its creation but before its name has been assigned to `$tmp'. | |
12691 | $debug || | |
12692 | { | |
12693 | tmp= | |
12694 | trap 'exit_status=$? | |
12695 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12696 | ' 0 | |
12697 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12698 | } | |
12699 | # Create a (secure) tmp directory for tmp files. | |
12700 | ||
12701 | { | |
12702 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12703 | test -n "$tmp" && test -d "$tmp" | |
12704 | } || | |
12705 | { | |
12706 | tmp=./conf$$-$RANDOM | |
12707 | (umask 077 && mkdir "$tmp") | |
12708 | } || | |
12709 | { | |
12710 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
12711 | { (exit 1); exit 1; } | |
12712 | } | |
12713 | ||
12714 | # Set up the scripts for CONFIG_FILES section. | |
12715 | # No need to generate them if there are no CONFIG_FILES. | |
12716 | # This happens for instance with `./config.status config.h'. | |
12717 | if test -n "$CONFIG_FILES"; then | |
12718 | ||
12719 | ||
12720 | ac_cr='\r' | |
12721 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12722 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12723 | ac_cs_awk_cr='\\r' | |
12724 | else | |
12725 | ac_cs_awk_cr=$ac_cr | |
12726 | fi | |
12727 | ||
12728 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12729 | _ACEOF | |
12730 | ||
12731 | ||
12732 | { | |
12733 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12734 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12735 | echo "_ACEOF" | |
12736 | } >conf$$subs.sh || | |
12737 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12738 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12739 | { (exit 1); exit 1; }; } | |
12740 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
12741 | ac_delim='%!_!# ' | |
12742 | for ac_last_try in false false false false false :; do | |
12743 | . ./conf$$subs.sh || | |
12744 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12745 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12746 | { (exit 1); exit 1; }; } | |
12747 | ||
12748 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12749 | if test $ac_delim_n = $ac_delim_num; then | |
12750 | break | |
12751 | elif $ac_last_try; then | |
12752 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12753 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12754 | { (exit 1); exit 1; }; } | |
12755 | else | |
12756 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12757 | fi | |
12758 | done | |
12759 | rm -f conf$$subs.sh | |
12760 | ||
12761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12762 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12763 | _ACEOF | |
12764 | sed -n ' | |
12765 | h | |
12766 | s/^/S["/; s/!.*/"]=/ | |
12767 | p | |
12768 | g | |
12769 | s/^[^!]*!// | |
12770 | :repl | |
12771 | t repl | |
12772 | s/'"$ac_delim"'$// | |
12773 | t delim | |
12774 | :nl | |
12775 | h | |
12776 | s/\(.\{148\}\).*/\1/ | |
12777 | t more1 | |
12778 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12779 | p | |
12780 | n | |
12781 | b repl | |
12782 | :more1 | |
12783 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12784 | p | |
12785 | g | |
12786 | s/.\{148\}// | |
12787 | t nl | |
12788 | :delim | |
12789 | h | |
12790 | s/\(.\{148\}\).*/\1/ | |
12791 | t more2 | |
12792 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12793 | p | |
12794 | b | |
12795 | :more2 | |
12796 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12797 | p | |
12798 | g | |
12799 | s/.\{148\}// | |
12800 | t delim | |
12801 | ' <conf$$subs.awk | sed ' | |
12802 | /^[^""]/{ | |
12803 | N | |
12804 | s/\n// | |
12805 | } | |
12806 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12807 | rm -f conf$$subs.awk | |
12808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12809 | _ACAWK | |
12810 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12811 | for (key in S) S_is_set[key] = 1 | |
12812 | FS = "\a" | |
12813 | ||
12814 | } | |
12815 | { | |
12816 | line = $ 0 | |
12817 | nfields = split(line, field, "@") | |
12818 | substed = 0 | |
12819 | len = length(field[1]) | |
12820 | for (i = 2; i < nfields; i++) { | |
12821 | key = field[i] | |
12822 | keylen = length(key) | |
12823 | if (S_is_set[key]) { | |
12824 | value = S[key] | |
12825 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12826 | len += length(value) + length(field[++i]) | |
12827 | substed = 1 | |
12828 | } else | |
12829 | len += 1 + keylen | |
12830 | } | |
12831 | ||
12832 | print line | |
12833 | } | |
12834 | ||
12835 | _ACAWK | |
12836 | _ACEOF | |
12837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12838 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12839 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12840 | else | |
12841 | cat | |
12842 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12843 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
12844 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
12845 | { (exit 1); exit 1; }; } | |
12846 | _ACEOF | |
12847 | ||
12848 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12849 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12850 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12851 | # (actually we leave an empty line to preserve line numbers). | |
12852 | if test "x$srcdir" = x.; then | |
12853 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12854 | s/:*\$(srcdir):*/:/ | |
12855 | s/:*\${srcdir}:*/:/ | |
12856 | s/:*@srcdir@:*/:/ | |
12857 | s/^\([^=]*=[ ]*\):*/\1/ | |
12858 | s/:*$// | |
12859 | s/^[^=]*=[ ]*$// | |
12860 | }' | |
12861 | fi | |
12862 | ||
12863 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12864 | fi # test -n "$CONFIG_FILES" | |
12865 | ||
12866 | # Set up the scripts for CONFIG_HEADERS section. | |
12867 | # No need to generate them if there are no CONFIG_HEADERS. | |
12868 | # This happens for instance with `./config.status Makefile'. | |
12869 | if test -n "$CONFIG_HEADERS"; then | |
12870 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12871 | BEGIN { | |
12872 | _ACEOF | |
12873 | ||
12874 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12875 | # here-document in config.status, that substitutes the proper values into | |
12876 | # config.h.in to produce config.h. | |
12877 | ||
12878 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12879 | # handling of long lines. | |
12880 | ac_delim='%!_!# ' | |
12881 | for ac_last_try in false false :; do | |
12882 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12883 | if test -z "$ac_t"; then | |
12884 | break | |
12885 | elif $ac_last_try; then | |
12886 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
12887 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
12888 | { (exit 1); exit 1; }; } | |
12889 | else | |
12890 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12891 | fi | |
12892 | done | |
12893 | ||
12894 | # For the awk script, D is an array of macro values keyed by name, | |
12895 | # likewise P contains macro parameters if any. Preserve backslash | |
12896 | # newline sequences. | |
12897 | ||
12898 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12899 | sed -n ' | |
12900 | s/.\{148\}/&'"$ac_delim"'/g | |
12901 | t rset | |
12902 | :rset | |
12903 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12904 | t def | |
12905 | d | |
12906 | :def | |
12907 | s/\\$// | |
12908 | t bsnl | |
12909 | s/["\\]/\\&/g | |
12910 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12911 | D["\1"]=" \3"/p | |
12912 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12913 | d | |
12914 | :bsnl | |
12915 | s/["\\]/\\&/g | |
12916 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12917 | D["\1"]=" \3\\\\\\n"\\/p | |
12918 | t cont | |
12919 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12920 | t cont | |
12921 | d | |
12922 | :cont | |
12923 | n | |
12924 | s/.\{148\}/&'"$ac_delim"'/g | |
12925 | t clear | |
12926 | :clear | |
12927 | s/\\$// | |
12928 | t bsnlc | |
12929 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12930 | d | |
12931 | :bsnlc | |
12932 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12933 | b cont | |
12934 | ' <confdefs.h | sed ' | |
12935 | s/'"$ac_delim"'/"\\\ | |
12936 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12937 | ||
12938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12939 | for (key in D) D_is_set[key] = 1 | |
12940 | FS = "\a" | |
12941 | } | |
12942 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12943 | line = \$ 0 | |
12944 | split(line, arg, " ") | |
12945 | if (arg[1] == "#") { | |
12946 | defundef = arg[2] | |
12947 | mac1 = arg[3] | |
12948 | } else { | |
12949 | defundef = substr(arg[1], 2) | |
12950 | mac1 = arg[2] | |
12951 | } | |
12952 | split(mac1, mac2, "(") #) | |
12953 | macro = mac2[1] | |
12954 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12955 | if (D_is_set[macro]) { | |
12956 | # Preserve the white space surrounding the "#". | |
12957 | print prefix "define", macro P[macro] D[macro] | |
12958 | next | |
12959 | } else { | |
12960 | # Replace #undef with comments. This is necessary, for example, | |
12961 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12962 | # on some systems where configure will not decide to define it. | |
12963 | if (defundef == "undef") { | |
12964 | print "/*", prefix defundef, macro, "*/" | |
12965 | next | |
12966 | } | |
12967 | } | |
12968 | } | |
12969 | { print } | |
12970 | _ACAWK | |
12971 | _ACEOF | |
12972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12973 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
12974 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
12975 | { (exit 1); exit 1; }; } | |
12976 | fi # test -n "$CONFIG_HEADERS" | |
12977 | ||
12978 | ||
12979 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
12980 | shift | |
12981 | for ac_tag | |
12982 | do | |
12983 | case $ac_tag in | |
12984 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12985 | esac | |
12986 | case $ac_mode$ac_tag in | |
12987 | :[FHL]*:*);; | |
12988 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
12989 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
12990 | { (exit 1); exit 1; }; };; | |
12991 | :[FH]-) ac_tag=-:-;; | |
12992 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12993 | esac | |
12994 | ac_save_IFS=$IFS | |
12995 | IFS=: | |
12996 | set x $ac_tag | |
12997 | IFS=$ac_save_IFS | |
12998 | shift | |
12999 | ac_file=$1 | |
13000 | shift | |
13001 | ||
13002 | case $ac_mode in | |
13003 | :L) ac_source=$1;; | |
13004 | :[FH]) | |
13005 | ac_file_inputs= | |
13006 | for ac_f | |
13007 | do | |
13008 | case $ac_f in | |
13009 | -) ac_f="$tmp/stdin";; | |
13010 | *) # Look for the file first in the build tree, then in the source tree | |
13011 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13012 | # because $ac_f cannot contain `:'. | |
13013 | test -f "$ac_f" || | |
13014 | case $ac_f in | |
13015 | [\\/$]*) false;; | |
13016 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13017 | esac || | |
13018 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
13019 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
13020 | { (exit 1); exit 1; }; };; | |
13021 | esac | |
13022 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13023 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
13024 | done | |
13025 | ||
13026 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13027 | # use $as_me), people would be surprised to read: | |
13028 | # /* config.h. Generated by config.status. */ | |
13029 | configure_input='Generated from '` | |
13030 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13031 | `' by configure.' | |
13032 | if test x"$ac_file" != x-; then | |
13033 | configure_input="$ac_file. $configure_input" | |
13034 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13035 | $as_echo "$as_me: creating $ac_file" >&6;} | |
13036 | fi | |
13037 | # Neutralize special characters interpreted by sed in replacement strings. | |
13038 | case $configure_input in #( | |
13039 | *\&* | *\|* | *\\* ) | |
13040 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13041 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13042 | *) ac_sed_conf_input=$configure_input;; | |
13043 | esac | |
13044 | ||
13045 | case $ac_tag in | |
13046 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13047 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13048 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13049 | { (exit 1); exit 1; }; } ;; | |
13050 | esac | |
13051 | ;; | |
13052 | esac | |
13053 | ||
13054 | ac_dir=`$as_dirname -- "$ac_file" || | |
13055 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13056 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13057 | X"$ac_file" : 'X\(//\)$' \| \ | |
13058 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13059 | $as_echo X"$ac_file" | | |
13060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13061 | s//\1/ | |
13062 | q | |
13063 | } | |
13064 | /^X\(\/\/\)[^/].*/{ | |
13065 | s//\1/ | |
13066 | q | |
13067 | } | |
13068 | /^X\(\/\/\)$/{ | |
13069 | s//\1/ | |
13070 | q | |
13071 | } | |
13072 | /^X\(\/\).*/{ | |
13073 | s//\1/ | |
13074 | q | |
13075 | } | |
13076 | s/.*/./; q'` | |
13077 | { as_dir="$ac_dir" | |
13078 | case $as_dir in #( | |
13079 | -*) as_dir=./$as_dir;; | |
13080 | esac | |
13081 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13082 | as_dirs= | |
13083 | while :; do | |
13084 | case $as_dir in #( | |
13085 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13086 | *) as_qdir=$as_dir;; | |
13087 | esac | |
13088 | as_dirs="'$as_qdir' $as_dirs" | |
13089 | as_dir=`$as_dirname -- "$as_dir" || | |
13090 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13091 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13092 | X"$as_dir" : 'X\(//\)$' \| \ | |
13093 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13094 | $as_echo X"$as_dir" | | |
13095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13096 | s//\1/ | |
13097 | q | |
13098 | } | |
13099 | /^X\(\/\/\)[^/].*/{ | |
13100 | s//\1/ | |
13101 | q | |
13102 | } | |
13103 | /^X\(\/\/\)$/{ | |
13104 | s//\1/ | |
13105 | q | |
13106 | } | |
13107 | /^X\(\/\).*/{ | |
13108 | s//\1/ | |
13109 | q | |
13110 | } | |
13111 | s/.*/./; q'` | |
13112 | test -d "$as_dir" && break | |
13113 | done | |
13114 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13115 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13116 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13117 | { (exit 1); exit 1; }; }; } | |
13118 | ac_builddir=. | |
13119 | ||
13120 | case "$ac_dir" in | |
13121 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13122 | *) | |
13123 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13124 | # A ".." for each directory in $ac_dir_suffix. | |
13125 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13126 | case $ac_top_builddir_sub in | |
13127 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13128 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13129 | esac ;; | |
13130 | esac | |
13131 | ac_abs_top_builddir=$ac_pwd | |
13132 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13133 | # for backward compatibility: | |
13134 | ac_top_builddir=$ac_top_build_prefix | |
13135 | ||
13136 | case $srcdir in | |
13137 | .) # We are building in place. | |
13138 | ac_srcdir=. | |
13139 | ac_top_srcdir=$ac_top_builddir_sub | |
13140 | ac_abs_top_srcdir=$ac_pwd ;; | |
13141 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13142 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13143 | ac_top_srcdir=$srcdir | |
13144 | ac_abs_top_srcdir=$srcdir ;; | |
13145 | *) # Relative name. | |
13146 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13147 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13148 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13149 | esac | |
13150 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13151 | ||
13152 | ||
13153 | case $ac_mode in | |
13154 | :F) | |
13155 | # | |
13156 | # CONFIG_FILE | |
13157 | # | |
13158 | ||
13159 | case $INSTALL in | |
13160 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13161 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13162 | esac | |
13163 | ac_MKDIR_P=$MKDIR_P | |
13164 | case $MKDIR_P in | |
13165 | [\\/$]* | ?:[\\/]* ) ;; | |
13166 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13167 | esac | |
13168 | _ACEOF | |
13169 | ||
13170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13171 | # If the template does not know about datarootdir, expand it. | |
13172 | # FIXME: This hack should be removed a few years after 2.60. | |
13173 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13174 | ||
13175 | ac_sed_dataroot=' | |
13176 | /datarootdir/ { | |
13177 | p | |
13178 | q | |
13179 | } | |
13180 | /@datadir@/p | |
13181 | /@docdir@/p | |
13182 | /@infodir@/p | |
13183 | /@localedir@/p | |
13184 | /@mandir@/p | |
13185 | ' | |
13186 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13187 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13188 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13190 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13191 | _ACEOF | |
13192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13193 | ac_datarootdir_hack=' | |
13194 | s&@datadir@&$datadir&g | |
13195 | s&@docdir@&$docdir&g | |
13196 | s&@infodir@&$infodir&g | |
13197 | s&@localedir@&$localedir&g | |
13198 | s&@mandir@&$mandir&g | |
13199 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13200 | esac | |
13201 | _ACEOF | |
13202 | ||
13203 | # Neutralize VPATH when `$srcdir' = `.'. | |
13204 | # Shell code in configure.ac might set extrasub. | |
13205 | # FIXME: do we really want to maintain this feature? | |
13206 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13207 | ac_sed_extra="$ac_vpsub | |
13208 | $extrasub | |
13209 | _ACEOF | |
13210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13211 | :t | |
13212 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13213 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13214 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13215 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13216 | s&@srcdir@&$ac_srcdir&;t t | |
13217 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13218 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13219 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13220 | s&@builddir@&$ac_builddir&;t t | |
13221 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13222 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13223 | s&@INSTALL@&$ac_INSTALL&;t t | |
13224 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13225 | $ac_datarootdir_hack | |
13226 | " | |
13227 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13228 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13229 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13230 | { (exit 1); exit 1; }; } | |
13231 | ||
13232 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13233 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13234 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13236 | which seems to be undefined. Please make sure it is defined." >&5 | |
13237 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13238 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13239 | ||
13240 | rm -f "$tmp/stdin" | |
13241 | case $ac_file in | |
13242 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
13243 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13244 | esac \ | |
13245 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13246 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13247 | { (exit 1); exit 1; }; } | |
13248 | ;; | |
13249 | :H) | |
13250 | # | |
13251 | # CONFIG_HEADER | |
13252 | # | |
13253 | if test x"$ac_file" != x-; then | |
13254 | { | |
13255 | $as_echo "/* $configure_input */" \ | |
13256 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13257 | } >"$tmp/config.h" \ | |
13258 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13259 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13260 | { (exit 1); exit 1; }; } | |
13261 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13262 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13263 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13264 | else | |
13265 | rm -f "$ac_file" | |
13266 | mv "$tmp/config.h" "$ac_file" \ | |
13267 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13268 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13269 | { (exit 1); exit 1; }; } | |
13270 | fi | |
13271 | else | |
13272 | $as_echo "/* $configure_input */" \ | |
13273 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13274 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13275 | $as_echo "$as_me: error: could not create -" >&2;} | |
13276 | { (exit 1); exit 1; }; } | |
13277 | fi | |
13278 | # Compute "$ac_file"'s index in $config_headers. | |
13279 | _am_arg="$ac_file" | |
13280 | _am_stamp_count=1 | |
13281 | for _am_header in $config_headers :; do | |
13282 | case $_am_header in | |
13283 | $_am_arg | $_am_arg:* ) | |
13284 | break ;; | |
13285 | * ) | |
13286 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13287 | esac | |
13288 | done | |
13289 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13290 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13291 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13292 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13293 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13294 | $as_echo X"$_am_arg" | | |
13295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13296 | s//\1/ | |
13297 | q | |
13298 | } | |
13299 | /^X\(\/\/\)[^/].*/{ | |
13300 | s//\1/ | |
13301 | q | |
13302 | } | |
13303 | /^X\(\/\/\)$/{ | |
13304 | s//\1/ | |
13305 | q | |
13306 | } | |
13307 | /^X\(\/\).*/{ | |
13308 | s//\1/ | |
13309 | q | |
13310 | } | |
13311 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13312 | ;; | |
13313 | ||
13314 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
13315 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13316 | ;; | |
13317 | esac | |
13318 | ||
13319 | ||
13320 | case $ac_file$ac_mode in | |
13321 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13322 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13323 | # are listed without --file. Let's play safe and only enable the eval | |
13324 | # if we detect the quoting. | |
13325 | case $CONFIG_FILES in | |
13326 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13327 | *) set x $CONFIG_FILES ;; | |
13328 | esac | |
13329 | shift | |
13330 | for mf | |
13331 | do | |
13332 | # Strip MF so we end up with the name of the file. | |
13333 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13334 | # Check whether this is an Automake generated Makefile or not. | |
13335 | # We used to match only the files named `Makefile.in', but | |
13336 | # some people rename them; so instead we look at the file content. | |
13337 | # Grep'ing the first line is not enough: some people post-process | |
13338 | # each Makefile.in and add a new line on top of each file to say so. | |
13339 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13340 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13341 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13342 | dirpart=`$as_dirname -- "$mf" || | |
13343 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13344 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13345 | X"$mf" : 'X\(//\)$' \| \ | |
13346 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13347 | $as_echo X"$mf" | | |
13348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13349 | s//\1/ | |
13350 | q | |
13351 | } | |
13352 | /^X\(\/\/\)[^/].*/{ | |
13353 | s//\1/ | |
13354 | q | |
13355 | } | |
13356 | /^X\(\/\/\)$/{ | |
13357 | s//\1/ | |
13358 | q | |
13359 | } | |
13360 | /^X\(\/\).*/{ | |
13361 | s//\1/ | |
13362 | q | |
13363 | } | |
13364 | s/.*/./; q'` | |
13365 | else | |
13366 | continue | |
13367 | fi | |
13368 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13369 | # from the Makefile without running `make'. | |
13370 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13371 | test -z "$DEPDIR" && continue | |
13372 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13373 | test -z "am__include" && continue | |
13374 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13375 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13376 | U=`sed -n 's/^U = //p' < "$mf"` | |
13377 | # Find all dependency output files, they are included files with | |
13378 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13379 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13380 | # expansion. | |
13381 | for file in `sed -n " | |
13382 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13383 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13384 | # Make sure the directory exists. | |
13385 | test -f "$dirpart/$file" && continue | |
13386 | fdir=`$as_dirname -- "$file" || | |
13387 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13388 | X"$file" : 'X\(//\)[^/]' \| \ | |
13389 | X"$file" : 'X\(//\)$' \| \ | |
13390 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13391 | $as_echo X"$file" | | |
13392 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13393 | s//\1/ | |
13394 | q | |
13395 | } | |
13396 | /^X\(\/\/\)[^/].*/{ | |
13397 | s//\1/ | |
13398 | q | |
13399 | } | |
13400 | /^X\(\/\/\)$/{ | |
13401 | s//\1/ | |
13402 | q | |
13403 | } | |
13404 | /^X\(\/\).*/{ | |
13405 | s//\1/ | |
13406 | q | |
13407 | } | |
13408 | s/.*/./; q'` | |
13409 | { as_dir=$dirpart/$fdir | |
13410 | case $as_dir in #( | |
13411 | -*) as_dir=./$as_dir;; | |
13412 | esac | |
13413 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13414 | as_dirs= | |
13415 | while :; do | |
13416 | case $as_dir in #( | |
13417 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13418 | *) as_qdir=$as_dir;; | |
13419 | esac | |
13420 | as_dirs="'$as_qdir' $as_dirs" | |
13421 | as_dir=`$as_dirname -- "$as_dir" || | |
13422 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13423 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13424 | X"$as_dir" : 'X\(//\)$' \| \ | |
13425 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13426 | $as_echo X"$as_dir" | | |
13427 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13428 | s//\1/ | |
13429 | q | |
13430 | } | |
13431 | /^X\(\/\/\)[^/].*/{ | |
13432 | s//\1/ | |
13433 | q | |
13434 | } | |
13435 | /^X\(\/\/\)$/{ | |
13436 | s//\1/ | |
13437 | q | |
13438 | } | |
13439 | /^X\(\/\).*/{ | |
13440 | s//\1/ | |
13441 | q | |
13442 | } | |
13443 | s/.*/./; q'` | |
13444 | test -d "$as_dir" && break | |
13445 | done | |
13446 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13447 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13448 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13449 | { (exit 1); exit 1; }; }; } | |
13450 | # echo "creating $dirpart/$file" | |
13451 | echo '# dummy' > "$dirpart/$file" | |
13452 | done | |
13453 | done | |
13454 | } | |
13455 | ;; | |
13456 | "libtool":C) | |
13457 | ||
13458 | # See if we are running on zsh, and set the options which allow our | |
13459 | # commands through without removal of \ escapes. | |
13460 | if test -n "${ZSH_VERSION+set}" ; then | |
13461 | setopt NO_GLOB_SUBST | |
13462 | fi | |
13463 | ||
13464 | cfgfile="${ofile}T" | |
13465 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13466 | $RM "$cfgfile" | |
13467 | ||
13468 | cat <<_LT_EOF >> "$cfgfile" | |
13469 | #! $SHELL | |
13470 | ||
13471 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
13472 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13473 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13474 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13475 | # | |
13476 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13477 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
13478 | # Written by Gordon Matzigkeit, 1996 | |
13479 | # | |
13480 | # This file is part of GNU Libtool. | |
13481 | # | |
13482 | # GNU Libtool is free software; you can redistribute it and/or | |
13483 | # modify it under the terms of the GNU General Public License as | |
13484 | # published by the Free Software Foundation; either version 2 of | |
13485 | # the License, or (at your option) any later version. | |
13486 | # | |
13487 | # As a special exception to the GNU General Public License, | |
13488 | # if you distribute this file as part of a program or library that | |
13489 | # is built using GNU Libtool, you may include this file under the | |
13490 | # same distribution terms that you use for the rest of that program. | |
13491 | # | |
13492 | # GNU Libtool is distributed in the hope that it will be useful, | |
13493 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13494 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13495 | # GNU General Public License for more details. | |
13496 | # | |
13497 | # You should have received a copy of the GNU General Public License | |
13498 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13499 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13500 | # obtained by writing to the Free Software Foundation, Inc., | |
13501 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
13502 | ||
13503 | ||
13504 | # The names of the tagged configurations supported by this script. | |
13505 | available_tags="" | |
13506 | ||
13507 | # ### BEGIN LIBTOOL CONFIG | |
13508 | ||
13509 | # Which release of libtool.m4 was used? | |
13510 | macro_version=$macro_version | |
13511 | macro_revision=$macro_revision | |
13512 | ||
13513 | # Whether or not to build shared libraries. | |
13514 | build_libtool_libs=$enable_shared | |
13515 | ||
13516 | # Whether or not to build static libraries. | |
13517 | build_old_libs=$enable_static | |
13518 | ||
13519 | # What type of objects to build. | |
13520 | pic_mode=$pic_mode | |
13521 | ||
13522 | # Whether or not to optimize for fast installation. | |
13523 | fast_install=$enable_fast_install | |
13524 | ||
13525 | # The host system. | |
13526 | host_alias=$host_alias | |
13527 | host=$host | |
13528 | host_os=$host_os | |
13529 | ||
13530 | # The build system. | |
13531 | build_alias=$build_alias | |
13532 | build=$build | |
13533 | build_os=$build_os | |
13534 | ||
13535 | # A sed program that does not truncate output. | |
13536 | SED=$lt_SED | |
13537 | ||
13538 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13539 | Xsed="\$SED -e 1s/^X//" | |
13540 | ||
13541 | # A grep program that handles long lines. | |
13542 | GREP=$lt_GREP | |
13543 | ||
13544 | # An ERE matcher. | |
13545 | EGREP=$lt_EGREP | |
13546 | ||
13547 | # A literal string matcher. | |
13548 | FGREP=$lt_FGREP | |
13549 | ||
13550 | # A BSD- or MS-compatible name lister. | |
13551 | NM=$lt_NM | |
13552 | ||
13553 | # Whether we need soft or hard links. | |
13554 | LN_S=$lt_LN_S | |
13555 | ||
13556 | # What is the maximum length of a command? | |
13557 | max_cmd_len=$max_cmd_len | |
13558 | ||
13559 | # Object file suffix (normally "o"). | |
13560 | objext=$ac_objext | |
13561 | ||
13562 | # Executable file suffix (normally ""). | |
13563 | exeext=$exeext | |
13564 | ||
13565 | # whether the shell understands "unset". | |
13566 | lt_unset=$lt_unset | |
13567 | ||
13568 | # turn spaces into newlines. | |
13569 | SP2NL=$lt_lt_SP2NL | |
13570 | ||
13571 | # turn newlines into spaces. | |
13572 | NL2SP=$lt_lt_NL2SP | |
13573 | ||
13574 | # How to create reloadable object files. | |
13575 | reload_flag=$lt_reload_flag | |
13576 | reload_cmds=$lt_reload_cmds | |
13577 | ||
13578 | # An object symbol dumper. | |
13579 | OBJDUMP=$lt_OBJDUMP | |
13580 | ||
13581 | # Method to check whether dependent libraries are shared objects. | |
13582 | deplibs_check_method=$lt_deplibs_check_method | |
13583 | ||
13584 | # Command to use when deplibs_check_method == "file_magic". | |
13585 | file_magic_cmd=$lt_file_magic_cmd | |
13586 | ||
13587 | # The archiver. | |
13588 | AR=$lt_AR | |
13589 | AR_FLAGS=$lt_AR_FLAGS | |
13590 | ||
13591 | # A symbol stripping program. | |
13592 | STRIP=$lt_STRIP | |
13593 | ||
13594 | # Commands used to install an old-style archive. | |
13595 | RANLIB=$lt_RANLIB | |
13596 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13597 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13598 | ||
13599 | # A C compiler. | |
13600 | LTCC=$lt_CC | |
13601 | ||
13602 | # LTCC compiler flags. | |
13603 | LTCFLAGS=$lt_CFLAGS | |
13604 | ||
13605 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13606 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13607 | ||
13608 | # Transform the output of nm in a proper C declaration. | |
13609 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13610 | ||
13611 | # Transform the output of nm in a C name address pair. | |
13612 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13613 | ||
13614 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
13615 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
13616 | ||
13617 | # The name of the directory that contains temporary libtool files. | |
13618 | objdir=$objdir | |
13619 | ||
13620 | # Shell to use when invoking shell scripts. | |
13621 | SHELL=$lt_SHELL | |
13622 | ||
13623 | # An echo program that does not interpret backslashes. | |
13624 | ECHO=$lt_ECHO | |
13625 | ||
13626 | # Used to examine libraries when file_magic_cmd begins with "file". | |
13627 | MAGIC_CMD=$MAGIC_CMD | |
13628 | ||
13629 | # Must we lock files when doing compilation? | |
13630 | need_locks=$lt_need_locks | |
13631 | ||
13632 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
13633 | DSYMUTIL=$lt_DSYMUTIL | |
13634 | ||
13635 | # Tool to change global to local symbols on Mac OS X. | |
13636 | NMEDIT=$lt_NMEDIT | |
13637 | ||
13638 | # Tool to manipulate fat objects and archives on Mac OS X. | |
13639 | LIPO=$lt_LIPO | |
13640 | ||
13641 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
13642 | OTOOL=$lt_OTOOL | |
13643 | ||
13644 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
13645 | OTOOL64=$lt_OTOOL64 | |
13646 | ||
13647 | # Old archive suffix (normally "a"). | |
13648 | libext=$libext | |
13649 | ||
13650 | # Shared library suffix (normally ".so"). | |
13651 | shrext_cmds=$lt_shrext_cmds | |
13652 | ||
13653 | # The commands to extract the exported symbol list from a shared archive. | |
13654 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13655 | ||
13656 | # Variables whose values should be saved in libtool wrapper scripts and | |
13657 | # restored at link time. | |
13658 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13659 | ||
13660 | # Do we need the "lib" prefix for modules? | |
13661 | need_lib_prefix=$need_lib_prefix | |
13662 | ||
13663 | # Do we need a version for libraries? | |
13664 | need_version=$need_version | |
13665 | ||
13666 | # Library versioning type. | |
13667 | version_type=$version_type | |
13668 | ||
13669 | # Shared library runtime path variable. | |
13670 | runpath_var=$runpath_var | |
13671 | ||
13672 | # Shared library path variable. | |
13673 | shlibpath_var=$shlibpath_var | |
13674 | ||
13675 | # Is shlibpath searched before the hard-coded library search path? | |
13676 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13677 | ||
13678 | # Format of library name prefix. | |
13679 | libname_spec=$lt_libname_spec | |
13680 | ||
13681 | # List of archive names. First name is the real one, the rest are links. | |
13682 | # The last name is the one that the linker finds with -lNAME | |
13683 | library_names_spec=$lt_library_names_spec | |
13684 | ||
13685 | # The coded name of the library, if different from the real name. | |
13686 | soname_spec=$lt_soname_spec | |
13687 | ||
13688 | # Command to use after installation of a shared archive. | |
13689 | postinstall_cmds=$lt_postinstall_cmds | |
13690 | ||
13691 | # Command to use after uninstallation of a shared archive. | |
13692 | postuninstall_cmds=$lt_postuninstall_cmds | |
13693 | ||
13694 | # Commands used to finish a libtool library installation in a directory. | |
13695 | finish_cmds=$lt_finish_cmds | |
13696 | ||
13697 | # As "finish_cmds", except a single script fragment to be evaled but | |
13698 | # not shown. | |
13699 | finish_eval=$lt_finish_eval | |
13700 | ||
13701 | # Whether we should hardcode library paths into libraries. | |
13702 | hardcode_into_libs=$hardcode_into_libs | |
13703 | ||
13704 | # Compile-time system search path for libraries. | |
13705 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13706 | ||
13707 | # Run-time system search path for libraries. | |
13708 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13709 | ||
13710 | # Whether dlopen is supported. | |
13711 | dlopen_support=$enable_dlopen | |
13712 | ||
13713 | # Whether dlopen of programs is supported. | |
13714 | dlopen_self=$enable_dlopen_self | |
13715 | ||
13716 | # Whether dlopen of statically linked programs is supported. | |
13717 | dlopen_self_static=$enable_dlopen_self_static | |
13718 | ||
13719 | # Commands to strip libraries. | |
13720 | old_striplib=$lt_old_striplib | |
13721 | striplib=$lt_striplib | |
13722 | ||
13723 | ||
13724 | # The linker used to build libraries. | |
13725 | LD=$lt_LD | |
13726 | ||
13727 | # Commands used to build an old-style archive. | |
13728 | old_archive_cmds=$lt_old_archive_cmds | |
13729 | ||
13730 | # A language specific compiler. | |
13731 | CC=$lt_compiler | |
13732 | ||
13733 | # Is the compiler the GNU compiler? | |
13734 | with_gcc=$GCC | |
13735 | ||
13736 | # Compiler flag to turn off builtin functions. | |
13737 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13738 | ||
13739 | # How to pass a linker flag through the compiler. | |
13740 | wl=$lt_lt_prog_compiler_wl | |
13741 | ||
13742 | # Additional compiler flags for building library objects. | |
13743 | pic_flag=$lt_lt_prog_compiler_pic | |
13744 | ||
13745 | # Compiler flag to prevent dynamic linking. | |
13746 | link_static_flag=$lt_lt_prog_compiler_static | |
13747 | ||
13748 | # Does compiler simultaneously support -c and -o options? | |
13749 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13750 | ||
13751 | # Whether or not to add -lc for building shared libraries. | |
13752 | build_libtool_need_lc=$archive_cmds_need_lc | |
13753 | ||
13754 | # Whether or not to disallow shared libs when runtime libs are static. | |
13755 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13756 | ||
13757 | # Compiler flag to allow reflexive dlopens. | |
13758 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13759 | ||
13760 | # Compiler flag to generate shared objects directly from archives. | |
13761 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13762 | ||
13763 | # Whether the compiler copes with passing no objects directly. | |
13764 | compiler_needs_object=$lt_compiler_needs_object | |
13765 | ||
13766 | # Create an old-style archive from a shared archive. | |
13767 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13768 | ||
13769 | # Create a temporary old-style archive to link instead of a shared archive. | |
13770 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13771 | ||
13772 | # Commands used to build a shared archive. | |
13773 | archive_cmds=$lt_archive_cmds | |
13774 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13775 | ||
13776 | # Commands used to build a loadable module if different from building | |
13777 | # a shared archive. | |
13778 | module_cmds=$lt_module_cmds | |
13779 | module_expsym_cmds=$lt_module_expsym_cmds | |
13780 | ||
13781 | # Whether we are building with GNU ld or not. | |
13782 | with_gnu_ld=$lt_with_gnu_ld | |
13783 | ||
13784 | # Flag that allows shared libraries with undefined symbols to be built. | |
13785 | allow_undefined_flag=$lt_allow_undefined_flag | |
13786 | ||
13787 | # Flag that enforces no undefined symbols. | |
13788 | no_undefined_flag=$lt_no_undefined_flag | |
13789 | ||
13790 | # Flag to hardcode \$libdir into a binary during linking. | |
13791 | # This must work even if \$libdir does not exist | |
13792 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13793 | ||
13794 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13795 | # during linking. This must work even if \$libdir does not exist. | |
13796 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13797 | ||
13798 | # Whether we need a single "-rpath" flag with a separated argument. | |
13799 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13800 | ||
13801 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13802 | # DIR into the resulting binary. | |
13803 | hardcode_direct=$hardcode_direct | |
13804 | ||
13805 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13806 | # DIR into the resulting binary and the resulting library dependency is | |
13807 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13808 | # library is relocated. | |
13809 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13810 | ||
13811 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13812 | # into the resulting binary. | |
13813 | hardcode_minus_L=$hardcode_minus_L | |
13814 | ||
13815 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13816 | # into the resulting binary. | |
13817 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13818 | ||
13819 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13820 | # into the library and all subsequent libraries and executables linked | |
13821 | # against it. | |
13822 | hardcode_automatic=$hardcode_automatic | |
13823 | ||
13824 | # Set to yes if linker adds runtime paths of dependent libraries | |
13825 | # to runtime path list. | |
13826 | inherit_rpath=$inherit_rpath | |
13827 | ||
13828 | # Whether libtool must link a program against all its dependency libraries. | |
13829 | link_all_deplibs=$link_all_deplibs | |
13830 | ||
13831 | # Fix the shell variable \$srcfile for the compiler. | |
13832 | fix_srcfile_path=$lt_fix_srcfile_path | |
13833 | ||
13834 | # Set to "yes" if exported symbols are required. | |
13835 | always_export_symbols=$always_export_symbols | |
13836 | ||
13837 | # The commands to list exported symbols. | |
13838 | export_symbols_cmds=$lt_export_symbols_cmds | |
13839 | ||
13840 | # Symbols that should not be listed in the preloaded symbols. | |
13841 | exclude_expsyms=$lt_exclude_expsyms | |
13842 | ||
13843 | # Symbols that must always be exported. | |
13844 | include_expsyms=$lt_include_expsyms | |
13845 | ||
13846 | # Commands necessary for linking programs (against libraries) with templates. | |
13847 | prelink_cmds=$lt_prelink_cmds | |
13848 | ||
13849 | # Specify filename containing input files. | |
13850 | file_list_spec=$lt_file_list_spec | |
13851 | ||
13852 | # How to hardcode a shared library path into an executable. | |
13853 | hardcode_action=$hardcode_action | |
13854 | ||
13855 | # ### END LIBTOOL CONFIG | |
13856 | ||
13857 | _LT_EOF | |
13858 | ||
13859 | case $host_os in | |
13860 | aix3*) | |
13861 | cat <<\_LT_EOF >> "$cfgfile" | |
13862 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13863 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13864 | # vanish in a puff of smoke. | |
13865 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13866 | COLLECT_NAMES= | |
13867 | export COLLECT_NAMES | |
13868 | fi | |
13869 | _LT_EOF | |
13870 | ;; | |
13871 | esac | |
13872 | ||
13873 | ||
13874 | ltmain="$ac_aux_dir/ltmain.sh" | |
13875 | ||
13876 | ||
13877 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13878 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13879 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13880 | # is reportedly fixed, but why not run on old versions too? | |
13881 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13882 | || (rm -f "$cfgfile"; exit 1) | |
13883 | ||
13884 | case $xsi_shell in | |
13885 | yes) | |
13886 | cat << \_LT_EOF >> "$cfgfile" | |
13887 | ||
13888 | # func_dirname file append nondir_replacement | |
13889 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13890 | # otherwise set result to NONDIR_REPLACEMENT. | |
13891 | func_dirname () | |
13892 | { | |
13893 | case ${1} in | |
13894 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13895 | * ) func_dirname_result="${3}" ;; | |
13896 | esac | |
13897 | } | |
13898 | ||
13899 | # func_basename file | |
13900 | func_basename () | |
13901 | { | |
13902 | func_basename_result="${1##*/}" | |
13903 | } | |
13904 | ||
13905 | # func_dirname_and_basename file append nondir_replacement | |
13906 | # perform func_basename and func_dirname in a single function | |
13907 | # call: | |
13908 | # dirname: Compute the dirname of FILE. If nonempty, | |
13909 | # add APPEND to the result, otherwise set result | |
13910 | # to NONDIR_REPLACEMENT. | |
13911 | # value returned in "$func_dirname_result" | |
13912 | # basename: Compute filename of FILE. | |
13913 | # value retuned in "$func_basename_result" | |
13914 | # Implementation must be kept synchronized with func_dirname | |
13915 | # and func_basename. For efficiency, we do not delegate to | |
13916 | # those functions but instead duplicate the functionality here. | |
13917 | func_dirname_and_basename () | |
13918 | { | |
13919 | case ${1} in | |
13920 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13921 | * ) func_dirname_result="${3}" ;; | |
13922 | esac | |
13923 | func_basename_result="${1##*/}" | |
13924 | } | |
13925 | ||
13926 | # func_stripname prefix suffix name | |
13927 | # strip PREFIX and SUFFIX off of NAME. | |
13928 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13929 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13930 | # dot (in which case that matches only a dot). | |
13931 | func_stripname () | |
13932 | { | |
13933 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13934 | # positional parameters, so assign one to ordinary parameter first. | |
13935 | func_stripname_result=${3} | |
13936 | func_stripname_result=${func_stripname_result#"${1}"} | |
13937 | func_stripname_result=${func_stripname_result%"${2}"} | |
13938 | } | |
13939 | ||
13940 | # func_opt_split | |
13941 | func_opt_split () | |
13942 | { | |
13943 | func_opt_split_opt=${1%%=*} | |
13944 | func_opt_split_arg=${1#*=} | |
13945 | } | |
13946 | ||
13947 | # func_lo2o object | |
13948 | func_lo2o () | |
13949 | { | |
13950 | case ${1} in | |
13951 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13952 | *) func_lo2o_result=${1} ;; | |
13953 | esac | |
13954 | } | |
13955 | ||
13956 | # func_xform libobj-or-source | |
13957 | func_xform () | |
13958 | { | |
13959 | func_xform_result=${1%.*}.lo | |
13960 | } | |
13961 | ||
13962 | # func_arith arithmetic-term... | |
13963 | func_arith () | |
13964 | { | |
13965 | func_arith_result=$(( $* )) | |
13966 | } | |
13967 | ||
13968 | # func_len string | |
13969 | # STRING may not start with a hyphen. | |
13970 | func_len () | |
13971 | { | |
13972 | func_len_result=${#1} | |
13973 | } | |
13974 | ||
13975 | _LT_EOF | |
13976 | ;; | |
13977 | *) # Bourne compatible functions. | |
13978 | cat << \_LT_EOF >> "$cfgfile" | |
13979 | ||
13980 | # func_dirname file append nondir_replacement | |
13981 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13982 | # otherwise set result to NONDIR_REPLACEMENT. | |
13983 | func_dirname () | |
13984 | { | |
13985 | # Extract subdirectory from the argument. | |
13986 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13987 | if test "X$func_dirname_result" = "X${1}"; then | |
13988 | func_dirname_result="${3}" | |
13989 | else | |
13990 | func_dirname_result="$func_dirname_result${2}" | |
13991 | fi | |
13992 | } | |
13993 | ||
13994 | # func_basename file | |
13995 | func_basename () | |
13996 | { | |
13997 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13998 | } | |
13999 | ||
14000 | ||
14001 | # func_stripname prefix suffix name | |
14002 | # strip PREFIX and SUFFIX off of NAME. | |
14003 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14004 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14005 | # dot (in which case that matches only a dot). | |
14006 | # func_strip_suffix prefix name | |
14007 | func_stripname () | |
14008 | { | |
14009 | case ${2} in | |
14010 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
14011 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14012 | *) func_stripname_result=`$ECHO "X${3}" \ | |
14013 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
14014 | esac | |
14015 | } | |
14016 | ||
14017 | # sed scripts: | |
14018 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14019 | my_sed_long_arg='1s/^-[^=]*=//' | |
14020 | ||
14021 | # func_opt_split | |
14022 | func_opt_split () | |
14023 | { | |
14024 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14025 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14026 | } | |
14027 | ||
14028 | # func_lo2o object | |
14029 | func_lo2o () | |
14030 | { | |
14031 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14032 | } | |
14033 | ||
14034 | # func_xform libobj-or-source | |
14035 | func_xform () | |
14036 | { | |
14037 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14038 | } | |
14039 | ||
14040 | # func_arith arithmetic-term... | |
14041 | func_arith () | |
14042 | { | |
14043 | func_arith_result=`expr "$@"` | |
14044 | } | |
14045 | ||
14046 | # func_len string | |
14047 | # STRING may not start with a hyphen. | |
14048 | func_len () | |
14049 | { | |
14050 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14051 | } | |
14052 | ||
14053 | _LT_EOF | |
14054 | esac | |
14055 | ||
14056 | case $lt_shell_append in | |
14057 | yes) | |
14058 | cat << \_LT_EOF >> "$cfgfile" | |
14059 | ||
14060 | # func_append var value | |
14061 | # Append VALUE to the end of shell variable VAR. | |
14062 | func_append () | |
14063 | { | |
14064 | eval "$1+=\$2" | |
14065 | } | |
14066 | _LT_EOF | |
14067 | ;; | |
14068 | *) | |
14069 | cat << \_LT_EOF >> "$cfgfile" | |
14070 | ||
14071 | # func_append var value | |
14072 | # Append VALUE to the end of shell variable VAR. | |
14073 | func_append () | |
14074 | { | |
14075 | eval "$1=\$$1\$2" | |
14076 | } | |
14077 | ||
14078 | _LT_EOF | |
14079 | ;; | |
14080 | esac | |
14081 | ||
14082 | ||
14083 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14084 | || (rm -f "$cfgfile"; exit 1) | |
14085 | ||
14086 | mv -f "$cfgfile" "$ofile" || | |
14087 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14088 | chmod +x "$ofile" | |
14089 | ||
14090 | ;; | |
14091 | ||
14092 | esac | |
14093 | done # for ac_tag | |
14094 | ||
14095 | ||
14096 | { (exit 0); exit 0; } | |
14097 | _ACEOF | |
14098 | chmod +x $CONFIG_STATUS | |
14099 | ac_clean_files=$ac_clean_files_save | |
14100 | ||
14101 | test $ac_write_fail = 0 || | |
14102 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
14103 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
14104 | { (exit 1); exit 1; }; } | |
14105 | ||
14106 | ||
14107 | # configure is writing to config.log, and then calls config.status. | |
14108 | # config.status does its own redirection, appending to config.log. | |
14109 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14110 | # by configure, so config.status won't be able to write to it; its | |
14111 | # output is simply discarded. So we exec the FD to /dev/null, | |
14112 | # effectively closing config.log, so it can be properly (re)opened and | |
14113 | # appended to by config.status. When coming back to configure, we | |
14114 | # need to make the FD available again. | |
14115 | if test "$no_create" != yes; then | |
14116 | ac_cs_success=: | |
14117 | ac_config_status_args= | |
14118 | test "$silent" = yes && | |
14119 | ac_config_status_args="$ac_config_status_args --quiet" | |
14120 | exec 5>/dev/null | |
14121 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14122 | exec 5>>config.log | |
14123 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14124 | # would make configure fail if this is the last instruction. | |
14125 | $ac_cs_success || { (exit 1); exit 1; } | |
14126 | fi | |
14127 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14128 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14129 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14130 | fi | |
14131 |