Mercurial > repos > dawe > srf2fastq
comparison srf2fastq/io_lib-1.12.2/configure @ 0:d901c9f41a6a default tip
Migrated tool version 1.0.1 from old tool shed archive to new tool shed repository
author | dawe |
---|---|
date | Tue, 07 Jun 2011 17:48:05 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d901c9f41a6a |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.61 for io_lib 1.12.2. | |
4 # | |
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
7 # This configure script is free software; the Free Software Foundation | |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 ## --------------------- ## | |
10 ## M4sh Initialization. ## | |
11 ## --------------------- ## | |
12 | |
13 # Be more Bourne compatible | |
14 DUALCASE=1; export DUALCASE # for MKS sh | |
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 emulate sh | |
17 NULLCMD=: | |
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 # is contrary to our usage. Disable this feature. | |
20 alias -g '${1+"$@"}'='"$@"' | |
21 setopt NO_GLOB_SUBST | |
22 else | |
23 case `(set -o) 2>/dev/null` in | |
24 *posix*) set -o posix ;; | |
25 esac | |
26 | |
27 fi | |
28 | |
29 | |
30 | |
31 | |
32 # PATH needs CR | |
33 # Avoid depending upon Character Ranges. | |
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 as_cr_digits='0123456789' | |
38 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | |
40 # The user is always right. | |
41 if test "${PATH_SEPARATOR+set}" != set; then | |
42 echo "#! /bin/sh" >conf$$.sh | |
43 echo "exit 0" >>conf$$.sh | |
44 chmod +x conf$$.sh | |
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 PATH_SEPARATOR=';' | |
47 else | |
48 PATH_SEPARATOR=: | |
49 fi | |
50 rm -f conf$$.sh | |
51 fi | |
52 | |
53 # Support unset when possible. | |
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
55 as_unset=unset | |
56 else | |
57 as_unset=false | |
58 fi | |
59 | |
60 | |
61 # IFS | |
62 # We need space, tab and new line, in precisely that order. Quoting is | |
63 # there to prevent editors from complaining about space-tab. | |
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 # splitting by setting IFS to empty value.) | |
66 as_nl=' | |
67 ' | |
68 IFS=" "" $as_nl" | |
69 | |
70 # Find who we are. Look in the path if we contain no directory separator. | |
71 case $0 in | |
72 *[\\/]* ) as_myself=$0 ;; | |
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 for as_dir in $PATH | |
75 do | |
76 IFS=$as_save_IFS | |
77 test -z "$as_dir" && as_dir=. | |
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 done | |
80 IFS=$as_save_IFS | |
81 | |
82 ;; | |
83 esac | |
84 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 # in which case we are not to be found in the path. | |
86 if test "x$as_myself" = x; then | |
87 as_myself=$0 | |
88 fi | |
89 if test ! -f "$as_myself"; then | |
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 { (exit 1); exit 1; } | |
92 fi | |
93 | |
94 # Work around bugs in pre-3.0 UWIN ksh. | |
95 for as_var in ENV MAIL MAILPATH | |
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 done | |
98 PS1='$ ' | |
99 PS2='> ' | |
100 PS4='+ ' | |
101 | |
102 # NLS nuisances. | |
103 for as_var in \ | |
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 LC_TELEPHONE LC_TIME | |
107 do | |
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 eval $as_var=C; export $as_var | |
110 else | |
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
112 fi | |
113 done | |
114 | |
115 # Required to use basename. | |
116 if expr a : '\(a\)' >/dev/null 2>&1 && | |
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
118 as_expr=expr | |
119 else | |
120 as_expr=false | |
121 fi | |
122 | |
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
124 as_basename=basename | |
125 else | |
126 as_basename=false | |
127 fi | |
128 | |
129 | |
130 # Name of the executable. | |
131 as_me=`$as_basename -- "$0" || | |
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
133 X"$0" : 'X\(//\)$' \| \ | |
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
135 echo X/"$0" | | |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
137 s//\1/ | |
138 q | |
139 } | |
140 /^X\/\(\/\/\)$/{ | |
141 s//\1/ | |
142 q | |
143 } | |
144 /^X\/\(\/\).*/{ | |
145 s//\1/ | |
146 q | |
147 } | |
148 s/.*/./; q'` | |
149 | |
150 # CDPATH. | |
151 $as_unset CDPATH | |
152 | |
153 | |
154 if test "x$CONFIG_SHELL" = x; then | |
155 if (eval ":") 2>/dev/null; then | |
156 as_have_required=yes | |
157 else | |
158 as_have_required=no | |
159 fi | |
160 | |
161 if test $as_have_required = yes && (eval ": | |
162 (as_func_return () { | |
163 (exit \$1) | |
164 } | |
165 as_func_success () { | |
166 as_func_return 0 | |
167 } | |
168 as_func_failure () { | |
169 as_func_return 1 | |
170 } | |
171 as_func_ret_success () { | |
172 return 0 | |
173 } | |
174 as_func_ret_failure () { | |
175 return 1 | |
176 } | |
177 | |
178 exitcode=0 | |
179 if as_func_success; then | |
180 : | |
181 else | |
182 exitcode=1 | |
183 echo as_func_success failed. | |
184 fi | |
185 | |
186 if as_func_failure; then | |
187 exitcode=1 | |
188 echo as_func_failure succeeded. | |
189 fi | |
190 | |
191 if as_func_ret_success; then | |
192 : | |
193 else | |
194 exitcode=1 | |
195 echo as_func_ret_success failed. | |
196 fi | |
197 | |
198 if as_func_ret_failure; then | |
199 exitcode=1 | |
200 echo as_func_ret_failure succeeded. | |
201 fi | |
202 | |
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 : | |
205 else | |
206 exitcode=1 | |
207 echo positional parameters were not saved. | |
208 fi | |
209 | |
210 test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | |
212 ( | |
213 as_lineno_1=\$LINENO | |
214 as_lineno_2=\$LINENO | |
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 ") 2> /dev/null; then | |
218 : | |
219 else | |
220 as_candidate_shells= | |
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 do | |
224 IFS=$as_save_IFS | |
225 test -z "$as_dir" && as_dir=. | |
226 case $as_dir in | |
227 /*) | |
228 for as_base in sh bash ksh sh5; do | |
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 done;; | |
231 esac | |
232 done | |
233 IFS=$as_save_IFS | |
234 | |
235 | |
236 for as_shell in $as_candidate_shells $SHELL; do | |
237 # Try only shells that exist, to save several forks. | |
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 emulate sh | |
242 NULLCMD=: | |
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 # is contrary to our usage. Disable this feature. | |
245 alias -g '${1+"$@"}'='"$@"' | |
246 setopt NO_GLOB_SUBST | |
247 else | |
248 case `(set -o) 2>/dev/null` in | |
249 *posix*) set -o posix ;; | |
250 esac | |
251 | |
252 fi | |
253 | |
254 | |
255 : | |
256 _ASEOF | |
257 }; then | |
258 CONFIG_SHELL=$as_shell | |
259 as_have_required=yes | |
260 if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 emulate sh | |
263 NULLCMD=: | |
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 # is contrary to our usage. Disable this feature. | |
266 alias -g '${1+"$@"}'='"$@"' | |
267 setopt NO_GLOB_SUBST | |
268 else | |
269 case `(set -o) 2>/dev/null` in | |
270 *posix*) set -o posix ;; | |
271 esac | |
272 | |
273 fi | |
274 | |
275 | |
276 : | |
277 (as_func_return () { | |
278 (exit $1) | |
279 } | |
280 as_func_success () { | |
281 as_func_return 0 | |
282 } | |
283 as_func_failure () { | |
284 as_func_return 1 | |
285 } | |
286 as_func_ret_success () { | |
287 return 0 | |
288 } | |
289 as_func_ret_failure () { | |
290 return 1 | |
291 } | |
292 | |
293 exitcode=0 | |
294 if as_func_success; then | |
295 : | |
296 else | |
297 exitcode=1 | |
298 echo as_func_success failed. | |
299 fi | |
300 | |
301 if as_func_failure; then | |
302 exitcode=1 | |
303 echo as_func_failure succeeded. | |
304 fi | |
305 | |
306 if as_func_ret_success; then | |
307 : | |
308 else | |
309 exitcode=1 | |
310 echo as_func_ret_success failed. | |
311 fi | |
312 | |
313 if as_func_ret_failure; then | |
314 exitcode=1 | |
315 echo as_func_ret_failure succeeded. | |
316 fi | |
317 | |
318 if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 : | |
320 else | |
321 exitcode=1 | |
322 echo positional parameters were not saved. | |
323 fi | |
324 | |
325 test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | |
327 ( | |
328 as_lineno_1=$LINENO | |
329 as_lineno_2=$LINENO | |
330 test "x$as_lineno_1" != "x$as_lineno_2" && | |
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
332 | |
333 _ASEOF | |
334 }; then | |
335 break | |
336 fi | |
337 | |
338 fi | |
339 | |
340 done | |
341 | |
342 if test "x$CONFIG_SHELL" != x; then | |
343 for as_var in BASH_ENV ENV | |
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 done | |
346 export CONFIG_SHELL | |
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 fi | |
349 | |
350 | |
351 if test $as_have_required = no; then | |
352 echo This script requires a shell more modern than all the | |
353 echo shells that I found on your system. Please install a | |
354 echo modern shell, or manually run the script under such a | |
355 echo shell if you do have one. | |
356 { (exit 1); exit 1; } | |
357 fi | |
358 | |
359 | |
360 fi | |
361 | |
362 fi | |
363 | |
364 | |
365 | |
366 (eval "as_func_return () { | |
367 (exit \$1) | |
368 } | |
369 as_func_success () { | |
370 as_func_return 0 | |
371 } | |
372 as_func_failure () { | |
373 as_func_return 1 | |
374 } | |
375 as_func_ret_success () { | |
376 return 0 | |
377 } | |
378 as_func_ret_failure () { | |
379 return 1 | |
380 } | |
381 | |
382 exitcode=0 | |
383 if as_func_success; then | |
384 : | |
385 else | |
386 exitcode=1 | |
387 echo as_func_success failed. | |
388 fi | |
389 | |
390 if as_func_failure; then | |
391 exitcode=1 | |
392 echo as_func_failure succeeded. | |
393 fi | |
394 | |
395 if as_func_ret_success; then | |
396 : | |
397 else | |
398 exitcode=1 | |
399 echo as_func_ret_success failed. | |
400 fi | |
401 | |
402 if as_func_ret_failure; then | |
403 exitcode=1 | |
404 echo as_func_ret_failure succeeded. | |
405 fi | |
406 | |
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 : | |
409 else | |
410 exitcode=1 | |
411 echo positional parameters were not saved. | |
412 fi | |
413 | |
414 test \$exitcode = 0") || { | |
415 echo No shell found that supports shell functions. | |
416 echo Please tell autoconf@gnu.org about your system, | |
417 echo including any error possibly output before this | |
418 echo message | |
419 } | |
420 | |
421 | |
422 | |
423 as_lineno_1=$LINENO | |
424 as_lineno_2=$LINENO | |
425 test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
427 | |
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 # uniformly replaced by the line number. The first 'sed' inserts a | |
430 # line-number line after each line using $LINENO; the second 'sed' | |
431 # does the real work. The second script uses 'N' to pair each | |
432 # line-number line with the line containing $LINENO, and appends | |
433 # trailing '-' during substitution so that $LINENO is not a special | |
434 # case at line end. | |
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
436 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
437 # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 sed -n ' | |
439 p | |
440 /[$]LINENO/= | |
441 ' <$as_myself | | |
442 sed ' | |
443 s/[$]LINENO.*/&-/ | |
444 t lineno | |
445 b | |
446 :lineno | |
447 N | |
448 :loop | |
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
450 t loop | |
451 s/-\n.*// | |
452 ' >$as_me.lineno && | |
453 chmod +x "$as_me.lineno" || | |
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
455 { (exit 1); exit 1; }; } | |
456 | |
457 # Don't try to exec as it changes $[0], causing all sort of problems | |
458 # (the dirname of $[0] is not the place where we might find the | |
459 # original and so on. Autoconf is especially sensitive to this). | |
460 . "./$as_me.lineno" | |
461 # Exit status is that of the last command. | |
462 exit | |
463 } | |
464 | |
465 | |
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
467 as_dirname=dirname | |
468 else | |
469 as_dirname=false | |
470 fi | |
471 | |
472 ECHO_C= ECHO_N= ECHO_T= | |
473 case `echo -n x` in | |
474 -n*) | |
475 case `echo 'x\c'` in | |
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 *) ECHO_C='\c';; | |
478 esac;; | |
479 *) | |
480 ECHO_N='-n';; | |
481 esac | |
482 | |
483 if expr a : '\(a\)' >/dev/null 2>&1 && | |
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
485 as_expr=expr | |
486 else | |
487 as_expr=false | |
488 fi | |
489 | |
490 rm -f conf$$ conf$$.exe conf$$.file | |
491 if test -d conf$$.dir; then | |
492 rm -f conf$$.dir/conf$$.file | |
493 else | |
494 rm -f conf$$.dir | |
495 mkdir conf$$.dir | |
496 fi | |
497 echo >conf$$.file | |
498 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
499 as_ln_s='ln -s' | |
500 # ... but there are two gotchas: | |
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 # In both cases, we have to default to `cp -p'. | |
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
505 as_ln_s='cp -p' | |
506 elif ln conf$$.file conf$$ 2>/dev/null; then | |
507 as_ln_s=ln | |
508 else | |
509 as_ln_s='cp -p' | |
510 fi | |
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
512 rmdir conf$$.dir 2>/dev/null | |
513 | |
514 if mkdir -p . 2>/dev/null; then | |
515 as_mkdir_p=: | |
516 else | |
517 test -d ./-p && rmdir ./-p | |
518 as_mkdir_p=false | |
519 fi | |
520 | |
521 if test -x / >/dev/null 2>&1; then | |
522 as_test_x='test -x' | |
523 else | |
524 if ls -dL / >/dev/null 2>&1; then | |
525 as_ls_L_option=L | |
526 else | |
527 as_ls_L_option= | |
528 fi | |
529 as_test_x=' | |
530 eval sh -c '\'' | |
531 if test -d "$1"; then | |
532 test -d "$1/."; | |
533 else | |
534 case $1 in | |
535 -*)set "./$1";; | |
536 esac; | |
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 ???[sx]*):;;*)false;;esac;fi | |
539 '\'' sh | |
540 ' | |
541 fi | |
542 as_executable_p=$as_test_x | |
543 | |
544 # Sed expression to map a string onto a valid CPP name. | |
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | |
547 # Sed expression to map a string onto a valid variable name. | |
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | |
550 | |
551 | |
552 | |
553 # Check that we are running under the correct shell. | |
554 SHELL=${CONFIG_SHELL-/bin/sh} | |
555 | |
556 case X$ECHO in | |
557 X*--fallback-echo) | |
558 # Remove one level of quotation (which was required for Make). | |
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
560 ;; | |
561 esac | |
562 | |
563 echo=${ECHO-echo} | |
564 if test "X$1" = X--no-reexec; then | |
565 # Discard the --no-reexec flag, and continue. | |
566 shift | |
567 elif test "X$1" = X--fallback-echo; then | |
568 # Avoid inline document here, it may be left over | |
569 : | |
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
571 # Yippee, $echo works! | |
572 : | |
573 else | |
574 # Restart under the correct shell. | |
575 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
576 fi | |
577 | |
578 if test "X$1" = X--fallback-echo; then | |
579 # used as fallback echo | |
580 shift | |
581 cat <<EOF | |
582 $* | |
583 EOF | |
584 exit 0 | |
585 fi | |
586 | |
587 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
588 # if CDPATH is set. | |
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
590 | |
591 if test -z "$ECHO"; then | |
592 if test "X${echo_test_string+set}" != Xset; then | |
593 # find a string as large as possible, as long as the shell can cope with it | |
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
596 if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
597 echo_test_string=`eval $cmd` && | |
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
599 then | |
600 break | |
601 fi | |
602 done | |
603 fi | |
604 | |
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
607 test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 : | |
609 else | |
610 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
611 # backslashes. This makes it impossible to quote backslashes using | |
612 # echo "$something" | sed 's/\\/\\\\/g' | |
613 # | |
614 # So, first we look for a working echo in the user's PATH. | |
615 | |
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
617 for dir in $PATH /usr/ucb; do | |
618 IFS="$lt_save_ifs" | |
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
622 test "X$echo_testing_string" = "X$echo_test_string"; then | |
623 echo="$dir/echo" | |
624 break | |
625 fi | |
626 done | |
627 IFS="$lt_save_ifs" | |
628 | |
629 if test "X$echo" = Xecho; then | |
630 # We didn't find a better echo, so look for alternatives. | |
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
633 test "X$echo_testing_string" = "X$echo_test_string"; then | |
634 # This shell has a builtin print -r that does the trick. | |
635 echo='print -r' | |
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
637 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
638 # If we have ksh, try running configure again with it. | |
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
640 export ORIGINAL_CONFIG_SHELL | |
641 CONFIG_SHELL=/bin/ksh | |
642 export CONFIG_SHELL | |
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
644 else | |
645 # Try using printf. | |
646 echo='printf %s\n' | |
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
649 test "X$echo_testing_string" = "X$echo_test_string"; then | |
650 # Cool, printf works | |
651 : | |
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
653 test "X$echo_testing_string" = 'X\t' && | |
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
655 test "X$echo_testing_string" = "X$echo_test_string"; then | |
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
657 export CONFIG_SHELL | |
658 SHELL="$CONFIG_SHELL" | |
659 export SHELL | |
660 echo="$CONFIG_SHELL $0 --fallback-echo" | |
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
662 test "X$echo_testing_string" = 'X\t' && | |
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
664 test "X$echo_testing_string" = "X$echo_test_string"; then | |
665 echo="$CONFIG_SHELL $0 --fallback-echo" | |
666 else | |
667 # maybe with a smaller string... | |
668 prev=: | |
669 | |
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
672 then | |
673 break | |
674 fi | |
675 prev="$cmd" | |
676 done | |
677 | |
678 if test "$prev" != 'sed 50q "$0"'; then | |
679 echo_test_string=`eval $prev` | |
680 export echo_test_string | |
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
682 else | |
683 # Oops. We lost completely, so just stick with echo. | |
684 echo=echo | |
685 fi | |
686 fi | |
687 fi | |
688 fi | |
689 fi | |
690 fi | |
691 | |
692 # Copy echo and quote the copy suitably for passing to libtool from | |
693 # the Makefile, instead of quoting the original, which is used later. | |
694 ECHO=$echo | |
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
697 fi | |
698 | |
699 | |
700 | |
701 | |
702 tagnames=${tagnames+${tagnames},}CXX | |
703 | |
704 tagnames=${tagnames+${tagnames},}F77 | |
705 | |
706 exec 7<&0 </dev/null 6>&1 | |
707 | |
708 # Name of the host. | |
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
710 # so uname gets run too. | |
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
712 | |
713 # | |
714 # Initializations. | |
715 # | |
716 ac_default_prefix=/usr/local | |
717 ac_clean_files= | |
718 ac_config_libobj_dir=. | |
719 LIBOBJS= | |
720 cross_compiling=no | |
721 subdirs= | |
722 MFLAGS= | |
723 MAKEFLAGS= | |
724 SHELL=${CONFIG_SHELL-/bin/sh} | |
725 | |
726 # Identity of this package. | |
727 PACKAGE_NAME='io_lib' | |
728 PACKAGE_TARNAME='io_lib' | |
729 PACKAGE_VERSION='1.12.2' | |
730 PACKAGE_STRING='io_lib 1.12.2' | |
731 PACKAGE_BUGREPORT='' | |
732 | |
733 # Factoring default headers for most tests. | |
734 ac_includes_default="\ | |
735 #include <stdio.h> | |
736 #ifdef HAVE_SYS_TYPES_H | |
737 # include <sys/types.h> | |
738 #endif | |
739 #ifdef HAVE_SYS_STAT_H | |
740 # include <sys/stat.h> | |
741 #endif | |
742 #ifdef STDC_HEADERS | |
743 # include <stdlib.h> | |
744 # include <stddef.h> | |
745 #else | |
746 # ifdef HAVE_STDLIB_H | |
747 # include <stdlib.h> | |
748 # endif | |
749 #endif | |
750 #ifdef HAVE_STRING_H | |
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
752 # include <memory.h> | |
753 # endif | |
754 # include <string.h> | |
755 #endif | |
756 #ifdef HAVE_STRINGS_H | |
757 # include <strings.h> | |
758 #endif | |
759 #ifdef HAVE_INTTYPES_H | |
760 # include <inttypes.h> | |
761 #endif | |
762 #ifdef HAVE_STDINT_H | |
763 # include <stdint.h> | |
764 #endif | |
765 #ifdef HAVE_UNISTD_H | |
766 # include <unistd.h> | |
767 #endif" | |
768 | |
769 ac_subst_vars='SHELL | |
770 PATH_SEPARATOR | |
771 PACKAGE_NAME | |
772 PACKAGE_TARNAME | |
773 PACKAGE_VERSION | |
774 PACKAGE_STRING | |
775 PACKAGE_BUGREPORT | |
776 exec_prefix | |
777 prefix | |
778 program_transform_name | |
779 bindir | |
780 sbindir | |
781 libexecdir | |
782 datarootdir | |
783 datadir | |
784 sysconfdir | |
785 sharedstatedir | |
786 localstatedir | |
787 includedir | |
788 oldincludedir | |
789 docdir | |
790 infodir | |
791 htmldir | |
792 dvidir | |
793 pdfdir | |
794 psdir | |
795 libdir | |
796 localedir | |
797 mandir | |
798 DEFS | |
799 ECHO_C | |
800 ECHO_N | |
801 ECHO_T | |
802 LIBS | |
803 build_alias | |
804 host_alias | |
805 target_alias | |
806 INSTALL_PROGRAM | |
807 INSTALL_SCRIPT | |
808 INSTALL_DATA | |
809 CYGPATH_W | |
810 PACKAGE | |
811 VERSION | |
812 ACLOCAL | |
813 AUTOCONF | |
814 AUTOMAKE | |
815 AUTOHEADER | |
816 MAKEINFO | |
817 install_sh | |
818 STRIP | |
819 INSTALL_STRIP_PROGRAM | |
820 mkdir_p | |
821 AWK | |
822 SET_MAKE | |
823 am__leading_dot | |
824 AMTAR | |
825 am__tar | |
826 am__untar | |
827 MAINTAINER_MODE_TRUE | |
828 MAINTAINER_MODE_FALSE | |
829 MAINT | |
830 VERS_CURRENT | |
831 VERS_REVISION | |
832 VERS_AGE | |
833 CC | |
834 CFLAGS | |
835 LDFLAGS | |
836 CPPFLAGS | |
837 ac_ct_CC | |
838 EXEEXT | |
839 OBJEXT | |
840 DEPDIR | |
841 am__include | |
842 am__quote | |
843 AMDEP_TRUE | |
844 AMDEP_FALSE | |
845 AMDEPBACKSLASH | |
846 CCDEPMODE | |
847 am__fastdepCC_TRUE | |
848 am__fastdepCC_FALSE | |
849 build | |
850 build_cpu | |
851 build_vendor | |
852 build_os | |
853 host | |
854 host_cpu | |
855 host_vendor | |
856 host_os | |
857 GREP | |
858 EGREP | |
859 LN_S | |
860 ECHO | |
861 AR | |
862 RANLIB | |
863 CPP | |
864 CXX | |
865 CXXFLAGS | |
866 ac_ct_CXX | |
867 CXXDEPMODE | |
868 am__fastdepCXX_TRUE | |
869 am__fastdepCXX_FALSE | |
870 CXXCPP | |
871 F77 | |
872 FFLAGS | |
873 ac_ct_F77 | |
874 LIBTOOL | |
875 _libcurl_config | |
876 LIBCURL_CPPFLAGS | |
877 LIBCURL | |
878 LIBZ | |
879 HAVE_ZLIB_TRUE | |
880 HAVE_ZLIB_FALSE | |
881 LIBOBJS | |
882 LTLIBOBJS' | |
883 ac_subst_files='' | |
884 ac_precious_vars='build_alias | |
885 host_alias | |
886 target_alias | |
887 CC | |
888 CFLAGS | |
889 LDFLAGS | |
890 LIBS | |
891 CPPFLAGS | |
892 CPP | |
893 CXX | |
894 CXXFLAGS | |
895 CCC | |
896 CXXCPP | |
897 F77 | |
898 FFLAGS' | |
899 | |
900 | |
901 # Initialize some variables set by options. | |
902 ac_init_help= | |
903 ac_init_version=false | |
904 # The variables have the same names as the options, with | |
905 # dashes changed to underlines. | |
906 cache_file=/dev/null | |
907 exec_prefix=NONE | |
908 no_create= | |
909 no_recursion= | |
910 prefix=NONE | |
911 program_prefix=NONE | |
912 program_suffix=NONE | |
913 program_transform_name=s,x,x, | |
914 silent= | |
915 site= | |
916 srcdir= | |
917 verbose= | |
918 x_includes=NONE | |
919 x_libraries=NONE | |
920 | |
921 # Installation directory options. | |
922 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
923 # and all the variables that are supposed to be based on exec_prefix | |
924 # by default will actually change. | |
925 # Use braces instead of parens because sh, perl, etc. also accept them. | |
926 # (The list follows the same order as the GNU Coding Standards.) | |
927 bindir='${exec_prefix}/bin' | |
928 sbindir='${exec_prefix}/sbin' | |
929 libexecdir='${exec_prefix}/libexec' | |
930 datarootdir='${prefix}/share' | |
931 datadir='${datarootdir}' | |
932 sysconfdir='${prefix}/etc' | |
933 sharedstatedir='${prefix}/com' | |
934 localstatedir='${prefix}/var' | |
935 includedir='${prefix}/include' | |
936 oldincludedir='/usr/include' | |
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
938 infodir='${datarootdir}/info' | |
939 htmldir='${docdir}' | |
940 dvidir='${docdir}' | |
941 pdfdir='${docdir}' | |
942 psdir='${docdir}' | |
943 libdir='${exec_prefix}/lib' | |
944 localedir='${datarootdir}/locale' | |
945 mandir='${datarootdir}/man' | |
946 | |
947 ac_prev= | |
948 ac_dashdash= | |
949 for ac_option | |
950 do | |
951 # If the previous option needs an argument, assign it. | |
952 if test -n "$ac_prev"; then | |
953 eval $ac_prev=\$ac_option | |
954 ac_prev= | |
955 continue | |
956 fi | |
957 | |
958 case $ac_option in | |
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
960 *) ac_optarg=yes ;; | |
961 esac | |
962 | |
963 # Accept the important Cygnus configure options, so we can diagnose typos. | |
964 | |
965 case $ac_dashdash$ac_option in | |
966 --) | |
967 ac_dashdash=yes ;; | |
968 | |
969 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
970 ac_prev=bindir ;; | |
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
972 bindir=$ac_optarg ;; | |
973 | |
974 -build | --build | --buil | --bui | --bu) | |
975 ac_prev=build_alias ;; | |
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
977 build_alias=$ac_optarg ;; | |
978 | |
979 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
981 ac_prev=cache_file ;; | |
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
984 cache_file=$ac_optarg ;; | |
985 | |
986 --config-cache | -C) | |
987 cache_file=config.cache ;; | |
988 | |
989 -datadir | --datadir | --datadi | --datad) | |
990 ac_prev=datadir ;; | |
991 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
992 datadir=$ac_optarg ;; | |
993 | |
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
995 | --dataroo | --dataro | --datar) | |
996 ac_prev=datarootdir ;; | |
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
999 datarootdir=$ac_optarg ;; | |
1000 | |
1001 -disable-* | --disable-*) | |
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1003 # Reject names that are not valid shell variable names. | |
1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1006 { (exit 1); exit 1; }; } | |
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1008 eval enable_$ac_feature=no ;; | |
1009 | |
1010 -docdir | --docdir | --docdi | --doc | --do) | |
1011 ac_prev=docdir ;; | |
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1013 docdir=$ac_optarg ;; | |
1014 | |
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1016 ac_prev=dvidir ;; | |
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1018 dvidir=$ac_optarg ;; | |
1019 | |
1020 -enable-* | --enable-*) | |
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1022 # Reject names that are not valid shell variable names. | |
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1025 { (exit 1); exit 1; }; } | |
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1027 eval enable_$ac_feature=\$ac_optarg ;; | |
1028 | |
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1031 | --exec | --exe | --ex) | |
1032 ac_prev=exec_prefix ;; | |
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1035 | --exec=* | --exe=* | --ex=*) | |
1036 exec_prefix=$ac_optarg ;; | |
1037 | |
1038 -gas | --gas | --ga | --g) | |
1039 # Obsolete; use --with-gas. | |
1040 with_gas=yes ;; | |
1041 | |
1042 -help | --help | --hel | --he | -h) | |
1043 ac_init_help=long ;; | |
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1045 ac_init_help=recursive ;; | |
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1047 ac_init_help=short ;; | |
1048 | |
1049 -host | --host | --hos | --ho) | |
1050 ac_prev=host_alias ;; | |
1051 -host=* | --host=* | --hos=* | --ho=*) | |
1052 host_alias=$ac_optarg ;; | |
1053 | |
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1055 ac_prev=htmldir ;; | |
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1057 | --ht=*) | |
1058 htmldir=$ac_optarg ;; | |
1059 | |
1060 -includedir | --includedir | --includedi | --included | --include \ | |
1061 | --includ | --inclu | --incl | --inc) | |
1062 ac_prev=includedir ;; | |
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1064 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1065 includedir=$ac_optarg ;; | |
1066 | |
1067 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1068 ac_prev=infodir ;; | |
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1070 infodir=$ac_optarg ;; | |
1071 | |
1072 -libdir | --libdir | --libdi | --libd) | |
1073 ac_prev=libdir ;; | |
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1075 libdir=$ac_optarg ;; | |
1076 | |
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1078 | --libexe | --libex | --libe) | |
1079 ac_prev=libexecdir ;; | |
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1081 | --libexe=* | --libex=* | --libe=*) | |
1082 libexecdir=$ac_optarg ;; | |
1083 | |
1084 -localedir | --localedir | --localedi | --localed | --locale) | |
1085 ac_prev=localedir ;; | |
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1087 localedir=$ac_optarg ;; | |
1088 | |
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1090 | --localstate | --localstat | --localsta | --localst | --locals) | |
1091 ac_prev=localstatedir ;; | |
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1094 localstatedir=$ac_optarg ;; | |
1095 | |
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1097 ac_prev=mandir ;; | |
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1099 mandir=$ac_optarg ;; | |
1100 | |
1101 -nfp | --nfp | --nf) | |
1102 # Obsolete; use --without-fp. | |
1103 with_fp=no ;; | |
1104 | |
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1106 | --no-cr | --no-c | -n) | |
1107 no_create=yes ;; | |
1108 | |
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1111 no_recursion=yes ;; | |
1112 | |
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1115 | --oldin | --oldi | --old | --ol | --o) | |
1116 ac_prev=oldincludedir ;; | |
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1120 oldincludedir=$ac_optarg ;; | |
1121 | |
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1123 ac_prev=prefix ;; | |
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1125 prefix=$ac_optarg ;; | |
1126 | |
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1128 | --program-pre | --program-pr | --program-p) | |
1129 ac_prev=program_prefix ;; | |
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1132 program_prefix=$ac_optarg ;; | |
1133 | |
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1135 | --program-suf | --program-su | --program-s) | |
1136 ac_prev=program_suffix ;; | |
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1139 program_suffix=$ac_optarg ;; | |
1140 | |
1141 -program-transform-name | --program-transform-name \ | |
1142 | --program-transform-nam | --program-transform-na \ | |
1143 | --program-transform-n | --program-transform- \ | |
1144 | --program-transform | --program-transfor \ | |
1145 | --program-transfo | --program-transf \ | |
1146 | --program-trans | --program-tran \ | |
1147 | --progr-tra | --program-tr | --program-t) | |
1148 ac_prev=program_transform_name ;; | |
1149 -program-transform-name=* | --program-transform-name=* \ | |
1150 | --program-transform-nam=* | --program-transform-na=* \ | |
1151 | --program-transform-n=* | --program-transform-=* \ | |
1152 | --program-transform=* | --program-transfor=* \ | |
1153 | --program-transfo=* | --program-transf=* \ | |
1154 | --program-trans=* | --program-tran=* \ | |
1155 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1156 program_transform_name=$ac_optarg ;; | |
1157 | |
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1159 ac_prev=pdfdir ;; | |
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1161 pdfdir=$ac_optarg ;; | |
1162 | |
1163 -psdir | --psdir | --psdi | --psd | --ps) | |
1164 ac_prev=psdir ;; | |
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1166 psdir=$ac_optarg ;; | |
1167 | |
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1169 | -silent | --silent | --silen | --sile | --sil) | |
1170 silent=yes ;; | |
1171 | |
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1173 ac_prev=sbindir ;; | |
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1175 | --sbi=* | --sb=*) | |
1176 sbindir=$ac_optarg ;; | |
1177 | |
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1180 | --sharedst | --shareds | --shared | --share | --shar \ | |
1181 | --sha | --sh) | |
1182 ac_prev=sharedstatedir ;; | |
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1186 | --sha=* | --sh=*) | |
1187 sharedstatedir=$ac_optarg ;; | |
1188 | |
1189 -site | --site | --sit) | |
1190 ac_prev=site ;; | |
1191 -site=* | --site=* | --sit=*) | |
1192 site=$ac_optarg ;; | |
1193 | |
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1195 ac_prev=srcdir ;; | |
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1197 srcdir=$ac_optarg ;; | |
1198 | |
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1200 | --syscon | --sysco | --sysc | --sys | --sy) | |
1201 ac_prev=sysconfdir ;; | |
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1204 sysconfdir=$ac_optarg ;; | |
1205 | |
1206 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1207 ac_prev=target_alias ;; | |
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1209 target_alias=$ac_optarg ;; | |
1210 | |
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1212 verbose=yes ;; | |
1213 | |
1214 -version | --version | --versio | --versi | --vers | -V) | |
1215 ac_init_version=: ;; | |
1216 | |
1217 -with-* | --with-*) | |
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1219 # Reject names that are not valid shell variable names. | |
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1222 { (exit 1); exit 1; }; } | |
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1224 eval with_$ac_package=\$ac_optarg ;; | |
1225 | |
1226 -without-* | --without-*) | |
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1228 # Reject names that are not valid shell variable names. | |
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1231 { (exit 1); exit 1; }; } | |
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1233 eval with_$ac_package=no ;; | |
1234 | |
1235 --x) | |
1236 # Obsolete; use --with-x. | |
1237 with_x=yes ;; | |
1238 | |
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1240 | --x-incl | --x-inc | --x-in | --x-i) | |
1241 ac_prev=x_includes ;; | |
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1244 x_includes=$ac_optarg ;; | |
1245 | |
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1248 ac_prev=x_libraries ;; | |
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1251 x_libraries=$ac_optarg ;; | |
1252 | |
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1254 Try \`$0 --help' for more information." >&2 | |
1255 { (exit 1); exit 1; }; } | |
1256 ;; | |
1257 | |
1258 *=*) | |
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1260 # Reject names that are not valid shell variable names. | |
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1263 { (exit 1); exit 1; }; } | |
1264 eval $ac_envvar=\$ac_optarg | |
1265 export $ac_envvar ;; | |
1266 | |
1267 *) | |
1268 # FIXME: should be removed in autoconf 3.0. | |
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1273 ;; | |
1274 | |
1275 esac | |
1276 done | |
1277 | |
1278 if test -n "$ac_prev"; then | |
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1280 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1281 { (exit 1); exit 1; }; } | |
1282 fi | |
1283 | |
1284 # Be sure to have absolute directory names. | |
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1286 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1288 libdir localedir mandir | |
1289 do | |
1290 eval ac_val=\$$ac_var | |
1291 case $ac_val in | |
1292 [\\/$]* | ?:[\\/]* ) continue;; | |
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1294 esac | |
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1296 { (exit 1); exit 1; }; } | |
1297 done | |
1298 | |
1299 # There might be people who depend on the old broken behavior: `$host' | |
1300 # used to hold the argument of --host etc. | |
1301 # FIXME: To remove some day. | |
1302 build=$build_alias | |
1303 host=$host_alias | |
1304 target=$target_alias | |
1305 | |
1306 # FIXME: To remove some day. | |
1307 if test "x$host_alias" != x; then | |
1308 if test "x$build_alias" = x; then | |
1309 cross_compiling=maybe | |
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1311 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1312 elif test "x$build_alias" != "x$host_alias"; then | |
1313 cross_compiling=yes | |
1314 fi | |
1315 fi | |
1316 | |
1317 ac_tool_prefix= | |
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1319 | |
1320 test "$silent" = yes && exec 6>/dev/null | |
1321 | |
1322 | |
1323 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1324 ac_ls_di=`ls -di .` && | |
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1326 { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1327 { (exit 1); exit 1; }; } | |
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1330 { (exit 1); exit 1; }; } | |
1331 | |
1332 | |
1333 # Find the source files, if location was not specified. | |
1334 if test -z "$srcdir"; then | |
1335 ac_srcdir_defaulted=yes | |
1336 # Try the directory containing this script, then the parent directory. | |
1337 ac_confdir=`$as_dirname -- "$0" || | |
1338 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1339 X"$0" : 'X\(//\)[^/]' \| \ | |
1340 X"$0" : 'X\(//\)$' \| \ | |
1341 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1342 echo X"$0" | | |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1344 s//\1/ | |
1345 q | |
1346 } | |
1347 /^X\(\/\/\)[^/].*/{ | |
1348 s//\1/ | |
1349 q | |
1350 } | |
1351 /^X\(\/\/\)$/{ | |
1352 s//\1/ | |
1353 q | |
1354 } | |
1355 /^X\(\/\).*/{ | |
1356 s//\1/ | |
1357 q | |
1358 } | |
1359 s/.*/./; q'` | |
1360 srcdir=$ac_confdir | |
1361 if test ! -r "$srcdir/$ac_unique_file"; then | |
1362 srcdir=.. | |
1363 fi | |
1364 else | |
1365 ac_srcdir_defaulted=no | |
1366 fi | |
1367 if test ! -r "$srcdir/$ac_unique_file"; then | |
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1370 { (exit 1); exit 1; }; } | |
1371 fi | |
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1373 ac_abs_confdir=`( | |
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1375 { (exit 1); exit 1; }; } | |
1376 pwd)` | |
1377 # When building in place, set srcdir=. | |
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1379 srcdir=. | |
1380 fi | |
1381 # Remove unnecessary trailing slashes from srcdir. | |
1382 # Double slashes in file names in object file debugging info | |
1383 # mess up M-x gdb in Emacs. | |
1384 case $srcdir in | |
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1386 esac | |
1387 for ac_var in $ac_precious_vars; do | |
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1389 eval ac_env_${ac_var}_value=\$${ac_var} | |
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1392 done | |
1393 | |
1394 # | |
1395 # Report the --help message. | |
1396 # | |
1397 if test "$ac_init_help" = "long"; then | |
1398 # Omit some internal or obsolete options to make the list less imposing. | |
1399 # This message is too long to be a string in the A/UX 3.1 sh. | |
1400 cat <<_ACEOF | |
1401 \`configure' configures io_lib 1.12.2 to adapt to many kinds of systems. | |
1402 | |
1403 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1404 | |
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1406 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1407 | |
1408 Defaults for the options are specified in brackets. | |
1409 | |
1410 Configuration: | |
1411 -h, --help display this help and exit | |
1412 --help=short display options specific to this package | |
1413 --help=recursive display the short help of all the included packages | |
1414 -V, --version display version information and exit | |
1415 -q, --quiet, --silent do not print \`checking...' messages | |
1416 --cache-file=FILE cache test results in FILE [disabled] | |
1417 -C, --config-cache alias for \`--cache-file=config.cache' | |
1418 -n, --no-create do not create output files | |
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1420 | |
1421 Installation directories: | |
1422 --prefix=PREFIX install architecture-independent files in PREFIX | |
1423 [$ac_default_prefix] | |
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1425 [PREFIX] | |
1426 | |
1427 By default, \`make install' will install all the files in | |
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1430 for instance \`--prefix=\$HOME'. | |
1431 | |
1432 For better control, use the options below. | |
1433 | |
1434 Fine tuning of the installation directories: | |
1435 --bindir=DIR user executables [EPREFIX/bin] | |
1436 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1437 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1441 --libdir=DIR object code libraries [EPREFIX/lib] | |
1442 --includedir=DIR C header files [PREFIX/include] | |
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1446 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1448 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/io_lib] | |
1450 --htmldir=DIR html documentation [DOCDIR] | |
1451 --dvidir=DIR dvi documentation [DOCDIR] | |
1452 --pdfdir=DIR pdf documentation [DOCDIR] | |
1453 --psdir=DIR ps documentation [DOCDIR] | |
1454 _ACEOF | |
1455 | |
1456 cat <<\_ACEOF | |
1457 | |
1458 Program names: | |
1459 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1460 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1462 | |
1463 System types: | |
1464 --build=BUILD configure for building on BUILD [guessed] | |
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1466 _ACEOF | |
1467 fi | |
1468 | |
1469 if test -n "$ac_init_help"; then | |
1470 case $ac_init_help in | |
1471 short | recursive ) echo "Configuration of io_lib 1.12.2:";; | |
1472 esac | |
1473 cat <<\_ACEOF | |
1474 | |
1475 Optional Features: | |
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1478 --enable-maintainer-mode enable make rules and dependencies not useful | |
1479 (and sometimes confusing) to the casual installer | |
1480 --disable-dependency-tracking speeds up one-time build | |
1481 --enable-dependency-tracking do not reject slow dependency extractors | |
1482 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1483 --enable-static[=PKGS] build static libraries [default=yes] | |
1484 --enable-fast-install[=PKGS] | |
1485 optimize for fast installation [default=yes] | |
1486 --disable-libtool-lock avoid locking (might break parallel builds) | |
1487 --disable-largefile omit support for large files | |
1488 | |
1489 Optional Packages: | |
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1493 --with-pic try to use only PIC/non-PIC objects [default=use | |
1494 both] | |
1495 --with-tags[=TAGS] include additional configurations [automatic] | |
1496 --with-libcurl=DIR look for the curl library in DIR | |
1497 --with-zlib=DIR look for zlib in DIR | |
1498 | |
1499 Some influential environment variables: | |
1500 CC C compiler command | |
1501 CFLAGS C compiler flags | |
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1503 nonstandard directory <lib dir> | |
1504 LIBS libraries to pass to the linker, e.g. -l<library> | |
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1506 you have headers in a nonstandard directory <include dir> | |
1507 CPP C preprocessor | |
1508 CXX C++ compiler command | |
1509 CXXFLAGS C++ compiler flags | |
1510 CXXCPP C++ preprocessor | |
1511 F77 Fortran 77 compiler command | |
1512 FFLAGS Fortran 77 compiler flags | |
1513 | |
1514 Use these variables to override the choices made by `configure' or to help | |
1515 it to find libraries and programs with nonstandard names/locations. | |
1516 | |
1517 _ACEOF | |
1518 ac_status=$? | |
1519 fi | |
1520 | |
1521 if test "$ac_init_help" = "recursive"; then | |
1522 # If there are subdirs, report their specific --help. | |
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1524 test -d "$ac_dir" || continue | |
1525 ac_builddir=. | |
1526 | |
1527 case "$ac_dir" in | |
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1529 *) | |
1530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1531 # A ".." for each directory in $ac_dir_suffix. | |
1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1533 case $ac_top_builddir_sub in | |
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1536 esac ;; | |
1537 esac | |
1538 ac_abs_top_builddir=$ac_pwd | |
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1540 # for backward compatibility: | |
1541 ac_top_builddir=$ac_top_build_prefix | |
1542 | |
1543 case $srcdir in | |
1544 .) # We are building in place. | |
1545 ac_srcdir=. | |
1546 ac_top_srcdir=$ac_top_builddir_sub | |
1547 ac_abs_top_srcdir=$ac_pwd ;; | |
1548 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1549 ac_srcdir=$srcdir$ac_dir_suffix; | |
1550 ac_top_srcdir=$srcdir | |
1551 ac_abs_top_srcdir=$srcdir ;; | |
1552 *) # Relative name. | |
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1556 esac | |
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1558 | |
1559 cd "$ac_dir" || { ac_status=$?; continue; } | |
1560 # Check for guested configure. | |
1561 if test -f "$ac_srcdir/configure.gnu"; then | |
1562 echo && | |
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1564 elif test -f "$ac_srcdir/configure"; then | |
1565 echo && | |
1566 $SHELL "$ac_srcdir/configure" --help=recursive | |
1567 else | |
1568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1569 fi || ac_status=$? | |
1570 cd "$ac_pwd" || { ac_status=$?; break; } | |
1571 done | |
1572 fi | |
1573 | |
1574 test -n "$ac_init_help" && exit $ac_status | |
1575 if $ac_init_version; then | |
1576 cat <<\_ACEOF | |
1577 io_lib configure 1.12.2 | |
1578 generated by GNU Autoconf 2.61 | |
1579 | |
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1582 This configure script is free software; the Free Software Foundation | |
1583 gives unlimited permission to copy, distribute and modify it. | |
1584 _ACEOF | |
1585 exit | |
1586 fi | |
1587 cat >config.log <<_ACEOF | |
1588 This file contains any messages produced by compilers while | |
1589 running configure, to aid debugging if configure makes a mistake. | |
1590 | |
1591 It was created by io_lib $as_me 1.12.2, which was | |
1592 generated by GNU Autoconf 2.61. Invocation command line was | |
1593 | |
1594 $ $0 $@ | |
1595 | |
1596 _ACEOF | |
1597 exec 5>>config.log | |
1598 { | |
1599 cat <<_ASUNAME | |
1600 ## --------- ## | |
1601 ## Platform. ## | |
1602 ## --------- ## | |
1603 | |
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1609 | |
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1611 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1612 | |
1613 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1614 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1616 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1617 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1618 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1619 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1620 | |
1621 _ASUNAME | |
1622 | |
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1624 for as_dir in $PATH | |
1625 do | |
1626 IFS=$as_save_IFS | |
1627 test -z "$as_dir" && as_dir=. | |
1628 echo "PATH: $as_dir" | |
1629 done | |
1630 IFS=$as_save_IFS | |
1631 | |
1632 } >&5 | |
1633 | |
1634 cat >&5 <<_ACEOF | |
1635 | |
1636 | |
1637 ## ----------- ## | |
1638 ## Core tests. ## | |
1639 ## ----------- ## | |
1640 | |
1641 _ACEOF | |
1642 | |
1643 | |
1644 # Keep a trace of the command line. | |
1645 # Strip out --no-create and --no-recursion so they do not pile up. | |
1646 # Strip out --silent because we don't want to record it for future runs. | |
1647 # Also quote any args containing shell meta-characters. | |
1648 # Make two passes to allow for proper duplicate-argument suppression. | |
1649 ac_configure_args= | |
1650 ac_configure_args0= | |
1651 ac_configure_args1= | |
1652 ac_must_keep_next=false | |
1653 for ac_pass in 1 2 | |
1654 do | |
1655 for ac_arg | |
1656 do | |
1657 case $ac_arg in | |
1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1660 | -silent | --silent | --silen | --sile | --sil) | |
1661 continue ;; | |
1662 *\'*) | |
1663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1664 esac | |
1665 case $ac_pass in | |
1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1667 2) | |
1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1669 if test $ac_must_keep_next = true; then | |
1670 ac_must_keep_next=false # Got value, back to normal. | |
1671 else | |
1672 case $ac_arg in | |
1673 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1676 | -with-* | --with-* | -without-* | --without-* | --x) | |
1677 case "$ac_configure_args0 " in | |
1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1679 esac | |
1680 ;; | |
1681 -* ) ac_must_keep_next=true ;; | |
1682 esac | |
1683 fi | |
1684 ac_configure_args="$ac_configure_args '$ac_arg'" | |
1685 ;; | |
1686 esac | |
1687 done | |
1688 done | |
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1691 | |
1692 # When interrupted or exit'd, cleanup temporary files, and complete | |
1693 # config.log. We remove comments because anyway the quotes in there | |
1694 # would cause problems or look ugly. | |
1695 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1697 trap 'exit_status=$? | |
1698 # Save into config.log some information that might help in debugging. | |
1699 { | |
1700 echo | |
1701 | |
1702 cat <<\_ASBOX | |
1703 ## ---------------- ## | |
1704 ## Cache variables. ## | |
1705 ## ---------------- ## | |
1706 _ASBOX | |
1707 echo | |
1708 # The following way of writing the cache mishandles newlines in values, | |
1709 ( | |
1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1711 eval ac_val=\$$ac_var | |
1712 case $ac_val in #( | |
1713 *${as_nl}*) | |
1714 case $ac_var in #( | |
1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1717 esac | |
1718 case $ac_var in #( | |
1719 _ | IFS | as_nl) ;; #( | |
1720 *) $as_unset $ac_var ;; | |
1721 esac ;; | |
1722 esac | |
1723 done | |
1724 (set) 2>&1 | | |
1725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1726 *${as_nl}ac_space=\ *) | |
1727 sed -n \ | |
1728 "s/'\''/'\''\\\\'\'''\''/g; | |
1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1730 ;; #( | |
1731 *) | |
1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1733 ;; | |
1734 esac | | |
1735 sort | |
1736 ) | |
1737 echo | |
1738 | |
1739 cat <<\_ASBOX | |
1740 ## ----------------- ## | |
1741 ## Output variables. ## | |
1742 ## ----------------- ## | |
1743 _ASBOX | |
1744 echo | |
1745 for ac_var in $ac_subst_vars | |
1746 do | |
1747 eval ac_val=\$$ac_var | |
1748 case $ac_val in | |
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1750 esac | |
1751 echo "$ac_var='\''$ac_val'\''" | |
1752 done | sort | |
1753 echo | |
1754 | |
1755 if test -n "$ac_subst_files"; then | |
1756 cat <<\_ASBOX | |
1757 ## ------------------- ## | |
1758 ## File substitutions. ## | |
1759 ## ------------------- ## | |
1760 _ASBOX | |
1761 echo | |
1762 for ac_var in $ac_subst_files | |
1763 do | |
1764 eval ac_val=\$$ac_var | |
1765 case $ac_val in | |
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1767 esac | |
1768 echo "$ac_var='\''$ac_val'\''" | |
1769 done | sort | |
1770 echo | |
1771 fi | |
1772 | |
1773 if test -s confdefs.h; then | |
1774 cat <<\_ASBOX | |
1775 ## ----------- ## | |
1776 ## confdefs.h. ## | |
1777 ## ----------- ## | |
1778 _ASBOX | |
1779 echo | |
1780 cat confdefs.h | |
1781 echo | |
1782 fi | |
1783 test "$ac_signal" != 0 && | |
1784 echo "$as_me: caught signal $ac_signal" | |
1785 echo "$as_me: exit $exit_status" | |
1786 } >&5 | |
1787 rm -f core *.core core.conftest.* && | |
1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1789 exit $exit_status | |
1790 ' 0 | |
1791 for ac_signal in 1 2 13 15; do | |
1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1793 done | |
1794 ac_signal=0 | |
1795 | |
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1797 rm -f -r conftest* confdefs.h | |
1798 | |
1799 # Predefined preprocessor variables. | |
1800 | |
1801 cat >>confdefs.h <<_ACEOF | |
1802 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1803 _ACEOF | |
1804 | |
1805 | |
1806 cat >>confdefs.h <<_ACEOF | |
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1808 _ACEOF | |
1809 | |
1810 | |
1811 cat >>confdefs.h <<_ACEOF | |
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1813 _ACEOF | |
1814 | |
1815 | |
1816 cat >>confdefs.h <<_ACEOF | |
1817 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1818 _ACEOF | |
1819 | |
1820 | |
1821 cat >>confdefs.h <<_ACEOF | |
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1823 _ACEOF | |
1824 | |
1825 | |
1826 # Let the site file select an alternate cache file if it wants to. | |
1827 # Prefer explicitly selected file to automatically selected ones. | |
1828 if test -n "$CONFIG_SITE"; then | |
1829 set x "$CONFIG_SITE" | |
1830 elif test "x$prefix" != xNONE; then | |
1831 set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1832 else | |
1833 set x "$ac_default_prefix/share/config.site" \ | |
1834 "$ac_default_prefix/etc/config.site" | |
1835 fi | |
1836 shift | |
1837 for ac_site_file | |
1838 do | |
1839 if test -r "$ac_site_file"; then | |
1840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1841 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1842 sed 's/^/| /' "$ac_site_file" >&5 | |
1843 . "$ac_site_file" | |
1844 fi | |
1845 done | |
1846 | |
1847 if test -r "$cache_file"; then | |
1848 # Some versions of bash will fail to source /dev/null (special | |
1849 # files actually), so we avoid doing that. | |
1850 if test -f "$cache_file"; then | |
1851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1852 echo "$as_me: loading cache $cache_file" >&6;} | |
1853 case $cache_file in | |
1854 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1855 *) . "./$cache_file";; | |
1856 esac | |
1857 fi | |
1858 else | |
1859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1860 echo "$as_me: creating cache $cache_file" >&6;} | |
1861 >$cache_file | |
1862 fi | |
1863 | |
1864 # Check that the precious variables saved in the cache have kept the same | |
1865 # value. | |
1866 ac_cache_corrupted=false | |
1867 for ac_var in $ac_precious_vars; do | |
1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1869 eval ac_new_set=\$ac_env_${ac_var}_set | |
1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1871 eval ac_new_val=\$ac_env_${ac_var}_value | |
1872 case $ac_old_set,$ac_new_set in | |
1873 set,) | |
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1876 ac_cache_corrupted=: ;; | |
1877 ,set) | |
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1880 ac_cache_corrupted=: ;; | |
1881 ,);; | |
1882 *) | |
1883 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1887 echo "$as_me: former value: $ac_old_val" >&2;} | |
1888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1889 echo "$as_me: current value: $ac_new_val" >&2;} | |
1890 ac_cache_corrupted=: | |
1891 fi;; | |
1892 esac | |
1893 # Pass precious variables to config.status. | |
1894 if test "$ac_new_set" = set; then | |
1895 case $ac_new_val in | |
1896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1897 *) ac_arg=$ac_var=$ac_new_val ;; | |
1898 esac | |
1899 case " $ac_configure_args " in | |
1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1902 esac | |
1903 fi | |
1904 done | |
1905 if $ac_cache_corrupted; then | |
1906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1910 { (exit 1); exit 1; }; } | |
1911 fi | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
1934 | |
1935 | |
1936 | |
1937 ac_ext=c | |
1938 ac_cpp='$CPP $CPPFLAGS' | |
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1942 | |
1943 | |
1944 ac_config_headers="$ac_config_headers io_lib_config.h" | |
1945 | |
1946 am__api_version="1.9" | |
1947 ac_aux_dir= | |
1948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1949 if test -f "$ac_dir/install-sh"; then | |
1950 ac_aux_dir=$ac_dir | |
1951 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1952 break | |
1953 elif test -f "$ac_dir/install.sh"; then | |
1954 ac_aux_dir=$ac_dir | |
1955 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1956 break | |
1957 elif test -f "$ac_dir/shtool"; then | |
1958 ac_aux_dir=$ac_dir | |
1959 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1960 break | |
1961 fi | |
1962 done | |
1963 if test -z "$ac_aux_dir"; then | |
1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1965 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1966 { (exit 1); exit 1; }; } | |
1967 fi | |
1968 | |
1969 # These three variables are undocumented and unsupported, | |
1970 # and are intended to be withdrawn in a future Autoconf release. | |
1971 # They can cause serious problems if a builder's source tree is in a directory | |
1972 # whose full name contains unusual characters. | |
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1976 | |
1977 | |
1978 # Find a good install program. We prefer a C program (faster), | |
1979 # so one script is as good as another. But avoid the broken or | |
1980 # incompatible versions: | |
1981 # SysV /etc/install, /usr/sbin/install | |
1982 # SunOS /usr/etc/install | |
1983 # IRIX /sbin/install | |
1984 # AIX /bin/install | |
1985 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1989 # OS/2's system install, which has a completely different semantic | |
1990 # ./install, which can be erroneously created by make from ./install.sh. | |
1991 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
1993 if test -z "$INSTALL"; then | |
1994 if test "${ac_cv_path_install+set}" = set; then | |
1995 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1996 else | |
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1998 for as_dir in $PATH | |
1999 do | |
2000 IFS=$as_save_IFS | |
2001 test -z "$as_dir" && as_dir=. | |
2002 # Account for people who put trailing slashes in PATH elements. | |
2003 case $as_dir/ in | |
2004 ./ | .// | /cC/* | \ | |
2005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2007 /usr/ucb/* ) ;; | |
2008 *) | |
2009 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2010 # Don't use installbsd from OSF since it installs stuff as root | |
2011 # by default. | |
2012 for ac_prog in ginstall scoinst install; do | |
2013 for ac_exec_ext in '' $ac_executable_extensions; do | |
2014 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2015 if test $ac_prog = install && | |
2016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2017 # AIX install. It has an incompatible calling convention. | |
2018 : | |
2019 elif test $ac_prog = install && | |
2020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2021 # program-specific install script used by HP pwplus--don't use. | |
2022 : | |
2023 else | |
2024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2025 break 3 | |
2026 fi | |
2027 fi | |
2028 done | |
2029 done | |
2030 ;; | |
2031 esac | |
2032 done | |
2033 IFS=$as_save_IFS | |
2034 | |
2035 | |
2036 fi | |
2037 if test "${ac_cv_path_install+set}" = set; then | |
2038 INSTALL=$ac_cv_path_install | |
2039 else | |
2040 # As a last resort, use the slow shell script. Don't cache a | |
2041 # value for INSTALL within a source directory, because that will | |
2042 # break other packages using the cache if that directory is | |
2043 # removed, or if the value is a relative name. | |
2044 INSTALL=$ac_install_sh | |
2045 fi | |
2046 fi | |
2047 { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2048 echo "${ECHO_T}$INSTALL" >&6; } | |
2049 | |
2050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2051 # It thinks the first close brace ends the variable substitution. | |
2052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2053 | |
2054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2055 | |
2056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2057 | |
2058 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2059 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2060 # Just in case | |
2061 sleep 1 | |
2062 echo timestamp > conftest.file | |
2063 # Do `set' in a subshell so we don't clobber the current shell's | |
2064 # arguments. Must try -L first in case configure is actually a | |
2065 # symlink; some systems play weird games with the mod time of symlinks | |
2066 # (eg FreeBSD returns the mod time of the symlink's containing | |
2067 # directory). | |
2068 if ( | |
2069 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2070 if test "$*" = "X"; then | |
2071 # -L didn't work. | |
2072 set X `ls -t $srcdir/configure conftest.file` | |
2073 fi | |
2074 rm -f conftest.file | |
2075 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2076 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2077 | |
2078 # If neither matched, then we have a broken ls. This can happen | |
2079 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2080 # broken ls alias from the environment. This has actually | |
2081 # happened. Such a system could not be considered "sane". | |
2082 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2083 alias in your environment" >&5 | |
2084 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2085 alias in your environment" >&2;} | |
2086 { (exit 1); exit 1; }; } | |
2087 fi | |
2088 | |
2089 test "$2" = conftest.file | |
2090 ) | |
2091 then | |
2092 # Ok. | |
2093 : | |
2094 else | |
2095 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2096 Check your system clock" >&5 | |
2097 echo "$as_me: error: newly created file is older than distributed files! | |
2098 Check your system clock" >&2;} | |
2099 { (exit 1); exit 1; }; } | |
2100 fi | |
2101 { echo "$as_me:$LINENO: result: yes" >&5 | |
2102 echo "${ECHO_T}yes" >&6; } | |
2103 test "$program_prefix" != NONE && | |
2104 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2105 # Use a double $ so make ignores it. | |
2106 test "$program_suffix" != NONE && | |
2107 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2108 # Double any \ or $. echo might interpret backslashes. | |
2109 # By default was `s,x,x', remove it if useless. | |
2110 cat <<\_ACEOF >conftest.sed | |
2111 s/[\\$]/&&/g;s/;s,x,x,$// | |
2112 _ACEOF | |
2113 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2114 rm -f conftest.sed | |
2115 | |
2116 # expand $ac_aux_dir to an absolute path | |
2117 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2118 | |
2119 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2120 # Use eval to expand $SHELL | |
2121 if eval "$MISSING --run true"; then | |
2122 am_missing_run="$MISSING --run " | |
2123 else | |
2124 am_missing_run= | |
2125 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2126 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2127 fi | |
2128 | |
2129 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2130 # We used to keeping the `.' as first argument, in order to | |
2131 # allow $(mkdir_p) to be used without argument. As in | |
2132 # $(mkdir_p) $(somedir) | |
2133 # where $(somedir) is conditionally defined. However this is wrong | |
2134 # for two reasons: | |
2135 # 1. if the package is installed by a user who cannot write `.' | |
2136 # make install will fail, | |
2137 # 2. the above comment should most certainly read | |
2138 # $(mkdir_p) $(DESTDIR)$(somedir) | |
2139 # so it does not work when $(somedir) is undefined and | |
2140 # $(DESTDIR) is not. | |
2141 # To support the latter case, we have to write | |
2142 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2143 # so the `.' trick is pointless. | |
2144 mkdir_p='mkdir -p --' | |
2145 else | |
2146 # On NextStep and OpenStep, the `mkdir' command does not | |
2147 # recognize any option. It will interpret all options as | |
2148 # directories to create, and then abort because `.' already | |
2149 # exists. | |
2150 for d in ./-p ./--version; | |
2151 do | |
2152 test -d $d && rmdir $d | |
2153 done | |
2154 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2155 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2156 mkdir_p='$(mkinstalldirs)' | |
2157 else | |
2158 mkdir_p='$(install_sh) -d' | |
2159 fi | |
2160 fi | |
2161 | |
2162 for ac_prog in gawk mawk nawk awk | |
2163 do | |
2164 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2165 set dummy $ac_prog; ac_word=$2 | |
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2168 if test "${ac_cv_prog_AWK+set}" = set; then | |
2169 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2170 else | |
2171 if test -n "$AWK"; then | |
2172 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2173 else | |
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2175 for as_dir in $PATH | |
2176 do | |
2177 IFS=$as_save_IFS | |
2178 test -z "$as_dir" && as_dir=. | |
2179 for ac_exec_ext in '' $ac_executable_extensions; do | |
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2181 ac_cv_prog_AWK="$ac_prog" | |
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2183 break 2 | |
2184 fi | |
2185 done | |
2186 done | |
2187 IFS=$as_save_IFS | |
2188 | |
2189 fi | |
2190 fi | |
2191 AWK=$ac_cv_prog_AWK | |
2192 if test -n "$AWK"; then | |
2193 { echo "$as_me:$LINENO: result: $AWK" >&5 | |
2194 echo "${ECHO_T}$AWK" >&6; } | |
2195 else | |
2196 { echo "$as_me:$LINENO: result: no" >&5 | |
2197 echo "${ECHO_T}no" >&6; } | |
2198 fi | |
2199 | |
2200 | |
2201 test -n "$AWK" && break | |
2202 done | |
2203 | |
2204 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2205 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2206 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2208 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2209 else | |
2210 cat >conftest.make <<\_ACEOF | |
2211 SHELL = /bin/sh | |
2212 all: | |
2213 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2214 _ACEOF | |
2215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2216 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2217 *@@@%%%=?*=@@@%%%*) | |
2218 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2219 *) | |
2220 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2221 esac | |
2222 rm -f conftest.make | |
2223 fi | |
2224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2225 { echo "$as_me:$LINENO: result: yes" >&5 | |
2226 echo "${ECHO_T}yes" >&6; } | |
2227 SET_MAKE= | |
2228 else | |
2229 { echo "$as_me:$LINENO: result: no" >&5 | |
2230 echo "${ECHO_T}no" >&6; } | |
2231 SET_MAKE="MAKE=${MAKE-make}" | |
2232 fi | |
2233 | |
2234 rm -rf .tst 2>/dev/null | |
2235 mkdir .tst 2>/dev/null | |
2236 if test -d .tst; then | |
2237 am__leading_dot=. | |
2238 else | |
2239 am__leading_dot=_ | |
2240 fi | |
2241 rmdir .tst 2>/dev/null | |
2242 | |
2243 # test to see if srcdir already configured | |
2244 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2245 test -f $srcdir/config.status; then | |
2246 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2247 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2248 { (exit 1); exit 1; }; } | |
2249 fi | |
2250 | |
2251 # test whether we have cygpath | |
2252 if test -z "$CYGPATH_W"; then | |
2253 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2254 CYGPATH_W='cygpath -w' | |
2255 else | |
2256 CYGPATH_W=echo | |
2257 fi | |
2258 fi | |
2259 | |
2260 | |
2261 # Define the identity of the package. | |
2262 PACKAGE='io_lib' | |
2263 VERSION='1.12.2' | |
2264 | |
2265 | |
2266 cat >>confdefs.h <<_ACEOF | |
2267 #define PACKAGE "$PACKAGE" | |
2268 _ACEOF | |
2269 | |
2270 | |
2271 cat >>confdefs.h <<_ACEOF | |
2272 #define VERSION "$VERSION" | |
2273 _ACEOF | |
2274 | |
2275 # Some tools Automake needs. | |
2276 | |
2277 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2278 | |
2279 | |
2280 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2281 | |
2282 | |
2283 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2284 | |
2285 | |
2286 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2287 | |
2288 | |
2289 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2290 | |
2291 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2292 | |
2293 # Installed binaries are usually stripped using `strip' when the user | |
2294 # run `make install-strip'. However `strip' might not be the right | |
2295 # tool to use in cross-compilation environments, therefore Automake | |
2296 # will honor the `STRIP' environment variable to overrule this program. | |
2297 if test "$cross_compiling" != no; then | |
2298 if test -n "$ac_tool_prefix"; then | |
2299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2300 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2303 if test "${ac_cv_prog_STRIP+set}" = set; then | |
2304 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2305 else | |
2306 if test -n "$STRIP"; then | |
2307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2308 else | |
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 for as_dir in $PATH | |
2311 do | |
2312 IFS=$as_save_IFS | |
2313 test -z "$as_dir" && as_dir=. | |
2314 for ac_exec_ext in '' $ac_executable_extensions; do | |
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2316 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2318 break 2 | |
2319 fi | |
2320 done | |
2321 done | |
2322 IFS=$as_save_IFS | |
2323 | |
2324 fi | |
2325 fi | |
2326 STRIP=$ac_cv_prog_STRIP | |
2327 if test -n "$STRIP"; then | |
2328 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2329 echo "${ECHO_T}$STRIP" >&6; } | |
2330 else | |
2331 { echo "$as_me:$LINENO: result: no" >&5 | |
2332 echo "${ECHO_T}no" >&6; } | |
2333 fi | |
2334 | |
2335 | |
2336 fi | |
2337 if test -z "$ac_cv_prog_STRIP"; then | |
2338 ac_ct_STRIP=$STRIP | |
2339 # Extract the first word of "strip", so it can be a program name with args. | |
2340 set dummy strip; ac_word=$2 | |
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2343 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2344 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2345 else | |
2346 if test -n "$ac_ct_STRIP"; then | |
2347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2348 else | |
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2350 for as_dir in $PATH | |
2351 do | |
2352 IFS=$as_save_IFS | |
2353 test -z "$as_dir" && as_dir=. | |
2354 for ac_exec_ext in '' $ac_executable_extensions; do | |
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2356 ac_cv_prog_ac_ct_STRIP="strip" | |
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2358 break 2 | |
2359 fi | |
2360 done | |
2361 done | |
2362 IFS=$as_save_IFS | |
2363 | |
2364 fi | |
2365 fi | |
2366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2367 if test -n "$ac_ct_STRIP"; then | |
2368 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2369 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2370 else | |
2371 { echo "$as_me:$LINENO: result: no" >&5 | |
2372 echo "${ECHO_T}no" >&6; } | |
2373 fi | |
2374 | |
2375 if test "x$ac_ct_STRIP" = x; then | |
2376 STRIP=":" | |
2377 else | |
2378 case $cross_compiling:$ac_tool_warned in | |
2379 yes:) | |
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2381 whose name does not start with the host triplet. If you think this | |
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2384 whose name does not start with the host triplet. If you think this | |
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2386 ac_tool_warned=yes ;; | |
2387 esac | |
2388 STRIP=$ac_ct_STRIP | |
2389 fi | |
2390 else | |
2391 STRIP="$ac_cv_prog_STRIP" | |
2392 fi | |
2393 | |
2394 fi | |
2395 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2396 | |
2397 # We need awk for the "check" target. The system "awk" is bad on | |
2398 # some platforms. | |
2399 # Always define AMTAR for backward compatibility. | |
2400 | |
2401 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2402 | |
2403 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2404 | |
2405 | |
2406 | |
2407 | |
2408 | |
2409 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2410 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2411 # Check whether --enable-maintainer-mode was given. | |
2412 if test "${enable_maintainer_mode+set}" = set; then | |
2413 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2414 else | |
2415 USE_MAINTAINER_MODE=no | |
2416 fi | |
2417 | |
2418 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2419 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
2420 | |
2421 | |
2422 if test $USE_MAINTAINER_MODE = yes; then | |
2423 MAINTAINER_MODE_TRUE= | |
2424 MAINTAINER_MODE_FALSE='#' | |
2425 else | |
2426 MAINTAINER_MODE_TRUE='#' | |
2427 MAINTAINER_MODE_FALSE= | |
2428 fi | |
2429 | |
2430 MAINT=$MAINTAINER_MODE_TRUE | |
2431 | |
2432 | |
2433 | |
2434 # For my own benefit, here's a summary of how versioning should work. | |
2435 # | |
2436 # Library versioning, not to be confused with the release number: | |
2437 # Update VERS_CURRENT when an interface changes in an incompatible manner. | |
2438 # eg. change of struct, removing a function, changing a prototype. | |
2439 # Also increment this when we add new functions in a backwards compatible | |
2440 # manner, but update VERS_AGE too (see below). | |
2441 # | |
2442 # Update VERS_REVISION whenever VERS_CURRENT hasn't changed, but the source | |
2443 # code has. (Otherwise reset revision to 0). | |
2444 # | |
2445 # Update VERS_AGE if new interfaces have been added, causing VERS_CURRENT to | |
2446 # be incremented too. The idea is that if the previous values are | |
2447 # VERS_CURRENT=2, VERS_AGE=0 then after adding a new function we | |
2448 # get VERS_CURRENT=3, VERS_AGE=1 (ie ABI compat with vers 2 or 3). | |
2449 # | |
2450 # Also see: | |
2451 # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info | |
2452 | |
2453 # Example: We have io_lib 1.11.6 implementing ABI vers 0, rev 6, age 0. | |
2454 # Our library has an soname of libstaden-read.so.0 and files as follows: | |
2455 # (SONAME libstaden-read.so.0) | |
2456 # libstaden-read.so -> libstaden-read.so.0.0.6 | |
2457 # libstaden-read.so.0 -> libstaden-read.so.0.0.6 | |
2458 # libstaden-read.so.0.0.6 | |
2459 # | |
2460 # We then release io_lib 1.12.0 with modified structs, so it's incompatible. | |
2461 # We bump to ABI vers 1, rev 0, age 0 - giving: | |
2462 # (SONAME libstaden-read.so.1) | |
2463 # libstaden-read.so -> libstaden-read.so.1.0.0 | |
2464 # libstaden-read.so.1 -> libstaden-read.so.1.0.0 | |
2465 # libstaden-read.so.1.0.0 | |
2466 # | |
2467 # If in 1.12.1 to 1.12.5 we then perform several successive minor tweaks (bug | |
2468 # fix, optimisation, etc) that do not change the ABI at all, we may | |
2469 # end up with ABI vers 1, rev 5, age 0: | |
2470 # (SONAME libstaden-read.so.1) | |
2471 # libstaden-read.so -> libstaden-read.so.1.0.5 | |
2472 # libstaden-read.so.1 -> libstaden-read.so.1.0.5 | |
2473 # libstaden-read.so.1.0.5 | |
2474 # | |
2475 # And assume in 1.13.0 we add an extra public function. Code linked | |
2476 # against 1.12.x still works (aka library version 1) meaning our | |
2477 # soname doesn't change, but we do update ABI version: vers 2, rev 0, age 1. | |
2478 # (SONAME libstaden-read.so.1) | |
2479 # libstaden-read.so -> libstaden-read.so.1.1.0 | |
2480 # libstaden-read.so.1 -> libstaden-read.so.1.1.0 | |
2481 # libstaden-read.so.1.1.0 | |
2482 | |
2483 VERS_CURRENT=2 | |
2484 VERS_REVISION=0 | |
2485 VERS_AGE=1 | |
2486 | |
2487 | |
2488 | |
2489 | |
2490 ac_ext=c | |
2491 ac_cpp='$CPP $CPPFLAGS' | |
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2495 if test -n "$ac_tool_prefix"; then | |
2496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2500 if test "${ac_cv_prog_CC+set}" = set; then | |
2501 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2502 else | |
2503 if test -n "$CC"; then | |
2504 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2505 else | |
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2507 for as_dir in $PATH | |
2508 do | |
2509 IFS=$as_save_IFS | |
2510 test -z "$as_dir" && as_dir=. | |
2511 for ac_exec_ext in '' $ac_executable_extensions; do | |
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2513 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2515 break 2 | |
2516 fi | |
2517 done | |
2518 done | |
2519 IFS=$as_save_IFS | |
2520 | |
2521 fi | |
2522 fi | |
2523 CC=$ac_cv_prog_CC | |
2524 if test -n "$CC"; then | |
2525 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2526 echo "${ECHO_T}$CC" >&6; } | |
2527 else | |
2528 { echo "$as_me:$LINENO: result: no" >&5 | |
2529 echo "${ECHO_T}no" >&6; } | |
2530 fi | |
2531 | |
2532 | |
2533 fi | |
2534 if test -z "$ac_cv_prog_CC"; then | |
2535 ac_ct_CC=$CC | |
2536 # Extract the first word of "gcc", so it can be a program name with args. | |
2537 set dummy gcc; ac_word=$2 | |
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2541 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2542 else | |
2543 if test -n "$ac_ct_CC"; then | |
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2545 else | |
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2547 for as_dir in $PATH | |
2548 do | |
2549 IFS=$as_save_IFS | |
2550 test -z "$as_dir" && as_dir=. | |
2551 for ac_exec_ext in '' $ac_executable_extensions; do | |
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2553 ac_cv_prog_ac_ct_CC="gcc" | |
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2555 break 2 | |
2556 fi | |
2557 done | |
2558 done | |
2559 IFS=$as_save_IFS | |
2560 | |
2561 fi | |
2562 fi | |
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2564 if test -n "$ac_ct_CC"; then | |
2565 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2566 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2567 else | |
2568 { echo "$as_me:$LINENO: result: no" >&5 | |
2569 echo "${ECHO_T}no" >&6; } | |
2570 fi | |
2571 | |
2572 if test "x$ac_ct_CC" = x; then | |
2573 CC="" | |
2574 else | |
2575 case $cross_compiling:$ac_tool_warned in | |
2576 yes:) | |
2577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2578 whose name does not start with the host triplet. If you think this | |
2579 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2581 whose name does not start with the host triplet. If you think this | |
2582 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2583 ac_tool_warned=yes ;; | |
2584 esac | |
2585 CC=$ac_ct_CC | |
2586 fi | |
2587 else | |
2588 CC="$ac_cv_prog_CC" | |
2589 fi | |
2590 | |
2591 if test -z "$CC"; then | |
2592 if test -n "$ac_tool_prefix"; then | |
2593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2594 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2597 if test "${ac_cv_prog_CC+set}" = set; then | |
2598 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2599 else | |
2600 if test -n "$CC"; then | |
2601 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2602 else | |
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2604 for as_dir in $PATH | |
2605 do | |
2606 IFS=$as_save_IFS | |
2607 test -z "$as_dir" && as_dir=. | |
2608 for ac_exec_ext in '' $ac_executable_extensions; do | |
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2610 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2612 break 2 | |
2613 fi | |
2614 done | |
2615 done | |
2616 IFS=$as_save_IFS | |
2617 | |
2618 fi | |
2619 fi | |
2620 CC=$ac_cv_prog_CC | |
2621 if test -n "$CC"; then | |
2622 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2623 echo "${ECHO_T}$CC" >&6; } | |
2624 else | |
2625 { echo "$as_me:$LINENO: result: no" >&5 | |
2626 echo "${ECHO_T}no" >&6; } | |
2627 fi | |
2628 | |
2629 | |
2630 fi | |
2631 fi | |
2632 if test -z "$CC"; then | |
2633 # Extract the first word of "cc", so it can be a program name with args. | |
2634 set dummy cc; ac_word=$2 | |
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2637 if test "${ac_cv_prog_CC+set}" = set; then | |
2638 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2639 else | |
2640 if test -n "$CC"; then | |
2641 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2642 else | |
2643 ac_prog_rejected=no | |
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2645 for as_dir in $PATH | |
2646 do | |
2647 IFS=$as_save_IFS | |
2648 test -z "$as_dir" && as_dir=. | |
2649 for ac_exec_ext in '' $ac_executable_extensions; do | |
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2652 ac_prog_rejected=yes | |
2653 continue | |
2654 fi | |
2655 ac_cv_prog_CC="cc" | |
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2657 break 2 | |
2658 fi | |
2659 done | |
2660 done | |
2661 IFS=$as_save_IFS | |
2662 | |
2663 if test $ac_prog_rejected = yes; then | |
2664 # We found a bogon in the path, so make sure we never use it. | |
2665 set dummy $ac_cv_prog_CC | |
2666 shift | |
2667 if test $# != 0; then | |
2668 # We chose a different compiler from the bogus one. | |
2669 # However, it has the same basename, so the bogon will be chosen | |
2670 # first if we set CC to just the basename; use the full file name. | |
2671 shift | |
2672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2673 fi | |
2674 fi | |
2675 fi | |
2676 fi | |
2677 CC=$ac_cv_prog_CC | |
2678 if test -n "$CC"; then | |
2679 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2680 echo "${ECHO_T}$CC" >&6; } | |
2681 else | |
2682 { echo "$as_me:$LINENO: result: no" >&5 | |
2683 echo "${ECHO_T}no" >&6; } | |
2684 fi | |
2685 | |
2686 | |
2687 fi | |
2688 if test -z "$CC"; then | |
2689 if test -n "$ac_tool_prefix"; then | |
2690 for ac_prog in cl.exe | |
2691 do | |
2692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2696 if test "${ac_cv_prog_CC+set}" = set; then | |
2697 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2698 else | |
2699 if test -n "$CC"; then | |
2700 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2701 else | |
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2711 break 2 | |
2712 fi | |
2713 done | |
2714 done | |
2715 IFS=$as_save_IFS | |
2716 | |
2717 fi | |
2718 fi | |
2719 CC=$ac_cv_prog_CC | |
2720 if test -n "$CC"; then | |
2721 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2722 echo "${ECHO_T}$CC" >&6; } | |
2723 else | |
2724 { echo "$as_me:$LINENO: result: no" >&5 | |
2725 echo "${ECHO_T}no" >&6; } | |
2726 fi | |
2727 | |
2728 | |
2729 test -n "$CC" && break | |
2730 done | |
2731 fi | |
2732 if test -z "$CC"; then | |
2733 ac_ct_CC=$CC | |
2734 for ac_prog in cl.exe | |
2735 do | |
2736 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2737 set dummy $ac_prog; ac_word=$2 | |
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2741 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2742 else | |
2743 if test -n "$ac_ct_CC"; then | |
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2745 else | |
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2747 for as_dir in $PATH | |
2748 do | |
2749 IFS=$as_save_IFS | |
2750 test -z "$as_dir" && as_dir=. | |
2751 for ac_exec_ext in '' $ac_executable_extensions; do | |
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2753 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2755 break 2 | |
2756 fi | |
2757 done | |
2758 done | |
2759 IFS=$as_save_IFS | |
2760 | |
2761 fi | |
2762 fi | |
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2764 if test -n "$ac_ct_CC"; then | |
2765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2766 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2767 else | |
2768 { echo "$as_me:$LINENO: result: no" >&5 | |
2769 echo "${ECHO_T}no" >&6; } | |
2770 fi | |
2771 | |
2772 | |
2773 test -n "$ac_ct_CC" && break | |
2774 done | |
2775 | |
2776 if test "x$ac_ct_CC" = x; then | |
2777 CC="" | |
2778 else | |
2779 case $cross_compiling:$ac_tool_warned in | |
2780 yes:) | |
2781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2782 whose name does not start with the host triplet. If you think this | |
2783 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2785 whose name does not start with the host triplet. If you think this | |
2786 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2787 ac_tool_warned=yes ;; | |
2788 esac | |
2789 CC=$ac_ct_CC | |
2790 fi | |
2791 fi | |
2792 | |
2793 fi | |
2794 | |
2795 | |
2796 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2797 See \`config.log' for more details." >&5 | |
2798 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2799 See \`config.log' for more details." >&2;} | |
2800 { (exit 1); exit 1; }; } | |
2801 | |
2802 # Provide some information about the compiler. | |
2803 echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2804 ac_compiler=`set X $ac_compile; echo $2` | |
2805 { (ac_try="$ac_compiler --version >&5" | |
2806 case "(($ac_try" in | |
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2808 *) ac_try_echo=$ac_try;; | |
2809 esac | |
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2811 (eval "$ac_compiler --version >&5") 2>&5 | |
2812 ac_status=$? | |
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2814 (exit $ac_status); } | |
2815 { (ac_try="$ac_compiler -v >&5" | |
2816 case "(($ac_try" in | |
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2818 *) ac_try_echo=$ac_try;; | |
2819 esac | |
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2821 (eval "$ac_compiler -v >&5") 2>&5 | |
2822 ac_status=$? | |
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2824 (exit $ac_status); } | |
2825 { (ac_try="$ac_compiler -V >&5" | |
2826 case "(($ac_try" in | |
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2828 *) ac_try_echo=$ac_try;; | |
2829 esac | |
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2831 (eval "$ac_compiler -V >&5") 2>&5 | |
2832 ac_status=$? | |
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2834 (exit $ac_status); } | |
2835 | |
2836 cat >conftest.$ac_ext <<_ACEOF | |
2837 /* confdefs.h. */ | |
2838 _ACEOF | |
2839 cat confdefs.h >>conftest.$ac_ext | |
2840 cat >>conftest.$ac_ext <<_ACEOF | |
2841 /* end confdefs.h. */ | |
2842 | |
2843 int | |
2844 main () | |
2845 { | |
2846 | |
2847 ; | |
2848 return 0; | |
2849 } | |
2850 _ACEOF | |
2851 ac_clean_files_save=$ac_clean_files | |
2852 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2853 # Try to create an executable without -o first, disregard a.out. | |
2854 # It will help us diagnose broken compilers, and finding out an intuition | |
2855 # of exeext. | |
2856 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2857 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2859 # | |
2860 # List of possible output files, starting from the most likely. | |
2861 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2862 # only as a last resort. b.out is created by i960 compilers. | |
2863 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2864 # | |
2865 # The IRIX 6 linker writes into existing files which may not be | |
2866 # executable, retaining their permissions. Remove them first so a | |
2867 # subsequent execution test works. | |
2868 ac_rmfiles= | |
2869 for ac_file in $ac_files | |
2870 do | |
2871 case $ac_file in | |
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2873 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2874 esac | |
2875 done | |
2876 rm -f $ac_rmfiles | |
2877 | |
2878 if { (ac_try="$ac_link_default" | |
2879 case "(($ac_try" in | |
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2881 *) ac_try_echo=$ac_try;; | |
2882 esac | |
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2884 (eval "$ac_link_default") 2>&5 | |
2885 ac_status=$? | |
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2887 (exit $ac_status); }; then | |
2888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2890 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2891 # so that the user can short-circuit this test for compilers unknown to | |
2892 # Autoconf. | |
2893 for ac_file in $ac_files '' | |
2894 do | |
2895 test -f "$ac_file" || continue | |
2896 case $ac_file in | |
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2898 ;; | |
2899 [ab].out ) | |
2900 # We found the default executable, but exeext='' is most | |
2901 # certainly right. | |
2902 break;; | |
2903 *.* ) | |
2904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2905 then :; else | |
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2907 fi | |
2908 # We set ac_cv_exeext here because the later test for it is not | |
2909 # safe: cross compilers may not add the suffix if given an `-o' | |
2910 # argument, so we may need to know it at that point already. | |
2911 # Even if this section looks crufty: it has the advantage of | |
2912 # actually working. | |
2913 break;; | |
2914 * ) | |
2915 break;; | |
2916 esac | |
2917 done | |
2918 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2919 | |
2920 else | |
2921 ac_file='' | |
2922 fi | |
2923 | |
2924 { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2925 echo "${ECHO_T}$ac_file" >&6; } | |
2926 if test -z "$ac_file"; then | |
2927 echo "$as_me: failed program was:" >&5 | |
2928 sed 's/^/| /' conftest.$ac_ext >&5 | |
2929 | |
2930 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2931 See \`config.log' for more details." >&5 | |
2932 echo "$as_me: error: C compiler cannot create executables | |
2933 See \`config.log' for more details." >&2;} | |
2934 { (exit 77); exit 77; }; } | |
2935 fi | |
2936 | |
2937 ac_exeext=$ac_cv_exeext | |
2938 | |
2939 # Check that the compiler produces executables we can run. If not, either | |
2940 # the compiler is broken, or we cross compile. | |
2941 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2942 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2943 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2944 # If not cross compiling, check that we can run a simple program. | |
2945 if test "$cross_compiling" != yes; then | |
2946 if { ac_try='./$ac_file' | |
2947 { (case "(($ac_try" in | |
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2949 *) ac_try_echo=$ac_try;; | |
2950 esac | |
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2952 (eval "$ac_try") 2>&5 | |
2953 ac_status=$? | |
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2955 (exit $ac_status); }; }; then | |
2956 cross_compiling=no | |
2957 else | |
2958 if test "$cross_compiling" = maybe; then | |
2959 cross_compiling=yes | |
2960 else | |
2961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2962 If you meant to cross compile, use \`--host'. | |
2963 See \`config.log' for more details." >&5 | |
2964 echo "$as_me: error: cannot run C compiled programs. | |
2965 If you meant to cross compile, use \`--host'. | |
2966 See \`config.log' for more details." >&2;} | |
2967 { (exit 1); exit 1; }; } | |
2968 fi | |
2969 fi | |
2970 fi | |
2971 { echo "$as_me:$LINENO: result: yes" >&5 | |
2972 echo "${ECHO_T}yes" >&6; } | |
2973 | |
2974 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2975 ac_clean_files=$ac_clean_files_save | |
2976 # Check that the compiler produces executables we can run. If not, either | |
2977 # the compiler is broken, or we cross compile. | |
2978 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2980 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2981 echo "${ECHO_T}$cross_compiling" >&6; } | |
2982 | |
2983 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2985 if { (ac_try="$ac_link" | |
2986 case "(($ac_try" in | |
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2988 *) ac_try_echo=$ac_try;; | |
2989 esac | |
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2991 (eval "$ac_link") 2>&5 | |
2992 ac_status=$? | |
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2994 (exit $ac_status); }; then | |
2995 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2996 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2997 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2998 # `rm'. | |
2999 for ac_file in conftest.exe conftest conftest.*; do | |
3000 test -f "$ac_file" || continue | |
3001 case $ac_file in | |
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3004 break;; | |
3005 * ) break;; | |
3006 esac | |
3007 done | |
3008 else | |
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3010 See \`config.log' for more details." >&5 | |
3011 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3012 See \`config.log' for more details." >&2;} | |
3013 { (exit 1); exit 1; }; } | |
3014 fi | |
3015 | |
3016 rm -f conftest$ac_cv_exeext | |
3017 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3018 echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
3019 | |
3020 rm -f conftest.$ac_ext | |
3021 EXEEXT=$ac_cv_exeext | |
3022 ac_exeext=$EXEEXT | |
3023 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3024 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
3025 if test "${ac_cv_objext+set}" = set; then | |
3026 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3027 else | |
3028 cat >conftest.$ac_ext <<_ACEOF | |
3029 /* confdefs.h. */ | |
3030 _ACEOF | |
3031 cat confdefs.h >>conftest.$ac_ext | |
3032 cat >>conftest.$ac_ext <<_ACEOF | |
3033 /* end confdefs.h. */ | |
3034 | |
3035 int | |
3036 main () | |
3037 { | |
3038 | |
3039 ; | |
3040 return 0; | |
3041 } | |
3042 _ACEOF | |
3043 rm -f conftest.o conftest.obj | |
3044 if { (ac_try="$ac_compile" | |
3045 case "(($ac_try" in | |
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3047 *) ac_try_echo=$ac_try;; | |
3048 esac | |
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3050 (eval "$ac_compile") 2>&5 | |
3051 ac_status=$? | |
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3053 (exit $ac_status); }; then | |
3054 for ac_file in conftest.o conftest.obj conftest.*; do | |
3055 test -f "$ac_file" || continue; | |
3056 case $ac_file in | |
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
3058 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3059 break;; | |
3060 esac | |
3061 done | |
3062 else | |
3063 echo "$as_me: failed program was:" >&5 | |
3064 sed 's/^/| /' conftest.$ac_ext >&5 | |
3065 | |
3066 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3067 See \`config.log' for more details." >&5 | |
3068 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3069 See \`config.log' for more details." >&2;} | |
3070 { (exit 1); exit 1; }; } | |
3071 fi | |
3072 | |
3073 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3074 fi | |
3075 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3076 echo "${ECHO_T}$ac_cv_objext" >&6; } | |
3077 OBJEXT=$ac_cv_objext | |
3078 ac_objext=$OBJEXT | |
3079 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3080 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
3081 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3082 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3083 else | |
3084 cat >conftest.$ac_ext <<_ACEOF | |
3085 /* confdefs.h. */ | |
3086 _ACEOF | |
3087 cat confdefs.h >>conftest.$ac_ext | |
3088 cat >>conftest.$ac_ext <<_ACEOF | |
3089 /* end confdefs.h. */ | |
3090 | |
3091 int | |
3092 main () | |
3093 { | |
3094 #ifndef __GNUC__ | |
3095 choke me | |
3096 #endif | |
3097 | |
3098 ; | |
3099 return 0; | |
3100 } | |
3101 _ACEOF | |
3102 rm -f conftest.$ac_objext | |
3103 if { (ac_try="$ac_compile" | |
3104 case "(($ac_try" in | |
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3106 *) ac_try_echo=$ac_try;; | |
3107 esac | |
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3109 (eval "$ac_compile") 2>conftest.er1 | |
3110 ac_status=$? | |
3111 grep -v '^ *+' conftest.er1 >conftest.err | |
3112 rm -f conftest.er1 | |
3113 cat conftest.err >&5 | |
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3115 (exit $ac_status); } && { | |
3116 test -z "$ac_c_werror_flag" || | |
3117 test ! -s conftest.err | |
3118 } && test -s conftest.$ac_objext; then | |
3119 ac_compiler_gnu=yes | |
3120 else | |
3121 echo "$as_me: failed program was:" >&5 | |
3122 sed 's/^/| /' conftest.$ac_ext >&5 | |
3123 | |
3124 ac_compiler_gnu=no | |
3125 fi | |
3126 | |
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3128 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3129 | |
3130 fi | |
3131 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3132 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3133 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3134 ac_test_CFLAGS=${CFLAGS+set} | |
3135 ac_save_CFLAGS=$CFLAGS | |
3136 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3137 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3138 if test "${ac_cv_prog_cc_g+set}" = set; then | |
3139 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3140 else | |
3141 ac_save_c_werror_flag=$ac_c_werror_flag | |
3142 ac_c_werror_flag=yes | |
3143 ac_cv_prog_cc_g=no | |
3144 CFLAGS="-g" | |
3145 cat >conftest.$ac_ext <<_ACEOF | |
3146 /* confdefs.h. */ | |
3147 _ACEOF | |
3148 cat confdefs.h >>conftest.$ac_ext | |
3149 cat >>conftest.$ac_ext <<_ACEOF | |
3150 /* end confdefs.h. */ | |
3151 | |
3152 int | |
3153 main () | |
3154 { | |
3155 | |
3156 ; | |
3157 return 0; | |
3158 } | |
3159 _ACEOF | |
3160 rm -f conftest.$ac_objext | |
3161 if { (ac_try="$ac_compile" | |
3162 case "(($ac_try" in | |
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 *) ac_try_echo=$ac_try;; | |
3165 esac | |
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3167 (eval "$ac_compile") 2>conftest.er1 | |
3168 ac_status=$? | |
3169 grep -v '^ *+' conftest.er1 >conftest.err | |
3170 rm -f conftest.er1 | |
3171 cat conftest.err >&5 | |
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3173 (exit $ac_status); } && { | |
3174 test -z "$ac_c_werror_flag" || | |
3175 test ! -s conftest.err | |
3176 } && test -s conftest.$ac_objext; then | |
3177 ac_cv_prog_cc_g=yes | |
3178 else | |
3179 echo "$as_me: failed program was:" >&5 | |
3180 sed 's/^/| /' conftest.$ac_ext >&5 | |
3181 | |
3182 CFLAGS="" | |
3183 cat >conftest.$ac_ext <<_ACEOF | |
3184 /* confdefs.h. */ | |
3185 _ACEOF | |
3186 cat confdefs.h >>conftest.$ac_ext | |
3187 cat >>conftest.$ac_ext <<_ACEOF | |
3188 /* end confdefs.h. */ | |
3189 | |
3190 int | |
3191 main () | |
3192 { | |
3193 | |
3194 ; | |
3195 return 0; | |
3196 } | |
3197 _ACEOF | |
3198 rm -f conftest.$ac_objext | |
3199 if { (ac_try="$ac_compile" | |
3200 case "(($ac_try" in | |
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3202 *) ac_try_echo=$ac_try;; | |
3203 esac | |
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3205 (eval "$ac_compile") 2>conftest.er1 | |
3206 ac_status=$? | |
3207 grep -v '^ *+' conftest.er1 >conftest.err | |
3208 rm -f conftest.er1 | |
3209 cat conftest.err >&5 | |
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3211 (exit $ac_status); } && { | |
3212 test -z "$ac_c_werror_flag" || | |
3213 test ! -s conftest.err | |
3214 } && test -s conftest.$ac_objext; then | |
3215 : | |
3216 else | |
3217 echo "$as_me: failed program was:" >&5 | |
3218 sed 's/^/| /' conftest.$ac_ext >&5 | |
3219 | |
3220 ac_c_werror_flag=$ac_save_c_werror_flag | |
3221 CFLAGS="-g" | |
3222 cat >conftest.$ac_ext <<_ACEOF | |
3223 /* confdefs.h. */ | |
3224 _ACEOF | |
3225 cat confdefs.h >>conftest.$ac_ext | |
3226 cat >>conftest.$ac_ext <<_ACEOF | |
3227 /* end confdefs.h. */ | |
3228 | |
3229 int | |
3230 main () | |
3231 { | |
3232 | |
3233 ; | |
3234 return 0; | |
3235 } | |
3236 _ACEOF | |
3237 rm -f conftest.$ac_objext | |
3238 if { (ac_try="$ac_compile" | |
3239 case "(($ac_try" in | |
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3241 *) ac_try_echo=$ac_try;; | |
3242 esac | |
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3244 (eval "$ac_compile") 2>conftest.er1 | |
3245 ac_status=$? | |
3246 grep -v '^ *+' conftest.er1 >conftest.err | |
3247 rm -f conftest.er1 | |
3248 cat conftest.err >&5 | |
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3250 (exit $ac_status); } && { | |
3251 test -z "$ac_c_werror_flag" || | |
3252 test ! -s conftest.err | |
3253 } && test -s conftest.$ac_objext; then | |
3254 ac_cv_prog_cc_g=yes | |
3255 else | |
3256 echo "$as_me: failed program was:" >&5 | |
3257 sed 's/^/| /' conftest.$ac_ext >&5 | |
3258 | |
3259 | |
3260 fi | |
3261 | |
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3263 fi | |
3264 | |
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3266 fi | |
3267 | |
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3269 ac_c_werror_flag=$ac_save_c_werror_flag | |
3270 fi | |
3271 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3272 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3273 if test "$ac_test_CFLAGS" = set; then | |
3274 CFLAGS=$ac_save_CFLAGS | |
3275 elif test $ac_cv_prog_cc_g = yes; then | |
3276 if test "$GCC" = yes; then | |
3277 CFLAGS="-g -O2" | |
3278 else | |
3279 CFLAGS="-g" | |
3280 fi | |
3281 else | |
3282 if test "$GCC" = yes; then | |
3283 CFLAGS="-O2" | |
3284 else | |
3285 CFLAGS= | |
3286 fi | |
3287 fi | |
3288 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3289 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3290 if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3291 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3292 else | |
3293 ac_cv_prog_cc_c89=no | |
3294 ac_save_CC=$CC | |
3295 cat >conftest.$ac_ext <<_ACEOF | |
3296 /* confdefs.h. */ | |
3297 _ACEOF | |
3298 cat confdefs.h >>conftest.$ac_ext | |
3299 cat >>conftest.$ac_ext <<_ACEOF | |
3300 /* end confdefs.h. */ | |
3301 #include <stdarg.h> | |
3302 #include <stdio.h> | |
3303 #include <sys/types.h> | |
3304 #include <sys/stat.h> | |
3305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3306 struct buf { int x; }; | |
3307 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3308 static char *e (p, i) | |
3309 char **p; | |
3310 int i; | |
3311 { | |
3312 return p[i]; | |
3313 } | |
3314 static char *f (char * (*g) (char **, int), char **p, ...) | |
3315 { | |
3316 char *s; | |
3317 va_list v; | |
3318 va_start (v,p); | |
3319 s = g (p, va_arg (v,int)); | |
3320 va_end (v); | |
3321 return s; | |
3322 } | |
3323 | |
3324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3325 function prototypes and stuff, but not '\xHH' hex character constants. | |
3326 These don't provoke an error unfortunately, instead are silently treated | |
3327 as 'x'. The following induces an error, until -std is added to get | |
3328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3329 array size at least. It's necessary to write '\x00'==0 to get something | |
3330 that's true only with -std. */ | |
3331 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3332 | |
3333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3334 inside strings and character constants. */ | |
3335 #define FOO(x) 'x' | |
3336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3337 | |
3338 int test (int i, double x); | |
3339 struct s1 {int (*f) (int a);}; | |
3340 struct s2 {int (*f) (double a);}; | |
3341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3342 int argc; | |
3343 char **argv; | |
3344 int | |
3345 main () | |
3346 { | |
3347 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3348 ; | |
3349 return 0; | |
3350 } | |
3351 _ACEOF | |
3352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3354 do | |
3355 CC="$ac_save_CC $ac_arg" | |
3356 rm -f conftest.$ac_objext | |
3357 if { (ac_try="$ac_compile" | |
3358 case "(($ac_try" in | |
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3360 *) ac_try_echo=$ac_try;; | |
3361 esac | |
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3363 (eval "$ac_compile") 2>conftest.er1 | |
3364 ac_status=$? | |
3365 grep -v '^ *+' conftest.er1 >conftest.err | |
3366 rm -f conftest.er1 | |
3367 cat conftest.err >&5 | |
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3369 (exit $ac_status); } && { | |
3370 test -z "$ac_c_werror_flag" || | |
3371 test ! -s conftest.err | |
3372 } && test -s conftest.$ac_objext; then | |
3373 ac_cv_prog_cc_c89=$ac_arg | |
3374 else | |
3375 echo "$as_me: failed program was:" >&5 | |
3376 sed 's/^/| /' conftest.$ac_ext >&5 | |
3377 | |
3378 | |
3379 fi | |
3380 | |
3381 rm -f core conftest.err conftest.$ac_objext | |
3382 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3383 done | |
3384 rm -f conftest.$ac_ext | |
3385 CC=$ac_save_CC | |
3386 | |
3387 fi | |
3388 # AC_CACHE_VAL | |
3389 case "x$ac_cv_prog_cc_c89" in | |
3390 x) | |
3391 { echo "$as_me:$LINENO: result: none needed" >&5 | |
3392 echo "${ECHO_T}none needed" >&6; } ;; | |
3393 xno) | |
3394 { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3395 echo "${ECHO_T}unsupported" >&6; } ;; | |
3396 *) | |
3397 CC="$CC $ac_cv_prog_cc_c89" | |
3398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3399 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3400 esac | |
3401 | |
3402 | |
3403 ac_ext=c | |
3404 ac_cpp='$CPP $CPPFLAGS' | |
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3408 DEPDIR="${am__leading_dot}deps" | |
3409 | |
3410 ac_config_commands="$ac_config_commands depfiles" | |
3411 | |
3412 | |
3413 am_make=${MAKE-make} | |
3414 cat > confinc << 'END' | |
3415 am__doit: | |
3416 @echo done | |
3417 .PHONY: am__doit | |
3418 END | |
3419 # If we don't find an include directive, just comment out the code. | |
3420 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3421 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
3422 am__include="#" | |
3423 am__quote= | |
3424 _am_result=none | |
3425 # First try GNU make style include. | |
3426 echo "include confinc" > confmf | |
3427 # We grep out `Entering directory' and `Leaving directory' | |
3428 # messages which can occur if `w' ends up in MAKEFLAGS. | |
3429 # In particular we don't look at `^make:' because GNU make might | |
3430 # be invoked under some other name (usually "gmake"), in which | |
3431 # case it prints its new name instead of `make'. | |
3432 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3433 am__include=include | |
3434 am__quote= | |
3435 _am_result=GNU | |
3436 fi | |
3437 # Now try BSD make style include. | |
3438 if test "$am__include" = "#"; then | |
3439 echo '.include "confinc"' > confmf | |
3440 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3441 am__include=.include | |
3442 am__quote="\"" | |
3443 _am_result=BSD | |
3444 fi | |
3445 fi | |
3446 | |
3447 | |
3448 { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3449 echo "${ECHO_T}$_am_result" >&6; } | |
3450 rm -f confinc confmf | |
3451 | |
3452 # Check whether --enable-dependency-tracking was given. | |
3453 if test "${enable_dependency_tracking+set}" = set; then | |
3454 enableval=$enable_dependency_tracking; | |
3455 fi | |
3456 | |
3457 if test "x$enable_dependency_tracking" != xno; then | |
3458 am_depcomp="$ac_aux_dir/depcomp" | |
3459 AMDEPBACKSLASH='\' | |
3460 fi | |
3461 | |
3462 | |
3463 if test "x$enable_dependency_tracking" != xno; then | |
3464 AMDEP_TRUE= | |
3465 AMDEP_FALSE='#' | |
3466 else | |
3467 AMDEP_TRUE='#' | |
3468 AMDEP_FALSE= | |
3469 fi | |
3470 | |
3471 | |
3472 | |
3473 | |
3474 depcc="$CC" am_compiler_list= | |
3475 | |
3476 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3478 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3479 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3480 else | |
3481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3482 # We make a subdir and do the tests there. Otherwise we can end up | |
3483 # making bogus files that we don't know about and never remove. For | |
3484 # instance it was reported that on HP-UX the gcc test will end up | |
3485 # making a dummy file named `D' -- because `-MD' means `put the output | |
3486 # in D'. | |
3487 mkdir conftest.dir | |
3488 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3489 # using a relative directory. | |
3490 cp "$am_depcomp" conftest.dir | |
3491 cd conftest.dir | |
3492 # We will build objects and dependencies in a subdirectory because | |
3493 # it helps to detect inapplicable dependency modes. For instance | |
3494 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3495 # side effect of compilation, but ICC will put the dependencies in | |
3496 # the current directory while Tru64 will put them in the object | |
3497 # directory. | |
3498 mkdir sub | |
3499 | |
3500 am_cv_CC_dependencies_compiler_type=none | |
3501 if test "$am_compiler_list" = ""; then | |
3502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3503 fi | |
3504 for depmode in $am_compiler_list; do | |
3505 # Setup a source with many dependencies, because some compilers | |
3506 # like to wrap large dependency lists on column 80 (with \), and | |
3507 # we should not choose a depcomp mode which is confused by this. | |
3508 # | |
3509 # We need to recreate these files for each test, as the compiler may | |
3510 # overwrite some of them when testing with obscure command lines. | |
3511 # This happens at least with the AIX C compiler. | |
3512 : > sub/conftest.c | |
3513 for i in 1 2 3 4 5 6; do | |
3514 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3516 # Solaris 8's {/usr,}/bin/sh. | |
3517 touch sub/conftst$i.h | |
3518 done | |
3519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3520 | |
3521 case $depmode in | |
3522 nosideeffect) | |
3523 # after this tag, mechanisms are not by side-effect, so they'll | |
3524 # only be used when explicitly requested | |
3525 if test "x$enable_dependency_tracking" = xyes; then | |
3526 continue | |
3527 else | |
3528 break | |
3529 fi | |
3530 ;; | |
3531 none) break ;; | |
3532 esac | |
3533 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3534 # mode. It turns out that the SunPro C++ compiler does not properly | |
3535 # handle `-M -o', and we need to detect this. | |
3536 if depmode=$depmode \ | |
3537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3540 >/dev/null 2>conftest.err && | |
3541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3544 # icc doesn't choke on unknown options, it will just issue warnings | |
3545 # or remarks (even with -Werror). So we grep stderr for any message | |
3546 # that says an option was ignored or not supported. | |
3547 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3548 # icc: Command line warning: ignoring option '-M'; no argument required | |
3549 # The diagnosis changed in icc 8.0: | |
3550 # icc: Command line remark: option '-MP' not supported | |
3551 if (grep 'ignoring option' conftest.err || | |
3552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3553 am_cv_CC_dependencies_compiler_type=$depmode | |
3554 break | |
3555 fi | |
3556 fi | |
3557 done | |
3558 | |
3559 cd .. | |
3560 rm -rf conftest.dir | |
3561 else | |
3562 am_cv_CC_dependencies_compiler_type=none | |
3563 fi | |
3564 | |
3565 fi | |
3566 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3567 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3569 | |
3570 | |
3571 | |
3572 if | |
3573 test "x$enable_dependency_tracking" != xno \ | |
3574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3575 am__fastdepCC_TRUE= | |
3576 am__fastdepCC_FALSE='#' | |
3577 else | |
3578 am__fastdepCC_TRUE='#' | |
3579 am__fastdepCC_FALSE= | |
3580 fi | |
3581 | |
3582 | |
3583 # Find a good install program. We prefer a C program (faster), | |
3584 # so one script is as good as another. But avoid the broken or | |
3585 # incompatible versions: | |
3586 # SysV /etc/install, /usr/sbin/install | |
3587 # SunOS /usr/etc/install | |
3588 # IRIX /sbin/install | |
3589 # AIX /bin/install | |
3590 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3594 # OS/2's system install, which has a completely different semantic | |
3595 # ./install, which can be erroneously created by make from ./install.sh. | |
3596 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3597 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
3598 if test -z "$INSTALL"; then | |
3599 if test "${ac_cv_path_install+set}" = set; then | |
3600 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3601 else | |
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3603 for as_dir in $PATH | |
3604 do | |
3605 IFS=$as_save_IFS | |
3606 test -z "$as_dir" && as_dir=. | |
3607 # Account for people who put trailing slashes in PATH elements. | |
3608 case $as_dir/ in | |
3609 ./ | .// | /cC/* | \ | |
3610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3611 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3612 /usr/ucb/* ) ;; | |
3613 *) | |
3614 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3615 # Don't use installbsd from OSF since it installs stuff as root | |
3616 # by default. | |
3617 for ac_prog in ginstall scoinst install; do | |
3618 for ac_exec_ext in '' $ac_executable_extensions; do | |
3619 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3620 if test $ac_prog = install && | |
3621 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3622 # AIX install. It has an incompatible calling convention. | |
3623 : | |
3624 elif test $ac_prog = install && | |
3625 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3626 # program-specific install script used by HP pwplus--don't use. | |
3627 : | |
3628 else | |
3629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3630 break 3 | |
3631 fi | |
3632 fi | |
3633 done | |
3634 done | |
3635 ;; | |
3636 esac | |
3637 done | |
3638 IFS=$as_save_IFS | |
3639 | |
3640 | |
3641 fi | |
3642 if test "${ac_cv_path_install+set}" = set; then | |
3643 INSTALL=$ac_cv_path_install | |
3644 else | |
3645 # As a last resort, use the slow shell script. Don't cache a | |
3646 # value for INSTALL within a source directory, because that will | |
3647 # break other packages using the cache if that directory is | |
3648 # removed, or if the value is a relative name. | |
3649 INSTALL=$ac_install_sh | |
3650 fi | |
3651 fi | |
3652 { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3653 echo "${ECHO_T}$INSTALL" >&6; } | |
3654 | |
3655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3656 # It thinks the first close brace ends the variable substitution. | |
3657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3658 | |
3659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3660 | |
3661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3662 | |
3663 # Check whether --enable-shared was given. | |
3664 if test "${enable_shared+set}" = set; then | |
3665 enableval=$enable_shared; p=${PACKAGE-default} | |
3666 case $enableval in | |
3667 yes) enable_shared=yes ;; | |
3668 no) enable_shared=no ;; | |
3669 *) | |
3670 enable_shared=no | |
3671 # Look at the argument we got. We use all the common list separators. | |
3672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3673 for pkg in $enableval; do | |
3674 IFS="$lt_save_ifs" | |
3675 if test "X$pkg" = "X$p"; then | |
3676 enable_shared=yes | |
3677 fi | |
3678 done | |
3679 IFS="$lt_save_ifs" | |
3680 ;; | |
3681 esac | |
3682 else | |
3683 enable_shared=yes | |
3684 fi | |
3685 | |
3686 | |
3687 # Check whether --enable-static was given. | |
3688 if test "${enable_static+set}" = set; then | |
3689 enableval=$enable_static; p=${PACKAGE-default} | |
3690 case $enableval in | |
3691 yes) enable_static=yes ;; | |
3692 no) enable_static=no ;; | |
3693 *) | |
3694 enable_static=no | |
3695 # Look at the argument we got. We use all the common list separators. | |
3696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3697 for pkg in $enableval; do | |
3698 IFS="$lt_save_ifs" | |
3699 if test "X$pkg" = "X$p"; then | |
3700 enable_static=yes | |
3701 fi | |
3702 done | |
3703 IFS="$lt_save_ifs" | |
3704 ;; | |
3705 esac | |
3706 else | |
3707 enable_static=yes | |
3708 fi | |
3709 | |
3710 | |
3711 # Check whether --enable-fast-install was given. | |
3712 if test "${enable_fast_install+set}" = set; then | |
3713 enableval=$enable_fast_install; p=${PACKAGE-default} | |
3714 case $enableval in | |
3715 yes) enable_fast_install=yes ;; | |
3716 no) enable_fast_install=no ;; | |
3717 *) | |
3718 enable_fast_install=no | |
3719 # Look at the argument we got. We use all the common list separators. | |
3720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3721 for pkg in $enableval; do | |
3722 IFS="$lt_save_ifs" | |
3723 if test "X$pkg" = "X$p"; then | |
3724 enable_fast_install=yes | |
3725 fi | |
3726 done | |
3727 IFS="$lt_save_ifs" | |
3728 ;; | |
3729 esac | |
3730 else | |
3731 enable_fast_install=yes | |
3732 fi | |
3733 | |
3734 | |
3735 # Make sure we can run config.sub. | |
3736 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3737 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
3738 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
3739 { (exit 1); exit 1; }; } | |
3740 | |
3741 { echo "$as_me:$LINENO: checking build system type" >&5 | |
3742 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
3743 if test "${ac_cv_build+set}" = set; then | |
3744 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3745 else | |
3746 ac_build_alias=$build_alias | |
3747 test "x$ac_build_alias" = x && | |
3748 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3749 test "x$ac_build_alias" = x && | |
3750 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3751 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3752 { (exit 1); exit 1; }; } | |
3753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
3756 { (exit 1); exit 1; }; } | |
3757 | |
3758 fi | |
3759 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3760 echo "${ECHO_T}$ac_cv_build" >&6; } | |
3761 case $ac_cv_build in | |
3762 *-*-*) ;; | |
3763 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3764 echo "$as_me: error: invalid value of canonical build" >&2;} | |
3765 { (exit 1); exit 1; }; };; | |
3766 esac | |
3767 build=$ac_cv_build | |
3768 ac_save_IFS=$IFS; IFS='-' | |
3769 set x $ac_cv_build | |
3770 shift | |
3771 build_cpu=$1 | |
3772 build_vendor=$2 | |
3773 shift; shift | |
3774 # Remember, the first character of IFS is used to create $*, | |
3775 # except with old shells: | |
3776 build_os=$* | |
3777 IFS=$ac_save_IFS | |
3778 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3779 | |
3780 | |
3781 { echo "$as_me:$LINENO: checking host system type" >&5 | |
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
3783 if test "${ac_cv_host+set}" = set; then | |
3784 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3785 else | |
3786 if test "x$host_alias" = x; then | |
3787 ac_cv_host=$ac_cv_build | |
3788 else | |
3789 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3790 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
3791 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
3792 { (exit 1); exit 1; }; } | |
3793 fi | |
3794 | |
3795 fi | |
3796 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3797 echo "${ECHO_T}$ac_cv_host" >&6; } | |
3798 case $ac_cv_host in | |
3799 *-*-*) ;; | |
3800 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3801 echo "$as_me: error: invalid value of canonical host" >&2;} | |
3802 { (exit 1); exit 1; }; };; | |
3803 esac | |
3804 host=$ac_cv_host | |
3805 ac_save_IFS=$IFS; IFS='-' | |
3806 set x $ac_cv_host | |
3807 shift | |
3808 host_cpu=$1 | |
3809 host_vendor=$2 | |
3810 shift; shift | |
3811 # Remember, the first character of IFS is used to create $*, | |
3812 # except with old shells: | |
3813 host_os=$* | |
3814 IFS=$ac_save_IFS | |
3815 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3816 | |
3817 | |
3818 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3819 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
3820 if test "${lt_cv_path_SED+set}" = set; then | |
3821 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3822 else | |
3823 # Loop through the user's path and test for sed and gsed. | |
3824 # Then use that list of sed's as ones to test for truncation. | |
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3826 for as_dir in $PATH | |
3827 do | |
3828 IFS=$as_save_IFS | |
3829 test -z "$as_dir" && as_dir=. | |
3830 for lt_ac_prog in sed gsed; do | |
3831 for ac_exec_ext in '' $ac_executable_extensions; do | |
3832 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3833 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3834 fi | |
3835 done | |
3836 done | |
3837 done | |
3838 lt_ac_max=0 | |
3839 lt_ac_count=0 | |
3840 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3841 # along with /bin/sed that truncates output. | |
3842 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3843 test ! -f $lt_ac_sed && continue | |
3844 cat /dev/null > conftest.in | |
3845 lt_ac_count=0 | |
3846 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3847 # Check for GNU sed and select it if it is found. | |
3848 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3849 lt_cv_path_SED=$lt_ac_sed | |
3850 break | |
3851 fi | |
3852 while true; do | |
3853 cat conftest.in conftest.in >conftest.tmp | |
3854 mv conftest.tmp conftest.in | |
3855 cp conftest.in conftest.nl | |
3856 echo >>conftest.nl | |
3857 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3858 cmp -s conftest.out conftest.nl || break | |
3859 # 10000 chars as input seems more than enough | |
3860 test $lt_ac_count -gt 10 && break | |
3861 lt_ac_count=`expr $lt_ac_count + 1` | |
3862 if test $lt_ac_count -gt $lt_ac_max; then | |
3863 lt_ac_max=$lt_ac_count | |
3864 lt_cv_path_SED=$lt_ac_sed | |
3865 fi | |
3866 done | |
3867 done | |
3868 | |
3869 fi | |
3870 | |
3871 SED=$lt_cv_path_SED | |
3872 { echo "$as_me:$LINENO: result: $SED" >&5 | |
3873 echo "${ECHO_T}$SED" >&6; } | |
3874 | |
3875 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3876 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3877 if test "${ac_cv_path_GREP+set}" = set; then | |
3878 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3879 else | |
3880 # Extract the first word of "grep ggrep" to use in msg output | |
3881 if test -z "$GREP"; then | |
3882 set dummy grep ggrep; ac_prog_name=$2 | |
3883 if test "${ac_cv_path_GREP+set}" = set; then | |
3884 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3885 else | |
3886 ac_path_GREP_found=false | |
3887 # Loop through the user's path and test for each of PROGNAME-LIST | |
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3890 do | |
3891 IFS=$as_save_IFS | |
3892 test -z "$as_dir" && as_dir=. | |
3893 for ac_prog in grep ggrep; do | |
3894 for ac_exec_ext in '' $ac_executable_extensions; do | |
3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3897 # Check for GNU ac_path_GREP and select it if it is found. | |
3898 # Check for GNU $ac_path_GREP | |
3899 case `"$ac_path_GREP" --version 2>&1` in | |
3900 *GNU*) | |
3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3902 *) | |
3903 ac_count=0 | |
3904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3905 while : | |
3906 do | |
3907 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3908 mv "conftest.tmp" "conftest.in" | |
3909 cp "conftest.in" "conftest.nl" | |
3910 echo 'GREP' >> "conftest.nl" | |
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3913 ac_count=`expr $ac_count + 1` | |
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3915 # Best one so far, save it but keep looking for a better one | |
3916 ac_cv_path_GREP="$ac_path_GREP" | |
3917 ac_path_GREP_max=$ac_count | |
3918 fi | |
3919 # 10*(2^10) chars as input seems more than enough | |
3920 test $ac_count -gt 10 && break | |
3921 done | |
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3923 esac | |
3924 | |
3925 | |
3926 $ac_path_GREP_found && break 3 | |
3927 done | |
3928 done | |
3929 | |
3930 done | |
3931 IFS=$as_save_IFS | |
3932 | |
3933 | |
3934 fi | |
3935 | |
3936 GREP="$ac_cv_path_GREP" | |
3937 if test -z "$GREP"; then | |
3938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3939 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3940 { (exit 1); exit 1; }; } | |
3941 fi | |
3942 | |
3943 else | |
3944 ac_cv_path_GREP=$GREP | |
3945 fi | |
3946 | |
3947 | |
3948 fi | |
3949 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3950 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3951 GREP="$ac_cv_path_GREP" | |
3952 | |
3953 | |
3954 { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3955 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3956 if test "${ac_cv_path_EGREP+set}" = set; then | |
3957 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3958 else | |
3959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3960 then ac_cv_path_EGREP="$GREP -E" | |
3961 else | |
3962 # Extract the first word of "egrep" to use in msg output | |
3963 if test -z "$EGREP"; then | |
3964 set dummy egrep; ac_prog_name=$2 | |
3965 if test "${ac_cv_path_EGREP+set}" = set; then | |
3966 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3967 else | |
3968 ac_path_EGREP_found=false | |
3969 # Loop through the user's path and test for each of PROGNAME-LIST | |
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3972 do | |
3973 IFS=$as_save_IFS | |
3974 test -z "$as_dir" && as_dir=. | |
3975 for ac_prog in egrep; do | |
3976 for ac_exec_ext in '' $ac_executable_extensions; do | |
3977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3978 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3979 # Check for GNU ac_path_EGREP and select it if it is found. | |
3980 # Check for GNU $ac_path_EGREP | |
3981 case `"$ac_path_EGREP" --version 2>&1` in | |
3982 *GNU*) | |
3983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3984 *) | |
3985 ac_count=0 | |
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3987 while : | |
3988 do | |
3989 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3990 mv "conftest.tmp" "conftest.in" | |
3991 cp "conftest.in" "conftest.nl" | |
3992 echo 'EGREP' >> "conftest.nl" | |
3993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3995 ac_count=`expr $ac_count + 1` | |
3996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3997 # Best one so far, save it but keep looking for a better one | |
3998 ac_cv_path_EGREP="$ac_path_EGREP" | |
3999 ac_path_EGREP_max=$ac_count | |
4000 fi | |
4001 # 10*(2^10) chars as input seems more than enough | |
4002 test $ac_count -gt 10 && break | |
4003 done | |
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4005 esac | |
4006 | |
4007 | |
4008 $ac_path_EGREP_found && break 3 | |
4009 done | |
4010 done | |
4011 | |
4012 done | |
4013 IFS=$as_save_IFS | |
4014 | |
4015 | |
4016 fi | |
4017 | |
4018 EGREP="$ac_cv_path_EGREP" | |
4019 if test -z "$EGREP"; then | |
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4022 { (exit 1); exit 1; }; } | |
4023 fi | |
4024 | |
4025 else | |
4026 ac_cv_path_EGREP=$EGREP | |
4027 fi | |
4028 | |
4029 | |
4030 fi | |
4031 fi | |
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4033 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4034 EGREP="$ac_cv_path_EGREP" | |
4035 | |
4036 | |
4037 | |
4038 # Check whether --with-gnu-ld was given. | |
4039 if test "${with_gnu_ld+set}" = set; then | |
4040 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4041 else | |
4042 with_gnu_ld=no | |
4043 fi | |
4044 | |
4045 ac_prog=ld | |
4046 if test "$GCC" = yes; then | |
4047 # Check if gcc -print-prog-name=ld gives a path. | |
4048 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4049 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
4050 case $host in | |
4051 *-*-mingw*) | |
4052 # gcc leaves a trailing carriage return which upsets mingw | |
4053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4054 *) | |
4055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4056 esac | |
4057 case $ac_prog in | |
4058 # Accept absolute paths. | |
4059 [\\/]* | ?:[\\/]*) | |
4060 re_direlt='/[^/][^/]*/\.\./' | |
4061 # Canonicalize the pathname of ld | |
4062 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
4063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4064 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
4065 done | |
4066 test -z "$LD" && LD="$ac_prog" | |
4067 ;; | |
4068 "") | |
4069 # If it fails, then pretend we aren't using GCC. | |
4070 ac_prog=ld | |
4071 ;; | |
4072 *) | |
4073 # If it is relative, then search for the first ld in PATH. | |
4074 with_gnu_ld=unknown | |
4075 ;; | |
4076 esac | |
4077 elif test "$with_gnu_ld" = yes; then | |
4078 { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4079 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
4080 else | |
4081 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4082 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
4083 fi | |
4084 if test "${lt_cv_path_LD+set}" = set; then | |
4085 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4086 else | |
4087 if test -z "$LD"; then | |
4088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4089 for ac_dir in $PATH; do | |
4090 IFS="$lt_save_ifs" | |
4091 test -z "$ac_dir" && ac_dir=. | |
4092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4093 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4094 # Check to see if the program is GNU ld. I'd rather use --version, | |
4095 # but apparently some variants of GNU ld only accept -v. | |
4096 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4098 *GNU* | *'with BFD'*) | |
4099 test "$with_gnu_ld" != no && break | |
4100 ;; | |
4101 *) | |
4102 test "$with_gnu_ld" != yes && break | |
4103 ;; | |
4104 esac | |
4105 fi | |
4106 done | |
4107 IFS="$lt_save_ifs" | |
4108 else | |
4109 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4110 fi | |
4111 fi | |
4112 | |
4113 LD="$lt_cv_path_LD" | |
4114 if test -n "$LD"; then | |
4115 { echo "$as_me:$LINENO: result: $LD" >&5 | |
4116 echo "${ECHO_T}$LD" >&6; } | |
4117 else | |
4118 { echo "$as_me:$LINENO: result: no" >&5 | |
4119 echo "${ECHO_T}no" >&6; } | |
4120 fi | |
4121 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4122 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4123 { (exit 1); exit 1; }; } | |
4124 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4125 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
4126 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4127 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4128 else | |
4129 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4130 case `$LD -v 2>&1 </dev/null` in | |
4131 *GNU* | *'with BFD'*) | |
4132 lt_cv_prog_gnu_ld=yes | |
4133 ;; | |
4134 *) | |
4135 lt_cv_prog_gnu_ld=no | |
4136 ;; | |
4137 esac | |
4138 fi | |
4139 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
4141 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4142 | |
4143 | |
4144 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4145 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
4146 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4147 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4148 else | |
4149 lt_cv_ld_reload_flag='-r' | |
4150 fi | |
4151 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4152 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
4153 reload_flag=$lt_cv_ld_reload_flag | |
4154 case $reload_flag in | |
4155 "" | " "*) ;; | |
4156 *) reload_flag=" $reload_flag" ;; | |
4157 esac | |
4158 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4159 case $host_os in | |
4160 darwin*) | |
4161 if test "$GCC" = yes; then | |
4162 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4163 else | |
4164 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4165 fi | |
4166 ;; | |
4167 esac | |
4168 | |
4169 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4170 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | |
4171 if test "${lt_cv_path_NM+set}" = set; then | |
4172 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4173 else | |
4174 if test -n "$NM"; then | |
4175 # Let the user override the test. | |
4176 lt_cv_path_NM="$NM" | |
4177 else | |
4178 lt_nm_to_check="${ac_tool_prefix}nm" | |
4179 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4180 lt_nm_to_check="$lt_nm_to_check nm" | |
4181 fi | |
4182 for lt_tmp_nm in $lt_nm_to_check; do | |
4183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4185 IFS="$lt_save_ifs" | |
4186 test -z "$ac_dir" && ac_dir=. | |
4187 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4188 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4189 # Check to see if the nm accepts a BSD-compat flag. | |
4190 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4191 # nm: unknown option "B" ignored | |
4192 # Tru64's nm complains that /dev/null is an invalid object file | |
4193 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4194 */dev/null* | *'Invalid file or object type'*) | |
4195 lt_cv_path_NM="$tmp_nm -B" | |
4196 break | |
4197 ;; | |
4198 *) | |
4199 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4200 */dev/null*) | |
4201 lt_cv_path_NM="$tmp_nm -p" | |
4202 break | |
4203 ;; | |
4204 *) | |
4205 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4206 continue # so that we can try to find one that supports BSD flags | |
4207 ;; | |
4208 esac | |
4209 ;; | |
4210 esac | |
4211 fi | |
4212 done | |
4213 IFS="$lt_save_ifs" | |
4214 done | |
4215 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
4216 fi | |
4217 fi | |
4218 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4219 echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
4220 NM="$lt_cv_path_NM" | |
4221 | |
4222 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4223 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
4224 LN_S=$as_ln_s | |
4225 if test "$LN_S" = "ln -s"; then | |
4226 { echo "$as_me:$LINENO: result: yes" >&5 | |
4227 echo "${ECHO_T}yes" >&6; } | |
4228 else | |
4229 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4230 echo "${ECHO_T}no, using $LN_S" >&6; } | |
4231 fi | |
4232 | |
4233 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
4234 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | |
4235 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4236 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4237 else | |
4238 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4239 lt_cv_file_magic_test_file= | |
4240 lt_cv_deplibs_check_method='unknown' | |
4241 # Need to set the preceding variable on all platforms that support | |
4242 # interlibrary dependencies. | |
4243 # 'none' -- dependencies not supported. | |
4244 # `unknown' -- same as none, but documents that we really don't know. | |
4245 # 'pass_all' -- all dependencies passed with no checks. | |
4246 # 'test_compile' -- check by making test program. | |
4247 # 'file_magic [[regex]]' -- check by looking for files in library path | |
4248 # which responds to the $file_magic_cmd with a given extended regex. | |
4249 # If you have `file' or equivalent on your system and you're not sure | |
4250 # whether `pass_all' will *always* work, you probably want this one. | |
4251 | |
4252 case $host_os in | |
4253 aix4* | aix5*) | |
4254 lt_cv_deplibs_check_method=pass_all | |
4255 ;; | |
4256 | |
4257 beos*) | |
4258 lt_cv_deplibs_check_method=pass_all | |
4259 ;; | |
4260 | |
4261 bsdi[45]*) | |
4262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4263 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4264 lt_cv_file_magic_test_file=/shlib/libc.so | |
4265 ;; | |
4266 | |
4267 cygwin*) | |
4268 # func_win32_libid is a shell function defined in ltmain.sh | |
4269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4270 lt_cv_file_magic_cmd='func_win32_libid' | |
4271 ;; | |
4272 | |
4273 mingw* | pw32*) | |
4274 # Base MSYS/MinGW do not provide the 'file' command needed by | |
4275 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
4276 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4277 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4278 ;; | |
4279 | |
4280 darwin* | rhapsody*) | |
4281 lt_cv_deplibs_check_method=pass_all | |
4282 ;; | |
4283 | |
4284 freebsd* | dragonfly*) | |
4285 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4286 case $host_cpu in | |
4287 i*86 ) | |
4288 # Not sure whether the presence of OpenBSD here was a mistake. | |
4289 # Let's accept both of them until this is cleared up. | |
4290 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4291 lt_cv_file_magic_cmd=/usr/bin/file | |
4292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4293 ;; | |
4294 esac | |
4295 else | |
4296 lt_cv_deplibs_check_method=pass_all | |
4297 fi | |
4298 ;; | |
4299 | |
4300 gnu*) | |
4301 lt_cv_deplibs_check_method=pass_all | |
4302 ;; | |
4303 | |
4304 hpux10.20* | hpux11*) | |
4305 lt_cv_file_magic_cmd=/usr/bin/file | |
4306 case $host_cpu in | |
4307 ia64*) | |
4308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4309 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4310 ;; | |
4311 hppa*64*) | |
4312 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]' | |
4313 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4314 ;; | |
4315 *) | |
4316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4317 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4318 ;; | |
4319 esac | |
4320 ;; | |
4321 | |
4322 interix3*) | |
4323 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4325 ;; | |
4326 | |
4327 irix5* | irix6* | nonstopux*) | |
4328 case $LD in | |
4329 *-32|*"-32 ") libmagic=32-bit;; | |
4330 *-n32|*"-n32 ") libmagic=N32;; | |
4331 *-64|*"-64 ") libmagic=64-bit;; | |
4332 *) libmagic=never-match;; | |
4333 esac | |
4334 lt_cv_deplibs_check_method=pass_all | |
4335 ;; | |
4336 | |
4337 # This must be Linux ELF. | |
4338 linux* | k*bsd*-gnu) | |
4339 lt_cv_deplibs_check_method=pass_all | |
4340 ;; | |
4341 | |
4342 netbsd* | netbsdelf*-gnu) | |
4343 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4345 else | |
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4347 fi | |
4348 ;; | |
4349 | |
4350 newos6*) | |
4351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4352 lt_cv_file_magic_cmd=/usr/bin/file | |
4353 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4354 ;; | |
4355 | |
4356 nto-qnx*) | |
4357 lt_cv_deplibs_check_method=unknown | |
4358 ;; | |
4359 | |
4360 openbsd*) | |
4361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4363 else | |
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4365 fi | |
4366 ;; | |
4367 | |
4368 osf3* | osf4* | osf5*) | |
4369 lt_cv_deplibs_check_method=pass_all | |
4370 ;; | |
4371 | |
4372 solaris*) | |
4373 lt_cv_deplibs_check_method=pass_all | |
4374 ;; | |
4375 | |
4376 sysv4 | sysv4.3*) | |
4377 case $host_vendor in | |
4378 motorola) | |
4379 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]' | |
4380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4381 ;; | |
4382 ncr) | |
4383 lt_cv_deplibs_check_method=pass_all | |
4384 ;; | |
4385 sequent) | |
4386 lt_cv_file_magic_cmd='/bin/file' | |
4387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4388 ;; | |
4389 sni) | |
4390 lt_cv_file_magic_cmd='/bin/file' | |
4391 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4392 lt_cv_file_magic_test_file=/lib/libc.so | |
4393 ;; | |
4394 siemens) | |
4395 lt_cv_deplibs_check_method=pass_all | |
4396 ;; | |
4397 pc) | |
4398 lt_cv_deplibs_check_method=pass_all | |
4399 ;; | |
4400 esac | |
4401 ;; | |
4402 | |
4403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4404 lt_cv_deplibs_check_method=pass_all | |
4405 ;; | |
4406 esac | |
4407 | |
4408 fi | |
4409 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4410 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
4411 file_magic_cmd=$lt_cv_file_magic_cmd | |
4412 deplibs_check_method=$lt_cv_deplibs_check_method | |
4413 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4414 | |
4415 | |
4416 | |
4417 | |
4418 # If no C compiler was specified, use CC. | |
4419 LTCC=${LTCC-"$CC"} | |
4420 | |
4421 # If no C compiler flags were specified, use CFLAGS. | |
4422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4423 | |
4424 # Allow CC to be a program name with arguments. | |
4425 compiler=$CC | |
4426 | |
4427 | |
4428 # Check whether --enable-libtool-lock was given. | |
4429 if test "${enable_libtool_lock+set}" = set; then | |
4430 enableval=$enable_libtool_lock; | |
4431 fi | |
4432 | |
4433 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4434 | |
4435 # Some flags need to be propagated to the compiler or linker for good | |
4436 # libtool support. | |
4437 case $host in | |
4438 ia64-*-hpux*) | |
4439 # Find out which ABI we are using. | |
4440 echo 'int i;' > conftest.$ac_ext | |
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4442 (eval $ac_compile) 2>&5 | |
4443 ac_status=$? | |
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4445 (exit $ac_status); }; then | |
4446 case `/usr/bin/file conftest.$ac_objext` in | |
4447 *ELF-32*) | |
4448 HPUX_IA64_MODE="32" | |
4449 ;; | |
4450 *ELF-64*) | |
4451 HPUX_IA64_MODE="64" | |
4452 ;; | |
4453 esac | |
4454 fi | |
4455 rm -rf conftest* | |
4456 ;; | |
4457 *-*-irix6*) | |
4458 # Find out which ABI we are using. | |
4459 echo '#line 4459 "configure"' > conftest.$ac_ext | |
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4461 (eval $ac_compile) 2>&5 | |
4462 ac_status=$? | |
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4464 (exit $ac_status); }; then | |
4465 if test "$lt_cv_prog_gnu_ld" = yes; then | |
4466 case `/usr/bin/file conftest.$ac_objext` in | |
4467 *32-bit*) | |
4468 LD="${LD-ld} -melf32bsmip" | |
4469 ;; | |
4470 *N32*) | |
4471 LD="${LD-ld} -melf32bmipn32" | |
4472 ;; | |
4473 *64-bit*) | |
4474 LD="${LD-ld} -melf64bmip" | |
4475 ;; | |
4476 esac | |
4477 else | |
4478 case `/usr/bin/file conftest.$ac_objext` in | |
4479 *32-bit*) | |
4480 LD="${LD-ld} -32" | |
4481 ;; | |
4482 *N32*) | |
4483 LD="${LD-ld} -n32" | |
4484 ;; | |
4485 *64-bit*) | |
4486 LD="${LD-ld} -64" | |
4487 ;; | |
4488 esac | |
4489 fi | |
4490 fi | |
4491 rm -rf conftest* | |
4492 ;; | |
4493 | |
4494 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4495 # Find out which ABI we are using. | |
4496 echo 'int i;' > conftest.$ac_ext | |
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4498 (eval $ac_compile) 2>&5 | |
4499 ac_status=$? | |
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4501 (exit $ac_status); }; then | |
4502 case `/usr/bin/file conftest.o` in | |
4503 *32-bit*) | |
4504 case $host in | |
4505 x86_64-*linux*) | |
4506 LD="${LD-ld} -m elf_i386" | |
4507 ;; | |
4508 ppc64-*linux*|powerpc64-*linux*) | |
4509 LD="${LD-ld} -m elf32ppclinux" | |
4510 ;; | |
4511 s390x-*linux*) | |
4512 LD="${LD-ld} -m elf_s390" | |
4513 ;; | |
4514 sparc64-*linux*) | |
4515 LD="${LD-ld} -m elf32_sparc" | |
4516 ;; | |
4517 esac | |
4518 ;; | |
4519 *64-bit*) | |
4520 case $host in | |
4521 x86_64-*linux*) | |
4522 LD="${LD-ld} -m elf_x86_64" | |
4523 ;; | |
4524 ppc*-*linux*|powerpc*-*linux*) | |
4525 LD="${LD-ld} -m elf64ppc" | |
4526 ;; | |
4527 s390*-*linux*) | |
4528 LD="${LD-ld} -m elf64_s390" | |
4529 ;; | |
4530 sparc*-*linux*) | |
4531 LD="${LD-ld} -m elf64_sparc" | |
4532 ;; | |
4533 esac | |
4534 ;; | |
4535 esac | |
4536 fi | |
4537 rm -rf conftest* | |
4538 ;; | |
4539 | |
4540 *-*-sco3.2v5*) | |
4541 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4542 SAVE_CFLAGS="$CFLAGS" | |
4543 CFLAGS="$CFLAGS -belf" | |
4544 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4545 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
4546 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4548 else | |
4549 ac_ext=c | |
4550 ac_cpp='$CPP $CPPFLAGS' | |
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4554 | |
4555 cat >conftest.$ac_ext <<_ACEOF | |
4556 /* confdefs.h. */ | |
4557 _ACEOF | |
4558 cat confdefs.h >>conftest.$ac_ext | |
4559 cat >>conftest.$ac_ext <<_ACEOF | |
4560 /* end confdefs.h. */ | |
4561 | |
4562 int | |
4563 main () | |
4564 { | |
4565 | |
4566 ; | |
4567 return 0; | |
4568 } | |
4569 _ACEOF | |
4570 rm -f conftest.$ac_objext conftest$ac_exeext | |
4571 if { (ac_try="$ac_link" | |
4572 case "(($ac_try" in | |
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4574 *) ac_try_echo=$ac_try;; | |
4575 esac | |
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4577 (eval "$ac_link") 2>conftest.er1 | |
4578 ac_status=$? | |
4579 grep -v '^ *+' conftest.er1 >conftest.err | |
4580 rm -f conftest.er1 | |
4581 cat conftest.err >&5 | |
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 (exit $ac_status); } && { | |
4584 test -z "$ac_c_werror_flag" || | |
4585 test ! -s conftest.err | |
4586 } && test -s conftest$ac_exeext && | |
4587 $as_test_x conftest$ac_exeext; then | |
4588 lt_cv_cc_needs_belf=yes | |
4589 else | |
4590 echo "$as_me: failed program was:" >&5 | |
4591 sed 's/^/| /' conftest.$ac_ext >&5 | |
4592 | |
4593 lt_cv_cc_needs_belf=no | |
4594 fi | |
4595 | |
4596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4597 conftest$ac_exeext conftest.$ac_ext | |
4598 ac_ext=c | |
4599 ac_cpp='$CPP $CPPFLAGS' | |
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4603 | |
4604 fi | |
4605 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4606 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
4607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4609 CFLAGS="$SAVE_CFLAGS" | |
4610 fi | |
4611 ;; | |
4612 sparc*-*solaris*) | |
4613 # Find out which ABI we are using. | |
4614 echo 'int i;' > conftest.$ac_ext | |
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4616 (eval $ac_compile) 2>&5 | |
4617 ac_status=$? | |
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 (exit $ac_status); }; then | |
4620 case `/usr/bin/file conftest.o` in | |
4621 *64-bit*) | |
4622 case $lt_cv_prog_gnu_ld in | |
4623 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4624 *) LD="${LD-ld} -64" ;; | |
4625 esac | |
4626 ;; | |
4627 esac | |
4628 fi | |
4629 rm -rf conftest* | |
4630 ;; | |
4631 | |
4632 | |
4633 esac | |
4634 | |
4635 need_locks="$enable_libtool_lock" | |
4636 | |
4637 | |
4638 ac_ext=c | |
4639 ac_cpp='$CPP $CPPFLAGS' | |
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4643 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4644 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
4645 # On Suns, sometimes $CPP names a directory. | |
4646 if test -n "$CPP" && test -d "$CPP"; then | |
4647 CPP= | |
4648 fi | |
4649 if test -z "$CPP"; then | |
4650 if test "${ac_cv_prog_CPP+set}" = set; then | |
4651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4652 else | |
4653 # Double quotes because CPP needs to be expanded | |
4654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4655 do | |
4656 ac_preproc_ok=false | |
4657 for ac_c_preproc_warn_flag in '' yes | |
4658 do | |
4659 # Use a header file that comes with gcc, so configuring glibc | |
4660 # with a fresh cross-compiler works. | |
4661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4662 # <limits.h> exists even on freestanding compilers. | |
4663 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4664 # not just through cpp. "Syntax error" is here to catch this case. | |
4665 cat >conftest.$ac_ext <<_ACEOF | |
4666 /* confdefs.h. */ | |
4667 _ACEOF | |
4668 cat confdefs.h >>conftest.$ac_ext | |
4669 cat >>conftest.$ac_ext <<_ACEOF | |
4670 /* end confdefs.h. */ | |
4671 #ifdef __STDC__ | |
4672 # include <limits.h> | |
4673 #else | |
4674 # include <assert.h> | |
4675 #endif | |
4676 Syntax error | |
4677 _ACEOF | |
4678 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4679 case "(($ac_try" in | |
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 *) ac_try_echo=$ac_try;; | |
4682 esac | |
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4685 ac_status=$? | |
4686 grep -v '^ *+' conftest.er1 >conftest.err | |
4687 rm -f conftest.er1 | |
4688 cat conftest.err >&5 | |
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4690 (exit $ac_status); } >/dev/null && { | |
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4692 test ! -s conftest.err | |
4693 }; then | |
4694 : | |
4695 else | |
4696 echo "$as_me: failed program was:" >&5 | |
4697 sed 's/^/| /' conftest.$ac_ext >&5 | |
4698 | |
4699 # Broken: fails on valid input. | |
4700 continue | |
4701 fi | |
4702 | |
4703 rm -f conftest.err conftest.$ac_ext | |
4704 | |
4705 # OK, works on sane cases. Now check whether nonexistent headers | |
4706 # can be detected and how. | |
4707 cat >conftest.$ac_ext <<_ACEOF | |
4708 /* confdefs.h. */ | |
4709 _ACEOF | |
4710 cat confdefs.h >>conftest.$ac_ext | |
4711 cat >>conftest.$ac_ext <<_ACEOF | |
4712 /* end confdefs.h. */ | |
4713 #include <ac_nonexistent.h> | |
4714 _ACEOF | |
4715 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4716 case "(($ac_try" in | |
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4718 *) ac_try_echo=$ac_try;; | |
4719 esac | |
4720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4722 ac_status=$? | |
4723 grep -v '^ *+' conftest.er1 >conftest.err | |
4724 rm -f conftest.er1 | |
4725 cat conftest.err >&5 | |
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4727 (exit $ac_status); } >/dev/null && { | |
4728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4729 test ! -s conftest.err | |
4730 }; then | |
4731 # Broken: success on invalid input. | |
4732 continue | |
4733 else | |
4734 echo "$as_me: failed program was:" >&5 | |
4735 sed 's/^/| /' conftest.$ac_ext >&5 | |
4736 | |
4737 # Passes both tests. | |
4738 ac_preproc_ok=: | |
4739 break | |
4740 fi | |
4741 | |
4742 rm -f conftest.err conftest.$ac_ext | |
4743 | |
4744 done | |
4745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4746 rm -f conftest.err conftest.$ac_ext | |
4747 if $ac_preproc_ok; then | |
4748 break | |
4749 fi | |
4750 | |
4751 done | |
4752 ac_cv_prog_CPP=$CPP | |
4753 | |
4754 fi | |
4755 CPP=$ac_cv_prog_CPP | |
4756 else | |
4757 ac_cv_prog_CPP=$CPP | |
4758 fi | |
4759 { echo "$as_me:$LINENO: result: $CPP" >&5 | |
4760 echo "${ECHO_T}$CPP" >&6; } | |
4761 ac_preproc_ok=false | |
4762 for ac_c_preproc_warn_flag in '' yes | |
4763 do | |
4764 # Use a header file that comes with gcc, so configuring glibc | |
4765 # with a fresh cross-compiler works. | |
4766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4767 # <limits.h> exists even on freestanding compilers. | |
4768 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4769 # not just through cpp. "Syntax error" is here to catch this case. | |
4770 cat >conftest.$ac_ext <<_ACEOF | |
4771 /* confdefs.h. */ | |
4772 _ACEOF | |
4773 cat confdefs.h >>conftest.$ac_ext | |
4774 cat >>conftest.$ac_ext <<_ACEOF | |
4775 /* end confdefs.h. */ | |
4776 #ifdef __STDC__ | |
4777 # include <limits.h> | |
4778 #else | |
4779 # include <assert.h> | |
4780 #endif | |
4781 Syntax error | |
4782 _ACEOF | |
4783 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4784 case "(($ac_try" in | |
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4786 *) ac_try_echo=$ac_try;; | |
4787 esac | |
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4790 ac_status=$? | |
4791 grep -v '^ *+' conftest.er1 >conftest.err | |
4792 rm -f conftest.er1 | |
4793 cat conftest.err >&5 | |
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4795 (exit $ac_status); } >/dev/null && { | |
4796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4797 test ! -s conftest.err | |
4798 }; then | |
4799 : | |
4800 else | |
4801 echo "$as_me: failed program was:" >&5 | |
4802 sed 's/^/| /' conftest.$ac_ext >&5 | |
4803 | |
4804 # Broken: fails on valid input. | |
4805 continue | |
4806 fi | |
4807 | |
4808 rm -f conftest.err conftest.$ac_ext | |
4809 | |
4810 # OK, works on sane cases. Now check whether nonexistent headers | |
4811 # can be detected and how. | |
4812 cat >conftest.$ac_ext <<_ACEOF | |
4813 /* confdefs.h. */ | |
4814 _ACEOF | |
4815 cat confdefs.h >>conftest.$ac_ext | |
4816 cat >>conftest.$ac_ext <<_ACEOF | |
4817 /* end confdefs.h. */ | |
4818 #include <ac_nonexistent.h> | |
4819 _ACEOF | |
4820 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4821 case "(($ac_try" in | |
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4823 *) ac_try_echo=$ac_try;; | |
4824 esac | |
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4827 ac_status=$? | |
4828 grep -v '^ *+' conftest.er1 >conftest.err | |
4829 rm -f conftest.er1 | |
4830 cat conftest.err >&5 | |
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4832 (exit $ac_status); } >/dev/null && { | |
4833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4834 test ! -s conftest.err | |
4835 }; then | |
4836 # Broken: success on invalid input. | |
4837 continue | |
4838 else | |
4839 echo "$as_me: failed program was:" >&5 | |
4840 sed 's/^/| /' conftest.$ac_ext >&5 | |
4841 | |
4842 # Passes both tests. | |
4843 ac_preproc_ok=: | |
4844 break | |
4845 fi | |
4846 | |
4847 rm -f conftest.err conftest.$ac_ext | |
4848 | |
4849 done | |
4850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4851 rm -f conftest.err conftest.$ac_ext | |
4852 if $ac_preproc_ok; then | |
4853 : | |
4854 else | |
4855 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4856 See \`config.log' for more details." >&5 | |
4857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4858 See \`config.log' for more details." >&2;} | |
4859 { (exit 1); exit 1; }; } | |
4860 fi | |
4861 | |
4862 ac_ext=c | |
4863 ac_cpp='$CPP $CPPFLAGS' | |
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4867 | |
4868 | |
4869 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4870 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
4871 if test "${ac_cv_header_stdc+set}" = set; then | |
4872 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4873 else | |
4874 cat >conftest.$ac_ext <<_ACEOF | |
4875 /* confdefs.h. */ | |
4876 _ACEOF | |
4877 cat confdefs.h >>conftest.$ac_ext | |
4878 cat >>conftest.$ac_ext <<_ACEOF | |
4879 /* end confdefs.h. */ | |
4880 #include <stdlib.h> | |
4881 #include <stdarg.h> | |
4882 #include <string.h> | |
4883 #include <float.h> | |
4884 | |
4885 int | |
4886 main () | |
4887 { | |
4888 | |
4889 ; | |
4890 return 0; | |
4891 } | |
4892 _ACEOF | |
4893 rm -f conftest.$ac_objext | |
4894 if { (ac_try="$ac_compile" | |
4895 case "(($ac_try" in | |
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4897 *) ac_try_echo=$ac_try;; | |
4898 esac | |
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4900 (eval "$ac_compile") 2>conftest.er1 | |
4901 ac_status=$? | |
4902 grep -v '^ *+' conftest.er1 >conftest.err | |
4903 rm -f conftest.er1 | |
4904 cat conftest.err >&5 | |
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4906 (exit $ac_status); } && { | |
4907 test -z "$ac_c_werror_flag" || | |
4908 test ! -s conftest.err | |
4909 } && test -s conftest.$ac_objext; then | |
4910 ac_cv_header_stdc=yes | |
4911 else | |
4912 echo "$as_me: failed program was:" >&5 | |
4913 sed 's/^/| /' conftest.$ac_ext >&5 | |
4914 | |
4915 ac_cv_header_stdc=no | |
4916 fi | |
4917 | |
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4919 | |
4920 if test $ac_cv_header_stdc = yes; then | |
4921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4922 cat >conftest.$ac_ext <<_ACEOF | |
4923 /* confdefs.h. */ | |
4924 _ACEOF | |
4925 cat confdefs.h >>conftest.$ac_ext | |
4926 cat >>conftest.$ac_ext <<_ACEOF | |
4927 /* end confdefs.h. */ | |
4928 #include <string.h> | |
4929 | |
4930 _ACEOF | |
4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4932 $EGREP "memchr" >/dev/null 2>&1; then | |
4933 : | |
4934 else | |
4935 ac_cv_header_stdc=no | |
4936 fi | |
4937 rm -f conftest* | |
4938 | |
4939 fi | |
4940 | |
4941 if test $ac_cv_header_stdc = yes; then | |
4942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4943 cat >conftest.$ac_ext <<_ACEOF | |
4944 /* confdefs.h. */ | |
4945 _ACEOF | |
4946 cat confdefs.h >>conftest.$ac_ext | |
4947 cat >>conftest.$ac_ext <<_ACEOF | |
4948 /* end confdefs.h. */ | |
4949 #include <stdlib.h> | |
4950 | |
4951 _ACEOF | |
4952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4953 $EGREP "free" >/dev/null 2>&1; then | |
4954 : | |
4955 else | |
4956 ac_cv_header_stdc=no | |
4957 fi | |
4958 rm -f conftest* | |
4959 | |
4960 fi | |
4961 | |
4962 if test $ac_cv_header_stdc = yes; then | |
4963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4964 if test "$cross_compiling" = yes; then | |
4965 : | |
4966 else | |
4967 cat >conftest.$ac_ext <<_ACEOF | |
4968 /* confdefs.h. */ | |
4969 _ACEOF | |
4970 cat confdefs.h >>conftest.$ac_ext | |
4971 cat >>conftest.$ac_ext <<_ACEOF | |
4972 /* end confdefs.h. */ | |
4973 #include <ctype.h> | |
4974 #include <stdlib.h> | |
4975 #if ((' ' & 0x0FF) == 0x020) | |
4976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4978 #else | |
4979 # define ISLOWER(c) \ | |
4980 (('a' <= (c) && (c) <= 'i') \ | |
4981 || ('j' <= (c) && (c) <= 'r') \ | |
4982 || ('s' <= (c) && (c) <= 'z')) | |
4983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4984 #endif | |
4985 | |
4986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4987 int | |
4988 main () | |
4989 { | |
4990 int i; | |
4991 for (i = 0; i < 256; i++) | |
4992 if (XOR (islower (i), ISLOWER (i)) | |
4993 || toupper (i) != TOUPPER (i)) | |
4994 return 2; | |
4995 return 0; | |
4996 } | |
4997 _ACEOF | |
4998 rm -f conftest$ac_exeext | |
4999 if { (ac_try="$ac_link" | |
5000 case "(($ac_try" in | |
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5002 *) ac_try_echo=$ac_try;; | |
5003 esac | |
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5005 (eval "$ac_link") 2>&5 | |
5006 ac_status=$? | |
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5009 { (case "(($ac_try" in | |
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5011 *) ac_try_echo=$ac_try;; | |
5012 esac | |
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5014 (eval "$ac_try") 2>&5 | |
5015 ac_status=$? | |
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5017 (exit $ac_status); }; }; then | |
5018 : | |
5019 else | |
5020 echo "$as_me: program exited with status $ac_status" >&5 | |
5021 echo "$as_me: failed program was:" >&5 | |
5022 sed 's/^/| /' conftest.$ac_ext >&5 | |
5023 | |
5024 ( exit $ac_status ) | |
5025 ac_cv_header_stdc=no | |
5026 fi | |
5027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5028 fi | |
5029 | |
5030 | |
5031 fi | |
5032 fi | |
5033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
5035 if test $ac_cv_header_stdc = yes; then | |
5036 | |
5037 cat >>confdefs.h <<\_ACEOF | |
5038 #define STDC_HEADERS 1 | |
5039 _ACEOF | |
5040 | |
5041 fi | |
5042 | |
5043 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5044 | |
5045 | |
5046 | |
5047 | |
5048 | |
5049 | |
5050 | |
5051 | |
5052 | |
5053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5054 inttypes.h stdint.h unistd.h | |
5055 do | |
5056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5057 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5060 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5061 else | |
5062 cat >conftest.$ac_ext <<_ACEOF | |
5063 /* confdefs.h. */ | |
5064 _ACEOF | |
5065 cat confdefs.h >>conftest.$ac_ext | |
5066 cat >>conftest.$ac_ext <<_ACEOF | |
5067 /* end confdefs.h. */ | |
5068 $ac_includes_default | |
5069 | |
5070 #include <$ac_header> | |
5071 _ACEOF | |
5072 rm -f conftest.$ac_objext | |
5073 if { (ac_try="$ac_compile" | |
5074 case "(($ac_try" in | |
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5076 *) ac_try_echo=$ac_try;; | |
5077 esac | |
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5079 (eval "$ac_compile") 2>conftest.er1 | |
5080 ac_status=$? | |
5081 grep -v '^ *+' conftest.er1 >conftest.err | |
5082 rm -f conftest.er1 | |
5083 cat conftest.err >&5 | |
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5085 (exit $ac_status); } && { | |
5086 test -z "$ac_c_werror_flag" || | |
5087 test ! -s conftest.err | |
5088 } && test -s conftest.$ac_objext; then | |
5089 eval "$as_ac_Header=yes" | |
5090 else | |
5091 echo "$as_me: failed program was:" >&5 | |
5092 sed 's/^/| /' conftest.$ac_ext >&5 | |
5093 | |
5094 eval "$as_ac_Header=no" | |
5095 fi | |
5096 | |
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5098 fi | |
5099 ac_res=`eval echo '${'$as_ac_Header'}'` | |
5100 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5101 echo "${ECHO_T}$ac_res" >&6; } | |
5102 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5103 cat >>confdefs.h <<_ACEOF | |
5104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5105 _ACEOF | |
5106 | |
5107 fi | |
5108 | |
5109 done | |
5110 | |
5111 | |
5112 | |
5113 for ac_header in dlfcn.h | |
5114 do | |
5115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5117 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5120 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5121 fi | |
5122 ac_res=`eval echo '${'$as_ac_Header'}'` | |
5123 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5124 echo "${ECHO_T}$ac_res" >&6; } | |
5125 else | |
5126 # Is the header compilable? | |
5127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
5129 cat >conftest.$ac_ext <<_ACEOF | |
5130 /* confdefs.h. */ | |
5131 _ACEOF | |
5132 cat confdefs.h >>conftest.$ac_ext | |
5133 cat >>conftest.$ac_ext <<_ACEOF | |
5134 /* end confdefs.h. */ | |
5135 $ac_includes_default | |
5136 #include <$ac_header> | |
5137 _ACEOF | |
5138 rm -f conftest.$ac_objext | |
5139 if { (ac_try="$ac_compile" | |
5140 case "(($ac_try" in | |
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5142 *) ac_try_echo=$ac_try;; | |
5143 esac | |
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5145 (eval "$ac_compile") 2>conftest.er1 | |
5146 ac_status=$? | |
5147 grep -v '^ *+' conftest.er1 >conftest.err | |
5148 rm -f conftest.er1 | |
5149 cat conftest.err >&5 | |
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5151 (exit $ac_status); } && { | |
5152 test -z "$ac_c_werror_flag" || | |
5153 test ! -s conftest.err | |
5154 } && test -s conftest.$ac_objext; then | |
5155 ac_header_compiler=yes | |
5156 else | |
5157 echo "$as_me: failed program was:" >&5 | |
5158 sed 's/^/| /' conftest.$ac_ext >&5 | |
5159 | |
5160 ac_header_compiler=no | |
5161 fi | |
5162 | |
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5165 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5166 | |
5167 # Is the header present? | |
5168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
5170 cat >conftest.$ac_ext <<_ACEOF | |
5171 /* confdefs.h. */ | |
5172 _ACEOF | |
5173 cat confdefs.h >>conftest.$ac_ext | |
5174 cat >>conftest.$ac_ext <<_ACEOF | |
5175 /* end confdefs.h. */ | |
5176 #include <$ac_header> | |
5177 _ACEOF | |
5178 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5179 case "(($ac_try" in | |
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5181 *) ac_try_echo=$ac_try;; | |
5182 esac | |
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5185 ac_status=$? | |
5186 grep -v '^ *+' conftest.er1 >conftest.err | |
5187 rm -f conftest.er1 | |
5188 cat conftest.err >&5 | |
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5190 (exit $ac_status); } >/dev/null && { | |
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5192 test ! -s conftest.err | |
5193 }; then | |
5194 ac_header_preproc=yes | |
5195 else | |
5196 echo "$as_me: failed program was:" >&5 | |
5197 sed 's/^/| /' conftest.$ac_ext >&5 | |
5198 | |
5199 ac_header_preproc=no | |
5200 fi | |
5201 | |
5202 rm -f conftest.err conftest.$ac_ext | |
5203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5204 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5205 | |
5206 # So? What about this header? | |
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5208 yes:no: ) | |
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5213 ac_header_preproc=yes | |
5214 ;; | |
5215 no:yes:* ) | |
5216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5228 | |
5229 ;; | |
5230 esac | |
5231 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5235 else | |
5236 eval "$as_ac_Header=\$ac_header_preproc" | |
5237 fi | |
5238 ac_res=`eval echo '${'$as_ac_Header'}'` | |
5239 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5240 echo "${ECHO_T}$ac_res" >&6; } | |
5241 | |
5242 fi | |
5243 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5244 cat >>confdefs.h <<_ACEOF | |
5245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5246 _ACEOF | |
5247 | |
5248 fi | |
5249 | |
5250 done | |
5251 | |
5252 ac_ext=cpp | |
5253 ac_cpp='$CXXCPP $CPPFLAGS' | |
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5257 if test -z "$CXX"; then | |
5258 if test -n "$CCC"; then | |
5259 CXX=$CCC | |
5260 else | |
5261 if test -n "$ac_tool_prefix"; then | |
5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5263 do | |
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5266 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5268 if test "${ac_cv_prog_CXX+set}" = set; then | |
5269 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5270 else | |
5271 if test -n "$CXX"; then | |
5272 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5273 else | |
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5275 for as_dir in $PATH | |
5276 do | |
5277 IFS=$as_save_IFS | |
5278 test -z "$as_dir" && as_dir=. | |
5279 for ac_exec_ext in '' $ac_executable_extensions; do | |
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5283 break 2 | |
5284 fi | |
5285 done | |
5286 done | |
5287 IFS=$as_save_IFS | |
5288 | |
5289 fi | |
5290 fi | |
5291 CXX=$ac_cv_prog_CXX | |
5292 if test -n "$CXX"; then | |
5293 { echo "$as_me:$LINENO: result: $CXX" >&5 | |
5294 echo "${ECHO_T}$CXX" >&6; } | |
5295 else | |
5296 { echo "$as_me:$LINENO: result: no" >&5 | |
5297 echo "${ECHO_T}no" >&6; } | |
5298 fi | |
5299 | |
5300 | |
5301 test -n "$CXX" && break | |
5302 done | |
5303 fi | |
5304 if test -z "$CXX"; then | |
5305 ac_ct_CXX=$CXX | |
5306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5307 do | |
5308 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5309 set dummy $ac_prog; ac_word=$2 | |
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
5313 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5314 else | |
5315 if test -n "$ac_ct_CXX"; then | |
5316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5317 else | |
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5319 for as_dir in $PATH | |
5320 do | |
5321 IFS=$as_save_IFS | |
5322 test -z "$as_dir" && as_dir=. | |
5323 for ac_exec_ext in '' $ac_executable_extensions; do | |
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5325 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5327 break 2 | |
5328 fi | |
5329 done | |
5330 done | |
5331 IFS=$as_save_IFS | |
5332 | |
5333 fi | |
5334 fi | |
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5336 if test -n "$ac_ct_CXX"; then | |
5337 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
5338 echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
5339 else | |
5340 { echo "$as_me:$LINENO: result: no" >&5 | |
5341 echo "${ECHO_T}no" >&6; } | |
5342 fi | |
5343 | |
5344 | |
5345 test -n "$ac_ct_CXX" && break | |
5346 done | |
5347 | |
5348 if test "x$ac_ct_CXX" = x; then | |
5349 CXX="g++" | |
5350 else | |
5351 case $cross_compiling:$ac_tool_warned in | |
5352 yes:) | |
5353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5354 whose name does not start with the host triplet. If you think this | |
5355 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5357 whose name does not start with the host triplet. If you think this | |
5358 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5359 ac_tool_warned=yes ;; | |
5360 esac | |
5361 CXX=$ac_ct_CXX | |
5362 fi | |
5363 fi | |
5364 | |
5365 fi | |
5366 fi | |
5367 # Provide some information about the compiler. | |
5368 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
5369 ac_compiler=`set X $ac_compile; echo $2` | |
5370 { (ac_try="$ac_compiler --version >&5" | |
5371 case "(($ac_try" in | |
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5373 *) ac_try_echo=$ac_try;; | |
5374 esac | |
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5376 (eval "$ac_compiler --version >&5") 2>&5 | |
5377 ac_status=$? | |
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5379 (exit $ac_status); } | |
5380 { (ac_try="$ac_compiler -v >&5" | |
5381 case "(($ac_try" in | |
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5383 *) ac_try_echo=$ac_try;; | |
5384 esac | |
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5386 (eval "$ac_compiler -v >&5") 2>&5 | |
5387 ac_status=$? | |
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5389 (exit $ac_status); } | |
5390 { (ac_try="$ac_compiler -V >&5" | |
5391 case "(($ac_try" in | |
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5393 *) ac_try_echo=$ac_try;; | |
5394 esac | |
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5396 (eval "$ac_compiler -V >&5") 2>&5 | |
5397 ac_status=$? | |
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 (exit $ac_status); } | |
5400 | |
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
5402 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
5403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
5404 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5405 else | |
5406 cat >conftest.$ac_ext <<_ACEOF | |
5407 /* confdefs.h. */ | |
5408 _ACEOF | |
5409 cat confdefs.h >>conftest.$ac_ext | |
5410 cat >>conftest.$ac_ext <<_ACEOF | |
5411 /* end confdefs.h. */ | |
5412 | |
5413 int | |
5414 main () | |
5415 { | |
5416 #ifndef __GNUC__ | |
5417 choke me | |
5418 #endif | |
5419 | |
5420 ; | |
5421 return 0; | |
5422 } | |
5423 _ACEOF | |
5424 rm -f conftest.$ac_objext | |
5425 if { (ac_try="$ac_compile" | |
5426 case "(($ac_try" in | |
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5428 *) ac_try_echo=$ac_try;; | |
5429 esac | |
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5431 (eval "$ac_compile") 2>conftest.er1 | |
5432 ac_status=$? | |
5433 grep -v '^ *+' conftest.er1 >conftest.err | |
5434 rm -f conftest.er1 | |
5435 cat conftest.err >&5 | |
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5437 (exit $ac_status); } && { | |
5438 test -z "$ac_cxx_werror_flag" || | |
5439 test ! -s conftest.err | |
5440 } && test -s conftest.$ac_objext; then | |
5441 ac_compiler_gnu=yes | |
5442 else | |
5443 echo "$as_me: failed program was:" >&5 | |
5444 sed 's/^/| /' conftest.$ac_ext >&5 | |
5445 | |
5446 ac_compiler_gnu=no | |
5447 fi | |
5448 | |
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5451 | |
5452 fi | |
5453 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5454 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
5455 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
5456 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5457 ac_save_CXXFLAGS=$CXXFLAGS | |
5458 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
5459 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
5460 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
5461 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5462 else | |
5463 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5464 ac_cxx_werror_flag=yes | |
5465 ac_cv_prog_cxx_g=no | |
5466 CXXFLAGS="-g" | |
5467 cat >conftest.$ac_ext <<_ACEOF | |
5468 /* confdefs.h. */ | |
5469 _ACEOF | |
5470 cat confdefs.h >>conftest.$ac_ext | |
5471 cat >>conftest.$ac_ext <<_ACEOF | |
5472 /* end confdefs.h. */ | |
5473 | |
5474 int | |
5475 main () | |
5476 { | |
5477 | |
5478 ; | |
5479 return 0; | |
5480 } | |
5481 _ACEOF | |
5482 rm -f conftest.$ac_objext | |
5483 if { (ac_try="$ac_compile" | |
5484 case "(($ac_try" in | |
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5486 *) ac_try_echo=$ac_try;; | |
5487 esac | |
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5489 (eval "$ac_compile") 2>conftest.er1 | |
5490 ac_status=$? | |
5491 grep -v '^ *+' conftest.er1 >conftest.err | |
5492 rm -f conftest.er1 | |
5493 cat conftest.err >&5 | |
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5495 (exit $ac_status); } && { | |
5496 test -z "$ac_cxx_werror_flag" || | |
5497 test ! -s conftest.err | |
5498 } && test -s conftest.$ac_objext; then | |
5499 ac_cv_prog_cxx_g=yes | |
5500 else | |
5501 echo "$as_me: failed program was:" >&5 | |
5502 sed 's/^/| /' conftest.$ac_ext >&5 | |
5503 | |
5504 CXXFLAGS="" | |
5505 cat >conftest.$ac_ext <<_ACEOF | |
5506 /* confdefs.h. */ | |
5507 _ACEOF | |
5508 cat confdefs.h >>conftest.$ac_ext | |
5509 cat >>conftest.$ac_ext <<_ACEOF | |
5510 /* end confdefs.h. */ | |
5511 | |
5512 int | |
5513 main () | |
5514 { | |
5515 | |
5516 ; | |
5517 return 0; | |
5518 } | |
5519 _ACEOF | |
5520 rm -f conftest.$ac_objext | |
5521 if { (ac_try="$ac_compile" | |
5522 case "(($ac_try" in | |
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5524 *) ac_try_echo=$ac_try;; | |
5525 esac | |
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5527 (eval "$ac_compile") 2>conftest.er1 | |
5528 ac_status=$? | |
5529 grep -v '^ *+' conftest.er1 >conftest.err | |
5530 rm -f conftest.er1 | |
5531 cat conftest.err >&5 | |
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5533 (exit $ac_status); } && { | |
5534 test -z "$ac_cxx_werror_flag" || | |
5535 test ! -s conftest.err | |
5536 } && test -s conftest.$ac_objext; then | |
5537 : | |
5538 else | |
5539 echo "$as_me: failed program was:" >&5 | |
5540 sed 's/^/| /' conftest.$ac_ext >&5 | |
5541 | |
5542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5543 CXXFLAGS="-g" | |
5544 cat >conftest.$ac_ext <<_ACEOF | |
5545 /* confdefs.h. */ | |
5546 _ACEOF | |
5547 cat confdefs.h >>conftest.$ac_ext | |
5548 cat >>conftest.$ac_ext <<_ACEOF | |
5549 /* end confdefs.h. */ | |
5550 | |
5551 int | |
5552 main () | |
5553 { | |
5554 | |
5555 ; | |
5556 return 0; | |
5557 } | |
5558 _ACEOF | |
5559 rm -f conftest.$ac_objext | |
5560 if { (ac_try="$ac_compile" | |
5561 case "(($ac_try" in | |
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5563 *) ac_try_echo=$ac_try;; | |
5564 esac | |
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5566 (eval "$ac_compile") 2>conftest.er1 | |
5567 ac_status=$? | |
5568 grep -v '^ *+' conftest.er1 >conftest.err | |
5569 rm -f conftest.er1 | |
5570 cat conftest.err >&5 | |
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5572 (exit $ac_status); } && { | |
5573 test -z "$ac_cxx_werror_flag" || | |
5574 test ! -s conftest.err | |
5575 } && test -s conftest.$ac_objext; then | |
5576 ac_cv_prog_cxx_g=yes | |
5577 else | |
5578 echo "$as_me: failed program was:" >&5 | |
5579 sed 's/^/| /' conftest.$ac_ext >&5 | |
5580 | |
5581 | |
5582 fi | |
5583 | |
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5585 fi | |
5586 | |
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5588 fi | |
5589 | |
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5592 fi | |
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
5594 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
5595 if test "$ac_test_CXXFLAGS" = set; then | |
5596 CXXFLAGS=$ac_save_CXXFLAGS | |
5597 elif test $ac_cv_prog_cxx_g = yes; then | |
5598 if test "$GXX" = yes; then | |
5599 CXXFLAGS="-g -O2" | |
5600 else | |
5601 CXXFLAGS="-g" | |
5602 fi | |
5603 else | |
5604 if test "$GXX" = yes; then | |
5605 CXXFLAGS="-O2" | |
5606 else | |
5607 CXXFLAGS= | |
5608 fi | |
5609 fi | |
5610 ac_ext=cpp | |
5611 ac_cpp='$CXXCPP $CPPFLAGS' | |
5612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5615 | |
5616 depcc="$CXX" am_compiler_list= | |
5617 | |
5618 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
5619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
5620 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
5621 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5622 else | |
5623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5624 # We make a subdir and do the tests there. Otherwise we can end up | |
5625 # making bogus files that we don't know about and never remove. For | |
5626 # instance it was reported that on HP-UX the gcc test will end up | |
5627 # making a dummy file named `D' -- because `-MD' means `put the output | |
5628 # in D'. | |
5629 mkdir conftest.dir | |
5630 # Copy depcomp to subdir because otherwise we won't find it if we're | |
5631 # using a relative directory. | |
5632 cp "$am_depcomp" conftest.dir | |
5633 cd conftest.dir | |
5634 # We will build objects and dependencies in a subdirectory because | |
5635 # it helps to detect inapplicable dependency modes. For instance | |
5636 # both Tru64's cc and ICC support -MD to output dependencies as a | |
5637 # side effect of compilation, but ICC will put the dependencies in | |
5638 # the current directory while Tru64 will put them in the object | |
5639 # directory. | |
5640 mkdir sub | |
5641 | |
5642 am_cv_CXX_dependencies_compiler_type=none | |
5643 if test "$am_compiler_list" = ""; then | |
5644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5645 fi | |
5646 for depmode in $am_compiler_list; do | |
5647 # Setup a source with many dependencies, because some compilers | |
5648 # like to wrap large dependency lists on column 80 (with \), and | |
5649 # we should not choose a depcomp mode which is confused by this. | |
5650 # | |
5651 # We need to recreate these files for each test, as the compiler may | |
5652 # overwrite some of them when testing with obscure command lines. | |
5653 # This happens at least with the AIX C compiler. | |
5654 : > sub/conftest.c | |
5655 for i in 1 2 3 4 5 6; do | |
5656 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5658 # Solaris 8's {/usr,}/bin/sh. | |
5659 touch sub/conftst$i.h | |
5660 done | |
5661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5662 | |
5663 case $depmode in | |
5664 nosideeffect) | |
5665 # after this tag, mechanisms are not by side-effect, so they'll | |
5666 # only be used when explicitly requested | |
5667 if test "x$enable_dependency_tracking" = xyes; then | |
5668 continue | |
5669 else | |
5670 break | |
5671 fi | |
5672 ;; | |
5673 none) break ;; | |
5674 esac | |
5675 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5676 # mode. It turns out that the SunPro C++ compiler does not properly | |
5677 # handle `-M -o', and we need to detect this. | |
5678 if depmode=$depmode \ | |
5679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5682 >/dev/null 2>conftest.err && | |
5683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5686 # icc doesn't choke on unknown options, it will just issue warnings | |
5687 # or remarks (even with -Werror). So we grep stderr for any message | |
5688 # that says an option was ignored or not supported. | |
5689 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5690 # icc: Command line warning: ignoring option '-M'; no argument required | |
5691 # The diagnosis changed in icc 8.0: | |
5692 # icc: Command line remark: option '-MP' not supported | |
5693 if (grep 'ignoring option' conftest.err || | |
5694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5695 am_cv_CXX_dependencies_compiler_type=$depmode | |
5696 break | |
5697 fi | |
5698 fi | |
5699 done | |
5700 | |
5701 cd .. | |
5702 rm -rf conftest.dir | |
5703 else | |
5704 am_cv_CXX_dependencies_compiler_type=none | |
5705 fi | |
5706 | |
5707 fi | |
5708 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5709 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5710 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5711 | |
5712 | |
5713 | |
5714 if | |
5715 test "x$enable_dependency_tracking" != xno \ | |
5716 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5717 am__fastdepCXX_TRUE= | |
5718 am__fastdepCXX_FALSE='#' | |
5719 else | |
5720 am__fastdepCXX_TRUE='#' | |
5721 am__fastdepCXX_FALSE= | |
5722 fi | |
5723 | |
5724 | |
5725 | |
5726 | |
5727 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5728 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5729 (test "X$CXX" != "Xg++"))) ; then | |
5730 ac_ext=cpp | |
5731 ac_cpp='$CXXCPP $CPPFLAGS' | |
5732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5735 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5736 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
5737 if test -z "$CXXCPP"; then | |
5738 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
5739 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5740 else | |
5741 # Double quotes because CXXCPP needs to be expanded | |
5742 for CXXCPP in "$CXX -E" "/lib/cpp" | |
5743 do | |
5744 ac_preproc_ok=false | |
5745 for ac_cxx_preproc_warn_flag in '' yes | |
5746 do | |
5747 # Use a header file that comes with gcc, so configuring glibc | |
5748 # with a fresh cross-compiler works. | |
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5750 # <limits.h> exists even on freestanding compilers. | |
5751 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5752 # not just through cpp. "Syntax error" is here to catch this case. | |
5753 cat >conftest.$ac_ext <<_ACEOF | |
5754 /* confdefs.h. */ | |
5755 _ACEOF | |
5756 cat confdefs.h >>conftest.$ac_ext | |
5757 cat >>conftest.$ac_ext <<_ACEOF | |
5758 /* end confdefs.h. */ | |
5759 #ifdef __STDC__ | |
5760 # include <limits.h> | |
5761 #else | |
5762 # include <assert.h> | |
5763 #endif | |
5764 Syntax error | |
5765 _ACEOF | |
5766 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5767 case "(($ac_try" in | |
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5769 *) ac_try_echo=$ac_try;; | |
5770 esac | |
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5773 ac_status=$? | |
5774 grep -v '^ *+' conftest.er1 >conftest.err | |
5775 rm -f conftest.er1 | |
5776 cat conftest.err >&5 | |
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 (exit $ac_status); } >/dev/null && { | |
5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
5780 test ! -s conftest.err | |
5781 }; then | |
5782 : | |
5783 else | |
5784 echo "$as_me: failed program was:" >&5 | |
5785 sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | |
5787 # Broken: fails on valid input. | |
5788 continue | |
5789 fi | |
5790 | |
5791 rm -f conftest.err conftest.$ac_ext | |
5792 | |
5793 # OK, works on sane cases. Now check whether nonexistent headers | |
5794 # can be detected and how. | |
5795 cat >conftest.$ac_ext <<_ACEOF | |
5796 /* confdefs.h. */ | |
5797 _ACEOF | |
5798 cat confdefs.h >>conftest.$ac_ext | |
5799 cat >>conftest.$ac_ext <<_ACEOF | |
5800 /* end confdefs.h. */ | |
5801 #include <ac_nonexistent.h> | |
5802 _ACEOF | |
5803 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5804 case "(($ac_try" in | |
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5806 *) ac_try_echo=$ac_try;; | |
5807 esac | |
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5810 ac_status=$? | |
5811 grep -v '^ *+' conftest.er1 >conftest.err | |
5812 rm -f conftest.er1 | |
5813 cat conftest.err >&5 | |
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5815 (exit $ac_status); } >/dev/null && { | |
5816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
5817 test ! -s conftest.err | |
5818 }; then | |
5819 # Broken: success on invalid input. | |
5820 continue | |
5821 else | |
5822 echo "$as_me: failed program was:" >&5 | |
5823 sed 's/^/| /' conftest.$ac_ext >&5 | |
5824 | |
5825 # Passes both tests. | |
5826 ac_preproc_ok=: | |
5827 break | |
5828 fi | |
5829 | |
5830 rm -f conftest.err conftest.$ac_ext | |
5831 | |
5832 done | |
5833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5834 rm -f conftest.err conftest.$ac_ext | |
5835 if $ac_preproc_ok; then | |
5836 break | |
5837 fi | |
5838 | |
5839 done | |
5840 ac_cv_prog_CXXCPP=$CXXCPP | |
5841 | |
5842 fi | |
5843 CXXCPP=$ac_cv_prog_CXXCPP | |
5844 else | |
5845 ac_cv_prog_CXXCPP=$CXXCPP | |
5846 fi | |
5847 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5848 echo "${ECHO_T}$CXXCPP" >&6; } | |
5849 ac_preproc_ok=false | |
5850 for ac_cxx_preproc_warn_flag in '' yes | |
5851 do | |
5852 # Use a header file that comes with gcc, so configuring glibc | |
5853 # with a fresh cross-compiler works. | |
5854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5855 # <limits.h> exists even on freestanding compilers. | |
5856 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5857 # not just through cpp. "Syntax error" is here to catch this case. | |
5858 cat >conftest.$ac_ext <<_ACEOF | |
5859 /* confdefs.h. */ | |
5860 _ACEOF | |
5861 cat confdefs.h >>conftest.$ac_ext | |
5862 cat >>conftest.$ac_ext <<_ACEOF | |
5863 /* end confdefs.h. */ | |
5864 #ifdef __STDC__ | |
5865 # include <limits.h> | |
5866 #else | |
5867 # include <assert.h> | |
5868 #endif | |
5869 Syntax error | |
5870 _ACEOF | |
5871 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5872 case "(($ac_try" in | |
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5874 *) ac_try_echo=$ac_try;; | |
5875 esac | |
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5878 ac_status=$? | |
5879 grep -v '^ *+' conftest.er1 >conftest.err | |
5880 rm -f conftest.er1 | |
5881 cat conftest.err >&5 | |
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5883 (exit $ac_status); } >/dev/null && { | |
5884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
5885 test ! -s conftest.err | |
5886 }; then | |
5887 : | |
5888 else | |
5889 echo "$as_me: failed program was:" >&5 | |
5890 sed 's/^/| /' conftest.$ac_ext >&5 | |
5891 | |
5892 # Broken: fails on valid input. | |
5893 continue | |
5894 fi | |
5895 | |
5896 rm -f conftest.err conftest.$ac_ext | |
5897 | |
5898 # OK, works on sane cases. Now check whether nonexistent headers | |
5899 # can be detected and how. | |
5900 cat >conftest.$ac_ext <<_ACEOF | |
5901 /* confdefs.h. */ | |
5902 _ACEOF | |
5903 cat confdefs.h >>conftest.$ac_ext | |
5904 cat >>conftest.$ac_ext <<_ACEOF | |
5905 /* end confdefs.h. */ | |
5906 #include <ac_nonexistent.h> | |
5907 _ACEOF | |
5908 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5909 case "(($ac_try" in | |
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5911 *) ac_try_echo=$ac_try;; | |
5912 esac | |
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5915 ac_status=$? | |
5916 grep -v '^ *+' conftest.er1 >conftest.err | |
5917 rm -f conftest.er1 | |
5918 cat conftest.err >&5 | |
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5920 (exit $ac_status); } >/dev/null && { | |
5921 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
5922 test ! -s conftest.err | |
5923 }; then | |
5924 # Broken: success on invalid input. | |
5925 continue | |
5926 else | |
5927 echo "$as_me: failed program was:" >&5 | |
5928 sed 's/^/| /' conftest.$ac_ext >&5 | |
5929 | |
5930 # Passes both tests. | |
5931 ac_preproc_ok=: | |
5932 break | |
5933 fi | |
5934 | |
5935 rm -f conftest.err conftest.$ac_ext | |
5936 | |
5937 done | |
5938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5939 rm -f conftest.err conftest.$ac_ext | |
5940 if $ac_preproc_ok; then | |
5941 : | |
5942 else | |
5943 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5944 See \`config.log' for more details." >&5 | |
5945 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5946 See \`config.log' for more details." >&2;} | |
5947 { (exit 1); exit 1; }; } | |
5948 fi | |
5949 | |
5950 ac_ext=cpp | |
5951 ac_cpp='$CXXCPP $CPPFLAGS' | |
5952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5955 | |
5956 fi | |
5957 | |
5958 | |
5959 ac_ext=f | |
5960 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5961 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5962 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5963 if test -n "$ac_tool_prefix"; then | |
5964 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
5965 do | |
5966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5970 if test "${ac_cv_prog_F77+set}" = set; then | |
5971 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5972 else | |
5973 if test -n "$F77"; then | |
5974 ac_cv_prog_F77="$F77" # Let the user override the test. | |
5975 else | |
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5977 for as_dir in $PATH | |
5978 do | |
5979 IFS=$as_save_IFS | |
5980 test -z "$as_dir" && as_dir=. | |
5981 for ac_exec_ext in '' $ac_executable_extensions; do | |
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5983 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5985 break 2 | |
5986 fi | |
5987 done | |
5988 done | |
5989 IFS=$as_save_IFS | |
5990 | |
5991 fi | |
5992 fi | |
5993 F77=$ac_cv_prog_F77 | |
5994 if test -n "$F77"; then | |
5995 { echo "$as_me:$LINENO: result: $F77" >&5 | |
5996 echo "${ECHO_T}$F77" >&6; } | |
5997 else | |
5998 { echo "$as_me:$LINENO: result: no" >&5 | |
5999 echo "${ECHO_T}no" >&6; } | |
6000 fi | |
6001 | |
6002 | |
6003 test -n "$F77" && break | |
6004 done | |
6005 fi | |
6006 if test -z "$F77"; then | |
6007 ac_ct_F77=$F77 | |
6008 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
6009 do | |
6010 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6011 set dummy $ac_prog; ac_word=$2 | |
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6014 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
6015 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6016 else | |
6017 if test -n "$ac_ct_F77"; then | |
6018 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
6019 else | |
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6021 for as_dir in $PATH | |
6022 do | |
6023 IFS=$as_save_IFS | |
6024 test -z "$as_dir" && as_dir=. | |
6025 for ac_exec_ext in '' $ac_executable_extensions; do | |
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6027 ac_cv_prog_ac_ct_F77="$ac_prog" | |
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6029 break 2 | |
6030 fi | |
6031 done | |
6032 done | |
6033 IFS=$as_save_IFS | |
6034 | |
6035 fi | |
6036 fi | |
6037 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
6038 if test -n "$ac_ct_F77"; then | |
6039 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
6040 echo "${ECHO_T}$ac_ct_F77" >&6; } | |
6041 else | |
6042 { echo "$as_me:$LINENO: result: no" >&5 | |
6043 echo "${ECHO_T}no" >&6; } | |
6044 fi | |
6045 | |
6046 | |
6047 test -n "$ac_ct_F77" && break | |
6048 done | |
6049 | |
6050 if test "x$ac_ct_F77" = x; then | |
6051 F77="" | |
6052 else | |
6053 case $cross_compiling:$ac_tool_warned in | |
6054 yes:) | |
6055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6056 whose name does not start with the host triplet. If you think this | |
6057 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6059 whose name does not start with the host triplet. If you think this | |
6060 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6061 ac_tool_warned=yes ;; | |
6062 esac | |
6063 F77=$ac_ct_F77 | |
6064 fi | |
6065 fi | |
6066 | |
6067 | |
6068 # Provide some information about the compiler. | |
6069 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | |
6070 ac_compiler=`set X $ac_compile; echo $2` | |
6071 { (ac_try="$ac_compiler --version >&5" | |
6072 case "(($ac_try" in | |
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6074 *) ac_try_echo=$ac_try;; | |
6075 esac | |
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6077 (eval "$ac_compiler --version >&5") 2>&5 | |
6078 ac_status=$? | |
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6080 (exit $ac_status); } | |
6081 { (ac_try="$ac_compiler -v >&5" | |
6082 case "(($ac_try" in | |
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6084 *) ac_try_echo=$ac_try;; | |
6085 esac | |
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6087 (eval "$ac_compiler -v >&5") 2>&5 | |
6088 ac_status=$? | |
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6090 (exit $ac_status); } | |
6091 { (ac_try="$ac_compiler -V >&5" | |
6092 case "(($ac_try" in | |
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6094 *) ac_try_echo=$ac_try;; | |
6095 esac | |
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6097 (eval "$ac_compiler -V >&5") 2>&5 | |
6098 ac_status=$? | |
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6100 (exit $ac_status); } | |
6101 rm -f a.out | |
6102 | |
6103 # If we don't use `.F' as extension, the preprocessor is not run on the | |
6104 # input file. (Note that this only needs to work for GNU compilers.) | |
6105 ac_save_ext=$ac_ext | |
6106 ac_ext=F | |
6107 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
6108 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | |
6109 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
6110 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6111 else | |
6112 cat >conftest.$ac_ext <<_ACEOF | |
6113 program main | |
6114 #ifndef __GNUC__ | |
6115 choke me | |
6116 #endif | |
6117 | |
6118 end | |
6119 _ACEOF | |
6120 rm -f conftest.$ac_objext | |
6121 if { (ac_try="$ac_compile" | |
6122 case "(($ac_try" in | |
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6124 *) ac_try_echo=$ac_try;; | |
6125 esac | |
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6127 (eval "$ac_compile") 2>conftest.er1 | |
6128 ac_status=$? | |
6129 grep -v '^ *+' conftest.er1 >conftest.err | |
6130 rm -f conftest.er1 | |
6131 cat conftest.err >&5 | |
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6133 (exit $ac_status); } && { | |
6134 test -z "$ac_f77_werror_flag" || | |
6135 test ! -s conftest.err | |
6136 } && test -s conftest.$ac_objext; then | |
6137 ac_compiler_gnu=yes | |
6138 else | |
6139 echo "$as_me: failed program was:" >&5 | |
6140 sed 's/^/| /' conftest.$ac_ext >&5 | |
6141 | |
6142 ac_compiler_gnu=no | |
6143 fi | |
6144 | |
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6146 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
6147 | |
6148 fi | |
6149 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
6150 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | |
6151 ac_ext=$ac_save_ext | |
6152 ac_test_FFLAGS=${FFLAGS+set} | |
6153 ac_save_FFLAGS=$FFLAGS | |
6154 FFLAGS= | |
6155 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
6156 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | |
6157 if test "${ac_cv_prog_f77_g+set}" = set; then | |
6158 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6159 else | |
6160 FFLAGS=-g | |
6161 cat >conftest.$ac_ext <<_ACEOF | |
6162 program main | |
6163 | |
6164 end | |
6165 _ACEOF | |
6166 rm -f conftest.$ac_objext | |
6167 if { (ac_try="$ac_compile" | |
6168 case "(($ac_try" in | |
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6170 *) ac_try_echo=$ac_try;; | |
6171 esac | |
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6173 (eval "$ac_compile") 2>conftest.er1 | |
6174 ac_status=$? | |
6175 grep -v '^ *+' conftest.er1 >conftest.err | |
6176 rm -f conftest.er1 | |
6177 cat conftest.err >&5 | |
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6179 (exit $ac_status); } && { | |
6180 test -z "$ac_f77_werror_flag" || | |
6181 test ! -s conftest.err | |
6182 } && test -s conftest.$ac_objext; then | |
6183 ac_cv_prog_f77_g=yes | |
6184 else | |
6185 echo "$as_me: failed program was:" >&5 | |
6186 sed 's/^/| /' conftest.$ac_ext >&5 | |
6187 | |
6188 ac_cv_prog_f77_g=no | |
6189 fi | |
6190 | |
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6192 | |
6193 fi | |
6194 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
6195 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | |
6196 if test "$ac_test_FFLAGS" = set; then | |
6197 FFLAGS=$ac_save_FFLAGS | |
6198 elif test $ac_cv_prog_f77_g = yes; then | |
6199 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
6200 FFLAGS="-g -O2" | |
6201 else | |
6202 FFLAGS="-g" | |
6203 fi | |
6204 else | |
6205 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
6206 FFLAGS="-O2" | |
6207 else | |
6208 FFLAGS= | |
6209 fi | |
6210 fi | |
6211 | |
6212 G77=`test $ac_compiler_gnu = yes && echo yes` | |
6213 ac_ext=c | |
6214 ac_cpp='$CPP $CPPFLAGS' | |
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6218 | |
6219 | |
6220 | |
6221 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
6222 | |
6223 # find the maximum length of command line arguments | |
6224 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
6225 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
6226 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
6227 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6228 else | |
6229 i=0 | |
6230 teststring="ABCD" | |
6231 | |
6232 case $build_os in | |
6233 msdosdjgpp*) | |
6234 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6235 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6236 # during glob expansion). Even if it were fixed, the result of this | |
6237 # check would be larger than it should be. | |
6238 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6239 ;; | |
6240 | |
6241 gnu*) | |
6242 # Under GNU Hurd, this test is not required because there is | |
6243 # no limit to the length of command line arguments. | |
6244 # Libtool will interpret -1 as no limit whatsoever | |
6245 lt_cv_sys_max_cmd_len=-1; | |
6246 ;; | |
6247 | |
6248 cygwin* | mingw*) | |
6249 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6250 # about 5 minutes as the teststring grows exponentially. | |
6251 # Worse, since 9x/ME are not pre-emptively multitasking, | |
6252 # you end up with a "frozen" computer, even though with patience | |
6253 # the test eventually succeeds (with a max line length of 256k). | |
6254 # Instead, let's just punt: use the minimum linelength reported by | |
6255 # all of the supported platforms: 8192 (on NT/2K/XP). | |
6256 lt_cv_sys_max_cmd_len=8192; | |
6257 ;; | |
6258 | |
6259 amigaos*) | |
6260 # On AmigaOS with pdksh, this test takes hours, literally. | |
6261 # So we just punt and use a minimum line length of 8192. | |
6262 lt_cv_sys_max_cmd_len=8192; | |
6263 ;; | |
6264 | |
6265 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6266 # This has been around since 386BSD, at least. Likely further. | |
6267 if test -x /sbin/sysctl; then | |
6268 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6269 elif test -x /usr/sbin/sysctl; then | |
6270 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6271 else | |
6272 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6273 fi | |
6274 # And add a safety zone | |
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6277 ;; | |
6278 | |
6279 interix*) | |
6280 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6281 lt_cv_sys_max_cmd_len=196608 | |
6282 ;; | |
6283 | |
6284 osf*) | |
6285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6287 # nice to cause kernel panics so lets avoid the loop below. | |
6288 # First set a reasonable default. | |
6289 lt_cv_sys_max_cmd_len=16384 | |
6290 # | |
6291 if test -x /sbin/sysconfig; then | |
6292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6293 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6294 esac | |
6295 fi | |
6296 ;; | |
6297 sco3.2v5*) | |
6298 lt_cv_sys_max_cmd_len=102400 | |
6299 ;; | |
6300 sysv5* | sco5v6* | sysv4.2uw2*) | |
6301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6302 if test -n "$kargmax"; then | |
6303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6304 else | |
6305 lt_cv_sys_max_cmd_len=32768 | |
6306 fi | |
6307 ;; | |
6308 *) | |
6309 # If test is not a shell built-in, we'll probably end up computing a | |
6310 # maximum length that is only half of the actual maximum length, but | |
6311 # we can't tell. | |
6312 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6313 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
6314 = "XX$teststring") >/dev/null 2>&1 && | |
6315 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
6316 lt_cv_sys_max_cmd_len=$new_result && | |
6317 test $i != 17 # 1/2 MB should be enough | |
6318 do | |
6319 i=`expr $i + 1` | |
6320 teststring=$teststring$teststring | |
6321 done | |
6322 teststring= | |
6323 # Add a significant safety factor because C++ compilers can tack on massive | |
6324 # amounts of additional arguments before passing them to the linker. | |
6325 # It appears as though 1/2 is a usable value. | |
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6327 ;; | |
6328 esac | |
6329 | |
6330 fi | |
6331 | |
6332 if test -n $lt_cv_sys_max_cmd_len ; then | |
6333 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
6334 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
6335 else | |
6336 { echo "$as_me:$LINENO: result: none" >&5 | |
6337 echo "${ECHO_T}none" >&6; } | |
6338 fi | |
6339 | |
6340 | |
6341 | |
6342 | |
6343 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6344 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6345 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
6346 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6347 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6348 else | |
6349 | |
6350 # These are sane defaults that work on at least a few old systems. | |
6351 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6352 | |
6353 # Character class describing NM global symbol codes. | |
6354 symcode='[BCDEGRST]' | |
6355 | |
6356 # Regexp to match symbols that can be accessed directly from C. | |
6357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6358 | |
6359 # Transform an extracted symbol line into a proper C declaration | |
6360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
6361 | |
6362 # Transform an extracted symbol line into symbol name and symbol address | |
6363 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6364 | |
6365 # Define system-specific variables. | |
6366 case $host_os in | |
6367 aix*) | |
6368 symcode='[BCDT]' | |
6369 ;; | |
6370 cygwin* | mingw* | pw32*) | |
6371 symcode='[ABCDGISTW]' | |
6372 ;; | |
6373 hpux*) # Its linker distinguishes data from code symbols | |
6374 if test "$host_cpu" = ia64; then | |
6375 symcode='[ABCDEGRST]' | |
6376 fi | |
6377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6378 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6379 ;; | |
6380 linux* | k*bsd*-gnu) | |
6381 if test "$host_cpu" = ia64; then | |
6382 symcode='[ABCDGIRSTW]' | |
6383 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6384 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6385 fi | |
6386 ;; | |
6387 irix* | nonstopux*) | |
6388 symcode='[BCDEGRST]' | |
6389 ;; | |
6390 osf*) | |
6391 symcode='[BCDEGQRST]' | |
6392 ;; | |
6393 solaris*) | |
6394 symcode='[BDRT]' | |
6395 ;; | |
6396 sco3.2v5*) | |
6397 symcode='[DT]' | |
6398 ;; | |
6399 sysv4.2uw2*) | |
6400 symcode='[DT]' | |
6401 ;; | |
6402 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6403 symcode='[ABDT]' | |
6404 ;; | |
6405 sysv4) | |
6406 symcode='[DFNSTU]' | |
6407 ;; | |
6408 esac | |
6409 | |
6410 # Handle CRLF in mingw tool chain | |
6411 opt_cr= | |
6412 case $build_os in | |
6413 mingw*) | |
6414 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6415 ;; | |
6416 esac | |
6417 | |
6418 # If we're using GNU nm, then use its standard symbol codes. | |
6419 case `$NM -V 2>&1` in | |
6420 *GNU* | *'with BFD'*) | |
6421 symcode='[ABCDGIRSTW]' ;; | |
6422 esac | |
6423 | |
6424 # Try without a prefix undercore, then with it. | |
6425 for ac_symprfx in "" "_"; do | |
6426 | |
6427 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6428 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6429 | |
6430 # Write the raw and C identifiers. | |
6431 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6432 | |
6433 # Check to see that the pipe works correctly. | |
6434 pipe_works=no | |
6435 | |
6436 rm -f conftest* | |
6437 cat > conftest.$ac_ext <<EOF | |
6438 #ifdef __cplusplus | |
6439 extern "C" { | |
6440 #endif | |
6441 char nm_test_var; | |
6442 void nm_test_func(){} | |
6443 #ifdef __cplusplus | |
6444 } | |
6445 #endif | |
6446 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6447 EOF | |
6448 | |
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6450 (eval $ac_compile) 2>&5 | |
6451 ac_status=$? | |
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6453 (exit $ac_status); }; then | |
6454 # Now try to grab the symbols. | |
6455 nlist=conftest.nm | |
6456 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6457 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6458 ac_status=$? | |
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6460 (exit $ac_status); } && test -s "$nlist"; then | |
6461 # Try sorting and uniquifying the output. | |
6462 if sort "$nlist" | uniq > "$nlist"T; then | |
6463 mv -f "$nlist"T "$nlist" | |
6464 else | |
6465 rm -f "$nlist"T | |
6466 fi | |
6467 | |
6468 # Make sure that we snagged all the symbols we need. | |
6469 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
6470 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
6471 cat <<EOF > conftest.$ac_ext | |
6472 #ifdef __cplusplus | |
6473 extern "C" { | |
6474 #endif | |
6475 | |
6476 EOF | |
6477 # Now generate the symbol file. | |
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
6479 | |
6480 cat <<EOF >> conftest.$ac_ext | |
6481 #if defined (__STDC__) && __STDC__ | |
6482 # define lt_ptr_t void * | |
6483 #else | |
6484 # define lt_ptr_t char * | |
6485 # define const | |
6486 #endif | |
6487 | |
6488 /* The mapping between symbol names and symbols. */ | |
6489 const struct { | |
6490 const char *name; | |
6491 lt_ptr_t address; | |
6492 } | |
6493 lt_preloaded_symbols[] = | |
6494 { | |
6495 EOF | |
6496 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
6497 cat <<\EOF >> conftest.$ac_ext | |
6498 {0, (lt_ptr_t) 0} | |
6499 }; | |
6500 | |
6501 #ifdef __cplusplus | |
6502 } | |
6503 #endif | |
6504 EOF | |
6505 # Now try linking the two files. | |
6506 mv conftest.$ac_objext conftstm.$ac_objext | |
6507 lt_save_LIBS="$LIBS" | |
6508 lt_save_CFLAGS="$CFLAGS" | |
6509 LIBS="conftstm.$ac_objext" | |
6510 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6512 (eval $ac_link) 2>&5 | |
6513 ac_status=$? | |
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6515 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6516 pipe_works=yes | |
6517 fi | |
6518 LIBS="$lt_save_LIBS" | |
6519 CFLAGS="$lt_save_CFLAGS" | |
6520 else | |
6521 echo "cannot find nm_test_func in $nlist" >&5 | |
6522 fi | |
6523 else | |
6524 echo "cannot find nm_test_var in $nlist" >&5 | |
6525 fi | |
6526 else | |
6527 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6528 fi | |
6529 else | |
6530 echo "$progname: failed program was:" >&5 | |
6531 cat conftest.$ac_ext >&5 | |
6532 fi | |
6533 rm -f conftest* conftst* | |
6534 | |
6535 # Do not use the global_symbol_pipe unless it works. | |
6536 if test "$pipe_works" = yes; then | |
6537 break | |
6538 else | |
6539 lt_cv_sys_global_symbol_pipe= | |
6540 fi | |
6541 done | |
6542 | |
6543 fi | |
6544 | |
6545 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6546 lt_cv_sys_global_symbol_to_cdecl= | |
6547 fi | |
6548 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6549 { echo "$as_me:$LINENO: result: failed" >&5 | |
6550 echo "${ECHO_T}failed" >&6; } | |
6551 else | |
6552 { echo "$as_me:$LINENO: result: ok" >&5 | |
6553 echo "${ECHO_T}ok" >&6; } | |
6554 fi | |
6555 | |
6556 { echo "$as_me:$LINENO: checking for objdir" >&5 | |
6557 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
6558 if test "${lt_cv_objdir+set}" = set; then | |
6559 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6560 else | |
6561 rm -f .libs 2>/dev/null | |
6562 mkdir .libs 2>/dev/null | |
6563 if test -d .libs; then | |
6564 lt_cv_objdir=.libs | |
6565 else | |
6566 # MS-DOS does not allow filenames that begin with a dot. | |
6567 lt_cv_objdir=_libs | |
6568 fi | |
6569 rmdir .libs 2>/dev/null | |
6570 fi | |
6571 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6572 echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
6573 objdir=$lt_cv_objdir | |
6574 | |
6575 | |
6576 | |
6577 | |
6578 | |
6579 case $host_os in | |
6580 aix3*) | |
6581 # AIX sometimes has problems with the GCC collect2 program. For some | |
6582 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6583 # vanish in a puff of smoke. | |
6584 if test "X${COLLECT_NAMES+set}" != Xset; then | |
6585 COLLECT_NAMES= | |
6586 export COLLECT_NAMES | |
6587 fi | |
6588 ;; | |
6589 esac | |
6590 | |
6591 # Sed substitution that helps us do robust quoting. It backslashifies | |
6592 # metacharacters that are still active within double-quoted strings. | |
6593 Xsed='sed -e 1s/^X//' | |
6594 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
6595 | |
6596 # Same as above, but do not quote variable references. | |
6597 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
6598 | |
6599 # Sed substitution to delay expansion of an escaped shell variable in a | |
6600 # double_quote_subst'ed string. | |
6601 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6602 | |
6603 # Sed substitution to avoid accidental globbing in evaled expressions | |
6604 no_glob_subst='s/\*/\\\*/g' | |
6605 | |
6606 # Constants: | |
6607 rm="rm -f" | |
6608 | |
6609 # Global variables: | |
6610 default_ofile=libtool | |
6611 can_build_shared=yes | |
6612 | |
6613 # All known linkers require a `.a' archive for static linking (except MSVC, | |
6614 # which needs '.lib'). | |
6615 libext=a | |
6616 ltmain="$ac_aux_dir/ltmain.sh" | |
6617 ofile="$default_ofile" | |
6618 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6619 | |
6620 if test -n "$ac_tool_prefix"; then | |
6621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6622 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6625 if test "${ac_cv_prog_AR+set}" = set; then | |
6626 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6627 else | |
6628 if test -n "$AR"; then | |
6629 ac_cv_prog_AR="$AR" # Let the user override the test. | |
6630 else | |
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6632 for as_dir in $PATH | |
6633 do | |
6634 IFS=$as_save_IFS | |
6635 test -z "$as_dir" && as_dir=. | |
6636 for ac_exec_ext in '' $ac_executable_extensions; do | |
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6638 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6640 break 2 | |
6641 fi | |
6642 done | |
6643 done | |
6644 IFS=$as_save_IFS | |
6645 | |
6646 fi | |
6647 fi | |
6648 AR=$ac_cv_prog_AR | |
6649 if test -n "$AR"; then | |
6650 { echo "$as_me:$LINENO: result: $AR" >&5 | |
6651 echo "${ECHO_T}$AR" >&6; } | |
6652 else | |
6653 { echo "$as_me:$LINENO: result: no" >&5 | |
6654 echo "${ECHO_T}no" >&6; } | |
6655 fi | |
6656 | |
6657 | |
6658 fi | |
6659 if test -z "$ac_cv_prog_AR"; then | |
6660 ac_ct_AR=$AR | |
6661 # Extract the first word of "ar", so it can be a program name with args. | |
6662 set dummy ar; ac_word=$2 | |
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6665 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6666 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6667 else | |
6668 if test -n "$ac_ct_AR"; then | |
6669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6670 else | |
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6672 for as_dir in $PATH | |
6673 do | |
6674 IFS=$as_save_IFS | |
6675 test -z "$as_dir" && as_dir=. | |
6676 for ac_exec_ext in '' $ac_executable_extensions; do | |
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6678 ac_cv_prog_ac_ct_AR="ar" | |
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6680 break 2 | |
6681 fi | |
6682 done | |
6683 done | |
6684 IFS=$as_save_IFS | |
6685 | |
6686 fi | |
6687 fi | |
6688 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6689 if test -n "$ac_ct_AR"; then | |
6690 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6691 echo "${ECHO_T}$ac_ct_AR" >&6; } | |
6692 else | |
6693 { echo "$as_me:$LINENO: result: no" >&5 | |
6694 echo "${ECHO_T}no" >&6; } | |
6695 fi | |
6696 | |
6697 if test "x$ac_ct_AR" = x; then | |
6698 AR="false" | |
6699 else | |
6700 case $cross_compiling:$ac_tool_warned in | |
6701 yes:) | |
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6703 whose name does not start with the host triplet. If you think this | |
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6706 whose name does not start with the host triplet. If you think this | |
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6708 ac_tool_warned=yes ;; | |
6709 esac | |
6710 AR=$ac_ct_AR | |
6711 fi | |
6712 else | |
6713 AR="$ac_cv_prog_AR" | |
6714 fi | |
6715 | |
6716 if test -n "$ac_tool_prefix"; then | |
6717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6721 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6722 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6723 else | |
6724 if test -n "$RANLIB"; then | |
6725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6726 else | |
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6728 for as_dir in $PATH | |
6729 do | |
6730 IFS=$as_save_IFS | |
6731 test -z "$as_dir" && as_dir=. | |
6732 for ac_exec_ext in '' $ac_executable_extensions; do | |
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6736 break 2 | |
6737 fi | |
6738 done | |
6739 done | |
6740 IFS=$as_save_IFS | |
6741 | |
6742 fi | |
6743 fi | |
6744 RANLIB=$ac_cv_prog_RANLIB | |
6745 if test -n "$RANLIB"; then | |
6746 { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6747 echo "${ECHO_T}$RANLIB" >&6; } | |
6748 else | |
6749 { echo "$as_me:$LINENO: result: no" >&5 | |
6750 echo "${ECHO_T}no" >&6; } | |
6751 fi | |
6752 | |
6753 | |
6754 fi | |
6755 if test -z "$ac_cv_prog_RANLIB"; then | |
6756 ac_ct_RANLIB=$RANLIB | |
6757 # Extract the first word of "ranlib", so it can be a program name with args. | |
6758 set dummy ranlib; ac_word=$2 | |
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6761 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6762 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6763 else | |
6764 if test -n "$ac_ct_RANLIB"; then | |
6765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6766 else | |
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6768 for as_dir in $PATH | |
6769 do | |
6770 IFS=$as_save_IFS | |
6771 test -z "$as_dir" && as_dir=. | |
6772 for ac_exec_ext in '' $ac_executable_extensions; do | |
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6774 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6776 break 2 | |
6777 fi | |
6778 done | |
6779 done | |
6780 IFS=$as_save_IFS | |
6781 | |
6782 fi | |
6783 fi | |
6784 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6785 if test -n "$ac_ct_RANLIB"; then | |
6786 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6787 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
6788 else | |
6789 { echo "$as_me:$LINENO: result: no" >&5 | |
6790 echo "${ECHO_T}no" >&6; } | |
6791 fi | |
6792 | |
6793 if test "x$ac_ct_RANLIB" = x; then | |
6794 RANLIB=":" | |
6795 else | |
6796 case $cross_compiling:$ac_tool_warned in | |
6797 yes:) | |
6798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6799 whose name does not start with the host triplet. If you think this | |
6800 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6802 whose name does not start with the host triplet. If you think this | |
6803 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6804 ac_tool_warned=yes ;; | |
6805 esac | |
6806 RANLIB=$ac_ct_RANLIB | |
6807 fi | |
6808 else | |
6809 RANLIB="$ac_cv_prog_RANLIB" | |
6810 fi | |
6811 | |
6812 if test -n "$ac_tool_prefix"; then | |
6813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6814 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6817 if test "${ac_cv_prog_STRIP+set}" = set; then | |
6818 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6819 else | |
6820 if test -n "$STRIP"; then | |
6821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6822 else | |
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6824 for as_dir in $PATH | |
6825 do | |
6826 IFS=$as_save_IFS | |
6827 test -z "$as_dir" && as_dir=. | |
6828 for ac_exec_ext in '' $ac_executable_extensions; do | |
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6830 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6832 break 2 | |
6833 fi | |
6834 done | |
6835 done | |
6836 IFS=$as_save_IFS | |
6837 | |
6838 fi | |
6839 fi | |
6840 STRIP=$ac_cv_prog_STRIP | |
6841 if test -n "$STRIP"; then | |
6842 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6843 echo "${ECHO_T}$STRIP" >&6; } | |
6844 else | |
6845 { echo "$as_me:$LINENO: result: no" >&5 | |
6846 echo "${ECHO_T}no" >&6; } | |
6847 fi | |
6848 | |
6849 | |
6850 fi | |
6851 if test -z "$ac_cv_prog_STRIP"; then | |
6852 ac_ct_STRIP=$STRIP | |
6853 # Extract the first word of "strip", so it can be a program name with args. | |
6854 set dummy strip; ac_word=$2 | |
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6858 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6859 else | |
6860 if test -n "$ac_ct_STRIP"; then | |
6861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6862 else | |
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6864 for as_dir in $PATH | |
6865 do | |
6866 IFS=$as_save_IFS | |
6867 test -z "$as_dir" && as_dir=. | |
6868 for ac_exec_ext in '' $ac_executable_extensions; do | |
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6870 ac_cv_prog_ac_ct_STRIP="strip" | |
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6872 break 2 | |
6873 fi | |
6874 done | |
6875 done | |
6876 IFS=$as_save_IFS | |
6877 | |
6878 fi | |
6879 fi | |
6880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6881 if test -n "$ac_ct_STRIP"; then | |
6882 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6883 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
6884 else | |
6885 { echo "$as_me:$LINENO: result: no" >&5 | |
6886 echo "${ECHO_T}no" >&6; } | |
6887 fi | |
6888 | |
6889 if test "x$ac_ct_STRIP" = x; then | |
6890 STRIP=":" | |
6891 else | |
6892 case $cross_compiling:$ac_tool_warned in | |
6893 yes:) | |
6894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6895 whose name does not start with the host triplet. If you think this | |
6896 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6898 whose name does not start with the host triplet. If you think this | |
6899 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6900 ac_tool_warned=yes ;; | |
6901 esac | |
6902 STRIP=$ac_ct_STRIP | |
6903 fi | |
6904 else | |
6905 STRIP="$ac_cv_prog_STRIP" | |
6906 fi | |
6907 | |
6908 | |
6909 old_CC="$CC" | |
6910 old_CFLAGS="$CFLAGS" | |
6911 | |
6912 # Set sane defaults for various variables | |
6913 test -z "$AR" && AR=ar | |
6914 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6915 test -z "$AS" && AS=as | |
6916 test -z "$CC" && CC=cc | |
6917 test -z "$LTCC" && LTCC=$CC | |
6918 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6919 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6920 test -z "$LD" && LD=ld | |
6921 test -z "$LN_S" && LN_S="ln -s" | |
6922 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6923 test -z "$NM" && NM=nm | |
6924 test -z "$SED" && SED=sed | |
6925 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6926 test -z "$RANLIB" && RANLIB=: | |
6927 test -z "$STRIP" && STRIP=: | |
6928 test -z "$ac_objext" && ac_objext=o | |
6929 | |
6930 # Determine commands to create old-style static archives. | |
6931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6932 old_postinstall_cmds='chmod 644 $oldlib' | |
6933 old_postuninstall_cmds= | |
6934 | |
6935 if test -n "$RANLIB"; then | |
6936 case $host_os in | |
6937 openbsd*) | |
6938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6939 ;; | |
6940 *) | |
6941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6942 ;; | |
6943 esac | |
6944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6945 fi | |
6946 | |
6947 for cc_temp in $compiler""; do | |
6948 case $cc_temp in | |
6949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6951 \-*) ;; | |
6952 *) break;; | |
6953 esac | |
6954 done | |
6955 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6956 | |
6957 | |
6958 # Only perform the check for file, if the check method requires it | |
6959 case $deplibs_check_method in | |
6960 file_magic*) | |
6961 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6962 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6963 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
6964 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6965 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6966 else | |
6967 case $MAGIC_CMD in | |
6968 [\\/*] | ?:[\\/]*) | |
6969 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6970 ;; | |
6971 *) | |
6972 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6975 for ac_dir in $ac_dummy; do | |
6976 IFS="$lt_save_ifs" | |
6977 test -z "$ac_dir" && ac_dir=. | |
6978 if test -f $ac_dir/${ac_tool_prefix}file; then | |
6979 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6980 if test -n "$file_magic_test_file"; then | |
6981 case $deplibs_check_method in | |
6982 "file_magic "*) | |
6983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6986 $EGREP "$file_magic_regex" > /dev/null; then | |
6987 : | |
6988 else | |
6989 cat <<EOF 1>&2 | |
6990 | |
6991 *** Warning: the command libtool uses to detect shared libraries, | |
6992 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6993 *** The result is that libtool may fail to recognize shared libraries | |
6994 *** as such. This will affect the creation of libtool libraries that | |
6995 *** depend on shared libraries, but programs linked with such libtool | |
6996 *** libraries will work regardless of this problem. Nevertheless, you | |
6997 *** may want to report the problem to your system manager and/or to | |
6998 *** bug-libtool@gnu.org | |
6999 | |
7000 EOF | |
7001 fi ;; | |
7002 esac | |
7003 fi | |
7004 break | |
7005 fi | |
7006 done | |
7007 IFS="$lt_save_ifs" | |
7008 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7009 ;; | |
7010 esac | |
7011 fi | |
7012 | |
7013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7014 if test -n "$MAGIC_CMD"; then | |
7015 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7016 echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7017 else | |
7018 { echo "$as_me:$LINENO: result: no" >&5 | |
7019 echo "${ECHO_T}no" >&6; } | |
7020 fi | |
7021 | |
7022 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7023 if test -n "$ac_tool_prefix"; then | |
7024 { echo "$as_me:$LINENO: checking for file" >&5 | |
7025 echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
7026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7027 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7028 else | |
7029 case $MAGIC_CMD in | |
7030 [\\/*] | ?:[\\/]*) | |
7031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7032 ;; | |
7033 *) | |
7034 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7037 for ac_dir in $ac_dummy; do | |
7038 IFS="$lt_save_ifs" | |
7039 test -z "$ac_dir" && ac_dir=. | |
7040 if test -f $ac_dir/file; then | |
7041 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7042 if test -n "$file_magic_test_file"; then | |
7043 case $deplibs_check_method in | |
7044 "file_magic "*) | |
7045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7048 $EGREP "$file_magic_regex" > /dev/null; then | |
7049 : | |
7050 else | |
7051 cat <<EOF 1>&2 | |
7052 | |
7053 *** Warning: the command libtool uses to detect shared libraries, | |
7054 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7055 *** The result is that libtool may fail to recognize shared libraries | |
7056 *** as such. This will affect the creation of libtool libraries that | |
7057 *** depend on shared libraries, but programs linked with such libtool | |
7058 *** libraries will work regardless of this problem. Nevertheless, you | |
7059 *** may want to report the problem to your system manager and/or to | |
7060 *** bug-libtool@gnu.org | |
7061 | |
7062 EOF | |
7063 fi ;; | |
7064 esac | |
7065 fi | |
7066 break | |
7067 fi | |
7068 done | |
7069 IFS="$lt_save_ifs" | |
7070 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7071 ;; | |
7072 esac | |
7073 fi | |
7074 | |
7075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7076 if test -n "$MAGIC_CMD"; then | |
7077 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7078 echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7079 else | |
7080 { echo "$as_me:$LINENO: result: no" >&5 | |
7081 echo "${ECHO_T}no" >&6; } | |
7082 fi | |
7083 | |
7084 else | |
7085 MAGIC_CMD=: | |
7086 fi | |
7087 fi | |
7088 | |
7089 fi | |
7090 ;; | |
7091 esac | |
7092 | |
7093 enable_dlopen=no | |
7094 enable_win32_dll=no | |
7095 | |
7096 # Check whether --enable-libtool-lock was given. | |
7097 if test "${enable_libtool_lock+set}" = set; then | |
7098 enableval=$enable_libtool_lock; | |
7099 fi | |
7100 | |
7101 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7102 | |
7103 | |
7104 # Check whether --with-pic was given. | |
7105 if test "${with_pic+set}" = set; then | |
7106 withval=$with_pic; pic_mode="$withval" | |
7107 else | |
7108 pic_mode=default | |
7109 fi | |
7110 | |
7111 test -z "$pic_mode" && pic_mode=default | |
7112 | |
7113 # Use C for the default configuration in the libtool script | |
7114 tagname= | |
7115 lt_save_CC="$CC" | |
7116 ac_ext=c | |
7117 ac_cpp='$CPP $CPPFLAGS' | |
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7121 | |
7122 | |
7123 # Source file extension for C test sources. | |
7124 ac_ext=c | |
7125 | |
7126 # Object file extension for compiled C test sources. | |
7127 objext=o | |
7128 objext=$objext | |
7129 | |
7130 # Code to be used in simple compile tests | |
7131 lt_simple_compile_test_code="int some_variable = 0;\n" | |
7132 | |
7133 # Code to be used in simple link tests | |
7134 lt_simple_link_test_code='int main(){return(0);}\n' | |
7135 | |
7136 | |
7137 # If no C compiler was specified, use CC. | |
7138 LTCC=${LTCC-"$CC"} | |
7139 | |
7140 # If no C compiler flags were specified, use CFLAGS. | |
7141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7142 | |
7143 # Allow CC to be a program name with arguments. | |
7144 compiler=$CC | |
7145 | |
7146 | |
7147 # save warnings/boilerplate of simple test code | |
7148 ac_outfile=conftest.$ac_objext | |
7149 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7151 _lt_compiler_boilerplate=`cat conftest.err` | |
7152 $rm conftest* | |
7153 | |
7154 ac_outfile=conftest.$ac_objext | |
7155 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
7156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7157 _lt_linker_boilerplate=`cat conftest.err` | |
7158 $rm conftest* | |
7159 | |
7160 | |
7161 | |
7162 lt_prog_compiler_no_builtin_flag= | |
7163 | |
7164 if test "$GCC" = yes; then | |
7165 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7166 | |
7167 | |
7168 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7169 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
7170 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7171 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7172 else | |
7173 lt_cv_prog_compiler_rtti_exceptions=no | |
7174 ac_outfile=conftest.$ac_objext | |
7175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7176 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7177 # Insert the option either (1) after the last *FLAGS variable, or | |
7178 # (2) before a word containing "conftest.", or (3) at the end. | |
7179 # Note that $ac_compile itself does not contain backslashes and begins | |
7180 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7181 # The option is referenced via a variable to avoid confusing sed. | |
7182 lt_compile=`echo "$ac_compile" | $SED \ | |
7183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7185 -e 's:$: $lt_compiler_flag:'` | |
7186 (eval echo "\"\$as_me:7186: $lt_compile\"" >&5) | |
7187 (eval "$lt_compile" 2>conftest.err) | |
7188 ac_status=$? | |
7189 cat conftest.err >&5 | |
7190 echo "$as_me:7190: \$? = $ac_status" >&5 | |
7191 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7192 # The compiler can only warn and ignore the option if not recognized | |
7193 # So say no if there are warnings other than the usual output. | |
7194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7197 lt_cv_prog_compiler_rtti_exceptions=yes | |
7198 fi | |
7199 fi | |
7200 $rm conftest* | |
7201 | |
7202 fi | |
7203 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7204 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7205 | |
7206 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7207 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7208 else | |
7209 : | |
7210 fi | |
7211 | |
7212 fi | |
7213 | |
7214 lt_prog_compiler_wl= | |
7215 lt_prog_compiler_pic= | |
7216 lt_prog_compiler_static= | |
7217 | |
7218 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7219 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
7220 | |
7221 if test "$GCC" = yes; then | |
7222 lt_prog_compiler_wl='-Wl,' | |
7223 lt_prog_compiler_static='-static' | |
7224 | |
7225 case $host_os in | |
7226 aix*) | |
7227 # All AIX code is PIC. | |
7228 if test "$host_cpu" = ia64; then | |
7229 # AIX 5 now supports IA64 processor | |
7230 lt_prog_compiler_static='-Bstatic' | |
7231 fi | |
7232 ;; | |
7233 | |
7234 amigaos*) | |
7235 # FIXME: we need at least 68020 code to build shared libraries, but | |
7236 # adding the `-m68020' flag to GCC prevents building anything better, | |
7237 # like `-m68040'. | |
7238 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7239 ;; | |
7240 | |
7241 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7242 # PIC is the default for these OSes. | |
7243 ;; | |
7244 | |
7245 mingw* | pw32* | os2*) | |
7246 # This hack is so that the source file can tell whether it is being | |
7247 # built for inclusion in a dll (and should export symbols for example). | |
7248 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7249 ;; | |
7250 | |
7251 darwin* | rhapsody*) | |
7252 # PIC is the default on this platform | |
7253 # Common symbols not allowed in MH_DYLIB files | |
7254 lt_prog_compiler_pic='-fno-common' | |
7255 ;; | |
7256 | |
7257 interix3*) | |
7258 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7259 # Instead, we relocate shared libraries at runtime. | |
7260 ;; | |
7261 | |
7262 msdosdjgpp*) | |
7263 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7264 # on systems that don't support them. | |
7265 lt_prog_compiler_can_build_shared=no | |
7266 enable_shared=no | |
7267 ;; | |
7268 | |
7269 sysv4*MP*) | |
7270 if test -d /usr/nec; then | |
7271 lt_prog_compiler_pic=-Kconform_pic | |
7272 fi | |
7273 ;; | |
7274 | |
7275 hpux*) | |
7276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7277 # not for PA HP-UX. | |
7278 case $host_cpu in | |
7279 hppa*64*|ia64*) | |
7280 # +Z the default | |
7281 ;; | |
7282 *) | |
7283 lt_prog_compiler_pic='-fPIC' | |
7284 ;; | |
7285 esac | |
7286 ;; | |
7287 | |
7288 *) | |
7289 lt_prog_compiler_pic='-fPIC' | |
7290 ;; | |
7291 esac | |
7292 else | |
7293 # PORTME Check for flag to pass linker flags through the system compiler. | |
7294 case $host_os in | |
7295 aix*) | |
7296 lt_prog_compiler_wl='-Wl,' | |
7297 if test "$host_cpu" = ia64; then | |
7298 # AIX 5 now supports IA64 processor | |
7299 lt_prog_compiler_static='-Bstatic' | |
7300 else | |
7301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7302 fi | |
7303 ;; | |
7304 darwin*) | |
7305 # PIC is the default on this platform | |
7306 # Common symbols not allowed in MH_DYLIB files | |
7307 case $cc_basename in | |
7308 xlc*) | |
7309 lt_prog_compiler_pic='-qnocommon' | |
7310 lt_prog_compiler_wl='-Wl,' | |
7311 ;; | |
7312 esac | |
7313 ;; | |
7314 | |
7315 mingw* | pw32* | os2*) | |
7316 # This hack is so that the source file can tell whether it is being | |
7317 # built for inclusion in a dll (and should export symbols for example). | |
7318 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7319 ;; | |
7320 | |
7321 hpux9* | hpux10* | hpux11*) | |
7322 lt_prog_compiler_wl='-Wl,' | |
7323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7324 # not for PA HP-UX. | |
7325 case $host_cpu in | |
7326 hppa*64*|ia64*) | |
7327 # +Z the default | |
7328 ;; | |
7329 *) | |
7330 lt_prog_compiler_pic='+Z' | |
7331 ;; | |
7332 esac | |
7333 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7334 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7335 ;; | |
7336 | |
7337 irix5* | irix6* | nonstopux*) | |
7338 lt_prog_compiler_wl='-Wl,' | |
7339 # PIC (with -KPIC) is the default. | |
7340 lt_prog_compiler_static='-non_shared' | |
7341 ;; | |
7342 | |
7343 newsos6) | |
7344 lt_prog_compiler_pic='-KPIC' | |
7345 lt_prog_compiler_static='-Bstatic' | |
7346 ;; | |
7347 | |
7348 linux* | k*bsd*-gnu) | |
7349 case $cc_basename in | |
7350 icc* | ecc*) | |
7351 lt_prog_compiler_wl='-Wl,' | |
7352 lt_prog_compiler_pic='-KPIC' | |
7353 lt_prog_compiler_static='-static' | |
7354 ;; | |
7355 pgcc* | pgf77* | pgf90* | pgf95*) | |
7356 # Portland Group compilers (*not* the Pentium gcc compiler, | |
7357 # which looks to be a dead project) | |
7358 lt_prog_compiler_wl='-Wl,' | |
7359 lt_prog_compiler_pic='-fpic' | |
7360 lt_prog_compiler_static='-Bstatic' | |
7361 ;; | |
7362 ccc*) | |
7363 lt_prog_compiler_wl='-Wl,' | |
7364 # All Alpha code is PIC. | |
7365 lt_prog_compiler_static='-non_shared' | |
7366 ;; | |
7367 esac | |
7368 ;; | |
7369 | |
7370 osf3* | osf4* | osf5*) | |
7371 lt_prog_compiler_wl='-Wl,' | |
7372 # All OSF/1 code is PIC. | |
7373 lt_prog_compiler_static='-non_shared' | |
7374 ;; | |
7375 | |
7376 solaris*) | |
7377 lt_prog_compiler_pic='-KPIC' | |
7378 lt_prog_compiler_static='-Bstatic' | |
7379 case $cc_basename in | |
7380 f77* | f90* | f95*) | |
7381 lt_prog_compiler_wl='-Qoption ld ';; | |
7382 *) | |
7383 lt_prog_compiler_wl='-Wl,';; | |
7384 esac | |
7385 ;; | |
7386 | |
7387 sunos4*) | |
7388 lt_prog_compiler_wl='-Qoption ld ' | |
7389 lt_prog_compiler_pic='-PIC' | |
7390 lt_prog_compiler_static='-Bstatic' | |
7391 ;; | |
7392 | |
7393 sysv4 | sysv4.2uw2* | sysv4.3*) | |
7394 lt_prog_compiler_wl='-Wl,' | |
7395 lt_prog_compiler_pic='-KPIC' | |
7396 lt_prog_compiler_static='-Bstatic' | |
7397 ;; | |
7398 | |
7399 sysv4*MP*) | |
7400 if test -d /usr/nec ;then | |
7401 lt_prog_compiler_pic='-Kconform_pic' | |
7402 lt_prog_compiler_static='-Bstatic' | |
7403 fi | |
7404 ;; | |
7405 | |
7406 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7407 lt_prog_compiler_wl='-Wl,' | |
7408 lt_prog_compiler_pic='-KPIC' | |
7409 lt_prog_compiler_static='-Bstatic' | |
7410 ;; | |
7411 | |
7412 unicos*) | |
7413 lt_prog_compiler_wl='-Wl,' | |
7414 lt_prog_compiler_can_build_shared=no | |
7415 ;; | |
7416 | |
7417 uts4*) | |
7418 lt_prog_compiler_pic='-pic' | |
7419 lt_prog_compiler_static='-Bstatic' | |
7420 ;; | |
7421 | |
7422 *) | |
7423 lt_prog_compiler_can_build_shared=no | |
7424 ;; | |
7425 esac | |
7426 fi | |
7427 | |
7428 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7429 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
7430 | |
7431 # | |
7432 # Check to make sure the PIC flag actually works. | |
7433 # | |
7434 if test -n "$lt_prog_compiler_pic"; then | |
7435 | |
7436 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7437 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
7438 if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7439 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7440 else | |
7441 lt_prog_compiler_pic_works=no | |
7442 ac_outfile=conftest.$ac_objext | |
7443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7445 # Insert the option either (1) after the last *FLAGS variable, or | |
7446 # (2) before a word containing "conftest.", or (3) at the end. | |
7447 # Note that $ac_compile itself does not contain backslashes and begins | |
7448 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7449 # The option is referenced via a variable to avoid confusing sed. | |
7450 lt_compile=`echo "$ac_compile" | $SED \ | |
7451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7453 -e 's:$: $lt_compiler_flag:'` | |
7454 (eval echo "\"\$as_me:7454: $lt_compile\"" >&5) | |
7455 (eval "$lt_compile" 2>conftest.err) | |
7456 ac_status=$? | |
7457 cat conftest.err >&5 | |
7458 echo "$as_me:7458: \$? = $ac_status" >&5 | |
7459 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7460 # The compiler can only warn and ignore the option if not recognized | |
7461 # So say no if there are warnings other than the usual output. | |
7462 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7465 lt_prog_compiler_pic_works=yes | |
7466 fi | |
7467 fi | |
7468 $rm conftest* | |
7469 | |
7470 fi | |
7471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7472 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | |
7473 | |
7474 if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7475 case $lt_prog_compiler_pic in | |
7476 "" | " "*) ;; | |
7477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7478 esac | |
7479 else | |
7480 lt_prog_compiler_pic= | |
7481 lt_prog_compiler_can_build_shared=no | |
7482 fi | |
7483 | |
7484 fi | |
7485 case $host_os in | |
7486 # For platforms which do not support PIC, -DPIC is meaningless: | |
7487 *djgpp*) | |
7488 lt_prog_compiler_pic= | |
7489 ;; | |
7490 *) | |
7491 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7492 ;; | |
7493 esac | |
7494 | |
7495 # | |
7496 # Check to make sure the static flag actually works. | |
7497 # | |
7498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7499 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7500 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
7501 if test "${lt_prog_compiler_static_works+set}" = set; then | |
7502 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7503 else | |
7504 lt_prog_compiler_static_works=no | |
7505 save_LDFLAGS="$LDFLAGS" | |
7506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7507 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
7508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7509 # The linker can only warn and ignore the option if not recognized | |
7510 # So say no if there are warnings | |
7511 if test -s conftest.err; then | |
7512 # Append any errors to the config.log. | |
7513 cat conftest.err 1>&5 | |
7514 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7516 if diff conftest.exp conftest.er2 >/dev/null; then | |
7517 lt_prog_compiler_static_works=yes | |
7518 fi | |
7519 else | |
7520 lt_prog_compiler_static_works=yes | |
7521 fi | |
7522 fi | |
7523 $rm conftest* | |
7524 LDFLAGS="$save_LDFLAGS" | |
7525 | |
7526 fi | |
7527 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7528 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | |
7529 | |
7530 if test x"$lt_prog_compiler_static_works" = xyes; then | |
7531 : | |
7532 else | |
7533 lt_prog_compiler_static= | |
7534 fi | |
7535 | |
7536 | |
7537 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7538 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7539 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7540 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7541 else | |
7542 lt_cv_prog_compiler_c_o=no | |
7543 $rm -r conftest 2>/dev/null | |
7544 mkdir conftest | |
7545 cd conftest | |
7546 mkdir out | |
7547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7548 | |
7549 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7550 # Insert the option either (1) after the last *FLAGS variable, or | |
7551 # (2) before a word containing "conftest.", or (3) at the end. | |
7552 # Note that $ac_compile itself does not contain backslashes and begins | |
7553 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7554 lt_compile=`echo "$ac_compile" | $SED \ | |
7555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7557 -e 's:$: $lt_compiler_flag:'` | |
7558 (eval echo "\"\$as_me:7558: $lt_compile\"" >&5) | |
7559 (eval "$lt_compile" 2>out/conftest.err) | |
7560 ac_status=$? | |
7561 cat out/conftest.err >&5 | |
7562 echo "$as_me:7562: \$? = $ac_status" >&5 | |
7563 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7564 then | |
7565 # The compiler can only warn and ignore the option if not recognized | |
7566 # So say no if there are warnings | |
7567 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7570 lt_cv_prog_compiler_c_o=yes | |
7571 fi | |
7572 fi | |
7573 chmod u+w . 2>&5 | |
7574 $rm conftest* | |
7575 # SGI C++ compiler will create directory out/ii_files/ for | |
7576 # template instantiation | |
7577 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
7578 $rm out/* && rmdir out | |
7579 cd .. | |
7580 rmdir conftest | |
7581 $rm conftest* | |
7582 | |
7583 fi | |
7584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7585 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7586 | |
7587 | |
7588 hard_links="nottested" | |
7589 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7590 # do not overwrite the value of need_locks provided by the user | |
7591 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7592 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
7593 hard_links=yes | |
7594 $rm conftest* | |
7595 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7596 touch conftest.a | |
7597 ln conftest.a conftest.b 2>&5 || hard_links=no | |
7598 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7599 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7600 echo "${ECHO_T}$hard_links" >&6; } | |
7601 if test "$hard_links" = no; then | |
7602 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7603 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7604 need_locks=warn | |
7605 fi | |
7606 else | |
7607 need_locks=no | |
7608 fi | |
7609 | |
7610 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7611 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
7612 | |
7613 runpath_var= | |
7614 allow_undefined_flag= | |
7615 enable_shared_with_static_runtimes=no | |
7616 archive_cmds= | |
7617 archive_expsym_cmds= | |
7618 old_archive_From_new_cmds= | |
7619 old_archive_from_expsyms_cmds= | |
7620 export_dynamic_flag_spec= | |
7621 whole_archive_flag_spec= | |
7622 thread_safe_flag_spec= | |
7623 hardcode_libdir_flag_spec= | |
7624 hardcode_libdir_flag_spec_ld= | |
7625 hardcode_libdir_separator= | |
7626 hardcode_direct=no | |
7627 hardcode_minus_L=no | |
7628 hardcode_shlibpath_var=unsupported | |
7629 link_all_deplibs=unknown | |
7630 hardcode_automatic=no | |
7631 module_cmds= | |
7632 module_expsym_cmds= | |
7633 always_export_symbols=no | |
7634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7635 # include_expsyms should be a list of space-separated symbols to be *always* | |
7636 # included in the symbol list | |
7637 include_expsyms= | |
7638 # exclude_expsyms can be an extended regexp of symbols to exclude | |
7639 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7640 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7641 # as well as any symbol that contains `d'. | |
7642 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7643 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7644 # platforms (ab)use it in PIC code, but their linkers get confused if | |
7645 # the symbol is explicitly referenced. Since portable code cannot | |
7646 # rely on this symbol name, it's probably fine to never include it in | |
7647 # preloaded symbol tables. | |
7648 extract_expsyms_cmds= | |
7649 # Just being paranoid about ensuring that cc_basename is set. | |
7650 for cc_temp in $compiler""; do | |
7651 case $cc_temp in | |
7652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7654 \-*) ;; | |
7655 *) break;; | |
7656 esac | |
7657 done | |
7658 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7659 | |
7660 case $host_os in | |
7661 cygwin* | mingw* | pw32*) | |
7662 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7663 # When not using gcc, we currently assume that we are using | |
7664 # Microsoft Visual C++. | |
7665 if test "$GCC" != yes; then | |
7666 with_gnu_ld=no | |
7667 fi | |
7668 ;; | |
7669 interix*) | |
7670 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7671 with_gnu_ld=yes | |
7672 ;; | |
7673 openbsd*) | |
7674 with_gnu_ld=no | |
7675 ;; | |
7676 esac | |
7677 | |
7678 ld_shlibs=yes | |
7679 if test "$with_gnu_ld" = yes; then | |
7680 # If archive_cmds runs LD, not CC, wlarc should be empty | |
7681 wlarc='${wl}' | |
7682 | |
7683 # Set some defaults for GNU ld with shared library support. These | |
7684 # are reset later if shared libraries are not supported. Putting them | |
7685 # here allows them to be overridden if necessary. | |
7686 runpath_var=LD_RUN_PATH | |
7687 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
7688 export_dynamic_flag_spec='${wl}--export-dynamic' | |
7689 # ancient GNU ld didn't support --whole-archive et. al. | |
7690 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
7691 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7692 else | |
7693 whole_archive_flag_spec= | |
7694 fi | |
7695 supports_anon_versioning=no | |
7696 case `$LD -v 2>/dev/null` in | |
7697 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7698 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7699 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7700 *\ 2.11.*) ;; # other 2.11 versions | |
7701 *) supports_anon_versioning=yes ;; | |
7702 esac | |
7703 | |
7704 # See if GNU ld supports shared libraries. | |
7705 case $host_os in | |
7706 aix3* | aix4* | aix5*) | |
7707 # On AIX/PPC, the GNU linker is very broken | |
7708 if test "$host_cpu" != ia64; then | |
7709 ld_shlibs=no | |
7710 cat <<EOF 1>&2 | |
7711 | |
7712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7713 *** to be unable to reliably create shared libraries on AIX. | |
7714 *** Therefore, libtool is disabling shared libraries support. If you | |
7715 *** really care for shared libraries, you may want to modify your PATH | |
7716 *** so that a non-GNU linker is found, and then restart. | |
7717 | |
7718 EOF | |
7719 fi | |
7720 ;; | |
7721 | |
7722 amigaos*) | |
7723 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)' | |
7724 hardcode_libdir_flag_spec='-L$libdir' | |
7725 hardcode_minus_L=yes | |
7726 | |
7727 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7728 # that the semantics of dynamic libraries on AmigaOS, at least up | |
7729 # to version 4, is to share data among multiple programs linked | |
7730 # with the same dynamic library. Since this doesn't match the | |
7731 # behavior of shared libraries on other platforms, we can't use | |
7732 # them. | |
7733 ld_shlibs=no | |
7734 ;; | |
7735 | |
7736 beos*) | |
7737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7738 allow_undefined_flag=unsupported | |
7739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7740 # support --undefined. This deserves some investigation. FIXME | |
7741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7742 else | |
7743 ld_shlibs=no | |
7744 fi | |
7745 ;; | |
7746 | |
7747 cygwin* | mingw* | pw32*) | |
7748 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7749 # as there is no search path for DLLs. | |
7750 hardcode_libdir_flag_spec='-L$libdir' | |
7751 allow_undefined_flag=unsupported | |
7752 always_export_symbols=no | |
7753 enable_shared_with_static_runtimes=yes | |
7754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
7755 | |
7756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7758 # If the export-symbols file already is a .def file (1st line | |
7759 # is EXPORTS), use it as is; otherwise, prepend... | |
7760 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7761 cp $export_symbols $output_objdir/$soname.def; | |
7762 else | |
7763 echo EXPORTS > $output_objdir/$soname.def; | |
7764 cat $export_symbols >> $output_objdir/$soname.def; | |
7765 fi~ | |
7766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7767 else | |
7768 ld_shlibs=no | |
7769 fi | |
7770 ;; | |
7771 | |
7772 interix3*) | |
7773 hardcode_direct=no | |
7774 hardcode_shlibpath_var=no | |
7775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7776 export_dynamic_flag_spec='${wl}-E' | |
7777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7778 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7779 # default) and relocated if they conflict, which is a slow very memory | |
7780 # consuming and fragmenting process. To avoid this, we pick a random, | |
7781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7782 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7784 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' | |
7785 ;; | |
7786 | |
7787 linux* | k*bsd*-gnu) | |
7788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7789 tmp_addflag= | |
7790 case $cc_basename,$host_cpu in | |
7791 pgcc*) # Portland Group C compiler | |
7792 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' | |
7793 tmp_addflag=' $pic_flag' | |
7794 ;; | |
7795 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7796 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' | |
7797 tmp_addflag=' $pic_flag -Mnomain' ;; | |
7798 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7799 tmp_addflag=' -i_dynamic' ;; | |
7800 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7801 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7802 ifc* | ifort*) # Intel Fortran compiler | |
7803 tmp_addflag=' -nofor_main' ;; | |
7804 esac | |
7805 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7806 | |
7807 if test $supports_anon_versioning = yes; then | |
7808 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7810 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7811 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7812 fi | |
7813 link_all_deplibs=no | |
7814 else | |
7815 ld_shlibs=no | |
7816 fi | |
7817 ;; | |
7818 | |
7819 netbsd* | netbsdelf*-gnu) | |
7820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7821 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7822 wlarc= | |
7823 else | |
7824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7826 fi | |
7827 ;; | |
7828 | |
7829 solaris*) | |
7830 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
7831 ld_shlibs=no | |
7832 cat <<EOF 1>&2 | |
7833 | |
7834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7835 *** create shared libraries on Solaris systems. Therefore, libtool | |
7836 *** is disabling shared libraries support. We urge you to upgrade GNU | |
7837 *** binutils to release 2.9.1 or newer. Another option is to modify | |
7838 *** your PATH or compiler configuration so that the native linker is | |
7839 *** used, and then restart. | |
7840 | |
7841 EOF | |
7842 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7845 else | |
7846 ld_shlibs=no | |
7847 fi | |
7848 ;; | |
7849 | |
7850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7851 case `$LD -v 2>&1` in | |
7852 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7853 ld_shlibs=no | |
7854 cat <<_LT_EOF 1>&2 | |
7855 | |
7856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7857 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7858 *** is disabling shared libraries support. We urge you to upgrade GNU | |
7859 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7860 *** your PATH or compiler configuration so that the native linker is | |
7861 *** used, and then restart. | |
7862 | |
7863 _LT_EOF | |
7864 ;; | |
7865 *) | |
7866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7867 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
7868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
7869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
7870 else | |
7871 ld_shlibs=no | |
7872 fi | |
7873 ;; | |
7874 esac | |
7875 ;; | |
7876 | |
7877 sunos4*) | |
7878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7879 wlarc= | |
7880 hardcode_direct=yes | |
7881 hardcode_shlibpath_var=no | |
7882 ;; | |
7883 | |
7884 *) | |
7885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7888 else | |
7889 ld_shlibs=no | |
7890 fi | |
7891 ;; | |
7892 esac | |
7893 | |
7894 if test "$ld_shlibs" = no; then | |
7895 runpath_var= | |
7896 hardcode_libdir_flag_spec= | |
7897 export_dynamic_flag_spec= | |
7898 whole_archive_flag_spec= | |
7899 fi | |
7900 else | |
7901 # PORTME fill in a description of your system's linker (not GNU ld) | |
7902 case $host_os in | |
7903 aix3*) | |
7904 allow_undefined_flag=unsupported | |
7905 always_export_symbols=yes | |
7906 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' | |
7907 # Note: this linker hardcodes the directories in LIBPATH if there | |
7908 # are no directories specified by -L. | |
7909 hardcode_minus_L=yes | |
7910 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7911 # Neither direct hardcoding nor static linking is supported with a | |
7912 # broken collect2. | |
7913 hardcode_direct=unsupported | |
7914 fi | |
7915 ;; | |
7916 | |
7917 aix4* | aix5*) | |
7918 if test "$host_cpu" = ia64; then | |
7919 # On IA64, the linker does run time linking by default, so we don't | |
7920 # have to do anything special. | |
7921 aix_use_runtimelinking=no | |
7922 exp_sym_flag='-Bexport' | |
7923 no_entry_flag="" | |
7924 else | |
7925 # If we're using GNU nm, then we don't want the "-C" option. | |
7926 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
7928 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' | |
7929 else | |
7930 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' | |
7931 fi | |
7932 aix_use_runtimelinking=no | |
7933 | |
7934 # Test if we are trying to use run time linking or normal | |
7935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7936 # need to do runtime linking. | |
7937 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7938 for ld_flag in $LDFLAGS; do | |
7939 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7940 aix_use_runtimelinking=yes | |
7941 break | |
7942 fi | |
7943 done | |
7944 ;; | |
7945 esac | |
7946 | |
7947 exp_sym_flag='-bexport' | |
7948 no_entry_flag='-bnoentry' | |
7949 fi | |
7950 | |
7951 # When large executables or shared objects are built, AIX ld can | |
7952 # have problems creating the table of contents. If linking a library | |
7953 # or program results in "error TOC overflow" add -mminimal-toc to | |
7954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7956 | |
7957 archive_cmds='' | |
7958 hardcode_direct=yes | |
7959 hardcode_libdir_separator=':' | |
7960 link_all_deplibs=yes | |
7961 | |
7962 if test "$GCC" = yes; then | |
7963 case $host_os in aix4.[012]|aix4.[012].*) | |
7964 # We only want to do this on AIX 4.2 and lower, the check | |
7965 # below for broken collect2 doesn't work under 4.3+ | |
7966 collect2name=`${CC} -print-prog-name=collect2` | |
7967 if test -f "$collect2name" && \ | |
7968 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7969 then | |
7970 # We have reworked collect2 | |
7971 hardcode_direct=yes | |
7972 else | |
7973 # We have old collect2 | |
7974 hardcode_direct=unsupported | |
7975 # It fails to find uninstalled libraries when the uninstalled | |
7976 # path is not listed in the libpath. Setting hardcode_minus_L | |
7977 # to unsupported forces relinking | |
7978 hardcode_minus_L=yes | |
7979 hardcode_libdir_flag_spec='-L$libdir' | |
7980 hardcode_libdir_separator= | |
7981 fi | |
7982 ;; | |
7983 esac | |
7984 shared_flag='-shared' | |
7985 if test "$aix_use_runtimelinking" = yes; then | |
7986 shared_flag="$shared_flag "'${wl}-G' | |
7987 fi | |
7988 else | |
7989 # not using gcc | |
7990 if test "$host_cpu" = ia64; then | |
7991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7992 # chokes on -Wl,-G. The following line is correct: | |
7993 shared_flag='-G' | |
7994 else | |
7995 if test "$aix_use_runtimelinking" = yes; then | |
7996 shared_flag='${wl}-G' | |
7997 else | |
7998 shared_flag='${wl}-bM:SRE' | |
7999 fi | |
8000 fi | |
8001 fi | |
8002 | |
8003 # It seems that -bexpall does not export symbols beginning with | |
8004 # underscore (_), so it is better to generate a list of symbols to export. | |
8005 always_export_symbols=yes | |
8006 if test "$aix_use_runtimelinking" = yes; then | |
8007 # Warning - without using the other runtime loading flags (-brtl), | |
8008 # -berok will link without error, but may produce a broken library. | |
8009 allow_undefined_flag='-berok' | |
8010 # Determine the default libpath from the value encoded in an empty executable. | |
8011 cat >conftest.$ac_ext <<_ACEOF | |
8012 /* confdefs.h. */ | |
8013 _ACEOF | |
8014 cat confdefs.h >>conftest.$ac_ext | |
8015 cat >>conftest.$ac_ext <<_ACEOF | |
8016 /* end confdefs.h. */ | |
8017 | |
8018 int | |
8019 main () | |
8020 { | |
8021 | |
8022 ; | |
8023 return 0; | |
8024 } | |
8025 _ACEOF | |
8026 rm -f conftest.$ac_objext conftest$ac_exeext | |
8027 if { (ac_try="$ac_link" | |
8028 case "(($ac_try" in | |
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8030 *) ac_try_echo=$ac_try;; | |
8031 esac | |
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8033 (eval "$ac_link") 2>conftest.er1 | |
8034 ac_status=$? | |
8035 grep -v '^ *+' conftest.er1 >conftest.err | |
8036 rm -f conftest.er1 | |
8037 cat conftest.err >&5 | |
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8039 (exit $ac_status); } && { | |
8040 test -z "$ac_c_werror_flag" || | |
8041 test ! -s conftest.err | |
8042 } && test -s conftest$ac_exeext && | |
8043 $as_test_x conftest$ac_exeext; then | |
8044 | |
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8046 }'` | |
8047 # Check for a 64-bit object if we didn't find anything. | |
8048 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8049 }'`; fi | |
8050 else | |
8051 echo "$as_me: failed program was:" >&5 | |
8052 sed 's/^/| /' conftest.$ac_ext >&5 | |
8053 | |
8054 | |
8055 fi | |
8056 | |
8057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8058 conftest$ac_exeext conftest.$ac_ext | |
8059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8060 | |
8061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8062 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8063 else | |
8064 if test "$host_cpu" = ia64; then | |
8065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8066 allow_undefined_flag="-z nodefs" | |
8067 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" | |
8068 else | |
8069 # Determine the default libpath from the value encoded in an empty executable. | |
8070 cat >conftest.$ac_ext <<_ACEOF | |
8071 /* confdefs.h. */ | |
8072 _ACEOF | |
8073 cat confdefs.h >>conftest.$ac_ext | |
8074 cat >>conftest.$ac_ext <<_ACEOF | |
8075 /* end confdefs.h. */ | |
8076 | |
8077 int | |
8078 main () | |
8079 { | |
8080 | |
8081 ; | |
8082 return 0; | |
8083 } | |
8084 _ACEOF | |
8085 rm -f conftest.$ac_objext conftest$ac_exeext | |
8086 if { (ac_try="$ac_link" | |
8087 case "(($ac_try" in | |
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8089 *) ac_try_echo=$ac_try;; | |
8090 esac | |
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8092 (eval "$ac_link") 2>conftest.er1 | |
8093 ac_status=$? | |
8094 grep -v '^ *+' conftest.er1 >conftest.err | |
8095 rm -f conftest.er1 | |
8096 cat conftest.err >&5 | |
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8098 (exit $ac_status); } && { | |
8099 test -z "$ac_c_werror_flag" || | |
8100 test ! -s conftest.err | |
8101 } && test -s conftest$ac_exeext && | |
8102 $as_test_x conftest$ac_exeext; then | |
8103 | |
8104 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8105 }'` | |
8106 # Check for a 64-bit object if we didn't find anything. | |
8107 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8108 }'`; fi | |
8109 else | |
8110 echo "$as_me: failed program was:" >&5 | |
8111 sed 's/^/| /' conftest.$ac_ext >&5 | |
8112 | |
8113 | |
8114 fi | |
8115 | |
8116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8117 conftest$ac_exeext conftest.$ac_ext | |
8118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8119 | |
8120 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8121 # Warning - without using the other run time loading flags, | |
8122 # -berok will link without error, but may produce a broken library. | |
8123 no_undefined_flag=' ${wl}-bernotok' | |
8124 allow_undefined_flag=' ${wl}-berok' | |
8125 # Exported symbols can be pulled into shared objects from archives | |
8126 whole_archive_flag_spec='$convenience' | |
8127 archive_cmds_need_lc=yes | |
8128 # This is similar to how AIX traditionally builds its shared libraries. | |
8129 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' | |
8130 fi | |
8131 fi | |
8132 ;; | |
8133 | |
8134 amigaos*) | |
8135 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)' | |
8136 hardcode_libdir_flag_spec='-L$libdir' | |
8137 hardcode_minus_L=yes | |
8138 # see comment about different semantics on the GNU ld section | |
8139 ld_shlibs=no | |
8140 ;; | |
8141 | |
8142 bsdi[45]*) | |
8143 export_dynamic_flag_spec=-rdynamic | |
8144 ;; | |
8145 | |
8146 cygwin* | mingw* | pw32*) | |
8147 # When not using gcc, we currently assume that we are using | |
8148 # Microsoft Visual C++. | |
8149 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8150 # no search path for DLLs. | |
8151 hardcode_libdir_flag_spec=' ' | |
8152 allow_undefined_flag=unsupported | |
8153 # Tell ltmain to make .lib files, not .a files. | |
8154 libext=lib | |
8155 # Tell ltmain to make .dll files, not .so files. | |
8156 shrext_cmds=".dll" | |
8157 # FIXME: Setting linknames here is a bad hack. | |
8158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8159 # The linker will automatically build a .lib file if we build a DLL. | |
8160 old_archive_From_new_cmds='true' | |
8161 # FIXME: Should let the user specify the lib program. | |
8162 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
8163 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8164 enable_shared_with_static_runtimes=yes | |
8165 ;; | |
8166 | |
8167 darwin* | rhapsody*) | |
8168 case $host_os in | |
8169 rhapsody* | darwin1.[012]) | |
8170 allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8171 ;; | |
8172 *) # Darwin 1.3 on | |
8173 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
8174 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8175 else | |
8176 case ${MACOSX_DEPLOYMENT_TARGET} in | |
8177 10.[012]) | |
8178 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8179 ;; | |
8180 10.*) | |
8181 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8182 ;; | |
8183 esac | |
8184 fi | |
8185 ;; | |
8186 esac | |
8187 archive_cmds_need_lc=no | |
8188 hardcode_direct=no | |
8189 hardcode_automatic=yes | |
8190 hardcode_shlibpath_var=unsupported | |
8191 whole_archive_flag_spec='' | |
8192 link_all_deplibs=yes | |
8193 if test "$GCC" = yes ; then | |
8194 output_verbose_link_cmd='echo' | |
8195 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8196 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8198 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8199 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8200 else | |
8201 case $cc_basename in | |
8202 xlc*) | |
8203 output_verbose_link_cmd='echo' | |
8204 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
8205 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8207 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8208 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8209 ;; | |
8210 *) | |
8211 ld_shlibs=no | |
8212 ;; | |
8213 esac | |
8214 fi | |
8215 ;; | |
8216 | |
8217 dgux*) | |
8218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8219 hardcode_libdir_flag_spec='-L$libdir' | |
8220 hardcode_shlibpath_var=no | |
8221 ;; | |
8222 | |
8223 freebsd1*) | |
8224 ld_shlibs=no | |
8225 ;; | |
8226 | |
8227 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8228 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8229 # does not break anything, and helps significantly (at the cost of a little | |
8230 # extra space). | |
8231 freebsd2.2*) | |
8232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8233 hardcode_libdir_flag_spec='-R$libdir' | |
8234 hardcode_direct=yes | |
8235 hardcode_shlibpath_var=no | |
8236 ;; | |
8237 | |
8238 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8239 freebsd2*) | |
8240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8241 hardcode_direct=yes | |
8242 hardcode_minus_L=yes | |
8243 hardcode_shlibpath_var=no | |
8244 ;; | |
8245 | |
8246 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8247 freebsd* | dragonfly*) | |
8248 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8249 hardcode_libdir_flag_spec='-R$libdir' | |
8250 hardcode_direct=yes | |
8251 hardcode_shlibpath_var=no | |
8252 ;; | |
8253 | |
8254 hpux9*) | |
8255 if test "$GCC" = yes; then | |
8256 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' | |
8257 else | |
8258 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' | |
8259 fi | |
8260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8261 hardcode_libdir_separator=: | |
8262 hardcode_direct=yes | |
8263 | |
8264 # hardcode_minus_L: Not really in the search PATH, | |
8265 # but as the default location of the library. | |
8266 hardcode_minus_L=yes | |
8267 export_dynamic_flag_spec='${wl}-E' | |
8268 ;; | |
8269 | |
8270 hpux10*) | |
8271 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8272 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8273 else | |
8274 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8275 fi | |
8276 if test "$with_gnu_ld" = no; then | |
8277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8278 hardcode_libdir_separator=: | |
8279 | |
8280 hardcode_direct=yes | |
8281 export_dynamic_flag_spec='${wl}-E' | |
8282 | |
8283 # hardcode_minus_L: Not really in the search PATH, | |
8284 # but as the default location of the library. | |
8285 hardcode_minus_L=yes | |
8286 fi | |
8287 ;; | |
8288 | |
8289 hpux11*) | |
8290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8291 case $host_cpu in | |
8292 hppa*64*) | |
8293 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8294 ;; | |
8295 ia64*) | |
8296 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8297 ;; | |
8298 *) | |
8299 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8300 ;; | |
8301 esac | |
8302 else | |
8303 case $host_cpu in | |
8304 hppa*64*) | |
8305 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8306 ;; | |
8307 ia64*) | |
8308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8309 ;; | |
8310 *) | |
8311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8312 ;; | |
8313 esac | |
8314 fi | |
8315 if test "$with_gnu_ld" = no; then | |
8316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8317 hardcode_libdir_separator=: | |
8318 | |
8319 case $host_cpu in | |
8320 hppa*64*|ia64*) | |
8321 hardcode_libdir_flag_spec_ld='+b $libdir' | |
8322 hardcode_direct=no | |
8323 hardcode_shlibpath_var=no | |
8324 ;; | |
8325 *) | |
8326 hardcode_direct=yes | |
8327 export_dynamic_flag_spec='${wl}-E' | |
8328 | |
8329 # hardcode_minus_L: Not really in the search PATH, | |
8330 # but as the default location of the library. | |
8331 hardcode_minus_L=yes | |
8332 ;; | |
8333 esac | |
8334 fi | |
8335 ;; | |
8336 | |
8337 irix5* | irix6* | nonstopux*) | |
8338 if test "$GCC" = yes; then | |
8339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8340 else | |
8341 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
8342 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8343 fi | |
8344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8345 hardcode_libdir_separator=: | |
8346 link_all_deplibs=yes | |
8347 ;; | |
8348 | |
8349 netbsd* | netbsdelf*-gnu) | |
8350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8352 else | |
8353 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8354 fi | |
8355 hardcode_libdir_flag_spec='-R$libdir' | |
8356 hardcode_direct=yes | |
8357 hardcode_shlibpath_var=no | |
8358 ;; | |
8359 | |
8360 newsos6) | |
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8362 hardcode_direct=yes | |
8363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8364 hardcode_libdir_separator=: | |
8365 hardcode_shlibpath_var=no | |
8366 ;; | |
8367 | |
8368 openbsd*) | |
8369 hardcode_direct=yes | |
8370 hardcode_shlibpath_var=no | |
8371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8373 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8375 export_dynamic_flag_spec='${wl}-E' | |
8376 else | |
8377 case $host_os in | |
8378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8380 hardcode_libdir_flag_spec='-R$libdir' | |
8381 ;; | |
8382 *) | |
8383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8385 ;; | |
8386 esac | |
8387 fi | |
8388 ;; | |
8389 | |
8390 os2*) | |
8391 hardcode_libdir_flag_spec='-L$libdir' | |
8392 hardcode_minus_L=yes | |
8393 allow_undefined_flag=unsupported | |
8394 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' | |
8395 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8396 ;; | |
8397 | |
8398 osf3*) | |
8399 if test "$GCC" = yes; then | |
8400 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8401 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8402 else | |
8403 allow_undefined_flag=' -expect_unresolved \*' | |
8404 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
8405 fi | |
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8407 hardcode_libdir_separator=: | |
8408 ;; | |
8409 | |
8410 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8411 if test "$GCC" = yes; then | |
8412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8413 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8415 else | |
8416 allow_undefined_flag=' -expect_unresolved \*' | |
8417 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
8418 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
8419 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
8420 | |
8421 # Both c and cxx compiler support -rpath directly | |
8422 hardcode_libdir_flag_spec='-rpath $libdir' | |
8423 fi | |
8424 hardcode_libdir_separator=: | |
8425 ;; | |
8426 | |
8427 solaris*) | |
8428 no_undefined_flag=' -z text' | |
8429 if test "$GCC" = yes; then | |
8430 wlarc='${wl}' | |
8431 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8432 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8433 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
8434 else | |
8435 wlarc='' | |
8436 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8437 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
8439 fi | |
8440 hardcode_libdir_flag_spec='-R$libdir' | |
8441 hardcode_shlibpath_var=no | |
8442 case $host_os in | |
8443 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8444 *) | |
8445 # The compiler driver will combine linker options so we | |
8446 # cannot just pass the convience library names through | |
8447 # without $wl, iff we do not link with $LD. | |
8448 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
8449 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8450 case $wlarc in | |
8451 '') | |
8452 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
8453 *) | |
8454 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
8455 esac ;; | |
8456 esac | |
8457 link_all_deplibs=yes | |
8458 ;; | |
8459 | |
8460 sunos4*) | |
8461 if test "x$host_vendor" = xsequent; then | |
8462 # Use $CC to link under sequent, because it throws in some extra .o | |
8463 # files that make .init and .fini sections work. | |
8464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8465 else | |
8466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8467 fi | |
8468 hardcode_libdir_flag_spec='-L$libdir' | |
8469 hardcode_direct=yes | |
8470 hardcode_minus_L=yes | |
8471 hardcode_shlibpath_var=no | |
8472 ;; | |
8473 | |
8474 sysv4) | |
8475 case $host_vendor in | |
8476 sni) | |
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8478 hardcode_direct=yes # is this really true??? | |
8479 ;; | |
8480 siemens) | |
8481 ## LD is ld it makes a PLAMLIB | |
8482 ## CC just makes a GrossModule. | |
8483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8484 reload_cmds='$CC -r -o $output$reload_objs' | |
8485 hardcode_direct=no | |
8486 ;; | |
8487 motorola) | |
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8490 ;; | |
8491 esac | |
8492 runpath_var='LD_RUN_PATH' | |
8493 hardcode_shlibpath_var=no | |
8494 ;; | |
8495 | |
8496 sysv4.3*) | |
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8498 hardcode_shlibpath_var=no | |
8499 export_dynamic_flag_spec='-Bexport' | |
8500 ;; | |
8501 | |
8502 sysv4*MP*) | |
8503 if test -d /usr/nec; then | |
8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8505 hardcode_shlibpath_var=no | |
8506 runpath_var=LD_RUN_PATH | |
8507 hardcode_runpath_var=yes | |
8508 ld_shlibs=yes | |
8509 fi | |
8510 ;; | |
8511 | |
8512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
8513 no_undefined_flag='${wl}-z,text' | |
8514 archive_cmds_need_lc=no | |
8515 hardcode_shlibpath_var=no | |
8516 runpath_var='LD_RUN_PATH' | |
8517 | |
8518 if test "$GCC" = yes; then | |
8519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8521 else | |
8522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8524 fi | |
8525 ;; | |
8526 | |
8527 sysv5* | sco3.2v5* | sco5v6*) | |
8528 # Note: We can NOT use -z defs as we might desire, because we do not | |
8529 # link with -lc, and that would cause any symbols used from libc to | |
8530 # always be unresolved, which means just about no library would | |
8531 # ever link correctly. If we're not using GNU ld we use -z text | |
8532 # though, which does catch some bad symbols but isn't as heavy-handed | |
8533 # as -z defs. | |
8534 no_undefined_flag='${wl}-z,text' | |
8535 allow_undefined_flag='${wl}-z,nodefs' | |
8536 archive_cmds_need_lc=no | |
8537 hardcode_shlibpath_var=no | |
8538 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
8539 hardcode_libdir_separator=':' | |
8540 link_all_deplibs=yes | |
8541 export_dynamic_flag_spec='${wl}-Bexport' | |
8542 runpath_var='LD_RUN_PATH' | |
8543 | |
8544 if test "$GCC" = yes; then | |
8545 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8547 else | |
8548 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8550 fi | |
8551 ;; | |
8552 | |
8553 uts4*) | |
8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8555 hardcode_libdir_flag_spec='-L$libdir' | |
8556 hardcode_shlibpath_var=no | |
8557 ;; | |
8558 | |
8559 *) | |
8560 ld_shlibs=no | |
8561 ;; | |
8562 esac | |
8563 fi | |
8564 | |
8565 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8566 echo "${ECHO_T}$ld_shlibs" >&6; } | |
8567 test "$ld_shlibs" = no && can_build_shared=no | |
8568 | |
8569 # | |
8570 # Do we need to explicitly link libc? | |
8571 # | |
8572 case "x$archive_cmds_need_lc" in | |
8573 x|xyes) | |
8574 # Assume -lc should be added | |
8575 archive_cmds_need_lc=yes | |
8576 | |
8577 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8578 case $archive_cmds in | |
8579 *'~'*) | |
8580 # FIXME: we may have to deal with multi-command sequences. | |
8581 ;; | |
8582 '$CC '*) | |
8583 # Test whether the compiler implicitly links with -lc since on some | |
8584 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8585 # to ld, don't add -lc before -lgcc. | |
8586 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8587 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
8588 $rm conftest* | |
8589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8590 | |
8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8592 (eval $ac_compile) 2>&5 | |
8593 ac_status=$? | |
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8595 (exit $ac_status); } 2>conftest.err; then | |
8596 soname=conftest | |
8597 lib=conftest | |
8598 libobjs=conftest.$ac_objext | |
8599 deplibs= | |
8600 wl=$lt_prog_compiler_wl | |
8601 pic_flag=$lt_prog_compiler_pic | |
8602 compiler_flags=-v | |
8603 linker_flags=-v | |
8604 verstring= | |
8605 output_objdir=. | |
8606 libname=conftest | |
8607 lt_save_allow_undefined_flag=$allow_undefined_flag | |
8608 allow_undefined_flag= | |
8609 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8610 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8611 ac_status=$? | |
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8613 (exit $ac_status); } | |
8614 then | |
8615 archive_cmds_need_lc=no | |
8616 else | |
8617 archive_cmds_need_lc=yes | |
8618 fi | |
8619 allow_undefined_flag=$lt_save_allow_undefined_flag | |
8620 else | |
8621 cat conftest.err 1>&5 | |
8622 fi | |
8623 $rm conftest* | |
8624 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8625 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
8626 ;; | |
8627 esac | |
8628 fi | |
8629 ;; | |
8630 esac | |
8631 | |
8632 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8633 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
8634 library_names_spec= | |
8635 libname_spec='lib$name' | |
8636 soname_spec= | |
8637 shrext_cmds=".so" | |
8638 postinstall_cmds= | |
8639 postuninstall_cmds= | |
8640 finish_cmds= | |
8641 finish_eval= | |
8642 shlibpath_var= | |
8643 shlibpath_overrides_runpath=unknown | |
8644 version_type=none | |
8645 dynamic_linker="$host_os ld.so" | |
8646 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8647 if test "$GCC" = yes; then | |
8648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8649 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8650 # if the path contains ";" then we assume it to be the separator | |
8651 # otherwise default to the standard path separator (i.e. ":") - it is | |
8652 # assumed that no part of a normal pathname contains ";" but that should | |
8653 # okay in the real world where ";" in dirpaths is itself problematic. | |
8654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8655 else | |
8656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8657 fi | |
8658 else | |
8659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8660 fi | |
8661 need_lib_prefix=unknown | |
8662 hardcode_into_libs=no | |
8663 | |
8664 # when you set need_version to no, make sure it does not cause -set_version | |
8665 # flags to be left without arguments | |
8666 need_version=unknown | |
8667 | |
8668 case $host_os in | |
8669 aix3*) | |
8670 version_type=linux | |
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8672 shlibpath_var=LIBPATH | |
8673 | |
8674 # AIX 3 has no versioning support, so we append a major version to the name. | |
8675 soname_spec='${libname}${release}${shared_ext}$major' | |
8676 ;; | |
8677 | |
8678 aix4* | aix5*) | |
8679 version_type=linux | |
8680 need_lib_prefix=no | |
8681 need_version=no | |
8682 hardcode_into_libs=yes | |
8683 if test "$host_cpu" = ia64; then | |
8684 # AIX 5 supports IA64 | |
8685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8686 shlibpath_var=LD_LIBRARY_PATH | |
8687 else | |
8688 # With GCC up to 2.95.x, collect2 would create an import file | |
8689 # for dependence libraries. The import file would start with | |
8690 # the line `#! .'. This would cause the generated library to | |
8691 # depend on `.', always an invalid library. This was fixed in | |
8692 # development snapshots of GCC prior to 3.0. | |
8693 case $host_os in | |
8694 aix4 | aix4.[01] | aix4.[01].*) | |
8695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8696 echo ' yes ' | |
8697 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8698 : | |
8699 else | |
8700 can_build_shared=no | |
8701 fi | |
8702 ;; | |
8703 esac | |
8704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8705 # soname into executable. Probably we can add versioning support to | |
8706 # collect2, so additional links can be useful in future. | |
8707 if test "$aix_use_runtimelinking" = yes; then | |
8708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8709 # instead of lib<name>.a to let people know that these are not | |
8710 # typical AIX shared libraries. | |
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8712 else | |
8713 # We preserve .a as extension for shared libraries through AIX4.2 | |
8714 # and later when we are not doing run time linking. | |
8715 library_names_spec='${libname}${release}.a $libname.a' | |
8716 soname_spec='${libname}${release}${shared_ext}$major' | |
8717 fi | |
8718 shlibpath_var=LIBPATH | |
8719 fi | |
8720 ;; | |
8721 | |
8722 amigaos*) | |
8723 library_names_spec='$libname.ixlibrary $libname.a' | |
8724 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8725 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' | |
8726 ;; | |
8727 | |
8728 beos*) | |
8729 library_names_spec='${libname}${shared_ext}' | |
8730 dynamic_linker="$host_os ld.so" | |
8731 shlibpath_var=LIBRARY_PATH | |
8732 ;; | |
8733 | |
8734 bsdi[45]*) | |
8735 version_type=linux | |
8736 need_version=no | |
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8738 soname_spec='${libname}${release}${shared_ext}$major' | |
8739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8740 shlibpath_var=LD_LIBRARY_PATH | |
8741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8743 # the default ld.so.conf also contains /usr/contrib/lib and | |
8744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8745 # libtool to hard-code these into programs | |
8746 ;; | |
8747 | |
8748 cygwin* | mingw* | pw32*) | |
8749 version_type=windows | |
8750 shrext_cmds=".dll" | |
8751 need_version=no | |
8752 need_lib_prefix=no | |
8753 | |
8754 case $GCC,$host_os in | |
8755 yes,cygwin* | yes,mingw* | yes,pw32*) | |
8756 library_names_spec='$libname.dll.a' | |
8757 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8758 postinstall_cmds='base_file=`basename \${file}`~ | |
8759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
8760 dldir=$destdir/`dirname \$dlpath`~ | |
8761 test -d \$dldir || mkdir -p \$dldir~ | |
8762 $install_prog $dir/$dlname \$dldir/$dlname~ | |
8763 chmod a+x \$dldir/$dlname' | |
8764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8765 dlpath=$dir/\$dldll~ | |
8766 $rm \$dlpath' | |
8767 shlibpath_overrides_runpath=yes | |
8768 | |
8769 case $host_os in | |
8770 cygwin*) | |
8771 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8774 ;; | |
8775 mingw*) | |
8776 # MinGW DLLs use traditional 'lib' prefix | |
8777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
8780 # It is most probably a Windows format PATH printed by | |
8781 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8782 # path with ; separators, and with drive letters. We can handle the | |
8783 # drive letters (cygwin fileutils understands them), so leave them, | |
8784 # especially as we might pass files found there to a mingw objdump, | |
8785 # which wouldn't understand a cygwinified path. Ahh. | |
8786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8787 else | |
8788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8789 fi | |
8790 ;; | |
8791 pw32*) | |
8792 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8794 ;; | |
8795 esac | |
8796 ;; | |
8797 | |
8798 *) | |
8799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8800 ;; | |
8801 esac | |
8802 dynamic_linker='Win32 ld.exe' | |
8803 # FIXME: first we should search . and the directory the executable is in | |
8804 shlibpath_var=PATH | |
8805 ;; | |
8806 | |
8807 darwin* | rhapsody*) | |
8808 dynamic_linker="$host_os dyld" | |
8809 version_type=darwin | |
8810 need_lib_prefix=no | |
8811 need_version=no | |
8812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8813 soname_spec='${libname}${release}${major}$shared_ext' | |
8814 shlibpath_overrides_runpath=yes | |
8815 shlibpath_var=DYLD_LIBRARY_PATH | |
8816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8817 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
8818 if test "$GCC" = yes; then | |
8819 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
8820 else | |
8821 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8822 fi | |
8823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8824 ;; | |
8825 | |
8826 dgux*) | |
8827 version_type=linux | |
8828 need_lib_prefix=no | |
8829 need_version=no | |
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8831 soname_spec='${libname}${release}${shared_ext}$major' | |
8832 shlibpath_var=LD_LIBRARY_PATH | |
8833 ;; | |
8834 | |
8835 freebsd1*) | |
8836 dynamic_linker=no | |
8837 ;; | |
8838 | |
8839 freebsd* | dragonfly*) | |
8840 # DragonFly does not have aout. When/if they implement a new | |
8841 # versioning mechanism, adjust this. | |
8842 if test -x /usr/bin/objformat; then | |
8843 objformat=`/usr/bin/objformat` | |
8844 else | |
8845 case $host_os in | |
8846 freebsd[123]*) objformat=aout ;; | |
8847 *) objformat=elf ;; | |
8848 esac | |
8849 fi | |
8850 version_type=freebsd-$objformat | |
8851 case $version_type in | |
8852 freebsd-elf*) | |
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8854 need_version=no | |
8855 need_lib_prefix=no | |
8856 ;; | |
8857 freebsd-*) | |
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8859 need_version=yes | |
8860 ;; | |
8861 esac | |
8862 shlibpath_var=LD_LIBRARY_PATH | |
8863 case $host_os in | |
8864 freebsd2*) | |
8865 shlibpath_overrides_runpath=yes | |
8866 ;; | |
8867 freebsd3.[01]* | freebsdelf3.[01]*) | |
8868 shlibpath_overrides_runpath=yes | |
8869 hardcode_into_libs=yes | |
8870 ;; | |
8871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8873 shlibpath_overrides_runpath=no | |
8874 hardcode_into_libs=yes | |
8875 ;; | |
8876 freebsd*) # from 4.6 on | |
8877 shlibpath_overrides_runpath=yes | |
8878 hardcode_into_libs=yes | |
8879 ;; | |
8880 esac | |
8881 ;; | |
8882 | |
8883 gnu*) | |
8884 version_type=linux | |
8885 need_lib_prefix=no | |
8886 need_version=no | |
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8888 soname_spec='${libname}${release}${shared_ext}$major' | |
8889 shlibpath_var=LD_LIBRARY_PATH | |
8890 hardcode_into_libs=yes | |
8891 ;; | |
8892 | |
8893 hpux9* | hpux10* | hpux11*) | |
8894 # Give a soname corresponding to the major version so that dld.sl refuses to | |
8895 # link against other versions. | |
8896 version_type=sunos | |
8897 need_lib_prefix=no | |
8898 need_version=no | |
8899 case $host_cpu in | |
8900 ia64*) | |
8901 shrext_cmds='.so' | |
8902 hardcode_into_libs=yes | |
8903 dynamic_linker="$host_os dld.so" | |
8904 shlibpath_var=LD_LIBRARY_PATH | |
8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8907 soname_spec='${libname}${release}${shared_ext}$major' | |
8908 if test "X$HPUX_IA64_MODE" = X32; then | |
8909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8910 else | |
8911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8912 fi | |
8913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8914 ;; | |
8915 hppa*64*) | |
8916 shrext_cmds='.sl' | |
8917 hardcode_into_libs=yes | |
8918 dynamic_linker="$host_os dld.sl" | |
8919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8922 soname_spec='${libname}${release}${shared_ext}$major' | |
8923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8925 ;; | |
8926 *) | |
8927 shrext_cmds='.sl' | |
8928 dynamic_linker="$host_os dld.sl" | |
8929 shlibpath_var=SHLIB_PATH | |
8930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8932 soname_spec='${libname}${release}${shared_ext}$major' | |
8933 ;; | |
8934 esac | |
8935 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8936 postinstall_cmds='chmod 555 $lib' | |
8937 ;; | |
8938 | |
8939 interix3*) | |
8940 version_type=linux | |
8941 need_lib_prefix=no | |
8942 need_version=no | |
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8944 soname_spec='${libname}${release}${shared_ext}$major' | |
8945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8946 shlibpath_var=LD_LIBRARY_PATH | |
8947 shlibpath_overrides_runpath=no | |
8948 hardcode_into_libs=yes | |
8949 ;; | |
8950 | |
8951 irix5* | irix6* | nonstopux*) | |
8952 case $host_os in | |
8953 nonstopux*) version_type=nonstopux ;; | |
8954 *) | |
8955 if test "$lt_cv_prog_gnu_ld" = yes; then | |
8956 version_type=linux | |
8957 else | |
8958 version_type=irix | |
8959 fi ;; | |
8960 esac | |
8961 need_lib_prefix=no | |
8962 need_version=no | |
8963 soname_spec='${libname}${release}${shared_ext}$major' | |
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8965 case $host_os in | |
8966 irix5* | nonstopux*) | |
8967 libsuff= shlibsuff= | |
8968 ;; | |
8969 *) | |
8970 case $LD in # libtool.m4 will add one of these switches to LD | |
8971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8972 libsuff= shlibsuff= libmagic=32-bit;; | |
8973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8974 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8976 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8977 *) libsuff= shlibsuff= libmagic=never-match;; | |
8978 esac | |
8979 ;; | |
8980 esac | |
8981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8982 shlibpath_overrides_runpath=no | |
8983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8985 hardcode_into_libs=yes | |
8986 ;; | |
8987 | |
8988 # No shared lib support for Linux oldld, aout, or coff. | |
8989 linux*oldld* | linux*aout* | linux*coff*) | |
8990 dynamic_linker=no | |
8991 ;; | |
8992 | |
8993 # This must be Linux ELF. | |
8994 linux* | k*bsd*-gnu) | |
8995 version_type=linux | |
8996 need_lib_prefix=no | |
8997 need_version=no | |
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8999 soname_spec='${libname}${release}${shared_ext}$major' | |
9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9001 shlibpath_var=LD_LIBRARY_PATH | |
9002 shlibpath_overrides_runpath=no | |
9003 # This implies no fast_install, which is unacceptable. | |
9004 # Some rework will be needed to allow for fast_install | |
9005 # before this can be enabled. | |
9006 hardcode_into_libs=yes | |
9007 | |
9008 # Append ld.so.conf contents to the search path | |
9009 if test -f /etc/ld.so.conf; then | |
9010 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9012 fi | |
9013 | |
9014 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9015 # powerpc, because MkLinux only supported shared libraries with the | |
9016 # GNU dynamic linker. Since this was broken with cross compilers, | |
9017 # most powerpc-linux boxes support dynamic linking these days and | |
9018 # people can always --disable-shared, the test was removed, and we | |
9019 # assume the GNU/Linux dynamic linker is in use. | |
9020 dynamic_linker='GNU/Linux ld.so' | |
9021 ;; | |
9022 | |
9023 netbsdelf*-gnu) | |
9024 version_type=linux | |
9025 need_lib_prefix=no | |
9026 need_version=no | |
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9028 soname_spec='${libname}${release}${shared_ext}$major' | |
9029 shlibpath_var=LD_LIBRARY_PATH | |
9030 shlibpath_overrides_runpath=no | |
9031 hardcode_into_libs=yes | |
9032 dynamic_linker='NetBSD ld.elf_so' | |
9033 ;; | |
9034 | |
9035 netbsd*) | |
9036 version_type=sunos | |
9037 need_lib_prefix=no | |
9038 need_version=no | |
9039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9042 dynamic_linker='NetBSD (a.out) ld.so' | |
9043 else | |
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9045 soname_spec='${libname}${release}${shared_ext}$major' | |
9046 dynamic_linker='NetBSD ld.elf_so' | |
9047 fi | |
9048 shlibpath_var=LD_LIBRARY_PATH | |
9049 shlibpath_overrides_runpath=yes | |
9050 hardcode_into_libs=yes | |
9051 ;; | |
9052 | |
9053 newsos6) | |
9054 version_type=linux | |
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9056 shlibpath_var=LD_LIBRARY_PATH | |
9057 shlibpath_overrides_runpath=yes | |
9058 ;; | |
9059 | |
9060 nto-qnx*) | |
9061 version_type=linux | |
9062 need_lib_prefix=no | |
9063 need_version=no | |
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9065 soname_spec='${libname}${release}${shared_ext}$major' | |
9066 shlibpath_var=LD_LIBRARY_PATH | |
9067 shlibpath_overrides_runpath=yes | |
9068 ;; | |
9069 | |
9070 openbsd*) | |
9071 version_type=sunos | |
9072 sys_lib_dlsearch_path_spec="/usr/lib" | |
9073 need_lib_prefix=no | |
9074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9075 case $host_os in | |
9076 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9077 *) need_version=no ;; | |
9078 esac | |
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9081 shlibpath_var=LD_LIBRARY_PATH | |
9082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9083 case $host_os in | |
9084 openbsd2.[89] | openbsd2.[89].*) | |
9085 shlibpath_overrides_runpath=no | |
9086 ;; | |
9087 *) | |
9088 shlibpath_overrides_runpath=yes | |
9089 ;; | |
9090 esac | |
9091 else | |
9092 shlibpath_overrides_runpath=yes | |
9093 fi | |
9094 ;; | |
9095 | |
9096 os2*) | |
9097 libname_spec='$name' | |
9098 shrext_cmds=".dll" | |
9099 need_lib_prefix=no | |
9100 library_names_spec='$libname${shared_ext} $libname.a' | |
9101 dynamic_linker='OS/2 ld.exe' | |
9102 shlibpath_var=LIBPATH | |
9103 ;; | |
9104 | |
9105 osf3* | osf4* | osf5*) | |
9106 version_type=osf | |
9107 need_lib_prefix=no | |
9108 need_version=no | |
9109 soname_spec='${libname}${release}${shared_ext}$major' | |
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9111 shlibpath_var=LD_LIBRARY_PATH | |
9112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9114 ;; | |
9115 | |
9116 solaris*) | |
9117 version_type=linux | |
9118 need_lib_prefix=no | |
9119 need_version=no | |
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9121 soname_spec='${libname}${release}${shared_ext}$major' | |
9122 shlibpath_var=LD_LIBRARY_PATH | |
9123 shlibpath_overrides_runpath=yes | |
9124 hardcode_into_libs=yes | |
9125 # ldd complains unless libraries are executable | |
9126 postinstall_cmds='chmod +x $lib' | |
9127 ;; | |
9128 | |
9129 sunos4*) | |
9130 version_type=sunos | |
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9133 shlibpath_var=LD_LIBRARY_PATH | |
9134 shlibpath_overrides_runpath=yes | |
9135 if test "$with_gnu_ld" = yes; then | |
9136 need_lib_prefix=no | |
9137 fi | |
9138 need_version=yes | |
9139 ;; | |
9140 | |
9141 sysv4 | sysv4.3*) | |
9142 version_type=linux | |
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9144 soname_spec='${libname}${release}${shared_ext}$major' | |
9145 shlibpath_var=LD_LIBRARY_PATH | |
9146 case $host_vendor in | |
9147 sni) | |
9148 shlibpath_overrides_runpath=no | |
9149 need_lib_prefix=no | |
9150 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9151 runpath_var=LD_RUN_PATH | |
9152 ;; | |
9153 siemens) | |
9154 need_lib_prefix=no | |
9155 ;; | |
9156 motorola) | |
9157 need_lib_prefix=no | |
9158 need_version=no | |
9159 shlibpath_overrides_runpath=no | |
9160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9161 ;; | |
9162 esac | |
9163 ;; | |
9164 | |
9165 sysv4*MP*) | |
9166 if test -d /usr/nec ;then | |
9167 version_type=linux | |
9168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9169 soname_spec='$libname${shared_ext}.$major' | |
9170 shlibpath_var=LD_LIBRARY_PATH | |
9171 fi | |
9172 ;; | |
9173 | |
9174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9175 version_type=freebsd-elf | |
9176 need_lib_prefix=no | |
9177 need_version=no | |
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9179 soname_spec='${libname}${release}${shared_ext}$major' | |
9180 shlibpath_var=LD_LIBRARY_PATH | |
9181 hardcode_into_libs=yes | |
9182 if test "$with_gnu_ld" = yes; then | |
9183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9184 shlibpath_overrides_runpath=no | |
9185 else | |
9186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9187 shlibpath_overrides_runpath=yes | |
9188 case $host_os in | |
9189 sco3.2v5*) | |
9190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9191 ;; | |
9192 esac | |
9193 fi | |
9194 sys_lib_dlsearch_path_spec='/usr/lib' | |
9195 ;; | |
9196 | |
9197 uts4*) | |
9198 version_type=linux | |
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9200 soname_spec='${libname}${release}${shared_ext}$major' | |
9201 shlibpath_var=LD_LIBRARY_PATH | |
9202 ;; | |
9203 | |
9204 *) | |
9205 dynamic_linker=no | |
9206 ;; | |
9207 esac | |
9208 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9209 echo "${ECHO_T}$dynamic_linker" >&6; } | |
9210 test "$dynamic_linker" = no && can_build_shared=no | |
9211 | |
9212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9213 if test "$GCC" = yes; then | |
9214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9215 fi | |
9216 | |
9217 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9218 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
9219 hardcode_action= | |
9220 if test -n "$hardcode_libdir_flag_spec" || \ | |
9221 test -n "$runpath_var" || \ | |
9222 test "X$hardcode_automatic" = "Xyes" ; then | |
9223 | |
9224 # We can hardcode non-existant directories. | |
9225 if test "$hardcode_direct" != no && | |
9226 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9227 # have to relink, otherwise we might link with an installed library | |
9228 # when we should be linking with a yet-to-be-installed one | |
9229 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9230 test "$hardcode_minus_L" != no; then | |
9231 # Linking always hardcodes the temporary library directory. | |
9232 hardcode_action=relink | |
9233 else | |
9234 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9235 hardcode_action=immediate | |
9236 fi | |
9237 else | |
9238 # We cannot hardcode anything, or else we can only hardcode existing | |
9239 # directories. | |
9240 hardcode_action=unsupported | |
9241 fi | |
9242 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9243 echo "${ECHO_T}$hardcode_action" >&6; } | |
9244 | |
9245 if test "$hardcode_action" = relink; then | |
9246 # Fast installation is not supported | |
9247 enable_fast_install=no | |
9248 elif test "$shlibpath_overrides_runpath" = yes || | |
9249 test "$enable_shared" = no; then | |
9250 # Fast installation is not necessary | |
9251 enable_fast_install=needless | |
9252 fi | |
9253 | |
9254 striplib= | |
9255 old_striplib= | |
9256 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
9257 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
9259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9260 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9261 { echo "$as_me:$LINENO: result: yes" >&5 | |
9262 echo "${ECHO_T}yes" >&6; } | |
9263 else | |
9264 # FIXME - insert some real tests, host_os isn't really good enough | |
9265 case $host_os in | |
9266 darwin*) | |
9267 if test -n "$STRIP" ; then | |
9268 striplib="$STRIP -x" | |
9269 { echo "$as_me:$LINENO: result: yes" >&5 | |
9270 echo "${ECHO_T}yes" >&6; } | |
9271 else | |
9272 { echo "$as_me:$LINENO: result: no" >&5 | |
9273 echo "${ECHO_T}no" >&6; } | |
9274 fi | |
9275 ;; | |
9276 *) | |
9277 { echo "$as_me:$LINENO: result: no" >&5 | |
9278 echo "${ECHO_T}no" >&6; } | |
9279 ;; | |
9280 esac | |
9281 fi | |
9282 | |
9283 if test "x$enable_dlopen" != xyes; then | |
9284 enable_dlopen=unknown | |
9285 enable_dlopen_self=unknown | |
9286 enable_dlopen_self_static=unknown | |
9287 else | |
9288 lt_cv_dlopen=no | |
9289 lt_cv_dlopen_libs= | |
9290 | |
9291 case $host_os in | |
9292 beos*) | |
9293 lt_cv_dlopen="load_add_on" | |
9294 lt_cv_dlopen_libs= | |
9295 lt_cv_dlopen_self=yes | |
9296 ;; | |
9297 | |
9298 mingw* | pw32*) | |
9299 lt_cv_dlopen="LoadLibrary" | |
9300 lt_cv_dlopen_libs= | |
9301 ;; | |
9302 | |
9303 cygwin*) | |
9304 lt_cv_dlopen="dlopen" | |
9305 lt_cv_dlopen_libs= | |
9306 ;; | |
9307 | |
9308 darwin*) | |
9309 # if libdl is installed we need to link against it | |
9310 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9313 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9314 else | |
9315 ac_check_lib_save_LIBS=$LIBS | |
9316 LIBS="-ldl $LIBS" | |
9317 cat >conftest.$ac_ext <<_ACEOF | |
9318 /* confdefs.h. */ | |
9319 _ACEOF | |
9320 cat confdefs.h >>conftest.$ac_ext | |
9321 cat >>conftest.$ac_ext <<_ACEOF | |
9322 /* end confdefs.h. */ | |
9323 | |
9324 /* Override any GCC internal prototype to avoid an error. | |
9325 Use char because int might match the return type of a GCC | |
9326 builtin and then its argument prototype would still apply. */ | |
9327 #ifdef __cplusplus | |
9328 extern "C" | |
9329 #endif | |
9330 char dlopen (); | |
9331 int | |
9332 main () | |
9333 { | |
9334 return dlopen (); | |
9335 ; | |
9336 return 0; | |
9337 } | |
9338 _ACEOF | |
9339 rm -f conftest.$ac_objext conftest$ac_exeext | |
9340 if { (ac_try="$ac_link" | |
9341 case "(($ac_try" in | |
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9343 *) ac_try_echo=$ac_try;; | |
9344 esac | |
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9346 (eval "$ac_link") 2>conftest.er1 | |
9347 ac_status=$? | |
9348 grep -v '^ *+' conftest.er1 >conftest.err | |
9349 rm -f conftest.er1 | |
9350 cat conftest.err >&5 | |
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9352 (exit $ac_status); } && { | |
9353 test -z "$ac_c_werror_flag" || | |
9354 test ! -s conftest.err | |
9355 } && test -s conftest$ac_exeext && | |
9356 $as_test_x conftest$ac_exeext; then | |
9357 ac_cv_lib_dl_dlopen=yes | |
9358 else | |
9359 echo "$as_me: failed program was:" >&5 | |
9360 sed 's/^/| /' conftest.$ac_ext >&5 | |
9361 | |
9362 ac_cv_lib_dl_dlopen=no | |
9363 fi | |
9364 | |
9365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9366 conftest$ac_exeext conftest.$ac_ext | |
9367 LIBS=$ac_check_lib_save_LIBS | |
9368 fi | |
9369 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9371 if test $ac_cv_lib_dl_dlopen = yes; then | |
9372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9373 else | |
9374 | |
9375 lt_cv_dlopen="dyld" | |
9376 lt_cv_dlopen_libs= | |
9377 lt_cv_dlopen_self=yes | |
9378 | |
9379 fi | |
9380 | |
9381 ;; | |
9382 | |
9383 *) | |
9384 { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9385 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
9386 if test "${ac_cv_func_shl_load+set}" = set; then | |
9387 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9388 else | |
9389 cat >conftest.$ac_ext <<_ACEOF | |
9390 /* confdefs.h. */ | |
9391 _ACEOF | |
9392 cat confdefs.h >>conftest.$ac_ext | |
9393 cat >>conftest.$ac_ext <<_ACEOF | |
9394 /* end confdefs.h. */ | |
9395 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9397 #define shl_load innocuous_shl_load | |
9398 | |
9399 /* System header to define __stub macros and hopefully few prototypes, | |
9400 which can conflict with char shl_load (); below. | |
9401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9402 <limits.h> exists even on freestanding compilers. */ | |
9403 | |
9404 #ifdef __STDC__ | |
9405 # include <limits.h> | |
9406 #else | |
9407 # include <assert.h> | |
9408 #endif | |
9409 | |
9410 #undef shl_load | |
9411 | |
9412 /* Override any GCC internal prototype to avoid an error. | |
9413 Use char because int might match the return type of a GCC | |
9414 builtin and then its argument prototype would still apply. */ | |
9415 #ifdef __cplusplus | |
9416 extern "C" | |
9417 #endif | |
9418 char shl_load (); | |
9419 /* The GNU C library defines this for functions which it implements | |
9420 to always fail with ENOSYS. Some functions are actually named | |
9421 something starting with __ and the normal name is an alias. */ | |
9422 #if defined __stub_shl_load || defined __stub___shl_load | |
9423 choke me | |
9424 #endif | |
9425 | |
9426 int | |
9427 main () | |
9428 { | |
9429 return shl_load (); | |
9430 ; | |
9431 return 0; | |
9432 } | |
9433 _ACEOF | |
9434 rm -f conftest.$ac_objext conftest$ac_exeext | |
9435 if { (ac_try="$ac_link" | |
9436 case "(($ac_try" in | |
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9438 *) ac_try_echo=$ac_try;; | |
9439 esac | |
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9441 (eval "$ac_link") 2>conftest.er1 | |
9442 ac_status=$? | |
9443 grep -v '^ *+' conftest.er1 >conftest.err | |
9444 rm -f conftest.er1 | |
9445 cat conftest.err >&5 | |
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9447 (exit $ac_status); } && { | |
9448 test -z "$ac_c_werror_flag" || | |
9449 test ! -s conftest.err | |
9450 } && test -s conftest$ac_exeext && | |
9451 $as_test_x conftest$ac_exeext; then | |
9452 ac_cv_func_shl_load=yes | |
9453 else | |
9454 echo "$as_me: failed program was:" >&5 | |
9455 sed 's/^/| /' conftest.$ac_ext >&5 | |
9456 | |
9457 ac_cv_func_shl_load=no | |
9458 fi | |
9459 | |
9460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9461 conftest$ac_exeext conftest.$ac_ext | |
9462 fi | |
9463 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9464 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
9465 if test $ac_cv_func_shl_load = yes; then | |
9466 lt_cv_dlopen="shl_load" | |
9467 else | |
9468 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9469 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
9470 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9471 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9472 else | |
9473 ac_check_lib_save_LIBS=$LIBS | |
9474 LIBS="-ldld $LIBS" | |
9475 cat >conftest.$ac_ext <<_ACEOF | |
9476 /* confdefs.h. */ | |
9477 _ACEOF | |
9478 cat confdefs.h >>conftest.$ac_ext | |
9479 cat >>conftest.$ac_ext <<_ACEOF | |
9480 /* end confdefs.h. */ | |
9481 | |
9482 /* Override any GCC internal prototype to avoid an error. | |
9483 Use char because int might match the return type of a GCC | |
9484 builtin and then its argument prototype would still apply. */ | |
9485 #ifdef __cplusplus | |
9486 extern "C" | |
9487 #endif | |
9488 char shl_load (); | |
9489 int | |
9490 main () | |
9491 { | |
9492 return shl_load (); | |
9493 ; | |
9494 return 0; | |
9495 } | |
9496 _ACEOF | |
9497 rm -f conftest.$ac_objext conftest$ac_exeext | |
9498 if { (ac_try="$ac_link" | |
9499 case "(($ac_try" in | |
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9501 *) ac_try_echo=$ac_try;; | |
9502 esac | |
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9504 (eval "$ac_link") 2>conftest.er1 | |
9505 ac_status=$? | |
9506 grep -v '^ *+' conftest.er1 >conftest.err | |
9507 rm -f conftest.er1 | |
9508 cat conftest.err >&5 | |
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9510 (exit $ac_status); } && { | |
9511 test -z "$ac_c_werror_flag" || | |
9512 test ! -s conftest.err | |
9513 } && test -s conftest$ac_exeext && | |
9514 $as_test_x conftest$ac_exeext; then | |
9515 ac_cv_lib_dld_shl_load=yes | |
9516 else | |
9517 echo "$as_me: failed program was:" >&5 | |
9518 sed 's/^/| /' conftest.$ac_ext >&5 | |
9519 | |
9520 ac_cv_lib_dld_shl_load=no | |
9521 fi | |
9522 | |
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9524 conftest$ac_exeext conftest.$ac_ext | |
9525 LIBS=$ac_check_lib_save_LIBS | |
9526 fi | |
9527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9528 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
9529 if test $ac_cv_lib_dld_shl_load = yes; then | |
9530 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9531 else | |
9532 { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9533 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
9534 if test "${ac_cv_func_dlopen+set}" = set; then | |
9535 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9536 else | |
9537 cat >conftest.$ac_ext <<_ACEOF | |
9538 /* confdefs.h. */ | |
9539 _ACEOF | |
9540 cat confdefs.h >>conftest.$ac_ext | |
9541 cat >>conftest.$ac_ext <<_ACEOF | |
9542 /* end confdefs.h. */ | |
9543 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9544 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9545 #define dlopen innocuous_dlopen | |
9546 | |
9547 /* System header to define __stub macros and hopefully few prototypes, | |
9548 which can conflict with char dlopen (); below. | |
9549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9550 <limits.h> exists even on freestanding compilers. */ | |
9551 | |
9552 #ifdef __STDC__ | |
9553 # include <limits.h> | |
9554 #else | |
9555 # include <assert.h> | |
9556 #endif | |
9557 | |
9558 #undef dlopen | |
9559 | |
9560 /* Override any GCC internal prototype to avoid an error. | |
9561 Use char because int might match the return type of a GCC | |
9562 builtin and then its argument prototype would still apply. */ | |
9563 #ifdef __cplusplus | |
9564 extern "C" | |
9565 #endif | |
9566 char dlopen (); | |
9567 /* The GNU C library defines this for functions which it implements | |
9568 to always fail with ENOSYS. Some functions are actually named | |
9569 something starting with __ and the normal name is an alias. */ | |
9570 #if defined __stub_dlopen || defined __stub___dlopen | |
9571 choke me | |
9572 #endif | |
9573 | |
9574 int | |
9575 main () | |
9576 { | |
9577 return dlopen (); | |
9578 ; | |
9579 return 0; | |
9580 } | |
9581 _ACEOF | |
9582 rm -f conftest.$ac_objext conftest$ac_exeext | |
9583 if { (ac_try="$ac_link" | |
9584 case "(($ac_try" in | |
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9586 *) ac_try_echo=$ac_try;; | |
9587 esac | |
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9589 (eval "$ac_link") 2>conftest.er1 | |
9590 ac_status=$? | |
9591 grep -v '^ *+' conftest.er1 >conftest.err | |
9592 rm -f conftest.er1 | |
9593 cat conftest.err >&5 | |
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9595 (exit $ac_status); } && { | |
9596 test -z "$ac_c_werror_flag" || | |
9597 test ! -s conftest.err | |
9598 } && test -s conftest$ac_exeext && | |
9599 $as_test_x conftest$ac_exeext; then | |
9600 ac_cv_func_dlopen=yes | |
9601 else | |
9602 echo "$as_me: failed program was:" >&5 | |
9603 sed 's/^/| /' conftest.$ac_ext >&5 | |
9604 | |
9605 ac_cv_func_dlopen=no | |
9606 fi | |
9607 | |
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9609 conftest$ac_exeext conftest.$ac_ext | |
9610 fi | |
9611 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9612 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
9613 if test $ac_cv_func_dlopen = yes; then | |
9614 lt_cv_dlopen="dlopen" | |
9615 else | |
9616 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9619 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9620 else | |
9621 ac_check_lib_save_LIBS=$LIBS | |
9622 LIBS="-ldl $LIBS" | |
9623 cat >conftest.$ac_ext <<_ACEOF | |
9624 /* confdefs.h. */ | |
9625 _ACEOF | |
9626 cat confdefs.h >>conftest.$ac_ext | |
9627 cat >>conftest.$ac_ext <<_ACEOF | |
9628 /* end confdefs.h. */ | |
9629 | |
9630 /* Override any GCC internal prototype to avoid an error. | |
9631 Use char because int might match the return type of a GCC | |
9632 builtin and then its argument prototype would still apply. */ | |
9633 #ifdef __cplusplus | |
9634 extern "C" | |
9635 #endif | |
9636 char dlopen (); | |
9637 int | |
9638 main () | |
9639 { | |
9640 return dlopen (); | |
9641 ; | |
9642 return 0; | |
9643 } | |
9644 _ACEOF | |
9645 rm -f conftest.$ac_objext conftest$ac_exeext | |
9646 if { (ac_try="$ac_link" | |
9647 case "(($ac_try" in | |
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9649 *) ac_try_echo=$ac_try;; | |
9650 esac | |
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9652 (eval "$ac_link") 2>conftest.er1 | |
9653 ac_status=$? | |
9654 grep -v '^ *+' conftest.er1 >conftest.err | |
9655 rm -f conftest.er1 | |
9656 cat conftest.err >&5 | |
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9658 (exit $ac_status); } && { | |
9659 test -z "$ac_c_werror_flag" || | |
9660 test ! -s conftest.err | |
9661 } && test -s conftest$ac_exeext && | |
9662 $as_test_x conftest$ac_exeext; then | |
9663 ac_cv_lib_dl_dlopen=yes | |
9664 else | |
9665 echo "$as_me: failed program was:" >&5 | |
9666 sed 's/^/| /' conftest.$ac_ext >&5 | |
9667 | |
9668 ac_cv_lib_dl_dlopen=no | |
9669 fi | |
9670 | |
9671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9672 conftest$ac_exeext conftest.$ac_ext | |
9673 LIBS=$ac_check_lib_save_LIBS | |
9674 fi | |
9675 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9676 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9677 if test $ac_cv_lib_dl_dlopen = yes; then | |
9678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9679 else | |
9680 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9681 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
9682 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9683 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9684 else | |
9685 ac_check_lib_save_LIBS=$LIBS | |
9686 LIBS="-lsvld $LIBS" | |
9687 cat >conftest.$ac_ext <<_ACEOF | |
9688 /* confdefs.h. */ | |
9689 _ACEOF | |
9690 cat confdefs.h >>conftest.$ac_ext | |
9691 cat >>conftest.$ac_ext <<_ACEOF | |
9692 /* end confdefs.h. */ | |
9693 | |
9694 /* Override any GCC internal prototype to avoid an error. | |
9695 Use char because int might match the return type of a GCC | |
9696 builtin and then its argument prototype would still apply. */ | |
9697 #ifdef __cplusplus | |
9698 extern "C" | |
9699 #endif | |
9700 char dlopen (); | |
9701 int | |
9702 main () | |
9703 { | |
9704 return dlopen (); | |
9705 ; | |
9706 return 0; | |
9707 } | |
9708 _ACEOF | |
9709 rm -f conftest.$ac_objext conftest$ac_exeext | |
9710 if { (ac_try="$ac_link" | |
9711 case "(($ac_try" in | |
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9713 *) ac_try_echo=$ac_try;; | |
9714 esac | |
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9716 (eval "$ac_link") 2>conftest.er1 | |
9717 ac_status=$? | |
9718 grep -v '^ *+' conftest.er1 >conftest.err | |
9719 rm -f conftest.er1 | |
9720 cat conftest.err >&5 | |
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9722 (exit $ac_status); } && { | |
9723 test -z "$ac_c_werror_flag" || | |
9724 test ! -s conftest.err | |
9725 } && test -s conftest$ac_exeext && | |
9726 $as_test_x conftest$ac_exeext; then | |
9727 ac_cv_lib_svld_dlopen=yes | |
9728 else | |
9729 echo "$as_me: failed program was:" >&5 | |
9730 sed 's/^/| /' conftest.$ac_ext >&5 | |
9731 | |
9732 ac_cv_lib_svld_dlopen=no | |
9733 fi | |
9734 | |
9735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9736 conftest$ac_exeext conftest.$ac_ext | |
9737 LIBS=$ac_check_lib_save_LIBS | |
9738 fi | |
9739 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9740 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
9741 if test $ac_cv_lib_svld_dlopen = yes; then | |
9742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9743 else | |
9744 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9745 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
9746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9748 else | |
9749 ac_check_lib_save_LIBS=$LIBS | |
9750 LIBS="-ldld $LIBS" | |
9751 cat >conftest.$ac_ext <<_ACEOF | |
9752 /* confdefs.h. */ | |
9753 _ACEOF | |
9754 cat confdefs.h >>conftest.$ac_ext | |
9755 cat >>conftest.$ac_ext <<_ACEOF | |
9756 /* end confdefs.h. */ | |
9757 | |
9758 /* Override any GCC internal prototype to avoid an error. | |
9759 Use char because int might match the return type of a GCC | |
9760 builtin and then its argument prototype would still apply. */ | |
9761 #ifdef __cplusplus | |
9762 extern "C" | |
9763 #endif | |
9764 char dld_link (); | |
9765 int | |
9766 main () | |
9767 { | |
9768 return dld_link (); | |
9769 ; | |
9770 return 0; | |
9771 } | |
9772 _ACEOF | |
9773 rm -f conftest.$ac_objext conftest$ac_exeext | |
9774 if { (ac_try="$ac_link" | |
9775 case "(($ac_try" in | |
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9777 *) ac_try_echo=$ac_try;; | |
9778 esac | |
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9780 (eval "$ac_link") 2>conftest.er1 | |
9781 ac_status=$? | |
9782 grep -v '^ *+' conftest.er1 >conftest.err | |
9783 rm -f conftest.er1 | |
9784 cat conftest.err >&5 | |
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9786 (exit $ac_status); } && { | |
9787 test -z "$ac_c_werror_flag" || | |
9788 test ! -s conftest.err | |
9789 } && test -s conftest$ac_exeext && | |
9790 $as_test_x conftest$ac_exeext; then | |
9791 ac_cv_lib_dld_dld_link=yes | |
9792 else | |
9793 echo "$as_me: failed program was:" >&5 | |
9794 sed 's/^/| /' conftest.$ac_ext >&5 | |
9795 | |
9796 ac_cv_lib_dld_dld_link=no | |
9797 fi | |
9798 | |
9799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9800 conftest$ac_exeext conftest.$ac_ext | |
9801 LIBS=$ac_check_lib_save_LIBS | |
9802 fi | |
9803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9804 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
9805 if test $ac_cv_lib_dld_dld_link = yes; then | |
9806 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9807 fi | |
9808 | |
9809 | |
9810 fi | |
9811 | |
9812 | |
9813 fi | |
9814 | |
9815 | |
9816 fi | |
9817 | |
9818 | |
9819 fi | |
9820 | |
9821 | |
9822 fi | |
9823 | |
9824 ;; | |
9825 esac | |
9826 | |
9827 if test "x$lt_cv_dlopen" != xno; then | |
9828 enable_dlopen=yes | |
9829 else | |
9830 enable_dlopen=no | |
9831 fi | |
9832 | |
9833 case $lt_cv_dlopen in | |
9834 dlopen) | |
9835 save_CPPFLAGS="$CPPFLAGS" | |
9836 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9837 | |
9838 save_LDFLAGS="$LDFLAGS" | |
9839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9840 | |
9841 save_LIBS="$LIBS" | |
9842 LIBS="$lt_cv_dlopen_libs $LIBS" | |
9843 | |
9844 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9845 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
9846 if test "${lt_cv_dlopen_self+set}" = set; then | |
9847 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9848 else | |
9849 if test "$cross_compiling" = yes; then : | |
9850 lt_cv_dlopen_self=cross | |
9851 else | |
9852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9853 lt_status=$lt_dlunknown | |
9854 cat > conftest.$ac_ext <<EOF | |
9855 #line 9855 "configure" | |
9856 #include "confdefs.h" | |
9857 | |
9858 #if HAVE_DLFCN_H | |
9859 #include <dlfcn.h> | |
9860 #endif | |
9861 | |
9862 #include <stdio.h> | |
9863 | |
9864 #ifdef RTLD_GLOBAL | |
9865 # define LT_DLGLOBAL RTLD_GLOBAL | |
9866 #else | |
9867 # ifdef DL_GLOBAL | |
9868 # define LT_DLGLOBAL DL_GLOBAL | |
9869 # else | |
9870 # define LT_DLGLOBAL 0 | |
9871 # endif | |
9872 #endif | |
9873 | |
9874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9875 find out it does not work in some platform. */ | |
9876 #ifndef LT_DLLAZY_OR_NOW | |
9877 # ifdef RTLD_LAZY | |
9878 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9879 # else | |
9880 # ifdef DL_LAZY | |
9881 # define LT_DLLAZY_OR_NOW DL_LAZY | |
9882 # else | |
9883 # ifdef RTLD_NOW | |
9884 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9885 # else | |
9886 # ifdef DL_NOW | |
9887 # define LT_DLLAZY_OR_NOW DL_NOW | |
9888 # else | |
9889 # define LT_DLLAZY_OR_NOW 0 | |
9890 # endif | |
9891 # endif | |
9892 # endif | |
9893 # endif | |
9894 #endif | |
9895 | |
9896 #ifdef __cplusplus | |
9897 extern "C" void exit (int); | |
9898 #endif | |
9899 | |
9900 void fnord() { int i=42;} | |
9901 int main () | |
9902 { | |
9903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9904 int status = $lt_dlunknown; | |
9905 | |
9906 if (self) | |
9907 { | |
9908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9910 /* dlclose (self); */ | |
9911 } | |
9912 else | |
9913 puts (dlerror ()); | |
9914 | |
9915 exit (status); | |
9916 } | |
9917 EOF | |
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9919 (eval $ac_link) 2>&5 | |
9920 ac_status=$? | |
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9922 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9923 (./conftest; exit; ) >&5 2>/dev/null | |
9924 lt_status=$? | |
9925 case x$lt_status in | |
9926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9928 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9929 esac | |
9930 else : | |
9931 # compilation failed | |
9932 lt_cv_dlopen_self=no | |
9933 fi | |
9934 fi | |
9935 rm -fr conftest* | |
9936 | |
9937 | |
9938 fi | |
9939 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9940 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
9941 | |
9942 if test "x$lt_cv_dlopen_self" = xyes; then | |
9943 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9944 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
9945 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
9946 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9947 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9948 else | |
9949 if test "$cross_compiling" = yes; then : | |
9950 lt_cv_dlopen_self_static=cross | |
9951 else | |
9952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9953 lt_status=$lt_dlunknown | |
9954 cat > conftest.$ac_ext <<EOF | |
9955 #line 9955 "configure" | |
9956 #include "confdefs.h" | |
9957 | |
9958 #if HAVE_DLFCN_H | |
9959 #include <dlfcn.h> | |
9960 #endif | |
9961 | |
9962 #include <stdio.h> | |
9963 | |
9964 #ifdef RTLD_GLOBAL | |
9965 # define LT_DLGLOBAL RTLD_GLOBAL | |
9966 #else | |
9967 # ifdef DL_GLOBAL | |
9968 # define LT_DLGLOBAL DL_GLOBAL | |
9969 # else | |
9970 # define LT_DLGLOBAL 0 | |
9971 # endif | |
9972 #endif | |
9973 | |
9974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9975 find out it does not work in some platform. */ | |
9976 #ifndef LT_DLLAZY_OR_NOW | |
9977 # ifdef RTLD_LAZY | |
9978 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9979 # else | |
9980 # ifdef DL_LAZY | |
9981 # define LT_DLLAZY_OR_NOW DL_LAZY | |
9982 # else | |
9983 # ifdef RTLD_NOW | |
9984 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9985 # else | |
9986 # ifdef DL_NOW | |
9987 # define LT_DLLAZY_OR_NOW DL_NOW | |
9988 # else | |
9989 # define LT_DLLAZY_OR_NOW 0 | |
9990 # endif | |
9991 # endif | |
9992 # endif | |
9993 # endif | |
9994 #endif | |
9995 | |
9996 #ifdef __cplusplus | |
9997 extern "C" void exit (int); | |
9998 #endif | |
9999 | |
10000 void fnord() { int i=42;} | |
10001 int main () | |
10002 { | |
10003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10004 int status = $lt_dlunknown; | |
10005 | |
10006 if (self) | |
10007 { | |
10008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10010 /* dlclose (self); */ | |
10011 } | |
10012 else | |
10013 puts (dlerror ()); | |
10014 | |
10015 exit (status); | |
10016 } | |
10017 EOF | |
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10019 (eval $ac_link) 2>&5 | |
10020 ac_status=$? | |
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10023 (./conftest; exit; ) >&5 2>/dev/null | |
10024 lt_status=$? | |
10025 case x$lt_status in | |
10026 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10027 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10028 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10029 esac | |
10030 else : | |
10031 # compilation failed | |
10032 lt_cv_dlopen_self_static=no | |
10033 fi | |
10034 fi | |
10035 rm -fr conftest* | |
10036 | |
10037 | |
10038 fi | |
10039 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10040 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
10041 fi | |
10042 | |
10043 CPPFLAGS="$save_CPPFLAGS" | |
10044 LDFLAGS="$save_LDFLAGS" | |
10045 LIBS="$save_LIBS" | |
10046 ;; | |
10047 esac | |
10048 | |
10049 case $lt_cv_dlopen_self in | |
10050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10051 *) enable_dlopen_self=unknown ;; | |
10052 esac | |
10053 | |
10054 case $lt_cv_dlopen_self_static in | |
10055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10056 *) enable_dlopen_self_static=unknown ;; | |
10057 esac | |
10058 fi | |
10059 | |
10060 | |
10061 # Report which library types will actually be built | |
10062 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10063 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
10064 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10065 echo "${ECHO_T}$can_build_shared" >&6; } | |
10066 | |
10067 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10068 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
10069 test "$can_build_shared" = "no" && enable_shared=no | |
10070 | |
10071 # On AIX, shared libraries and static libraries use the same namespace, and | |
10072 # are all built from PIC. | |
10073 case $host_os in | |
10074 aix3*) | |
10075 test "$enable_shared" = yes && enable_static=no | |
10076 if test -n "$RANLIB"; then | |
10077 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10078 postinstall_cmds='$RANLIB $lib' | |
10079 fi | |
10080 ;; | |
10081 | |
10082 aix4* | aix5*) | |
10083 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10084 test "$enable_shared" = yes && enable_static=no | |
10085 fi | |
10086 ;; | |
10087 esac | |
10088 { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10089 echo "${ECHO_T}$enable_shared" >&6; } | |
10090 | |
10091 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10092 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
10093 # Make sure either enable_shared or enable_static is yes. | |
10094 test "$enable_shared" = yes || enable_static=yes | |
10095 { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10096 echo "${ECHO_T}$enable_static" >&6; } | |
10097 | |
10098 # The else clause should only fire when bootstrapping the | |
10099 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
10100 # with your package, and you will get complaints that there are | |
10101 # no rules to generate ltmain.sh. | |
10102 if test -f "$ltmain"; then | |
10103 # See if we are running on zsh, and set the options which allow our commands through | |
10104 # without removal of \ escapes. | |
10105 if test -n "${ZSH_VERSION+set}" ; then | |
10106 setopt NO_GLOB_SUBST | |
10107 fi | |
10108 # Now quote all the things that may contain metacharacters while being | |
10109 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
10110 # variables and quote the copies for generation of the libtool script. | |
10111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
10112 SED SHELL STRIP \ | |
10113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
10114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
10115 deplibs_check_method reload_flag reload_cmds need_locks \ | |
10116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
10117 lt_cv_sys_global_symbol_to_c_name_address \ | |
10118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
10119 old_postinstall_cmds old_postuninstall_cmds \ | |
10120 compiler \ | |
10121 CC \ | |
10122 LD \ | |
10123 lt_prog_compiler_wl \ | |
10124 lt_prog_compiler_pic \ | |
10125 lt_prog_compiler_static \ | |
10126 lt_prog_compiler_no_builtin_flag \ | |
10127 export_dynamic_flag_spec \ | |
10128 thread_safe_flag_spec \ | |
10129 whole_archive_flag_spec \ | |
10130 enable_shared_with_static_runtimes \ | |
10131 old_archive_cmds \ | |
10132 old_archive_from_new_cmds \ | |
10133 predep_objects \ | |
10134 postdep_objects \ | |
10135 predeps \ | |
10136 postdeps \ | |
10137 compiler_lib_search_path \ | |
10138 archive_cmds \ | |
10139 archive_expsym_cmds \ | |
10140 postinstall_cmds \ | |
10141 postuninstall_cmds \ | |
10142 old_archive_from_expsyms_cmds \ | |
10143 allow_undefined_flag \ | |
10144 no_undefined_flag \ | |
10145 export_symbols_cmds \ | |
10146 hardcode_libdir_flag_spec \ | |
10147 hardcode_libdir_flag_spec_ld \ | |
10148 hardcode_libdir_separator \ | |
10149 hardcode_automatic \ | |
10150 module_cmds \ | |
10151 module_expsym_cmds \ | |
10152 lt_cv_prog_compiler_c_o \ | |
10153 exclude_expsyms \ | |
10154 include_expsyms; do | |
10155 | |
10156 case $var in | |
10157 old_archive_cmds | \ | |
10158 old_archive_from_new_cmds | \ | |
10159 archive_cmds | \ | |
10160 archive_expsym_cmds | \ | |
10161 module_cmds | \ | |
10162 module_expsym_cmds | \ | |
10163 old_archive_from_expsyms_cmds | \ | |
10164 export_symbols_cmds | \ | |
10165 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
10166 postinstall_cmds | postuninstall_cmds | \ | |
10167 old_postinstall_cmds | old_postuninstall_cmds | \ | |
10168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
10169 # Double-quote double-evaled strings. | |
10170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
10171 ;; | |
10172 *) | |
10173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
10174 ;; | |
10175 esac | |
10176 done | |
10177 | |
10178 case $lt_echo in | |
10179 *'\$0 --fallback-echo"') | |
10180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
10181 ;; | |
10182 esac | |
10183 | |
10184 cfgfile="${ofile}T" | |
10185 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
10186 $rm -f "$cfgfile" | |
10187 { echo "$as_me:$LINENO: creating $ofile" >&5 | |
10188 echo "$as_me: creating $ofile" >&6;} | |
10189 | |
10190 cat <<__EOF__ >> "$cfgfile" | |
10191 #! $SHELL | |
10192 | |
10193 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
10194 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
10195 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
10196 # | |
10197 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
10198 # Free Software Foundation, Inc. | |
10199 # | |
10200 # This file is part of GNU Libtool: | |
10201 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
10202 # | |
10203 # This program is free software; you can redistribute it and/or modify | |
10204 # it under the terms of the GNU General Public License as published by | |
10205 # the Free Software Foundation; either version 2 of the License, or | |
10206 # (at your option) any later version. | |
10207 # | |
10208 # This program is distributed in the hope that it will be useful, but | |
10209 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
10210 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
10211 # General Public License for more details. | |
10212 # | |
10213 # You should have received a copy of the GNU General Public License | |
10214 # along with this program; if not, write to the Free Software | |
10215 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
10216 # | |
10217 # As a special exception to the GNU General Public License, if you | |
10218 # distribute this file as part of a program that contains a | |
10219 # configuration script generated by Autoconf, you may include it under | |
10220 # the same distribution terms that you use for the rest of that program. | |
10221 | |
10222 # A sed program that does not truncate output. | |
10223 SED=$lt_SED | |
10224 | |
10225 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
10226 Xsed="$SED -e 1s/^X//" | |
10227 | |
10228 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
10229 # if CDPATH is set. | |
10230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10231 | |
10232 # The names of the tagged configurations supported by this script. | |
10233 available_tags= | |
10234 | |
10235 # ### BEGIN LIBTOOL CONFIG | |
10236 | |
10237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
10238 | |
10239 # Shell to use when invoking shell scripts. | |
10240 SHELL=$lt_SHELL | |
10241 | |
10242 # Whether or not to build shared libraries. | |
10243 build_libtool_libs=$enable_shared | |
10244 | |
10245 # Whether or not to build static libraries. | |
10246 build_old_libs=$enable_static | |
10247 | |
10248 # Whether or not to add -lc for building shared libraries. | |
10249 build_libtool_need_lc=$archive_cmds_need_lc | |
10250 | |
10251 # Whether or not to disallow shared libs when runtime libs are static | |
10252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
10253 | |
10254 # Whether or not to optimize for fast installation. | |
10255 fast_install=$enable_fast_install | |
10256 | |
10257 # The host system. | |
10258 host_alias=$host_alias | |
10259 host=$host | |
10260 host_os=$host_os | |
10261 | |
10262 # The build system. | |
10263 build_alias=$build_alias | |
10264 build=$build | |
10265 build_os=$build_os | |
10266 | |
10267 # An echo program that does not interpret backslashes. | |
10268 echo=$lt_echo | |
10269 | |
10270 # The archiver. | |
10271 AR=$lt_AR | |
10272 AR_FLAGS=$lt_AR_FLAGS | |
10273 | |
10274 # A C compiler. | |
10275 LTCC=$lt_LTCC | |
10276 | |
10277 # LTCC compiler flags. | |
10278 LTCFLAGS=$lt_LTCFLAGS | |
10279 | |
10280 # A language-specific compiler. | |
10281 CC=$lt_compiler | |
10282 | |
10283 # Is the compiler the GNU C compiler? | |
10284 with_gcc=$GCC | |
10285 | |
10286 # An ERE matcher. | |
10287 EGREP=$lt_EGREP | |
10288 | |
10289 # The linker used to build libraries. | |
10290 LD=$lt_LD | |
10291 | |
10292 # Whether we need hard or soft links. | |
10293 LN_S=$lt_LN_S | |
10294 | |
10295 # A BSD-compatible nm program. | |
10296 NM=$lt_NM | |
10297 | |
10298 # A symbol stripping program | |
10299 STRIP=$lt_STRIP | |
10300 | |
10301 # Used to examine libraries when file_magic_cmd begins "file" | |
10302 MAGIC_CMD=$MAGIC_CMD | |
10303 | |
10304 # Used on cygwin: DLL creation program. | |
10305 DLLTOOL="$DLLTOOL" | |
10306 | |
10307 # Used on cygwin: object dumper. | |
10308 OBJDUMP="$OBJDUMP" | |
10309 | |
10310 # Used on cygwin: assembler. | |
10311 AS="$AS" | |
10312 | |
10313 # The name of the directory that contains temporary libtool files. | |
10314 objdir=$objdir | |
10315 | |
10316 # How to create reloadable object files. | |
10317 reload_flag=$lt_reload_flag | |
10318 reload_cmds=$lt_reload_cmds | |
10319 | |
10320 # How to pass a linker flag through the compiler. | |
10321 wl=$lt_lt_prog_compiler_wl | |
10322 | |
10323 # Object file suffix (normally "o"). | |
10324 objext="$ac_objext" | |
10325 | |
10326 # Old archive suffix (normally "a"). | |
10327 libext="$libext" | |
10328 | |
10329 # Shared library suffix (normally ".so"). | |
10330 shrext_cmds='$shrext_cmds' | |
10331 | |
10332 # Executable file suffix (normally ""). | |
10333 exeext="$exeext" | |
10334 | |
10335 # Additional compiler flags for building library objects. | |
10336 pic_flag=$lt_lt_prog_compiler_pic | |
10337 pic_mode=$pic_mode | |
10338 | |
10339 # What is the maximum length of a command? | |
10340 max_cmd_len=$lt_cv_sys_max_cmd_len | |
10341 | |
10342 # Does compiler simultaneously support -c and -o options? | |
10343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
10344 | |
10345 # Must we lock files when doing compilation? | |
10346 need_locks=$lt_need_locks | |
10347 | |
10348 # Do we need the lib prefix for modules? | |
10349 need_lib_prefix=$need_lib_prefix | |
10350 | |
10351 # Do we need a version for libraries? | |
10352 need_version=$need_version | |
10353 | |
10354 # Whether dlopen is supported. | |
10355 dlopen_support=$enable_dlopen | |
10356 | |
10357 # Whether dlopen of programs is supported. | |
10358 dlopen_self=$enable_dlopen_self | |
10359 | |
10360 # Whether dlopen of statically linked programs is supported. | |
10361 dlopen_self_static=$enable_dlopen_self_static | |
10362 | |
10363 # Compiler flag to prevent dynamic linking. | |
10364 link_static_flag=$lt_lt_prog_compiler_static | |
10365 | |
10366 # Compiler flag to turn off builtin functions. | |
10367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
10368 | |
10369 # Compiler flag to allow reflexive dlopens. | |
10370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
10371 | |
10372 # Compiler flag to generate shared objects directly from archives. | |
10373 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
10374 | |
10375 # Compiler flag to generate thread-safe objects. | |
10376 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
10377 | |
10378 # Library versioning type. | |
10379 version_type=$version_type | |
10380 | |
10381 # Format of library name prefix. | |
10382 libname_spec=$lt_libname_spec | |
10383 | |
10384 # List of archive names. First name is the real one, the rest are links. | |
10385 # The last name is the one that the linker finds with -lNAME. | |
10386 library_names_spec=$lt_library_names_spec | |
10387 | |
10388 # The coded name of the library, if different from the real name. | |
10389 soname_spec=$lt_soname_spec | |
10390 | |
10391 # Commands used to build and install an old-style archive. | |
10392 RANLIB=$lt_RANLIB | |
10393 old_archive_cmds=$lt_old_archive_cmds | |
10394 old_postinstall_cmds=$lt_old_postinstall_cmds | |
10395 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
10396 | |
10397 # Create an old-style archive from a shared archive. | |
10398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
10399 | |
10400 # Create a temporary old-style archive to link instead of a shared archive. | |
10401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
10402 | |
10403 # Commands used to build and install a shared archive. | |
10404 archive_cmds=$lt_archive_cmds | |
10405 archive_expsym_cmds=$lt_archive_expsym_cmds | |
10406 postinstall_cmds=$lt_postinstall_cmds | |
10407 postuninstall_cmds=$lt_postuninstall_cmds | |
10408 | |
10409 # Commands used to build a loadable module (assumed same as above if empty) | |
10410 module_cmds=$lt_module_cmds | |
10411 module_expsym_cmds=$lt_module_expsym_cmds | |
10412 | |
10413 # Commands to strip libraries. | |
10414 old_striplib=$lt_old_striplib | |
10415 striplib=$lt_striplib | |
10416 | |
10417 # Dependencies to place before the objects being linked to create a | |
10418 # shared library. | |
10419 predep_objects=$lt_predep_objects | |
10420 | |
10421 # Dependencies to place after the objects being linked to create a | |
10422 # shared library. | |
10423 postdep_objects=$lt_postdep_objects | |
10424 | |
10425 # Dependencies to place before the objects being linked to create a | |
10426 # shared library. | |
10427 predeps=$lt_predeps | |
10428 | |
10429 # Dependencies to place after the objects being linked to create a | |
10430 # shared library. | |
10431 postdeps=$lt_postdeps | |
10432 | |
10433 # The library search path used internally by the compiler when linking | |
10434 # a shared library. | |
10435 compiler_lib_search_path=$lt_compiler_lib_search_path | |
10436 | |
10437 # Method to check whether dependent libraries are shared objects. | |
10438 deplibs_check_method=$lt_deplibs_check_method | |
10439 | |
10440 # Command to use when deplibs_check_method == file_magic. | |
10441 file_magic_cmd=$lt_file_magic_cmd | |
10442 | |
10443 # Flag that allows shared libraries with undefined symbols to be built. | |
10444 allow_undefined_flag=$lt_allow_undefined_flag | |
10445 | |
10446 # Flag that forces no undefined symbols. | |
10447 no_undefined_flag=$lt_no_undefined_flag | |
10448 | |
10449 # Commands used to finish a libtool library installation in a directory. | |
10450 finish_cmds=$lt_finish_cmds | |
10451 | |
10452 # Same as above, but a single script fragment to be evaled but not shown. | |
10453 finish_eval=$lt_finish_eval | |
10454 | |
10455 # Take the output of nm and produce a listing of raw symbols and C names. | |
10456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
10457 | |
10458 # Transform the output of nm in a proper C declaration | |
10459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
10460 | |
10461 # Transform the output of nm in a C name address pair | |
10462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10463 | |
10464 # This is the shared library runtime path variable. | |
10465 runpath_var=$runpath_var | |
10466 | |
10467 # This is the shared library path variable. | |
10468 shlibpath_var=$shlibpath_var | |
10469 | |
10470 # Is shlibpath searched before the hard-coded library search path? | |
10471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10472 | |
10473 # How to hardcode a shared library path into an executable. | |
10474 hardcode_action=$hardcode_action | |
10475 | |
10476 # Whether we should hardcode library paths into libraries. | |
10477 hardcode_into_libs=$hardcode_into_libs | |
10478 | |
10479 # Flag to hardcode \$libdir into a binary during linking. | |
10480 # This must work even if \$libdir does not exist. | |
10481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10482 | |
10483 # If ld is used when linking, flag to hardcode \$libdir into | |
10484 # a binary during linking. This must work even if \$libdir does | |
10485 # not exist. | |
10486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10487 | |
10488 # Whether we need a single -rpath flag with a separated argument. | |
10489 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10490 | |
10491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10492 # resulting binary. | |
10493 hardcode_direct=$hardcode_direct | |
10494 | |
10495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10496 # resulting binary. | |
10497 hardcode_minus_L=$hardcode_minus_L | |
10498 | |
10499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10500 # the resulting binary. | |
10501 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10502 | |
10503 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10504 # and all subsequent libraries and executables linked against it. | |
10505 hardcode_automatic=$hardcode_automatic | |
10506 | |
10507 # Variables whose values should be saved in libtool wrapper scripts and | |
10508 # restored at relink time. | |
10509 variables_saved_for_relink="$variables_saved_for_relink" | |
10510 | |
10511 # Whether libtool must link a program against all its dependency libraries. | |
10512 link_all_deplibs=$link_all_deplibs | |
10513 | |
10514 # Compile-time system search path for libraries | |
10515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
10516 | |
10517 # Run-time system search path for libraries | |
10518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10519 | |
10520 # Fix the shell variable \$srcfile for the compiler. | |
10521 fix_srcfile_path="$fix_srcfile_path" | |
10522 | |
10523 # Set to yes if exported symbols are required. | |
10524 always_export_symbols=$always_export_symbols | |
10525 | |
10526 # The commands to list exported symbols. | |
10527 export_symbols_cmds=$lt_export_symbols_cmds | |
10528 | |
10529 # The commands to extract the exported symbol list from a shared archive. | |
10530 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10531 | |
10532 # Symbols that should not be listed in the preloaded symbols. | |
10533 exclude_expsyms=$lt_exclude_expsyms | |
10534 | |
10535 # Symbols that must always be exported. | |
10536 include_expsyms=$lt_include_expsyms | |
10537 | |
10538 # ### END LIBTOOL CONFIG | |
10539 | |
10540 __EOF__ | |
10541 | |
10542 | |
10543 case $host_os in | |
10544 aix3*) | |
10545 cat <<\EOF >> "$cfgfile" | |
10546 | |
10547 # AIX sometimes has problems with the GCC collect2 program. For some | |
10548 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10549 # vanish in a puff of smoke. | |
10550 if test "X${COLLECT_NAMES+set}" != Xset; then | |
10551 COLLECT_NAMES= | |
10552 export COLLECT_NAMES | |
10553 fi | |
10554 EOF | |
10555 ;; | |
10556 esac | |
10557 | |
10558 # We use sed instead of cat because bash on DJGPP gets confused if | |
10559 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
10560 # text mode, it properly converts lines to CR/LF. This bash problem | |
10561 # is reportedly fixed, but why not run on old versions too? | |
10562 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
10563 | |
10564 mv -f "$cfgfile" "$ofile" || \ | |
10565 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
10566 chmod +x "$ofile" | |
10567 | |
10568 else | |
10569 # If there is no Makefile yet, we rely on a make rule to execute | |
10570 # `config.status --recheck' to rerun these tests and create the | |
10571 # libtool script then. | |
10572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10573 if test -f "$ltmain_in"; then | |
10574 test -f Makefile && make "$ltmain" | |
10575 fi | |
10576 fi | |
10577 | |
10578 | |
10579 ac_ext=c | |
10580 ac_cpp='$CPP $CPPFLAGS' | |
10581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10583 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10584 | |
10585 CC="$lt_save_CC" | |
10586 | |
10587 | |
10588 # Check whether --with-tags was given. | |
10589 if test "${with_tags+set}" = set; then | |
10590 withval=$with_tags; tagnames="$withval" | |
10591 fi | |
10592 | |
10593 | |
10594 if test -f "$ltmain" && test -n "$tagnames"; then | |
10595 if test ! -f "${ofile}"; then | |
10596 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
10597 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
10598 fi | |
10599 | |
10600 if test -z "$LTCC"; then | |
10601 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
10602 if test -z "$LTCC"; then | |
10603 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
10604 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
10605 else | |
10606 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10607 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10608 fi | |
10609 fi | |
10610 if test -z "$LTCFLAGS"; then | |
10611 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10612 fi | |
10613 | |
10614 # Extract list of available tagged configurations in $ofile. | |
10615 # Note that this assumes the entire list is on one line. | |
10616 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10617 | |
10618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10619 for tagname in $tagnames; do | |
10620 IFS="$lt_save_ifs" | |
10621 # Check whether tagname contains only valid characters | |
10622 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10623 "") ;; | |
10624 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10625 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10626 { (exit 1); exit 1; }; } | |
10627 ;; | |
10628 esac | |
10629 | |
10630 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10631 then | |
10632 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10633 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10634 { (exit 1); exit 1; }; } | |
10635 fi | |
10636 | |
10637 # Update the list of available tags. | |
10638 if test -n "$tagname"; then | |
10639 echo appending configuration tag \"$tagname\" to $ofile | |
10640 | |
10641 case $tagname in | |
10642 CXX) | |
10643 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10645 (test "X$CXX" != "Xg++"))) ; then | |
10646 ac_ext=cpp | |
10647 ac_cpp='$CXXCPP $CPPFLAGS' | |
10648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10651 | |
10652 | |
10653 | |
10654 | |
10655 archive_cmds_need_lc_CXX=no | |
10656 allow_undefined_flag_CXX= | |
10657 always_export_symbols_CXX=no | |
10658 archive_expsym_cmds_CXX= | |
10659 export_dynamic_flag_spec_CXX= | |
10660 hardcode_direct_CXX=no | |
10661 hardcode_libdir_flag_spec_CXX= | |
10662 hardcode_libdir_flag_spec_ld_CXX= | |
10663 hardcode_libdir_separator_CXX= | |
10664 hardcode_minus_L_CXX=no | |
10665 hardcode_shlibpath_var_CXX=unsupported | |
10666 hardcode_automatic_CXX=no | |
10667 module_cmds_CXX= | |
10668 module_expsym_cmds_CXX= | |
10669 link_all_deplibs_CXX=unknown | |
10670 old_archive_cmds_CXX=$old_archive_cmds | |
10671 no_undefined_flag_CXX= | |
10672 whole_archive_flag_spec_CXX= | |
10673 enable_shared_with_static_runtimes_CXX=no | |
10674 | |
10675 # Dependencies to place before and after the object being linked: | |
10676 predep_objects_CXX= | |
10677 postdep_objects_CXX= | |
10678 predeps_CXX= | |
10679 postdeps_CXX= | |
10680 compiler_lib_search_path_CXX= | |
10681 | |
10682 # Source file extension for C++ test sources. | |
10683 ac_ext=cpp | |
10684 | |
10685 # Object file extension for compiled C++ test sources. | |
10686 objext=o | |
10687 objext_CXX=$objext | |
10688 | |
10689 # Code to be used in simple compile tests | |
10690 lt_simple_compile_test_code="int some_variable = 0;\n" | |
10691 | |
10692 # Code to be used in simple link tests | |
10693 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
10694 | |
10695 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10696 | |
10697 # If no C compiler was specified, use CC. | |
10698 LTCC=${LTCC-"$CC"} | |
10699 | |
10700 # If no C compiler flags were specified, use CFLAGS. | |
10701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10702 | |
10703 # Allow CC to be a program name with arguments. | |
10704 compiler=$CC | |
10705 | |
10706 | |
10707 # save warnings/boilerplate of simple test code | |
10708 ac_outfile=conftest.$ac_objext | |
10709 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10711 _lt_compiler_boilerplate=`cat conftest.err` | |
10712 $rm conftest* | |
10713 | |
10714 ac_outfile=conftest.$ac_objext | |
10715 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
10716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10717 _lt_linker_boilerplate=`cat conftest.err` | |
10718 $rm conftest* | |
10719 | |
10720 | |
10721 # Allow CC to be a program name with arguments. | |
10722 lt_save_CC=$CC | |
10723 lt_save_LD=$LD | |
10724 lt_save_GCC=$GCC | |
10725 GCC=$GXX | |
10726 lt_save_with_gnu_ld=$with_gnu_ld | |
10727 lt_save_path_LD=$lt_cv_path_LD | |
10728 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10729 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10730 else | |
10731 $as_unset lt_cv_prog_gnu_ld | |
10732 fi | |
10733 if test -n "${lt_cv_path_LDCXX+set}"; then | |
10734 lt_cv_path_LD=$lt_cv_path_LDCXX | |
10735 else | |
10736 $as_unset lt_cv_path_LD | |
10737 fi | |
10738 test -z "${LDCXX+set}" || LD=$LDCXX | |
10739 CC=${CXX-"c++"} | |
10740 compiler=$CC | |
10741 compiler_CXX=$CC | |
10742 for cc_temp in $compiler""; do | |
10743 case $cc_temp in | |
10744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10746 \-*) ;; | |
10747 *) break;; | |
10748 esac | |
10749 done | |
10750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10751 | |
10752 | |
10753 # We don't want -fno-exception wen compiling C++ code, so set the | |
10754 # no_builtin_flag separately | |
10755 if test "$GXX" = yes; then | |
10756 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10757 else | |
10758 lt_prog_compiler_no_builtin_flag_CXX= | |
10759 fi | |
10760 | |
10761 if test "$GXX" = yes; then | |
10762 # Set up default GNU C++ configuration | |
10763 | |
10764 | |
10765 # Check whether --with-gnu-ld was given. | |
10766 if test "${with_gnu_ld+set}" = set; then | |
10767 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
10768 else | |
10769 with_gnu_ld=no | |
10770 fi | |
10771 | |
10772 ac_prog=ld | |
10773 if test "$GCC" = yes; then | |
10774 # Check if gcc -print-prog-name=ld gives a path. | |
10775 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10776 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
10777 case $host in | |
10778 *-*-mingw*) | |
10779 # gcc leaves a trailing carriage return which upsets mingw | |
10780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10781 *) | |
10782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10783 esac | |
10784 case $ac_prog in | |
10785 # Accept absolute paths. | |
10786 [\\/]* | ?:[\\/]*) | |
10787 re_direlt='/[^/][^/]*/\.\./' | |
10788 # Canonicalize the pathname of ld | |
10789 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10790 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10791 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10792 done | |
10793 test -z "$LD" && LD="$ac_prog" | |
10794 ;; | |
10795 "") | |
10796 # If it fails, then pretend we aren't using GCC. | |
10797 ac_prog=ld | |
10798 ;; | |
10799 *) | |
10800 # If it is relative, then search for the first ld in PATH. | |
10801 with_gnu_ld=unknown | |
10802 ;; | |
10803 esac | |
10804 elif test "$with_gnu_ld" = yes; then | |
10805 { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10806 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
10807 else | |
10808 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10809 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
10810 fi | |
10811 if test "${lt_cv_path_LD+set}" = set; then | |
10812 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10813 else | |
10814 if test -z "$LD"; then | |
10815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10816 for ac_dir in $PATH; do | |
10817 IFS="$lt_save_ifs" | |
10818 test -z "$ac_dir" && ac_dir=. | |
10819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10820 lt_cv_path_LD="$ac_dir/$ac_prog" | |
10821 # Check to see if the program is GNU ld. I'd rather use --version, | |
10822 # but apparently some variants of GNU ld only accept -v. | |
10823 # Break only if it was the GNU/non-GNU ld that we prefer. | |
10824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10825 *GNU* | *'with BFD'*) | |
10826 test "$with_gnu_ld" != no && break | |
10827 ;; | |
10828 *) | |
10829 test "$with_gnu_ld" != yes && break | |
10830 ;; | |
10831 esac | |
10832 fi | |
10833 done | |
10834 IFS="$lt_save_ifs" | |
10835 else | |
10836 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10837 fi | |
10838 fi | |
10839 | |
10840 LD="$lt_cv_path_LD" | |
10841 if test -n "$LD"; then | |
10842 { echo "$as_me:$LINENO: result: $LD" >&5 | |
10843 echo "${ECHO_T}$LD" >&6; } | |
10844 else | |
10845 { echo "$as_me:$LINENO: result: no" >&5 | |
10846 echo "${ECHO_T}no" >&6; } | |
10847 fi | |
10848 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10849 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10850 { (exit 1); exit 1; }; } | |
10851 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10852 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
10853 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10854 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10855 else | |
10856 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10857 case `$LD -v 2>&1 </dev/null` in | |
10858 *GNU* | *'with BFD'*) | |
10859 lt_cv_prog_gnu_ld=yes | |
10860 ;; | |
10861 *) | |
10862 lt_cv_prog_gnu_ld=no | |
10863 ;; | |
10864 esac | |
10865 fi | |
10866 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10867 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
10868 with_gnu_ld=$lt_cv_prog_gnu_ld | |
10869 | |
10870 | |
10871 | |
10872 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10873 # archiving commands below assume that GNU ld is being used. | |
10874 if test "$with_gnu_ld" = yes; then | |
10875 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10876 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10877 | |
10878 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10879 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10880 | |
10881 # If archive_cmds runs LD, not CC, wlarc should be empty | |
10882 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10883 # investigate it a little bit more. (MM) | |
10884 wlarc='${wl}' | |
10885 | |
10886 # ancient GNU ld didn't support --whole-archive et. al. | |
10887 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10888 grep 'no-whole-archive' > /dev/null; then | |
10889 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10890 else | |
10891 whole_archive_flag_spec_CXX= | |
10892 fi | |
10893 else | |
10894 with_gnu_ld=no | |
10895 wlarc= | |
10896 | |
10897 # A generic and very simple default shared library creation | |
10898 # command for GNU C++ for the case where it uses the native | |
10899 # linker, instead of GNU ld. If possible, this setting should | |
10900 # overridden to take advantage of the native linker features on | |
10901 # the platform it is being used on. | |
10902 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10903 fi | |
10904 | |
10905 # Commands to make compiler produce verbose output that lists | |
10906 # what "hidden" libraries, object files and flags are used when | |
10907 # linking a shared library. | |
10908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10909 | |
10910 else | |
10911 GXX=no | |
10912 with_gnu_ld=no | |
10913 wlarc= | |
10914 fi | |
10915 | |
10916 # PORTME: fill in a description of your system's C++ link characteristics | |
10917 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
10919 ld_shlibs_CXX=yes | |
10920 case $host_os in | |
10921 aix3*) | |
10922 # FIXME: insert proper C++ library support | |
10923 ld_shlibs_CXX=no | |
10924 ;; | |
10925 aix4* | aix5*) | |
10926 if test "$host_cpu" = ia64; then | |
10927 # On IA64, the linker does run time linking by default, so we don't | |
10928 # have to do anything special. | |
10929 aix_use_runtimelinking=no | |
10930 exp_sym_flag='-Bexport' | |
10931 no_entry_flag="" | |
10932 else | |
10933 aix_use_runtimelinking=no | |
10934 | |
10935 # Test if we are trying to use run time linking or normal | |
10936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10937 # need to do runtime linking. | |
10938 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
10939 for ld_flag in $LDFLAGS; do | |
10940 case $ld_flag in | |
10941 *-brtl*) | |
10942 aix_use_runtimelinking=yes | |
10943 break | |
10944 ;; | |
10945 esac | |
10946 done | |
10947 ;; | |
10948 esac | |
10949 | |
10950 exp_sym_flag='-bexport' | |
10951 no_entry_flag='-bnoentry' | |
10952 fi | |
10953 | |
10954 # When large executables or shared objects are built, AIX ld can | |
10955 # have problems creating the table of contents. If linking a library | |
10956 # or program results in "error TOC overflow" add -mminimal-toc to | |
10957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10959 | |
10960 archive_cmds_CXX='' | |
10961 hardcode_direct_CXX=yes | |
10962 hardcode_libdir_separator_CXX=':' | |
10963 link_all_deplibs_CXX=yes | |
10964 | |
10965 if test "$GXX" = yes; then | |
10966 case $host_os in aix4.[012]|aix4.[012].*) | |
10967 # We only want to do this on AIX 4.2 and lower, the check | |
10968 # below for broken collect2 doesn't work under 4.3+ | |
10969 collect2name=`${CC} -print-prog-name=collect2` | |
10970 if test -f "$collect2name" && \ | |
10971 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10972 then | |
10973 # We have reworked collect2 | |
10974 hardcode_direct_CXX=yes | |
10975 else | |
10976 # We have old collect2 | |
10977 hardcode_direct_CXX=unsupported | |
10978 # It fails to find uninstalled libraries when the uninstalled | |
10979 # path is not listed in the libpath. Setting hardcode_minus_L | |
10980 # to unsupported forces relinking | |
10981 hardcode_minus_L_CXX=yes | |
10982 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10983 hardcode_libdir_separator_CXX= | |
10984 fi | |
10985 ;; | |
10986 esac | |
10987 shared_flag='-shared' | |
10988 if test "$aix_use_runtimelinking" = yes; then | |
10989 shared_flag="$shared_flag "'${wl}-G' | |
10990 fi | |
10991 else | |
10992 # not using gcc | |
10993 if test "$host_cpu" = ia64; then | |
10994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10995 # chokes on -Wl,-G. The following line is correct: | |
10996 shared_flag='-G' | |
10997 else | |
10998 if test "$aix_use_runtimelinking" = yes; then | |
10999 shared_flag='${wl}-G' | |
11000 else | |
11001 shared_flag='${wl}-bM:SRE' | |
11002 fi | |
11003 fi | |
11004 fi | |
11005 | |
11006 # It seems that -bexpall does not export symbols beginning with | |
11007 # underscore (_), so it is better to generate a list of symbols to export. | |
11008 always_export_symbols_CXX=yes | |
11009 if test "$aix_use_runtimelinking" = yes; then | |
11010 # Warning - without using the other runtime loading flags (-brtl), | |
11011 # -berok will link without error, but may produce a broken library. | |
11012 allow_undefined_flag_CXX='-berok' | |
11013 # Determine the default libpath from the value encoded in an empty executable. | |
11014 cat >conftest.$ac_ext <<_ACEOF | |
11015 /* confdefs.h. */ | |
11016 _ACEOF | |
11017 cat confdefs.h >>conftest.$ac_ext | |
11018 cat >>conftest.$ac_ext <<_ACEOF | |
11019 /* end confdefs.h. */ | |
11020 | |
11021 int | |
11022 main () | |
11023 { | |
11024 | |
11025 ; | |
11026 return 0; | |
11027 } | |
11028 _ACEOF | |
11029 rm -f conftest.$ac_objext conftest$ac_exeext | |
11030 if { (ac_try="$ac_link" | |
11031 case "(($ac_try" in | |
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11033 *) ac_try_echo=$ac_try;; | |
11034 esac | |
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11036 (eval "$ac_link") 2>conftest.er1 | |
11037 ac_status=$? | |
11038 grep -v '^ *+' conftest.er1 >conftest.err | |
11039 rm -f conftest.er1 | |
11040 cat conftest.err >&5 | |
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 (exit $ac_status); } && { | |
11043 test -z "$ac_cxx_werror_flag" || | |
11044 test ! -s conftest.err | |
11045 } && test -s conftest$ac_exeext && | |
11046 $as_test_x conftest$ac_exeext; then | |
11047 | |
11048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11049 }'` | |
11050 # Check for a 64-bit object if we didn't find anything. | |
11051 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11052 }'`; fi | |
11053 else | |
11054 echo "$as_me: failed program was:" >&5 | |
11055 sed 's/^/| /' conftest.$ac_ext >&5 | |
11056 | |
11057 | |
11058 fi | |
11059 | |
11060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11061 conftest$ac_exeext conftest.$ac_ext | |
11062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11063 | |
11064 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11065 | |
11066 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11067 else | |
11068 if test "$host_cpu" = ia64; then | |
11069 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11070 allow_undefined_flag_CXX="-z nodefs" | |
11071 archive_expsym_cmds_CXX="\$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" | |
11072 else | |
11073 # Determine the default libpath from the value encoded in an empty executable. | |
11074 cat >conftest.$ac_ext <<_ACEOF | |
11075 /* confdefs.h. */ | |
11076 _ACEOF | |
11077 cat confdefs.h >>conftest.$ac_ext | |
11078 cat >>conftest.$ac_ext <<_ACEOF | |
11079 /* end confdefs.h. */ | |
11080 | |
11081 int | |
11082 main () | |
11083 { | |
11084 | |
11085 ; | |
11086 return 0; | |
11087 } | |
11088 _ACEOF | |
11089 rm -f conftest.$ac_objext conftest$ac_exeext | |
11090 if { (ac_try="$ac_link" | |
11091 case "(($ac_try" in | |
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11093 *) ac_try_echo=$ac_try;; | |
11094 esac | |
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11096 (eval "$ac_link") 2>conftest.er1 | |
11097 ac_status=$? | |
11098 grep -v '^ *+' conftest.er1 >conftest.err | |
11099 rm -f conftest.er1 | |
11100 cat conftest.err >&5 | |
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11102 (exit $ac_status); } && { | |
11103 test -z "$ac_cxx_werror_flag" || | |
11104 test ! -s conftest.err | |
11105 } && test -s conftest$ac_exeext && | |
11106 $as_test_x conftest$ac_exeext; then | |
11107 | |
11108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11109 }'` | |
11110 # Check for a 64-bit object if we didn't find anything. | |
11111 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11112 }'`; fi | |
11113 else | |
11114 echo "$as_me: failed program was:" >&5 | |
11115 sed 's/^/| /' conftest.$ac_ext >&5 | |
11116 | |
11117 | |
11118 fi | |
11119 | |
11120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11121 conftest$ac_exeext conftest.$ac_ext | |
11122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11123 | |
11124 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11125 # Warning - without using the other run time loading flags, | |
11126 # -berok will link without error, but may produce a broken library. | |
11127 no_undefined_flag_CXX=' ${wl}-bernotok' | |
11128 allow_undefined_flag_CXX=' ${wl}-berok' | |
11129 # Exported symbols can be pulled into shared objects from archives | |
11130 whole_archive_flag_spec_CXX='$convenience' | |
11131 archive_cmds_need_lc_CXX=yes | |
11132 # This is similar to how AIX traditionally builds its shared libraries. | |
11133 archive_expsym_cmds_CXX="\$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' | |
11134 fi | |
11135 fi | |
11136 ;; | |
11137 | |
11138 beos*) | |
11139 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
11140 allow_undefined_flag_CXX=unsupported | |
11141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11142 # support --undefined. This deserves some investigation. FIXME | |
11143 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11144 else | |
11145 ld_shlibs_CXX=no | |
11146 fi | |
11147 ;; | |
11148 | |
11149 chorus*) | |
11150 case $cc_basename in | |
11151 *) | |
11152 # FIXME: insert proper C++ library support | |
11153 ld_shlibs_CXX=no | |
11154 ;; | |
11155 esac | |
11156 ;; | |
11157 | |
11158 cygwin* | mingw* | pw32*) | |
11159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11160 # as there is no search path for DLLs. | |
11161 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11162 allow_undefined_flag_CXX=unsupported | |
11163 always_export_symbols_CXX=no | |
11164 enable_shared_with_static_runtimes_CXX=yes | |
11165 | |
11166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
11167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11168 # If the export-symbols file already is a .def file (1st line | |
11169 # is EXPORTS), use it as is; otherwise, prepend... | |
11170 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11171 cp $export_symbols $output_objdir/$soname.def; | |
11172 else | |
11173 echo EXPORTS > $output_objdir/$soname.def; | |
11174 cat $export_symbols >> $output_objdir/$soname.def; | |
11175 fi~ | |
11176 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11177 else | |
11178 ld_shlibs_CXX=no | |
11179 fi | |
11180 ;; | |
11181 darwin* | rhapsody*) | |
11182 case $host_os in | |
11183 rhapsody* | darwin1.[012]) | |
11184 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
11185 ;; | |
11186 *) # Darwin 1.3 on | |
11187 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
11188 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11189 else | |
11190 case ${MACOSX_DEPLOYMENT_TARGET} in | |
11191 10.[012]) | |
11192 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11193 ;; | |
11194 10.*) | |
11195 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
11196 ;; | |
11197 esac | |
11198 fi | |
11199 ;; | |
11200 esac | |
11201 archive_cmds_need_lc_CXX=no | |
11202 hardcode_direct_CXX=no | |
11203 hardcode_automatic_CXX=yes | |
11204 hardcode_shlibpath_var_CXX=unsupported | |
11205 whole_archive_flag_spec_CXX='' | |
11206 link_all_deplibs_CXX=yes | |
11207 | |
11208 if test "$GXX" = yes ; then | |
11209 lt_int_apple_cc_single_mod=no | |
11210 output_verbose_link_cmd='echo' | |
11211 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
11212 lt_int_apple_cc_single_mod=yes | |
11213 fi | |
11214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11215 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11216 else | |
11217 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11218 fi | |
11219 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11221 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11222 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11223 else | |
11224 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11225 fi | |
11226 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11227 else | |
11228 case $cc_basename in | |
11229 xlc*) | |
11230 output_verbose_link_cmd='echo' | |
11231 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
11232 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11234 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11235 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11236 ;; | |
11237 *) | |
11238 ld_shlibs_CXX=no | |
11239 ;; | |
11240 esac | |
11241 fi | |
11242 ;; | |
11243 | |
11244 dgux*) | |
11245 case $cc_basename in | |
11246 ec++*) | |
11247 # FIXME: insert proper C++ library support | |
11248 ld_shlibs_CXX=no | |
11249 ;; | |
11250 ghcx*) | |
11251 # Green Hills C++ Compiler | |
11252 # FIXME: insert proper C++ library support | |
11253 ld_shlibs_CXX=no | |
11254 ;; | |
11255 *) | |
11256 # FIXME: insert proper C++ library support | |
11257 ld_shlibs_CXX=no | |
11258 ;; | |
11259 esac | |
11260 ;; | |
11261 freebsd[12]*) | |
11262 # C++ shared libraries reported to be fairly broken before switch to ELF | |
11263 ld_shlibs_CXX=no | |
11264 ;; | |
11265 freebsd-elf*) | |
11266 archive_cmds_need_lc_CXX=no | |
11267 ;; | |
11268 freebsd* | dragonfly*) | |
11269 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11270 # conventions | |
11271 ld_shlibs_CXX=yes | |
11272 ;; | |
11273 gnu*) | |
11274 ;; | |
11275 hpux9*) | |
11276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11277 hardcode_libdir_separator_CXX=: | |
11278 export_dynamic_flag_spec_CXX='${wl}-E' | |
11279 hardcode_direct_CXX=yes | |
11280 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11281 # but as the default | |
11282 # location of the library. | |
11283 | |
11284 case $cc_basename in | |
11285 CC*) | |
11286 # FIXME: insert proper C++ library support | |
11287 ld_shlibs_CXX=no | |
11288 ;; | |
11289 aCC*) | |
11290 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11291 # Commands to make compiler produce verbose output that lists | |
11292 # what "hidden" libraries, object files and flags are used when | |
11293 # linking a shared library. | |
11294 # | |
11295 # There doesn't appear to be a way to prevent this compiler from | |
11296 # explicitly linking system object files so we need to strip them | |
11297 # from the output so that they don't get included in the library | |
11298 # dependencies. | |
11299 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11300 ;; | |
11301 *) | |
11302 if test "$GXX" = yes; then | |
11303 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11304 else | |
11305 # FIXME: insert proper C++ library support | |
11306 ld_shlibs_CXX=no | |
11307 fi | |
11308 ;; | |
11309 esac | |
11310 ;; | |
11311 hpux10*|hpux11*) | |
11312 if test $with_gnu_ld = no; then | |
11313 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11314 hardcode_libdir_separator_CXX=: | |
11315 | |
11316 case $host_cpu in | |
11317 hppa*64*|ia64*) | |
11318 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
11319 ;; | |
11320 *) | |
11321 export_dynamic_flag_spec_CXX='${wl}-E' | |
11322 ;; | |
11323 esac | |
11324 fi | |
11325 case $host_cpu in | |
11326 hppa*64*|ia64*) | |
11327 hardcode_direct_CXX=no | |
11328 hardcode_shlibpath_var_CXX=no | |
11329 ;; | |
11330 *) | |
11331 hardcode_direct_CXX=yes | |
11332 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11333 # but as the default | |
11334 # location of the library. | |
11335 ;; | |
11336 esac | |
11337 | |
11338 case $cc_basename in | |
11339 CC*) | |
11340 # FIXME: insert proper C++ library support | |
11341 ld_shlibs_CXX=no | |
11342 ;; | |
11343 aCC*) | |
11344 case $host_cpu in | |
11345 hppa*64*) | |
11346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11347 ;; | |
11348 ia64*) | |
11349 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11350 ;; | |
11351 *) | |
11352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11353 ;; | |
11354 esac | |
11355 # Commands to make compiler produce verbose output that lists | |
11356 # what "hidden" libraries, object files and flags are used when | |
11357 # linking a shared library. | |
11358 # | |
11359 # There doesn't appear to be a way to prevent this compiler from | |
11360 # explicitly linking system object files so we need to strip them | |
11361 # from the output so that they don't get included in the library | |
11362 # dependencies. | |
11363 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11364 ;; | |
11365 *) | |
11366 if test "$GXX" = yes; then | |
11367 if test $with_gnu_ld = no; then | |
11368 case $host_cpu in | |
11369 hppa*64*) | |
11370 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11371 ;; | |
11372 ia64*) | |
11373 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11374 ;; | |
11375 *) | |
11376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11377 ;; | |
11378 esac | |
11379 fi | |
11380 else | |
11381 # FIXME: insert proper C++ library support | |
11382 ld_shlibs_CXX=no | |
11383 fi | |
11384 ;; | |
11385 esac | |
11386 ;; | |
11387 interix3*) | |
11388 hardcode_direct_CXX=no | |
11389 hardcode_shlibpath_var_CXX=no | |
11390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11391 export_dynamic_flag_spec_CXX='${wl}-E' | |
11392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11393 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11394 # default) and relocated if they conflict, which is a slow very memory | |
11395 # consuming and fragmenting process. To avoid this, we pick a random, | |
11396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11397 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11398 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11399 archive_expsym_cmds_CXX='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' | |
11400 ;; | |
11401 irix5* | irix6*) | |
11402 case $cc_basename in | |
11403 CC*) | |
11404 # SGI C++ | |
11405 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11406 | |
11407 # Archives containing C++ object files must be created using | |
11408 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11409 # necessary to make sure instantiated templates are included | |
11410 # in the archive. | |
11411 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11412 ;; | |
11413 *) | |
11414 if test "$GXX" = yes; then | |
11415 if test "$with_gnu_ld" = no; then | |
11416 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11417 else | |
11418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
11419 fi | |
11420 fi | |
11421 link_all_deplibs_CXX=yes | |
11422 ;; | |
11423 esac | |
11424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11425 hardcode_libdir_separator_CXX=: | |
11426 ;; | |
11427 linux* | k*bsd*-gnu) | |
11428 case $cc_basename in | |
11429 KCC*) | |
11430 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11431 | |
11432 # KCC will only create a shared library if the output file | |
11433 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11434 # to its proper name (with version) after linking. | |
11435 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11436 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
11437 # Commands to make compiler produce verbose output that lists | |
11438 # what "hidden" libraries, object files and flags are used when | |
11439 # linking a shared library. | |
11440 # | |
11441 # There doesn't appear to be a way to prevent this compiler from | |
11442 # explicitly linking system object files so we need to strip them | |
11443 # from the output so that they don't get included in the library | |
11444 # dependencies. | |
11445 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11446 | |
11447 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
11448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11449 | |
11450 # Archives containing C++ object files must be created using | |
11451 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11452 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11453 ;; | |
11454 icpc*) | |
11455 # Intel C++ | |
11456 with_gnu_ld=yes | |
11457 # version 8.0 and above of icpc choke on multiply defined symbols | |
11458 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11459 # earlier do not add the objects themselves. | |
11460 case `$CC -V 2>&1` in | |
11461 *"Version 7."*) | |
11462 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11463 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11464 ;; | |
11465 *) # Version 8.0 or newer | |
11466 tmp_idyn= | |
11467 case $host_cpu in | |
11468 ia64*) tmp_idyn=' -i_dynamic';; | |
11469 esac | |
11470 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11471 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11472 ;; | |
11473 esac | |
11474 archive_cmds_need_lc_CXX=no | |
11475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11477 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11478 ;; | |
11479 pgCC*) | |
11480 # Portland Group C++ compiler | |
11481 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11482 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11483 | |
11484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11486 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
11487 ;; | |
11488 cxx*) | |
11489 # Compaq C++ | |
11490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11491 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
11492 | |
11493 runpath_var=LD_RUN_PATH | |
11494 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11495 hardcode_libdir_separator_CXX=: | |
11496 | |
11497 # Commands to make compiler produce verbose output that lists | |
11498 # what "hidden" libraries, object files and flags are used when | |
11499 # linking a shared library. | |
11500 # | |
11501 # There doesn't appear to be a way to prevent this compiler from | |
11502 # explicitly linking system object files so we need to strip them | |
11503 # from the output so that they don't get included in the library | |
11504 # dependencies. | |
11505 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11506 ;; | |
11507 esac | |
11508 ;; | |
11509 lynxos*) | |
11510 # FIXME: insert proper C++ library support | |
11511 ld_shlibs_CXX=no | |
11512 ;; | |
11513 m88k*) | |
11514 # FIXME: insert proper C++ library support | |
11515 ld_shlibs_CXX=no | |
11516 ;; | |
11517 mvs*) | |
11518 case $cc_basename in | |
11519 cxx*) | |
11520 # FIXME: insert proper C++ library support | |
11521 ld_shlibs_CXX=no | |
11522 ;; | |
11523 *) | |
11524 # FIXME: insert proper C++ library support | |
11525 ld_shlibs_CXX=no | |
11526 ;; | |
11527 esac | |
11528 ;; | |
11529 netbsd* | netbsdelf*-gnu) | |
11530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11531 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11532 wlarc= | |
11533 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11534 hardcode_direct_CXX=yes | |
11535 hardcode_shlibpath_var_CXX=no | |
11536 fi | |
11537 # Workaround some broken pre-1.5 toolchains | |
11538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11539 ;; | |
11540 openbsd2*) | |
11541 # C++ shared libraries are fairly broken | |
11542 ld_shlibs_CXX=no | |
11543 ;; | |
11544 openbsd*) | |
11545 hardcode_direct_CXX=yes | |
11546 hardcode_shlibpath_var_CXX=no | |
11547 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11550 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11551 export_dynamic_flag_spec_CXX='${wl}-E' | |
11552 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11553 fi | |
11554 output_verbose_link_cmd='echo' | |
11555 ;; | |
11556 osf3*) | |
11557 case $cc_basename in | |
11558 KCC*) | |
11559 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11560 | |
11561 # KCC will only create a shared library if the output file | |
11562 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11563 # to its proper name (with version) after linking. | |
11564 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11565 | |
11566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11567 hardcode_libdir_separator_CXX=: | |
11568 | |
11569 # Archives containing C++ object files must be created using | |
11570 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11571 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11572 | |
11573 ;; | |
11574 RCC*) | |
11575 # Rational C++ 2.4.1 | |
11576 # FIXME: insert proper C++ library support | |
11577 ld_shlibs_CXX=no | |
11578 ;; | |
11579 cxx*) | |
11580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11581 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11582 | |
11583 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11584 hardcode_libdir_separator_CXX=: | |
11585 | |
11586 # Commands to make compiler produce verbose output that lists | |
11587 # what "hidden" libraries, object files and flags are used when | |
11588 # linking a shared library. | |
11589 # | |
11590 # There doesn't appear to be a way to prevent this compiler from | |
11591 # explicitly linking system object files so we need to strip them | |
11592 # from the output so that they don't get included in the library | |
11593 # dependencies. | |
11594 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11595 ;; | |
11596 *) | |
11597 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11598 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11599 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11600 | |
11601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11602 hardcode_libdir_separator_CXX=: | |
11603 | |
11604 # Commands to make compiler produce verbose output that lists | |
11605 # what "hidden" libraries, object files and flags are used when | |
11606 # linking a shared library. | |
11607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11608 | |
11609 else | |
11610 # FIXME: insert proper C++ library support | |
11611 ld_shlibs_CXX=no | |
11612 fi | |
11613 ;; | |
11614 esac | |
11615 ;; | |
11616 osf4* | osf5*) | |
11617 case $cc_basename in | |
11618 KCC*) | |
11619 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11620 | |
11621 # KCC will only create a shared library if the output file | |
11622 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11623 # to its proper name (with version) after linking. | |
11624 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11625 | |
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11627 hardcode_libdir_separator_CXX=: | |
11628 | |
11629 # Archives containing C++ object files must be created using | |
11630 # the KAI C++ compiler. | |
11631 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11632 ;; | |
11633 RCC*) | |
11634 # Rational C++ 2.4.1 | |
11635 # FIXME: insert proper C++ library support | |
11636 ld_shlibs_CXX=no | |
11637 ;; | |
11638 cxx*) | |
11639 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11640 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11641 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11642 echo "-hidden">> $lib.exp~ | |
11643 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11644 $rm $lib.exp' | |
11645 | |
11646 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11647 hardcode_libdir_separator_CXX=: | |
11648 | |
11649 # Commands to make compiler produce verbose output that lists | |
11650 # what "hidden" libraries, object files and flags are used when | |
11651 # linking a shared library. | |
11652 # | |
11653 # There doesn't appear to be a way to prevent this compiler from | |
11654 # explicitly linking system object files so we need to strip them | |
11655 # from the output so that they don't get included in the library | |
11656 # dependencies. | |
11657 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11658 ;; | |
11659 *) | |
11660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11662 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11663 | |
11664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11665 hardcode_libdir_separator_CXX=: | |
11666 | |
11667 # Commands to make compiler produce verbose output that lists | |
11668 # what "hidden" libraries, object files and flags are used when | |
11669 # linking a shared library. | |
11670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11671 | |
11672 else | |
11673 # FIXME: insert proper C++ library support | |
11674 ld_shlibs_CXX=no | |
11675 fi | |
11676 ;; | |
11677 esac | |
11678 ;; | |
11679 psos*) | |
11680 # FIXME: insert proper C++ library support | |
11681 ld_shlibs_CXX=no | |
11682 ;; | |
11683 sunos4*) | |
11684 case $cc_basename in | |
11685 CC*) | |
11686 # Sun C++ 4.x | |
11687 # FIXME: insert proper C++ library support | |
11688 ld_shlibs_CXX=no | |
11689 ;; | |
11690 lcc*) | |
11691 # Lucid | |
11692 # FIXME: insert proper C++ library support | |
11693 ld_shlibs_CXX=no | |
11694 ;; | |
11695 *) | |
11696 # FIXME: insert proper C++ library support | |
11697 ld_shlibs_CXX=no | |
11698 ;; | |
11699 esac | |
11700 ;; | |
11701 solaris*) | |
11702 case $cc_basename in | |
11703 CC*) | |
11704 # Sun C++ 4.2, 5.x and Centerline C++ | |
11705 archive_cmds_need_lc_CXX=yes | |
11706 no_undefined_flag_CXX=' -zdefs' | |
11707 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11708 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11709 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11710 | |
11711 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11712 hardcode_shlibpath_var_CXX=no | |
11713 case $host_os in | |
11714 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11715 *) | |
11716 # The C++ compiler is used as linker so we must use $wl | |
11717 # flag to pass the commands to the underlying system | |
11718 # linker. We must also pass each convience library through | |
11719 # to the system linker between allextract/defaultextract. | |
11720 # The C++ compiler will combine linker options so we | |
11721 # cannot just pass the convience library names through | |
11722 # without $wl. | |
11723 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
11725 ;; | |
11726 esac | |
11727 link_all_deplibs_CXX=yes | |
11728 | |
11729 output_verbose_link_cmd='echo' | |
11730 | |
11731 # Archives containing C++ object files must be created using | |
11732 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11733 # necessary to make sure instantiated templates are included | |
11734 # in the archive. | |
11735 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11736 ;; | |
11737 gcx*) | |
11738 # Green Hills C++ Compiler | |
11739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11740 | |
11741 # The C++ compiler must be used to create the archive. | |
11742 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11743 ;; | |
11744 *) | |
11745 # GNU C++ compiler with Solaris linker | |
11746 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11747 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11748 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
11749 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11751 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11752 | |
11753 # Commands to make compiler produce verbose output that lists | |
11754 # what "hidden" libraries, object files and flags are used when | |
11755 # linking a shared library. | |
11756 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11757 else | |
11758 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11759 # platform. | |
11760 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11761 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11762 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11763 | |
11764 # Commands to make compiler produce verbose output that lists | |
11765 # what "hidden" libraries, object files and flags are used when | |
11766 # linking a shared library. | |
11767 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11768 fi | |
11769 | |
11770 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11771 fi | |
11772 ;; | |
11773 esac | |
11774 ;; | |
11775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11776 no_undefined_flag_CXX='${wl}-z,text' | |
11777 archive_cmds_need_lc_CXX=no | |
11778 hardcode_shlibpath_var_CXX=no | |
11779 runpath_var='LD_RUN_PATH' | |
11780 | |
11781 case $cc_basename in | |
11782 CC*) | |
11783 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11784 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11785 ;; | |
11786 *) | |
11787 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11788 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11789 ;; | |
11790 esac | |
11791 ;; | |
11792 sysv5* | sco3.2v5* | sco5v6*) | |
11793 # Note: We can NOT use -z defs as we might desire, because we do not | |
11794 # link with -lc, and that would cause any symbols used from libc to | |
11795 # always be unresolved, which means just about no library would | |
11796 # ever link correctly. If we're not using GNU ld we use -z text | |
11797 # though, which does catch some bad symbols but isn't as heavy-handed | |
11798 # as -z defs. | |
11799 # For security reasons, it is highly recommended that you always | |
11800 # use absolute paths for naming shared libraries, and exclude the | |
11801 # DT_RUNPATH tag from executables and libraries. But doing so | |
11802 # requires that you compile everything twice, which is a pain. | |
11803 # So that behaviour is only enabled if SCOABSPATH is set to a | |
11804 # non-empty value in the environment. Most likely only useful for | |
11805 # creating official distributions of packages. | |
11806 # This is a hack until libtool officially supports absolute path | |
11807 # names for shared libraries. | |
11808 no_undefined_flag_CXX='${wl}-z,text' | |
11809 allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11810 archive_cmds_need_lc_CXX=no | |
11811 hardcode_shlibpath_var_CXX=no | |
11812 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
11813 hardcode_libdir_separator_CXX=':' | |
11814 link_all_deplibs_CXX=yes | |
11815 export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11816 runpath_var='LD_RUN_PATH' | |
11817 | |
11818 case $cc_basename in | |
11819 CC*) | |
11820 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11821 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11822 ;; | |
11823 *) | |
11824 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11825 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11826 ;; | |
11827 esac | |
11828 ;; | |
11829 tandem*) | |
11830 case $cc_basename in | |
11831 NCC*) | |
11832 # NonStop-UX NCC 3.20 | |
11833 # FIXME: insert proper C++ library support | |
11834 ld_shlibs_CXX=no | |
11835 ;; | |
11836 *) | |
11837 # FIXME: insert proper C++ library support | |
11838 ld_shlibs_CXX=no | |
11839 ;; | |
11840 esac | |
11841 ;; | |
11842 vxworks*) | |
11843 # FIXME: insert proper C++ library support | |
11844 ld_shlibs_CXX=no | |
11845 ;; | |
11846 *) | |
11847 # FIXME: insert proper C++ library support | |
11848 ld_shlibs_CXX=no | |
11849 ;; | |
11850 esac | |
11851 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11852 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
11853 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11854 | |
11855 GCC_CXX="$GXX" | |
11856 LD_CXX="$LD" | |
11857 | |
11858 | |
11859 cat > conftest.$ac_ext <<EOF | |
11860 class Foo | |
11861 { | |
11862 public: | |
11863 Foo (void) { a = 0; } | |
11864 private: | |
11865 int a; | |
11866 }; | |
11867 EOF | |
11868 | |
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11870 (eval $ac_compile) 2>&5 | |
11871 ac_status=$? | |
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 (exit $ac_status); }; then | |
11874 # Parse the compiler output and extract the necessary | |
11875 # objects, libraries and library flags. | |
11876 | |
11877 # Sentinel used to keep track of whether or not we are before | |
11878 # the conftest object file. | |
11879 pre_test_object_deps_done=no | |
11880 | |
11881 # The `*' in the case matches for architectures that use `case' in | |
11882 # $output_verbose_cmd can trigger glob expansion during the loop | |
11883 # eval without this substitution. | |
11884 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
11885 | |
11886 for p in `eval $output_verbose_link_cmd`; do | |
11887 case $p in | |
11888 | |
11889 -L* | -R* | -l*) | |
11890 # Some compilers place space between "-{L,R}" and the path. | |
11891 # Remove the space. | |
11892 if test $p = "-L" \ | |
11893 || test $p = "-R"; then | |
11894 prev=$p | |
11895 continue | |
11896 else | |
11897 prev= | |
11898 fi | |
11899 | |
11900 if test "$pre_test_object_deps_done" = no; then | |
11901 case $p in | |
11902 -L* | -R*) | |
11903 # Internal compiler library paths should come after those | |
11904 # provided the user. The postdeps already come after the | |
11905 # user supplied libs so there is no need to process them. | |
11906 if test -z "$compiler_lib_search_path_CXX"; then | |
11907 compiler_lib_search_path_CXX="${prev}${p}" | |
11908 else | |
11909 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
11910 fi | |
11911 ;; | |
11912 # The "-l" case would never come before the object being | |
11913 # linked, so don't bother handling this case. | |
11914 esac | |
11915 else | |
11916 if test -z "$postdeps_CXX"; then | |
11917 postdeps_CXX="${prev}${p}" | |
11918 else | |
11919 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
11920 fi | |
11921 fi | |
11922 ;; | |
11923 | |
11924 *.$objext) | |
11925 # This assumes that the test object file only shows up | |
11926 # once in the compiler output. | |
11927 if test "$p" = "conftest.$objext"; then | |
11928 pre_test_object_deps_done=yes | |
11929 continue | |
11930 fi | |
11931 | |
11932 if test "$pre_test_object_deps_done" = no; then | |
11933 if test -z "$predep_objects_CXX"; then | |
11934 predep_objects_CXX="$p" | |
11935 else | |
11936 predep_objects_CXX="$predep_objects_CXX $p" | |
11937 fi | |
11938 else | |
11939 if test -z "$postdep_objects_CXX"; then | |
11940 postdep_objects_CXX="$p" | |
11941 else | |
11942 postdep_objects_CXX="$postdep_objects_CXX $p" | |
11943 fi | |
11944 fi | |
11945 ;; | |
11946 | |
11947 *) ;; # Ignore the rest. | |
11948 | |
11949 esac | |
11950 done | |
11951 | |
11952 # Clean up. | |
11953 rm -f a.out a.exe | |
11954 else | |
11955 echo "libtool.m4: error: problem compiling CXX test program" | |
11956 fi | |
11957 | |
11958 $rm -f confest.$objext | |
11959 | |
11960 # PORTME: override above test on systems where it is broken | |
11961 case $host_os in | |
11962 interix3*) | |
11963 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
11964 # hack all around it, let's just trust "g++" to DTRT. | |
11965 predep_objects_CXX= | |
11966 postdep_objects_CXX= | |
11967 postdeps_CXX= | |
11968 ;; | |
11969 | |
11970 solaris*) | |
11971 case $cc_basename in | |
11972 CC*) | |
11973 # Adding this requires a known-good setup of shared libraries for | |
11974 # Sun compiler versions before 5.6, else PIC objects from an old | |
11975 # archive will be linked into the output, leading to subtle bugs. | |
11976 postdeps_CXX='-lCstd -lCrun' | |
11977 ;; | |
11978 esac | |
11979 ;; | |
11980 esac | |
11981 | |
11982 | |
11983 case " $postdeps_CXX " in | |
11984 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
11985 esac | |
11986 | |
11987 lt_prog_compiler_wl_CXX= | |
11988 lt_prog_compiler_pic_CXX= | |
11989 lt_prog_compiler_static_CXX= | |
11990 | |
11991 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11992 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
11993 | |
11994 # C++ specific cases for pic, static, wl, etc. | |
11995 if test "$GXX" = yes; then | |
11996 lt_prog_compiler_wl_CXX='-Wl,' | |
11997 lt_prog_compiler_static_CXX='-static' | |
11998 | |
11999 case $host_os in | |
12000 aix*) | |
12001 # All AIX code is PIC. | |
12002 if test "$host_cpu" = ia64; then | |
12003 # AIX 5 now supports IA64 processor | |
12004 lt_prog_compiler_static_CXX='-Bstatic' | |
12005 fi | |
12006 ;; | |
12007 amigaos*) | |
12008 # FIXME: we need at least 68020 code to build shared libraries, but | |
12009 # adding the `-m68020' flag to GCC prevents building anything better, | |
12010 # like `-m68040'. | |
12011 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12012 ;; | |
12013 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12014 # PIC is the default for these OSes. | |
12015 ;; | |
12016 mingw* | os2* | pw32*) | |
12017 # This hack is so that the source file can tell whether it is being | |
12018 # built for inclusion in a dll (and should export symbols for example). | |
12019 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12020 ;; | |
12021 darwin* | rhapsody*) | |
12022 # PIC is the default on this platform | |
12023 # Common symbols not allowed in MH_DYLIB files | |
12024 lt_prog_compiler_pic_CXX='-fno-common' | |
12025 ;; | |
12026 *djgpp*) | |
12027 # DJGPP does not support shared libraries at all | |
12028 lt_prog_compiler_pic_CXX= | |
12029 ;; | |
12030 interix3*) | |
12031 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12032 # Instead, we relocate shared libraries at runtime. | |
12033 ;; | |
12034 sysv4*MP*) | |
12035 if test -d /usr/nec; then | |
12036 lt_prog_compiler_pic_CXX=-Kconform_pic | |
12037 fi | |
12038 ;; | |
12039 hpux*) | |
12040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12041 # not for PA HP-UX. | |
12042 case $host_cpu in | |
12043 hppa*64*|ia64*) | |
12044 ;; | |
12045 *) | |
12046 lt_prog_compiler_pic_CXX='-fPIC' | |
12047 ;; | |
12048 esac | |
12049 ;; | |
12050 *) | |
12051 lt_prog_compiler_pic_CXX='-fPIC' | |
12052 ;; | |
12053 esac | |
12054 else | |
12055 case $host_os in | |
12056 aix4* | aix5*) | |
12057 # All AIX code is PIC. | |
12058 if test "$host_cpu" = ia64; then | |
12059 # AIX 5 now supports IA64 processor | |
12060 lt_prog_compiler_static_CXX='-Bstatic' | |
12061 else | |
12062 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12063 fi | |
12064 ;; | |
12065 chorus*) | |
12066 case $cc_basename in | |
12067 cxch68*) | |
12068 # Green Hills C++ Compiler | |
12069 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
12070 ;; | |
12071 esac | |
12072 ;; | |
12073 darwin*) | |
12074 # PIC is the default on this platform | |
12075 # Common symbols not allowed in MH_DYLIB files | |
12076 case $cc_basename in | |
12077 xlc*) | |
12078 lt_prog_compiler_pic_CXX='-qnocommon' | |
12079 lt_prog_compiler_wl_CXX='-Wl,' | |
12080 ;; | |
12081 esac | |
12082 ;; | |
12083 dgux*) | |
12084 case $cc_basename in | |
12085 ec++*) | |
12086 lt_prog_compiler_pic_CXX='-KPIC' | |
12087 ;; | |
12088 ghcx*) | |
12089 # Green Hills C++ Compiler | |
12090 lt_prog_compiler_pic_CXX='-pic' | |
12091 ;; | |
12092 *) | |
12093 ;; | |
12094 esac | |
12095 ;; | |
12096 freebsd* | dragonfly*) | |
12097 # FreeBSD uses GNU C++ | |
12098 ;; | |
12099 hpux9* | hpux10* | hpux11*) | |
12100 case $cc_basename in | |
12101 CC*) | |
12102 lt_prog_compiler_wl_CXX='-Wl,' | |
12103 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12104 if test "$host_cpu" != ia64; then | |
12105 lt_prog_compiler_pic_CXX='+Z' | |
12106 fi | |
12107 ;; | |
12108 aCC*) | |
12109 lt_prog_compiler_wl_CXX='-Wl,' | |
12110 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12111 case $host_cpu in | |
12112 hppa*64*|ia64*) | |
12113 # +Z the default | |
12114 ;; | |
12115 *) | |
12116 lt_prog_compiler_pic_CXX='+Z' | |
12117 ;; | |
12118 esac | |
12119 ;; | |
12120 *) | |
12121 ;; | |
12122 esac | |
12123 ;; | |
12124 interix*) | |
12125 # This is c89, which is MS Visual C++ (no shared libs) | |
12126 # Anyone wants to do a port? | |
12127 ;; | |
12128 irix5* | irix6* | nonstopux*) | |
12129 case $cc_basename in | |
12130 CC*) | |
12131 lt_prog_compiler_wl_CXX='-Wl,' | |
12132 lt_prog_compiler_static_CXX='-non_shared' | |
12133 # CC pic flag -KPIC is the default. | |
12134 ;; | |
12135 *) | |
12136 ;; | |
12137 esac | |
12138 ;; | |
12139 linux* | k*bsd*-gnu) | |
12140 case $cc_basename in | |
12141 KCC*) | |
12142 # KAI C++ Compiler | |
12143 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12144 lt_prog_compiler_pic_CXX='-fPIC' | |
12145 ;; | |
12146 icpc* | ecpc*) | |
12147 # Intel C++ | |
12148 lt_prog_compiler_wl_CXX='-Wl,' | |
12149 lt_prog_compiler_pic_CXX='-KPIC' | |
12150 lt_prog_compiler_static_CXX='-static' | |
12151 ;; | |
12152 pgCC*) | |
12153 # Portland Group C++ compiler. | |
12154 lt_prog_compiler_wl_CXX='-Wl,' | |
12155 lt_prog_compiler_pic_CXX='-fpic' | |
12156 lt_prog_compiler_static_CXX='-Bstatic' | |
12157 ;; | |
12158 cxx*) | |
12159 # Compaq C++ | |
12160 # Make sure the PIC flag is empty. It appears that all Alpha | |
12161 # Linux and Compaq Tru64 Unix objects are PIC. | |
12162 lt_prog_compiler_pic_CXX= | |
12163 lt_prog_compiler_static_CXX='-non_shared' | |
12164 ;; | |
12165 *) | |
12166 ;; | |
12167 esac | |
12168 ;; | |
12169 lynxos*) | |
12170 ;; | |
12171 m88k*) | |
12172 ;; | |
12173 mvs*) | |
12174 case $cc_basename in | |
12175 cxx*) | |
12176 lt_prog_compiler_pic_CXX='-W c,exportall' | |
12177 ;; | |
12178 *) | |
12179 ;; | |
12180 esac | |
12181 ;; | |
12182 netbsd* | netbsdelf*-gnu) | |
12183 ;; | |
12184 osf3* | osf4* | osf5*) | |
12185 case $cc_basename in | |
12186 KCC*) | |
12187 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12188 ;; | |
12189 RCC*) | |
12190 # Rational C++ 2.4.1 | |
12191 lt_prog_compiler_pic_CXX='-pic' | |
12192 ;; | |
12193 cxx*) | |
12194 # Digital/Compaq C++ | |
12195 lt_prog_compiler_wl_CXX='-Wl,' | |
12196 # Make sure the PIC flag is empty. It appears that all Alpha | |
12197 # Linux and Compaq Tru64 Unix objects are PIC. | |
12198 lt_prog_compiler_pic_CXX= | |
12199 lt_prog_compiler_static_CXX='-non_shared' | |
12200 ;; | |
12201 *) | |
12202 ;; | |
12203 esac | |
12204 ;; | |
12205 psos*) | |
12206 ;; | |
12207 solaris*) | |
12208 case $cc_basename in | |
12209 CC*) | |
12210 # Sun C++ 4.2, 5.x and Centerline C++ | |
12211 lt_prog_compiler_pic_CXX='-KPIC' | |
12212 lt_prog_compiler_static_CXX='-Bstatic' | |
12213 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12214 ;; | |
12215 gcx*) | |
12216 # Green Hills C++ Compiler | |
12217 lt_prog_compiler_pic_CXX='-PIC' | |
12218 ;; | |
12219 *) | |
12220 ;; | |
12221 esac | |
12222 ;; | |
12223 sunos4*) | |
12224 case $cc_basename in | |
12225 CC*) | |
12226 # Sun C++ 4.x | |
12227 lt_prog_compiler_pic_CXX='-pic' | |
12228 lt_prog_compiler_static_CXX='-Bstatic' | |
12229 ;; | |
12230 lcc*) | |
12231 # Lucid | |
12232 lt_prog_compiler_pic_CXX='-pic' | |
12233 ;; | |
12234 *) | |
12235 ;; | |
12236 esac | |
12237 ;; | |
12238 tandem*) | |
12239 case $cc_basename in | |
12240 NCC*) | |
12241 # NonStop-UX NCC 3.20 | |
12242 lt_prog_compiler_pic_CXX='-KPIC' | |
12243 ;; | |
12244 *) | |
12245 ;; | |
12246 esac | |
12247 ;; | |
12248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12249 case $cc_basename in | |
12250 CC*) | |
12251 lt_prog_compiler_wl_CXX='-Wl,' | |
12252 lt_prog_compiler_pic_CXX='-KPIC' | |
12253 lt_prog_compiler_static_CXX='-Bstatic' | |
12254 ;; | |
12255 esac | |
12256 ;; | |
12257 vxworks*) | |
12258 ;; | |
12259 *) | |
12260 lt_prog_compiler_can_build_shared_CXX=no | |
12261 ;; | |
12262 esac | |
12263 fi | |
12264 | |
12265 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
12266 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
12267 | |
12268 # | |
12269 # Check to make sure the PIC flag actually works. | |
12270 # | |
12271 if test -n "$lt_prog_compiler_pic_CXX"; then | |
12272 | |
12273 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12274 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
12275 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
12276 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12277 else | |
12278 lt_prog_compiler_pic_works_CXX=no | |
12279 ac_outfile=conftest.$ac_objext | |
12280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12281 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12282 # Insert the option either (1) after the last *FLAGS variable, or | |
12283 # (2) before a word containing "conftest.", or (3) at the end. | |
12284 # Note that $ac_compile itself does not contain backslashes and begins | |
12285 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12286 # The option is referenced via a variable to avoid confusing sed. | |
12287 lt_compile=`echo "$ac_compile" | $SED \ | |
12288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12290 -e 's:$: $lt_compiler_flag:'` | |
12291 (eval echo "\"\$as_me:12291: $lt_compile\"" >&5) | |
12292 (eval "$lt_compile" 2>conftest.err) | |
12293 ac_status=$? | |
12294 cat conftest.err >&5 | |
12295 echo "$as_me:12295: \$? = $ac_status" >&5 | |
12296 if (exit $ac_status) && test -s "$ac_outfile"; then | |
12297 # The compiler can only warn and ignore the option if not recognized | |
12298 # So say no if there are warnings other than the usual output. | |
12299 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12302 lt_prog_compiler_pic_works_CXX=yes | |
12303 fi | |
12304 fi | |
12305 $rm conftest* | |
12306 | |
12307 fi | |
12308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
12309 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
12310 | |
12311 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
12312 case $lt_prog_compiler_pic_CXX in | |
12313 "" | " "*) ;; | |
12314 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12315 esac | |
12316 else | |
12317 lt_prog_compiler_pic_CXX= | |
12318 lt_prog_compiler_can_build_shared_CXX=no | |
12319 fi | |
12320 | |
12321 fi | |
12322 case $host_os in | |
12323 # For platforms which do not support PIC, -DPIC is meaningless: | |
12324 *djgpp*) | |
12325 lt_prog_compiler_pic_CXX= | |
12326 ;; | |
12327 *) | |
12328 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12329 ;; | |
12330 esac | |
12331 | |
12332 # | |
12333 # Check to make sure the static flag actually works. | |
12334 # | |
12335 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12336 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12337 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
12338 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
12339 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12340 else | |
12341 lt_prog_compiler_static_works_CXX=no | |
12342 save_LDFLAGS="$LDFLAGS" | |
12343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12344 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
12345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12346 # The linker can only warn and ignore the option if not recognized | |
12347 # So say no if there are warnings | |
12348 if test -s conftest.err; then | |
12349 # Append any errors to the config.log. | |
12350 cat conftest.err 1>&5 | |
12351 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12353 if diff conftest.exp conftest.er2 >/dev/null; then | |
12354 lt_prog_compiler_static_works_CXX=yes | |
12355 fi | |
12356 else | |
12357 lt_prog_compiler_static_works_CXX=yes | |
12358 fi | |
12359 fi | |
12360 $rm conftest* | |
12361 LDFLAGS="$save_LDFLAGS" | |
12362 | |
12363 fi | |
12364 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
12365 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
12366 | |
12367 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
12368 : | |
12369 else | |
12370 lt_prog_compiler_static_CXX= | |
12371 fi | |
12372 | |
12373 | |
12374 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12375 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
12376 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12377 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12378 else | |
12379 lt_cv_prog_compiler_c_o_CXX=no | |
12380 $rm -r conftest 2>/dev/null | |
12381 mkdir conftest | |
12382 cd conftest | |
12383 mkdir out | |
12384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12385 | |
12386 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12387 # Insert the option either (1) after the last *FLAGS variable, or | |
12388 # (2) before a word containing "conftest.", or (3) at the end. | |
12389 # Note that $ac_compile itself does not contain backslashes and begins | |
12390 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12391 lt_compile=`echo "$ac_compile" | $SED \ | |
12392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12394 -e 's:$: $lt_compiler_flag:'` | |
12395 (eval echo "\"\$as_me:12395: $lt_compile\"" >&5) | |
12396 (eval "$lt_compile" 2>out/conftest.err) | |
12397 ac_status=$? | |
12398 cat out/conftest.err >&5 | |
12399 echo "$as_me:12399: \$? = $ac_status" >&5 | |
12400 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12401 then | |
12402 # The compiler can only warn and ignore the option if not recognized | |
12403 # So say no if there are warnings | |
12404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12407 lt_cv_prog_compiler_c_o_CXX=yes | |
12408 fi | |
12409 fi | |
12410 chmod u+w . 2>&5 | |
12411 $rm conftest* | |
12412 # SGI C++ compiler will create directory out/ii_files/ for | |
12413 # template instantiation | |
12414 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
12415 $rm out/* && rmdir out | |
12416 cd .. | |
12417 rmdir conftest | |
12418 $rm conftest* | |
12419 | |
12420 fi | |
12421 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12422 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12423 | |
12424 | |
12425 hard_links="nottested" | |
12426 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12427 # do not overwrite the value of need_locks provided by the user | |
12428 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12429 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
12430 hard_links=yes | |
12431 $rm conftest* | |
12432 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12433 touch conftest.a | |
12434 ln conftest.a conftest.b 2>&5 || hard_links=no | |
12435 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12436 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12437 echo "${ECHO_T}$hard_links" >&6; } | |
12438 if test "$hard_links" = no; then | |
12439 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12440 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12441 need_locks=warn | |
12442 fi | |
12443 else | |
12444 need_locks=no | |
12445 fi | |
12446 | |
12447 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12448 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
12449 | |
12450 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12451 case $host_os in | |
12452 aix4* | aix5*) | |
12453 # If we're using GNU nm, then we don't want the "-C" option. | |
12454 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
12456 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12457 else | |
12458 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12459 fi | |
12460 ;; | |
12461 pw32*) | |
12462 export_symbols_cmds_CXX="$ltdll_cmds" | |
12463 ;; | |
12464 cygwin* | mingw*) | |
12465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
12466 ;; | |
12467 linux* | k*bsd*-gnu) | |
12468 link_all_deplibs_CXX=no | |
12469 ;; | |
12470 *) | |
12471 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12472 ;; | |
12473 esac | |
12474 | |
12475 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12476 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
12477 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12478 | |
12479 # | |
12480 # Do we need to explicitly link libc? | |
12481 # | |
12482 case "x$archive_cmds_need_lc_CXX" in | |
12483 x|xyes) | |
12484 # Assume -lc should be added | |
12485 archive_cmds_need_lc_CXX=yes | |
12486 | |
12487 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12488 case $archive_cmds_CXX in | |
12489 *'~'*) | |
12490 # FIXME: we may have to deal with multi-command sequences. | |
12491 ;; | |
12492 '$CC '*) | |
12493 # Test whether the compiler implicitly links with -lc since on some | |
12494 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12495 # to ld, don't add -lc before -lgcc. | |
12496 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
12498 $rm conftest* | |
12499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12500 | |
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12502 (eval $ac_compile) 2>&5 | |
12503 ac_status=$? | |
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 (exit $ac_status); } 2>conftest.err; then | |
12506 soname=conftest | |
12507 lib=conftest | |
12508 libobjs=conftest.$ac_objext | |
12509 deplibs= | |
12510 wl=$lt_prog_compiler_wl_CXX | |
12511 pic_flag=$lt_prog_compiler_pic_CXX | |
12512 compiler_flags=-v | |
12513 linker_flags=-v | |
12514 verstring= | |
12515 output_objdir=. | |
12516 libname=conftest | |
12517 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12518 allow_undefined_flag_CXX= | |
12519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12520 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12521 ac_status=$? | |
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12523 (exit $ac_status); } | |
12524 then | |
12525 archive_cmds_need_lc_CXX=no | |
12526 else | |
12527 archive_cmds_need_lc_CXX=yes | |
12528 fi | |
12529 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12530 else | |
12531 cat conftest.err 1>&5 | |
12532 fi | |
12533 $rm conftest* | |
12534 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12535 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
12536 ;; | |
12537 esac | |
12538 fi | |
12539 ;; | |
12540 esac | |
12541 | |
12542 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
12544 library_names_spec= | |
12545 libname_spec='lib$name' | |
12546 soname_spec= | |
12547 shrext_cmds=".so" | |
12548 postinstall_cmds= | |
12549 postuninstall_cmds= | |
12550 finish_cmds= | |
12551 finish_eval= | |
12552 shlibpath_var= | |
12553 shlibpath_overrides_runpath=unknown | |
12554 version_type=none | |
12555 dynamic_linker="$host_os ld.so" | |
12556 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12557 if test "$GCC" = yes; then | |
12558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12559 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12560 # if the path contains ";" then we assume it to be the separator | |
12561 # otherwise default to the standard path separator (i.e. ":") - it is | |
12562 # assumed that no part of a normal pathname contains ";" but that should | |
12563 # okay in the real world where ";" in dirpaths is itself problematic. | |
12564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12565 else | |
12566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12567 fi | |
12568 else | |
12569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12570 fi | |
12571 need_lib_prefix=unknown | |
12572 hardcode_into_libs=no | |
12573 | |
12574 # when you set need_version to no, make sure it does not cause -set_version | |
12575 # flags to be left without arguments | |
12576 need_version=unknown | |
12577 | |
12578 case $host_os in | |
12579 aix3*) | |
12580 version_type=linux | |
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12582 shlibpath_var=LIBPATH | |
12583 | |
12584 # AIX 3 has no versioning support, so we append a major version to the name. | |
12585 soname_spec='${libname}${release}${shared_ext}$major' | |
12586 ;; | |
12587 | |
12588 aix4* | aix5*) | |
12589 version_type=linux | |
12590 need_lib_prefix=no | |
12591 need_version=no | |
12592 hardcode_into_libs=yes | |
12593 if test "$host_cpu" = ia64; then | |
12594 # AIX 5 supports IA64 | |
12595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12596 shlibpath_var=LD_LIBRARY_PATH | |
12597 else | |
12598 # With GCC up to 2.95.x, collect2 would create an import file | |
12599 # for dependence libraries. The import file would start with | |
12600 # the line `#! .'. This would cause the generated library to | |
12601 # depend on `.', always an invalid library. This was fixed in | |
12602 # development snapshots of GCC prior to 3.0. | |
12603 case $host_os in | |
12604 aix4 | aix4.[01] | aix4.[01].*) | |
12605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12606 echo ' yes ' | |
12607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12608 : | |
12609 else | |
12610 can_build_shared=no | |
12611 fi | |
12612 ;; | |
12613 esac | |
12614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12615 # soname into executable. Probably we can add versioning support to | |
12616 # collect2, so additional links can be useful in future. | |
12617 if test "$aix_use_runtimelinking" = yes; then | |
12618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12619 # instead of lib<name>.a to let people know that these are not | |
12620 # typical AIX shared libraries. | |
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12622 else | |
12623 # We preserve .a as extension for shared libraries through AIX4.2 | |
12624 # and later when we are not doing run time linking. | |
12625 library_names_spec='${libname}${release}.a $libname.a' | |
12626 soname_spec='${libname}${release}${shared_ext}$major' | |
12627 fi | |
12628 shlibpath_var=LIBPATH | |
12629 fi | |
12630 ;; | |
12631 | |
12632 amigaos*) | |
12633 library_names_spec='$libname.ixlibrary $libname.a' | |
12634 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12635 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' | |
12636 ;; | |
12637 | |
12638 beos*) | |
12639 library_names_spec='${libname}${shared_ext}' | |
12640 dynamic_linker="$host_os ld.so" | |
12641 shlibpath_var=LIBRARY_PATH | |
12642 ;; | |
12643 | |
12644 bsdi[45]*) | |
12645 version_type=linux | |
12646 need_version=no | |
12647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12648 soname_spec='${libname}${release}${shared_ext}$major' | |
12649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12650 shlibpath_var=LD_LIBRARY_PATH | |
12651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12653 # the default ld.so.conf also contains /usr/contrib/lib and | |
12654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12655 # libtool to hard-code these into programs | |
12656 ;; | |
12657 | |
12658 cygwin* | mingw* | pw32*) | |
12659 version_type=windows | |
12660 shrext_cmds=".dll" | |
12661 need_version=no | |
12662 need_lib_prefix=no | |
12663 | |
12664 case $GCC,$host_os in | |
12665 yes,cygwin* | yes,mingw* | yes,pw32*) | |
12666 library_names_spec='$libname.dll.a' | |
12667 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12668 postinstall_cmds='base_file=`basename \${file}`~ | |
12669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
12670 dldir=$destdir/`dirname \$dlpath`~ | |
12671 test -d \$dldir || mkdir -p \$dldir~ | |
12672 $install_prog $dir/$dlname \$dldir/$dlname~ | |
12673 chmod a+x \$dldir/$dlname' | |
12674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12675 dlpath=$dir/\$dldll~ | |
12676 $rm \$dlpath' | |
12677 shlibpath_overrides_runpath=yes | |
12678 | |
12679 case $host_os in | |
12680 cygwin*) | |
12681 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12684 ;; | |
12685 mingw*) | |
12686 # MinGW DLLs use traditional 'lib' prefix | |
12687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
12690 # It is most probably a Windows format PATH printed by | |
12691 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12692 # path with ; separators, and with drive letters. We can handle the | |
12693 # drive letters (cygwin fileutils understands them), so leave them, | |
12694 # especially as we might pass files found there to a mingw objdump, | |
12695 # which wouldn't understand a cygwinified path. Ahh. | |
12696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12697 else | |
12698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12699 fi | |
12700 ;; | |
12701 pw32*) | |
12702 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12704 ;; | |
12705 esac | |
12706 ;; | |
12707 | |
12708 *) | |
12709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12710 ;; | |
12711 esac | |
12712 dynamic_linker='Win32 ld.exe' | |
12713 # FIXME: first we should search . and the directory the executable is in | |
12714 shlibpath_var=PATH | |
12715 ;; | |
12716 | |
12717 darwin* | rhapsody*) | |
12718 dynamic_linker="$host_os dyld" | |
12719 version_type=darwin | |
12720 need_lib_prefix=no | |
12721 need_version=no | |
12722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12723 soname_spec='${libname}${release}${major}$shared_ext' | |
12724 shlibpath_overrides_runpath=yes | |
12725 shlibpath_var=DYLD_LIBRARY_PATH | |
12726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
12728 if test "$GCC" = yes; then | |
12729 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
12730 else | |
12731 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
12732 fi | |
12733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12734 ;; | |
12735 | |
12736 dgux*) | |
12737 version_type=linux | |
12738 need_lib_prefix=no | |
12739 need_version=no | |
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12741 soname_spec='${libname}${release}${shared_ext}$major' | |
12742 shlibpath_var=LD_LIBRARY_PATH | |
12743 ;; | |
12744 | |
12745 freebsd1*) | |
12746 dynamic_linker=no | |
12747 ;; | |
12748 | |
12749 freebsd* | dragonfly*) | |
12750 # DragonFly does not have aout. When/if they implement a new | |
12751 # versioning mechanism, adjust this. | |
12752 if test -x /usr/bin/objformat; then | |
12753 objformat=`/usr/bin/objformat` | |
12754 else | |
12755 case $host_os in | |
12756 freebsd[123]*) objformat=aout ;; | |
12757 *) objformat=elf ;; | |
12758 esac | |
12759 fi | |
12760 version_type=freebsd-$objformat | |
12761 case $version_type in | |
12762 freebsd-elf*) | |
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12764 need_version=no | |
12765 need_lib_prefix=no | |
12766 ;; | |
12767 freebsd-*) | |
12768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12769 need_version=yes | |
12770 ;; | |
12771 esac | |
12772 shlibpath_var=LD_LIBRARY_PATH | |
12773 case $host_os in | |
12774 freebsd2*) | |
12775 shlibpath_overrides_runpath=yes | |
12776 ;; | |
12777 freebsd3.[01]* | freebsdelf3.[01]*) | |
12778 shlibpath_overrides_runpath=yes | |
12779 hardcode_into_libs=yes | |
12780 ;; | |
12781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12783 shlibpath_overrides_runpath=no | |
12784 hardcode_into_libs=yes | |
12785 ;; | |
12786 freebsd*) # from 4.6 on | |
12787 shlibpath_overrides_runpath=yes | |
12788 hardcode_into_libs=yes | |
12789 ;; | |
12790 esac | |
12791 ;; | |
12792 | |
12793 gnu*) | |
12794 version_type=linux | |
12795 need_lib_prefix=no | |
12796 need_version=no | |
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12798 soname_spec='${libname}${release}${shared_ext}$major' | |
12799 shlibpath_var=LD_LIBRARY_PATH | |
12800 hardcode_into_libs=yes | |
12801 ;; | |
12802 | |
12803 hpux9* | hpux10* | hpux11*) | |
12804 # Give a soname corresponding to the major version so that dld.sl refuses to | |
12805 # link against other versions. | |
12806 version_type=sunos | |
12807 need_lib_prefix=no | |
12808 need_version=no | |
12809 case $host_cpu in | |
12810 ia64*) | |
12811 shrext_cmds='.so' | |
12812 hardcode_into_libs=yes | |
12813 dynamic_linker="$host_os dld.so" | |
12814 shlibpath_var=LD_LIBRARY_PATH | |
12815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12817 soname_spec='${libname}${release}${shared_ext}$major' | |
12818 if test "X$HPUX_IA64_MODE" = X32; then | |
12819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12820 else | |
12821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12822 fi | |
12823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12824 ;; | |
12825 hppa*64*) | |
12826 shrext_cmds='.sl' | |
12827 hardcode_into_libs=yes | |
12828 dynamic_linker="$host_os dld.sl" | |
12829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12832 soname_spec='${libname}${release}${shared_ext}$major' | |
12833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12835 ;; | |
12836 *) | |
12837 shrext_cmds='.sl' | |
12838 dynamic_linker="$host_os dld.sl" | |
12839 shlibpath_var=SHLIB_PATH | |
12840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12842 soname_spec='${libname}${release}${shared_ext}$major' | |
12843 ;; | |
12844 esac | |
12845 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12846 postinstall_cmds='chmod 555 $lib' | |
12847 ;; | |
12848 | |
12849 interix3*) | |
12850 version_type=linux | |
12851 need_lib_prefix=no | |
12852 need_version=no | |
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12854 soname_spec='${libname}${release}${shared_ext}$major' | |
12855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12856 shlibpath_var=LD_LIBRARY_PATH | |
12857 shlibpath_overrides_runpath=no | |
12858 hardcode_into_libs=yes | |
12859 ;; | |
12860 | |
12861 irix5* | irix6* | nonstopux*) | |
12862 case $host_os in | |
12863 nonstopux*) version_type=nonstopux ;; | |
12864 *) | |
12865 if test "$lt_cv_prog_gnu_ld" = yes; then | |
12866 version_type=linux | |
12867 else | |
12868 version_type=irix | |
12869 fi ;; | |
12870 esac | |
12871 need_lib_prefix=no | |
12872 need_version=no | |
12873 soname_spec='${libname}${release}${shared_ext}$major' | |
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12875 case $host_os in | |
12876 irix5* | nonstopux*) | |
12877 libsuff= shlibsuff= | |
12878 ;; | |
12879 *) | |
12880 case $LD in # libtool.m4 will add one of these switches to LD | |
12881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12882 libsuff= shlibsuff= libmagic=32-bit;; | |
12883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12884 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12886 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12887 *) libsuff= shlibsuff= libmagic=never-match;; | |
12888 esac | |
12889 ;; | |
12890 esac | |
12891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12892 shlibpath_overrides_runpath=no | |
12893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12895 hardcode_into_libs=yes | |
12896 ;; | |
12897 | |
12898 # No shared lib support for Linux oldld, aout, or coff. | |
12899 linux*oldld* | linux*aout* | linux*coff*) | |
12900 dynamic_linker=no | |
12901 ;; | |
12902 | |
12903 # This must be Linux ELF. | |
12904 linux* | k*bsd*-gnu) | |
12905 version_type=linux | |
12906 need_lib_prefix=no | |
12907 need_version=no | |
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12909 soname_spec='${libname}${release}${shared_ext}$major' | |
12910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12911 shlibpath_var=LD_LIBRARY_PATH | |
12912 shlibpath_overrides_runpath=no | |
12913 # This implies no fast_install, which is unacceptable. | |
12914 # Some rework will be needed to allow for fast_install | |
12915 # before this can be enabled. | |
12916 hardcode_into_libs=yes | |
12917 | |
12918 # Append ld.so.conf contents to the search path | |
12919 if test -f /etc/ld.so.conf; then | |
12920 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
12921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12922 fi | |
12923 | |
12924 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12925 # powerpc, because MkLinux only supported shared libraries with the | |
12926 # GNU dynamic linker. Since this was broken with cross compilers, | |
12927 # most powerpc-linux boxes support dynamic linking these days and | |
12928 # people can always --disable-shared, the test was removed, and we | |
12929 # assume the GNU/Linux dynamic linker is in use. | |
12930 dynamic_linker='GNU/Linux ld.so' | |
12931 ;; | |
12932 | |
12933 netbsdelf*-gnu) | |
12934 version_type=linux | |
12935 need_lib_prefix=no | |
12936 need_version=no | |
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12938 soname_spec='${libname}${release}${shared_ext}$major' | |
12939 shlibpath_var=LD_LIBRARY_PATH | |
12940 shlibpath_overrides_runpath=no | |
12941 hardcode_into_libs=yes | |
12942 dynamic_linker='NetBSD ld.elf_so' | |
12943 ;; | |
12944 | |
12945 netbsd*) | |
12946 version_type=sunos | |
12947 need_lib_prefix=no | |
12948 need_version=no | |
12949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12952 dynamic_linker='NetBSD (a.out) ld.so' | |
12953 else | |
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12955 soname_spec='${libname}${release}${shared_ext}$major' | |
12956 dynamic_linker='NetBSD ld.elf_so' | |
12957 fi | |
12958 shlibpath_var=LD_LIBRARY_PATH | |
12959 shlibpath_overrides_runpath=yes | |
12960 hardcode_into_libs=yes | |
12961 ;; | |
12962 | |
12963 newsos6) | |
12964 version_type=linux | |
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12966 shlibpath_var=LD_LIBRARY_PATH | |
12967 shlibpath_overrides_runpath=yes | |
12968 ;; | |
12969 | |
12970 nto-qnx*) | |
12971 version_type=linux | |
12972 need_lib_prefix=no | |
12973 need_version=no | |
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12975 soname_spec='${libname}${release}${shared_ext}$major' | |
12976 shlibpath_var=LD_LIBRARY_PATH | |
12977 shlibpath_overrides_runpath=yes | |
12978 ;; | |
12979 | |
12980 openbsd*) | |
12981 version_type=sunos | |
12982 sys_lib_dlsearch_path_spec="/usr/lib" | |
12983 need_lib_prefix=no | |
12984 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12985 case $host_os in | |
12986 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12987 *) need_version=no ;; | |
12988 esac | |
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12991 shlibpath_var=LD_LIBRARY_PATH | |
12992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12993 case $host_os in | |
12994 openbsd2.[89] | openbsd2.[89].*) | |
12995 shlibpath_overrides_runpath=no | |
12996 ;; | |
12997 *) | |
12998 shlibpath_overrides_runpath=yes | |
12999 ;; | |
13000 esac | |
13001 else | |
13002 shlibpath_overrides_runpath=yes | |
13003 fi | |
13004 ;; | |
13005 | |
13006 os2*) | |
13007 libname_spec='$name' | |
13008 shrext_cmds=".dll" | |
13009 need_lib_prefix=no | |
13010 library_names_spec='$libname${shared_ext} $libname.a' | |
13011 dynamic_linker='OS/2 ld.exe' | |
13012 shlibpath_var=LIBPATH | |
13013 ;; | |
13014 | |
13015 osf3* | osf4* | osf5*) | |
13016 version_type=osf | |
13017 need_lib_prefix=no | |
13018 need_version=no | |
13019 soname_spec='${libname}${release}${shared_ext}$major' | |
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13021 shlibpath_var=LD_LIBRARY_PATH | |
13022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13024 ;; | |
13025 | |
13026 solaris*) | |
13027 version_type=linux | |
13028 need_lib_prefix=no | |
13029 need_version=no | |
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13031 soname_spec='${libname}${release}${shared_ext}$major' | |
13032 shlibpath_var=LD_LIBRARY_PATH | |
13033 shlibpath_overrides_runpath=yes | |
13034 hardcode_into_libs=yes | |
13035 # ldd complains unless libraries are executable | |
13036 postinstall_cmds='chmod +x $lib' | |
13037 ;; | |
13038 | |
13039 sunos4*) | |
13040 version_type=sunos | |
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13043 shlibpath_var=LD_LIBRARY_PATH | |
13044 shlibpath_overrides_runpath=yes | |
13045 if test "$with_gnu_ld" = yes; then | |
13046 need_lib_prefix=no | |
13047 fi | |
13048 need_version=yes | |
13049 ;; | |
13050 | |
13051 sysv4 | sysv4.3*) | |
13052 version_type=linux | |
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13054 soname_spec='${libname}${release}${shared_ext}$major' | |
13055 shlibpath_var=LD_LIBRARY_PATH | |
13056 case $host_vendor in | |
13057 sni) | |
13058 shlibpath_overrides_runpath=no | |
13059 need_lib_prefix=no | |
13060 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
13061 runpath_var=LD_RUN_PATH | |
13062 ;; | |
13063 siemens) | |
13064 need_lib_prefix=no | |
13065 ;; | |
13066 motorola) | |
13067 need_lib_prefix=no | |
13068 need_version=no | |
13069 shlibpath_overrides_runpath=no | |
13070 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13071 ;; | |
13072 esac | |
13073 ;; | |
13074 | |
13075 sysv4*MP*) | |
13076 if test -d /usr/nec ;then | |
13077 version_type=linux | |
13078 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13079 soname_spec='$libname${shared_ext}.$major' | |
13080 shlibpath_var=LD_LIBRARY_PATH | |
13081 fi | |
13082 ;; | |
13083 | |
13084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13085 version_type=freebsd-elf | |
13086 need_lib_prefix=no | |
13087 need_version=no | |
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13089 soname_spec='${libname}${release}${shared_ext}$major' | |
13090 shlibpath_var=LD_LIBRARY_PATH | |
13091 hardcode_into_libs=yes | |
13092 if test "$with_gnu_ld" = yes; then | |
13093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13094 shlibpath_overrides_runpath=no | |
13095 else | |
13096 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13097 shlibpath_overrides_runpath=yes | |
13098 case $host_os in | |
13099 sco3.2v5*) | |
13100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13101 ;; | |
13102 esac | |
13103 fi | |
13104 sys_lib_dlsearch_path_spec='/usr/lib' | |
13105 ;; | |
13106 | |
13107 uts4*) | |
13108 version_type=linux | |
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13110 soname_spec='${libname}${release}${shared_ext}$major' | |
13111 shlibpath_var=LD_LIBRARY_PATH | |
13112 ;; | |
13113 | |
13114 *) | |
13115 dynamic_linker=no | |
13116 ;; | |
13117 esac | |
13118 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13119 echo "${ECHO_T}$dynamic_linker" >&6; } | |
13120 test "$dynamic_linker" = no && can_build_shared=no | |
13121 | |
13122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13123 if test "$GCC" = yes; then | |
13124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13125 fi | |
13126 | |
13127 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13128 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
13129 hardcode_action_CXX= | |
13130 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
13131 test -n "$runpath_var_CXX" || \ | |
13132 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
13133 | |
13134 # We can hardcode non-existant directories. | |
13135 if test "$hardcode_direct_CXX" != no && | |
13136 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13137 # have to relink, otherwise we might link with an installed library | |
13138 # when we should be linking with a yet-to-be-installed one | |
13139 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13140 test "$hardcode_minus_L_CXX" != no; then | |
13141 # Linking always hardcodes the temporary library directory. | |
13142 hardcode_action_CXX=relink | |
13143 else | |
13144 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13145 hardcode_action_CXX=immediate | |
13146 fi | |
13147 else | |
13148 # We cannot hardcode anything, or else we can only hardcode existing | |
13149 # directories. | |
13150 hardcode_action_CXX=unsupported | |
13151 fi | |
13152 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
13153 echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
13154 | |
13155 if test "$hardcode_action_CXX" = relink; then | |
13156 # Fast installation is not supported | |
13157 enable_fast_install=no | |
13158 elif test "$shlibpath_overrides_runpath" = yes || | |
13159 test "$enable_shared" = no; then | |
13160 # Fast installation is not necessary | |
13161 enable_fast_install=needless | |
13162 fi | |
13163 | |
13164 | |
13165 # The else clause should only fire when bootstrapping the | |
13166 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13167 # with your package, and you will get complaints that there are | |
13168 # no rules to generate ltmain.sh. | |
13169 if test -f "$ltmain"; then | |
13170 # See if we are running on zsh, and set the options which allow our commands through | |
13171 # without removal of \ escapes. | |
13172 if test -n "${ZSH_VERSION+set}" ; then | |
13173 setopt NO_GLOB_SUBST | |
13174 fi | |
13175 # Now quote all the things that may contain metacharacters while being | |
13176 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13177 # variables and quote the copies for generation of the libtool script. | |
13178 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
13179 SED SHELL STRIP \ | |
13180 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13181 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13182 deplibs_check_method reload_flag reload_cmds need_locks \ | |
13183 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13184 lt_cv_sys_global_symbol_to_c_name_address \ | |
13185 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13186 old_postinstall_cmds old_postuninstall_cmds \ | |
13187 compiler_CXX \ | |
13188 CC_CXX \ | |
13189 LD_CXX \ | |
13190 lt_prog_compiler_wl_CXX \ | |
13191 lt_prog_compiler_pic_CXX \ | |
13192 lt_prog_compiler_static_CXX \ | |
13193 lt_prog_compiler_no_builtin_flag_CXX \ | |
13194 export_dynamic_flag_spec_CXX \ | |
13195 thread_safe_flag_spec_CXX \ | |
13196 whole_archive_flag_spec_CXX \ | |
13197 enable_shared_with_static_runtimes_CXX \ | |
13198 old_archive_cmds_CXX \ | |
13199 old_archive_from_new_cmds_CXX \ | |
13200 predep_objects_CXX \ | |
13201 postdep_objects_CXX \ | |
13202 predeps_CXX \ | |
13203 postdeps_CXX \ | |
13204 compiler_lib_search_path_CXX \ | |
13205 archive_cmds_CXX \ | |
13206 archive_expsym_cmds_CXX \ | |
13207 postinstall_cmds_CXX \ | |
13208 postuninstall_cmds_CXX \ | |
13209 old_archive_from_expsyms_cmds_CXX \ | |
13210 allow_undefined_flag_CXX \ | |
13211 no_undefined_flag_CXX \ | |
13212 export_symbols_cmds_CXX \ | |
13213 hardcode_libdir_flag_spec_CXX \ | |
13214 hardcode_libdir_flag_spec_ld_CXX \ | |
13215 hardcode_libdir_separator_CXX \ | |
13216 hardcode_automatic_CXX \ | |
13217 module_cmds_CXX \ | |
13218 module_expsym_cmds_CXX \ | |
13219 lt_cv_prog_compiler_c_o_CXX \ | |
13220 exclude_expsyms_CXX \ | |
13221 include_expsyms_CXX; do | |
13222 | |
13223 case $var in | |
13224 old_archive_cmds_CXX | \ | |
13225 old_archive_from_new_cmds_CXX | \ | |
13226 archive_cmds_CXX | \ | |
13227 archive_expsym_cmds_CXX | \ | |
13228 module_cmds_CXX | \ | |
13229 module_expsym_cmds_CXX | \ | |
13230 old_archive_from_expsyms_cmds_CXX | \ | |
13231 export_symbols_cmds_CXX | \ | |
13232 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
13233 postinstall_cmds | postuninstall_cmds | \ | |
13234 old_postinstall_cmds | old_postuninstall_cmds | \ | |
13235 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
13236 # Double-quote double-evaled strings. | |
13237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
13238 ;; | |
13239 *) | |
13240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
13241 ;; | |
13242 esac | |
13243 done | |
13244 | |
13245 case $lt_echo in | |
13246 *'\$0 --fallback-echo"') | |
13247 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
13248 ;; | |
13249 esac | |
13250 | |
13251 cfgfile="$ofile" | |
13252 | |
13253 cat <<__EOF__ >> "$cfgfile" | |
13254 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13255 | |
13256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13257 | |
13258 # Shell to use when invoking shell scripts. | |
13259 SHELL=$lt_SHELL | |
13260 | |
13261 # Whether or not to build shared libraries. | |
13262 build_libtool_libs=$enable_shared | |
13263 | |
13264 # Whether or not to build static libraries. | |
13265 build_old_libs=$enable_static | |
13266 | |
13267 # Whether or not to add -lc for building shared libraries. | |
13268 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
13269 | |
13270 # Whether or not to disallow shared libs when runtime libs are static | |
13271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
13272 | |
13273 # Whether or not to optimize for fast installation. | |
13274 fast_install=$enable_fast_install | |
13275 | |
13276 # The host system. | |
13277 host_alias=$host_alias | |
13278 host=$host | |
13279 host_os=$host_os | |
13280 | |
13281 # The build system. | |
13282 build_alias=$build_alias | |
13283 build=$build | |
13284 build_os=$build_os | |
13285 | |
13286 # An echo program that does not interpret backslashes. | |
13287 echo=$lt_echo | |
13288 | |
13289 # The archiver. | |
13290 AR=$lt_AR | |
13291 AR_FLAGS=$lt_AR_FLAGS | |
13292 | |
13293 # A C compiler. | |
13294 LTCC=$lt_LTCC | |
13295 | |
13296 # LTCC compiler flags. | |
13297 LTCFLAGS=$lt_LTCFLAGS | |
13298 | |
13299 # A language-specific compiler. | |
13300 CC=$lt_compiler_CXX | |
13301 | |
13302 # Is the compiler the GNU C compiler? | |
13303 with_gcc=$GCC_CXX | |
13304 | |
13305 # An ERE matcher. | |
13306 EGREP=$lt_EGREP | |
13307 | |
13308 # The linker used to build libraries. | |
13309 LD=$lt_LD_CXX | |
13310 | |
13311 # Whether we need hard or soft links. | |
13312 LN_S=$lt_LN_S | |
13313 | |
13314 # A BSD-compatible nm program. | |
13315 NM=$lt_NM | |
13316 | |
13317 # A symbol stripping program | |
13318 STRIP=$lt_STRIP | |
13319 | |
13320 # Used to examine libraries when file_magic_cmd begins "file" | |
13321 MAGIC_CMD=$MAGIC_CMD | |
13322 | |
13323 # Used on cygwin: DLL creation program. | |
13324 DLLTOOL="$DLLTOOL" | |
13325 | |
13326 # Used on cygwin: object dumper. | |
13327 OBJDUMP="$OBJDUMP" | |
13328 | |
13329 # Used on cygwin: assembler. | |
13330 AS="$AS" | |
13331 | |
13332 # The name of the directory that contains temporary libtool files. | |
13333 objdir=$objdir | |
13334 | |
13335 # How to create reloadable object files. | |
13336 reload_flag=$lt_reload_flag | |
13337 reload_cmds=$lt_reload_cmds | |
13338 | |
13339 # How to pass a linker flag through the compiler. | |
13340 wl=$lt_lt_prog_compiler_wl_CXX | |
13341 | |
13342 # Object file suffix (normally "o"). | |
13343 objext="$ac_objext" | |
13344 | |
13345 # Old archive suffix (normally "a"). | |
13346 libext="$libext" | |
13347 | |
13348 # Shared library suffix (normally ".so"). | |
13349 shrext_cmds='$shrext_cmds' | |
13350 | |
13351 # Executable file suffix (normally ""). | |
13352 exeext="$exeext" | |
13353 | |
13354 # Additional compiler flags for building library objects. | |
13355 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
13356 pic_mode=$pic_mode | |
13357 | |
13358 # What is the maximum length of a command? | |
13359 max_cmd_len=$lt_cv_sys_max_cmd_len | |
13360 | |
13361 # Does compiler simultaneously support -c and -o options? | |
13362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
13363 | |
13364 # Must we lock files when doing compilation? | |
13365 need_locks=$lt_need_locks | |
13366 | |
13367 # Do we need the lib prefix for modules? | |
13368 need_lib_prefix=$need_lib_prefix | |
13369 | |
13370 # Do we need a version for libraries? | |
13371 need_version=$need_version | |
13372 | |
13373 # Whether dlopen is supported. | |
13374 dlopen_support=$enable_dlopen | |
13375 | |
13376 # Whether dlopen of programs is supported. | |
13377 dlopen_self=$enable_dlopen_self | |
13378 | |
13379 # Whether dlopen of statically linked programs is supported. | |
13380 dlopen_self_static=$enable_dlopen_self_static | |
13381 | |
13382 # Compiler flag to prevent dynamic linking. | |
13383 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
13384 | |
13385 # Compiler flag to turn off builtin functions. | |
13386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
13387 | |
13388 # Compiler flag to allow reflexive dlopens. | |
13389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
13390 | |
13391 # Compiler flag to generate shared objects directly from archives. | |
13392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
13393 | |
13394 # Compiler flag to generate thread-safe objects. | |
13395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
13396 | |
13397 # Library versioning type. | |
13398 version_type=$version_type | |
13399 | |
13400 # Format of library name prefix. | |
13401 libname_spec=$lt_libname_spec | |
13402 | |
13403 # List of archive names. First name is the real one, the rest are links. | |
13404 # The last name is the one that the linker finds with -lNAME. | |
13405 library_names_spec=$lt_library_names_spec | |
13406 | |
13407 # The coded name of the library, if different from the real name. | |
13408 soname_spec=$lt_soname_spec | |
13409 | |
13410 # Commands used to build and install an old-style archive. | |
13411 RANLIB=$lt_RANLIB | |
13412 old_archive_cmds=$lt_old_archive_cmds_CXX | |
13413 old_postinstall_cmds=$lt_old_postinstall_cmds | |
13414 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13415 | |
13416 # Create an old-style archive from a shared archive. | |
13417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
13418 | |
13419 # Create a temporary old-style archive to link instead of a shared archive. | |
13420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
13421 | |
13422 # Commands used to build and install a shared archive. | |
13423 archive_cmds=$lt_archive_cmds_CXX | |
13424 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13425 postinstall_cmds=$lt_postinstall_cmds | |
13426 postuninstall_cmds=$lt_postuninstall_cmds | |
13427 | |
13428 # Commands used to build a loadable module (assumed same as above if empty) | |
13429 module_cmds=$lt_module_cmds_CXX | |
13430 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13431 | |
13432 # Commands to strip libraries. | |
13433 old_striplib=$lt_old_striplib | |
13434 striplib=$lt_striplib | |
13435 | |
13436 # Dependencies to place before the objects being linked to create a | |
13437 # shared library. | |
13438 predep_objects=$lt_predep_objects_CXX | |
13439 | |
13440 # Dependencies to place after the objects being linked to create a | |
13441 # shared library. | |
13442 postdep_objects=$lt_postdep_objects_CXX | |
13443 | |
13444 # Dependencies to place before the objects being linked to create a | |
13445 # shared library. | |
13446 predeps=$lt_predeps_CXX | |
13447 | |
13448 # Dependencies to place after the objects being linked to create a | |
13449 # shared library. | |
13450 postdeps=$lt_postdeps_CXX | |
13451 | |
13452 # The library search path used internally by the compiler when linking | |
13453 # a shared library. | |
13454 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
13455 | |
13456 # Method to check whether dependent libraries are shared objects. | |
13457 deplibs_check_method=$lt_deplibs_check_method | |
13458 | |
13459 # Command to use when deplibs_check_method == file_magic. | |
13460 file_magic_cmd=$lt_file_magic_cmd | |
13461 | |
13462 # Flag that allows shared libraries with undefined symbols to be built. | |
13463 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13464 | |
13465 # Flag that forces no undefined symbols. | |
13466 no_undefined_flag=$lt_no_undefined_flag_CXX | |
13467 | |
13468 # Commands used to finish a libtool library installation in a directory. | |
13469 finish_cmds=$lt_finish_cmds | |
13470 | |
13471 # Same as above, but a single script fragment to be evaled but not shown. | |
13472 finish_eval=$lt_finish_eval | |
13473 | |
13474 # Take the output of nm and produce a listing of raw symbols and C names. | |
13475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13476 | |
13477 # Transform the output of nm in a proper C declaration | |
13478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13479 | |
13480 # Transform the output of nm in a C name address pair | |
13481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13482 | |
13483 # This is the shared library runtime path variable. | |
13484 runpath_var=$runpath_var | |
13485 | |
13486 # This is the shared library path variable. | |
13487 shlibpath_var=$shlibpath_var | |
13488 | |
13489 # Is shlibpath searched before the hard-coded library search path? | |
13490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13491 | |
13492 # How to hardcode a shared library path into an executable. | |
13493 hardcode_action=$hardcode_action_CXX | |
13494 | |
13495 # Whether we should hardcode library paths into libraries. | |
13496 hardcode_into_libs=$hardcode_into_libs | |
13497 | |
13498 # Flag to hardcode \$libdir into a binary during linking. | |
13499 # This must work even if \$libdir does not exist. | |
13500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13501 | |
13502 # If ld is used when linking, flag to hardcode \$libdir into | |
13503 # a binary during linking. This must work even if \$libdir does | |
13504 # not exist. | |
13505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13506 | |
13507 # Whether we need a single -rpath flag with a separated argument. | |
13508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13509 | |
13510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13511 # resulting binary. | |
13512 hardcode_direct=$hardcode_direct_CXX | |
13513 | |
13514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13515 # resulting binary. | |
13516 hardcode_minus_L=$hardcode_minus_L_CXX | |
13517 | |
13518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13519 # the resulting binary. | |
13520 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13521 | |
13522 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13523 # and all subsequent libraries and executables linked against it. | |
13524 hardcode_automatic=$hardcode_automatic_CXX | |
13525 | |
13526 # Variables whose values should be saved in libtool wrapper scripts and | |
13527 # restored at relink time. | |
13528 variables_saved_for_relink="$variables_saved_for_relink" | |
13529 | |
13530 # Whether libtool must link a program against all its dependency libraries. | |
13531 link_all_deplibs=$link_all_deplibs_CXX | |
13532 | |
13533 # Compile-time system search path for libraries | |
13534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13535 | |
13536 # Run-time system search path for libraries | |
13537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13538 | |
13539 # Fix the shell variable \$srcfile for the compiler. | |
13540 fix_srcfile_path="$fix_srcfile_path_CXX" | |
13541 | |
13542 # Set to yes if exported symbols are required. | |
13543 always_export_symbols=$always_export_symbols_CXX | |
13544 | |
13545 # The commands to list exported symbols. | |
13546 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13547 | |
13548 # The commands to extract the exported symbol list from a shared archive. | |
13549 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13550 | |
13551 # Symbols that should not be listed in the preloaded symbols. | |
13552 exclude_expsyms=$lt_exclude_expsyms_CXX | |
13553 | |
13554 # Symbols that must always be exported. | |
13555 include_expsyms=$lt_include_expsyms_CXX | |
13556 | |
13557 # ### END LIBTOOL TAG CONFIG: $tagname | |
13558 | |
13559 __EOF__ | |
13560 | |
13561 | |
13562 else | |
13563 # If there is no Makefile yet, we rely on a make rule to execute | |
13564 # `config.status --recheck' to rerun these tests and create the | |
13565 # libtool script then. | |
13566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13567 if test -f "$ltmain_in"; then | |
13568 test -f Makefile && make "$ltmain" | |
13569 fi | |
13570 fi | |
13571 | |
13572 | |
13573 ac_ext=c | |
13574 ac_cpp='$CPP $CPPFLAGS' | |
13575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13577 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13578 | |
13579 CC=$lt_save_CC | |
13580 LDCXX=$LD | |
13581 LD=$lt_save_LD | |
13582 GCC=$lt_save_GCC | |
13583 with_gnu_ldcxx=$with_gnu_ld | |
13584 with_gnu_ld=$lt_save_with_gnu_ld | |
13585 lt_cv_path_LDCXX=$lt_cv_path_LD | |
13586 lt_cv_path_LD=$lt_save_path_LD | |
13587 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13588 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13589 | |
13590 else | |
13591 tagname="" | |
13592 fi | |
13593 ;; | |
13594 | |
13595 F77) | |
13596 if test -n "$F77" && test "X$F77" != "Xno"; then | |
13597 | |
13598 ac_ext=f | |
13599 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13600 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13601 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13602 | |
13603 | |
13604 archive_cmds_need_lc_F77=no | |
13605 allow_undefined_flag_F77= | |
13606 always_export_symbols_F77=no | |
13607 archive_expsym_cmds_F77= | |
13608 export_dynamic_flag_spec_F77= | |
13609 hardcode_direct_F77=no | |
13610 hardcode_libdir_flag_spec_F77= | |
13611 hardcode_libdir_flag_spec_ld_F77= | |
13612 hardcode_libdir_separator_F77= | |
13613 hardcode_minus_L_F77=no | |
13614 hardcode_automatic_F77=no | |
13615 module_cmds_F77= | |
13616 module_expsym_cmds_F77= | |
13617 link_all_deplibs_F77=unknown | |
13618 old_archive_cmds_F77=$old_archive_cmds | |
13619 no_undefined_flag_F77= | |
13620 whole_archive_flag_spec_F77= | |
13621 enable_shared_with_static_runtimes_F77=no | |
13622 | |
13623 # Source file extension for f77 test sources. | |
13624 ac_ext=f | |
13625 | |
13626 # Object file extension for compiled f77 test sources. | |
13627 objext=o | |
13628 objext_F77=$objext | |
13629 | |
13630 # Code to be used in simple compile tests | |
13631 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13632 | |
13633 # Code to be used in simple link tests | |
13634 lt_simple_link_test_code=" program t\n end\n" | |
13635 | |
13636 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13637 | |
13638 # If no C compiler was specified, use CC. | |
13639 LTCC=${LTCC-"$CC"} | |
13640 | |
13641 # If no C compiler flags were specified, use CFLAGS. | |
13642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13643 | |
13644 # Allow CC to be a program name with arguments. | |
13645 compiler=$CC | |
13646 | |
13647 | |
13648 # save warnings/boilerplate of simple test code | |
13649 ac_outfile=conftest.$ac_objext | |
13650 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13652 _lt_compiler_boilerplate=`cat conftest.err` | |
13653 $rm conftest* | |
13654 | |
13655 ac_outfile=conftest.$ac_objext | |
13656 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
13657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13658 _lt_linker_boilerplate=`cat conftest.err` | |
13659 $rm conftest* | |
13660 | |
13661 | |
13662 # Allow CC to be a program name with arguments. | |
13663 lt_save_CC="$CC" | |
13664 CC=${F77-"f77"} | |
13665 compiler=$CC | |
13666 compiler_F77=$CC | |
13667 for cc_temp in $compiler""; do | |
13668 case $cc_temp in | |
13669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13671 \-*) ;; | |
13672 *) break;; | |
13673 esac | |
13674 done | |
13675 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13676 | |
13677 | |
13678 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13679 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
13680 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13681 echo "${ECHO_T}$can_build_shared" >&6; } | |
13682 | |
13683 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13684 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
13685 test "$can_build_shared" = "no" && enable_shared=no | |
13686 | |
13687 # On AIX, shared libraries and static libraries use the same namespace, and | |
13688 # are all built from PIC. | |
13689 case $host_os in | |
13690 aix3*) | |
13691 test "$enable_shared" = yes && enable_static=no | |
13692 if test -n "$RANLIB"; then | |
13693 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13694 postinstall_cmds='$RANLIB $lib' | |
13695 fi | |
13696 ;; | |
13697 aix4* | aix5*) | |
13698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13699 test "$enable_shared" = yes && enable_static=no | |
13700 fi | |
13701 ;; | |
13702 esac | |
13703 { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13704 echo "${ECHO_T}$enable_shared" >&6; } | |
13705 | |
13706 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13707 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
13708 # Make sure either enable_shared or enable_static is yes. | |
13709 test "$enable_shared" = yes || enable_static=yes | |
13710 { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13711 echo "${ECHO_T}$enable_static" >&6; } | |
13712 | |
13713 GCC_F77="$G77" | |
13714 LD_F77="$LD" | |
13715 | |
13716 lt_prog_compiler_wl_F77= | |
13717 lt_prog_compiler_pic_F77= | |
13718 lt_prog_compiler_static_F77= | |
13719 | |
13720 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13721 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
13722 | |
13723 if test "$GCC" = yes; then | |
13724 lt_prog_compiler_wl_F77='-Wl,' | |
13725 lt_prog_compiler_static_F77='-static' | |
13726 | |
13727 case $host_os in | |
13728 aix*) | |
13729 # All AIX code is PIC. | |
13730 if test "$host_cpu" = ia64; then | |
13731 # AIX 5 now supports IA64 processor | |
13732 lt_prog_compiler_static_F77='-Bstatic' | |
13733 fi | |
13734 ;; | |
13735 | |
13736 amigaos*) | |
13737 # FIXME: we need at least 68020 code to build shared libraries, but | |
13738 # adding the `-m68020' flag to GCC prevents building anything better, | |
13739 # like `-m68040'. | |
13740 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13741 ;; | |
13742 | |
13743 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13744 # PIC is the default for these OSes. | |
13745 ;; | |
13746 | |
13747 mingw* | pw32* | os2*) | |
13748 # This hack is so that the source file can tell whether it is being | |
13749 # built for inclusion in a dll (and should export symbols for example). | |
13750 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13751 ;; | |
13752 | |
13753 darwin* | rhapsody*) | |
13754 # PIC is the default on this platform | |
13755 # Common symbols not allowed in MH_DYLIB files | |
13756 lt_prog_compiler_pic_F77='-fno-common' | |
13757 ;; | |
13758 | |
13759 interix3*) | |
13760 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13761 # Instead, we relocate shared libraries at runtime. | |
13762 ;; | |
13763 | |
13764 msdosdjgpp*) | |
13765 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13766 # on systems that don't support them. | |
13767 lt_prog_compiler_can_build_shared_F77=no | |
13768 enable_shared=no | |
13769 ;; | |
13770 | |
13771 sysv4*MP*) | |
13772 if test -d /usr/nec; then | |
13773 lt_prog_compiler_pic_F77=-Kconform_pic | |
13774 fi | |
13775 ;; | |
13776 | |
13777 hpux*) | |
13778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13779 # not for PA HP-UX. | |
13780 case $host_cpu in | |
13781 hppa*64*|ia64*) | |
13782 # +Z the default | |
13783 ;; | |
13784 *) | |
13785 lt_prog_compiler_pic_F77='-fPIC' | |
13786 ;; | |
13787 esac | |
13788 ;; | |
13789 | |
13790 *) | |
13791 lt_prog_compiler_pic_F77='-fPIC' | |
13792 ;; | |
13793 esac | |
13794 else | |
13795 # PORTME Check for flag to pass linker flags through the system compiler. | |
13796 case $host_os in | |
13797 aix*) | |
13798 lt_prog_compiler_wl_F77='-Wl,' | |
13799 if test "$host_cpu" = ia64; then | |
13800 # AIX 5 now supports IA64 processor | |
13801 lt_prog_compiler_static_F77='-Bstatic' | |
13802 else | |
13803 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13804 fi | |
13805 ;; | |
13806 darwin*) | |
13807 # PIC is the default on this platform | |
13808 # Common symbols not allowed in MH_DYLIB files | |
13809 case $cc_basename in | |
13810 xlc*) | |
13811 lt_prog_compiler_pic_F77='-qnocommon' | |
13812 lt_prog_compiler_wl_F77='-Wl,' | |
13813 ;; | |
13814 esac | |
13815 ;; | |
13816 | |
13817 mingw* | pw32* | os2*) | |
13818 # This hack is so that the source file can tell whether it is being | |
13819 # built for inclusion in a dll (and should export symbols for example). | |
13820 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13821 ;; | |
13822 | |
13823 hpux9* | hpux10* | hpux11*) | |
13824 lt_prog_compiler_wl_F77='-Wl,' | |
13825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13826 # not for PA HP-UX. | |
13827 case $host_cpu in | |
13828 hppa*64*|ia64*) | |
13829 # +Z the default | |
13830 ;; | |
13831 *) | |
13832 lt_prog_compiler_pic_F77='+Z' | |
13833 ;; | |
13834 esac | |
13835 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13836 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13837 ;; | |
13838 | |
13839 irix5* | irix6* | nonstopux*) | |
13840 lt_prog_compiler_wl_F77='-Wl,' | |
13841 # PIC (with -KPIC) is the default. | |
13842 lt_prog_compiler_static_F77='-non_shared' | |
13843 ;; | |
13844 | |
13845 newsos6) | |
13846 lt_prog_compiler_pic_F77='-KPIC' | |
13847 lt_prog_compiler_static_F77='-Bstatic' | |
13848 ;; | |
13849 | |
13850 linux* | k*bsd*-gnu) | |
13851 case $cc_basename in | |
13852 icc* | ecc*) | |
13853 lt_prog_compiler_wl_F77='-Wl,' | |
13854 lt_prog_compiler_pic_F77='-KPIC' | |
13855 lt_prog_compiler_static_F77='-static' | |
13856 ;; | |
13857 pgcc* | pgf77* | pgf90* | pgf95*) | |
13858 # Portland Group compilers (*not* the Pentium gcc compiler, | |
13859 # which looks to be a dead project) | |
13860 lt_prog_compiler_wl_F77='-Wl,' | |
13861 lt_prog_compiler_pic_F77='-fpic' | |
13862 lt_prog_compiler_static_F77='-Bstatic' | |
13863 ;; | |
13864 ccc*) | |
13865 lt_prog_compiler_wl_F77='-Wl,' | |
13866 # All Alpha code is PIC. | |
13867 lt_prog_compiler_static_F77='-non_shared' | |
13868 ;; | |
13869 esac | |
13870 ;; | |
13871 | |
13872 osf3* | osf4* | osf5*) | |
13873 lt_prog_compiler_wl_F77='-Wl,' | |
13874 # All OSF/1 code is PIC. | |
13875 lt_prog_compiler_static_F77='-non_shared' | |
13876 ;; | |
13877 | |
13878 solaris*) | |
13879 lt_prog_compiler_pic_F77='-KPIC' | |
13880 lt_prog_compiler_static_F77='-Bstatic' | |
13881 case $cc_basename in | |
13882 f77* | f90* | f95*) | |
13883 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13884 *) | |
13885 lt_prog_compiler_wl_F77='-Wl,';; | |
13886 esac | |
13887 ;; | |
13888 | |
13889 sunos4*) | |
13890 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13891 lt_prog_compiler_pic_F77='-PIC' | |
13892 lt_prog_compiler_static_F77='-Bstatic' | |
13893 ;; | |
13894 | |
13895 sysv4 | sysv4.2uw2* | sysv4.3*) | |
13896 lt_prog_compiler_wl_F77='-Wl,' | |
13897 lt_prog_compiler_pic_F77='-KPIC' | |
13898 lt_prog_compiler_static_F77='-Bstatic' | |
13899 ;; | |
13900 | |
13901 sysv4*MP*) | |
13902 if test -d /usr/nec ;then | |
13903 lt_prog_compiler_pic_F77='-Kconform_pic' | |
13904 lt_prog_compiler_static_F77='-Bstatic' | |
13905 fi | |
13906 ;; | |
13907 | |
13908 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13909 lt_prog_compiler_wl_F77='-Wl,' | |
13910 lt_prog_compiler_pic_F77='-KPIC' | |
13911 lt_prog_compiler_static_F77='-Bstatic' | |
13912 ;; | |
13913 | |
13914 unicos*) | |
13915 lt_prog_compiler_wl_F77='-Wl,' | |
13916 lt_prog_compiler_can_build_shared_F77=no | |
13917 ;; | |
13918 | |
13919 uts4*) | |
13920 lt_prog_compiler_pic_F77='-pic' | |
13921 lt_prog_compiler_static_F77='-Bstatic' | |
13922 ;; | |
13923 | |
13924 *) | |
13925 lt_prog_compiler_can_build_shared_F77=no | |
13926 ;; | |
13927 esac | |
13928 fi | |
13929 | |
13930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13931 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | |
13932 | |
13933 # | |
13934 # Check to make sure the PIC flag actually works. | |
13935 # | |
13936 if test -n "$lt_prog_compiler_pic_F77"; then | |
13937 | |
13938 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13939 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | |
13940 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13941 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13942 else | |
13943 lt_prog_compiler_pic_works_F77=no | |
13944 ac_outfile=conftest.$ac_objext | |
13945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13946 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13947 # Insert the option either (1) after the last *FLAGS variable, or | |
13948 # (2) before a word containing "conftest.", or (3) at the end. | |
13949 # Note that $ac_compile itself does not contain backslashes and begins | |
13950 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13951 # The option is referenced via a variable to avoid confusing sed. | |
13952 lt_compile=`echo "$ac_compile" | $SED \ | |
13953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13955 -e 's:$: $lt_compiler_flag:'` | |
13956 (eval echo "\"\$as_me:13956: $lt_compile\"" >&5) | |
13957 (eval "$lt_compile" 2>conftest.err) | |
13958 ac_status=$? | |
13959 cat conftest.err >&5 | |
13960 echo "$as_me:13960: \$? = $ac_status" >&5 | |
13961 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13962 # The compiler can only warn and ignore the option if not recognized | |
13963 # So say no if there are warnings other than the usual output. | |
13964 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13967 lt_prog_compiler_pic_works_F77=yes | |
13968 fi | |
13969 fi | |
13970 $rm conftest* | |
13971 | |
13972 fi | |
13973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13974 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | |
13975 | |
13976 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13977 case $lt_prog_compiler_pic_F77 in | |
13978 "" | " "*) ;; | |
13979 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13980 esac | |
13981 else | |
13982 lt_prog_compiler_pic_F77= | |
13983 lt_prog_compiler_can_build_shared_F77=no | |
13984 fi | |
13985 | |
13986 fi | |
13987 case $host_os in | |
13988 # For platforms which do not support PIC, -DPIC is meaningless: | |
13989 *djgpp*) | |
13990 lt_prog_compiler_pic_F77= | |
13991 ;; | |
13992 *) | |
13993 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13994 ;; | |
13995 esac | |
13996 | |
13997 # | |
13998 # Check to make sure the static flag actually works. | |
13999 # | |
14000 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
14001 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14002 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
14003 if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
14004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14005 else | |
14006 lt_prog_compiler_static_works_F77=no | |
14007 save_LDFLAGS="$LDFLAGS" | |
14008 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14009 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
14010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14011 # The linker can only warn and ignore the option if not recognized | |
14012 # So say no if there are warnings | |
14013 if test -s conftest.err; then | |
14014 # Append any errors to the config.log. | |
14015 cat conftest.err 1>&5 | |
14016 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14018 if diff conftest.exp conftest.er2 >/dev/null; then | |
14019 lt_prog_compiler_static_works_F77=yes | |
14020 fi | |
14021 else | |
14022 lt_prog_compiler_static_works_F77=yes | |
14023 fi | |
14024 fi | |
14025 $rm conftest* | |
14026 LDFLAGS="$save_LDFLAGS" | |
14027 | |
14028 fi | |
14029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
14030 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | |
14031 | |
14032 if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
14033 : | |
14034 else | |
14035 lt_prog_compiler_static_F77= | |
14036 fi | |
14037 | |
14038 | |
14039 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14040 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
14041 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
14042 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14043 else | |
14044 lt_cv_prog_compiler_c_o_F77=no | |
14045 $rm -r conftest 2>/dev/null | |
14046 mkdir conftest | |
14047 cd conftest | |
14048 mkdir out | |
14049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14050 | |
14051 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14052 # Insert the option either (1) after the last *FLAGS variable, or | |
14053 # (2) before a word containing "conftest.", or (3) at the end. | |
14054 # Note that $ac_compile itself does not contain backslashes and begins | |
14055 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14056 lt_compile=`echo "$ac_compile" | $SED \ | |
14057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14059 -e 's:$: $lt_compiler_flag:'` | |
14060 (eval echo "\"\$as_me:14060: $lt_compile\"" >&5) | |
14061 (eval "$lt_compile" 2>out/conftest.err) | |
14062 ac_status=$? | |
14063 cat out/conftest.err >&5 | |
14064 echo "$as_me:14064: \$? = $ac_status" >&5 | |
14065 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14066 then | |
14067 # The compiler can only warn and ignore the option if not recognized | |
14068 # So say no if there are warnings | |
14069 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14072 lt_cv_prog_compiler_c_o_F77=yes | |
14073 fi | |
14074 fi | |
14075 chmod u+w . 2>&5 | |
14076 $rm conftest* | |
14077 # SGI C++ compiler will create directory out/ii_files/ for | |
14078 # template instantiation | |
14079 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
14080 $rm out/* && rmdir out | |
14081 cd .. | |
14082 rmdir conftest | |
14083 $rm conftest* | |
14084 | |
14085 fi | |
14086 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
14087 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | |
14088 | |
14089 | |
14090 hard_links="nottested" | |
14091 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
14092 # do not overwrite the value of need_locks provided by the user | |
14093 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
14094 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
14095 hard_links=yes | |
14096 $rm conftest* | |
14097 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14098 touch conftest.a | |
14099 ln conftest.a conftest.b 2>&5 || hard_links=no | |
14100 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14101 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
14102 echo "${ECHO_T}$hard_links" >&6; } | |
14103 if test "$hard_links" = no; then | |
14104 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14105 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14106 need_locks=warn | |
14107 fi | |
14108 else | |
14109 need_locks=no | |
14110 fi | |
14111 | |
14112 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14113 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
14114 | |
14115 runpath_var= | |
14116 allow_undefined_flag_F77= | |
14117 enable_shared_with_static_runtimes_F77=no | |
14118 archive_cmds_F77= | |
14119 archive_expsym_cmds_F77= | |
14120 old_archive_From_new_cmds_F77= | |
14121 old_archive_from_expsyms_cmds_F77= | |
14122 export_dynamic_flag_spec_F77= | |
14123 whole_archive_flag_spec_F77= | |
14124 thread_safe_flag_spec_F77= | |
14125 hardcode_libdir_flag_spec_F77= | |
14126 hardcode_libdir_flag_spec_ld_F77= | |
14127 hardcode_libdir_separator_F77= | |
14128 hardcode_direct_F77=no | |
14129 hardcode_minus_L_F77=no | |
14130 hardcode_shlibpath_var_F77=unsupported | |
14131 link_all_deplibs_F77=unknown | |
14132 hardcode_automatic_F77=no | |
14133 module_cmds_F77= | |
14134 module_expsym_cmds_F77= | |
14135 always_export_symbols_F77=no | |
14136 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14137 # include_expsyms should be a list of space-separated symbols to be *always* | |
14138 # included in the symbol list | |
14139 include_expsyms_F77= | |
14140 # exclude_expsyms can be an extended regexp of symbols to exclude | |
14141 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14142 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14143 # as well as any symbol that contains `d'. | |
14144 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
14145 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
14146 # platforms (ab)use it in PIC code, but their linkers get confused if | |
14147 # the symbol is explicitly referenced. Since portable code cannot | |
14148 # rely on this symbol name, it's probably fine to never include it in | |
14149 # preloaded symbol tables. | |
14150 extract_expsyms_cmds= | |
14151 # Just being paranoid about ensuring that cc_basename is set. | |
14152 for cc_temp in $compiler""; do | |
14153 case $cc_temp in | |
14154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14156 \-*) ;; | |
14157 *) break;; | |
14158 esac | |
14159 done | |
14160 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
14161 | |
14162 case $host_os in | |
14163 cygwin* | mingw* | pw32*) | |
14164 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
14165 # When not using gcc, we currently assume that we are using | |
14166 # Microsoft Visual C++. | |
14167 if test "$GCC" != yes; then | |
14168 with_gnu_ld=no | |
14169 fi | |
14170 ;; | |
14171 interix*) | |
14172 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14173 with_gnu_ld=yes | |
14174 ;; | |
14175 openbsd*) | |
14176 with_gnu_ld=no | |
14177 ;; | |
14178 esac | |
14179 | |
14180 ld_shlibs_F77=yes | |
14181 if test "$with_gnu_ld" = yes; then | |
14182 # If archive_cmds runs LD, not CC, wlarc should be empty | |
14183 wlarc='${wl}' | |
14184 | |
14185 # Set some defaults for GNU ld with shared library support. These | |
14186 # are reset later if shared libraries are not supported. Putting them | |
14187 # here allows them to be overridden if necessary. | |
14188 runpath_var=LD_RUN_PATH | |
14189 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
14190 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
14191 # ancient GNU ld didn't support --whole-archive et. al. | |
14192 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
14193 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14194 else | |
14195 whole_archive_flag_spec_F77= | |
14196 fi | |
14197 supports_anon_versioning=no | |
14198 case `$LD -v 2>/dev/null` in | |
14199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
14200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14202 *\ 2.11.*) ;; # other 2.11 versions | |
14203 *) supports_anon_versioning=yes ;; | |
14204 esac | |
14205 | |
14206 # See if GNU ld supports shared libraries. | |
14207 case $host_os in | |
14208 aix3* | aix4* | aix5*) | |
14209 # On AIX/PPC, the GNU linker is very broken | |
14210 if test "$host_cpu" != ia64; then | |
14211 ld_shlibs_F77=no | |
14212 cat <<EOF 1>&2 | |
14213 | |
14214 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
14215 *** to be unable to reliably create shared libraries on AIX. | |
14216 *** Therefore, libtool is disabling shared libraries support. If you | |
14217 *** really care for shared libraries, you may want to modify your PATH | |
14218 *** so that a non-GNU linker is found, and then restart. | |
14219 | |
14220 EOF | |
14221 fi | |
14222 ;; | |
14223 | |
14224 amigaos*) | |
14225 archive_cmds_F77='$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)' | |
14226 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14227 hardcode_minus_L_F77=yes | |
14228 | |
14229 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
14230 # that the semantics of dynamic libraries on AmigaOS, at least up | |
14231 # to version 4, is to share data among multiple programs linked | |
14232 # with the same dynamic library. Since this doesn't match the | |
14233 # behavior of shared libraries on other platforms, we can't use | |
14234 # them. | |
14235 ld_shlibs_F77=no | |
14236 ;; | |
14237 | |
14238 beos*) | |
14239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14240 allow_undefined_flag_F77=unsupported | |
14241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14242 # support --undefined. This deserves some investigation. FIXME | |
14243 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14244 else | |
14245 ld_shlibs_F77=no | |
14246 fi | |
14247 ;; | |
14248 | |
14249 cygwin* | mingw* | pw32*) | |
14250 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
14251 # as there is no search path for DLLs. | |
14252 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14253 allow_undefined_flag_F77=unsupported | |
14254 always_export_symbols_F77=no | |
14255 enable_shared_with_static_runtimes_F77=yes | |
14256 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
14257 | |
14258 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
14259 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14260 # If the export-symbols file already is a .def file (1st line | |
14261 # is EXPORTS), use it as is; otherwise, prepend... | |
14262 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14263 cp $export_symbols $output_objdir/$soname.def; | |
14264 else | |
14265 echo EXPORTS > $output_objdir/$soname.def; | |
14266 cat $export_symbols >> $output_objdir/$soname.def; | |
14267 fi~ | |
14268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14269 else | |
14270 ld_shlibs_F77=no | |
14271 fi | |
14272 ;; | |
14273 | |
14274 interix3*) | |
14275 hardcode_direct_F77=no | |
14276 hardcode_shlibpath_var_F77=no | |
14277 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14278 export_dynamic_flag_spec_F77='${wl}-E' | |
14279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14280 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14281 # default) and relocated if they conflict, which is a slow very memory | |
14282 # consuming and fragmenting process. To avoid this, we pick a random, | |
14283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14284 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14285 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
14286 archive_expsym_cmds_F77='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' | |
14287 ;; | |
14288 | |
14289 linux* | k*bsd*-gnu) | |
14290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14291 tmp_addflag= | |
14292 case $cc_basename,$host_cpu in | |
14293 pgcc*) # Portland Group C compiler | |
14294 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
14295 tmp_addflag=' $pic_flag' | |
14296 ;; | |
14297 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
14298 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
14299 tmp_addflag=' $pic_flag -Mnomain' ;; | |
14300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14301 tmp_addflag=' -i_dynamic' ;; | |
14302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14303 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14304 ifc* | ifort*) # Intel Fortran compiler | |
14305 tmp_addflag=' -nofor_main' ;; | |
14306 esac | |
14307 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14308 | |
14309 if test $supports_anon_versioning = yes; then | |
14310 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
14311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14312 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14313 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14314 fi | |
14315 link_all_deplibs_F77=no | |
14316 else | |
14317 ld_shlibs_F77=no | |
14318 fi | |
14319 ;; | |
14320 | |
14321 netbsd* | netbsdelf*-gnu) | |
14322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14323 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14324 wlarc= | |
14325 else | |
14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14328 fi | |
14329 ;; | |
14330 | |
14331 solaris*) | |
14332 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
14333 ld_shlibs_F77=no | |
14334 cat <<EOF 1>&2 | |
14335 | |
14336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14337 *** create shared libraries on Solaris systems. Therefore, libtool | |
14338 *** is disabling shared libraries support. We urge you to upgrade GNU | |
14339 *** binutils to release 2.9.1 or newer. Another option is to modify | |
14340 *** your PATH or compiler configuration so that the native linker is | |
14341 *** used, and then restart. | |
14342 | |
14343 EOF | |
14344 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14347 else | |
14348 ld_shlibs_F77=no | |
14349 fi | |
14350 ;; | |
14351 | |
14352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14353 case `$LD -v 2>&1` in | |
14354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14355 ld_shlibs_F77=no | |
14356 cat <<_LT_EOF 1>&2 | |
14357 | |
14358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14359 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14360 *** is disabling shared libraries support. We urge you to upgrade GNU | |
14361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14362 *** your PATH or compiler configuration so that the native linker is | |
14363 *** used, and then restart. | |
14364 | |
14365 _LT_EOF | |
14366 ;; | |
14367 *) | |
14368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14369 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
14370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
14371 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
14372 else | |
14373 ld_shlibs_F77=no | |
14374 fi | |
14375 ;; | |
14376 esac | |
14377 ;; | |
14378 | |
14379 sunos4*) | |
14380 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14381 wlarc= | |
14382 hardcode_direct_F77=yes | |
14383 hardcode_shlibpath_var_F77=no | |
14384 ;; | |
14385 | |
14386 *) | |
14387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14389 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14390 else | |
14391 ld_shlibs_F77=no | |
14392 fi | |
14393 ;; | |
14394 esac | |
14395 | |
14396 if test "$ld_shlibs_F77" = no; then | |
14397 runpath_var= | |
14398 hardcode_libdir_flag_spec_F77= | |
14399 export_dynamic_flag_spec_F77= | |
14400 whole_archive_flag_spec_F77= | |
14401 fi | |
14402 else | |
14403 # PORTME fill in a description of your system's linker (not GNU ld) | |
14404 case $host_os in | |
14405 aix3*) | |
14406 allow_undefined_flag_F77=unsupported | |
14407 always_export_symbols_F77=yes | |
14408 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
14409 # Note: this linker hardcodes the directories in LIBPATH if there | |
14410 # are no directories specified by -L. | |
14411 hardcode_minus_L_F77=yes | |
14412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14413 # Neither direct hardcoding nor static linking is supported with a | |
14414 # broken collect2. | |
14415 hardcode_direct_F77=unsupported | |
14416 fi | |
14417 ;; | |
14418 | |
14419 aix4* | aix5*) | |
14420 if test "$host_cpu" = ia64; then | |
14421 # On IA64, the linker does run time linking by default, so we don't | |
14422 # have to do anything special. | |
14423 aix_use_runtimelinking=no | |
14424 exp_sym_flag='-Bexport' | |
14425 no_entry_flag="" | |
14426 else | |
14427 # If we're using GNU nm, then we don't want the "-C" option. | |
14428 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14430 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14431 else | |
14432 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14433 fi | |
14434 aix_use_runtimelinking=no | |
14435 | |
14436 # Test if we are trying to use run time linking or normal | |
14437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14438 # need to do runtime linking. | |
14439 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14440 for ld_flag in $LDFLAGS; do | |
14441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14442 aix_use_runtimelinking=yes | |
14443 break | |
14444 fi | |
14445 done | |
14446 ;; | |
14447 esac | |
14448 | |
14449 exp_sym_flag='-bexport' | |
14450 no_entry_flag='-bnoentry' | |
14451 fi | |
14452 | |
14453 # When large executables or shared objects are built, AIX ld can | |
14454 # have problems creating the table of contents. If linking a library | |
14455 # or program results in "error TOC overflow" add -mminimal-toc to | |
14456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14458 | |
14459 archive_cmds_F77='' | |
14460 hardcode_direct_F77=yes | |
14461 hardcode_libdir_separator_F77=':' | |
14462 link_all_deplibs_F77=yes | |
14463 | |
14464 if test "$GCC" = yes; then | |
14465 case $host_os in aix4.[012]|aix4.[012].*) | |
14466 # We only want to do this on AIX 4.2 and lower, the check | |
14467 # below for broken collect2 doesn't work under 4.3+ | |
14468 collect2name=`${CC} -print-prog-name=collect2` | |
14469 if test -f "$collect2name" && \ | |
14470 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14471 then | |
14472 # We have reworked collect2 | |
14473 hardcode_direct_F77=yes | |
14474 else | |
14475 # We have old collect2 | |
14476 hardcode_direct_F77=unsupported | |
14477 # It fails to find uninstalled libraries when the uninstalled | |
14478 # path is not listed in the libpath. Setting hardcode_minus_L | |
14479 # to unsupported forces relinking | |
14480 hardcode_minus_L_F77=yes | |
14481 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14482 hardcode_libdir_separator_F77= | |
14483 fi | |
14484 ;; | |
14485 esac | |
14486 shared_flag='-shared' | |
14487 if test "$aix_use_runtimelinking" = yes; then | |
14488 shared_flag="$shared_flag "'${wl}-G' | |
14489 fi | |
14490 else | |
14491 # not using gcc | |
14492 if test "$host_cpu" = ia64; then | |
14493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14494 # chokes on -Wl,-G. The following line is correct: | |
14495 shared_flag='-G' | |
14496 else | |
14497 if test "$aix_use_runtimelinking" = yes; then | |
14498 shared_flag='${wl}-G' | |
14499 else | |
14500 shared_flag='${wl}-bM:SRE' | |
14501 fi | |
14502 fi | |
14503 fi | |
14504 | |
14505 # It seems that -bexpall does not export symbols beginning with | |
14506 # underscore (_), so it is better to generate a list of symbols to export. | |
14507 always_export_symbols_F77=yes | |
14508 if test "$aix_use_runtimelinking" = yes; then | |
14509 # Warning - without using the other runtime loading flags (-brtl), | |
14510 # -berok will link without error, but may produce a broken library. | |
14511 allow_undefined_flag_F77='-berok' | |
14512 # Determine the default libpath from the value encoded in an empty executable. | |
14513 cat >conftest.$ac_ext <<_ACEOF | |
14514 program main | |
14515 | |
14516 end | |
14517 _ACEOF | |
14518 rm -f conftest.$ac_objext conftest$ac_exeext | |
14519 if { (ac_try="$ac_link" | |
14520 case "(($ac_try" in | |
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14522 *) ac_try_echo=$ac_try;; | |
14523 esac | |
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14525 (eval "$ac_link") 2>conftest.er1 | |
14526 ac_status=$? | |
14527 grep -v '^ *+' conftest.er1 >conftest.err | |
14528 rm -f conftest.er1 | |
14529 cat conftest.err >&5 | |
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14531 (exit $ac_status); } && { | |
14532 test -z "$ac_f77_werror_flag" || | |
14533 test ! -s conftest.err | |
14534 } && test -s conftest$ac_exeext && | |
14535 $as_test_x conftest$ac_exeext; then | |
14536 | |
14537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14538 }'` | |
14539 # Check for a 64-bit object if we didn't find anything. | |
14540 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14541 }'`; fi | |
14542 else | |
14543 echo "$as_me: failed program was:" >&5 | |
14544 sed 's/^/| /' conftest.$ac_ext >&5 | |
14545 | |
14546 | |
14547 fi | |
14548 | |
14549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14550 conftest$ac_exeext conftest.$ac_ext | |
14551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14552 | |
14553 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14554 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
14555 else | |
14556 if test "$host_cpu" = ia64; then | |
14557 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14558 allow_undefined_flag_F77="-z nodefs" | |
14559 archive_expsym_cmds_F77="\$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" | |
14560 else | |
14561 # Determine the default libpath from the value encoded in an empty executable. | |
14562 cat >conftest.$ac_ext <<_ACEOF | |
14563 program main | |
14564 | |
14565 end | |
14566 _ACEOF | |
14567 rm -f conftest.$ac_objext conftest$ac_exeext | |
14568 if { (ac_try="$ac_link" | |
14569 case "(($ac_try" in | |
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14571 *) ac_try_echo=$ac_try;; | |
14572 esac | |
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14574 (eval "$ac_link") 2>conftest.er1 | |
14575 ac_status=$? | |
14576 grep -v '^ *+' conftest.er1 >conftest.err | |
14577 rm -f conftest.er1 | |
14578 cat conftest.err >&5 | |
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14580 (exit $ac_status); } && { | |
14581 test -z "$ac_f77_werror_flag" || | |
14582 test ! -s conftest.err | |
14583 } && test -s conftest$ac_exeext && | |
14584 $as_test_x conftest$ac_exeext; then | |
14585 | |
14586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14587 }'` | |
14588 # Check for a 64-bit object if we didn't find anything. | |
14589 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14590 }'`; fi | |
14591 else | |
14592 echo "$as_me: failed program was:" >&5 | |
14593 sed 's/^/| /' conftest.$ac_ext >&5 | |
14594 | |
14595 | |
14596 fi | |
14597 | |
14598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14599 conftest$ac_exeext conftest.$ac_ext | |
14600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14601 | |
14602 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14603 # Warning - without using the other run time loading flags, | |
14604 # -berok will link without error, but may produce a broken library. | |
14605 no_undefined_flag_F77=' ${wl}-bernotok' | |
14606 allow_undefined_flag_F77=' ${wl}-berok' | |
14607 # Exported symbols can be pulled into shared objects from archives | |
14608 whole_archive_flag_spec_F77='$convenience' | |
14609 archive_cmds_need_lc_F77=yes | |
14610 # This is similar to how AIX traditionally builds its shared libraries. | |
14611 archive_expsym_cmds_F77="\$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' | |
14612 fi | |
14613 fi | |
14614 ;; | |
14615 | |
14616 amigaos*) | |
14617 archive_cmds_F77='$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)' | |
14618 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14619 hardcode_minus_L_F77=yes | |
14620 # see comment about different semantics on the GNU ld section | |
14621 ld_shlibs_F77=no | |
14622 ;; | |
14623 | |
14624 bsdi[45]*) | |
14625 export_dynamic_flag_spec_F77=-rdynamic | |
14626 ;; | |
14627 | |
14628 cygwin* | mingw* | pw32*) | |
14629 # When not using gcc, we currently assume that we are using | |
14630 # Microsoft Visual C++. | |
14631 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14632 # no search path for DLLs. | |
14633 hardcode_libdir_flag_spec_F77=' ' | |
14634 allow_undefined_flag_F77=unsupported | |
14635 # Tell ltmain to make .lib files, not .a files. | |
14636 libext=lib | |
14637 # Tell ltmain to make .dll files, not .so files. | |
14638 shrext_cmds=".dll" | |
14639 # FIXME: Setting linknames here is a bad hack. | |
14640 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14641 # The linker will automatically build a .lib file if we build a DLL. | |
14642 old_archive_From_new_cmds_F77='true' | |
14643 # FIXME: Should let the user specify the lib program. | |
14644 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
14645 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
14646 enable_shared_with_static_runtimes_F77=yes | |
14647 ;; | |
14648 | |
14649 darwin* | rhapsody*) | |
14650 case $host_os in | |
14651 rhapsody* | darwin1.[012]) | |
14652 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14653 ;; | |
14654 *) # Darwin 1.3 on | |
14655 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14656 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14657 else | |
14658 case ${MACOSX_DEPLOYMENT_TARGET} in | |
14659 10.[012]) | |
14660 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14661 ;; | |
14662 10.*) | |
14663 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14664 ;; | |
14665 esac | |
14666 fi | |
14667 ;; | |
14668 esac | |
14669 archive_cmds_need_lc_F77=no | |
14670 hardcode_direct_F77=no | |
14671 hardcode_automatic_F77=yes | |
14672 hardcode_shlibpath_var_F77=unsupported | |
14673 whole_archive_flag_spec_F77='' | |
14674 link_all_deplibs_F77=yes | |
14675 if test "$GCC" = yes ; then | |
14676 output_verbose_link_cmd='echo' | |
14677 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14678 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14680 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14681 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14682 else | |
14683 case $cc_basename in | |
14684 xlc*) | |
14685 output_verbose_link_cmd='echo' | |
14686 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14687 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14689 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14690 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14691 ;; | |
14692 *) | |
14693 ld_shlibs_F77=no | |
14694 ;; | |
14695 esac | |
14696 fi | |
14697 ;; | |
14698 | |
14699 dgux*) | |
14700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14701 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14702 hardcode_shlibpath_var_F77=no | |
14703 ;; | |
14704 | |
14705 freebsd1*) | |
14706 ld_shlibs_F77=no | |
14707 ;; | |
14708 | |
14709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14710 # support. Future versions do this automatically, but an explicit c++rt0.o | |
14711 # does not break anything, and helps significantly (at the cost of a little | |
14712 # extra space). | |
14713 freebsd2.2*) | |
14714 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14715 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14716 hardcode_direct_F77=yes | |
14717 hardcode_shlibpath_var_F77=no | |
14718 ;; | |
14719 | |
14720 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14721 freebsd2*) | |
14722 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14723 hardcode_direct_F77=yes | |
14724 hardcode_minus_L_F77=yes | |
14725 hardcode_shlibpath_var_F77=no | |
14726 ;; | |
14727 | |
14728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14729 freebsd* | dragonfly*) | |
14730 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14731 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14732 hardcode_direct_F77=yes | |
14733 hardcode_shlibpath_var_F77=no | |
14734 ;; | |
14735 | |
14736 hpux9*) | |
14737 if test "$GCC" = yes; then | |
14738 archive_cmds_F77='$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' | |
14739 else | |
14740 archive_cmds_F77='$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' | |
14741 fi | |
14742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14743 hardcode_libdir_separator_F77=: | |
14744 hardcode_direct_F77=yes | |
14745 | |
14746 # hardcode_minus_L: Not really in the search PATH, | |
14747 # but as the default location of the library. | |
14748 hardcode_minus_L_F77=yes | |
14749 export_dynamic_flag_spec_F77='${wl}-E' | |
14750 ;; | |
14751 | |
14752 hpux10*) | |
14753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14754 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14755 else | |
14756 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14757 fi | |
14758 if test "$with_gnu_ld" = no; then | |
14759 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14760 hardcode_libdir_separator_F77=: | |
14761 | |
14762 hardcode_direct_F77=yes | |
14763 export_dynamic_flag_spec_F77='${wl}-E' | |
14764 | |
14765 # hardcode_minus_L: Not really in the search PATH, | |
14766 # but as the default location of the library. | |
14767 hardcode_minus_L_F77=yes | |
14768 fi | |
14769 ;; | |
14770 | |
14771 hpux11*) | |
14772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14773 case $host_cpu in | |
14774 hppa*64*) | |
14775 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14776 ;; | |
14777 ia64*) | |
14778 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14779 ;; | |
14780 *) | |
14781 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14782 ;; | |
14783 esac | |
14784 else | |
14785 case $host_cpu in | |
14786 hppa*64*) | |
14787 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14788 ;; | |
14789 ia64*) | |
14790 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14791 ;; | |
14792 *) | |
14793 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14794 ;; | |
14795 esac | |
14796 fi | |
14797 if test "$with_gnu_ld" = no; then | |
14798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14799 hardcode_libdir_separator_F77=: | |
14800 | |
14801 case $host_cpu in | |
14802 hppa*64*|ia64*) | |
14803 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14804 hardcode_direct_F77=no | |
14805 hardcode_shlibpath_var_F77=no | |
14806 ;; | |
14807 *) | |
14808 hardcode_direct_F77=yes | |
14809 export_dynamic_flag_spec_F77='${wl}-E' | |
14810 | |
14811 # hardcode_minus_L: Not really in the search PATH, | |
14812 # but as the default location of the library. | |
14813 hardcode_minus_L_F77=yes | |
14814 ;; | |
14815 esac | |
14816 fi | |
14817 ;; | |
14818 | |
14819 irix5* | irix6* | nonstopux*) | |
14820 if test "$GCC" = yes; then | |
14821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14822 else | |
14823 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14824 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14825 fi | |
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14827 hardcode_libdir_separator_F77=: | |
14828 link_all_deplibs_F77=yes | |
14829 ;; | |
14830 | |
14831 netbsd* | netbsdelf*-gnu) | |
14832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14833 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14834 else | |
14835 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14836 fi | |
14837 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14838 hardcode_direct_F77=yes | |
14839 hardcode_shlibpath_var_F77=no | |
14840 ;; | |
14841 | |
14842 newsos6) | |
14843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14844 hardcode_direct_F77=yes | |
14845 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14846 hardcode_libdir_separator_F77=: | |
14847 hardcode_shlibpath_var_F77=no | |
14848 ;; | |
14849 | |
14850 openbsd*) | |
14851 hardcode_direct_F77=yes | |
14852 hardcode_shlibpath_var_F77=no | |
14853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14854 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14855 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14856 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14857 export_dynamic_flag_spec_F77='${wl}-E' | |
14858 else | |
14859 case $host_os in | |
14860 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14861 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14862 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14863 ;; | |
14864 *) | |
14865 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14866 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14867 ;; | |
14868 esac | |
14869 fi | |
14870 ;; | |
14871 | |
14872 os2*) | |
14873 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14874 hardcode_minus_L_F77=yes | |
14875 allow_undefined_flag_F77=unsupported | |
14876 archive_cmds_F77='$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' | |
14877 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14878 ;; | |
14879 | |
14880 osf3*) | |
14881 if test "$GCC" = yes; then | |
14882 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14883 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14884 else | |
14885 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14886 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14887 fi | |
14888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14889 hardcode_libdir_separator_F77=: | |
14890 ;; | |
14891 | |
14892 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14893 if test "$GCC" = yes; then | |
14894 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14895 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14896 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14897 else | |
14898 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14899 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14900 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
14901 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
14902 | |
14903 # Both c and cxx compiler support -rpath directly | |
14904 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14905 fi | |
14906 hardcode_libdir_separator_F77=: | |
14907 ;; | |
14908 | |
14909 solaris*) | |
14910 no_undefined_flag_F77=' -z text' | |
14911 if test "$GCC" = yes; then | |
14912 wlarc='${wl}' | |
14913 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14914 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14915 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14916 else | |
14917 wlarc='' | |
14918 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14919 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14920 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14921 fi | |
14922 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14923 hardcode_shlibpath_var_F77=no | |
14924 case $host_os in | |
14925 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14926 *) | |
14927 # The compiler driver will combine linker options so we | |
14928 # cannot just pass the convience library names through | |
14929 # without $wl, iff we do not link with $LD. | |
14930 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14931 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14932 case $wlarc in | |
14933 '') | |
14934 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14935 *) | |
14936 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14937 esac ;; | |
14938 esac | |
14939 link_all_deplibs_F77=yes | |
14940 ;; | |
14941 | |
14942 sunos4*) | |
14943 if test "x$host_vendor" = xsequent; then | |
14944 # Use $CC to link under sequent, because it throws in some extra .o | |
14945 # files that make .init and .fini sections work. | |
14946 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14947 else | |
14948 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14949 fi | |
14950 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14951 hardcode_direct_F77=yes | |
14952 hardcode_minus_L_F77=yes | |
14953 hardcode_shlibpath_var_F77=no | |
14954 ;; | |
14955 | |
14956 sysv4) | |
14957 case $host_vendor in | |
14958 sni) | |
14959 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14960 hardcode_direct_F77=yes # is this really true??? | |
14961 ;; | |
14962 siemens) | |
14963 ## LD is ld it makes a PLAMLIB | |
14964 ## CC just makes a GrossModule. | |
14965 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14966 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14967 hardcode_direct_F77=no | |
14968 ;; | |
14969 motorola) | |
14970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14971 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14972 ;; | |
14973 esac | |
14974 runpath_var='LD_RUN_PATH' | |
14975 hardcode_shlibpath_var_F77=no | |
14976 ;; | |
14977 | |
14978 sysv4.3*) | |
14979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14980 hardcode_shlibpath_var_F77=no | |
14981 export_dynamic_flag_spec_F77='-Bexport' | |
14982 ;; | |
14983 | |
14984 sysv4*MP*) | |
14985 if test -d /usr/nec; then | |
14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14987 hardcode_shlibpath_var_F77=no | |
14988 runpath_var=LD_RUN_PATH | |
14989 hardcode_runpath_var=yes | |
14990 ld_shlibs_F77=yes | |
14991 fi | |
14992 ;; | |
14993 | |
14994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
14995 no_undefined_flag_F77='${wl}-z,text' | |
14996 archive_cmds_need_lc_F77=no | |
14997 hardcode_shlibpath_var_F77=no | |
14998 runpath_var='LD_RUN_PATH' | |
14999 | |
15000 if test "$GCC" = yes; then | |
15001 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15002 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15003 else | |
15004 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15005 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15006 fi | |
15007 ;; | |
15008 | |
15009 sysv5* | sco3.2v5* | sco5v6*) | |
15010 # Note: We can NOT use -z defs as we might desire, because we do not | |
15011 # link with -lc, and that would cause any symbols used from libc to | |
15012 # always be unresolved, which means just about no library would | |
15013 # ever link correctly. If we're not using GNU ld we use -z text | |
15014 # though, which does catch some bad symbols but isn't as heavy-handed | |
15015 # as -z defs. | |
15016 no_undefined_flag_F77='${wl}-z,text' | |
15017 allow_undefined_flag_F77='${wl}-z,nodefs' | |
15018 archive_cmds_need_lc_F77=no | |
15019 hardcode_shlibpath_var_F77=no | |
15020 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
15021 hardcode_libdir_separator_F77=':' | |
15022 link_all_deplibs_F77=yes | |
15023 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
15024 runpath_var='LD_RUN_PATH' | |
15025 | |
15026 if test "$GCC" = yes; then | |
15027 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15028 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15029 else | |
15030 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15031 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15032 fi | |
15033 ;; | |
15034 | |
15035 uts4*) | |
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15037 hardcode_libdir_flag_spec_F77='-L$libdir' | |
15038 hardcode_shlibpath_var_F77=no | |
15039 ;; | |
15040 | |
15041 *) | |
15042 ld_shlibs_F77=no | |
15043 ;; | |
15044 esac | |
15045 fi | |
15046 | |
15047 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
15048 echo "${ECHO_T}$ld_shlibs_F77" >&6; } | |
15049 test "$ld_shlibs_F77" = no && can_build_shared=no | |
15050 | |
15051 # | |
15052 # Do we need to explicitly link libc? | |
15053 # | |
15054 case "x$archive_cmds_need_lc_F77" in | |
15055 x|xyes) | |
15056 # Assume -lc should be added | |
15057 archive_cmds_need_lc_F77=yes | |
15058 | |
15059 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15060 case $archive_cmds_F77 in | |
15061 *'~'*) | |
15062 # FIXME: we may have to deal with multi-command sequences. | |
15063 ;; | |
15064 '$CC '*) | |
15065 # Test whether the compiler implicitly links with -lc since on some | |
15066 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15067 # to ld, don't add -lc before -lgcc. | |
15068 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
15069 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
15070 $rm conftest* | |
15071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15072 | |
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15074 (eval $ac_compile) 2>&5 | |
15075 ac_status=$? | |
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15077 (exit $ac_status); } 2>conftest.err; then | |
15078 soname=conftest | |
15079 lib=conftest | |
15080 libobjs=conftest.$ac_objext | |
15081 deplibs= | |
15082 wl=$lt_prog_compiler_wl_F77 | |
15083 pic_flag=$lt_prog_compiler_pic_F77 | |
15084 compiler_flags=-v | |
15085 linker_flags=-v | |
15086 verstring= | |
15087 output_objdir=. | |
15088 libname=conftest | |
15089 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
15090 allow_undefined_flag_F77= | |
15091 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
15092 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15093 ac_status=$? | |
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15095 (exit $ac_status); } | |
15096 then | |
15097 archive_cmds_need_lc_F77=no | |
15098 else | |
15099 archive_cmds_need_lc_F77=yes | |
15100 fi | |
15101 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
15102 else | |
15103 cat conftest.err 1>&5 | |
15104 fi | |
15105 $rm conftest* | |
15106 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
15107 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | |
15108 ;; | |
15109 esac | |
15110 fi | |
15111 ;; | |
15112 esac | |
15113 | |
15114 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
15115 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
15116 library_names_spec= | |
15117 libname_spec='lib$name' | |
15118 soname_spec= | |
15119 shrext_cmds=".so" | |
15120 postinstall_cmds= | |
15121 postuninstall_cmds= | |
15122 finish_cmds= | |
15123 finish_eval= | |
15124 shlibpath_var= | |
15125 shlibpath_overrides_runpath=unknown | |
15126 version_type=none | |
15127 dynamic_linker="$host_os ld.so" | |
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15129 if test "$GCC" = yes; then | |
15130 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15131 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
15132 # if the path contains ";" then we assume it to be the separator | |
15133 # otherwise default to the standard path separator (i.e. ":") - it is | |
15134 # assumed that no part of a normal pathname contains ";" but that should | |
15135 # okay in the real world where ";" in dirpaths is itself problematic. | |
15136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15137 else | |
15138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15139 fi | |
15140 else | |
15141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
15142 fi | |
15143 need_lib_prefix=unknown | |
15144 hardcode_into_libs=no | |
15145 | |
15146 # when you set need_version to no, make sure it does not cause -set_version | |
15147 # flags to be left without arguments | |
15148 need_version=unknown | |
15149 | |
15150 case $host_os in | |
15151 aix3*) | |
15152 version_type=linux | |
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15154 shlibpath_var=LIBPATH | |
15155 | |
15156 # AIX 3 has no versioning support, so we append a major version to the name. | |
15157 soname_spec='${libname}${release}${shared_ext}$major' | |
15158 ;; | |
15159 | |
15160 aix4* | aix5*) | |
15161 version_type=linux | |
15162 need_lib_prefix=no | |
15163 need_version=no | |
15164 hardcode_into_libs=yes | |
15165 if test "$host_cpu" = ia64; then | |
15166 # AIX 5 supports IA64 | |
15167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15168 shlibpath_var=LD_LIBRARY_PATH | |
15169 else | |
15170 # With GCC up to 2.95.x, collect2 would create an import file | |
15171 # for dependence libraries. The import file would start with | |
15172 # the line `#! .'. This would cause the generated library to | |
15173 # depend on `.', always an invalid library. This was fixed in | |
15174 # development snapshots of GCC prior to 3.0. | |
15175 case $host_os in | |
15176 aix4 | aix4.[01] | aix4.[01].*) | |
15177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15178 echo ' yes ' | |
15179 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
15180 : | |
15181 else | |
15182 can_build_shared=no | |
15183 fi | |
15184 ;; | |
15185 esac | |
15186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15187 # soname into executable. Probably we can add versioning support to | |
15188 # collect2, so additional links can be useful in future. | |
15189 if test "$aix_use_runtimelinking" = yes; then | |
15190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15191 # instead of lib<name>.a to let people know that these are not | |
15192 # typical AIX shared libraries. | |
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15194 else | |
15195 # We preserve .a as extension for shared libraries through AIX4.2 | |
15196 # and later when we are not doing run time linking. | |
15197 library_names_spec='${libname}${release}.a $libname.a' | |
15198 soname_spec='${libname}${release}${shared_ext}$major' | |
15199 fi | |
15200 shlibpath_var=LIBPATH | |
15201 fi | |
15202 ;; | |
15203 | |
15204 amigaos*) | |
15205 library_names_spec='$libname.ixlibrary $libname.a' | |
15206 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15207 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' | |
15208 ;; | |
15209 | |
15210 beos*) | |
15211 library_names_spec='${libname}${shared_ext}' | |
15212 dynamic_linker="$host_os ld.so" | |
15213 shlibpath_var=LIBRARY_PATH | |
15214 ;; | |
15215 | |
15216 bsdi[45]*) | |
15217 version_type=linux | |
15218 need_version=no | |
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15220 soname_spec='${libname}${release}${shared_ext}$major' | |
15221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15222 shlibpath_var=LD_LIBRARY_PATH | |
15223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15225 # the default ld.so.conf also contains /usr/contrib/lib and | |
15226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15227 # libtool to hard-code these into programs | |
15228 ;; | |
15229 | |
15230 cygwin* | mingw* | pw32*) | |
15231 version_type=windows | |
15232 shrext_cmds=".dll" | |
15233 need_version=no | |
15234 need_lib_prefix=no | |
15235 | |
15236 case $GCC,$host_os in | |
15237 yes,cygwin* | yes,mingw* | yes,pw32*) | |
15238 library_names_spec='$libname.dll.a' | |
15239 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15240 postinstall_cmds='base_file=`basename \${file}`~ | |
15241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
15242 dldir=$destdir/`dirname \$dlpath`~ | |
15243 test -d \$dldir || mkdir -p \$dldir~ | |
15244 $install_prog $dir/$dlname \$dldir/$dlname~ | |
15245 chmod a+x \$dldir/$dlname' | |
15246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15247 dlpath=$dir/\$dldll~ | |
15248 $rm \$dlpath' | |
15249 shlibpath_overrides_runpath=yes | |
15250 | |
15251 case $host_os in | |
15252 cygwin*) | |
15253 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15255 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
15256 ;; | |
15257 mingw*) | |
15258 # MinGW DLLs use traditional 'lib' prefix | |
15259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15261 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
15262 # It is most probably a Windows format PATH printed by | |
15263 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
15264 # path with ; separators, and with drive letters. We can handle the | |
15265 # drive letters (cygwin fileutils understands them), so leave them, | |
15266 # especially as we might pass files found there to a mingw objdump, | |
15267 # which wouldn't understand a cygwinified path. Ahh. | |
15268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15269 else | |
15270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15271 fi | |
15272 ;; | |
15273 pw32*) | |
15274 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15276 ;; | |
15277 esac | |
15278 ;; | |
15279 | |
15280 *) | |
15281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15282 ;; | |
15283 esac | |
15284 dynamic_linker='Win32 ld.exe' | |
15285 # FIXME: first we should search . and the directory the executable is in | |
15286 shlibpath_var=PATH | |
15287 ;; | |
15288 | |
15289 darwin* | rhapsody*) | |
15290 dynamic_linker="$host_os dyld" | |
15291 version_type=darwin | |
15292 need_lib_prefix=no | |
15293 need_version=no | |
15294 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15295 soname_spec='${libname}${release}${major}$shared_ext' | |
15296 shlibpath_overrides_runpath=yes | |
15297 shlibpath_var=DYLD_LIBRARY_PATH | |
15298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15299 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
15300 if test "$GCC" = yes; then | |
15301 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
15302 else | |
15303 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
15304 fi | |
15305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15306 ;; | |
15307 | |
15308 dgux*) | |
15309 version_type=linux | |
15310 need_lib_prefix=no | |
15311 need_version=no | |
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15313 soname_spec='${libname}${release}${shared_ext}$major' | |
15314 shlibpath_var=LD_LIBRARY_PATH | |
15315 ;; | |
15316 | |
15317 freebsd1*) | |
15318 dynamic_linker=no | |
15319 ;; | |
15320 | |
15321 freebsd* | dragonfly*) | |
15322 # DragonFly does not have aout. When/if they implement a new | |
15323 # versioning mechanism, adjust this. | |
15324 if test -x /usr/bin/objformat; then | |
15325 objformat=`/usr/bin/objformat` | |
15326 else | |
15327 case $host_os in | |
15328 freebsd[123]*) objformat=aout ;; | |
15329 *) objformat=elf ;; | |
15330 esac | |
15331 fi | |
15332 version_type=freebsd-$objformat | |
15333 case $version_type in | |
15334 freebsd-elf*) | |
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15336 need_version=no | |
15337 need_lib_prefix=no | |
15338 ;; | |
15339 freebsd-*) | |
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15341 need_version=yes | |
15342 ;; | |
15343 esac | |
15344 shlibpath_var=LD_LIBRARY_PATH | |
15345 case $host_os in | |
15346 freebsd2*) | |
15347 shlibpath_overrides_runpath=yes | |
15348 ;; | |
15349 freebsd3.[01]* | freebsdelf3.[01]*) | |
15350 shlibpath_overrides_runpath=yes | |
15351 hardcode_into_libs=yes | |
15352 ;; | |
15353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15355 shlibpath_overrides_runpath=no | |
15356 hardcode_into_libs=yes | |
15357 ;; | |
15358 freebsd*) # from 4.6 on | |
15359 shlibpath_overrides_runpath=yes | |
15360 hardcode_into_libs=yes | |
15361 ;; | |
15362 esac | |
15363 ;; | |
15364 | |
15365 gnu*) | |
15366 version_type=linux | |
15367 need_lib_prefix=no | |
15368 need_version=no | |
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15370 soname_spec='${libname}${release}${shared_ext}$major' | |
15371 shlibpath_var=LD_LIBRARY_PATH | |
15372 hardcode_into_libs=yes | |
15373 ;; | |
15374 | |
15375 hpux9* | hpux10* | hpux11*) | |
15376 # Give a soname corresponding to the major version so that dld.sl refuses to | |
15377 # link against other versions. | |
15378 version_type=sunos | |
15379 need_lib_prefix=no | |
15380 need_version=no | |
15381 case $host_cpu in | |
15382 ia64*) | |
15383 shrext_cmds='.so' | |
15384 hardcode_into_libs=yes | |
15385 dynamic_linker="$host_os dld.so" | |
15386 shlibpath_var=LD_LIBRARY_PATH | |
15387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15389 soname_spec='${libname}${release}${shared_ext}$major' | |
15390 if test "X$HPUX_IA64_MODE" = X32; then | |
15391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15392 else | |
15393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15394 fi | |
15395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15396 ;; | |
15397 hppa*64*) | |
15398 shrext_cmds='.sl' | |
15399 hardcode_into_libs=yes | |
15400 dynamic_linker="$host_os dld.sl" | |
15401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15404 soname_spec='${libname}${release}${shared_ext}$major' | |
15405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15407 ;; | |
15408 *) | |
15409 shrext_cmds='.sl' | |
15410 dynamic_linker="$host_os dld.sl" | |
15411 shlibpath_var=SHLIB_PATH | |
15412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15414 soname_spec='${libname}${release}${shared_ext}$major' | |
15415 ;; | |
15416 esac | |
15417 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15418 postinstall_cmds='chmod 555 $lib' | |
15419 ;; | |
15420 | |
15421 interix3*) | |
15422 version_type=linux | |
15423 need_lib_prefix=no | |
15424 need_version=no | |
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15426 soname_spec='${libname}${release}${shared_ext}$major' | |
15427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15428 shlibpath_var=LD_LIBRARY_PATH | |
15429 shlibpath_overrides_runpath=no | |
15430 hardcode_into_libs=yes | |
15431 ;; | |
15432 | |
15433 irix5* | irix6* | nonstopux*) | |
15434 case $host_os in | |
15435 nonstopux*) version_type=nonstopux ;; | |
15436 *) | |
15437 if test "$lt_cv_prog_gnu_ld" = yes; then | |
15438 version_type=linux | |
15439 else | |
15440 version_type=irix | |
15441 fi ;; | |
15442 esac | |
15443 need_lib_prefix=no | |
15444 need_version=no | |
15445 soname_spec='${libname}${release}${shared_ext}$major' | |
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15447 case $host_os in | |
15448 irix5* | nonstopux*) | |
15449 libsuff= shlibsuff= | |
15450 ;; | |
15451 *) | |
15452 case $LD in # libtool.m4 will add one of these switches to LD | |
15453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15454 libsuff= shlibsuff= libmagic=32-bit;; | |
15455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15456 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15458 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15459 *) libsuff= shlibsuff= libmagic=never-match;; | |
15460 esac | |
15461 ;; | |
15462 esac | |
15463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15464 shlibpath_overrides_runpath=no | |
15465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15467 hardcode_into_libs=yes | |
15468 ;; | |
15469 | |
15470 # No shared lib support for Linux oldld, aout, or coff. | |
15471 linux*oldld* | linux*aout* | linux*coff*) | |
15472 dynamic_linker=no | |
15473 ;; | |
15474 | |
15475 # This must be Linux ELF. | |
15476 linux* | k*bsd*-gnu) | |
15477 version_type=linux | |
15478 need_lib_prefix=no | |
15479 need_version=no | |
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15481 soname_spec='${libname}${release}${shared_ext}$major' | |
15482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15483 shlibpath_var=LD_LIBRARY_PATH | |
15484 shlibpath_overrides_runpath=no | |
15485 # This implies no fast_install, which is unacceptable. | |
15486 # Some rework will be needed to allow for fast_install | |
15487 # before this can be enabled. | |
15488 hardcode_into_libs=yes | |
15489 | |
15490 # Append ld.so.conf contents to the search path | |
15491 if test -f /etc/ld.so.conf; then | |
15492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
15493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15494 fi | |
15495 | |
15496 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15497 # powerpc, because MkLinux only supported shared libraries with the | |
15498 # GNU dynamic linker. Since this was broken with cross compilers, | |
15499 # most powerpc-linux boxes support dynamic linking these days and | |
15500 # people can always --disable-shared, the test was removed, and we | |
15501 # assume the GNU/Linux dynamic linker is in use. | |
15502 dynamic_linker='GNU/Linux ld.so' | |
15503 ;; | |
15504 | |
15505 netbsdelf*-gnu) | |
15506 version_type=linux | |
15507 need_lib_prefix=no | |
15508 need_version=no | |
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15510 soname_spec='${libname}${release}${shared_ext}$major' | |
15511 shlibpath_var=LD_LIBRARY_PATH | |
15512 shlibpath_overrides_runpath=no | |
15513 hardcode_into_libs=yes | |
15514 dynamic_linker='NetBSD ld.elf_so' | |
15515 ;; | |
15516 | |
15517 netbsd*) | |
15518 version_type=sunos | |
15519 need_lib_prefix=no | |
15520 need_version=no | |
15521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15524 dynamic_linker='NetBSD (a.out) ld.so' | |
15525 else | |
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15527 soname_spec='${libname}${release}${shared_ext}$major' | |
15528 dynamic_linker='NetBSD ld.elf_so' | |
15529 fi | |
15530 shlibpath_var=LD_LIBRARY_PATH | |
15531 shlibpath_overrides_runpath=yes | |
15532 hardcode_into_libs=yes | |
15533 ;; | |
15534 | |
15535 newsos6) | |
15536 version_type=linux | |
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15538 shlibpath_var=LD_LIBRARY_PATH | |
15539 shlibpath_overrides_runpath=yes | |
15540 ;; | |
15541 | |
15542 nto-qnx*) | |
15543 version_type=linux | |
15544 need_lib_prefix=no | |
15545 need_version=no | |
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15547 soname_spec='${libname}${release}${shared_ext}$major' | |
15548 shlibpath_var=LD_LIBRARY_PATH | |
15549 shlibpath_overrides_runpath=yes | |
15550 ;; | |
15551 | |
15552 openbsd*) | |
15553 version_type=sunos | |
15554 sys_lib_dlsearch_path_spec="/usr/lib" | |
15555 need_lib_prefix=no | |
15556 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15557 case $host_os in | |
15558 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15559 *) need_version=no ;; | |
15560 esac | |
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15563 shlibpath_var=LD_LIBRARY_PATH | |
15564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15565 case $host_os in | |
15566 openbsd2.[89] | openbsd2.[89].*) | |
15567 shlibpath_overrides_runpath=no | |
15568 ;; | |
15569 *) | |
15570 shlibpath_overrides_runpath=yes | |
15571 ;; | |
15572 esac | |
15573 else | |
15574 shlibpath_overrides_runpath=yes | |
15575 fi | |
15576 ;; | |
15577 | |
15578 os2*) | |
15579 libname_spec='$name' | |
15580 shrext_cmds=".dll" | |
15581 need_lib_prefix=no | |
15582 library_names_spec='$libname${shared_ext} $libname.a' | |
15583 dynamic_linker='OS/2 ld.exe' | |
15584 shlibpath_var=LIBPATH | |
15585 ;; | |
15586 | |
15587 osf3* | osf4* | osf5*) | |
15588 version_type=osf | |
15589 need_lib_prefix=no | |
15590 need_version=no | |
15591 soname_spec='${libname}${release}${shared_ext}$major' | |
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15593 shlibpath_var=LD_LIBRARY_PATH | |
15594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15595 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15596 ;; | |
15597 | |
15598 solaris*) | |
15599 version_type=linux | |
15600 need_lib_prefix=no | |
15601 need_version=no | |
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15603 soname_spec='${libname}${release}${shared_ext}$major' | |
15604 shlibpath_var=LD_LIBRARY_PATH | |
15605 shlibpath_overrides_runpath=yes | |
15606 hardcode_into_libs=yes | |
15607 # ldd complains unless libraries are executable | |
15608 postinstall_cmds='chmod +x $lib' | |
15609 ;; | |
15610 | |
15611 sunos4*) | |
15612 version_type=sunos | |
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15615 shlibpath_var=LD_LIBRARY_PATH | |
15616 shlibpath_overrides_runpath=yes | |
15617 if test "$with_gnu_ld" = yes; then | |
15618 need_lib_prefix=no | |
15619 fi | |
15620 need_version=yes | |
15621 ;; | |
15622 | |
15623 sysv4 | sysv4.3*) | |
15624 version_type=linux | |
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15626 soname_spec='${libname}${release}${shared_ext}$major' | |
15627 shlibpath_var=LD_LIBRARY_PATH | |
15628 case $host_vendor in | |
15629 sni) | |
15630 shlibpath_overrides_runpath=no | |
15631 need_lib_prefix=no | |
15632 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15633 runpath_var=LD_RUN_PATH | |
15634 ;; | |
15635 siemens) | |
15636 need_lib_prefix=no | |
15637 ;; | |
15638 motorola) | |
15639 need_lib_prefix=no | |
15640 need_version=no | |
15641 shlibpath_overrides_runpath=no | |
15642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15643 ;; | |
15644 esac | |
15645 ;; | |
15646 | |
15647 sysv4*MP*) | |
15648 if test -d /usr/nec ;then | |
15649 version_type=linux | |
15650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15651 soname_spec='$libname${shared_ext}.$major' | |
15652 shlibpath_var=LD_LIBRARY_PATH | |
15653 fi | |
15654 ;; | |
15655 | |
15656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15657 version_type=freebsd-elf | |
15658 need_lib_prefix=no | |
15659 need_version=no | |
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15661 soname_spec='${libname}${release}${shared_ext}$major' | |
15662 shlibpath_var=LD_LIBRARY_PATH | |
15663 hardcode_into_libs=yes | |
15664 if test "$with_gnu_ld" = yes; then | |
15665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15666 shlibpath_overrides_runpath=no | |
15667 else | |
15668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15669 shlibpath_overrides_runpath=yes | |
15670 case $host_os in | |
15671 sco3.2v5*) | |
15672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15673 ;; | |
15674 esac | |
15675 fi | |
15676 sys_lib_dlsearch_path_spec='/usr/lib' | |
15677 ;; | |
15678 | |
15679 uts4*) | |
15680 version_type=linux | |
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15682 soname_spec='${libname}${release}${shared_ext}$major' | |
15683 shlibpath_var=LD_LIBRARY_PATH | |
15684 ;; | |
15685 | |
15686 *) | |
15687 dynamic_linker=no | |
15688 ;; | |
15689 esac | |
15690 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15691 echo "${ECHO_T}$dynamic_linker" >&6; } | |
15692 test "$dynamic_linker" = no && can_build_shared=no | |
15693 | |
15694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15695 if test "$GCC" = yes; then | |
15696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15697 fi | |
15698 | |
15699 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15700 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
15701 hardcode_action_F77= | |
15702 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
15703 test -n "$runpath_var_F77" || \ | |
15704 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
15705 | |
15706 # We can hardcode non-existant directories. | |
15707 if test "$hardcode_direct_F77" != no && | |
15708 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15709 # have to relink, otherwise we might link with an installed library | |
15710 # when we should be linking with a yet-to-be-installed one | |
15711 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15712 test "$hardcode_minus_L_F77" != no; then | |
15713 # Linking always hardcodes the temporary library directory. | |
15714 hardcode_action_F77=relink | |
15715 else | |
15716 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15717 hardcode_action_F77=immediate | |
15718 fi | |
15719 else | |
15720 # We cannot hardcode anything, or else we can only hardcode existing | |
15721 # directories. | |
15722 hardcode_action_F77=unsupported | |
15723 fi | |
15724 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15725 echo "${ECHO_T}$hardcode_action_F77" >&6; } | |
15726 | |
15727 if test "$hardcode_action_F77" = relink; then | |
15728 # Fast installation is not supported | |
15729 enable_fast_install=no | |
15730 elif test "$shlibpath_overrides_runpath" = yes || | |
15731 test "$enable_shared" = no; then | |
15732 # Fast installation is not necessary | |
15733 enable_fast_install=needless | |
15734 fi | |
15735 | |
15736 | |
15737 # The else clause should only fire when bootstrapping the | |
15738 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15739 # with your package, and you will get complaints that there are | |
15740 # no rules to generate ltmain.sh. | |
15741 if test -f "$ltmain"; then | |
15742 # See if we are running on zsh, and set the options which allow our commands through | |
15743 # without removal of \ escapes. | |
15744 if test -n "${ZSH_VERSION+set}" ; then | |
15745 setopt NO_GLOB_SUBST | |
15746 fi | |
15747 # Now quote all the things that may contain metacharacters while being | |
15748 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15749 # variables and quote the copies for generation of the libtool script. | |
15750 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15751 SED SHELL STRIP \ | |
15752 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15753 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15754 deplibs_check_method reload_flag reload_cmds need_locks \ | |
15755 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15756 lt_cv_sys_global_symbol_to_c_name_address \ | |
15757 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15758 old_postinstall_cmds old_postuninstall_cmds \ | |
15759 compiler_F77 \ | |
15760 CC_F77 \ | |
15761 LD_F77 \ | |
15762 lt_prog_compiler_wl_F77 \ | |
15763 lt_prog_compiler_pic_F77 \ | |
15764 lt_prog_compiler_static_F77 \ | |
15765 lt_prog_compiler_no_builtin_flag_F77 \ | |
15766 export_dynamic_flag_spec_F77 \ | |
15767 thread_safe_flag_spec_F77 \ | |
15768 whole_archive_flag_spec_F77 \ | |
15769 enable_shared_with_static_runtimes_F77 \ | |
15770 old_archive_cmds_F77 \ | |
15771 old_archive_from_new_cmds_F77 \ | |
15772 predep_objects_F77 \ | |
15773 postdep_objects_F77 \ | |
15774 predeps_F77 \ | |
15775 postdeps_F77 \ | |
15776 compiler_lib_search_path_F77 \ | |
15777 archive_cmds_F77 \ | |
15778 archive_expsym_cmds_F77 \ | |
15779 postinstall_cmds_F77 \ | |
15780 postuninstall_cmds_F77 \ | |
15781 old_archive_from_expsyms_cmds_F77 \ | |
15782 allow_undefined_flag_F77 \ | |
15783 no_undefined_flag_F77 \ | |
15784 export_symbols_cmds_F77 \ | |
15785 hardcode_libdir_flag_spec_F77 \ | |
15786 hardcode_libdir_flag_spec_ld_F77 \ | |
15787 hardcode_libdir_separator_F77 \ | |
15788 hardcode_automatic_F77 \ | |
15789 module_cmds_F77 \ | |
15790 module_expsym_cmds_F77 \ | |
15791 lt_cv_prog_compiler_c_o_F77 \ | |
15792 exclude_expsyms_F77 \ | |
15793 include_expsyms_F77; do | |
15794 | |
15795 case $var in | |
15796 old_archive_cmds_F77 | \ | |
15797 old_archive_from_new_cmds_F77 | \ | |
15798 archive_cmds_F77 | \ | |
15799 archive_expsym_cmds_F77 | \ | |
15800 module_cmds_F77 | \ | |
15801 module_expsym_cmds_F77 | \ | |
15802 old_archive_from_expsyms_cmds_F77 | \ | |
15803 export_symbols_cmds_F77 | \ | |
15804 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15805 postinstall_cmds | postuninstall_cmds | \ | |
15806 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15807 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15808 # Double-quote double-evaled strings. | |
15809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15810 ;; | |
15811 *) | |
15812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15813 ;; | |
15814 esac | |
15815 done | |
15816 | |
15817 case $lt_echo in | |
15818 *'\$0 --fallback-echo"') | |
15819 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15820 ;; | |
15821 esac | |
15822 | |
15823 cfgfile="$ofile" | |
15824 | |
15825 cat <<__EOF__ >> "$cfgfile" | |
15826 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15827 | |
15828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15829 | |
15830 # Shell to use when invoking shell scripts. | |
15831 SHELL=$lt_SHELL | |
15832 | |
15833 # Whether or not to build shared libraries. | |
15834 build_libtool_libs=$enable_shared | |
15835 | |
15836 # Whether or not to build static libraries. | |
15837 build_old_libs=$enable_static | |
15838 | |
15839 # Whether or not to add -lc for building shared libraries. | |
15840 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15841 | |
15842 # Whether or not to disallow shared libs when runtime libs are static | |
15843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15844 | |
15845 # Whether or not to optimize for fast installation. | |
15846 fast_install=$enable_fast_install | |
15847 | |
15848 # The host system. | |
15849 host_alias=$host_alias | |
15850 host=$host | |
15851 host_os=$host_os | |
15852 | |
15853 # The build system. | |
15854 build_alias=$build_alias | |
15855 build=$build | |
15856 build_os=$build_os | |
15857 | |
15858 # An echo program that does not interpret backslashes. | |
15859 echo=$lt_echo | |
15860 | |
15861 # The archiver. | |
15862 AR=$lt_AR | |
15863 AR_FLAGS=$lt_AR_FLAGS | |
15864 | |
15865 # A C compiler. | |
15866 LTCC=$lt_LTCC | |
15867 | |
15868 # LTCC compiler flags. | |
15869 LTCFLAGS=$lt_LTCFLAGS | |
15870 | |
15871 # A language-specific compiler. | |
15872 CC=$lt_compiler_F77 | |
15873 | |
15874 # Is the compiler the GNU C compiler? | |
15875 with_gcc=$GCC_F77 | |
15876 | |
15877 # An ERE matcher. | |
15878 EGREP=$lt_EGREP | |
15879 | |
15880 # The linker used to build libraries. | |
15881 LD=$lt_LD_F77 | |
15882 | |
15883 # Whether we need hard or soft links. | |
15884 LN_S=$lt_LN_S | |
15885 | |
15886 # A BSD-compatible nm program. | |
15887 NM=$lt_NM | |
15888 | |
15889 # A symbol stripping program | |
15890 STRIP=$lt_STRIP | |
15891 | |
15892 # Used to examine libraries when file_magic_cmd begins "file" | |
15893 MAGIC_CMD=$MAGIC_CMD | |
15894 | |
15895 # Used on cygwin: DLL creation program. | |
15896 DLLTOOL="$DLLTOOL" | |
15897 | |
15898 # Used on cygwin: object dumper. | |
15899 OBJDUMP="$OBJDUMP" | |
15900 | |
15901 # Used on cygwin: assembler. | |
15902 AS="$AS" | |
15903 | |
15904 # The name of the directory that contains temporary libtool files. | |
15905 objdir=$objdir | |
15906 | |
15907 # How to create reloadable object files. | |
15908 reload_flag=$lt_reload_flag | |
15909 reload_cmds=$lt_reload_cmds | |
15910 | |
15911 # How to pass a linker flag through the compiler. | |
15912 wl=$lt_lt_prog_compiler_wl_F77 | |
15913 | |
15914 # Object file suffix (normally "o"). | |
15915 objext="$ac_objext" | |
15916 | |
15917 # Old archive suffix (normally "a"). | |
15918 libext="$libext" | |
15919 | |
15920 # Shared library suffix (normally ".so"). | |
15921 shrext_cmds='$shrext_cmds' | |
15922 | |
15923 # Executable file suffix (normally ""). | |
15924 exeext="$exeext" | |
15925 | |
15926 # Additional compiler flags for building library objects. | |
15927 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15928 pic_mode=$pic_mode | |
15929 | |
15930 # What is the maximum length of a command? | |
15931 max_cmd_len=$lt_cv_sys_max_cmd_len | |
15932 | |
15933 # Does compiler simultaneously support -c and -o options? | |
15934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15935 | |
15936 # Must we lock files when doing compilation? | |
15937 need_locks=$lt_need_locks | |
15938 | |
15939 # Do we need the lib prefix for modules? | |
15940 need_lib_prefix=$need_lib_prefix | |
15941 | |
15942 # Do we need a version for libraries? | |
15943 need_version=$need_version | |
15944 | |
15945 # Whether dlopen is supported. | |
15946 dlopen_support=$enable_dlopen | |
15947 | |
15948 # Whether dlopen of programs is supported. | |
15949 dlopen_self=$enable_dlopen_self | |
15950 | |
15951 # Whether dlopen of statically linked programs is supported. | |
15952 dlopen_self_static=$enable_dlopen_self_static | |
15953 | |
15954 # Compiler flag to prevent dynamic linking. | |
15955 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15956 | |
15957 # Compiler flag to turn off builtin functions. | |
15958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15959 | |
15960 # Compiler flag to allow reflexive dlopens. | |
15961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15962 | |
15963 # Compiler flag to generate shared objects directly from archives. | |
15964 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15965 | |
15966 # Compiler flag to generate thread-safe objects. | |
15967 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15968 | |
15969 # Library versioning type. | |
15970 version_type=$version_type | |
15971 | |
15972 # Format of library name prefix. | |
15973 libname_spec=$lt_libname_spec | |
15974 | |
15975 # List of archive names. First name is the real one, the rest are links. | |
15976 # The last name is the one that the linker finds with -lNAME. | |
15977 library_names_spec=$lt_library_names_spec | |
15978 | |
15979 # The coded name of the library, if different from the real name. | |
15980 soname_spec=$lt_soname_spec | |
15981 | |
15982 # Commands used to build and install an old-style archive. | |
15983 RANLIB=$lt_RANLIB | |
15984 old_archive_cmds=$lt_old_archive_cmds_F77 | |
15985 old_postinstall_cmds=$lt_old_postinstall_cmds | |
15986 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15987 | |
15988 # Create an old-style archive from a shared archive. | |
15989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15990 | |
15991 # Create a temporary old-style archive to link instead of a shared archive. | |
15992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15993 | |
15994 # Commands used to build and install a shared archive. | |
15995 archive_cmds=$lt_archive_cmds_F77 | |
15996 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15997 postinstall_cmds=$lt_postinstall_cmds | |
15998 postuninstall_cmds=$lt_postuninstall_cmds | |
15999 | |
16000 # Commands used to build a loadable module (assumed same as above if empty) | |
16001 module_cmds=$lt_module_cmds_F77 | |
16002 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
16003 | |
16004 # Commands to strip libraries. | |
16005 old_striplib=$lt_old_striplib | |
16006 striplib=$lt_striplib | |
16007 | |
16008 # Dependencies to place before the objects being linked to create a | |
16009 # shared library. | |
16010 predep_objects=$lt_predep_objects_F77 | |
16011 | |
16012 # Dependencies to place after the objects being linked to create a | |
16013 # shared library. | |
16014 postdep_objects=$lt_postdep_objects_F77 | |
16015 | |
16016 # Dependencies to place before the objects being linked to create a | |
16017 # shared library. | |
16018 predeps=$lt_predeps_F77 | |
16019 | |
16020 # Dependencies to place after the objects being linked to create a | |
16021 # shared library. | |
16022 postdeps=$lt_postdeps_F77 | |
16023 | |
16024 # The library search path used internally by the compiler when linking | |
16025 # a shared library. | |
16026 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
16027 | |
16028 # Method to check whether dependent libraries are shared objects. | |
16029 deplibs_check_method=$lt_deplibs_check_method | |
16030 | |
16031 # Command to use when deplibs_check_method == file_magic. | |
16032 file_magic_cmd=$lt_file_magic_cmd | |
16033 | |
16034 # Flag that allows shared libraries with undefined symbols to be built. | |
16035 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
16036 | |
16037 # Flag that forces no undefined symbols. | |
16038 no_undefined_flag=$lt_no_undefined_flag_F77 | |
16039 | |
16040 # Commands used to finish a libtool library installation in a directory. | |
16041 finish_cmds=$lt_finish_cmds | |
16042 | |
16043 # Same as above, but a single script fragment to be evaled but not shown. | |
16044 finish_eval=$lt_finish_eval | |
16045 | |
16046 # Take the output of nm and produce a listing of raw symbols and C names. | |
16047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16048 | |
16049 # Transform the output of nm in a proper C declaration | |
16050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16051 | |
16052 # Transform the output of nm in a C name address pair | |
16053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16054 | |
16055 # This is the shared library runtime path variable. | |
16056 runpath_var=$runpath_var | |
16057 | |
16058 # This is the shared library path variable. | |
16059 shlibpath_var=$shlibpath_var | |
16060 | |
16061 # Is shlibpath searched before the hard-coded library search path? | |
16062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16063 | |
16064 # How to hardcode a shared library path into an executable. | |
16065 hardcode_action=$hardcode_action_F77 | |
16066 | |
16067 # Whether we should hardcode library paths into libraries. | |
16068 hardcode_into_libs=$hardcode_into_libs | |
16069 | |
16070 # Flag to hardcode \$libdir into a binary during linking. | |
16071 # This must work even if \$libdir does not exist. | |
16072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
16073 | |
16074 # If ld is used when linking, flag to hardcode \$libdir into | |
16075 # a binary during linking. This must work even if \$libdir does | |
16076 # not exist. | |
16077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
16078 | |
16079 # Whether we need a single -rpath flag with a separated argument. | |
16080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
16081 | |
16082 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
16083 # resulting binary. | |
16084 hardcode_direct=$hardcode_direct_F77 | |
16085 | |
16086 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
16087 # resulting binary. | |
16088 hardcode_minus_L=$hardcode_minus_L_F77 | |
16089 | |
16090 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
16091 # the resulting binary. | |
16092 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
16093 | |
16094 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
16095 # and all subsequent libraries and executables linked against it. | |
16096 hardcode_automatic=$hardcode_automatic_F77 | |
16097 | |
16098 # Variables whose values should be saved in libtool wrapper scripts and | |
16099 # restored at relink time. | |
16100 variables_saved_for_relink="$variables_saved_for_relink" | |
16101 | |
16102 # Whether libtool must link a program against all its dependency libraries. | |
16103 link_all_deplibs=$link_all_deplibs_F77 | |
16104 | |
16105 # Compile-time system search path for libraries | |
16106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16107 | |
16108 # Run-time system search path for libraries | |
16109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16110 | |
16111 # Fix the shell variable \$srcfile for the compiler. | |
16112 fix_srcfile_path="$fix_srcfile_path_F77" | |
16113 | |
16114 # Set to yes if exported symbols are required. | |
16115 always_export_symbols=$always_export_symbols_F77 | |
16116 | |
16117 # The commands to list exported symbols. | |
16118 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
16119 | |
16120 # The commands to extract the exported symbol list from a shared archive. | |
16121 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16122 | |
16123 # Symbols that should not be listed in the preloaded symbols. | |
16124 exclude_expsyms=$lt_exclude_expsyms_F77 | |
16125 | |
16126 # Symbols that must always be exported. | |
16127 include_expsyms=$lt_include_expsyms_F77 | |
16128 | |
16129 # ### END LIBTOOL TAG CONFIG: $tagname | |
16130 | |
16131 __EOF__ | |
16132 | |
16133 | |
16134 else | |
16135 # If there is no Makefile yet, we rely on a make rule to execute | |
16136 # `config.status --recheck' to rerun these tests and create the | |
16137 # libtool script then. | |
16138 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
16139 if test -f "$ltmain_in"; then | |
16140 test -f Makefile && make "$ltmain" | |
16141 fi | |
16142 fi | |
16143 | |
16144 | |
16145 ac_ext=c | |
16146 ac_cpp='$CPP $CPPFLAGS' | |
16147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16149 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16150 | |
16151 CC="$lt_save_CC" | |
16152 | |
16153 else | |
16154 tagname="" | |
16155 fi | |
16156 ;; | |
16157 | |
16158 GCJ) | |
16159 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
16160 | |
16161 | |
16162 # Source file extension for Java test sources. | |
16163 ac_ext=java | |
16164 | |
16165 # Object file extension for compiled Java test sources. | |
16166 objext=o | |
16167 objext_GCJ=$objext | |
16168 | |
16169 # Code to be used in simple compile tests | |
16170 lt_simple_compile_test_code="class foo {}\n" | |
16171 | |
16172 # Code to be used in simple link tests | |
16173 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
16174 | |
16175 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
16176 | |
16177 # If no C compiler was specified, use CC. | |
16178 LTCC=${LTCC-"$CC"} | |
16179 | |
16180 # If no C compiler flags were specified, use CFLAGS. | |
16181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
16182 | |
16183 # Allow CC to be a program name with arguments. | |
16184 compiler=$CC | |
16185 | |
16186 | |
16187 # save warnings/boilerplate of simple test code | |
16188 ac_outfile=conftest.$ac_objext | |
16189 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
16190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16191 _lt_compiler_boilerplate=`cat conftest.err` | |
16192 $rm conftest* | |
16193 | |
16194 ac_outfile=conftest.$ac_objext | |
16195 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
16196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16197 _lt_linker_boilerplate=`cat conftest.err` | |
16198 $rm conftest* | |
16199 | |
16200 | |
16201 # Allow CC to be a program name with arguments. | |
16202 lt_save_CC="$CC" | |
16203 CC=${GCJ-"gcj"} | |
16204 compiler=$CC | |
16205 compiler_GCJ=$CC | |
16206 for cc_temp in $compiler""; do | |
16207 case $cc_temp in | |
16208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16210 \-*) ;; | |
16211 *) break;; | |
16212 esac | |
16213 done | |
16214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16215 | |
16216 | |
16217 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
16218 archive_cmds_need_lc_GCJ=no | |
16219 | |
16220 old_archive_cmds_GCJ=$old_archive_cmds | |
16221 | |
16222 | |
16223 lt_prog_compiler_no_builtin_flag_GCJ= | |
16224 | |
16225 if test "$GCC" = yes; then | |
16226 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
16227 | |
16228 | |
16229 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
16230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
16231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
16232 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16233 else | |
16234 lt_cv_prog_compiler_rtti_exceptions=no | |
16235 ac_outfile=conftest.$ac_objext | |
16236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16237 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
16238 # Insert the option either (1) after the last *FLAGS variable, or | |
16239 # (2) before a word containing "conftest.", or (3) at the end. | |
16240 # Note that $ac_compile itself does not contain backslashes and begins | |
16241 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16242 # The option is referenced via a variable to avoid confusing sed. | |
16243 lt_compile=`echo "$ac_compile" | $SED \ | |
16244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16246 -e 's:$: $lt_compiler_flag:'` | |
16247 (eval echo "\"\$as_me:16247: $lt_compile\"" >&5) | |
16248 (eval "$lt_compile" 2>conftest.err) | |
16249 ac_status=$? | |
16250 cat conftest.err >&5 | |
16251 echo "$as_me:16251: \$? = $ac_status" >&5 | |
16252 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16253 # The compiler can only warn and ignore the option if not recognized | |
16254 # So say no if there are warnings other than the usual output. | |
16255 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16258 lt_cv_prog_compiler_rtti_exceptions=yes | |
16259 fi | |
16260 fi | |
16261 $rm conftest* | |
16262 | |
16263 fi | |
16264 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
16265 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
16266 | |
16267 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
16268 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
16269 else | |
16270 : | |
16271 fi | |
16272 | |
16273 fi | |
16274 | |
16275 lt_prog_compiler_wl_GCJ= | |
16276 lt_prog_compiler_pic_GCJ= | |
16277 lt_prog_compiler_static_GCJ= | |
16278 | |
16279 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
16280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
16281 | |
16282 if test "$GCC" = yes; then | |
16283 lt_prog_compiler_wl_GCJ='-Wl,' | |
16284 lt_prog_compiler_static_GCJ='-static' | |
16285 | |
16286 case $host_os in | |
16287 aix*) | |
16288 # All AIX code is PIC. | |
16289 if test "$host_cpu" = ia64; then | |
16290 # AIX 5 now supports IA64 processor | |
16291 lt_prog_compiler_static_GCJ='-Bstatic' | |
16292 fi | |
16293 ;; | |
16294 | |
16295 amigaos*) | |
16296 # FIXME: we need at least 68020 code to build shared libraries, but | |
16297 # adding the `-m68020' flag to GCC prevents building anything better, | |
16298 # like `-m68040'. | |
16299 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
16300 ;; | |
16301 | |
16302 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16303 # PIC is the default for these OSes. | |
16304 ;; | |
16305 | |
16306 mingw* | pw32* | os2*) | |
16307 # This hack is so that the source file can tell whether it is being | |
16308 # built for inclusion in a dll (and should export symbols for example). | |
16309 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16310 ;; | |
16311 | |
16312 darwin* | rhapsody*) | |
16313 # PIC is the default on this platform | |
16314 # Common symbols not allowed in MH_DYLIB files | |
16315 lt_prog_compiler_pic_GCJ='-fno-common' | |
16316 ;; | |
16317 | |
16318 interix3*) | |
16319 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16320 # Instead, we relocate shared libraries at runtime. | |
16321 ;; | |
16322 | |
16323 msdosdjgpp*) | |
16324 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16325 # on systems that don't support them. | |
16326 lt_prog_compiler_can_build_shared_GCJ=no | |
16327 enable_shared=no | |
16328 ;; | |
16329 | |
16330 sysv4*MP*) | |
16331 if test -d /usr/nec; then | |
16332 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
16333 fi | |
16334 ;; | |
16335 | |
16336 hpux*) | |
16337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16338 # not for PA HP-UX. | |
16339 case $host_cpu in | |
16340 hppa*64*|ia64*) | |
16341 # +Z the default | |
16342 ;; | |
16343 *) | |
16344 lt_prog_compiler_pic_GCJ='-fPIC' | |
16345 ;; | |
16346 esac | |
16347 ;; | |
16348 | |
16349 *) | |
16350 lt_prog_compiler_pic_GCJ='-fPIC' | |
16351 ;; | |
16352 esac | |
16353 else | |
16354 # PORTME Check for flag to pass linker flags through the system compiler. | |
16355 case $host_os in | |
16356 aix*) | |
16357 lt_prog_compiler_wl_GCJ='-Wl,' | |
16358 if test "$host_cpu" = ia64; then | |
16359 # AIX 5 now supports IA64 processor | |
16360 lt_prog_compiler_static_GCJ='-Bstatic' | |
16361 else | |
16362 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
16363 fi | |
16364 ;; | |
16365 darwin*) | |
16366 # PIC is the default on this platform | |
16367 # Common symbols not allowed in MH_DYLIB files | |
16368 case $cc_basename in | |
16369 xlc*) | |
16370 lt_prog_compiler_pic_GCJ='-qnocommon' | |
16371 lt_prog_compiler_wl_GCJ='-Wl,' | |
16372 ;; | |
16373 esac | |
16374 ;; | |
16375 | |
16376 mingw* | pw32* | os2*) | |
16377 # This hack is so that the source file can tell whether it is being | |
16378 # built for inclusion in a dll (and should export symbols for example). | |
16379 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16380 ;; | |
16381 | |
16382 hpux9* | hpux10* | hpux11*) | |
16383 lt_prog_compiler_wl_GCJ='-Wl,' | |
16384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16385 # not for PA HP-UX. | |
16386 case $host_cpu in | |
16387 hppa*64*|ia64*) | |
16388 # +Z the default | |
16389 ;; | |
16390 *) | |
16391 lt_prog_compiler_pic_GCJ='+Z' | |
16392 ;; | |
16393 esac | |
16394 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16395 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16396 ;; | |
16397 | |
16398 irix5* | irix6* | nonstopux*) | |
16399 lt_prog_compiler_wl_GCJ='-Wl,' | |
16400 # PIC (with -KPIC) is the default. | |
16401 lt_prog_compiler_static_GCJ='-non_shared' | |
16402 ;; | |
16403 | |
16404 newsos6) | |
16405 lt_prog_compiler_pic_GCJ='-KPIC' | |
16406 lt_prog_compiler_static_GCJ='-Bstatic' | |
16407 ;; | |
16408 | |
16409 linux* | k*bsd*-gnu) | |
16410 case $cc_basename in | |
16411 icc* | ecc*) | |
16412 lt_prog_compiler_wl_GCJ='-Wl,' | |
16413 lt_prog_compiler_pic_GCJ='-KPIC' | |
16414 lt_prog_compiler_static_GCJ='-static' | |
16415 ;; | |
16416 pgcc* | pgf77* | pgf90* | pgf95*) | |
16417 # Portland Group compilers (*not* the Pentium gcc compiler, | |
16418 # which looks to be a dead project) | |
16419 lt_prog_compiler_wl_GCJ='-Wl,' | |
16420 lt_prog_compiler_pic_GCJ='-fpic' | |
16421 lt_prog_compiler_static_GCJ='-Bstatic' | |
16422 ;; | |
16423 ccc*) | |
16424 lt_prog_compiler_wl_GCJ='-Wl,' | |
16425 # All Alpha code is PIC. | |
16426 lt_prog_compiler_static_GCJ='-non_shared' | |
16427 ;; | |
16428 esac | |
16429 ;; | |
16430 | |
16431 osf3* | osf4* | osf5*) | |
16432 lt_prog_compiler_wl_GCJ='-Wl,' | |
16433 # All OSF/1 code is PIC. | |
16434 lt_prog_compiler_static_GCJ='-non_shared' | |
16435 ;; | |
16436 | |
16437 solaris*) | |
16438 lt_prog_compiler_pic_GCJ='-KPIC' | |
16439 lt_prog_compiler_static_GCJ='-Bstatic' | |
16440 case $cc_basename in | |
16441 f77* | f90* | f95*) | |
16442 lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16443 *) | |
16444 lt_prog_compiler_wl_GCJ='-Wl,';; | |
16445 esac | |
16446 ;; | |
16447 | |
16448 sunos4*) | |
16449 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16450 lt_prog_compiler_pic_GCJ='-PIC' | |
16451 lt_prog_compiler_static_GCJ='-Bstatic' | |
16452 ;; | |
16453 | |
16454 sysv4 | sysv4.2uw2* | sysv4.3*) | |
16455 lt_prog_compiler_wl_GCJ='-Wl,' | |
16456 lt_prog_compiler_pic_GCJ='-KPIC' | |
16457 lt_prog_compiler_static_GCJ='-Bstatic' | |
16458 ;; | |
16459 | |
16460 sysv4*MP*) | |
16461 if test -d /usr/nec ;then | |
16462 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16463 lt_prog_compiler_static_GCJ='-Bstatic' | |
16464 fi | |
16465 ;; | |
16466 | |
16467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16468 lt_prog_compiler_wl_GCJ='-Wl,' | |
16469 lt_prog_compiler_pic_GCJ='-KPIC' | |
16470 lt_prog_compiler_static_GCJ='-Bstatic' | |
16471 ;; | |
16472 | |
16473 unicos*) | |
16474 lt_prog_compiler_wl_GCJ='-Wl,' | |
16475 lt_prog_compiler_can_build_shared_GCJ=no | |
16476 ;; | |
16477 | |
16478 uts4*) | |
16479 lt_prog_compiler_pic_GCJ='-pic' | |
16480 lt_prog_compiler_static_GCJ='-Bstatic' | |
16481 ;; | |
16482 | |
16483 *) | |
16484 lt_prog_compiler_can_build_shared_GCJ=no | |
16485 ;; | |
16486 esac | |
16487 fi | |
16488 | |
16489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16490 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | |
16491 | |
16492 # | |
16493 # Check to make sure the PIC flag actually works. | |
16494 # | |
16495 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16496 | |
16497 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16498 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | |
16499 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16500 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16501 else | |
16502 lt_prog_compiler_pic_works_GCJ=no | |
16503 ac_outfile=conftest.$ac_objext | |
16504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16505 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16506 # Insert the option either (1) after the last *FLAGS variable, or | |
16507 # (2) before a word containing "conftest.", or (3) at the end. | |
16508 # Note that $ac_compile itself does not contain backslashes and begins | |
16509 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16510 # The option is referenced via a variable to avoid confusing sed. | |
16511 lt_compile=`echo "$ac_compile" | $SED \ | |
16512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16514 -e 's:$: $lt_compiler_flag:'` | |
16515 (eval echo "\"\$as_me:16515: $lt_compile\"" >&5) | |
16516 (eval "$lt_compile" 2>conftest.err) | |
16517 ac_status=$? | |
16518 cat conftest.err >&5 | |
16519 echo "$as_me:16519: \$? = $ac_status" >&5 | |
16520 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16521 # The compiler can only warn and ignore the option if not recognized | |
16522 # So say no if there are warnings other than the usual output. | |
16523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16526 lt_prog_compiler_pic_works_GCJ=yes | |
16527 fi | |
16528 fi | |
16529 $rm conftest* | |
16530 | |
16531 fi | |
16532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16533 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | |
16534 | |
16535 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16536 case $lt_prog_compiler_pic_GCJ in | |
16537 "" | " "*) ;; | |
16538 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16539 esac | |
16540 else | |
16541 lt_prog_compiler_pic_GCJ= | |
16542 lt_prog_compiler_can_build_shared_GCJ=no | |
16543 fi | |
16544 | |
16545 fi | |
16546 case $host_os in | |
16547 # For platforms which do not support PIC, -DPIC is meaningless: | |
16548 *djgpp*) | |
16549 lt_prog_compiler_pic_GCJ= | |
16550 ;; | |
16551 *) | |
16552 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16553 ;; | |
16554 esac | |
16555 | |
16556 # | |
16557 # Check to make sure the static flag actually works. | |
16558 # | |
16559 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16560 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16561 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
16562 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16563 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16564 else | |
16565 lt_prog_compiler_static_works_GCJ=no | |
16566 save_LDFLAGS="$LDFLAGS" | |
16567 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16568 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16570 # The linker can only warn and ignore the option if not recognized | |
16571 # So say no if there are warnings | |
16572 if test -s conftest.err; then | |
16573 # Append any errors to the config.log. | |
16574 cat conftest.err 1>&5 | |
16575 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16577 if diff conftest.exp conftest.er2 >/dev/null; then | |
16578 lt_prog_compiler_static_works_GCJ=yes | |
16579 fi | |
16580 else | |
16581 lt_prog_compiler_static_works_GCJ=yes | |
16582 fi | |
16583 fi | |
16584 $rm conftest* | |
16585 LDFLAGS="$save_LDFLAGS" | |
16586 | |
16587 fi | |
16588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16589 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | |
16590 | |
16591 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16592 : | |
16593 else | |
16594 lt_prog_compiler_static_GCJ= | |
16595 fi | |
16596 | |
16597 | |
16598 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16599 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
16600 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16601 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16602 else | |
16603 lt_cv_prog_compiler_c_o_GCJ=no | |
16604 $rm -r conftest 2>/dev/null | |
16605 mkdir conftest | |
16606 cd conftest | |
16607 mkdir out | |
16608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16609 | |
16610 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16611 # Insert the option either (1) after the last *FLAGS variable, or | |
16612 # (2) before a word containing "conftest.", or (3) at the end. | |
16613 # Note that $ac_compile itself does not contain backslashes and begins | |
16614 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16615 lt_compile=`echo "$ac_compile" | $SED \ | |
16616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16618 -e 's:$: $lt_compiler_flag:'` | |
16619 (eval echo "\"\$as_me:16619: $lt_compile\"" >&5) | |
16620 (eval "$lt_compile" 2>out/conftest.err) | |
16621 ac_status=$? | |
16622 cat out/conftest.err >&5 | |
16623 echo "$as_me:16623: \$? = $ac_status" >&5 | |
16624 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16625 then | |
16626 # The compiler can only warn and ignore the option if not recognized | |
16627 # So say no if there are warnings | |
16628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16631 lt_cv_prog_compiler_c_o_GCJ=yes | |
16632 fi | |
16633 fi | |
16634 chmod u+w . 2>&5 | |
16635 $rm conftest* | |
16636 # SGI C++ compiler will create directory out/ii_files/ for | |
16637 # template instantiation | |
16638 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16639 $rm out/* && rmdir out | |
16640 cd .. | |
16641 rmdir conftest | |
16642 $rm conftest* | |
16643 | |
16644 fi | |
16645 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16646 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
16647 | |
16648 | |
16649 hard_links="nottested" | |
16650 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16651 # do not overwrite the value of need_locks provided by the user | |
16652 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16653 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
16654 hard_links=yes | |
16655 $rm conftest* | |
16656 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16657 touch conftest.a | |
16658 ln conftest.a conftest.b 2>&5 || hard_links=no | |
16659 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16660 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16661 echo "${ECHO_T}$hard_links" >&6; } | |
16662 if test "$hard_links" = no; then | |
16663 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16664 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16665 need_locks=warn | |
16666 fi | |
16667 else | |
16668 need_locks=no | |
16669 fi | |
16670 | |
16671 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16672 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
16673 | |
16674 runpath_var= | |
16675 allow_undefined_flag_GCJ= | |
16676 enable_shared_with_static_runtimes_GCJ=no | |
16677 archive_cmds_GCJ= | |
16678 archive_expsym_cmds_GCJ= | |
16679 old_archive_From_new_cmds_GCJ= | |
16680 old_archive_from_expsyms_cmds_GCJ= | |
16681 export_dynamic_flag_spec_GCJ= | |
16682 whole_archive_flag_spec_GCJ= | |
16683 thread_safe_flag_spec_GCJ= | |
16684 hardcode_libdir_flag_spec_GCJ= | |
16685 hardcode_libdir_flag_spec_ld_GCJ= | |
16686 hardcode_libdir_separator_GCJ= | |
16687 hardcode_direct_GCJ=no | |
16688 hardcode_minus_L_GCJ=no | |
16689 hardcode_shlibpath_var_GCJ=unsupported | |
16690 link_all_deplibs_GCJ=unknown | |
16691 hardcode_automatic_GCJ=no | |
16692 module_cmds_GCJ= | |
16693 module_expsym_cmds_GCJ= | |
16694 always_export_symbols_GCJ=no | |
16695 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16696 # include_expsyms should be a list of space-separated symbols to be *always* | |
16697 # included in the symbol list | |
16698 include_expsyms_GCJ= | |
16699 # exclude_expsyms can be an extended regexp of symbols to exclude | |
16700 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16702 # as well as any symbol that contains `d'. | |
16703 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16705 # platforms (ab)use it in PIC code, but their linkers get confused if | |
16706 # the symbol is explicitly referenced. Since portable code cannot | |
16707 # rely on this symbol name, it's probably fine to never include it in | |
16708 # preloaded symbol tables. | |
16709 extract_expsyms_cmds= | |
16710 # Just being paranoid about ensuring that cc_basename is set. | |
16711 for cc_temp in $compiler""; do | |
16712 case $cc_temp in | |
16713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16715 \-*) ;; | |
16716 *) break;; | |
16717 esac | |
16718 done | |
16719 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16720 | |
16721 case $host_os in | |
16722 cygwin* | mingw* | pw32*) | |
16723 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16724 # When not using gcc, we currently assume that we are using | |
16725 # Microsoft Visual C++. | |
16726 if test "$GCC" != yes; then | |
16727 with_gnu_ld=no | |
16728 fi | |
16729 ;; | |
16730 interix*) | |
16731 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16732 with_gnu_ld=yes | |
16733 ;; | |
16734 openbsd*) | |
16735 with_gnu_ld=no | |
16736 ;; | |
16737 esac | |
16738 | |
16739 ld_shlibs_GCJ=yes | |
16740 if test "$with_gnu_ld" = yes; then | |
16741 # If archive_cmds runs LD, not CC, wlarc should be empty | |
16742 wlarc='${wl}' | |
16743 | |
16744 # Set some defaults for GNU ld with shared library support. These | |
16745 # are reset later if shared libraries are not supported. Putting them | |
16746 # here allows them to be overridden if necessary. | |
16747 runpath_var=LD_RUN_PATH | |
16748 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16749 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16750 # ancient GNU ld didn't support --whole-archive et. al. | |
16751 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16752 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16753 else | |
16754 whole_archive_flag_spec_GCJ= | |
16755 fi | |
16756 supports_anon_versioning=no | |
16757 case `$LD -v 2>/dev/null` in | |
16758 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16759 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16760 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16761 *\ 2.11.*) ;; # other 2.11 versions | |
16762 *) supports_anon_versioning=yes ;; | |
16763 esac | |
16764 | |
16765 # See if GNU ld supports shared libraries. | |
16766 case $host_os in | |
16767 aix3* | aix4* | aix5*) | |
16768 # On AIX/PPC, the GNU linker is very broken | |
16769 if test "$host_cpu" != ia64; then | |
16770 ld_shlibs_GCJ=no | |
16771 cat <<EOF 1>&2 | |
16772 | |
16773 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16774 *** to be unable to reliably create shared libraries on AIX. | |
16775 *** Therefore, libtool is disabling shared libraries support. If you | |
16776 *** really care for shared libraries, you may want to modify your PATH | |
16777 *** so that a non-GNU linker is found, and then restart. | |
16778 | |
16779 EOF | |
16780 fi | |
16781 ;; | |
16782 | |
16783 amigaos*) | |
16784 archive_cmds_GCJ='$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)' | |
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16786 hardcode_minus_L_GCJ=yes | |
16787 | |
16788 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16789 # that the semantics of dynamic libraries on AmigaOS, at least up | |
16790 # to version 4, is to share data among multiple programs linked | |
16791 # with the same dynamic library. Since this doesn't match the | |
16792 # behavior of shared libraries on other platforms, we can't use | |
16793 # them. | |
16794 ld_shlibs_GCJ=no | |
16795 ;; | |
16796 | |
16797 beos*) | |
16798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16799 allow_undefined_flag_GCJ=unsupported | |
16800 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16801 # support --undefined. This deserves some investigation. FIXME | |
16802 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16803 else | |
16804 ld_shlibs_GCJ=no | |
16805 fi | |
16806 ;; | |
16807 | |
16808 cygwin* | mingw* | pw32*) | |
16809 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16810 # as there is no search path for DLLs. | |
16811 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16812 allow_undefined_flag_GCJ=unsupported | |
16813 always_export_symbols_GCJ=no | |
16814 enable_shared_with_static_runtimes_GCJ=yes | |
16815 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16816 | |
16817 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16818 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16819 # If the export-symbols file already is a .def file (1st line | |
16820 # is EXPORTS), use it as is; otherwise, prepend... | |
16821 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16822 cp $export_symbols $output_objdir/$soname.def; | |
16823 else | |
16824 echo EXPORTS > $output_objdir/$soname.def; | |
16825 cat $export_symbols >> $output_objdir/$soname.def; | |
16826 fi~ | |
16827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16828 else | |
16829 ld_shlibs_GCJ=no | |
16830 fi | |
16831 ;; | |
16832 | |
16833 interix3*) | |
16834 hardcode_direct_GCJ=no | |
16835 hardcode_shlibpath_var_GCJ=no | |
16836 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16837 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16839 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16840 # default) and relocated if they conflict, which is a slow very memory | |
16841 # consuming and fragmenting process. To avoid this, we pick a random, | |
16842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16843 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16844 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16845 archive_expsym_cmds_GCJ='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' | |
16846 ;; | |
16847 | |
16848 linux* | k*bsd*-gnu) | |
16849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16850 tmp_addflag= | |
16851 case $cc_basename,$host_cpu in | |
16852 pgcc*) # Portland Group C compiler | |
16853 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16854 tmp_addflag=' $pic_flag' | |
16855 ;; | |
16856 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16857 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16858 tmp_addflag=' $pic_flag -Mnomain' ;; | |
16859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16860 tmp_addflag=' -i_dynamic' ;; | |
16861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16862 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16863 ifc* | ifort*) # Intel Fortran compiler | |
16864 tmp_addflag=' -nofor_main' ;; | |
16865 esac | |
16866 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16867 | |
16868 if test $supports_anon_versioning = yes; then | |
16869 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16871 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16872 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16873 fi | |
16874 link_all_deplibs_GCJ=no | |
16875 else | |
16876 ld_shlibs_GCJ=no | |
16877 fi | |
16878 ;; | |
16879 | |
16880 netbsd* | netbsdelf*-gnu) | |
16881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16882 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16883 wlarc= | |
16884 else | |
16885 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16886 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16887 fi | |
16888 ;; | |
16889 | |
16890 solaris*) | |
16891 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16892 ld_shlibs_GCJ=no | |
16893 cat <<EOF 1>&2 | |
16894 | |
16895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16896 *** create shared libraries on Solaris systems. Therefore, libtool | |
16897 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16898 *** binutils to release 2.9.1 or newer. Another option is to modify | |
16899 *** your PATH or compiler configuration so that the native linker is | |
16900 *** used, and then restart. | |
16901 | |
16902 EOF | |
16903 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16904 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16905 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16906 else | |
16907 ld_shlibs_GCJ=no | |
16908 fi | |
16909 ;; | |
16910 | |
16911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16912 case `$LD -v 2>&1` in | |
16913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16914 ld_shlibs_GCJ=no | |
16915 cat <<_LT_EOF 1>&2 | |
16916 | |
16917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16918 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16919 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16921 *** your PATH or compiler configuration so that the native linker is | |
16922 *** used, and then restart. | |
16923 | |
16924 _LT_EOF | |
16925 ;; | |
16926 *) | |
16927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16928 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16929 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16930 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16931 else | |
16932 ld_shlibs_GCJ=no | |
16933 fi | |
16934 ;; | |
16935 esac | |
16936 ;; | |
16937 | |
16938 sunos4*) | |
16939 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16940 wlarc= | |
16941 hardcode_direct_GCJ=yes | |
16942 hardcode_shlibpath_var_GCJ=no | |
16943 ;; | |
16944 | |
16945 *) | |
16946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16947 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16948 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16949 else | |
16950 ld_shlibs_GCJ=no | |
16951 fi | |
16952 ;; | |
16953 esac | |
16954 | |
16955 if test "$ld_shlibs_GCJ" = no; then | |
16956 runpath_var= | |
16957 hardcode_libdir_flag_spec_GCJ= | |
16958 export_dynamic_flag_spec_GCJ= | |
16959 whole_archive_flag_spec_GCJ= | |
16960 fi | |
16961 else | |
16962 # PORTME fill in a description of your system's linker (not GNU ld) | |
16963 case $host_os in | |
16964 aix3*) | |
16965 allow_undefined_flag_GCJ=unsupported | |
16966 always_export_symbols_GCJ=yes | |
16967 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16968 # Note: this linker hardcodes the directories in LIBPATH if there | |
16969 # are no directories specified by -L. | |
16970 hardcode_minus_L_GCJ=yes | |
16971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16972 # Neither direct hardcoding nor static linking is supported with a | |
16973 # broken collect2. | |
16974 hardcode_direct_GCJ=unsupported | |
16975 fi | |
16976 ;; | |
16977 | |
16978 aix4* | aix5*) | |
16979 if test "$host_cpu" = ia64; then | |
16980 # On IA64, the linker does run time linking by default, so we don't | |
16981 # have to do anything special. | |
16982 aix_use_runtimelinking=no | |
16983 exp_sym_flag='-Bexport' | |
16984 no_entry_flag="" | |
16985 else | |
16986 # If we're using GNU nm, then we don't want the "-C" option. | |
16987 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16989 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16990 else | |
16991 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16992 fi | |
16993 aix_use_runtimelinking=no | |
16994 | |
16995 # Test if we are trying to use run time linking or normal | |
16996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16997 # need to do runtime linking. | |
16998 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16999 for ld_flag in $LDFLAGS; do | |
17000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
17001 aix_use_runtimelinking=yes | |
17002 break | |
17003 fi | |
17004 done | |
17005 ;; | |
17006 esac | |
17007 | |
17008 exp_sym_flag='-bexport' | |
17009 no_entry_flag='-bnoentry' | |
17010 fi | |
17011 | |
17012 # When large executables or shared objects are built, AIX ld can | |
17013 # have problems creating the table of contents. If linking a library | |
17014 # or program results in "error TOC overflow" add -mminimal-toc to | |
17015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17017 | |
17018 archive_cmds_GCJ='' | |
17019 hardcode_direct_GCJ=yes | |
17020 hardcode_libdir_separator_GCJ=':' | |
17021 link_all_deplibs_GCJ=yes | |
17022 | |
17023 if test "$GCC" = yes; then | |
17024 case $host_os in aix4.[012]|aix4.[012].*) | |
17025 # We only want to do this on AIX 4.2 and lower, the check | |
17026 # below for broken collect2 doesn't work under 4.3+ | |
17027 collect2name=`${CC} -print-prog-name=collect2` | |
17028 if test -f "$collect2name" && \ | |
17029 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
17030 then | |
17031 # We have reworked collect2 | |
17032 hardcode_direct_GCJ=yes | |
17033 else | |
17034 # We have old collect2 | |
17035 hardcode_direct_GCJ=unsupported | |
17036 # It fails to find uninstalled libraries when the uninstalled | |
17037 # path is not listed in the libpath. Setting hardcode_minus_L | |
17038 # to unsupported forces relinking | |
17039 hardcode_minus_L_GCJ=yes | |
17040 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17041 hardcode_libdir_separator_GCJ= | |
17042 fi | |
17043 ;; | |
17044 esac | |
17045 shared_flag='-shared' | |
17046 if test "$aix_use_runtimelinking" = yes; then | |
17047 shared_flag="$shared_flag "'${wl}-G' | |
17048 fi | |
17049 else | |
17050 # not using gcc | |
17051 if test "$host_cpu" = ia64; then | |
17052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17053 # chokes on -Wl,-G. The following line is correct: | |
17054 shared_flag='-G' | |
17055 else | |
17056 if test "$aix_use_runtimelinking" = yes; then | |
17057 shared_flag='${wl}-G' | |
17058 else | |
17059 shared_flag='${wl}-bM:SRE' | |
17060 fi | |
17061 fi | |
17062 fi | |
17063 | |
17064 # It seems that -bexpall does not export symbols beginning with | |
17065 # underscore (_), so it is better to generate a list of symbols to export. | |
17066 always_export_symbols_GCJ=yes | |
17067 if test "$aix_use_runtimelinking" = yes; then | |
17068 # Warning - without using the other runtime loading flags (-brtl), | |
17069 # -berok will link without error, but may produce a broken library. | |
17070 allow_undefined_flag_GCJ='-berok' | |
17071 # Determine the default libpath from the value encoded in an empty executable. | |
17072 cat >conftest.$ac_ext <<_ACEOF | |
17073 /* confdefs.h. */ | |
17074 _ACEOF | |
17075 cat confdefs.h >>conftest.$ac_ext | |
17076 cat >>conftest.$ac_ext <<_ACEOF | |
17077 /* end confdefs.h. */ | |
17078 | |
17079 int | |
17080 main () | |
17081 { | |
17082 | |
17083 ; | |
17084 return 0; | |
17085 } | |
17086 _ACEOF | |
17087 rm -f conftest.$ac_objext conftest$ac_exeext | |
17088 if { (ac_try="$ac_link" | |
17089 case "(($ac_try" in | |
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17091 *) ac_try_echo=$ac_try;; | |
17092 esac | |
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17094 (eval "$ac_link") 2>conftest.er1 | |
17095 ac_status=$? | |
17096 grep -v '^ *+' conftest.er1 >conftest.err | |
17097 rm -f conftest.er1 | |
17098 cat conftest.err >&5 | |
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17100 (exit $ac_status); } && { | |
17101 test -z "$ac_c_werror_flag" || | |
17102 test ! -s conftest.err | |
17103 } && test -s conftest$ac_exeext && | |
17104 $as_test_x conftest$ac_exeext; then | |
17105 | |
17106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17107 }'` | |
17108 # Check for a 64-bit object if we didn't find anything. | |
17109 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17110 }'`; fi | |
17111 else | |
17112 echo "$as_me: failed program was:" >&5 | |
17113 sed 's/^/| /' conftest.$ac_ext >&5 | |
17114 | |
17115 | |
17116 fi | |
17117 | |
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17119 conftest$ac_exeext conftest.$ac_ext | |
17120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17121 | |
17122 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17123 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
17124 else | |
17125 if test "$host_cpu" = ia64; then | |
17126 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
17127 allow_undefined_flag_GCJ="-z nodefs" | |
17128 archive_expsym_cmds_GCJ="\$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" | |
17129 else | |
17130 # Determine the default libpath from the value encoded in an empty executable. | |
17131 cat >conftest.$ac_ext <<_ACEOF | |
17132 /* confdefs.h. */ | |
17133 _ACEOF | |
17134 cat confdefs.h >>conftest.$ac_ext | |
17135 cat >>conftest.$ac_ext <<_ACEOF | |
17136 /* end confdefs.h. */ | |
17137 | |
17138 int | |
17139 main () | |
17140 { | |
17141 | |
17142 ; | |
17143 return 0; | |
17144 } | |
17145 _ACEOF | |
17146 rm -f conftest.$ac_objext conftest$ac_exeext | |
17147 if { (ac_try="$ac_link" | |
17148 case "(($ac_try" in | |
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17150 *) ac_try_echo=$ac_try;; | |
17151 esac | |
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17153 (eval "$ac_link") 2>conftest.er1 | |
17154 ac_status=$? | |
17155 grep -v '^ *+' conftest.er1 >conftest.err | |
17156 rm -f conftest.er1 | |
17157 cat conftest.err >&5 | |
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17159 (exit $ac_status); } && { | |
17160 test -z "$ac_c_werror_flag" || | |
17161 test ! -s conftest.err | |
17162 } && test -s conftest$ac_exeext && | |
17163 $as_test_x conftest$ac_exeext; then | |
17164 | |
17165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17166 }'` | |
17167 # Check for a 64-bit object if we didn't find anything. | |
17168 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17169 }'`; fi | |
17170 else | |
17171 echo "$as_me: failed program was:" >&5 | |
17172 sed 's/^/| /' conftest.$ac_ext >&5 | |
17173 | |
17174 | |
17175 fi | |
17176 | |
17177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17178 conftest$ac_exeext conftest.$ac_ext | |
17179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17180 | |
17181 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17182 # Warning - without using the other run time loading flags, | |
17183 # -berok will link without error, but may produce a broken library. | |
17184 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
17185 allow_undefined_flag_GCJ=' ${wl}-berok' | |
17186 # Exported symbols can be pulled into shared objects from archives | |
17187 whole_archive_flag_spec_GCJ='$convenience' | |
17188 archive_cmds_need_lc_GCJ=yes | |
17189 # This is similar to how AIX traditionally builds its shared libraries. | |
17190 archive_expsym_cmds_GCJ="\$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' | |
17191 fi | |
17192 fi | |
17193 ;; | |
17194 | |
17195 amigaos*) | |
17196 archive_cmds_GCJ='$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)' | |
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17198 hardcode_minus_L_GCJ=yes | |
17199 # see comment about different semantics on the GNU ld section | |
17200 ld_shlibs_GCJ=no | |
17201 ;; | |
17202 | |
17203 bsdi[45]*) | |
17204 export_dynamic_flag_spec_GCJ=-rdynamic | |
17205 ;; | |
17206 | |
17207 cygwin* | mingw* | pw32*) | |
17208 # When not using gcc, we currently assume that we are using | |
17209 # Microsoft Visual C++. | |
17210 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
17211 # no search path for DLLs. | |
17212 hardcode_libdir_flag_spec_GCJ=' ' | |
17213 allow_undefined_flag_GCJ=unsupported | |
17214 # Tell ltmain to make .lib files, not .a files. | |
17215 libext=lib | |
17216 # Tell ltmain to make .dll files, not .so files. | |
17217 shrext_cmds=".dll" | |
17218 # FIXME: Setting linknames here is a bad hack. | |
17219 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
17220 # The linker will automatically build a .lib file if we build a DLL. | |
17221 old_archive_From_new_cmds_GCJ='true' | |
17222 # FIXME: Should let the user specify the lib program. | |
17223 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
17224 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
17225 enable_shared_with_static_runtimes_GCJ=yes | |
17226 ;; | |
17227 | |
17228 darwin* | rhapsody*) | |
17229 case $host_os in | |
17230 rhapsody* | darwin1.[012]) | |
17231 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
17232 ;; | |
17233 *) # Darwin 1.3 on | |
17234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
17235 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17236 else | |
17237 case ${MACOSX_DEPLOYMENT_TARGET} in | |
17238 10.[012]) | |
17239 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17240 ;; | |
17241 10.*) | |
17242 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
17243 ;; | |
17244 esac | |
17245 fi | |
17246 ;; | |
17247 esac | |
17248 archive_cmds_need_lc_GCJ=no | |
17249 hardcode_direct_GCJ=no | |
17250 hardcode_automatic_GCJ=yes | |
17251 hardcode_shlibpath_var_GCJ=unsupported | |
17252 whole_archive_flag_spec_GCJ='' | |
17253 link_all_deplibs_GCJ=yes | |
17254 if test "$GCC" = yes ; then | |
17255 output_verbose_link_cmd='echo' | |
17256 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
17257 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17259 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17260 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17261 else | |
17262 case $cc_basename in | |
17263 xlc*) | |
17264 output_verbose_link_cmd='echo' | |
17265 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
17266 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17268 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17269 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17270 ;; | |
17271 *) | |
17272 ld_shlibs_GCJ=no | |
17273 ;; | |
17274 esac | |
17275 fi | |
17276 ;; | |
17277 | |
17278 dgux*) | |
17279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17280 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17281 hardcode_shlibpath_var_GCJ=no | |
17282 ;; | |
17283 | |
17284 freebsd1*) | |
17285 ld_shlibs_GCJ=no | |
17286 ;; | |
17287 | |
17288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
17289 # support. Future versions do this automatically, but an explicit c++rt0.o | |
17290 # does not break anything, and helps significantly (at the cost of a little | |
17291 # extra space). | |
17292 freebsd2.2*) | |
17293 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
17294 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17295 hardcode_direct_GCJ=yes | |
17296 hardcode_shlibpath_var_GCJ=no | |
17297 ;; | |
17298 | |
17299 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
17300 freebsd2*) | |
17301 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17302 hardcode_direct_GCJ=yes | |
17303 hardcode_minus_L_GCJ=yes | |
17304 hardcode_shlibpath_var_GCJ=no | |
17305 ;; | |
17306 | |
17307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
17308 freebsd* | dragonfly*) | |
17309 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
17310 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17311 hardcode_direct_GCJ=yes | |
17312 hardcode_shlibpath_var_GCJ=no | |
17313 ;; | |
17314 | |
17315 hpux9*) | |
17316 if test "$GCC" = yes; then | |
17317 archive_cmds_GCJ='$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' | |
17318 else | |
17319 archive_cmds_GCJ='$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' | |
17320 fi | |
17321 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17322 hardcode_libdir_separator_GCJ=: | |
17323 hardcode_direct_GCJ=yes | |
17324 | |
17325 # hardcode_minus_L: Not really in the search PATH, | |
17326 # but as the default location of the library. | |
17327 hardcode_minus_L_GCJ=yes | |
17328 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17329 ;; | |
17330 | |
17331 hpux10*) | |
17332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17333 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17334 else | |
17335 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
17336 fi | |
17337 if test "$with_gnu_ld" = no; then | |
17338 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17339 hardcode_libdir_separator_GCJ=: | |
17340 | |
17341 hardcode_direct_GCJ=yes | |
17342 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17343 | |
17344 # hardcode_minus_L: Not really in the search PATH, | |
17345 # but as the default location of the library. | |
17346 hardcode_minus_L_GCJ=yes | |
17347 fi | |
17348 ;; | |
17349 | |
17350 hpux11*) | |
17351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17352 case $host_cpu in | |
17353 hppa*64*) | |
17354 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17355 ;; | |
17356 ia64*) | |
17357 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17358 ;; | |
17359 *) | |
17360 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17361 ;; | |
17362 esac | |
17363 else | |
17364 case $host_cpu in | |
17365 hppa*64*) | |
17366 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17367 ;; | |
17368 ia64*) | |
17369 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17370 ;; | |
17371 *) | |
17372 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17373 ;; | |
17374 esac | |
17375 fi | |
17376 if test "$with_gnu_ld" = no; then | |
17377 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17378 hardcode_libdir_separator_GCJ=: | |
17379 | |
17380 case $host_cpu in | |
17381 hppa*64*|ia64*) | |
17382 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
17383 hardcode_direct_GCJ=no | |
17384 hardcode_shlibpath_var_GCJ=no | |
17385 ;; | |
17386 *) | |
17387 hardcode_direct_GCJ=yes | |
17388 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17389 | |
17390 # hardcode_minus_L: Not really in the search PATH, | |
17391 # but as the default location of the library. | |
17392 hardcode_minus_L_GCJ=yes | |
17393 ;; | |
17394 esac | |
17395 fi | |
17396 ;; | |
17397 | |
17398 irix5* | irix6* | nonstopux*) | |
17399 if test "$GCC" = yes; then | |
17400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17401 else | |
17402 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17403 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17404 fi | |
17405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17406 hardcode_libdir_separator_GCJ=: | |
17407 link_all_deplibs_GCJ=yes | |
17408 ;; | |
17409 | |
17410 netbsd* | netbsdelf*-gnu) | |
17411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17412 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17413 else | |
17414 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17415 fi | |
17416 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17417 hardcode_direct_GCJ=yes | |
17418 hardcode_shlibpath_var_GCJ=no | |
17419 ;; | |
17420 | |
17421 newsos6) | |
17422 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17423 hardcode_direct_GCJ=yes | |
17424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17425 hardcode_libdir_separator_GCJ=: | |
17426 hardcode_shlibpath_var_GCJ=no | |
17427 ;; | |
17428 | |
17429 openbsd*) | |
17430 hardcode_direct_GCJ=yes | |
17431 hardcode_shlibpath_var_GCJ=no | |
17432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17433 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17434 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17436 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17437 else | |
17438 case $host_os in | |
17439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17440 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17441 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17442 ;; | |
17443 *) | |
17444 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17445 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17446 ;; | |
17447 esac | |
17448 fi | |
17449 ;; | |
17450 | |
17451 os2*) | |
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17453 hardcode_minus_L_GCJ=yes | |
17454 allow_undefined_flag_GCJ=unsupported | |
17455 archive_cmds_GCJ='$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' | |
17456 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17457 ;; | |
17458 | |
17459 osf3*) | |
17460 if test "$GCC" = yes; then | |
17461 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17462 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17463 else | |
17464 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17465 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17466 fi | |
17467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17468 hardcode_libdir_separator_GCJ=: | |
17469 ;; | |
17470 | |
17471 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17472 if test "$GCC" = yes; then | |
17473 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17474 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17476 else | |
17477 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17478 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17479 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
17480 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
17481 | |
17482 # Both c and cxx compiler support -rpath directly | |
17483 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17484 fi | |
17485 hardcode_libdir_separator_GCJ=: | |
17486 ;; | |
17487 | |
17488 solaris*) | |
17489 no_undefined_flag_GCJ=' -z text' | |
17490 if test "$GCC" = yes; then | |
17491 wlarc='${wl}' | |
17492 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17493 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17495 else | |
17496 wlarc='' | |
17497 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17498 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17500 fi | |
17501 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17502 hardcode_shlibpath_var_GCJ=no | |
17503 case $host_os in | |
17504 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17505 *) | |
17506 # The compiler driver will combine linker options so we | |
17507 # cannot just pass the convience library names through | |
17508 # without $wl, iff we do not link with $LD. | |
17509 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17510 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17511 case $wlarc in | |
17512 '') | |
17513 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17514 *) | |
17515 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17516 esac ;; | |
17517 esac | |
17518 link_all_deplibs_GCJ=yes | |
17519 ;; | |
17520 | |
17521 sunos4*) | |
17522 if test "x$host_vendor" = xsequent; then | |
17523 # Use $CC to link under sequent, because it throws in some extra .o | |
17524 # files that make .init and .fini sections work. | |
17525 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17526 else | |
17527 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17528 fi | |
17529 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17530 hardcode_direct_GCJ=yes | |
17531 hardcode_minus_L_GCJ=yes | |
17532 hardcode_shlibpath_var_GCJ=no | |
17533 ;; | |
17534 | |
17535 sysv4) | |
17536 case $host_vendor in | |
17537 sni) | |
17538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17539 hardcode_direct_GCJ=yes # is this really true??? | |
17540 ;; | |
17541 siemens) | |
17542 ## LD is ld it makes a PLAMLIB | |
17543 ## CC just makes a GrossModule. | |
17544 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17545 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17546 hardcode_direct_GCJ=no | |
17547 ;; | |
17548 motorola) | |
17549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17550 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17551 ;; | |
17552 esac | |
17553 runpath_var='LD_RUN_PATH' | |
17554 hardcode_shlibpath_var_GCJ=no | |
17555 ;; | |
17556 | |
17557 sysv4.3*) | |
17558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17559 hardcode_shlibpath_var_GCJ=no | |
17560 export_dynamic_flag_spec_GCJ='-Bexport' | |
17561 ;; | |
17562 | |
17563 sysv4*MP*) | |
17564 if test -d /usr/nec; then | |
17565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17566 hardcode_shlibpath_var_GCJ=no | |
17567 runpath_var=LD_RUN_PATH | |
17568 hardcode_runpath_var=yes | |
17569 ld_shlibs_GCJ=yes | |
17570 fi | |
17571 ;; | |
17572 | |
17573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
17574 no_undefined_flag_GCJ='${wl}-z,text' | |
17575 archive_cmds_need_lc_GCJ=no | |
17576 hardcode_shlibpath_var_GCJ=no | |
17577 runpath_var='LD_RUN_PATH' | |
17578 | |
17579 if test "$GCC" = yes; then | |
17580 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17581 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17582 else | |
17583 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17584 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17585 fi | |
17586 ;; | |
17587 | |
17588 sysv5* | sco3.2v5* | sco5v6*) | |
17589 # Note: We can NOT use -z defs as we might desire, because we do not | |
17590 # link with -lc, and that would cause any symbols used from libc to | |
17591 # always be unresolved, which means just about no library would | |
17592 # ever link correctly. If we're not using GNU ld we use -z text | |
17593 # though, which does catch some bad symbols but isn't as heavy-handed | |
17594 # as -z defs. | |
17595 no_undefined_flag_GCJ='${wl}-z,text' | |
17596 allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
17597 archive_cmds_need_lc_GCJ=no | |
17598 hardcode_shlibpath_var_GCJ=no | |
17599 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
17600 hardcode_libdir_separator_GCJ=':' | |
17601 link_all_deplibs_GCJ=yes | |
17602 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
17603 runpath_var='LD_RUN_PATH' | |
17604 | |
17605 if test "$GCC" = yes; then | |
17606 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17607 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17608 else | |
17609 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17610 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17611 fi | |
17612 ;; | |
17613 | |
17614 uts4*) | |
17615 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17616 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17617 hardcode_shlibpath_var_GCJ=no | |
17618 ;; | |
17619 | |
17620 *) | |
17621 ld_shlibs_GCJ=no | |
17622 ;; | |
17623 esac | |
17624 fi | |
17625 | |
17626 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17627 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | |
17628 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17629 | |
17630 # | |
17631 # Do we need to explicitly link libc? | |
17632 # | |
17633 case "x$archive_cmds_need_lc_GCJ" in | |
17634 x|xyes) | |
17635 # Assume -lc should be added | |
17636 archive_cmds_need_lc_GCJ=yes | |
17637 | |
17638 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17639 case $archive_cmds_GCJ in | |
17640 *'~'*) | |
17641 # FIXME: we may have to deal with multi-command sequences. | |
17642 ;; | |
17643 '$CC '*) | |
17644 # Test whether the compiler implicitly links with -lc since on some | |
17645 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17646 # to ld, don't add -lc before -lgcc. | |
17647 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
17649 $rm conftest* | |
17650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17651 | |
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17653 (eval $ac_compile) 2>&5 | |
17654 ac_status=$? | |
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17656 (exit $ac_status); } 2>conftest.err; then | |
17657 soname=conftest | |
17658 lib=conftest | |
17659 libobjs=conftest.$ac_objext | |
17660 deplibs= | |
17661 wl=$lt_prog_compiler_wl_GCJ | |
17662 pic_flag=$lt_prog_compiler_pic_GCJ | |
17663 compiler_flags=-v | |
17664 linker_flags=-v | |
17665 verstring= | |
17666 output_objdir=. | |
17667 libname=conftest | |
17668 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17669 allow_undefined_flag_GCJ= | |
17670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17671 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17672 ac_status=$? | |
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17674 (exit $ac_status); } | |
17675 then | |
17676 archive_cmds_need_lc_GCJ=no | |
17677 else | |
17678 archive_cmds_need_lc_GCJ=yes | |
17679 fi | |
17680 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17681 else | |
17682 cat conftest.err 1>&5 | |
17683 fi | |
17684 $rm conftest* | |
17685 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17686 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | |
17687 ;; | |
17688 esac | |
17689 fi | |
17690 ;; | |
17691 esac | |
17692 | |
17693 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
17695 library_names_spec= | |
17696 libname_spec='lib$name' | |
17697 soname_spec= | |
17698 shrext_cmds=".so" | |
17699 postinstall_cmds= | |
17700 postuninstall_cmds= | |
17701 finish_cmds= | |
17702 finish_eval= | |
17703 shlibpath_var= | |
17704 shlibpath_overrides_runpath=unknown | |
17705 version_type=none | |
17706 dynamic_linker="$host_os ld.so" | |
17707 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17708 if test "$GCC" = yes; then | |
17709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17711 # if the path contains ";" then we assume it to be the separator | |
17712 # otherwise default to the standard path separator (i.e. ":") - it is | |
17713 # assumed that no part of a normal pathname contains ";" but that should | |
17714 # okay in the real world where ";" in dirpaths is itself problematic. | |
17715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17716 else | |
17717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17718 fi | |
17719 else | |
17720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17721 fi | |
17722 need_lib_prefix=unknown | |
17723 hardcode_into_libs=no | |
17724 | |
17725 # when you set need_version to no, make sure it does not cause -set_version | |
17726 # flags to be left without arguments | |
17727 need_version=unknown | |
17728 | |
17729 case $host_os in | |
17730 aix3*) | |
17731 version_type=linux | |
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17733 shlibpath_var=LIBPATH | |
17734 | |
17735 # AIX 3 has no versioning support, so we append a major version to the name. | |
17736 soname_spec='${libname}${release}${shared_ext}$major' | |
17737 ;; | |
17738 | |
17739 aix4* | aix5*) | |
17740 version_type=linux | |
17741 need_lib_prefix=no | |
17742 need_version=no | |
17743 hardcode_into_libs=yes | |
17744 if test "$host_cpu" = ia64; then | |
17745 # AIX 5 supports IA64 | |
17746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17747 shlibpath_var=LD_LIBRARY_PATH | |
17748 else | |
17749 # With GCC up to 2.95.x, collect2 would create an import file | |
17750 # for dependence libraries. The import file would start with | |
17751 # the line `#! .'. This would cause the generated library to | |
17752 # depend on `.', always an invalid library. This was fixed in | |
17753 # development snapshots of GCC prior to 3.0. | |
17754 case $host_os in | |
17755 aix4 | aix4.[01] | aix4.[01].*) | |
17756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17757 echo ' yes ' | |
17758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17759 : | |
17760 else | |
17761 can_build_shared=no | |
17762 fi | |
17763 ;; | |
17764 esac | |
17765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17766 # soname into executable. Probably we can add versioning support to | |
17767 # collect2, so additional links can be useful in future. | |
17768 if test "$aix_use_runtimelinking" = yes; then | |
17769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17770 # instead of lib<name>.a to let people know that these are not | |
17771 # typical AIX shared libraries. | |
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17773 else | |
17774 # We preserve .a as extension for shared libraries through AIX4.2 | |
17775 # and later when we are not doing run time linking. | |
17776 library_names_spec='${libname}${release}.a $libname.a' | |
17777 soname_spec='${libname}${release}${shared_ext}$major' | |
17778 fi | |
17779 shlibpath_var=LIBPATH | |
17780 fi | |
17781 ;; | |
17782 | |
17783 amigaos*) | |
17784 library_names_spec='$libname.ixlibrary $libname.a' | |
17785 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17786 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' | |
17787 ;; | |
17788 | |
17789 beos*) | |
17790 library_names_spec='${libname}${shared_ext}' | |
17791 dynamic_linker="$host_os ld.so" | |
17792 shlibpath_var=LIBRARY_PATH | |
17793 ;; | |
17794 | |
17795 bsdi[45]*) | |
17796 version_type=linux | |
17797 need_version=no | |
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17799 soname_spec='${libname}${release}${shared_ext}$major' | |
17800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17801 shlibpath_var=LD_LIBRARY_PATH | |
17802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17804 # the default ld.so.conf also contains /usr/contrib/lib and | |
17805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17806 # libtool to hard-code these into programs | |
17807 ;; | |
17808 | |
17809 cygwin* | mingw* | pw32*) | |
17810 version_type=windows | |
17811 shrext_cmds=".dll" | |
17812 need_version=no | |
17813 need_lib_prefix=no | |
17814 | |
17815 case $GCC,$host_os in | |
17816 yes,cygwin* | yes,mingw* | yes,pw32*) | |
17817 library_names_spec='$libname.dll.a' | |
17818 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17819 postinstall_cmds='base_file=`basename \${file}`~ | |
17820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17821 dldir=$destdir/`dirname \$dlpath`~ | |
17822 test -d \$dldir || mkdir -p \$dldir~ | |
17823 $install_prog $dir/$dlname \$dldir/$dlname~ | |
17824 chmod a+x \$dldir/$dlname' | |
17825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17826 dlpath=$dir/\$dldll~ | |
17827 $rm \$dlpath' | |
17828 shlibpath_overrides_runpath=yes | |
17829 | |
17830 case $host_os in | |
17831 cygwin*) | |
17832 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17835 ;; | |
17836 mingw*) | |
17837 # MinGW DLLs use traditional 'lib' prefix | |
17838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17841 # It is most probably a Windows format PATH printed by | |
17842 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17843 # path with ; separators, and with drive letters. We can handle the | |
17844 # drive letters (cygwin fileutils understands them), so leave them, | |
17845 # especially as we might pass files found there to a mingw objdump, | |
17846 # which wouldn't understand a cygwinified path. Ahh. | |
17847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17848 else | |
17849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17850 fi | |
17851 ;; | |
17852 pw32*) | |
17853 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17855 ;; | |
17856 esac | |
17857 ;; | |
17858 | |
17859 *) | |
17860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17861 ;; | |
17862 esac | |
17863 dynamic_linker='Win32 ld.exe' | |
17864 # FIXME: first we should search . and the directory the executable is in | |
17865 shlibpath_var=PATH | |
17866 ;; | |
17867 | |
17868 darwin* | rhapsody*) | |
17869 dynamic_linker="$host_os dyld" | |
17870 version_type=darwin | |
17871 need_lib_prefix=no | |
17872 need_version=no | |
17873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17874 soname_spec='${libname}${release}${major}$shared_ext' | |
17875 shlibpath_overrides_runpath=yes | |
17876 shlibpath_var=DYLD_LIBRARY_PATH | |
17877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17879 if test "$GCC" = yes; then | |
17880 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
17881 else | |
17882 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17883 fi | |
17884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17885 ;; | |
17886 | |
17887 dgux*) | |
17888 version_type=linux | |
17889 need_lib_prefix=no | |
17890 need_version=no | |
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17892 soname_spec='${libname}${release}${shared_ext}$major' | |
17893 shlibpath_var=LD_LIBRARY_PATH | |
17894 ;; | |
17895 | |
17896 freebsd1*) | |
17897 dynamic_linker=no | |
17898 ;; | |
17899 | |
17900 freebsd* | dragonfly*) | |
17901 # DragonFly does not have aout. When/if they implement a new | |
17902 # versioning mechanism, adjust this. | |
17903 if test -x /usr/bin/objformat; then | |
17904 objformat=`/usr/bin/objformat` | |
17905 else | |
17906 case $host_os in | |
17907 freebsd[123]*) objformat=aout ;; | |
17908 *) objformat=elf ;; | |
17909 esac | |
17910 fi | |
17911 version_type=freebsd-$objformat | |
17912 case $version_type in | |
17913 freebsd-elf*) | |
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17915 need_version=no | |
17916 need_lib_prefix=no | |
17917 ;; | |
17918 freebsd-*) | |
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17920 need_version=yes | |
17921 ;; | |
17922 esac | |
17923 shlibpath_var=LD_LIBRARY_PATH | |
17924 case $host_os in | |
17925 freebsd2*) | |
17926 shlibpath_overrides_runpath=yes | |
17927 ;; | |
17928 freebsd3.[01]* | freebsdelf3.[01]*) | |
17929 shlibpath_overrides_runpath=yes | |
17930 hardcode_into_libs=yes | |
17931 ;; | |
17932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17934 shlibpath_overrides_runpath=no | |
17935 hardcode_into_libs=yes | |
17936 ;; | |
17937 freebsd*) # from 4.6 on | |
17938 shlibpath_overrides_runpath=yes | |
17939 hardcode_into_libs=yes | |
17940 ;; | |
17941 esac | |
17942 ;; | |
17943 | |
17944 gnu*) | |
17945 version_type=linux | |
17946 need_lib_prefix=no | |
17947 need_version=no | |
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17949 soname_spec='${libname}${release}${shared_ext}$major' | |
17950 shlibpath_var=LD_LIBRARY_PATH | |
17951 hardcode_into_libs=yes | |
17952 ;; | |
17953 | |
17954 hpux9* | hpux10* | hpux11*) | |
17955 # Give a soname corresponding to the major version so that dld.sl refuses to | |
17956 # link against other versions. | |
17957 version_type=sunos | |
17958 need_lib_prefix=no | |
17959 need_version=no | |
17960 case $host_cpu in | |
17961 ia64*) | |
17962 shrext_cmds='.so' | |
17963 hardcode_into_libs=yes | |
17964 dynamic_linker="$host_os dld.so" | |
17965 shlibpath_var=LD_LIBRARY_PATH | |
17966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17968 soname_spec='${libname}${release}${shared_ext}$major' | |
17969 if test "X$HPUX_IA64_MODE" = X32; then | |
17970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17971 else | |
17972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17973 fi | |
17974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17975 ;; | |
17976 hppa*64*) | |
17977 shrext_cmds='.sl' | |
17978 hardcode_into_libs=yes | |
17979 dynamic_linker="$host_os dld.sl" | |
17980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17983 soname_spec='${libname}${release}${shared_ext}$major' | |
17984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17986 ;; | |
17987 *) | |
17988 shrext_cmds='.sl' | |
17989 dynamic_linker="$host_os dld.sl" | |
17990 shlibpath_var=SHLIB_PATH | |
17991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17993 soname_spec='${libname}${release}${shared_ext}$major' | |
17994 ;; | |
17995 esac | |
17996 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17997 postinstall_cmds='chmod 555 $lib' | |
17998 ;; | |
17999 | |
18000 interix3*) | |
18001 version_type=linux | |
18002 need_lib_prefix=no | |
18003 need_version=no | |
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18005 soname_spec='${libname}${release}${shared_ext}$major' | |
18006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
18007 shlibpath_var=LD_LIBRARY_PATH | |
18008 shlibpath_overrides_runpath=no | |
18009 hardcode_into_libs=yes | |
18010 ;; | |
18011 | |
18012 irix5* | irix6* | nonstopux*) | |
18013 case $host_os in | |
18014 nonstopux*) version_type=nonstopux ;; | |
18015 *) | |
18016 if test "$lt_cv_prog_gnu_ld" = yes; then | |
18017 version_type=linux | |
18018 else | |
18019 version_type=irix | |
18020 fi ;; | |
18021 esac | |
18022 need_lib_prefix=no | |
18023 need_version=no | |
18024 soname_spec='${libname}${release}${shared_ext}$major' | |
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18026 case $host_os in | |
18027 irix5* | nonstopux*) | |
18028 libsuff= shlibsuff= | |
18029 ;; | |
18030 *) | |
18031 case $LD in # libtool.m4 will add one of these switches to LD | |
18032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
18033 libsuff= shlibsuff= libmagic=32-bit;; | |
18034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
18035 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
18036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
18037 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
18038 *) libsuff= shlibsuff= libmagic=never-match;; | |
18039 esac | |
18040 ;; | |
18041 esac | |
18042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
18043 shlibpath_overrides_runpath=no | |
18044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
18045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
18046 hardcode_into_libs=yes | |
18047 ;; | |
18048 | |
18049 # No shared lib support for Linux oldld, aout, or coff. | |
18050 linux*oldld* | linux*aout* | linux*coff*) | |
18051 dynamic_linker=no | |
18052 ;; | |
18053 | |
18054 # This must be Linux ELF. | |
18055 linux* | k*bsd*-gnu) | |
18056 version_type=linux | |
18057 need_lib_prefix=no | |
18058 need_version=no | |
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18060 soname_spec='${libname}${release}${shared_ext}$major' | |
18061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
18062 shlibpath_var=LD_LIBRARY_PATH | |
18063 shlibpath_overrides_runpath=no | |
18064 # This implies no fast_install, which is unacceptable. | |
18065 # Some rework will be needed to allow for fast_install | |
18066 # before this can be enabled. | |
18067 hardcode_into_libs=yes | |
18068 | |
18069 # Append ld.so.conf contents to the search path | |
18070 if test -f /etc/ld.so.conf; then | |
18071 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
18072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
18073 fi | |
18074 | |
18075 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
18076 # powerpc, because MkLinux only supported shared libraries with the | |
18077 # GNU dynamic linker. Since this was broken with cross compilers, | |
18078 # most powerpc-linux boxes support dynamic linking these days and | |
18079 # people can always --disable-shared, the test was removed, and we | |
18080 # assume the GNU/Linux dynamic linker is in use. | |
18081 dynamic_linker='GNU/Linux ld.so' | |
18082 ;; | |
18083 | |
18084 netbsdelf*-gnu) | |
18085 version_type=linux | |
18086 need_lib_prefix=no | |
18087 need_version=no | |
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18089 soname_spec='${libname}${release}${shared_ext}$major' | |
18090 shlibpath_var=LD_LIBRARY_PATH | |
18091 shlibpath_overrides_runpath=no | |
18092 hardcode_into_libs=yes | |
18093 dynamic_linker='NetBSD ld.elf_so' | |
18094 ;; | |
18095 | |
18096 netbsd*) | |
18097 version_type=sunos | |
18098 need_lib_prefix=no | |
18099 need_version=no | |
18100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
18101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18103 dynamic_linker='NetBSD (a.out) ld.so' | |
18104 else | |
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18106 soname_spec='${libname}${release}${shared_ext}$major' | |
18107 dynamic_linker='NetBSD ld.elf_so' | |
18108 fi | |
18109 shlibpath_var=LD_LIBRARY_PATH | |
18110 shlibpath_overrides_runpath=yes | |
18111 hardcode_into_libs=yes | |
18112 ;; | |
18113 | |
18114 newsos6) | |
18115 version_type=linux | |
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18117 shlibpath_var=LD_LIBRARY_PATH | |
18118 shlibpath_overrides_runpath=yes | |
18119 ;; | |
18120 | |
18121 nto-qnx*) | |
18122 version_type=linux | |
18123 need_lib_prefix=no | |
18124 need_version=no | |
18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18126 soname_spec='${libname}${release}${shared_ext}$major' | |
18127 shlibpath_var=LD_LIBRARY_PATH | |
18128 shlibpath_overrides_runpath=yes | |
18129 ;; | |
18130 | |
18131 openbsd*) | |
18132 version_type=sunos | |
18133 sys_lib_dlsearch_path_spec="/usr/lib" | |
18134 need_lib_prefix=no | |
18135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
18136 case $host_os in | |
18137 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
18138 *) need_version=no ;; | |
18139 esac | |
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18142 shlibpath_var=LD_LIBRARY_PATH | |
18143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18144 case $host_os in | |
18145 openbsd2.[89] | openbsd2.[89].*) | |
18146 shlibpath_overrides_runpath=no | |
18147 ;; | |
18148 *) | |
18149 shlibpath_overrides_runpath=yes | |
18150 ;; | |
18151 esac | |
18152 else | |
18153 shlibpath_overrides_runpath=yes | |
18154 fi | |
18155 ;; | |
18156 | |
18157 os2*) | |
18158 libname_spec='$name' | |
18159 shrext_cmds=".dll" | |
18160 need_lib_prefix=no | |
18161 library_names_spec='$libname${shared_ext} $libname.a' | |
18162 dynamic_linker='OS/2 ld.exe' | |
18163 shlibpath_var=LIBPATH | |
18164 ;; | |
18165 | |
18166 osf3* | osf4* | osf5*) | |
18167 version_type=osf | |
18168 need_lib_prefix=no | |
18169 need_version=no | |
18170 soname_spec='${libname}${release}${shared_ext}$major' | |
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18172 shlibpath_var=LD_LIBRARY_PATH | |
18173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
18174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
18175 ;; | |
18176 | |
18177 solaris*) | |
18178 version_type=linux | |
18179 need_lib_prefix=no | |
18180 need_version=no | |
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18182 soname_spec='${libname}${release}${shared_ext}$major' | |
18183 shlibpath_var=LD_LIBRARY_PATH | |
18184 shlibpath_overrides_runpath=yes | |
18185 hardcode_into_libs=yes | |
18186 # ldd complains unless libraries are executable | |
18187 postinstall_cmds='chmod +x $lib' | |
18188 ;; | |
18189 | |
18190 sunos4*) | |
18191 version_type=sunos | |
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
18194 shlibpath_var=LD_LIBRARY_PATH | |
18195 shlibpath_overrides_runpath=yes | |
18196 if test "$with_gnu_ld" = yes; then | |
18197 need_lib_prefix=no | |
18198 fi | |
18199 need_version=yes | |
18200 ;; | |
18201 | |
18202 sysv4 | sysv4.3*) | |
18203 version_type=linux | |
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18205 soname_spec='${libname}${release}${shared_ext}$major' | |
18206 shlibpath_var=LD_LIBRARY_PATH | |
18207 case $host_vendor in | |
18208 sni) | |
18209 shlibpath_overrides_runpath=no | |
18210 need_lib_prefix=no | |
18211 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
18212 runpath_var=LD_RUN_PATH | |
18213 ;; | |
18214 siemens) | |
18215 need_lib_prefix=no | |
18216 ;; | |
18217 motorola) | |
18218 need_lib_prefix=no | |
18219 need_version=no | |
18220 shlibpath_overrides_runpath=no | |
18221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
18222 ;; | |
18223 esac | |
18224 ;; | |
18225 | |
18226 sysv4*MP*) | |
18227 if test -d /usr/nec ;then | |
18228 version_type=linux | |
18229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
18230 soname_spec='$libname${shared_ext}.$major' | |
18231 shlibpath_var=LD_LIBRARY_PATH | |
18232 fi | |
18233 ;; | |
18234 | |
18235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
18236 version_type=freebsd-elf | |
18237 need_lib_prefix=no | |
18238 need_version=no | |
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18240 soname_spec='${libname}${release}${shared_ext}$major' | |
18241 shlibpath_var=LD_LIBRARY_PATH | |
18242 hardcode_into_libs=yes | |
18243 if test "$with_gnu_ld" = yes; then | |
18244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
18245 shlibpath_overrides_runpath=no | |
18246 else | |
18247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
18248 shlibpath_overrides_runpath=yes | |
18249 case $host_os in | |
18250 sco3.2v5*) | |
18251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
18252 ;; | |
18253 esac | |
18254 fi | |
18255 sys_lib_dlsearch_path_spec='/usr/lib' | |
18256 ;; | |
18257 | |
18258 uts4*) | |
18259 version_type=linux | |
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18261 soname_spec='${libname}${release}${shared_ext}$major' | |
18262 shlibpath_var=LD_LIBRARY_PATH | |
18263 ;; | |
18264 | |
18265 *) | |
18266 dynamic_linker=no | |
18267 ;; | |
18268 esac | |
18269 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
18270 echo "${ECHO_T}$dynamic_linker" >&6; } | |
18271 test "$dynamic_linker" = no && can_build_shared=no | |
18272 | |
18273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
18274 if test "$GCC" = yes; then | |
18275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
18276 fi | |
18277 | |
18278 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
18279 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
18280 hardcode_action_GCJ= | |
18281 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
18282 test -n "$runpath_var_GCJ" || \ | |
18283 test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
18284 | |
18285 # We can hardcode non-existant directories. | |
18286 if test "$hardcode_direct_GCJ" != no && | |
18287 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
18288 # have to relink, otherwise we might link with an installed library | |
18289 # when we should be linking with a yet-to-be-installed one | |
18290 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
18291 test "$hardcode_minus_L_GCJ" != no; then | |
18292 # Linking always hardcodes the temporary library directory. | |
18293 hardcode_action_GCJ=relink | |
18294 else | |
18295 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18296 hardcode_action_GCJ=immediate | |
18297 fi | |
18298 else | |
18299 # We cannot hardcode anything, or else we can only hardcode existing | |
18300 # directories. | |
18301 hardcode_action_GCJ=unsupported | |
18302 fi | |
18303 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
18304 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | |
18305 | |
18306 if test "$hardcode_action_GCJ" = relink; then | |
18307 # Fast installation is not supported | |
18308 enable_fast_install=no | |
18309 elif test "$shlibpath_overrides_runpath" = yes || | |
18310 test "$enable_shared" = no; then | |
18311 # Fast installation is not necessary | |
18312 enable_fast_install=needless | |
18313 fi | |
18314 | |
18315 | |
18316 # The else clause should only fire when bootstrapping the | |
18317 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18318 # with your package, and you will get complaints that there are | |
18319 # no rules to generate ltmain.sh. | |
18320 if test -f "$ltmain"; then | |
18321 # See if we are running on zsh, and set the options which allow our commands through | |
18322 # without removal of \ escapes. | |
18323 if test -n "${ZSH_VERSION+set}" ; then | |
18324 setopt NO_GLOB_SUBST | |
18325 fi | |
18326 # Now quote all the things that may contain metacharacters while being | |
18327 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18328 # variables and quote the copies for generation of the libtool script. | |
18329 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18330 SED SHELL STRIP \ | |
18331 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18332 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18333 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18334 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18335 lt_cv_sys_global_symbol_to_c_name_address \ | |
18336 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18337 old_postinstall_cmds old_postuninstall_cmds \ | |
18338 compiler_GCJ \ | |
18339 CC_GCJ \ | |
18340 LD_GCJ \ | |
18341 lt_prog_compiler_wl_GCJ \ | |
18342 lt_prog_compiler_pic_GCJ \ | |
18343 lt_prog_compiler_static_GCJ \ | |
18344 lt_prog_compiler_no_builtin_flag_GCJ \ | |
18345 export_dynamic_flag_spec_GCJ \ | |
18346 thread_safe_flag_spec_GCJ \ | |
18347 whole_archive_flag_spec_GCJ \ | |
18348 enable_shared_with_static_runtimes_GCJ \ | |
18349 old_archive_cmds_GCJ \ | |
18350 old_archive_from_new_cmds_GCJ \ | |
18351 predep_objects_GCJ \ | |
18352 postdep_objects_GCJ \ | |
18353 predeps_GCJ \ | |
18354 postdeps_GCJ \ | |
18355 compiler_lib_search_path_GCJ \ | |
18356 archive_cmds_GCJ \ | |
18357 archive_expsym_cmds_GCJ \ | |
18358 postinstall_cmds_GCJ \ | |
18359 postuninstall_cmds_GCJ \ | |
18360 old_archive_from_expsyms_cmds_GCJ \ | |
18361 allow_undefined_flag_GCJ \ | |
18362 no_undefined_flag_GCJ \ | |
18363 export_symbols_cmds_GCJ \ | |
18364 hardcode_libdir_flag_spec_GCJ \ | |
18365 hardcode_libdir_flag_spec_ld_GCJ \ | |
18366 hardcode_libdir_separator_GCJ \ | |
18367 hardcode_automatic_GCJ \ | |
18368 module_cmds_GCJ \ | |
18369 module_expsym_cmds_GCJ \ | |
18370 lt_cv_prog_compiler_c_o_GCJ \ | |
18371 exclude_expsyms_GCJ \ | |
18372 include_expsyms_GCJ; do | |
18373 | |
18374 case $var in | |
18375 old_archive_cmds_GCJ | \ | |
18376 old_archive_from_new_cmds_GCJ | \ | |
18377 archive_cmds_GCJ | \ | |
18378 archive_expsym_cmds_GCJ | \ | |
18379 module_cmds_GCJ | \ | |
18380 module_expsym_cmds_GCJ | \ | |
18381 old_archive_from_expsyms_cmds_GCJ | \ | |
18382 export_symbols_cmds_GCJ | \ | |
18383 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18384 postinstall_cmds | postuninstall_cmds | \ | |
18385 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18387 # Double-quote double-evaled strings. | |
18388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18389 ;; | |
18390 *) | |
18391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18392 ;; | |
18393 esac | |
18394 done | |
18395 | |
18396 case $lt_echo in | |
18397 *'\$0 --fallback-echo"') | |
18398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18399 ;; | |
18400 esac | |
18401 | |
18402 cfgfile="$ofile" | |
18403 | |
18404 cat <<__EOF__ >> "$cfgfile" | |
18405 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18406 | |
18407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18408 | |
18409 # Shell to use when invoking shell scripts. | |
18410 SHELL=$lt_SHELL | |
18411 | |
18412 # Whether or not to build shared libraries. | |
18413 build_libtool_libs=$enable_shared | |
18414 | |
18415 # Whether or not to build static libraries. | |
18416 build_old_libs=$enable_static | |
18417 | |
18418 # Whether or not to add -lc for building shared libraries. | |
18419 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18420 | |
18421 # Whether or not to disallow shared libs when runtime libs are static | |
18422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18423 | |
18424 # Whether or not to optimize for fast installation. | |
18425 fast_install=$enable_fast_install | |
18426 | |
18427 # The host system. | |
18428 host_alias=$host_alias | |
18429 host=$host | |
18430 host_os=$host_os | |
18431 | |
18432 # The build system. | |
18433 build_alias=$build_alias | |
18434 build=$build | |
18435 build_os=$build_os | |
18436 | |
18437 # An echo program that does not interpret backslashes. | |
18438 echo=$lt_echo | |
18439 | |
18440 # The archiver. | |
18441 AR=$lt_AR | |
18442 AR_FLAGS=$lt_AR_FLAGS | |
18443 | |
18444 # A C compiler. | |
18445 LTCC=$lt_LTCC | |
18446 | |
18447 # LTCC compiler flags. | |
18448 LTCFLAGS=$lt_LTCFLAGS | |
18449 | |
18450 # A language-specific compiler. | |
18451 CC=$lt_compiler_GCJ | |
18452 | |
18453 # Is the compiler the GNU C compiler? | |
18454 with_gcc=$GCC_GCJ | |
18455 | |
18456 # An ERE matcher. | |
18457 EGREP=$lt_EGREP | |
18458 | |
18459 # The linker used to build libraries. | |
18460 LD=$lt_LD_GCJ | |
18461 | |
18462 # Whether we need hard or soft links. | |
18463 LN_S=$lt_LN_S | |
18464 | |
18465 # A BSD-compatible nm program. | |
18466 NM=$lt_NM | |
18467 | |
18468 # A symbol stripping program | |
18469 STRIP=$lt_STRIP | |
18470 | |
18471 # Used to examine libraries when file_magic_cmd begins "file" | |
18472 MAGIC_CMD=$MAGIC_CMD | |
18473 | |
18474 # Used on cygwin: DLL creation program. | |
18475 DLLTOOL="$DLLTOOL" | |
18476 | |
18477 # Used on cygwin: object dumper. | |
18478 OBJDUMP="$OBJDUMP" | |
18479 | |
18480 # Used on cygwin: assembler. | |
18481 AS="$AS" | |
18482 | |
18483 # The name of the directory that contains temporary libtool files. | |
18484 objdir=$objdir | |
18485 | |
18486 # How to create reloadable object files. | |
18487 reload_flag=$lt_reload_flag | |
18488 reload_cmds=$lt_reload_cmds | |
18489 | |
18490 # How to pass a linker flag through the compiler. | |
18491 wl=$lt_lt_prog_compiler_wl_GCJ | |
18492 | |
18493 # Object file suffix (normally "o"). | |
18494 objext="$ac_objext" | |
18495 | |
18496 # Old archive suffix (normally "a"). | |
18497 libext="$libext" | |
18498 | |
18499 # Shared library suffix (normally ".so"). | |
18500 shrext_cmds='$shrext_cmds' | |
18501 | |
18502 # Executable file suffix (normally ""). | |
18503 exeext="$exeext" | |
18504 | |
18505 # Additional compiler flags for building library objects. | |
18506 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18507 pic_mode=$pic_mode | |
18508 | |
18509 # What is the maximum length of a command? | |
18510 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18511 | |
18512 # Does compiler simultaneously support -c and -o options? | |
18513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18514 | |
18515 # Must we lock files when doing compilation? | |
18516 need_locks=$lt_need_locks | |
18517 | |
18518 # Do we need the lib prefix for modules? | |
18519 need_lib_prefix=$need_lib_prefix | |
18520 | |
18521 # Do we need a version for libraries? | |
18522 need_version=$need_version | |
18523 | |
18524 # Whether dlopen is supported. | |
18525 dlopen_support=$enable_dlopen | |
18526 | |
18527 # Whether dlopen of programs is supported. | |
18528 dlopen_self=$enable_dlopen_self | |
18529 | |
18530 # Whether dlopen of statically linked programs is supported. | |
18531 dlopen_self_static=$enable_dlopen_self_static | |
18532 | |
18533 # Compiler flag to prevent dynamic linking. | |
18534 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18535 | |
18536 # Compiler flag to turn off builtin functions. | |
18537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18538 | |
18539 # Compiler flag to allow reflexive dlopens. | |
18540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18541 | |
18542 # Compiler flag to generate shared objects directly from archives. | |
18543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18544 | |
18545 # Compiler flag to generate thread-safe objects. | |
18546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18547 | |
18548 # Library versioning type. | |
18549 version_type=$version_type | |
18550 | |
18551 # Format of library name prefix. | |
18552 libname_spec=$lt_libname_spec | |
18553 | |
18554 # List of archive names. First name is the real one, the rest are links. | |
18555 # The last name is the one that the linker finds with -lNAME. | |
18556 library_names_spec=$lt_library_names_spec | |
18557 | |
18558 # The coded name of the library, if different from the real name. | |
18559 soname_spec=$lt_soname_spec | |
18560 | |
18561 # Commands used to build and install an old-style archive. | |
18562 RANLIB=$lt_RANLIB | |
18563 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18564 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18565 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18566 | |
18567 # Create an old-style archive from a shared archive. | |
18568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18569 | |
18570 # Create a temporary old-style archive to link instead of a shared archive. | |
18571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18572 | |
18573 # Commands used to build and install a shared archive. | |
18574 archive_cmds=$lt_archive_cmds_GCJ | |
18575 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18576 postinstall_cmds=$lt_postinstall_cmds | |
18577 postuninstall_cmds=$lt_postuninstall_cmds | |
18578 | |
18579 # Commands used to build a loadable module (assumed same as above if empty) | |
18580 module_cmds=$lt_module_cmds_GCJ | |
18581 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18582 | |
18583 # Commands to strip libraries. | |
18584 old_striplib=$lt_old_striplib | |
18585 striplib=$lt_striplib | |
18586 | |
18587 # Dependencies to place before the objects being linked to create a | |
18588 # shared library. | |
18589 predep_objects=$lt_predep_objects_GCJ | |
18590 | |
18591 # Dependencies to place after the objects being linked to create a | |
18592 # shared library. | |
18593 postdep_objects=$lt_postdep_objects_GCJ | |
18594 | |
18595 # Dependencies to place before the objects being linked to create a | |
18596 # shared library. | |
18597 predeps=$lt_predeps_GCJ | |
18598 | |
18599 # Dependencies to place after the objects being linked to create a | |
18600 # shared library. | |
18601 postdeps=$lt_postdeps_GCJ | |
18602 | |
18603 # The library search path used internally by the compiler when linking | |
18604 # a shared library. | |
18605 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18606 | |
18607 # Method to check whether dependent libraries are shared objects. | |
18608 deplibs_check_method=$lt_deplibs_check_method | |
18609 | |
18610 # Command to use when deplibs_check_method == file_magic. | |
18611 file_magic_cmd=$lt_file_magic_cmd | |
18612 | |
18613 # Flag that allows shared libraries with undefined symbols to be built. | |
18614 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18615 | |
18616 # Flag that forces no undefined symbols. | |
18617 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18618 | |
18619 # Commands used to finish a libtool library installation in a directory. | |
18620 finish_cmds=$lt_finish_cmds | |
18621 | |
18622 # Same as above, but a single script fragment to be evaled but not shown. | |
18623 finish_eval=$lt_finish_eval | |
18624 | |
18625 # Take the output of nm and produce a listing of raw symbols and C names. | |
18626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18627 | |
18628 # Transform the output of nm in a proper C declaration | |
18629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18630 | |
18631 # Transform the output of nm in a C name address pair | |
18632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18633 | |
18634 # This is the shared library runtime path variable. | |
18635 runpath_var=$runpath_var | |
18636 | |
18637 # This is the shared library path variable. | |
18638 shlibpath_var=$shlibpath_var | |
18639 | |
18640 # Is shlibpath searched before the hard-coded library search path? | |
18641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18642 | |
18643 # How to hardcode a shared library path into an executable. | |
18644 hardcode_action=$hardcode_action_GCJ | |
18645 | |
18646 # Whether we should hardcode library paths into libraries. | |
18647 hardcode_into_libs=$hardcode_into_libs | |
18648 | |
18649 # Flag to hardcode \$libdir into a binary during linking. | |
18650 # This must work even if \$libdir does not exist. | |
18651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18652 | |
18653 # If ld is used when linking, flag to hardcode \$libdir into | |
18654 # a binary during linking. This must work even if \$libdir does | |
18655 # not exist. | |
18656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18657 | |
18658 # Whether we need a single -rpath flag with a separated argument. | |
18659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18660 | |
18661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18662 # resulting binary. | |
18663 hardcode_direct=$hardcode_direct_GCJ | |
18664 | |
18665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18666 # resulting binary. | |
18667 hardcode_minus_L=$hardcode_minus_L_GCJ | |
18668 | |
18669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18670 # the resulting binary. | |
18671 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18672 | |
18673 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18674 # and all subsequent libraries and executables linked against it. | |
18675 hardcode_automatic=$hardcode_automatic_GCJ | |
18676 | |
18677 # Variables whose values should be saved in libtool wrapper scripts and | |
18678 # restored at relink time. | |
18679 variables_saved_for_relink="$variables_saved_for_relink" | |
18680 | |
18681 # Whether libtool must link a program against all its dependency libraries. | |
18682 link_all_deplibs=$link_all_deplibs_GCJ | |
18683 | |
18684 # Compile-time system search path for libraries | |
18685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18686 | |
18687 # Run-time system search path for libraries | |
18688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18689 | |
18690 # Fix the shell variable \$srcfile for the compiler. | |
18691 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18692 | |
18693 # Set to yes if exported symbols are required. | |
18694 always_export_symbols=$always_export_symbols_GCJ | |
18695 | |
18696 # The commands to list exported symbols. | |
18697 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18698 | |
18699 # The commands to extract the exported symbol list from a shared archive. | |
18700 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18701 | |
18702 # Symbols that should not be listed in the preloaded symbols. | |
18703 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18704 | |
18705 # Symbols that must always be exported. | |
18706 include_expsyms=$lt_include_expsyms_GCJ | |
18707 | |
18708 # ### END LIBTOOL TAG CONFIG: $tagname | |
18709 | |
18710 __EOF__ | |
18711 | |
18712 | |
18713 else | |
18714 # If there is no Makefile yet, we rely on a make rule to execute | |
18715 # `config.status --recheck' to rerun these tests and create the | |
18716 # libtool script then. | |
18717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18718 if test -f "$ltmain_in"; then | |
18719 test -f Makefile && make "$ltmain" | |
18720 fi | |
18721 fi | |
18722 | |
18723 | |
18724 ac_ext=c | |
18725 ac_cpp='$CPP $CPPFLAGS' | |
18726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18728 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18729 | |
18730 CC="$lt_save_CC" | |
18731 | |
18732 else | |
18733 tagname="" | |
18734 fi | |
18735 ;; | |
18736 | |
18737 RC) | |
18738 | |
18739 | |
18740 # Source file extension for RC test sources. | |
18741 ac_ext=rc | |
18742 | |
18743 # Object file extension for compiled RC test sources. | |
18744 objext=o | |
18745 objext_RC=$objext | |
18746 | |
18747 # Code to be used in simple compile tests | |
18748 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18749 | |
18750 # Code to be used in simple link tests | |
18751 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18752 | |
18753 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18754 | |
18755 # If no C compiler was specified, use CC. | |
18756 LTCC=${LTCC-"$CC"} | |
18757 | |
18758 # If no C compiler flags were specified, use CFLAGS. | |
18759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18760 | |
18761 # Allow CC to be a program name with arguments. | |
18762 compiler=$CC | |
18763 | |
18764 | |
18765 # save warnings/boilerplate of simple test code | |
18766 ac_outfile=conftest.$ac_objext | |
18767 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18768 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18769 _lt_compiler_boilerplate=`cat conftest.err` | |
18770 $rm conftest* | |
18771 | |
18772 ac_outfile=conftest.$ac_objext | |
18773 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18774 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18775 _lt_linker_boilerplate=`cat conftest.err` | |
18776 $rm conftest* | |
18777 | |
18778 | |
18779 # Allow CC to be a program name with arguments. | |
18780 lt_save_CC="$CC" | |
18781 CC=${RC-"windres"} | |
18782 compiler=$CC | |
18783 compiler_RC=$CC | |
18784 for cc_temp in $compiler""; do | |
18785 case $cc_temp in | |
18786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18788 \-*) ;; | |
18789 *) break;; | |
18790 esac | |
18791 done | |
18792 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18793 | |
18794 lt_cv_prog_compiler_c_o_RC=yes | |
18795 | |
18796 # The else clause should only fire when bootstrapping the | |
18797 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18798 # with your package, and you will get complaints that there are | |
18799 # no rules to generate ltmain.sh. | |
18800 if test -f "$ltmain"; then | |
18801 # See if we are running on zsh, and set the options which allow our commands through | |
18802 # without removal of \ escapes. | |
18803 if test -n "${ZSH_VERSION+set}" ; then | |
18804 setopt NO_GLOB_SUBST | |
18805 fi | |
18806 # Now quote all the things that may contain metacharacters while being | |
18807 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18808 # variables and quote the copies for generation of the libtool script. | |
18809 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18810 SED SHELL STRIP \ | |
18811 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18812 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18813 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18814 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18815 lt_cv_sys_global_symbol_to_c_name_address \ | |
18816 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18817 old_postinstall_cmds old_postuninstall_cmds \ | |
18818 compiler_RC \ | |
18819 CC_RC \ | |
18820 LD_RC \ | |
18821 lt_prog_compiler_wl_RC \ | |
18822 lt_prog_compiler_pic_RC \ | |
18823 lt_prog_compiler_static_RC \ | |
18824 lt_prog_compiler_no_builtin_flag_RC \ | |
18825 export_dynamic_flag_spec_RC \ | |
18826 thread_safe_flag_spec_RC \ | |
18827 whole_archive_flag_spec_RC \ | |
18828 enable_shared_with_static_runtimes_RC \ | |
18829 old_archive_cmds_RC \ | |
18830 old_archive_from_new_cmds_RC \ | |
18831 predep_objects_RC \ | |
18832 postdep_objects_RC \ | |
18833 predeps_RC \ | |
18834 postdeps_RC \ | |
18835 compiler_lib_search_path_RC \ | |
18836 archive_cmds_RC \ | |
18837 archive_expsym_cmds_RC \ | |
18838 postinstall_cmds_RC \ | |
18839 postuninstall_cmds_RC \ | |
18840 old_archive_from_expsyms_cmds_RC \ | |
18841 allow_undefined_flag_RC \ | |
18842 no_undefined_flag_RC \ | |
18843 export_symbols_cmds_RC \ | |
18844 hardcode_libdir_flag_spec_RC \ | |
18845 hardcode_libdir_flag_spec_ld_RC \ | |
18846 hardcode_libdir_separator_RC \ | |
18847 hardcode_automatic_RC \ | |
18848 module_cmds_RC \ | |
18849 module_expsym_cmds_RC \ | |
18850 lt_cv_prog_compiler_c_o_RC \ | |
18851 exclude_expsyms_RC \ | |
18852 include_expsyms_RC; do | |
18853 | |
18854 case $var in | |
18855 old_archive_cmds_RC | \ | |
18856 old_archive_from_new_cmds_RC | \ | |
18857 archive_cmds_RC | \ | |
18858 archive_expsym_cmds_RC | \ | |
18859 module_cmds_RC | \ | |
18860 module_expsym_cmds_RC | \ | |
18861 old_archive_from_expsyms_cmds_RC | \ | |
18862 export_symbols_cmds_RC | \ | |
18863 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18864 postinstall_cmds | postuninstall_cmds | \ | |
18865 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18866 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18867 # Double-quote double-evaled strings. | |
18868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18869 ;; | |
18870 *) | |
18871 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18872 ;; | |
18873 esac | |
18874 done | |
18875 | |
18876 case $lt_echo in | |
18877 *'\$0 --fallback-echo"') | |
18878 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18879 ;; | |
18880 esac | |
18881 | |
18882 cfgfile="$ofile" | |
18883 | |
18884 cat <<__EOF__ >> "$cfgfile" | |
18885 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18886 | |
18887 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18888 | |
18889 # Shell to use when invoking shell scripts. | |
18890 SHELL=$lt_SHELL | |
18891 | |
18892 # Whether or not to build shared libraries. | |
18893 build_libtool_libs=$enable_shared | |
18894 | |
18895 # Whether or not to build static libraries. | |
18896 build_old_libs=$enable_static | |
18897 | |
18898 # Whether or not to add -lc for building shared libraries. | |
18899 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18900 | |
18901 # Whether or not to disallow shared libs when runtime libs are static | |
18902 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18903 | |
18904 # Whether or not to optimize for fast installation. | |
18905 fast_install=$enable_fast_install | |
18906 | |
18907 # The host system. | |
18908 host_alias=$host_alias | |
18909 host=$host | |
18910 host_os=$host_os | |
18911 | |
18912 # The build system. | |
18913 build_alias=$build_alias | |
18914 build=$build | |
18915 build_os=$build_os | |
18916 | |
18917 # An echo program that does not interpret backslashes. | |
18918 echo=$lt_echo | |
18919 | |
18920 # The archiver. | |
18921 AR=$lt_AR | |
18922 AR_FLAGS=$lt_AR_FLAGS | |
18923 | |
18924 # A C compiler. | |
18925 LTCC=$lt_LTCC | |
18926 | |
18927 # LTCC compiler flags. | |
18928 LTCFLAGS=$lt_LTCFLAGS | |
18929 | |
18930 # A language-specific compiler. | |
18931 CC=$lt_compiler_RC | |
18932 | |
18933 # Is the compiler the GNU C compiler? | |
18934 with_gcc=$GCC_RC | |
18935 | |
18936 # An ERE matcher. | |
18937 EGREP=$lt_EGREP | |
18938 | |
18939 # The linker used to build libraries. | |
18940 LD=$lt_LD_RC | |
18941 | |
18942 # Whether we need hard or soft links. | |
18943 LN_S=$lt_LN_S | |
18944 | |
18945 # A BSD-compatible nm program. | |
18946 NM=$lt_NM | |
18947 | |
18948 # A symbol stripping program | |
18949 STRIP=$lt_STRIP | |
18950 | |
18951 # Used to examine libraries when file_magic_cmd begins "file" | |
18952 MAGIC_CMD=$MAGIC_CMD | |
18953 | |
18954 # Used on cygwin: DLL creation program. | |
18955 DLLTOOL="$DLLTOOL" | |
18956 | |
18957 # Used on cygwin: object dumper. | |
18958 OBJDUMP="$OBJDUMP" | |
18959 | |
18960 # Used on cygwin: assembler. | |
18961 AS="$AS" | |
18962 | |
18963 # The name of the directory that contains temporary libtool files. | |
18964 objdir=$objdir | |
18965 | |
18966 # How to create reloadable object files. | |
18967 reload_flag=$lt_reload_flag | |
18968 reload_cmds=$lt_reload_cmds | |
18969 | |
18970 # How to pass a linker flag through the compiler. | |
18971 wl=$lt_lt_prog_compiler_wl_RC | |
18972 | |
18973 # Object file suffix (normally "o"). | |
18974 objext="$ac_objext" | |
18975 | |
18976 # Old archive suffix (normally "a"). | |
18977 libext="$libext" | |
18978 | |
18979 # Shared library suffix (normally ".so"). | |
18980 shrext_cmds='$shrext_cmds' | |
18981 | |
18982 # Executable file suffix (normally ""). | |
18983 exeext="$exeext" | |
18984 | |
18985 # Additional compiler flags for building library objects. | |
18986 pic_flag=$lt_lt_prog_compiler_pic_RC | |
18987 pic_mode=$pic_mode | |
18988 | |
18989 # What is the maximum length of a command? | |
18990 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18991 | |
18992 # Does compiler simultaneously support -c and -o options? | |
18993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18994 | |
18995 # Must we lock files when doing compilation? | |
18996 need_locks=$lt_need_locks | |
18997 | |
18998 # Do we need the lib prefix for modules? | |
18999 need_lib_prefix=$need_lib_prefix | |
19000 | |
19001 # Do we need a version for libraries? | |
19002 need_version=$need_version | |
19003 | |
19004 # Whether dlopen is supported. | |
19005 dlopen_support=$enable_dlopen | |
19006 | |
19007 # Whether dlopen of programs is supported. | |
19008 dlopen_self=$enable_dlopen_self | |
19009 | |
19010 # Whether dlopen of statically linked programs is supported. | |
19011 dlopen_self_static=$enable_dlopen_self_static | |
19012 | |
19013 # Compiler flag to prevent dynamic linking. | |
19014 link_static_flag=$lt_lt_prog_compiler_static_RC | |
19015 | |
19016 # Compiler flag to turn off builtin functions. | |
19017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
19018 | |
19019 # Compiler flag to allow reflexive dlopens. | |
19020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
19021 | |
19022 # Compiler flag to generate shared objects directly from archives. | |
19023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
19024 | |
19025 # Compiler flag to generate thread-safe objects. | |
19026 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
19027 | |
19028 # Library versioning type. | |
19029 version_type=$version_type | |
19030 | |
19031 # Format of library name prefix. | |
19032 libname_spec=$lt_libname_spec | |
19033 | |
19034 # List of archive names. First name is the real one, the rest are links. | |
19035 # The last name is the one that the linker finds with -lNAME. | |
19036 library_names_spec=$lt_library_names_spec | |
19037 | |
19038 # The coded name of the library, if different from the real name. | |
19039 soname_spec=$lt_soname_spec | |
19040 | |
19041 # Commands used to build and install an old-style archive. | |
19042 RANLIB=$lt_RANLIB | |
19043 old_archive_cmds=$lt_old_archive_cmds_RC | |
19044 old_postinstall_cmds=$lt_old_postinstall_cmds | |
19045 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19046 | |
19047 # Create an old-style archive from a shared archive. | |
19048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
19049 | |
19050 # Create a temporary old-style archive to link instead of a shared archive. | |
19051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
19052 | |
19053 # Commands used to build and install a shared archive. | |
19054 archive_cmds=$lt_archive_cmds_RC | |
19055 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
19056 postinstall_cmds=$lt_postinstall_cmds | |
19057 postuninstall_cmds=$lt_postuninstall_cmds | |
19058 | |
19059 # Commands used to build a loadable module (assumed same as above if empty) | |
19060 module_cmds=$lt_module_cmds_RC | |
19061 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
19062 | |
19063 # Commands to strip libraries. | |
19064 old_striplib=$lt_old_striplib | |
19065 striplib=$lt_striplib | |
19066 | |
19067 # Dependencies to place before the objects being linked to create a | |
19068 # shared library. | |
19069 predep_objects=$lt_predep_objects_RC | |
19070 | |
19071 # Dependencies to place after the objects being linked to create a | |
19072 # shared library. | |
19073 postdep_objects=$lt_postdep_objects_RC | |
19074 | |
19075 # Dependencies to place before the objects being linked to create a | |
19076 # shared library. | |
19077 predeps=$lt_predeps_RC | |
19078 | |
19079 # Dependencies to place after the objects being linked to create a | |
19080 # shared library. | |
19081 postdeps=$lt_postdeps_RC | |
19082 | |
19083 # The library search path used internally by the compiler when linking | |
19084 # a shared library. | |
19085 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
19086 | |
19087 # Method to check whether dependent libraries are shared objects. | |
19088 deplibs_check_method=$lt_deplibs_check_method | |
19089 | |
19090 # Command to use when deplibs_check_method == file_magic. | |
19091 file_magic_cmd=$lt_file_magic_cmd | |
19092 | |
19093 # Flag that allows shared libraries with undefined symbols to be built. | |
19094 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
19095 | |
19096 # Flag that forces no undefined symbols. | |
19097 no_undefined_flag=$lt_no_undefined_flag_RC | |
19098 | |
19099 # Commands used to finish a libtool library installation in a directory. | |
19100 finish_cmds=$lt_finish_cmds | |
19101 | |
19102 # Same as above, but a single script fragment to be evaled but not shown. | |
19103 finish_eval=$lt_finish_eval | |
19104 | |
19105 # Take the output of nm and produce a listing of raw symbols and C names. | |
19106 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19107 | |
19108 # Transform the output of nm in a proper C declaration | |
19109 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19110 | |
19111 # Transform the output of nm in a C name address pair | |
19112 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19113 | |
19114 # This is the shared library runtime path variable. | |
19115 runpath_var=$runpath_var | |
19116 | |
19117 # This is the shared library path variable. | |
19118 shlibpath_var=$shlibpath_var | |
19119 | |
19120 # Is shlibpath searched before the hard-coded library search path? | |
19121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19122 | |
19123 # How to hardcode a shared library path into an executable. | |
19124 hardcode_action=$hardcode_action_RC | |
19125 | |
19126 # Whether we should hardcode library paths into libraries. | |
19127 hardcode_into_libs=$hardcode_into_libs | |
19128 | |
19129 # Flag to hardcode \$libdir into a binary during linking. | |
19130 # This must work even if \$libdir does not exist. | |
19131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
19132 | |
19133 # If ld is used when linking, flag to hardcode \$libdir into | |
19134 # a binary during linking. This must work even if \$libdir does | |
19135 # not exist. | |
19136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
19137 | |
19138 # Whether we need a single -rpath flag with a separated argument. | |
19139 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
19140 | |
19141 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
19142 # resulting binary. | |
19143 hardcode_direct=$hardcode_direct_RC | |
19144 | |
19145 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19146 # resulting binary. | |
19147 hardcode_minus_L=$hardcode_minus_L_RC | |
19148 | |
19149 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19150 # the resulting binary. | |
19151 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
19152 | |
19153 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19154 # and all subsequent libraries and executables linked against it. | |
19155 hardcode_automatic=$hardcode_automatic_RC | |
19156 | |
19157 # Variables whose values should be saved in libtool wrapper scripts and | |
19158 # restored at relink time. | |
19159 variables_saved_for_relink="$variables_saved_for_relink" | |
19160 | |
19161 # Whether libtool must link a program against all its dependency libraries. | |
19162 link_all_deplibs=$link_all_deplibs_RC | |
19163 | |
19164 # Compile-time system search path for libraries | |
19165 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19166 | |
19167 # Run-time system search path for libraries | |
19168 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19169 | |
19170 # Fix the shell variable \$srcfile for the compiler. | |
19171 fix_srcfile_path="$fix_srcfile_path_RC" | |
19172 | |
19173 # Set to yes if exported symbols are required. | |
19174 always_export_symbols=$always_export_symbols_RC | |
19175 | |
19176 # The commands to list exported symbols. | |
19177 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
19178 | |
19179 # The commands to extract the exported symbol list from a shared archive. | |
19180 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19181 | |
19182 # Symbols that should not be listed in the preloaded symbols. | |
19183 exclude_expsyms=$lt_exclude_expsyms_RC | |
19184 | |
19185 # Symbols that must always be exported. | |
19186 include_expsyms=$lt_include_expsyms_RC | |
19187 | |
19188 # ### END LIBTOOL TAG CONFIG: $tagname | |
19189 | |
19190 __EOF__ | |
19191 | |
19192 | |
19193 else | |
19194 # If there is no Makefile yet, we rely on a make rule to execute | |
19195 # `config.status --recheck' to rerun these tests and create the | |
19196 # libtool script then. | |
19197 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19198 if test -f "$ltmain_in"; then | |
19199 test -f Makefile && make "$ltmain" | |
19200 fi | |
19201 fi | |
19202 | |
19203 | |
19204 ac_ext=c | |
19205 ac_cpp='$CPP $CPPFLAGS' | |
19206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19208 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19209 | |
19210 CC="$lt_save_CC" | |
19211 | |
19212 ;; | |
19213 | |
19214 *) | |
19215 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
19216 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
19217 { (exit 1); exit 1; }; } | |
19218 ;; | |
19219 esac | |
19220 | |
19221 # Append the new tag name to the list of available tags. | |
19222 if test -n "$tagname" ; then | |
19223 available_tags="$available_tags $tagname" | |
19224 fi | |
19225 fi | |
19226 done | |
19227 IFS="$lt_save_ifs" | |
19228 | |
19229 # Now substitute the updated list of available tags. | |
19230 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
19231 mv "${ofile}T" "$ofile" | |
19232 chmod +x "$ofile" | |
19233 else | |
19234 rm -f "${ofile}T" | |
19235 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
19236 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
19237 { (exit 1); exit 1; }; } | |
19238 fi | |
19239 fi | |
19240 | |
19241 | |
19242 | |
19243 # This can be used to rebuild libtool when needed | |
19244 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
19245 | |
19246 # Always use our own libtool. | |
19247 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
19248 | |
19249 # Prevent multiple expansion | |
19250 | |
19251 | |
19252 | |
19253 | |
19254 | |
19255 | |
19256 | |
19257 | |
19258 | |
19259 | |
19260 | |
19261 | |
19262 | |
19263 | |
19264 | |
19265 | |
19266 | |
19267 | |
19268 | |
19269 | |
19270 | |
19271 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr> | |
19272 # Turn around -rpath problem with libtool 1.0c | |
19273 # This define should be improbable enough to not conflict with anything. | |
19274 echo host=$host | |
19275 case ${host} in | |
19276 *-linux-gnu) | |
19277 { echo "$as_me:$LINENO: result: Fixing libtool for -rpath problems." >&5 | |
19278 echo "${ECHO_T}Fixing libtool for -rpath problems." >&6; } | |
19279 sed < libtool > libtool-2 \ | |
19280 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=""/' | |
19281 mv libtool-2 libtool | |
19282 chmod 755 libtool | |
19283 ;; | |
19284 esac | |
19285 | |
19286 | |
19287 | |
19288 | |
19289 | |
19290 | |
19291 | |
19292 | |
19293 | |
19294 | |
19295 | |
19296 | |
19297 | |
19298 | |
19299 | |
19300 | |
19301 | |
19302 | |
19303 | |
19304 | |
19305 | |
19306 | |
19307 | |
19308 | |
19309 | |
19310 | |
19311 | |
19312 | |
19313 | |
19314 | |
19315 | |
19316 | |
19317 | |
19318 | |
19319 | |
19320 | |
19321 | |
19322 | |
19323 | |
19324 # Check whether --with-libcurl was given. | |
19325 if test "${with_libcurl+set}" = set; then | |
19326 withval=$with_libcurl; _libcurl_with=$withval | |
19327 else | |
19328 _libcurl_with=yes | |
19329 fi | |
19330 | |
19331 | |
19332 if test "$_libcurl_with" != "no" ; then | |
19333 | |
19334 for ac_prog in gawk mawk nawk awk | |
19335 do | |
19336 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19337 set dummy $ac_prog; ac_word=$2 | |
19338 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
19340 if test "${ac_cv_prog_AWK+set}" = set; then | |
19341 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19342 else | |
19343 if test -n "$AWK"; then | |
19344 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
19345 else | |
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19347 for as_dir in $PATH | |
19348 do | |
19349 IFS=$as_save_IFS | |
19350 test -z "$as_dir" && as_dir=. | |
19351 for ac_exec_ext in '' $ac_executable_extensions; do | |
19352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19353 ac_cv_prog_AWK="$ac_prog" | |
19354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19355 break 2 | |
19356 fi | |
19357 done | |
19358 done | |
19359 IFS=$as_save_IFS | |
19360 | |
19361 fi | |
19362 fi | |
19363 AWK=$ac_cv_prog_AWK | |
19364 if test -n "$AWK"; then | |
19365 { echo "$as_me:$LINENO: result: $AWK" >&5 | |
19366 echo "${ECHO_T}$AWK" >&6; } | |
19367 else | |
19368 { echo "$as_me:$LINENO: result: no" >&5 | |
19369 echo "${ECHO_T}no" >&6; } | |
19370 fi | |
19371 | |
19372 | |
19373 test -n "$AWK" && break | |
19374 done | |
19375 | |
19376 | |
19377 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" | |
19378 | |
19379 _libcurl_try_link=yes | |
19380 | |
19381 if test -d "$_libcurl_with" ; then | |
19382 LIBCURL_CPPFLAGS="-I$withval/include" | |
19383 _libcurl_ldflags="-L$withval/lib" | |
19384 # Extract the first word of ""$withval/bin/curl-config"", so it can be a program name with args. | |
19385 set dummy "$withval/bin/curl-config"; ac_word=$2 | |
19386 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
19388 if test "${ac_cv_path__libcurl_config+set}" = set; then | |
19389 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19390 else | |
19391 case $_libcurl_config in | |
19392 [\\/]* | ?:[\\/]*) | |
19393 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. | |
19394 ;; | |
19395 *) | |
19396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19397 for as_dir in $PATH | |
19398 do | |
19399 IFS=$as_save_IFS | |
19400 test -z "$as_dir" && as_dir=. | |
19401 for ac_exec_ext in '' $ac_executable_extensions; do | |
19402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19403 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" | |
19404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19405 break 2 | |
19406 fi | |
19407 done | |
19408 done | |
19409 IFS=$as_save_IFS | |
19410 | |
19411 ;; | |
19412 esac | |
19413 fi | |
19414 _libcurl_config=$ac_cv_path__libcurl_config | |
19415 if test -n "$_libcurl_config"; then | |
19416 { echo "$as_me:$LINENO: result: $_libcurl_config" >&5 | |
19417 echo "${ECHO_T}$_libcurl_config" >&6; } | |
19418 else | |
19419 { echo "$as_me:$LINENO: result: no" >&5 | |
19420 echo "${ECHO_T}no" >&6; } | |
19421 fi | |
19422 | |
19423 | |
19424 else | |
19425 # Extract the first word of "curl-config", so it can be a program name with args. | |
19426 set dummy curl-config; ac_word=$2 | |
19427 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
19429 if test "${ac_cv_path__libcurl_config+set}" = set; then | |
19430 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19431 else | |
19432 case $_libcurl_config in | |
19433 [\\/]* | ?:[\\/]*) | |
19434 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. | |
19435 ;; | |
19436 *) | |
19437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19438 for as_dir in $PATH | |
19439 do | |
19440 IFS=$as_save_IFS | |
19441 test -z "$as_dir" && as_dir=. | |
19442 for ac_exec_ext in '' $ac_executable_extensions; do | |
19443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19444 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" | |
19445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19446 break 2 | |
19447 fi | |
19448 done | |
19449 done | |
19450 IFS=$as_save_IFS | |
19451 | |
19452 ;; | |
19453 esac | |
19454 fi | |
19455 _libcurl_config=$ac_cv_path__libcurl_config | |
19456 if test -n "$_libcurl_config"; then | |
19457 { echo "$as_me:$LINENO: result: $_libcurl_config" >&5 | |
19458 echo "${ECHO_T}$_libcurl_config" >&6; } | |
19459 else | |
19460 { echo "$as_me:$LINENO: result: no" >&5 | |
19461 echo "${ECHO_T}no" >&6; } | |
19462 fi | |
19463 | |
19464 | |
19465 fi | |
19466 | |
19467 if test x$_libcurl_config != "x" ; then | |
19468 { echo "$as_me:$LINENO: checking for the version of libcurl" >&5 | |
19469 echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; } | |
19470 if test "${libcurl_cv_lib_curl_version+set}" = set; then | |
19471 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19472 else | |
19473 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` | |
19474 fi | |
19475 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5 | |
19476 echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; } | |
19477 | |
19478 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` | |
19479 _libcurl_wanted=`echo 0 | $_libcurl_version_parse` | |
19480 | |
19481 if test $_libcurl_wanted -gt 0 ; then | |
19482 { echo "$as_me:$LINENO: checking for libcurl >= version " >&5 | |
19483 echo $ECHO_N "checking for libcurl >= version ... $ECHO_C" >&6; } | |
19484 if test "${libcurl_cv_lib_version_ok+set}" = set; then | |
19485 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19486 else | |
19487 | |
19488 if test $_libcurl_version -ge $_libcurl_wanted ; then | |
19489 libcurl_cv_lib_version_ok=yes | |
19490 else | |
19491 libcurl_cv_lib_version_ok=no | |
19492 fi | |
19493 | |
19494 fi | |
19495 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5 | |
19496 echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; } | |
19497 fi | |
19498 | |
19499 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then | |
19500 if test x"$LIBCURL_CPPFLAGS" = "x" ; then | |
19501 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` | |
19502 fi | |
19503 if test x"$LIBCURL" = "x" ; then | |
19504 # libcurl-config --libs gives a ridiculous number of libraries | |
19505 # check to see if we can actually link just using -lcurl | |
19506 | |
19507 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} | |
19508 | |
19509 { echo "$as_me:$LINENO: checking whether libcurl just needs -lcurl" >&5 | |
19510 echo $ECHO_N "checking whether libcurl just needs -lcurl... $ECHO_C" >&6; } | |
19511 if test "${libcurl_cv_lib_curl_only_needs_minus_l_curl+set}" = set; then | |
19512 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19513 else | |
19514 | |
19515 _libcurl_save_cppflags=$CPPFLAGS | |
19516 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" | |
19517 _libcurl_save_libs=$LIBS | |
19518 LIBS="$LIBCURL $LIBS" | |
19519 | |
19520 cat >conftest.$ac_ext <<_ACEOF | |
19521 /* confdefs.h. */ | |
19522 _ACEOF | |
19523 cat confdefs.h >>conftest.$ac_ext | |
19524 cat >>conftest.$ac_ext <<_ACEOF | |
19525 /* end confdefs.h. */ | |
19526 #include <curl/curl.h> | |
19527 int | |
19528 main () | |
19529 { | |
19530 | |
19531 /* Try and use a few common options to force a failure if we are | |
19532 missing symbols or can't link. */ | |
19533 int x; | |
19534 curl_easy_setopt(NULL,CURLOPT_URL,NULL); | |
19535 x=CURL_ERROR_SIZE; | |
19536 x=CURLOPT_WRITEFUNCTION; | |
19537 x=CURLOPT_FILE; | |
19538 x=CURLOPT_ERRORBUFFER; | |
19539 x=CURLOPT_STDERR; | |
19540 x=CURLOPT_VERBOSE; | |
19541 | |
19542 ; | |
19543 return 0; | |
19544 } | |
19545 _ACEOF | |
19546 rm -f conftest.$ac_objext conftest$ac_exeext | |
19547 if { (ac_try="$ac_link" | |
19548 case "(($ac_try" in | |
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19550 *) ac_try_echo=$ac_try;; | |
19551 esac | |
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19553 (eval "$ac_link") 2>conftest.er1 | |
19554 ac_status=$? | |
19555 grep -v '^ *+' conftest.er1 >conftest.err | |
19556 rm -f conftest.er1 | |
19557 cat conftest.err >&5 | |
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19559 (exit $ac_status); } && { | |
19560 test -z "$ac_c_werror_flag" || | |
19561 test ! -s conftest.err | |
19562 } && test -s conftest$ac_exeext && | |
19563 $as_test_x conftest$ac_exeext; then | |
19564 libcurl_cv_lib_curl_only_needs_minus_l_curl=yes | |
19565 else | |
19566 echo "$as_me: failed program was:" >&5 | |
19567 sed 's/^/| /' conftest.$ac_ext >&5 | |
19568 | |
19569 libcurl_cv_lib_curl_only_needs_minus_l_curl=no | |
19570 fi | |
19571 | |
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19573 conftest$ac_exeext conftest.$ac_ext | |
19574 | |
19575 CPPFLAGS=$_libcurl_save_cppflags | |
19576 LIBS=$_libcurl_save_libs | |
19577 unset _libcurl_save_cppflags | |
19578 unset _libcurl_save_libs | |
19579 | |
19580 fi | |
19581 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_only_needs_minus_l_curl" >&5 | |
19582 echo "${ECHO_T}$libcurl_cv_lib_curl_only_needs_minus_l_curl" >&6; } | |
19583 | |
19584 | |
19585 if test "x$libcurl_cv_lib_curl_only_needs_minus_l_curl" != xyes ; then | |
19586 LIBCURL=`$_libcurl_config --libs` | |
19587 fi | |
19588 | |
19589 # This is so silly, but Apple actually has a bug in their | |
19590 # curl-config script. Fixed in Tiger, but there are still | |
19591 # lots of Panther installs around. | |
19592 case "${host}" in | |
19593 powerpc-apple-darwin7*) | |
19594 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` | |
19595 ;; | |
19596 esac | |
19597 fi | |
19598 | |
19599 # All curl-config scripts support --feature | |
19600 _libcurl_features=`$_libcurl_config --feature` | |
19601 | |
19602 # Is it modern enough to have --protocols? (7.12.4) | |
19603 if test $_libcurl_version -ge 461828 ; then | |
19604 _libcurl_protocols=`$_libcurl_config --protocols` | |
19605 fi | |
19606 else | |
19607 _libcurl_try_link=no | |
19608 fi | |
19609 | |
19610 unset _libcurl_wanted | |
19611 fi | |
19612 | |
19613 if test $_libcurl_try_link = yes ; then | |
19614 | |
19615 # we didn't find curl-config, so let's see if the user-supplied | |
19616 # link line (or failing that, "-lcurl") is enough. | |
19617 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} | |
19618 | |
19619 { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5 | |
19620 echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; } | |
19621 if test "${libcurl_cv_lib_curl_usable+set}" = set; then | |
19622 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19623 else | |
19624 | |
19625 _libcurl_save_cppflags=$CPPFLAGS | |
19626 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" | |
19627 _libcurl_save_libs=$LIBS | |
19628 LIBS="$LIBCURL $LIBS" | |
19629 | |
19630 cat >conftest.$ac_ext <<_ACEOF | |
19631 /* confdefs.h. */ | |
19632 _ACEOF | |
19633 cat confdefs.h >>conftest.$ac_ext | |
19634 cat >>conftest.$ac_ext <<_ACEOF | |
19635 /* end confdefs.h. */ | |
19636 #include <curl/curl.h> | |
19637 int | |
19638 main () | |
19639 { | |
19640 | |
19641 /* Try and use a few common options to force a failure if we are | |
19642 missing symbols or can't link. */ | |
19643 int x; | |
19644 curl_easy_setopt(NULL,CURLOPT_URL,NULL); | |
19645 x=CURL_ERROR_SIZE; | |
19646 x=CURLOPT_WRITEFUNCTION; | |
19647 x=CURLOPT_FILE; | |
19648 x=CURLOPT_ERRORBUFFER; | |
19649 x=CURLOPT_STDERR; | |
19650 x=CURLOPT_VERBOSE; | |
19651 | |
19652 ; | |
19653 return 0; | |
19654 } | |
19655 _ACEOF | |
19656 rm -f conftest.$ac_objext conftest$ac_exeext | |
19657 if { (ac_try="$ac_link" | |
19658 case "(($ac_try" in | |
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19660 *) ac_try_echo=$ac_try;; | |
19661 esac | |
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19663 (eval "$ac_link") 2>conftest.er1 | |
19664 ac_status=$? | |
19665 grep -v '^ *+' conftest.er1 >conftest.err | |
19666 rm -f conftest.er1 | |
19667 cat conftest.err >&5 | |
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19669 (exit $ac_status); } && { | |
19670 test -z "$ac_c_werror_flag" || | |
19671 test ! -s conftest.err | |
19672 } && test -s conftest$ac_exeext && | |
19673 $as_test_x conftest$ac_exeext; then | |
19674 libcurl_cv_lib_curl_usable=yes | |
19675 else | |
19676 echo "$as_me: failed program was:" >&5 | |
19677 sed 's/^/| /' conftest.$ac_ext >&5 | |
19678 | |
19679 libcurl_cv_lib_curl_usable=no | |
19680 fi | |
19681 | |
19682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19683 conftest$ac_exeext conftest.$ac_ext | |
19684 | |
19685 CPPFLAGS=$_libcurl_save_cppflags | |
19686 LIBS=$_libcurl_save_libs | |
19687 unset _libcurl_save_cppflags | |
19688 unset _libcurl_save_libs | |
19689 | |
19690 fi | |
19691 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5 | |
19692 echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; } | |
19693 | |
19694 if test $libcurl_cv_lib_curl_usable = yes ; then | |
19695 | |
19696 # Does curl_free() exist in this version of libcurl? | |
19697 # If not, fake it with free() | |
19698 | |
19699 _libcurl_save_cppflags=$CPPFLAGS | |
19700 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" | |
19701 _libcurl_save_libs=$LIBS | |
19702 LIBS="$LIBS $LIBCURL" | |
19703 | |
19704 { echo "$as_me:$LINENO: checking for curl_free" >&5 | |
19705 echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; } | |
19706 if test "${ac_cv_func_curl_free+set}" = set; then | |
19707 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19708 else | |
19709 cat >conftest.$ac_ext <<_ACEOF | |
19710 /* confdefs.h. */ | |
19711 _ACEOF | |
19712 cat confdefs.h >>conftest.$ac_ext | |
19713 cat >>conftest.$ac_ext <<_ACEOF | |
19714 /* end confdefs.h. */ | |
19715 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free. | |
19716 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19717 #define curl_free innocuous_curl_free | |
19718 | |
19719 /* System header to define __stub macros and hopefully few prototypes, | |
19720 which can conflict with char curl_free (); below. | |
19721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19722 <limits.h> exists even on freestanding compilers. */ | |
19723 | |
19724 #ifdef __STDC__ | |
19725 # include <limits.h> | |
19726 #else | |
19727 # include <assert.h> | |
19728 #endif | |
19729 | |
19730 #undef curl_free | |
19731 | |
19732 /* Override any GCC internal prototype to avoid an error. | |
19733 Use char because int might match the return type of a GCC | |
19734 builtin and then its argument prototype would still apply. */ | |
19735 #ifdef __cplusplus | |
19736 extern "C" | |
19737 #endif | |
19738 char curl_free (); | |
19739 /* The GNU C library defines this for functions which it implements | |
19740 to always fail with ENOSYS. Some functions are actually named | |
19741 something starting with __ and the normal name is an alias. */ | |
19742 #if defined __stub_curl_free || defined __stub___curl_free | |
19743 choke me | |
19744 #endif | |
19745 | |
19746 int | |
19747 main () | |
19748 { | |
19749 return curl_free (); | |
19750 ; | |
19751 return 0; | |
19752 } | |
19753 _ACEOF | |
19754 rm -f conftest.$ac_objext conftest$ac_exeext | |
19755 if { (ac_try="$ac_link" | |
19756 case "(($ac_try" in | |
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19758 *) ac_try_echo=$ac_try;; | |
19759 esac | |
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19761 (eval "$ac_link") 2>conftest.er1 | |
19762 ac_status=$? | |
19763 grep -v '^ *+' conftest.er1 >conftest.err | |
19764 rm -f conftest.er1 | |
19765 cat conftest.err >&5 | |
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19767 (exit $ac_status); } && { | |
19768 test -z "$ac_c_werror_flag" || | |
19769 test ! -s conftest.err | |
19770 } && test -s conftest$ac_exeext && | |
19771 $as_test_x conftest$ac_exeext; then | |
19772 ac_cv_func_curl_free=yes | |
19773 else | |
19774 echo "$as_me: failed program was:" >&5 | |
19775 sed 's/^/| /' conftest.$ac_ext >&5 | |
19776 | |
19777 ac_cv_func_curl_free=no | |
19778 fi | |
19779 | |
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19781 conftest$ac_exeext conftest.$ac_ext | |
19782 fi | |
19783 { echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5 | |
19784 echo "${ECHO_T}$ac_cv_func_curl_free" >&6; } | |
19785 if test $ac_cv_func_curl_free = yes; then | |
19786 : | |
19787 else | |
19788 | |
19789 cat >>confdefs.h <<\_ACEOF | |
19790 #define curl_free free | |
19791 _ACEOF | |
19792 | |
19793 fi | |
19794 | |
19795 | |
19796 CPPFLAGS=$_libcurl_save_cppflags | |
19797 LIBS=$_libcurl_save_libs | |
19798 unset _libcurl_save_cppflags | |
19799 unset _libcurl_save_libs | |
19800 | |
19801 | |
19802 cat >>confdefs.h <<\_ACEOF | |
19803 #define HAVE_LIBCURL 1 | |
19804 _ACEOF | |
19805 | |
19806 | |
19807 | |
19808 | |
19809 for _libcurl_feature in $_libcurl_features ; do | |
19810 cat >>confdefs.h <<_ACEOF | |
19811 #define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 | |
19812 _ACEOF | |
19813 | |
19814 eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes | |
19815 done | |
19816 | |
19817 if test "x$_libcurl_protocols" = "x" ; then | |
19818 | |
19819 # We don't have --protocols, so just assume that all | |
19820 # protocols are available | |
19821 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT" | |
19822 | |
19823 if test x$libcurl_feature_SSL = xyes ; then | |
19824 _libcurl_protocols="$_libcurl_protocols HTTPS" | |
19825 | |
19826 # FTPS wasn't standards-compliant until version | |
19827 # 7.11.0 | |
19828 if test $_libcurl_version -ge 461568; then | |
19829 _libcurl_protocols="$_libcurl_protocols FTPS" | |
19830 fi | |
19831 fi | |
19832 fi | |
19833 | |
19834 for _libcurl_protocol in $_libcurl_protocols ; do | |
19835 cat >>confdefs.h <<_ACEOF | |
19836 #define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 | |
19837 _ACEOF | |
19838 | |
19839 eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes | |
19840 done | |
19841 else | |
19842 unset LIBCURL | |
19843 unset LIBCURL_CPPFLAGS | |
19844 fi | |
19845 fi | |
19846 | |
19847 unset _libcurl_try_link | |
19848 unset _libcurl_version_parse | |
19849 unset _libcurl_config | |
19850 unset _libcurl_feature | |
19851 unset _libcurl_features | |
19852 unset _libcurl_protocol | |
19853 unset _libcurl_protocols | |
19854 unset _libcurl_version | |
19855 unset _libcurl_ldflags | |
19856 fi | |
19857 | |
19858 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then | |
19859 # This is the IF-NO path | |
19860 have_curl=no | |
19861 else | |
19862 # This is the IF-YES path | |
19863 have_curl=yes | |
19864 fi | |
19865 | |
19866 unset _libcurl_with | |
19867 | |
19868 | |
19869 | |
19870 # Check whether --with-zlib was given. | |
19871 if test "${with_zlib+set}" = set; then | |
19872 withval=$with_zlib; _zlib_with=$withval | |
19873 else | |
19874 _zlib_with="no" | |
19875 fi | |
19876 | |
19877 | |
19878 ZLIB_ROOT="" | |
19879 if test "$_zlib_with" != "no" | |
19880 then | |
19881 if test -f "$_zlib_with/include/zlib.h" | |
19882 then | |
19883 ZLIB_ROOT=$_zlib_with | |
19884 fi | |
19885 fi | |
19886 | |
19887 # Check if it's a working library | |
19888 zlib_ok=no | |
19889 if test "$ZLIB_ROOT" != "" | |
19890 then | |
19891 _cppflags=$CPPFLAGS | |
19892 CPPFLAGS="$CPPFLAGS -I${ZLIB_ROOT}/include" | |
19893 _ldflags=$LDFLAGS | |
19894 LDFLAGS="$LFDLAGS -L${ZLIB_ROOT}/lib" | |
19895 | |
19896 ac_ext=c | |
19897 ac_cpp='$CPP $CPPFLAGS' | |
19898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19900 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19901 | |
19902 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | |
19903 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } | |
19904 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | |
19905 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19906 else | |
19907 ac_check_lib_save_LIBS=$LIBS | |
19908 LIBS="-lz $LIBS" | |
19909 cat >conftest.$ac_ext <<_ACEOF | |
19910 /* confdefs.h. */ | |
19911 _ACEOF | |
19912 cat confdefs.h >>conftest.$ac_ext | |
19913 cat >>conftest.$ac_ext <<_ACEOF | |
19914 /* end confdefs.h. */ | |
19915 | |
19916 /* Override any GCC internal prototype to avoid an error. | |
19917 Use char because int might match the return type of a GCC | |
19918 builtin and then its argument prototype would still apply. */ | |
19919 #ifdef __cplusplus | |
19920 extern "C" | |
19921 #endif | |
19922 char inflateEnd (); | |
19923 int | |
19924 main () | |
19925 { | |
19926 return inflateEnd (); | |
19927 ; | |
19928 return 0; | |
19929 } | |
19930 _ACEOF | |
19931 rm -f conftest.$ac_objext conftest$ac_exeext | |
19932 if { (ac_try="$ac_link" | |
19933 case "(($ac_try" in | |
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19935 *) ac_try_echo=$ac_try;; | |
19936 esac | |
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19938 (eval "$ac_link") 2>conftest.er1 | |
19939 ac_status=$? | |
19940 grep -v '^ *+' conftest.er1 >conftest.err | |
19941 rm -f conftest.er1 | |
19942 cat conftest.err >&5 | |
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19944 (exit $ac_status); } && { | |
19945 test -z "$ac_c_werror_flag" || | |
19946 test ! -s conftest.err | |
19947 } && test -s conftest$ac_exeext && | |
19948 $as_test_x conftest$ac_exeext; then | |
19949 ac_cv_lib_z_inflateEnd=yes | |
19950 else | |
19951 echo "$as_me: failed program was:" >&5 | |
19952 sed 's/^/| /' conftest.$ac_ext >&5 | |
19953 | |
19954 ac_cv_lib_z_inflateEnd=no | |
19955 fi | |
19956 | |
19957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19958 conftest$ac_exeext conftest.$ac_ext | |
19959 LIBS=$ac_check_lib_save_LIBS | |
19960 fi | |
19961 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | |
19962 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } | |
19963 if test $ac_cv_lib_z_inflateEnd = yes; then | |
19964 if test "${ac_cv_header_zlib_h+set}" = set; then | |
19965 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19966 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
19967 if test "${ac_cv_header_zlib_h+set}" = set; then | |
19968 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19969 fi | |
19970 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19971 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
19972 else | |
19973 # Is the header compilable? | |
19974 { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19975 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
19976 cat >conftest.$ac_ext <<_ACEOF | |
19977 /* confdefs.h. */ | |
19978 _ACEOF | |
19979 cat confdefs.h >>conftest.$ac_ext | |
19980 cat >>conftest.$ac_ext <<_ACEOF | |
19981 /* end confdefs.h. */ | |
19982 $ac_includes_default | |
19983 #include <zlib.h> | |
19984 _ACEOF | |
19985 rm -f conftest.$ac_objext | |
19986 if { (ac_try="$ac_compile" | |
19987 case "(($ac_try" in | |
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19989 *) ac_try_echo=$ac_try;; | |
19990 esac | |
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19992 (eval "$ac_compile") 2>conftest.er1 | |
19993 ac_status=$? | |
19994 grep -v '^ *+' conftest.er1 >conftest.err | |
19995 rm -f conftest.er1 | |
19996 cat conftest.err >&5 | |
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19998 (exit $ac_status); } && { | |
19999 test -z "$ac_c_werror_flag" || | |
20000 test ! -s conftest.err | |
20001 } && test -s conftest.$ac_objext; then | |
20002 ac_header_compiler=yes | |
20003 else | |
20004 echo "$as_me: failed program was:" >&5 | |
20005 sed 's/^/| /' conftest.$ac_ext >&5 | |
20006 | |
20007 ac_header_compiler=no | |
20008 fi | |
20009 | |
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20012 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
20013 | |
20014 # Is the header present? | |
20015 { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20016 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
20017 cat >conftest.$ac_ext <<_ACEOF | |
20018 /* confdefs.h. */ | |
20019 _ACEOF | |
20020 cat confdefs.h >>conftest.$ac_ext | |
20021 cat >>conftest.$ac_ext <<_ACEOF | |
20022 /* end confdefs.h. */ | |
20023 #include <zlib.h> | |
20024 _ACEOF | |
20025 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20026 case "(($ac_try" in | |
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20028 *) ac_try_echo=$ac_try;; | |
20029 esac | |
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20032 ac_status=$? | |
20033 grep -v '^ *+' conftest.er1 >conftest.err | |
20034 rm -f conftest.er1 | |
20035 cat conftest.err >&5 | |
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20037 (exit $ac_status); } >/dev/null && { | |
20038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20039 test ! -s conftest.err | |
20040 }; then | |
20041 ac_header_preproc=yes | |
20042 else | |
20043 echo "$as_me: failed program was:" >&5 | |
20044 sed 's/^/| /' conftest.$ac_ext >&5 | |
20045 | |
20046 ac_header_preproc=no | |
20047 fi | |
20048 | |
20049 rm -f conftest.err conftest.$ac_ext | |
20050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20051 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
20052 | |
20053 # So? What about this header? | |
20054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20055 yes:no: ) | |
20056 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20057 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20058 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
20059 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20060 ac_header_preproc=yes | |
20061 ;; | |
20062 no:yes:* ) | |
20063 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
20064 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
20065 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
20066 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20067 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20068 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20069 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20070 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20071 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
20072 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
20073 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
20074 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
20075 | |
20076 ;; | |
20077 esac | |
20078 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20079 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
20080 if test "${ac_cv_header_zlib_h+set}" = set; then | |
20081 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20082 else | |
20083 ac_cv_header_zlib_h=$ac_header_preproc | |
20084 fi | |
20085 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20086 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
20087 | |
20088 fi | |
20089 if test $ac_cv_header_zlib_h = yes; then | |
20090 zlib_ok=yes | |
20091 else | |
20092 zlib_ok=no | |
20093 fi | |
20094 | |
20095 | |
20096 fi | |
20097 | |
20098 ac_ext=c | |
20099 ac_cpp='$CPP $CPPFLAGS' | |
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20103 | |
20104 if test "$zlib_ok" != "yes" | |
20105 then | |
20106 # Backout and whinge | |
20107 CPPFLAGS=$_cppflags | |
20108 LDFLAGS=$_ldflags | |
20109 { echo "$as_me:$LINENO: WARNING: \"--with-zlib specified" >&5 | |
20110 echo "$as_me: WARNING: \"--with-zlib specified" >&2;} | |
20111 fi | |
20112 | |
20113 else | |
20114 # Maybe it works "out of the box"? | |
20115 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | |
20116 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } | |
20117 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | |
20118 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20119 else | |
20120 ac_check_lib_save_LIBS=$LIBS | |
20121 LIBS="-lz $LIBS" | |
20122 cat >conftest.$ac_ext <<_ACEOF | |
20123 /* confdefs.h. */ | |
20124 _ACEOF | |
20125 cat confdefs.h >>conftest.$ac_ext | |
20126 cat >>conftest.$ac_ext <<_ACEOF | |
20127 /* end confdefs.h. */ | |
20128 | |
20129 /* Override any GCC internal prototype to avoid an error. | |
20130 Use char because int might match the return type of a GCC | |
20131 builtin and then its argument prototype would still apply. */ | |
20132 #ifdef __cplusplus | |
20133 extern "C" | |
20134 #endif | |
20135 char inflateEnd (); | |
20136 int | |
20137 main () | |
20138 { | |
20139 return inflateEnd (); | |
20140 ; | |
20141 return 0; | |
20142 } | |
20143 _ACEOF | |
20144 rm -f conftest.$ac_objext conftest$ac_exeext | |
20145 if { (ac_try="$ac_link" | |
20146 case "(($ac_try" in | |
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20148 *) ac_try_echo=$ac_try;; | |
20149 esac | |
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20151 (eval "$ac_link") 2>conftest.er1 | |
20152 ac_status=$? | |
20153 grep -v '^ *+' conftest.er1 >conftest.err | |
20154 rm -f conftest.er1 | |
20155 cat conftest.err >&5 | |
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20157 (exit $ac_status); } && { | |
20158 test -z "$ac_c_werror_flag" || | |
20159 test ! -s conftest.err | |
20160 } && test -s conftest$ac_exeext && | |
20161 $as_test_x conftest$ac_exeext; then | |
20162 ac_cv_lib_z_inflateEnd=yes | |
20163 else | |
20164 echo "$as_me: failed program was:" >&5 | |
20165 sed 's/^/| /' conftest.$ac_ext >&5 | |
20166 | |
20167 ac_cv_lib_z_inflateEnd=no | |
20168 fi | |
20169 | |
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20171 conftest$ac_exeext conftest.$ac_ext | |
20172 LIBS=$ac_check_lib_save_LIBS | |
20173 fi | |
20174 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | |
20175 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } | |
20176 if test $ac_cv_lib_z_inflateEnd = yes; then | |
20177 if test "${ac_cv_header_zlib_h+set}" = set; then | |
20178 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20179 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
20180 if test "${ac_cv_header_zlib_h+set}" = set; then | |
20181 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20182 fi | |
20183 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20184 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
20185 else | |
20186 # Is the header compilable? | |
20187 { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20188 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
20189 cat >conftest.$ac_ext <<_ACEOF | |
20190 /* confdefs.h. */ | |
20191 _ACEOF | |
20192 cat confdefs.h >>conftest.$ac_ext | |
20193 cat >>conftest.$ac_ext <<_ACEOF | |
20194 /* end confdefs.h. */ | |
20195 $ac_includes_default | |
20196 #include <zlib.h> | |
20197 _ACEOF | |
20198 rm -f conftest.$ac_objext | |
20199 if { (ac_try="$ac_compile" | |
20200 case "(($ac_try" in | |
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20202 *) ac_try_echo=$ac_try;; | |
20203 esac | |
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20205 (eval "$ac_compile") 2>conftest.er1 | |
20206 ac_status=$? | |
20207 grep -v '^ *+' conftest.er1 >conftest.err | |
20208 rm -f conftest.er1 | |
20209 cat conftest.err >&5 | |
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20211 (exit $ac_status); } && { | |
20212 test -z "$ac_c_werror_flag" || | |
20213 test ! -s conftest.err | |
20214 } && test -s conftest.$ac_objext; then | |
20215 ac_header_compiler=yes | |
20216 else | |
20217 echo "$as_me: failed program was:" >&5 | |
20218 sed 's/^/| /' conftest.$ac_ext >&5 | |
20219 | |
20220 ac_header_compiler=no | |
20221 fi | |
20222 | |
20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20225 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
20226 | |
20227 # Is the header present? | |
20228 { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20229 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
20230 cat >conftest.$ac_ext <<_ACEOF | |
20231 /* confdefs.h. */ | |
20232 _ACEOF | |
20233 cat confdefs.h >>conftest.$ac_ext | |
20234 cat >>conftest.$ac_ext <<_ACEOF | |
20235 /* end confdefs.h. */ | |
20236 #include <zlib.h> | |
20237 _ACEOF | |
20238 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20239 case "(($ac_try" in | |
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20241 *) ac_try_echo=$ac_try;; | |
20242 esac | |
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20245 ac_status=$? | |
20246 grep -v '^ *+' conftest.er1 >conftest.err | |
20247 rm -f conftest.er1 | |
20248 cat conftest.err >&5 | |
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20250 (exit $ac_status); } >/dev/null && { | |
20251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20252 test ! -s conftest.err | |
20253 }; then | |
20254 ac_header_preproc=yes | |
20255 else | |
20256 echo "$as_me: failed program was:" >&5 | |
20257 sed 's/^/| /' conftest.$ac_ext >&5 | |
20258 | |
20259 ac_header_preproc=no | |
20260 fi | |
20261 | |
20262 rm -f conftest.err conftest.$ac_ext | |
20263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20264 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
20265 | |
20266 # So? What about this header? | |
20267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20268 yes:no: ) | |
20269 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20270 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20271 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
20272 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20273 ac_header_preproc=yes | |
20274 ;; | |
20275 no:yes:* ) | |
20276 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
20277 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
20278 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
20279 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20280 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20281 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20282 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20283 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20284 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
20285 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
20286 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
20287 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
20288 | |
20289 ;; | |
20290 esac | |
20291 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20292 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
20293 if test "${ac_cv_header_zlib_h+set}" = set; then | |
20294 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20295 else | |
20296 ac_cv_header_zlib_h=$ac_header_preproc | |
20297 fi | |
20298 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20299 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
20300 | |
20301 fi | |
20302 if test $ac_cv_header_zlib_h = yes; then | |
20303 zlib_ok=yes | |
20304 else | |
20305 zlib_ok=no | |
20306 fi | |
20307 | |
20308 | |
20309 fi | |
20310 | |
20311 fi | |
20312 | |
20313 if test "$zlib_ok" = "yes" | |
20314 then | |
20315 | |
20316 cat >>confdefs.h <<\_ACEOF | |
20317 #define HAVE_ZLIB 1 | |
20318 _ACEOF | |
20319 | |
20320 if test "$ZLIB_ROOT" != "" | |
20321 then | |
20322 LIBZ="-L${ZLIB_ROOT}/lib -lz" | |
20323 else | |
20324 LIBZ=-lz | |
20325 fi | |
20326 | |
20327 else | |
20328 { echo "$as_me:$LINENO: WARNING: \"No functioning zlib found\"" >&5 | |
20329 echo "$as_me: WARNING: \"No functioning zlib found\"" >&2;} | |
20330 fi | |
20331 | |
20332 # Not sure how many of these are needed, but it's belt-and-braces mode | |
20333 | |
20334 | |
20335 | |
20336 | |
20337 if test "$zlib_ok" = "yes"; then | |
20338 HAVE_ZLIB_TRUE= | |
20339 HAVE_ZLIB_FALSE='#' | |
20340 else | |
20341 HAVE_ZLIB_TRUE='#' | |
20342 HAVE_ZLIB_FALSE= | |
20343 fi | |
20344 | |
20345 | |
20346 | |
20347 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
20348 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } | |
20349 if test "${ac_cv_search_gethostbyname+set}" = set; then | |
20350 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20351 else | |
20352 ac_func_search_save_LIBS=$LIBS | |
20353 cat >conftest.$ac_ext <<_ACEOF | |
20354 /* confdefs.h. */ | |
20355 _ACEOF | |
20356 cat confdefs.h >>conftest.$ac_ext | |
20357 cat >>conftest.$ac_ext <<_ACEOF | |
20358 /* end confdefs.h. */ | |
20359 | |
20360 /* Override any GCC internal prototype to avoid an error. | |
20361 Use char because int might match the return type of a GCC | |
20362 builtin and then its argument prototype would still apply. */ | |
20363 #ifdef __cplusplus | |
20364 extern "C" | |
20365 #endif | |
20366 char gethostbyname (); | |
20367 int | |
20368 main () | |
20369 { | |
20370 return gethostbyname (); | |
20371 ; | |
20372 return 0; | |
20373 } | |
20374 _ACEOF | |
20375 for ac_lib in '' nsl; do | |
20376 if test -z "$ac_lib"; then | |
20377 ac_res="none required" | |
20378 else | |
20379 ac_res=-l$ac_lib | |
20380 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20381 fi | |
20382 rm -f conftest.$ac_objext conftest$ac_exeext | |
20383 if { (ac_try="$ac_link" | |
20384 case "(($ac_try" in | |
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20386 *) ac_try_echo=$ac_try;; | |
20387 esac | |
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20389 (eval "$ac_link") 2>conftest.er1 | |
20390 ac_status=$? | |
20391 grep -v '^ *+' conftest.er1 >conftest.err | |
20392 rm -f conftest.er1 | |
20393 cat conftest.err >&5 | |
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20395 (exit $ac_status); } && { | |
20396 test -z "$ac_c_werror_flag" || | |
20397 test ! -s conftest.err | |
20398 } && test -s conftest$ac_exeext && | |
20399 $as_test_x conftest$ac_exeext; then | |
20400 ac_cv_search_gethostbyname=$ac_res | |
20401 else | |
20402 echo "$as_me: failed program was:" >&5 | |
20403 sed 's/^/| /' conftest.$ac_ext >&5 | |
20404 | |
20405 | |
20406 fi | |
20407 | |
20408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20409 conftest$ac_exeext | |
20410 if test "${ac_cv_search_gethostbyname+set}" = set; then | |
20411 break | |
20412 fi | |
20413 done | |
20414 if test "${ac_cv_search_gethostbyname+set}" = set; then | |
20415 : | |
20416 else | |
20417 ac_cv_search_gethostbyname=no | |
20418 fi | |
20419 rm conftest.$ac_ext | |
20420 LIBS=$ac_func_search_save_LIBS | |
20421 fi | |
20422 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
20423 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } | |
20424 ac_res=$ac_cv_search_gethostbyname | |
20425 if test "$ac_res" != no; then | |
20426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20427 | |
20428 fi | |
20429 | |
20430 { echo "$as_me:$LINENO: checking for library containing socket" >&5 | |
20431 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
20432 if test "${ac_cv_search_socket+set}" = set; then | |
20433 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20434 else | |
20435 ac_func_search_save_LIBS=$LIBS | |
20436 cat >conftest.$ac_ext <<_ACEOF | |
20437 /* confdefs.h. */ | |
20438 _ACEOF | |
20439 cat confdefs.h >>conftest.$ac_ext | |
20440 cat >>conftest.$ac_ext <<_ACEOF | |
20441 /* end confdefs.h. */ | |
20442 | |
20443 /* Override any GCC internal prototype to avoid an error. | |
20444 Use char because int might match the return type of a GCC | |
20445 builtin and then its argument prototype would still apply. */ | |
20446 #ifdef __cplusplus | |
20447 extern "C" | |
20448 #endif | |
20449 char socket (); | |
20450 int | |
20451 main () | |
20452 { | |
20453 return socket (); | |
20454 ; | |
20455 return 0; | |
20456 } | |
20457 _ACEOF | |
20458 for ac_lib in '' socket; do | |
20459 if test -z "$ac_lib"; then | |
20460 ac_res="none required" | |
20461 else | |
20462 ac_res=-l$ac_lib | |
20463 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20464 fi | |
20465 rm -f conftest.$ac_objext conftest$ac_exeext | |
20466 if { (ac_try="$ac_link" | |
20467 case "(($ac_try" in | |
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20469 *) ac_try_echo=$ac_try;; | |
20470 esac | |
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20472 (eval "$ac_link") 2>conftest.er1 | |
20473 ac_status=$? | |
20474 grep -v '^ *+' conftest.er1 >conftest.err | |
20475 rm -f conftest.er1 | |
20476 cat conftest.err >&5 | |
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20478 (exit $ac_status); } && { | |
20479 test -z "$ac_c_werror_flag" || | |
20480 test ! -s conftest.err | |
20481 } && test -s conftest$ac_exeext && | |
20482 $as_test_x conftest$ac_exeext; then | |
20483 ac_cv_search_socket=$ac_res | |
20484 else | |
20485 echo "$as_me: failed program was:" >&5 | |
20486 sed 's/^/| /' conftest.$ac_ext >&5 | |
20487 | |
20488 | |
20489 fi | |
20490 | |
20491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20492 conftest$ac_exeext | |
20493 if test "${ac_cv_search_socket+set}" = set; then | |
20494 break | |
20495 fi | |
20496 done | |
20497 if test "${ac_cv_search_socket+set}" = set; then | |
20498 : | |
20499 else | |
20500 ac_cv_search_socket=no | |
20501 fi | |
20502 rm conftest.$ac_ext | |
20503 LIBS=$ac_func_search_save_LIBS | |
20504 fi | |
20505 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
20506 echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
20507 ac_res=$ac_cv_search_socket | |
20508 if test "$ac_res" != no; then | |
20509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20510 | |
20511 else | |
20512 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
20513 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
20514 if test "${ac_cv_lib_socket_socket+set}" = set; then | |
20515 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20516 else | |
20517 ac_check_lib_save_LIBS=$LIBS | |
20518 LIBS="-lsocket -lnsl $LIBS" | |
20519 cat >conftest.$ac_ext <<_ACEOF | |
20520 /* confdefs.h. */ | |
20521 _ACEOF | |
20522 cat confdefs.h >>conftest.$ac_ext | |
20523 cat >>conftest.$ac_ext <<_ACEOF | |
20524 /* end confdefs.h. */ | |
20525 | |
20526 /* Override any GCC internal prototype to avoid an error. | |
20527 Use char because int might match the return type of a GCC | |
20528 builtin and then its argument prototype would still apply. */ | |
20529 #ifdef __cplusplus | |
20530 extern "C" | |
20531 #endif | |
20532 char socket (); | |
20533 int | |
20534 main () | |
20535 { | |
20536 return socket (); | |
20537 ; | |
20538 return 0; | |
20539 } | |
20540 _ACEOF | |
20541 rm -f conftest.$ac_objext conftest$ac_exeext | |
20542 if { (ac_try="$ac_link" | |
20543 case "(($ac_try" in | |
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20545 *) ac_try_echo=$ac_try;; | |
20546 esac | |
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20548 (eval "$ac_link") 2>conftest.er1 | |
20549 ac_status=$? | |
20550 grep -v '^ *+' conftest.er1 >conftest.err | |
20551 rm -f conftest.er1 | |
20552 cat conftest.err >&5 | |
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20554 (exit $ac_status); } && { | |
20555 test -z "$ac_c_werror_flag" || | |
20556 test ! -s conftest.err | |
20557 } && test -s conftest$ac_exeext && | |
20558 $as_test_x conftest$ac_exeext; then | |
20559 ac_cv_lib_socket_socket=yes | |
20560 else | |
20561 echo "$as_me: failed program was:" >&5 | |
20562 sed 's/^/| /' conftest.$ac_ext >&5 | |
20563 | |
20564 ac_cv_lib_socket_socket=no | |
20565 fi | |
20566 | |
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20568 conftest$ac_exeext conftest.$ac_ext | |
20569 LIBS=$ac_check_lib_save_LIBS | |
20570 fi | |
20571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
20572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
20573 if test $ac_cv_lib_socket_socket = yes; then | |
20574 LIBS="-lsocket -lnsl $LIBS" | |
20575 fi | |
20576 | |
20577 fi | |
20578 | |
20579 | |
20580 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20581 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
20582 if test "${ac_cv_c_bigendian+set}" = set; then | |
20583 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20584 else | |
20585 # See if sys/param.h defines the BYTE_ORDER macro. | |
20586 cat >conftest.$ac_ext <<_ACEOF | |
20587 /* confdefs.h. */ | |
20588 _ACEOF | |
20589 cat confdefs.h >>conftest.$ac_ext | |
20590 cat >>conftest.$ac_ext <<_ACEOF | |
20591 /* end confdefs.h. */ | |
20592 #include <sys/types.h> | |
20593 #include <sys/param.h> | |
20594 | |
20595 int | |
20596 main () | |
20597 { | |
20598 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
20599 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
20600 bogus endian macros | |
20601 #endif | |
20602 | |
20603 ; | |
20604 return 0; | |
20605 } | |
20606 _ACEOF | |
20607 rm -f conftest.$ac_objext | |
20608 if { (ac_try="$ac_compile" | |
20609 case "(($ac_try" in | |
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20611 *) ac_try_echo=$ac_try;; | |
20612 esac | |
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20614 (eval "$ac_compile") 2>conftest.er1 | |
20615 ac_status=$? | |
20616 grep -v '^ *+' conftest.er1 >conftest.err | |
20617 rm -f conftest.er1 | |
20618 cat conftest.err >&5 | |
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20620 (exit $ac_status); } && { | |
20621 test -z "$ac_c_werror_flag" || | |
20622 test ! -s conftest.err | |
20623 } && test -s conftest.$ac_objext; then | |
20624 # It does; now see whether it defined to BIG_ENDIAN or not. | |
20625 cat >conftest.$ac_ext <<_ACEOF | |
20626 /* confdefs.h. */ | |
20627 _ACEOF | |
20628 cat confdefs.h >>conftest.$ac_ext | |
20629 cat >>conftest.$ac_ext <<_ACEOF | |
20630 /* end confdefs.h. */ | |
20631 #include <sys/types.h> | |
20632 #include <sys/param.h> | |
20633 | |
20634 int | |
20635 main () | |
20636 { | |
20637 #if BYTE_ORDER != BIG_ENDIAN | |
20638 not big endian | |
20639 #endif | |
20640 | |
20641 ; | |
20642 return 0; | |
20643 } | |
20644 _ACEOF | |
20645 rm -f conftest.$ac_objext | |
20646 if { (ac_try="$ac_compile" | |
20647 case "(($ac_try" in | |
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20649 *) ac_try_echo=$ac_try;; | |
20650 esac | |
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20652 (eval "$ac_compile") 2>conftest.er1 | |
20653 ac_status=$? | |
20654 grep -v '^ *+' conftest.er1 >conftest.err | |
20655 rm -f conftest.er1 | |
20656 cat conftest.err >&5 | |
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20658 (exit $ac_status); } && { | |
20659 test -z "$ac_c_werror_flag" || | |
20660 test ! -s conftest.err | |
20661 } && test -s conftest.$ac_objext; then | |
20662 ac_cv_c_bigendian=yes | |
20663 else | |
20664 echo "$as_me: failed program was:" >&5 | |
20665 sed 's/^/| /' conftest.$ac_ext >&5 | |
20666 | |
20667 ac_cv_c_bigendian=no | |
20668 fi | |
20669 | |
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20671 else | |
20672 echo "$as_me: failed program was:" >&5 | |
20673 sed 's/^/| /' conftest.$ac_ext >&5 | |
20674 | |
20675 # It does not; compile a test program. | |
20676 if test "$cross_compiling" = yes; then | |
20677 # try to guess the endianness by grepping values into an object file | |
20678 ac_cv_c_bigendian=unknown | |
20679 cat >conftest.$ac_ext <<_ACEOF | |
20680 /* confdefs.h. */ | |
20681 _ACEOF | |
20682 cat confdefs.h >>conftest.$ac_ext | |
20683 cat >>conftest.$ac_ext <<_ACEOF | |
20684 /* end confdefs.h. */ | |
20685 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
20686 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
20687 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
20688 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
20689 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
20690 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
20691 int | |
20692 main () | |
20693 { | |
20694 _ascii (); _ebcdic (); | |
20695 ; | |
20696 return 0; | |
20697 } | |
20698 _ACEOF | |
20699 rm -f conftest.$ac_objext | |
20700 if { (ac_try="$ac_compile" | |
20701 case "(($ac_try" in | |
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20703 *) ac_try_echo=$ac_try;; | |
20704 esac | |
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20706 (eval "$ac_compile") 2>conftest.er1 | |
20707 ac_status=$? | |
20708 grep -v '^ *+' conftest.er1 >conftest.err | |
20709 rm -f conftest.er1 | |
20710 cat conftest.err >&5 | |
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20712 (exit $ac_status); } && { | |
20713 test -z "$ac_c_werror_flag" || | |
20714 test ! -s conftest.err | |
20715 } && test -s conftest.$ac_objext; then | |
20716 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
20717 ac_cv_c_bigendian=yes | |
20718 fi | |
20719 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
20720 if test "$ac_cv_c_bigendian" = unknown; then | |
20721 ac_cv_c_bigendian=no | |
20722 else | |
20723 # finding both strings is unlikely to happen, but who knows? | |
20724 ac_cv_c_bigendian=unknown | |
20725 fi | |
20726 fi | |
20727 else | |
20728 echo "$as_me: failed program was:" >&5 | |
20729 sed 's/^/| /' conftest.$ac_ext >&5 | |
20730 | |
20731 | |
20732 fi | |
20733 | |
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20735 else | |
20736 cat >conftest.$ac_ext <<_ACEOF | |
20737 /* confdefs.h. */ | |
20738 _ACEOF | |
20739 cat confdefs.h >>conftest.$ac_ext | |
20740 cat >>conftest.$ac_ext <<_ACEOF | |
20741 /* end confdefs.h. */ | |
20742 $ac_includes_default | |
20743 int | |
20744 main () | |
20745 { | |
20746 | |
20747 /* Are we little or big endian? From Harbison&Steele. */ | |
20748 union | |
20749 { | |
20750 long int l; | |
20751 char c[sizeof (long int)]; | |
20752 } u; | |
20753 u.l = 1; | |
20754 return u.c[sizeof (long int) - 1] == 1; | |
20755 | |
20756 ; | |
20757 return 0; | |
20758 } | |
20759 _ACEOF | |
20760 rm -f conftest$ac_exeext | |
20761 if { (ac_try="$ac_link" | |
20762 case "(($ac_try" in | |
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20764 *) ac_try_echo=$ac_try;; | |
20765 esac | |
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20767 (eval "$ac_link") 2>&5 | |
20768 ac_status=$? | |
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20771 { (case "(($ac_try" in | |
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20773 *) ac_try_echo=$ac_try;; | |
20774 esac | |
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20776 (eval "$ac_try") 2>&5 | |
20777 ac_status=$? | |
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 (exit $ac_status); }; }; then | |
20780 ac_cv_c_bigendian=no | |
20781 else | |
20782 echo "$as_me: program exited with status $ac_status" >&5 | |
20783 echo "$as_me: failed program was:" >&5 | |
20784 sed 's/^/| /' conftest.$ac_ext >&5 | |
20785 | |
20786 ( exit $ac_status ) | |
20787 ac_cv_c_bigendian=yes | |
20788 fi | |
20789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20790 fi | |
20791 | |
20792 | |
20793 fi | |
20794 | |
20795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20796 fi | |
20797 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20798 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
20799 case $ac_cv_c_bigendian in | |
20800 yes) | |
20801 | |
20802 cat >>confdefs.h <<\_ACEOF | |
20803 #define WORDS_BIGENDIAN 1 | |
20804 _ACEOF | |
20805 ;; | |
20806 no) | |
20807 ;; | |
20808 *) | |
20809 { { echo "$as_me:$LINENO: error: unknown endianness | |
20810 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
20811 echo "$as_me: error: unknown endianness | |
20812 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
20813 { (exit 1); exit 1; }; } ;; | |
20814 esac | |
20815 | |
20816 | |
20817 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
20818 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
20819 if test "${ac_cv_header_stdc+set}" = set; then | |
20820 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20821 else | |
20822 cat >conftest.$ac_ext <<_ACEOF | |
20823 /* confdefs.h. */ | |
20824 _ACEOF | |
20825 cat confdefs.h >>conftest.$ac_ext | |
20826 cat >>conftest.$ac_ext <<_ACEOF | |
20827 /* end confdefs.h. */ | |
20828 #include <stdlib.h> | |
20829 #include <stdarg.h> | |
20830 #include <string.h> | |
20831 #include <float.h> | |
20832 | |
20833 int | |
20834 main () | |
20835 { | |
20836 | |
20837 ; | |
20838 return 0; | |
20839 } | |
20840 _ACEOF | |
20841 rm -f conftest.$ac_objext | |
20842 if { (ac_try="$ac_compile" | |
20843 case "(($ac_try" in | |
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20845 *) ac_try_echo=$ac_try;; | |
20846 esac | |
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20848 (eval "$ac_compile") 2>conftest.er1 | |
20849 ac_status=$? | |
20850 grep -v '^ *+' conftest.er1 >conftest.err | |
20851 rm -f conftest.er1 | |
20852 cat conftest.err >&5 | |
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20854 (exit $ac_status); } && { | |
20855 test -z "$ac_c_werror_flag" || | |
20856 test ! -s conftest.err | |
20857 } && test -s conftest.$ac_objext; then | |
20858 ac_cv_header_stdc=yes | |
20859 else | |
20860 echo "$as_me: failed program was:" >&5 | |
20861 sed 's/^/| /' conftest.$ac_ext >&5 | |
20862 | |
20863 ac_cv_header_stdc=no | |
20864 fi | |
20865 | |
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20867 | |
20868 if test $ac_cv_header_stdc = yes; then | |
20869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
20870 cat >conftest.$ac_ext <<_ACEOF | |
20871 /* confdefs.h. */ | |
20872 _ACEOF | |
20873 cat confdefs.h >>conftest.$ac_ext | |
20874 cat >>conftest.$ac_ext <<_ACEOF | |
20875 /* end confdefs.h. */ | |
20876 #include <string.h> | |
20877 | |
20878 _ACEOF | |
20879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
20880 $EGREP "memchr" >/dev/null 2>&1; then | |
20881 : | |
20882 else | |
20883 ac_cv_header_stdc=no | |
20884 fi | |
20885 rm -f conftest* | |
20886 | |
20887 fi | |
20888 | |
20889 if test $ac_cv_header_stdc = yes; then | |
20890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
20891 cat >conftest.$ac_ext <<_ACEOF | |
20892 /* confdefs.h. */ | |
20893 _ACEOF | |
20894 cat confdefs.h >>conftest.$ac_ext | |
20895 cat >>conftest.$ac_ext <<_ACEOF | |
20896 /* end confdefs.h. */ | |
20897 #include <stdlib.h> | |
20898 | |
20899 _ACEOF | |
20900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
20901 $EGREP "free" >/dev/null 2>&1; then | |
20902 : | |
20903 else | |
20904 ac_cv_header_stdc=no | |
20905 fi | |
20906 rm -f conftest* | |
20907 | |
20908 fi | |
20909 | |
20910 if test $ac_cv_header_stdc = yes; then | |
20911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
20912 if test "$cross_compiling" = yes; then | |
20913 : | |
20914 else | |
20915 cat >conftest.$ac_ext <<_ACEOF | |
20916 /* confdefs.h. */ | |
20917 _ACEOF | |
20918 cat confdefs.h >>conftest.$ac_ext | |
20919 cat >>conftest.$ac_ext <<_ACEOF | |
20920 /* end confdefs.h. */ | |
20921 #include <ctype.h> | |
20922 #include <stdlib.h> | |
20923 #if ((' ' & 0x0FF) == 0x020) | |
20924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
20925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
20926 #else | |
20927 # define ISLOWER(c) \ | |
20928 (('a' <= (c) && (c) <= 'i') \ | |
20929 || ('j' <= (c) && (c) <= 'r') \ | |
20930 || ('s' <= (c) && (c) <= 'z')) | |
20931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
20932 #endif | |
20933 | |
20934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
20935 int | |
20936 main () | |
20937 { | |
20938 int i; | |
20939 for (i = 0; i < 256; i++) | |
20940 if (XOR (islower (i), ISLOWER (i)) | |
20941 || toupper (i) != TOUPPER (i)) | |
20942 return 2; | |
20943 return 0; | |
20944 } | |
20945 _ACEOF | |
20946 rm -f conftest$ac_exeext | |
20947 if { (ac_try="$ac_link" | |
20948 case "(($ac_try" in | |
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20950 *) ac_try_echo=$ac_try;; | |
20951 esac | |
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20953 (eval "$ac_link") 2>&5 | |
20954 ac_status=$? | |
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20957 { (case "(($ac_try" in | |
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20959 *) ac_try_echo=$ac_try;; | |
20960 esac | |
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20962 (eval "$ac_try") 2>&5 | |
20963 ac_status=$? | |
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 (exit $ac_status); }; }; then | |
20966 : | |
20967 else | |
20968 echo "$as_me: program exited with status $ac_status" >&5 | |
20969 echo "$as_me: failed program was:" >&5 | |
20970 sed 's/^/| /' conftest.$ac_ext >&5 | |
20971 | |
20972 ( exit $ac_status ) | |
20973 ac_cv_header_stdc=no | |
20974 fi | |
20975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20976 fi | |
20977 | |
20978 | |
20979 fi | |
20980 fi | |
20981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
20982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
20983 if test $ac_cv_header_stdc = yes; then | |
20984 | |
20985 cat >>confdefs.h <<\_ACEOF | |
20986 #define STDC_HEADERS 1 | |
20987 _ACEOF | |
20988 | |
20989 fi | |
20990 | |
20991 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
20992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
20993 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
20994 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20995 else | |
20996 cat >conftest.$ac_ext <<_ACEOF | |
20997 /* confdefs.h. */ | |
20998 _ACEOF | |
20999 cat confdefs.h >>conftest.$ac_ext | |
21000 cat >>conftest.$ac_ext <<_ACEOF | |
21001 /* end confdefs.h. */ | |
21002 #include <sys/types.h> | |
21003 #include <sys/wait.h> | |
21004 #ifndef WEXITSTATUS | |
21005 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
21006 #endif | |
21007 #ifndef WIFEXITED | |
21008 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
21009 #endif | |
21010 | |
21011 int | |
21012 main () | |
21013 { | |
21014 int s; | |
21015 wait (&s); | |
21016 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
21017 ; | |
21018 return 0; | |
21019 } | |
21020 _ACEOF | |
21021 rm -f conftest.$ac_objext | |
21022 if { (ac_try="$ac_compile" | |
21023 case "(($ac_try" in | |
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21025 *) ac_try_echo=$ac_try;; | |
21026 esac | |
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21028 (eval "$ac_compile") 2>conftest.er1 | |
21029 ac_status=$? | |
21030 grep -v '^ *+' conftest.er1 >conftest.err | |
21031 rm -f conftest.er1 | |
21032 cat conftest.err >&5 | |
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21034 (exit $ac_status); } && { | |
21035 test -z "$ac_c_werror_flag" || | |
21036 test ! -s conftest.err | |
21037 } && test -s conftest.$ac_objext; then | |
21038 ac_cv_header_sys_wait_h=yes | |
21039 else | |
21040 echo "$as_me: failed program was:" >&5 | |
21041 sed 's/^/| /' conftest.$ac_ext >&5 | |
21042 | |
21043 ac_cv_header_sys_wait_h=no | |
21044 fi | |
21045 | |
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21047 fi | |
21048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
21049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
21050 if test $ac_cv_header_sys_wait_h = yes; then | |
21051 | |
21052 cat >>confdefs.h <<\_ACEOF | |
21053 #define HAVE_SYS_WAIT_H 1 | |
21054 _ACEOF | |
21055 | |
21056 fi | |
21057 | |
21058 | |
21059 | |
21060 | |
21061 for ac_header in fcntl.h limits.h unistd.h | |
21062 do | |
21063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21065 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21068 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21069 fi | |
21070 ac_res=`eval echo '${'$as_ac_Header'}'` | |
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21072 echo "${ECHO_T}$ac_res" >&6; } | |
21073 else | |
21074 # Is the header compilable? | |
21075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
21077 cat >conftest.$ac_ext <<_ACEOF | |
21078 /* confdefs.h. */ | |
21079 _ACEOF | |
21080 cat confdefs.h >>conftest.$ac_ext | |
21081 cat >>conftest.$ac_ext <<_ACEOF | |
21082 /* end confdefs.h. */ | |
21083 $ac_includes_default | |
21084 #include <$ac_header> | |
21085 _ACEOF | |
21086 rm -f conftest.$ac_objext | |
21087 if { (ac_try="$ac_compile" | |
21088 case "(($ac_try" in | |
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21090 *) ac_try_echo=$ac_try;; | |
21091 esac | |
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21093 (eval "$ac_compile") 2>conftest.er1 | |
21094 ac_status=$? | |
21095 grep -v '^ *+' conftest.er1 >conftest.err | |
21096 rm -f conftest.er1 | |
21097 cat conftest.err >&5 | |
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21099 (exit $ac_status); } && { | |
21100 test -z "$ac_c_werror_flag" || | |
21101 test ! -s conftest.err | |
21102 } && test -s conftest.$ac_objext; then | |
21103 ac_header_compiler=yes | |
21104 else | |
21105 echo "$as_me: failed program was:" >&5 | |
21106 sed 's/^/| /' conftest.$ac_ext >&5 | |
21107 | |
21108 ac_header_compiler=no | |
21109 fi | |
21110 | |
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21113 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21114 | |
21115 # Is the header present? | |
21116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
21118 cat >conftest.$ac_ext <<_ACEOF | |
21119 /* confdefs.h. */ | |
21120 _ACEOF | |
21121 cat confdefs.h >>conftest.$ac_ext | |
21122 cat >>conftest.$ac_ext <<_ACEOF | |
21123 /* end confdefs.h. */ | |
21124 #include <$ac_header> | |
21125 _ACEOF | |
21126 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21127 case "(($ac_try" in | |
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21129 *) ac_try_echo=$ac_try;; | |
21130 esac | |
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21133 ac_status=$? | |
21134 grep -v '^ *+' conftest.er1 >conftest.err | |
21135 rm -f conftest.er1 | |
21136 cat conftest.err >&5 | |
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21138 (exit $ac_status); } >/dev/null && { | |
21139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21140 test ! -s conftest.err | |
21141 }; then | |
21142 ac_header_preproc=yes | |
21143 else | |
21144 echo "$as_me: failed program was:" >&5 | |
21145 sed 's/^/| /' conftest.$ac_ext >&5 | |
21146 | |
21147 ac_header_preproc=no | |
21148 fi | |
21149 | |
21150 rm -f conftest.err conftest.$ac_ext | |
21151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21152 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21153 | |
21154 # So? What about this header? | |
21155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21156 yes:no: ) | |
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
21160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21161 ac_header_preproc=yes | |
21162 ;; | |
21163 no:yes:* ) | |
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
21165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
21167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
21173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
21175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
21176 | |
21177 ;; | |
21178 esac | |
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
21182 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21183 else | |
21184 eval "$as_ac_Header=\$ac_header_preproc" | |
21185 fi | |
21186 ac_res=`eval echo '${'$as_ac_Header'}'` | |
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21188 echo "${ECHO_T}$ac_res" >&6; } | |
21189 | |
21190 fi | |
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21192 cat >>confdefs.h <<_ACEOF | |
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21194 _ACEOF | |
21195 | |
21196 fi | |
21197 | |
21198 done | |
21199 | |
21200 if test "${ac_cv_header_zlib_h+set}" = set; then | |
21201 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21202 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
21203 if test "${ac_cv_header_zlib_h+set}" = set; then | |
21204 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21205 fi | |
21206 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21207 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
21208 else | |
21209 # Is the header compilable? | |
21210 { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21211 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
21212 cat >conftest.$ac_ext <<_ACEOF | |
21213 /* confdefs.h. */ | |
21214 _ACEOF | |
21215 cat confdefs.h >>conftest.$ac_ext | |
21216 cat >>conftest.$ac_ext <<_ACEOF | |
21217 /* end confdefs.h. */ | |
21218 $ac_includes_default | |
21219 #include <zlib.h> | |
21220 _ACEOF | |
21221 rm -f conftest.$ac_objext | |
21222 if { (ac_try="$ac_compile" | |
21223 case "(($ac_try" in | |
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21225 *) ac_try_echo=$ac_try;; | |
21226 esac | |
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21228 (eval "$ac_compile") 2>conftest.er1 | |
21229 ac_status=$? | |
21230 grep -v '^ *+' conftest.er1 >conftest.err | |
21231 rm -f conftest.er1 | |
21232 cat conftest.err >&5 | |
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21234 (exit $ac_status); } && { | |
21235 test -z "$ac_c_werror_flag" || | |
21236 test ! -s conftest.err | |
21237 } && test -s conftest.$ac_objext; then | |
21238 ac_header_compiler=yes | |
21239 else | |
21240 echo "$as_me: failed program was:" >&5 | |
21241 sed 's/^/| /' conftest.$ac_ext >&5 | |
21242 | |
21243 ac_header_compiler=no | |
21244 fi | |
21245 | |
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21248 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21249 | |
21250 # Is the header present? | |
21251 { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21252 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
21253 cat >conftest.$ac_ext <<_ACEOF | |
21254 /* confdefs.h. */ | |
21255 _ACEOF | |
21256 cat confdefs.h >>conftest.$ac_ext | |
21257 cat >>conftest.$ac_ext <<_ACEOF | |
21258 /* end confdefs.h. */ | |
21259 #include <zlib.h> | |
21260 _ACEOF | |
21261 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21262 case "(($ac_try" in | |
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21264 *) ac_try_echo=$ac_try;; | |
21265 esac | |
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21268 ac_status=$? | |
21269 grep -v '^ *+' conftest.er1 >conftest.err | |
21270 rm -f conftest.er1 | |
21271 cat conftest.err >&5 | |
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21273 (exit $ac_status); } >/dev/null && { | |
21274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21275 test ! -s conftest.err | |
21276 }; then | |
21277 ac_header_preproc=yes | |
21278 else | |
21279 echo "$as_me: failed program was:" >&5 | |
21280 sed 's/^/| /' conftest.$ac_ext >&5 | |
21281 | |
21282 ac_header_preproc=no | |
21283 fi | |
21284 | |
21285 rm -f conftest.err conftest.$ac_ext | |
21286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21287 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21288 | |
21289 # So? What about this header? | |
21290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21291 yes:no: ) | |
21292 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21293 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21294 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
21295 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21296 ac_header_preproc=yes | |
21297 ;; | |
21298 no:yes:* ) | |
21299 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
21300 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
21301 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
21302 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21303 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21304 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21305 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21306 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21307 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
21308 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
21309 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
21310 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
21311 | |
21312 ;; | |
21313 esac | |
21314 { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21315 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
21316 if test "${ac_cv_header_zlib_h+set}" = set; then | |
21317 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21318 else | |
21319 ac_cv_header_zlib_h=$ac_header_preproc | |
21320 fi | |
21321 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21322 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
21323 | |
21324 fi | |
21325 | |
21326 | |
21327 | |
21328 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21329 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
21330 if test "${ac_cv_c_bigendian+set}" = set; then | |
21331 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21332 else | |
21333 # See if sys/param.h defines the BYTE_ORDER macro. | |
21334 cat >conftest.$ac_ext <<_ACEOF | |
21335 /* confdefs.h. */ | |
21336 _ACEOF | |
21337 cat confdefs.h >>conftest.$ac_ext | |
21338 cat >>conftest.$ac_ext <<_ACEOF | |
21339 /* end confdefs.h. */ | |
21340 #include <sys/types.h> | |
21341 #include <sys/param.h> | |
21342 | |
21343 int | |
21344 main () | |
21345 { | |
21346 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
21347 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
21348 bogus endian macros | |
21349 #endif | |
21350 | |
21351 ; | |
21352 return 0; | |
21353 } | |
21354 _ACEOF | |
21355 rm -f conftest.$ac_objext | |
21356 if { (ac_try="$ac_compile" | |
21357 case "(($ac_try" in | |
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21359 *) ac_try_echo=$ac_try;; | |
21360 esac | |
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21362 (eval "$ac_compile") 2>conftest.er1 | |
21363 ac_status=$? | |
21364 grep -v '^ *+' conftest.er1 >conftest.err | |
21365 rm -f conftest.er1 | |
21366 cat conftest.err >&5 | |
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21368 (exit $ac_status); } && { | |
21369 test -z "$ac_c_werror_flag" || | |
21370 test ! -s conftest.err | |
21371 } && test -s conftest.$ac_objext; then | |
21372 # It does; now see whether it defined to BIG_ENDIAN or not. | |
21373 cat >conftest.$ac_ext <<_ACEOF | |
21374 /* confdefs.h. */ | |
21375 _ACEOF | |
21376 cat confdefs.h >>conftest.$ac_ext | |
21377 cat >>conftest.$ac_ext <<_ACEOF | |
21378 /* end confdefs.h. */ | |
21379 #include <sys/types.h> | |
21380 #include <sys/param.h> | |
21381 | |
21382 int | |
21383 main () | |
21384 { | |
21385 #if BYTE_ORDER != BIG_ENDIAN | |
21386 not big endian | |
21387 #endif | |
21388 | |
21389 ; | |
21390 return 0; | |
21391 } | |
21392 _ACEOF | |
21393 rm -f conftest.$ac_objext | |
21394 if { (ac_try="$ac_compile" | |
21395 case "(($ac_try" in | |
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21397 *) ac_try_echo=$ac_try;; | |
21398 esac | |
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21400 (eval "$ac_compile") 2>conftest.er1 | |
21401 ac_status=$? | |
21402 grep -v '^ *+' conftest.er1 >conftest.err | |
21403 rm -f conftest.er1 | |
21404 cat conftest.err >&5 | |
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21406 (exit $ac_status); } && { | |
21407 test -z "$ac_c_werror_flag" || | |
21408 test ! -s conftest.err | |
21409 } && test -s conftest.$ac_objext; then | |
21410 ac_cv_c_bigendian=yes | |
21411 else | |
21412 echo "$as_me: failed program was:" >&5 | |
21413 sed 's/^/| /' conftest.$ac_ext >&5 | |
21414 | |
21415 ac_cv_c_bigendian=no | |
21416 fi | |
21417 | |
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21419 else | |
21420 echo "$as_me: failed program was:" >&5 | |
21421 sed 's/^/| /' conftest.$ac_ext >&5 | |
21422 | |
21423 # It does not; compile a test program. | |
21424 if test "$cross_compiling" = yes; then | |
21425 # try to guess the endianness by grepping values into an object file | |
21426 ac_cv_c_bigendian=unknown | |
21427 cat >conftest.$ac_ext <<_ACEOF | |
21428 /* confdefs.h. */ | |
21429 _ACEOF | |
21430 cat confdefs.h >>conftest.$ac_ext | |
21431 cat >>conftest.$ac_ext <<_ACEOF | |
21432 /* end confdefs.h. */ | |
21433 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
21434 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
21435 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
21436 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
21437 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
21438 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
21439 int | |
21440 main () | |
21441 { | |
21442 _ascii (); _ebcdic (); | |
21443 ; | |
21444 return 0; | |
21445 } | |
21446 _ACEOF | |
21447 rm -f conftest.$ac_objext | |
21448 if { (ac_try="$ac_compile" | |
21449 case "(($ac_try" in | |
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21451 *) ac_try_echo=$ac_try;; | |
21452 esac | |
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21454 (eval "$ac_compile") 2>conftest.er1 | |
21455 ac_status=$? | |
21456 grep -v '^ *+' conftest.er1 >conftest.err | |
21457 rm -f conftest.er1 | |
21458 cat conftest.err >&5 | |
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 (exit $ac_status); } && { | |
21461 test -z "$ac_c_werror_flag" || | |
21462 test ! -s conftest.err | |
21463 } && test -s conftest.$ac_objext; then | |
21464 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
21465 ac_cv_c_bigendian=yes | |
21466 fi | |
21467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
21468 if test "$ac_cv_c_bigendian" = unknown; then | |
21469 ac_cv_c_bigendian=no | |
21470 else | |
21471 # finding both strings is unlikely to happen, but who knows? | |
21472 ac_cv_c_bigendian=unknown | |
21473 fi | |
21474 fi | |
21475 else | |
21476 echo "$as_me: failed program was:" >&5 | |
21477 sed 's/^/| /' conftest.$ac_ext >&5 | |
21478 | |
21479 | |
21480 fi | |
21481 | |
21482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21483 else | |
21484 cat >conftest.$ac_ext <<_ACEOF | |
21485 /* confdefs.h. */ | |
21486 _ACEOF | |
21487 cat confdefs.h >>conftest.$ac_ext | |
21488 cat >>conftest.$ac_ext <<_ACEOF | |
21489 /* end confdefs.h. */ | |
21490 $ac_includes_default | |
21491 int | |
21492 main () | |
21493 { | |
21494 | |
21495 /* Are we little or big endian? From Harbison&Steele. */ | |
21496 union | |
21497 { | |
21498 long int l; | |
21499 char c[sizeof (long int)]; | |
21500 } u; | |
21501 u.l = 1; | |
21502 return u.c[sizeof (long int) - 1] == 1; | |
21503 | |
21504 ; | |
21505 return 0; | |
21506 } | |
21507 _ACEOF | |
21508 rm -f conftest$ac_exeext | |
21509 if { (ac_try="$ac_link" | |
21510 case "(($ac_try" in | |
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21512 *) ac_try_echo=$ac_try;; | |
21513 esac | |
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21515 (eval "$ac_link") 2>&5 | |
21516 ac_status=$? | |
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21519 { (case "(($ac_try" in | |
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21521 *) ac_try_echo=$ac_try;; | |
21522 esac | |
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21524 (eval "$ac_try") 2>&5 | |
21525 ac_status=$? | |
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21527 (exit $ac_status); }; }; then | |
21528 ac_cv_c_bigendian=no | |
21529 else | |
21530 echo "$as_me: program exited with status $ac_status" >&5 | |
21531 echo "$as_me: failed program was:" >&5 | |
21532 sed 's/^/| /' conftest.$ac_ext >&5 | |
21533 | |
21534 ( exit $ac_status ) | |
21535 ac_cv_c_bigendian=yes | |
21536 fi | |
21537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21538 fi | |
21539 | |
21540 | |
21541 fi | |
21542 | |
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21544 fi | |
21545 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21546 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
21547 case $ac_cv_c_bigendian in | |
21548 yes) | |
21549 | |
21550 cat >>confdefs.h <<\_ACEOF | |
21551 #define WORDS_BIGENDIAN 1 | |
21552 _ACEOF | |
21553 ;; | |
21554 no) | |
21555 ;; | |
21556 *) | |
21557 { { echo "$as_me:$LINENO: error: unknown endianness | |
21558 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
21559 echo "$as_me: error: unknown endianness | |
21560 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
21561 { (exit 1); exit 1; }; } ;; | |
21562 esac | |
21563 | |
21564 { echo "$as_me:$LINENO: checking for short" >&5 | |
21565 echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
21566 if test "${ac_cv_type_short+set}" = set; then | |
21567 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21568 else | |
21569 cat >conftest.$ac_ext <<_ACEOF | |
21570 /* confdefs.h. */ | |
21571 _ACEOF | |
21572 cat confdefs.h >>conftest.$ac_ext | |
21573 cat >>conftest.$ac_ext <<_ACEOF | |
21574 /* end confdefs.h. */ | |
21575 $ac_includes_default | |
21576 typedef short ac__type_new_; | |
21577 int | |
21578 main () | |
21579 { | |
21580 if ((ac__type_new_ *) 0) | |
21581 return 0; | |
21582 if (sizeof (ac__type_new_)) | |
21583 return 0; | |
21584 ; | |
21585 return 0; | |
21586 } | |
21587 _ACEOF | |
21588 rm -f conftest.$ac_objext | |
21589 if { (ac_try="$ac_compile" | |
21590 case "(($ac_try" in | |
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21592 *) ac_try_echo=$ac_try;; | |
21593 esac | |
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21595 (eval "$ac_compile") 2>conftest.er1 | |
21596 ac_status=$? | |
21597 grep -v '^ *+' conftest.er1 >conftest.err | |
21598 rm -f conftest.er1 | |
21599 cat conftest.err >&5 | |
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21601 (exit $ac_status); } && { | |
21602 test -z "$ac_c_werror_flag" || | |
21603 test ! -s conftest.err | |
21604 } && test -s conftest.$ac_objext; then | |
21605 ac_cv_type_short=yes | |
21606 else | |
21607 echo "$as_me: failed program was:" >&5 | |
21608 sed 's/^/| /' conftest.$ac_ext >&5 | |
21609 | |
21610 ac_cv_type_short=no | |
21611 fi | |
21612 | |
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21614 fi | |
21615 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
21616 echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
21617 | |
21618 # The cast to long int works around a bug in the HP C Compiler | |
21619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21621 # This bug is HP SR number 8606223364. | |
21622 { echo "$as_me:$LINENO: checking size of short" >&5 | |
21623 echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
21624 if test "${ac_cv_sizeof_short+set}" = set; then | |
21625 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21626 else | |
21627 if test "$cross_compiling" = yes; then | |
21628 # Depending upon the size, compute the lo and hi bounds. | |
21629 cat >conftest.$ac_ext <<_ACEOF | |
21630 /* confdefs.h. */ | |
21631 _ACEOF | |
21632 cat confdefs.h >>conftest.$ac_ext | |
21633 cat >>conftest.$ac_ext <<_ACEOF | |
21634 /* end confdefs.h. */ | |
21635 $ac_includes_default | |
21636 typedef short ac__type_sizeof_; | |
21637 int | |
21638 main () | |
21639 { | |
21640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
21641 test_array [0] = 0 | |
21642 | |
21643 ; | |
21644 return 0; | |
21645 } | |
21646 _ACEOF | |
21647 rm -f conftest.$ac_objext | |
21648 if { (ac_try="$ac_compile" | |
21649 case "(($ac_try" in | |
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21651 *) ac_try_echo=$ac_try;; | |
21652 esac | |
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21654 (eval "$ac_compile") 2>conftest.er1 | |
21655 ac_status=$? | |
21656 grep -v '^ *+' conftest.er1 >conftest.err | |
21657 rm -f conftest.er1 | |
21658 cat conftest.err >&5 | |
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21660 (exit $ac_status); } && { | |
21661 test -z "$ac_c_werror_flag" || | |
21662 test ! -s conftest.err | |
21663 } && test -s conftest.$ac_objext; then | |
21664 ac_lo=0 ac_mid=0 | |
21665 while :; do | |
21666 cat >conftest.$ac_ext <<_ACEOF | |
21667 /* confdefs.h. */ | |
21668 _ACEOF | |
21669 cat confdefs.h >>conftest.$ac_ext | |
21670 cat >>conftest.$ac_ext <<_ACEOF | |
21671 /* end confdefs.h. */ | |
21672 $ac_includes_default | |
21673 typedef short ac__type_sizeof_; | |
21674 int | |
21675 main () | |
21676 { | |
21677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
21678 test_array [0] = 0 | |
21679 | |
21680 ; | |
21681 return 0; | |
21682 } | |
21683 _ACEOF | |
21684 rm -f conftest.$ac_objext | |
21685 if { (ac_try="$ac_compile" | |
21686 case "(($ac_try" in | |
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21688 *) ac_try_echo=$ac_try;; | |
21689 esac | |
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21691 (eval "$ac_compile") 2>conftest.er1 | |
21692 ac_status=$? | |
21693 grep -v '^ *+' conftest.er1 >conftest.err | |
21694 rm -f conftest.er1 | |
21695 cat conftest.err >&5 | |
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21697 (exit $ac_status); } && { | |
21698 test -z "$ac_c_werror_flag" || | |
21699 test ! -s conftest.err | |
21700 } && test -s conftest.$ac_objext; then | |
21701 ac_hi=$ac_mid; break | |
21702 else | |
21703 echo "$as_me: failed program was:" >&5 | |
21704 sed 's/^/| /' conftest.$ac_ext >&5 | |
21705 | |
21706 ac_lo=`expr $ac_mid + 1` | |
21707 if test $ac_lo -le $ac_mid; then | |
21708 ac_lo= ac_hi= | |
21709 break | |
21710 fi | |
21711 ac_mid=`expr 2 '*' $ac_mid + 1` | |
21712 fi | |
21713 | |
21714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21715 done | |
21716 else | |
21717 echo "$as_me: failed program was:" >&5 | |
21718 sed 's/^/| /' conftest.$ac_ext >&5 | |
21719 | |
21720 cat >conftest.$ac_ext <<_ACEOF | |
21721 /* confdefs.h. */ | |
21722 _ACEOF | |
21723 cat confdefs.h >>conftest.$ac_ext | |
21724 cat >>conftest.$ac_ext <<_ACEOF | |
21725 /* end confdefs.h. */ | |
21726 $ac_includes_default | |
21727 typedef short ac__type_sizeof_; | |
21728 int | |
21729 main () | |
21730 { | |
21731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
21732 test_array [0] = 0 | |
21733 | |
21734 ; | |
21735 return 0; | |
21736 } | |
21737 _ACEOF | |
21738 rm -f conftest.$ac_objext | |
21739 if { (ac_try="$ac_compile" | |
21740 case "(($ac_try" in | |
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21742 *) ac_try_echo=$ac_try;; | |
21743 esac | |
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21745 (eval "$ac_compile") 2>conftest.er1 | |
21746 ac_status=$? | |
21747 grep -v '^ *+' conftest.er1 >conftest.err | |
21748 rm -f conftest.er1 | |
21749 cat conftest.err >&5 | |
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21751 (exit $ac_status); } && { | |
21752 test -z "$ac_c_werror_flag" || | |
21753 test ! -s conftest.err | |
21754 } && test -s conftest.$ac_objext; then | |
21755 ac_hi=-1 ac_mid=-1 | |
21756 while :; do | |
21757 cat >conftest.$ac_ext <<_ACEOF | |
21758 /* confdefs.h. */ | |
21759 _ACEOF | |
21760 cat confdefs.h >>conftest.$ac_ext | |
21761 cat >>conftest.$ac_ext <<_ACEOF | |
21762 /* end confdefs.h. */ | |
21763 $ac_includes_default | |
21764 typedef short ac__type_sizeof_; | |
21765 int | |
21766 main () | |
21767 { | |
21768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
21769 test_array [0] = 0 | |
21770 | |
21771 ; | |
21772 return 0; | |
21773 } | |
21774 _ACEOF | |
21775 rm -f conftest.$ac_objext | |
21776 if { (ac_try="$ac_compile" | |
21777 case "(($ac_try" in | |
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21779 *) ac_try_echo=$ac_try;; | |
21780 esac | |
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21782 (eval "$ac_compile") 2>conftest.er1 | |
21783 ac_status=$? | |
21784 grep -v '^ *+' conftest.er1 >conftest.err | |
21785 rm -f conftest.er1 | |
21786 cat conftest.err >&5 | |
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21788 (exit $ac_status); } && { | |
21789 test -z "$ac_c_werror_flag" || | |
21790 test ! -s conftest.err | |
21791 } && test -s conftest.$ac_objext; then | |
21792 ac_lo=$ac_mid; break | |
21793 else | |
21794 echo "$as_me: failed program was:" >&5 | |
21795 sed 's/^/| /' conftest.$ac_ext >&5 | |
21796 | |
21797 ac_hi=`expr '(' $ac_mid ')' - 1` | |
21798 if test $ac_mid -le $ac_hi; then | |
21799 ac_lo= ac_hi= | |
21800 break | |
21801 fi | |
21802 ac_mid=`expr 2 '*' $ac_mid` | |
21803 fi | |
21804 | |
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21806 done | |
21807 else | |
21808 echo "$as_me: failed program was:" >&5 | |
21809 sed 's/^/| /' conftest.$ac_ext >&5 | |
21810 | |
21811 ac_lo= ac_hi= | |
21812 fi | |
21813 | |
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21815 fi | |
21816 | |
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21818 # Binary search between lo and hi bounds. | |
21819 while test "x$ac_lo" != "x$ac_hi"; do | |
21820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21821 cat >conftest.$ac_ext <<_ACEOF | |
21822 /* confdefs.h. */ | |
21823 _ACEOF | |
21824 cat confdefs.h >>conftest.$ac_ext | |
21825 cat >>conftest.$ac_ext <<_ACEOF | |
21826 /* end confdefs.h. */ | |
21827 $ac_includes_default | |
21828 typedef short ac__type_sizeof_; | |
21829 int | |
21830 main () | |
21831 { | |
21832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
21833 test_array [0] = 0 | |
21834 | |
21835 ; | |
21836 return 0; | |
21837 } | |
21838 _ACEOF | |
21839 rm -f conftest.$ac_objext | |
21840 if { (ac_try="$ac_compile" | |
21841 case "(($ac_try" in | |
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21843 *) ac_try_echo=$ac_try;; | |
21844 esac | |
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21846 (eval "$ac_compile") 2>conftest.er1 | |
21847 ac_status=$? | |
21848 grep -v '^ *+' conftest.er1 >conftest.err | |
21849 rm -f conftest.er1 | |
21850 cat conftest.err >&5 | |
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21852 (exit $ac_status); } && { | |
21853 test -z "$ac_c_werror_flag" || | |
21854 test ! -s conftest.err | |
21855 } && test -s conftest.$ac_objext; then | |
21856 ac_hi=$ac_mid | |
21857 else | |
21858 echo "$as_me: failed program was:" >&5 | |
21859 sed 's/^/| /' conftest.$ac_ext >&5 | |
21860 | |
21861 ac_lo=`expr '(' $ac_mid ')' + 1` | |
21862 fi | |
21863 | |
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21865 done | |
21866 case $ac_lo in | |
21867 ?*) ac_cv_sizeof_short=$ac_lo;; | |
21868 '') if test "$ac_cv_type_short" = yes; then | |
21869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
21870 See \`config.log' for more details." >&5 | |
21871 echo "$as_me: error: cannot compute sizeof (short) | |
21872 See \`config.log' for more details." >&2;} | |
21873 { (exit 77); exit 77; }; } | |
21874 else | |
21875 ac_cv_sizeof_short=0 | |
21876 fi ;; | |
21877 esac | |
21878 else | |
21879 cat >conftest.$ac_ext <<_ACEOF | |
21880 /* confdefs.h. */ | |
21881 _ACEOF | |
21882 cat confdefs.h >>conftest.$ac_ext | |
21883 cat >>conftest.$ac_ext <<_ACEOF | |
21884 /* end confdefs.h. */ | |
21885 $ac_includes_default | |
21886 typedef short ac__type_sizeof_; | |
21887 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
21888 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
21889 #include <stdio.h> | |
21890 #include <stdlib.h> | |
21891 int | |
21892 main () | |
21893 { | |
21894 | |
21895 FILE *f = fopen ("conftest.val", "w"); | |
21896 if (! f) | |
21897 return 1; | |
21898 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
21899 { | |
21900 long int i = longval (); | |
21901 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
21902 return 1; | |
21903 fprintf (f, "%ld\n", i); | |
21904 } | |
21905 else | |
21906 { | |
21907 unsigned long int i = ulongval (); | |
21908 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
21909 return 1; | |
21910 fprintf (f, "%lu\n", i); | |
21911 } | |
21912 return ferror (f) || fclose (f) != 0; | |
21913 | |
21914 ; | |
21915 return 0; | |
21916 } | |
21917 _ACEOF | |
21918 rm -f conftest$ac_exeext | |
21919 if { (ac_try="$ac_link" | |
21920 case "(($ac_try" in | |
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21922 *) ac_try_echo=$ac_try;; | |
21923 esac | |
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21925 (eval "$ac_link") 2>&5 | |
21926 ac_status=$? | |
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21929 { (case "(($ac_try" in | |
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21931 *) ac_try_echo=$ac_try;; | |
21932 esac | |
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21934 (eval "$ac_try") 2>&5 | |
21935 ac_status=$? | |
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21937 (exit $ac_status); }; }; then | |
21938 ac_cv_sizeof_short=`cat conftest.val` | |
21939 else | |
21940 echo "$as_me: program exited with status $ac_status" >&5 | |
21941 echo "$as_me: failed program was:" >&5 | |
21942 sed 's/^/| /' conftest.$ac_ext >&5 | |
21943 | |
21944 ( exit $ac_status ) | |
21945 if test "$ac_cv_type_short" = yes; then | |
21946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
21947 See \`config.log' for more details." >&5 | |
21948 echo "$as_me: error: cannot compute sizeof (short) | |
21949 See \`config.log' for more details." >&2;} | |
21950 { (exit 77); exit 77; }; } | |
21951 else | |
21952 ac_cv_sizeof_short=0 | |
21953 fi | |
21954 fi | |
21955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21956 fi | |
21957 rm -f conftest.val | |
21958 fi | |
21959 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
21960 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
21961 | |
21962 | |
21963 | |
21964 cat >>confdefs.h <<_ACEOF | |
21965 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
21966 _ACEOF | |
21967 | |
21968 | |
21969 { echo "$as_me:$LINENO: checking for int" >&5 | |
21970 echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
21971 if test "${ac_cv_type_int+set}" = set; then | |
21972 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21973 else | |
21974 cat >conftest.$ac_ext <<_ACEOF | |
21975 /* confdefs.h. */ | |
21976 _ACEOF | |
21977 cat confdefs.h >>conftest.$ac_ext | |
21978 cat >>conftest.$ac_ext <<_ACEOF | |
21979 /* end confdefs.h. */ | |
21980 $ac_includes_default | |
21981 typedef int ac__type_new_; | |
21982 int | |
21983 main () | |
21984 { | |
21985 if ((ac__type_new_ *) 0) | |
21986 return 0; | |
21987 if (sizeof (ac__type_new_)) | |
21988 return 0; | |
21989 ; | |
21990 return 0; | |
21991 } | |
21992 _ACEOF | |
21993 rm -f conftest.$ac_objext | |
21994 if { (ac_try="$ac_compile" | |
21995 case "(($ac_try" in | |
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21997 *) ac_try_echo=$ac_try;; | |
21998 esac | |
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22000 (eval "$ac_compile") 2>conftest.er1 | |
22001 ac_status=$? | |
22002 grep -v '^ *+' conftest.er1 >conftest.err | |
22003 rm -f conftest.er1 | |
22004 cat conftest.err >&5 | |
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22006 (exit $ac_status); } && { | |
22007 test -z "$ac_c_werror_flag" || | |
22008 test ! -s conftest.err | |
22009 } && test -s conftest.$ac_objext; then | |
22010 ac_cv_type_int=yes | |
22011 else | |
22012 echo "$as_me: failed program was:" >&5 | |
22013 sed 's/^/| /' conftest.$ac_ext >&5 | |
22014 | |
22015 ac_cv_type_int=no | |
22016 fi | |
22017 | |
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22019 fi | |
22020 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
22021 echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
22022 | |
22023 # The cast to long int works around a bug in the HP C Compiler | |
22024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22026 # This bug is HP SR number 8606223364. | |
22027 { echo "$as_me:$LINENO: checking size of int" >&5 | |
22028 echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
22029 if test "${ac_cv_sizeof_int+set}" = set; then | |
22030 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22031 else | |
22032 if test "$cross_compiling" = yes; then | |
22033 # Depending upon the size, compute the lo and hi bounds. | |
22034 cat >conftest.$ac_ext <<_ACEOF | |
22035 /* confdefs.h. */ | |
22036 _ACEOF | |
22037 cat confdefs.h >>conftest.$ac_ext | |
22038 cat >>conftest.$ac_ext <<_ACEOF | |
22039 /* end confdefs.h. */ | |
22040 $ac_includes_default | |
22041 typedef int ac__type_sizeof_; | |
22042 int | |
22043 main () | |
22044 { | |
22045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
22046 test_array [0] = 0 | |
22047 | |
22048 ; | |
22049 return 0; | |
22050 } | |
22051 _ACEOF | |
22052 rm -f conftest.$ac_objext | |
22053 if { (ac_try="$ac_compile" | |
22054 case "(($ac_try" in | |
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22056 *) ac_try_echo=$ac_try;; | |
22057 esac | |
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22059 (eval "$ac_compile") 2>conftest.er1 | |
22060 ac_status=$? | |
22061 grep -v '^ *+' conftest.er1 >conftest.err | |
22062 rm -f conftest.er1 | |
22063 cat conftest.err >&5 | |
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22065 (exit $ac_status); } && { | |
22066 test -z "$ac_c_werror_flag" || | |
22067 test ! -s conftest.err | |
22068 } && test -s conftest.$ac_objext; then | |
22069 ac_lo=0 ac_mid=0 | |
22070 while :; do | |
22071 cat >conftest.$ac_ext <<_ACEOF | |
22072 /* confdefs.h. */ | |
22073 _ACEOF | |
22074 cat confdefs.h >>conftest.$ac_ext | |
22075 cat >>conftest.$ac_ext <<_ACEOF | |
22076 /* end confdefs.h. */ | |
22077 $ac_includes_default | |
22078 typedef int ac__type_sizeof_; | |
22079 int | |
22080 main () | |
22081 { | |
22082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
22083 test_array [0] = 0 | |
22084 | |
22085 ; | |
22086 return 0; | |
22087 } | |
22088 _ACEOF | |
22089 rm -f conftest.$ac_objext | |
22090 if { (ac_try="$ac_compile" | |
22091 case "(($ac_try" in | |
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22093 *) ac_try_echo=$ac_try;; | |
22094 esac | |
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22096 (eval "$ac_compile") 2>conftest.er1 | |
22097 ac_status=$? | |
22098 grep -v '^ *+' conftest.er1 >conftest.err | |
22099 rm -f conftest.er1 | |
22100 cat conftest.err >&5 | |
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22102 (exit $ac_status); } && { | |
22103 test -z "$ac_c_werror_flag" || | |
22104 test ! -s conftest.err | |
22105 } && test -s conftest.$ac_objext; then | |
22106 ac_hi=$ac_mid; break | |
22107 else | |
22108 echo "$as_me: failed program was:" >&5 | |
22109 sed 's/^/| /' conftest.$ac_ext >&5 | |
22110 | |
22111 ac_lo=`expr $ac_mid + 1` | |
22112 if test $ac_lo -le $ac_mid; then | |
22113 ac_lo= ac_hi= | |
22114 break | |
22115 fi | |
22116 ac_mid=`expr 2 '*' $ac_mid + 1` | |
22117 fi | |
22118 | |
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22120 done | |
22121 else | |
22122 echo "$as_me: failed program was:" >&5 | |
22123 sed 's/^/| /' conftest.$ac_ext >&5 | |
22124 | |
22125 cat >conftest.$ac_ext <<_ACEOF | |
22126 /* confdefs.h. */ | |
22127 _ACEOF | |
22128 cat confdefs.h >>conftest.$ac_ext | |
22129 cat >>conftest.$ac_ext <<_ACEOF | |
22130 /* end confdefs.h. */ | |
22131 $ac_includes_default | |
22132 typedef int ac__type_sizeof_; | |
22133 int | |
22134 main () | |
22135 { | |
22136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
22137 test_array [0] = 0 | |
22138 | |
22139 ; | |
22140 return 0; | |
22141 } | |
22142 _ACEOF | |
22143 rm -f conftest.$ac_objext | |
22144 if { (ac_try="$ac_compile" | |
22145 case "(($ac_try" in | |
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22147 *) ac_try_echo=$ac_try;; | |
22148 esac | |
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22150 (eval "$ac_compile") 2>conftest.er1 | |
22151 ac_status=$? | |
22152 grep -v '^ *+' conftest.er1 >conftest.err | |
22153 rm -f conftest.er1 | |
22154 cat conftest.err >&5 | |
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22156 (exit $ac_status); } && { | |
22157 test -z "$ac_c_werror_flag" || | |
22158 test ! -s conftest.err | |
22159 } && test -s conftest.$ac_objext; then | |
22160 ac_hi=-1 ac_mid=-1 | |
22161 while :; do | |
22162 cat >conftest.$ac_ext <<_ACEOF | |
22163 /* confdefs.h. */ | |
22164 _ACEOF | |
22165 cat confdefs.h >>conftest.$ac_ext | |
22166 cat >>conftest.$ac_ext <<_ACEOF | |
22167 /* end confdefs.h. */ | |
22168 $ac_includes_default | |
22169 typedef int ac__type_sizeof_; | |
22170 int | |
22171 main () | |
22172 { | |
22173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
22174 test_array [0] = 0 | |
22175 | |
22176 ; | |
22177 return 0; | |
22178 } | |
22179 _ACEOF | |
22180 rm -f conftest.$ac_objext | |
22181 if { (ac_try="$ac_compile" | |
22182 case "(($ac_try" in | |
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22184 *) ac_try_echo=$ac_try;; | |
22185 esac | |
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22187 (eval "$ac_compile") 2>conftest.er1 | |
22188 ac_status=$? | |
22189 grep -v '^ *+' conftest.er1 >conftest.err | |
22190 rm -f conftest.er1 | |
22191 cat conftest.err >&5 | |
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22193 (exit $ac_status); } && { | |
22194 test -z "$ac_c_werror_flag" || | |
22195 test ! -s conftest.err | |
22196 } && test -s conftest.$ac_objext; then | |
22197 ac_lo=$ac_mid; break | |
22198 else | |
22199 echo "$as_me: failed program was:" >&5 | |
22200 sed 's/^/| /' conftest.$ac_ext >&5 | |
22201 | |
22202 ac_hi=`expr '(' $ac_mid ')' - 1` | |
22203 if test $ac_mid -le $ac_hi; then | |
22204 ac_lo= ac_hi= | |
22205 break | |
22206 fi | |
22207 ac_mid=`expr 2 '*' $ac_mid` | |
22208 fi | |
22209 | |
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22211 done | |
22212 else | |
22213 echo "$as_me: failed program was:" >&5 | |
22214 sed 's/^/| /' conftest.$ac_ext >&5 | |
22215 | |
22216 ac_lo= ac_hi= | |
22217 fi | |
22218 | |
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22220 fi | |
22221 | |
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22223 # Binary search between lo and hi bounds. | |
22224 while test "x$ac_lo" != "x$ac_hi"; do | |
22225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22226 cat >conftest.$ac_ext <<_ACEOF | |
22227 /* confdefs.h. */ | |
22228 _ACEOF | |
22229 cat confdefs.h >>conftest.$ac_ext | |
22230 cat >>conftest.$ac_ext <<_ACEOF | |
22231 /* end confdefs.h. */ | |
22232 $ac_includes_default | |
22233 typedef int ac__type_sizeof_; | |
22234 int | |
22235 main () | |
22236 { | |
22237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
22238 test_array [0] = 0 | |
22239 | |
22240 ; | |
22241 return 0; | |
22242 } | |
22243 _ACEOF | |
22244 rm -f conftest.$ac_objext | |
22245 if { (ac_try="$ac_compile" | |
22246 case "(($ac_try" in | |
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22248 *) ac_try_echo=$ac_try;; | |
22249 esac | |
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22251 (eval "$ac_compile") 2>conftest.er1 | |
22252 ac_status=$? | |
22253 grep -v '^ *+' conftest.er1 >conftest.err | |
22254 rm -f conftest.er1 | |
22255 cat conftest.err >&5 | |
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22257 (exit $ac_status); } && { | |
22258 test -z "$ac_c_werror_flag" || | |
22259 test ! -s conftest.err | |
22260 } && test -s conftest.$ac_objext; then | |
22261 ac_hi=$ac_mid | |
22262 else | |
22263 echo "$as_me: failed program was:" >&5 | |
22264 sed 's/^/| /' conftest.$ac_ext >&5 | |
22265 | |
22266 ac_lo=`expr '(' $ac_mid ')' + 1` | |
22267 fi | |
22268 | |
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22270 done | |
22271 case $ac_lo in | |
22272 ?*) ac_cv_sizeof_int=$ac_lo;; | |
22273 '') if test "$ac_cv_type_int" = yes; then | |
22274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
22275 See \`config.log' for more details." >&5 | |
22276 echo "$as_me: error: cannot compute sizeof (int) | |
22277 See \`config.log' for more details." >&2;} | |
22278 { (exit 77); exit 77; }; } | |
22279 else | |
22280 ac_cv_sizeof_int=0 | |
22281 fi ;; | |
22282 esac | |
22283 else | |
22284 cat >conftest.$ac_ext <<_ACEOF | |
22285 /* confdefs.h. */ | |
22286 _ACEOF | |
22287 cat confdefs.h >>conftest.$ac_ext | |
22288 cat >>conftest.$ac_ext <<_ACEOF | |
22289 /* end confdefs.h. */ | |
22290 $ac_includes_default | |
22291 typedef int ac__type_sizeof_; | |
22292 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22293 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22294 #include <stdio.h> | |
22295 #include <stdlib.h> | |
22296 int | |
22297 main () | |
22298 { | |
22299 | |
22300 FILE *f = fopen ("conftest.val", "w"); | |
22301 if (! f) | |
22302 return 1; | |
22303 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
22304 { | |
22305 long int i = longval (); | |
22306 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
22307 return 1; | |
22308 fprintf (f, "%ld\n", i); | |
22309 } | |
22310 else | |
22311 { | |
22312 unsigned long int i = ulongval (); | |
22313 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
22314 return 1; | |
22315 fprintf (f, "%lu\n", i); | |
22316 } | |
22317 return ferror (f) || fclose (f) != 0; | |
22318 | |
22319 ; | |
22320 return 0; | |
22321 } | |
22322 _ACEOF | |
22323 rm -f conftest$ac_exeext | |
22324 if { (ac_try="$ac_link" | |
22325 case "(($ac_try" in | |
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22327 *) ac_try_echo=$ac_try;; | |
22328 esac | |
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22330 (eval "$ac_link") 2>&5 | |
22331 ac_status=$? | |
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22334 { (case "(($ac_try" in | |
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22336 *) ac_try_echo=$ac_try;; | |
22337 esac | |
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22339 (eval "$ac_try") 2>&5 | |
22340 ac_status=$? | |
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22342 (exit $ac_status); }; }; then | |
22343 ac_cv_sizeof_int=`cat conftest.val` | |
22344 else | |
22345 echo "$as_me: program exited with status $ac_status" >&5 | |
22346 echo "$as_me: failed program was:" >&5 | |
22347 sed 's/^/| /' conftest.$ac_ext >&5 | |
22348 | |
22349 ( exit $ac_status ) | |
22350 if test "$ac_cv_type_int" = yes; then | |
22351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
22352 See \`config.log' for more details." >&5 | |
22353 echo "$as_me: error: cannot compute sizeof (int) | |
22354 See \`config.log' for more details." >&2;} | |
22355 { (exit 77); exit 77; }; } | |
22356 else | |
22357 ac_cv_sizeof_int=0 | |
22358 fi | |
22359 fi | |
22360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22361 fi | |
22362 rm -f conftest.val | |
22363 fi | |
22364 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
22365 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
22366 | |
22367 | |
22368 | |
22369 cat >>confdefs.h <<_ACEOF | |
22370 #define SIZEOF_INT $ac_cv_sizeof_int | |
22371 _ACEOF | |
22372 | |
22373 | |
22374 { echo "$as_me:$LINENO: checking for long" >&5 | |
22375 echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
22376 if test "${ac_cv_type_long+set}" = set; then | |
22377 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22378 else | |
22379 cat >conftest.$ac_ext <<_ACEOF | |
22380 /* confdefs.h. */ | |
22381 _ACEOF | |
22382 cat confdefs.h >>conftest.$ac_ext | |
22383 cat >>conftest.$ac_ext <<_ACEOF | |
22384 /* end confdefs.h. */ | |
22385 $ac_includes_default | |
22386 typedef long ac__type_new_; | |
22387 int | |
22388 main () | |
22389 { | |
22390 if ((ac__type_new_ *) 0) | |
22391 return 0; | |
22392 if (sizeof (ac__type_new_)) | |
22393 return 0; | |
22394 ; | |
22395 return 0; | |
22396 } | |
22397 _ACEOF | |
22398 rm -f conftest.$ac_objext | |
22399 if { (ac_try="$ac_compile" | |
22400 case "(($ac_try" in | |
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22402 *) ac_try_echo=$ac_try;; | |
22403 esac | |
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22405 (eval "$ac_compile") 2>conftest.er1 | |
22406 ac_status=$? | |
22407 grep -v '^ *+' conftest.er1 >conftest.err | |
22408 rm -f conftest.er1 | |
22409 cat conftest.err >&5 | |
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22411 (exit $ac_status); } && { | |
22412 test -z "$ac_c_werror_flag" || | |
22413 test ! -s conftest.err | |
22414 } && test -s conftest.$ac_objext; then | |
22415 ac_cv_type_long=yes | |
22416 else | |
22417 echo "$as_me: failed program was:" >&5 | |
22418 sed 's/^/| /' conftest.$ac_ext >&5 | |
22419 | |
22420 ac_cv_type_long=no | |
22421 fi | |
22422 | |
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22424 fi | |
22425 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
22426 echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
22427 | |
22428 # The cast to long int works around a bug in the HP C Compiler | |
22429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22431 # This bug is HP SR number 8606223364. | |
22432 { echo "$as_me:$LINENO: checking size of long" >&5 | |
22433 echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
22434 if test "${ac_cv_sizeof_long+set}" = set; then | |
22435 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22436 else | |
22437 if test "$cross_compiling" = yes; then | |
22438 # Depending upon the size, compute the lo and hi bounds. | |
22439 cat >conftest.$ac_ext <<_ACEOF | |
22440 /* confdefs.h. */ | |
22441 _ACEOF | |
22442 cat confdefs.h >>conftest.$ac_ext | |
22443 cat >>conftest.$ac_ext <<_ACEOF | |
22444 /* end confdefs.h. */ | |
22445 $ac_includes_default | |
22446 typedef long ac__type_sizeof_; | |
22447 int | |
22448 main () | |
22449 { | |
22450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
22451 test_array [0] = 0 | |
22452 | |
22453 ; | |
22454 return 0; | |
22455 } | |
22456 _ACEOF | |
22457 rm -f conftest.$ac_objext | |
22458 if { (ac_try="$ac_compile" | |
22459 case "(($ac_try" in | |
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22461 *) ac_try_echo=$ac_try;; | |
22462 esac | |
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22464 (eval "$ac_compile") 2>conftest.er1 | |
22465 ac_status=$? | |
22466 grep -v '^ *+' conftest.er1 >conftest.err | |
22467 rm -f conftest.er1 | |
22468 cat conftest.err >&5 | |
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22470 (exit $ac_status); } && { | |
22471 test -z "$ac_c_werror_flag" || | |
22472 test ! -s conftest.err | |
22473 } && test -s conftest.$ac_objext; then | |
22474 ac_lo=0 ac_mid=0 | |
22475 while :; do | |
22476 cat >conftest.$ac_ext <<_ACEOF | |
22477 /* confdefs.h. */ | |
22478 _ACEOF | |
22479 cat confdefs.h >>conftest.$ac_ext | |
22480 cat >>conftest.$ac_ext <<_ACEOF | |
22481 /* end confdefs.h. */ | |
22482 $ac_includes_default | |
22483 typedef long ac__type_sizeof_; | |
22484 int | |
22485 main () | |
22486 { | |
22487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
22488 test_array [0] = 0 | |
22489 | |
22490 ; | |
22491 return 0; | |
22492 } | |
22493 _ACEOF | |
22494 rm -f conftest.$ac_objext | |
22495 if { (ac_try="$ac_compile" | |
22496 case "(($ac_try" in | |
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22498 *) ac_try_echo=$ac_try;; | |
22499 esac | |
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22501 (eval "$ac_compile") 2>conftest.er1 | |
22502 ac_status=$? | |
22503 grep -v '^ *+' conftest.er1 >conftest.err | |
22504 rm -f conftest.er1 | |
22505 cat conftest.err >&5 | |
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22507 (exit $ac_status); } && { | |
22508 test -z "$ac_c_werror_flag" || | |
22509 test ! -s conftest.err | |
22510 } && test -s conftest.$ac_objext; then | |
22511 ac_hi=$ac_mid; break | |
22512 else | |
22513 echo "$as_me: failed program was:" >&5 | |
22514 sed 's/^/| /' conftest.$ac_ext >&5 | |
22515 | |
22516 ac_lo=`expr $ac_mid + 1` | |
22517 if test $ac_lo -le $ac_mid; then | |
22518 ac_lo= ac_hi= | |
22519 break | |
22520 fi | |
22521 ac_mid=`expr 2 '*' $ac_mid + 1` | |
22522 fi | |
22523 | |
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22525 done | |
22526 else | |
22527 echo "$as_me: failed program was:" >&5 | |
22528 sed 's/^/| /' conftest.$ac_ext >&5 | |
22529 | |
22530 cat >conftest.$ac_ext <<_ACEOF | |
22531 /* confdefs.h. */ | |
22532 _ACEOF | |
22533 cat confdefs.h >>conftest.$ac_ext | |
22534 cat >>conftest.$ac_ext <<_ACEOF | |
22535 /* end confdefs.h. */ | |
22536 $ac_includes_default | |
22537 typedef long ac__type_sizeof_; | |
22538 int | |
22539 main () | |
22540 { | |
22541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
22542 test_array [0] = 0 | |
22543 | |
22544 ; | |
22545 return 0; | |
22546 } | |
22547 _ACEOF | |
22548 rm -f conftest.$ac_objext | |
22549 if { (ac_try="$ac_compile" | |
22550 case "(($ac_try" in | |
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22552 *) ac_try_echo=$ac_try;; | |
22553 esac | |
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22555 (eval "$ac_compile") 2>conftest.er1 | |
22556 ac_status=$? | |
22557 grep -v '^ *+' conftest.er1 >conftest.err | |
22558 rm -f conftest.er1 | |
22559 cat conftest.err >&5 | |
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22561 (exit $ac_status); } && { | |
22562 test -z "$ac_c_werror_flag" || | |
22563 test ! -s conftest.err | |
22564 } && test -s conftest.$ac_objext; then | |
22565 ac_hi=-1 ac_mid=-1 | |
22566 while :; do | |
22567 cat >conftest.$ac_ext <<_ACEOF | |
22568 /* confdefs.h. */ | |
22569 _ACEOF | |
22570 cat confdefs.h >>conftest.$ac_ext | |
22571 cat >>conftest.$ac_ext <<_ACEOF | |
22572 /* end confdefs.h. */ | |
22573 $ac_includes_default | |
22574 typedef long ac__type_sizeof_; | |
22575 int | |
22576 main () | |
22577 { | |
22578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
22579 test_array [0] = 0 | |
22580 | |
22581 ; | |
22582 return 0; | |
22583 } | |
22584 _ACEOF | |
22585 rm -f conftest.$ac_objext | |
22586 if { (ac_try="$ac_compile" | |
22587 case "(($ac_try" in | |
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22589 *) ac_try_echo=$ac_try;; | |
22590 esac | |
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22592 (eval "$ac_compile") 2>conftest.er1 | |
22593 ac_status=$? | |
22594 grep -v '^ *+' conftest.er1 >conftest.err | |
22595 rm -f conftest.er1 | |
22596 cat conftest.err >&5 | |
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22598 (exit $ac_status); } && { | |
22599 test -z "$ac_c_werror_flag" || | |
22600 test ! -s conftest.err | |
22601 } && test -s conftest.$ac_objext; then | |
22602 ac_lo=$ac_mid; break | |
22603 else | |
22604 echo "$as_me: failed program was:" >&5 | |
22605 sed 's/^/| /' conftest.$ac_ext >&5 | |
22606 | |
22607 ac_hi=`expr '(' $ac_mid ')' - 1` | |
22608 if test $ac_mid -le $ac_hi; then | |
22609 ac_lo= ac_hi= | |
22610 break | |
22611 fi | |
22612 ac_mid=`expr 2 '*' $ac_mid` | |
22613 fi | |
22614 | |
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22616 done | |
22617 else | |
22618 echo "$as_me: failed program was:" >&5 | |
22619 sed 's/^/| /' conftest.$ac_ext >&5 | |
22620 | |
22621 ac_lo= ac_hi= | |
22622 fi | |
22623 | |
22624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22625 fi | |
22626 | |
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22628 # Binary search between lo and hi bounds. | |
22629 while test "x$ac_lo" != "x$ac_hi"; do | |
22630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22631 cat >conftest.$ac_ext <<_ACEOF | |
22632 /* confdefs.h. */ | |
22633 _ACEOF | |
22634 cat confdefs.h >>conftest.$ac_ext | |
22635 cat >>conftest.$ac_ext <<_ACEOF | |
22636 /* end confdefs.h. */ | |
22637 $ac_includes_default | |
22638 typedef long ac__type_sizeof_; | |
22639 int | |
22640 main () | |
22641 { | |
22642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
22643 test_array [0] = 0 | |
22644 | |
22645 ; | |
22646 return 0; | |
22647 } | |
22648 _ACEOF | |
22649 rm -f conftest.$ac_objext | |
22650 if { (ac_try="$ac_compile" | |
22651 case "(($ac_try" in | |
22652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22653 *) ac_try_echo=$ac_try;; | |
22654 esac | |
22655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22656 (eval "$ac_compile") 2>conftest.er1 | |
22657 ac_status=$? | |
22658 grep -v '^ *+' conftest.er1 >conftest.err | |
22659 rm -f conftest.er1 | |
22660 cat conftest.err >&5 | |
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22662 (exit $ac_status); } && { | |
22663 test -z "$ac_c_werror_flag" || | |
22664 test ! -s conftest.err | |
22665 } && test -s conftest.$ac_objext; then | |
22666 ac_hi=$ac_mid | |
22667 else | |
22668 echo "$as_me: failed program was:" >&5 | |
22669 sed 's/^/| /' conftest.$ac_ext >&5 | |
22670 | |
22671 ac_lo=`expr '(' $ac_mid ')' + 1` | |
22672 fi | |
22673 | |
22674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22675 done | |
22676 case $ac_lo in | |
22677 ?*) ac_cv_sizeof_long=$ac_lo;; | |
22678 '') if test "$ac_cv_type_long" = yes; then | |
22679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
22680 See \`config.log' for more details." >&5 | |
22681 echo "$as_me: error: cannot compute sizeof (long) | |
22682 See \`config.log' for more details." >&2;} | |
22683 { (exit 77); exit 77; }; } | |
22684 else | |
22685 ac_cv_sizeof_long=0 | |
22686 fi ;; | |
22687 esac | |
22688 else | |
22689 cat >conftest.$ac_ext <<_ACEOF | |
22690 /* confdefs.h. */ | |
22691 _ACEOF | |
22692 cat confdefs.h >>conftest.$ac_ext | |
22693 cat >>conftest.$ac_ext <<_ACEOF | |
22694 /* end confdefs.h. */ | |
22695 $ac_includes_default | |
22696 typedef long ac__type_sizeof_; | |
22697 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22698 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22699 #include <stdio.h> | |
22700 #include <stdlib.h> | |
22701 int | |
22702 main () | |
22703 { | |
22704 | |
22705 FILE *f = fopen ("conftest.val", "w"); | |
22706 if (! f) | |
22707 return 1; | |
22708 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
22709 { | |
22710 long int i = longval (); | |
22711 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
22712 return 1; | |
22713 fprintf (f, "%ld\n", i); | |
22714 } | |
22715 else | |
22716 { | |
22717 unsigned long int i = ulongval (); | |
22718 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
22719 return 1; | |
22720 fprintf (f, "%lu\n", i); | |
22721 } | |
22722 return ferror (f) || fclose (f) != 0; | |
22723 | |
22724 ; | |
22725 return 0; | |
22726 } | |
22727 _ACEOF | |
22728 rm -f conftest$ac_exeext | |
22729 if { (ac_try="$ac_link" | |
22730 case "(($ac_try" in | |
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22732 *) ac_try_echo=$ac_try;; | |
22733 esac | |
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22735 (eval "$ac_link") 2>&5 | |
22736 ac_status=$? | |
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22739 { (case "(($ac_try" in | |
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22741 *) ac_try_echo=$ac_try;; | |
22742 esac | |
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22744 (eval "$ac_try") 2>&5 | |
22745 ac_status=$? | |
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22747 (exit $ac_status); }; }; then | |
22748 ac_cv_sizeof_long=`cat conftest.val` | |
22749 else | |
22750 echo "$as_me: program exited with status $ac_status" >&5 | |
22751 echo "$as_me: failed program was:" >&5 | |
22752 sed 's/^/| /' conftest.$ac_ext >&5 | |
22753 | |
22754 ( exit $ac_status ) | |
22755 if test "$ac_cv_type_long" = yes; then | |
22756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
22757 See \`config.log' for more details." >&5 | |
22758 echo "$as_me: error: cannot compute sizeof (long) | |
22759 See \`config.log' for more details." >&2;} | |
22760 { (exit 77); exit 77; }; } | |
22761 else | |
22762 ac_cv_sizeof_long=0 | |
22763 fi | |
22764 fi | |
22765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22766 fi | |
22767 rm -f conftest.val | |
22768 fi | |
22769 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
22770 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
22771 | |
22772 | |
22773 | |
22774 cat >>confdefs.h <<_ACEOF | |
22775 #define SIZEOF_LONG $ac_cv_sizeof_long | |
22776 _ACEOF | |
22777 | |
22778 | |
22779 { echo "$as_me:$LINENO: checking for inline" >&5 | |
22780 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
22781 if test "${ac_cv_c_inline+set}" = set; then | |
22782 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22783 else | |
22784 ac_cv_c_inline=no | |
22785 for ac_kw in inline __inline__ __inline; do | |
22786 cat >conftest.$ac_ext <<_ACEOF | |
22787 /* confdefs.h. */ | |
22788 _ACEOF | |
22789 cat confdefs.h >>conftest.$ac_ext | |
22790 cat >>conftest.$ac_ext <<_ACEOF | |
22791 /* end confdefs.h. */ | |
22792 #ifndef __cplusplus | |
22793 typedef int foo_t; | |
22794 static $ac_kw foo_t static_foo () {return 0; } | |
22795 $ac_kw foo_t foo () {return 0; } | |
22796 #endif | |
22797 | |
22798 _ACEOF | |
22799 rm -f conftest.$ac_objext | |
22800 if { (ac_try="$ac_compile" | |
22801 case "(($ac_try" in | |
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22803 *) ac_try_echo=$ac_try;; | |
22804 esac | |
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22806 (eval "$ac_compile") 2>conftest.er1 | |
22807 ac_status=$? | |
22808 grep -v '^ *+' conftest.er1 >conftest.err | |
22809 rm -f conftest.er1 | |
22810 cat conftest.err >&5 | |
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22812 (exit $ac_status); } && { | |
22813 test -z "$ac_c_werror_flag" || | |
22814 test ! -s conftest.err | |
22815 } && test -s conftest.$ac_objext; then | |
22816 ac_cv_c_inline=$ac_kw | |
22817 else | |
22818 echo "$as_me: failed program was:" >&5 | |
22819 sed 's/^/| /' conftest.$ac_ext >&5 | |
22820 | |
22821 | |
22822 fi | |
22823 | |
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22825 test "$ac_cv_c_inline" != no && break | |
22826 done | |
22827 | |
22828 fi | |
22829 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
22830 echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
22831 | |
22832 | |
22833 case $ac_cv_c_inline in | |
22834 inline | yes) ;; | |
22835 *) | |
22836 case $ac_cv_c_inline in | |
22837 no) ac_val=;; | |
22838 *) ac_val=$ac_cv_c_inline;; | |
22839 esac | |
22840 cat >>confdefs.h <<_ACEOF | |
22841 #ifndef __cplusplus | |
22842 #define inline $ac_val | |
22843 #endif | |
22844 _ACEOF | |
22845 ;; | |
22846 esac | |
22847 | |
22848 { echo "$as_me:$LINENO: checking for mode_t" >&5 | |
22849 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
22850 if test "${ac_cv_type_mode_t+set}" = set; then | |
22851 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22852 else | |
22853 cat >conftest.$ac_ext <<_ACEOF | |
22854 /* confdefs.h. */ | |
22855 _ACEOF | |
22856 cat confdefs.h >>conftest.$ac_ext | |
22857 cat >>conftest.$ac_ext <<_ACEOF | |
22858 /* end confdefs.h. */ | |
22859 $ac_includes_default | |
22860 typedef mode_t ac__type_new_; | |
22861 int | |
22862 main () | |
22863 { | |
22864 if ((ac__type_new_ *) 0) | |
22865 return 0; | |
22866 if (sizeof (ac__type_new_)) | |
22867 return 0; | |
22868 ; | |
22869 return 0; | |
22870 } | |
22871 _ACEOF | |
22872 rm -f conftest.$ac_objext | |
22873 if { (ac_try="$ac_compile" | |
22874 case "(($ac_try" in | |
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22876 *) ac_try_echo=$ac_try;; | |
22877 esac | |
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22879 (eval "$ac_compile") 2>conftest.er1 | |
22880 ac_status=$? | |
22881 grep -v '^ *+' conftest.er1 >conftest.err | |
22882 rm -f conftest.er1 | |
22883 cat conftest.err >&5 | |
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22885 (exit $ac_status); } && { | |
22886 test -z "$ac_c_werror_flag" || | |
22887 test ! -s conftest.err | |
22888 } && test -s conftest.$ac_objext; then | |
22889 ac_cv_type_mode_t=yes | |
22890 else | |
22891 echo "$as_me: failed program was:" >&5 | |
22892 sed 's/^/| /' conftest.$ac_ext >&5 | |
22893 | |
22894 ac_cv_type_mode_t=no | |
22895 fi | |
22896 | |
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22898 fi | |
22899 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
22900 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
22901 if test $ac_cv_type_mode_t = yes; then | |
22902 : | |
22903 else | |
22904 | |
22905 cat >>confdefs.h <<_ACEOF | |
22906 #define mode_t int | |
22907 _ACEOF | |
22908 | |
22909 fi | |
22910 | |
22911 | |
22912 # Check whether --enable-largefile was given. | |
22913 if test "${enable_largefile+set}" = set; then | |
22914 enableval=$enable_largefile; | |
22915 fi | |
22916 | |
22917 if test "$enable_largefile" != no; then | |
22918 | |
22919 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
22920 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
22921 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
22922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22923 else | |
22924 ac_cv_sys_largefile_CC=no | |
22925 if test "$GCC" != yes; then | |
22926 ac_save_CC=$CC | |
22927 while :; do | |
22928 # IRIX 6.2 and later do not support large files by default, | |
22929 # so use the C compiler's -n32 option if that helps. | |
22930 cat >conftest.$ac_ext <<_ACEOF | |
22931 /* confdefs.h. */ | |
22932 _ACEOF | |
22933 cat confdefs.h >>conftest.$ac_ext | |
22934 cat >>conftest.$ac_ext <<_ACEOF | |
22935 /* end confdefs.h. */ | |
22936 #include <sys/types.h> | |
22937 /* Check that off_t can represent 2**63 - 1 correctly. | |
22938 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
22939 since some C++ compilers masquerading as C compilers | |
22940 incorrectly reject 9223372036854775807. */ | |
22941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
22942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
22943 && LARGE_OFF_T % 2147483647 == 1) | |
22944 ? 1 : -1]; | |
22945 int | |
22946 main () | |
22947 { | |
22948 | |
22949 ; | |
22950 return 0; | |
22951 } | |
22952 _ACEOF | |
22953 rm -f conftest.$ac_objext | |
22954 if { (ac_try="$ac_compile" | |
22955 case "(($ac_try" in | |
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22957 *) ac_try_echo=$ac_try;; | |
22958 esac | |
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22960 (eval "$ac_compile") 2>conftest.er1 | |
22961 ac_status=$? | |
22962 grep -v '^ *+' conftest.er1 >conftest.err | |
22963 rm -f conftest.er1 | |
22964 cat conftest.err >&5 | |
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22966 (exit $ac_status); } && { | |
22967 test -z "$ac_c_werror_flag" || | |
22968 test ! -s conftest.err | |
22969 } && test -s conftest.$ac_objext; then | |
22970 break | |
22971 else | |
22972 echo "$as_me: failed program was:" >&5 | |
22973 sed 's/^/| /' conftest.$ac_ext >&5 | |
22974 | |
22975 | |
22976 fi | |
22977 | |
22978 rm -f core conftest.err conftest.$ac_objext | |
22979 CC="$CC -n32" | |
22980 rm -f conftest.$ac_objext | |
22981 if { (ac_try="$ac_compile" | |
22982 case "(($ac_try" in | |
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22984 *) ac_try_echo=$ac_try;; | |
22985 esac | |
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22987 (eval "$ac_compile") 2>conftest.er1 | |
22988 ac_status=$? | |
22989 grep -v '^ *+' conftest.er1 >conftest.err | |
22990 rm -f conftest.er1 | |
22991 cat conftest.err >&5 | |
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22993 (exit $ac_status); } && { | |
22994 test -z "$ac_c_werror_flag" || | |
22995 test ! -s conftest.err | |
22996 } && test -s conftest.$ac_objext; then | |
22997 ac_cv_sys_largefile_CC=' -n32'; break | |
22998 else | |
22999 echo "$as_me: failed program was:" >&5 | |
23000 sed 's/^/| /' conftest.$ac_ext >&5 | |
23001 | |
23002 | |
23003 fi | |
23004 | |
23005 rm -f core conftest.err conftest.$ac_objext | |
23006 break | |
23007 done | |
23008 CC=$ac_save_CC | |
23009 rm -f conftest.$ac_ext | |
23010 fi | |
23011 fi | |
23012 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
23013 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
23014 if test "$ac_cv_sys_largefile_CC" != no; then | |
23015 CC=$CC$ac_cv_sys_largefile_CC | |
23016 fi | |
23017 | |
23018 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
23019 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
23020 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
23021 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23022 else | |
23023 while :; do | |
23024 cat >conftest.$ac_ext <<_ACEOF | |
23025 /* confdefs.h. */ | |
23026 _ACEOF | |
23027 cat confdefs.h >>conftest.$ac_ext | |
23028 cat >>conftest.$ac_ext <<_ACEOF | |
23029 /* end confdefs.h. */ | |
23030 #include <sys/types.h> | |
23031 /* Check that off_t can represent 2**63 - 1 correctly. | |
23032 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
23033 since some C++ compilers masquerading as C compilers | |
23034 incorrectly reject 9223372036854775807. */ | |
23035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
23036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
23037 && LARGE_OFF_T % 2147483647 == 1) | |
23038 ? 1 : -1]; | |
23039 int | |
23040 main () | |
23041 { | |
23042 | |
23043 ; | |
23044 return 0; | |
23045 } | |
23046 _ACEOF | |
23047 rm -f conftest.$ac_objext | |
23048 if { (ac_try="$ac_compile" | |
23049 case "(($ac_try" in | |
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23051 *) ac_try_echo=$ac_try;; | |
23052 esac | |
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23054 (eval "$ac_compile") 2>conftest.er1 | |
23055 ac_status=$? | |
23056 grep -v '^ *+' conftest.er1 >conftest.err | |
23057 rm -f conftest.er1 | |
23058 cat conftest.err >&5 | |
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23060 (exit $ac_status); } && { | |
23061 test -z "$ac_c_werror_flag" || | |
23062 test ! -s conftest.err | |
23063 } && test -s conftest.$ac_objext; then | |
23064 ac_cv_sys_file_offset_bits=no; break | |
23065 else | |
23066 echo "$as_me: failed program was:" >&5 | |
23067 sed 's/^/| /' conftest.$ac_ext >&5 | |
23068 | |
23069 | |
23070 fi | |
23071 | |
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23073 cat >conftest.$ac_ext <<_ACEOF | |
23074 /* confdefs.h. */ | |
23075 _ACEOF | |
23076 cat confdefs.h >>conftest.$ac_ext | |
23077 cat >>conftest.$ac_ext <<_ACEOF | |
23078 /* end confdefs.h. */ | |
23079 #define _FILE_OFFSET_BITS 64 | |
23080 #include <sys/types.h> | |
23081 /* Check that off_t can represent 2**63 - 1 correctly. | |
23082 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
23083 since some C++ compilers masquerading as C compilers | |
23084 incorrectly reject 9223372036854775807. */ | |
23085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
23086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
23087 && LARGE_OFF_T % 2147483647 == 1) | |
23088 ? 1 : -1]; | |
23089 int | |
23090 main () | |
23091 { | |
23092 | |
23093 ; | |
23094 return 0; | |
23095 } | |
23096 _ACEOF | |
23097 rm -f conftest.$ac_objext | |
23098 if { (ac_try="$ac_compile" | |
23099 case "(($ac_try" in | |
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23101 *) ac_try_echo=$ac_try;; | |
23102 esac | |
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23104 (eval "$ac_compile") 2>conftest.er1 | |
23105 ac_status=$? | |
23106 grep -v '^ *+' conftest.er1 >conftest.err | |
23107 rm -f conftest.er1 | |
23108 cat conftest.err >&5 | |
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23110 (exit $ac_status); } && { | |
23111 test -z "$ac_c_werror_flag" || | |
23112 test ! -s conftest.err | |
23113 } && test -s conftest.$ac_objext; then | |
23114 ac_cv_sys_file_offset_bits=64; break | |
23115 else | |
23116 echo "$as_me: failed program was:" >&5 | |
23117 sed 's/^/| /' conftest.$ac_ext >&5 | |
23118 | |
23119 | |
23120 fi | |
23121 | |
23122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23123 ac_cv_sys_file_offset_bits=unknown | |
23124 break | |
23125 done | |
23126 fi | |
23127 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
23128 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
23129 case $ac_cv_sys_file_offset_bits in #( | |
23130 no | unknown) ;; | |
23131 *) | |
23132 cat >>confdefs.h <<_ACEOF | |
23133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
23134 _ACEOF | |
23135 ;; | |
23136 esac | |
23137 rm -f conftest* | |
23138 if test $ac_cv_sys_file_offset_bits = unknown; then | |
23139 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
23140 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | |
23141 if test "${ac_cv_sys_large_files+set}" = set; then | |
23142 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23143 else | |
23144 while :; do | |
23145 cat >conftest.$ac_ext <<_ACEOF | |
23146 /* confdefs.h. */ | |
23147 _ACEOF | |
23148 cat confdefs.h >>conftest.$ac_ext | |
23149 cat >>conftest.$ac_ext <<_ACEOF | |
23150 /* end confdefs.h. */ | |
23151 #include <sys/types.h> | |
23152 /* Check that off_t can represent 2**63 - 1 correctly. | |
23153 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
23154 since some C++ compilers masquerading as C compilers | |
23155 incorrectly reject 9223372036854775807. */ | |
23156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
23157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
23158 && LARGE_OFF_T % 2147483647 == 1) | |
23159 ? 1 : -1]; | |
23160 int | |
23161 main () | |
23162 { | |
23163 | |
23164 ; | |
23165 return 0; | |
23166 } | |
23167 _ACEOF | |
23168 rm -f conftest.$ac_objext | |
23169 if { (ac_try="$ac_compile" | |
23170 case "(($ac_try" in | |
23171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23172 *) ac_try_echo=$ac_try;; | |
23173 esac | |
23174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23175 (eval "$ac_compile") 2>conftest.er1 | |
23176 ac_status=$? | |
23177 grep -v '^ *+' conftest.er1 >conftest.err | |
23178 rm -f conftest.er1 | |
23179 cat conftest.err >&5 | |
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23181 (exit $ac_status); } && { | |
23182 test -z "$ac_c_werror_flag" || | |
23183 test ! -s conftest.err | |
23184 } && test -s conftest.$ac_objext; then | |
23185 ac_cv_sys_large_files=no; break | |
23186 else | |
23187 echo "$as_me: failed program was:" >&5 | |
23188 sed 's/^/| /' conftest.$ac_ext >&5 | |
23189 | |
23190 | |
23191 fi | |
23192 | |
23193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23194 cat >conftest.$ac_ext <<_ACEOF | |
23195 /* confdefs.h. */ | |
23196 _ACEOF | |
23197 cat confdefs.h >>conftest.$ac_ext | |
23198 cat >>conftest.$ac_ext <<_ACEOF | |
23199 /* end confdefs.h. */ | |
23200 #define _LARGE_FILES 1 | |
23201 #include <sys/types.h> | |
23202 /* Check that off_t can represent 2**63 - 1 correctly. | |
23203 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
23204 since some C++ compilers masquerading as C compilers | |
23205 incorrectly reject 9223372036854775807. */ | |
23206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
23207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
23208 && LARGE_OFF_T % 2147483647 == 1) | |
23209 ? 1 : -1]; | |
23210 int | |
23211 main () | |
23212 { | |
23213 | |
23214 ; | |
23215 return 0; | |
23216 } | |
23217 _ACEOF | |
23218 rm -f conftest.$ac_objext | |
23219 if { (ac_try="$ac_compile" | |
23220 case "(($ac_try" in | |
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23222 *) ac_try_echo=$ac_try;; | |
23223 esac | |
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23225 (eval "$ac_compile") 2>conftest.er1 | |
23226 ac_status=$? | |
23227 grep -v '^ *+' conftest.er1 >conftest.err | |
23228 rm -f conftest.er1 | |
23229 cat conftest.err >&5 | |
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23231 (exit $ac_status); } && { | |
23232 test -z "$ac_c_werror_flag" || | |
23233 test ! -s conftest.err | |
23234 } && test -s conftest.$ac_objext; then | |
23235 ac_cv_sys_large_files=1; break | |
23236 else | |
23237 echo "$as_me: failed program was:" >&5 | |
23238 sed 's/^/| /' conftest.$ac_ext >&5 | |
23239 | |
23240 | |
23241 fi | |
23242 | |
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23244 ac_cv_sys_large_files=unknown | |
23245 break | |
23246 done | |
23247 fi | |
23248 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
23249 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
23250 case $ac_cv_sys_large_files in #( | |
23251 no | unknown) ;; | |
23252 *) | |
23253 cat >>confdefs.h <<_ACEOF | |
23254 #define _LARGE_FILES $ac_cv_sys_large_files | |
23255 _ACEOF | |
23256 ;; | |
23257 esac | |
23258 rm -f conftest* | |
23259 fi | |
23260 fi | |
23261 | |
23262 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
23263 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
23264 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
23265 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23266 else | |
23267 while :; do | |
23268 cat >conftest.$ac_ext <<_ACEOF | |
23269 /* confdefs.h. */ | |
23270 _ACEOF | |
23271 cat confdefs.h >>conftest.$ac_ext | |
23272 cat >>conftest.$ac_ext <<_ACEOF | |
23273 /* end confdefs.h. */ | |
23274 #include <sys/types.h> /* for off_t */ | |
23275 #include <stdio.h> | |
23276 int | |
23277 main () | |
23278 { | |
23279 int (*fp) (FILE *, off_t, int) = fseeko; | |
23280 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
23281 ; | |
23282 return 0; | |
23283 } | |
23284 _ACEOF | |
23285 rm -f conftest.$ac_objext conftest$ac_exeext | |
23286 if { (ac_try="$ac_link" | |
23287 case "(($ac_try" in | |
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23289 *) ac_try_echo=$ac_try;; | |
23290 esac | |
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23292 (eval "$ac_link") 2>conftest.er1 | |
23293 ac_status=$? | |
23294 grep -v '^ *+' conftest.er1 >conftest.err | |
23295 rm -f conftest.er1 | |
23296 cat conftest.err >&5 | |
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23298 (exit $ac_status); } && { | |
23299 test -z "$ac_c_werror_flag" || | |
23300 test ! -s conftest.err | |
23301 } && test -s conftest$ac_exeext && | |
23302 $as_test_x conftest$ac_exeext; then | |
23303 ac_cv_sys_largefile_source=no; break | |
23304 else | |
23305 echo "$as_me: failed program was:" >&5 | |
23306 sed 's/^/| /' conftest.$ac_ext >&5 | |
23307 | |
23308 | |
23309 fi | |
23310 | |
23311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23312 conftest$ac_exeext conftest.$ac_ext | |
23313 cat >conftest.$ac_ext <<_ACEOF | |
23314 /* confdefs.h. */ | |
23315 _ACEOF | |
23316 cat confdefs.h >>conftest.$ac_ext | |
23317 cat >>conftest.$ac_ext <<_ACEOF | |
23318 /* end confdefs.h. */ | |
23319 #define _LARGEFILE_SOURCE 1 | |
23320 #include <sys/types.h> /* for off_t */ | |
23321 #include <stdio.h> | |
23322 int | |
23323 main () | |
23324 { | |
23325 int (*fp) (FILE *, off_t, int) = fseeko; | |
23326 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
23327 ; | |
23328 return 0; | |
23329 } | |
23330 _ACEOF | |
23331 rm -f conftest.$ac_objext conftest$ac_exeext | |
23332 if { (ac_try="$ac_link" | |
23333 case "(($ac_try" in | |
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23335 *) ac_try_echo=$ac_try;; | |
23336 esac | |
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23338 (eval "$ac_link") 2>conftest.er1 | |
23339 ac_status=$? | |
23340 grep -v '^ *+' conftest.er1 >conftest.err | |
23341 rm -f conftest.er1 | |
23342 cat conftest.err >&5 | |
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23344 (exit $ac_status); } && { | |
23345 test -z "$ac_c_werror_flag" || | |
23346 test ! -s conftest.err | |
23347 } && test -s conftest$ac_exeext && | |
23348 $as_test_x conftest$ac_exeext; then | |
23349 ac_cv_sys_largefile_source=1; break | |
23350 else | |
23351 echo "$as_me: failed program was:" >&5 | |
23352 sed 's/^/| /' conftest.$ac_ext >&5 | |
23353 | |
23354 | |
23355 fi | |
23356 | |
23357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23358 conftest$ac_exeext conftest.$ac_ext | |
23359 ac_cv_sys_largefile_source=unknown | |
23360 break | |
23361 done | |
23362 fi | |
23363 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
23364 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
23365 case $ac_cv_sys_largefile_source in #( | |
23366 no | unknown) ;; | |
23367 *) | |
23368 cat >>confdefs.h <<_ACEOF | |
23369 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
23370 _ACEOF | |
23371 ;; | |
23372 esac | |
23373 rm -f conftest* | |
23374 | |
23375 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
23376 # in glibc 2.1.3, but that breaks too many other things. | |
23377 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
23378 if test $ac_cv_sys_largefile_source != unknown; then | |
23379 | |
23380 cat >>confdefs.h <<\_ACEOF | |
23381 #define HAVE_FSEEKO 1 | |
23382 _ACEOF | |
23383 | |
23384 fi | |
23385 | |
23386 | |
23387 { echo "$as_me:$LINENO: checking for library containing cos" >&5 | |
23388 echo $ECHO_N "checking for library containing cos... $ECHO_C" >&6; } | |
23389 if test "${ac_cv_search_cos+set}" = set; then | |
23390 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23391 else | |
23392 ac_func_search_save_LIBS=$LIBS | |
23393 cat >conftest.$ac_ext <<_ACEOF | |
23394 /* confdefs.h. */ | |
23395 _ACEOF | |
23396 cat confdefs.h >>conftest.$ac_ext | |
23397 cat >>conftest.$ac_ext <<_ACEOF | |
23398 /* end confdefs.h. */ | |
23399 | |
23400 /* Override any GCC internal prototype to avoid an error. | |
23401 Use char because int might match the return type of a GCC | |
23402 builtin and then its argument prototype would still apply. */ | |
23403 #ifdef __cplusplus | |
23404 extern "C" | |
23405 #endif | |
23406 char cos (); | |
23407 int | |
23408 main () | |
23409 { | |
23410 return cos (); | |
23411 ; | |
23412 return 0; | |
23413 } | |
23414 _ACEOF | |
23415 for ac_lib in '' m; do | |
23416 if test -z "$ac_lib"; then | |
23417 ac_res="none required" | |
23418 else | |
23419 ac_res=-l$ac_lib | |
23420 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23421 fi | |
23422 rm -f conftest.$ac_objext conftest$ac_exeext | |
23423 if { (ac_try="$ac_link" | |
23424 case "(($ac_try" in | |
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23426 *) ac_try_echo=$ac_try;; | |
23427 esac | |
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23429 (eval "$ac_link") 2>conftest.er1 | |
23430 ac_status=$? | |
23431 grep -v '^ *+' conftest.er1 >conftest.err | |
23432 rm -f conftest.er1 | |
23433 cat conftest.err >&5 | |
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23435 (exit $ac_status); } && { | |
23436 test -z "$ac_c_werror_flag" || | |
23437 test ! -s conftest.err | |
23438 } && test -s conftest$ac_exeext && | |
23439 $as_test_x conftest$ac_exeext; then | |
23440 ac_cv_search_cos=$ac_res | |
23441 else | |
23442 echo "$as_me: failed program was:" >&5 | |
23443 sed 's/^/| /' conftest.$ac_ext >&5 | |
23444 | |
23445 | |
23446 fi | |
23447 | |
23448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23449 conftest$ac_exeext | |
23450 if test "${ac_cv_search_cos+set}" = set; then | |
23451 break | |
23452 fi | |
23453 done | |
23454 if test "${ac_cv_search_cos+set}" = set; then | |
23455 : | |
23456 else | |
23457 ac_cv_search_cos=no | |
23458 fi | |
23459 rm conftest.$ac_ext | |
23460 LIBS=$ac_func_search_save_LIBS | |
23461 fi | |
23462 { echo "$as_me:$LINENO: result: $ac_cv_search_cos" >&5 | |
23463 echo "${ECHO_T}$ac_cv_search_cos" >&6; } | |
23464 ac_res=$ac_cv_search_cos | |
23465 if test "$ac_res" != no; then | |
23466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23467 | |
23468 fi | |
23469 | |
23470 | |
23471 for ac_func in strdup | |
23472 do | |
23473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23474 { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
23476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
23477 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23478 else | |
23479 cat >conftest.$ac_ext <<_ACEOF | |
23480 /* confdefs.h. */ | |
23481 _ACEOF | |
23482 cat confdefs.h >>conftest.$ac_ext | |
23483 cat >>conftest.$ac_ext <<_ACEOF | |
23484 /* end confdefs.h. */ | |
23485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23486 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23487 #define $ac_func innocuous_$ac_func | |
23488 | |
23489 /* System header to define __stub macros and hopefully few prototypes, | |
23490 which can conflict with char $ac_func (); below. | |
23491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23492 <limits.h> exists even on freestanding compilers. */ | |
23493 | |
23494 #ifdef __STDC__ | |
23495 # include <limits.h> | |
23496 #else | |
23497 # include <assert.h> | |
23498 #endif | |
23499 | |
23500 #undef $ac_func | |
23501 | |
23502 /* Override any GCC internal prototype to avoid an error. | |
23503 Use char because int might match the return type of a GCC | |
23504 builtin and then its argument prototype would still apply. */ | |
23505 #ifdef __cplusplus | |
23506 extern "C" | |
23507 #endif | |
23508 char $ac_func (); | |
23509 /* The GNU C library defines this for functions which it implements | |
23510 to always fail with ENOSYS. Some functions are actually named | |
23511 something starting with __ and the normal name is an alias. */ | |
23512 #if defined __stub_$ac_func || defined __stub___$ac_func | |
23513 choke me | |
23514 #endif | |
23515 | |
23516 int | |
23517 main () | |
23518 { | |
23519 return $ac_func (); | |
23520 ; | |
23521 return 0; | |
23522 } | |
23523 _ACEOF | |
23524 rm -f conftest.$ac_objext conftest$ac_exeext | |
23525 if { (ac_try="$ac_link" | |
23526 case "(($ac_try" in | |
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23528 *) ac_try_echo=$ac_try;; | |
23529 esac | |
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23531 (eval "$ac_link") 2>conftest.er1 | |
23532 ac_status=$? | |
23533 grep -v '^ *+' conftest.er1 >conftest.err | |
23534 rm -f conftest.er1 | |
23535 cat conftest.err >&5 | |
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23537 (exit $ac_status); } && { | |
23538 test -z "$ac_c_werror_flag" || | |
23539 test ! -s conftest.err | |
23540 } && test -s conftest$ac_exeext && | |
23541 $as_test_x conftest$ac_exeext; then | |
23542 eval "$as_ac_var=yes" | |
23543 else | |
23544 echo "$as_me: failed program was:" >&5 | |
23545 sed 's/^/| /' conftest.$ac_ext >&5 | |
23546 | |
23547 eval "$as_ac_var=no" | |
23548 fi | |
23549 | |
23550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23551 conftest$ac_exeext conftest.$ac_ext | |
23552 fi | |
23553 ac_res=`eval echo '${'$as_ac_var'}'` | |
23554 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23555 echo "${ECHO_T}$ac_res" >&6; } | |
23556 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23557 cat >>confdefs.h <<_ACEOF | |
23558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23559 _ACEOF | |
23560 | |
23561 fi | |
23562 done | |
23563 | |
23564 | |
23565 ac_config_files="$ac_config_files Makefile io_lib/Makefile progs/Makefile tests/Makefile io_lib-config" | |
23566 | |
23567 cat >confcache <<\_ACEOF | |
23568 # This file is a shell script that caches the results of configure | |
23569 # tests run on this system so they can be shared between configure | |
23570 # scripts and configure runs, see configure's option --config-cache. | |
23571 # It is not useful on other systems. If it contains results you don't | |
23572 # want to keep, you may remove or edit it. | |
23573 # | |
23574 # config.status only pays attention to the cache file if you give it | |
23575 # the --recheck option to rerun configure. | |
23576 # | |
23577 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23578 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23579 # following values. | |
23580 | |
23581 _ACEOF | |
23582 | |
23583 # The following way of writing the cache mishandles newlines in values, | |
23584 # but we know of no workaround that is simple, portable, and efficient. | |
23585 # So, we kill variables containing newlines. | |
23586 # Ultrix sh set writes to stderr and can't be redirected directly, | |
23587 # and sets the high bit in the cache file unless we assign to the vars. | |
23588 ( | |
23589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23590 eval ac_val=\$$ac_var | |
23591 case $ac_val in #( | |
23592 *${as_nl}*) | |
23593 case $ac_var in #( | |
23594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
23595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
23596 esac | |
23597 case $ac_var in #( | |
23598 _ | IFS | as_nl) ;; #( | |
23599 *) $as_unset $ac_var ;; | |
23600 esac ;; | |
23601 esac | |
23602 done | |
23603 | |
23604 (set) 2>&1 | | |
23605 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
23606 *${as_nl}ac_space=\ *) | |
23607 # `set' does not quote correctly, so add quotes (double-quote | |
23608 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23609 sed -n \ | |
23610 "s/'/'\\\\''/g; | |
23611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
23612 ;; #( | |
23613 *) | |
23614 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
23616 ;; | |
23617 esac | | |
23618 sort | |
23619 ) | | |
23620 sed ' | |
23621 /^ac_cv_env_/b end | |
23622 t clear | |
23623 :clear | |
23624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23625 t end | |
23626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23627 :end' >>confcache | |
23628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
23629 if test -w "$cache_file"; then | |
23630 test "x$cache_file" != "x/dev/null" && | |
23631 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
23632 echo "$as_me: updating cache $cache_file" >&6;} | |
23633 cat confcache >$cache_file | |
23634 else | |
23635 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
23636 echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
23637 fi | |
23638 fi | |
23639 rm -f confcache | |
23640 | |
23641 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23642 # Let make expand exec_prefix. | |
23643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23644 | |
23645 DEFS=-DHAVE_CONFIG_H | |
23646 | |
23647 ac_libobjs= | |
23648 ac_ltlibobjs= | |
23649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23650 # 1. Remove the extension, and $U if already installed. | |
23651 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
23652 ac_i=`echo "$ac_i" | sed "$ac_script"` | |
23653 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23654 # will be set to the directory where LIBOBJS objects are built. | |
23655 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23656 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
23657 done | |
23658 LIBOBJS=$ac_libobjs | |
23659 | |
23660 LTLIBOBJS=$ac_ltlibobjs | |
23661 | |
23662 | |
23663 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
23664 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23665 Usually this means the macro was only invoked conditionally." >&5 | |
23666 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23667 Usually this means the macro was only invoked conditionally." >&2;} | |
23668 { (exit 1); exit 1; }; } | |
23669 fi | |
23670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
23671 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
23672 Usually this means the macro was only invoked conditionally." >&5 | |
23673 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
23674 Usually this means the macro was only invoked conditionally." >&2;} | |
23675 { (exit 1); exit 1; }; } | |
23676 fi | |
23677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
23678 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
23679 Usually this means the macro was only invoked conditionally." >&5 | |
23680 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
23681 Usually this means the macro was only invoked conditionally." >&2;} | |
23682 { (exit 1); exit 1; }; } | |
23683 fi | |
23684 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
23685 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
23686 Usually this means the macro was only invoked conditionally." >&5 | |
23687 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
23688 Usually this means the macro was only invoked conditionally." >&2;} | |
23689 { (exit 1); exit 1; }; } | |
23690 fi | |
23691 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then | |
23692 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined. | |
23693 Usually this means the macro was only invoked conditionally." >&5 | |
23694 echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined. | |
23695 Usually this means the macro was only invoked conditionally." >&2;} | |
23696 { (exit 1); exit 1; }; } | |
23697 fi | |
23698 | |
23699 : ${CONFIG_STATUS=./config.status} | |
23700 ac_clean_files_save=$ac_clean_files | |
23701 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23703 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23704 cat >$CONFIG_STATUS <<_ACEOF | |
23705 #! $SHELL | |
23706 # Generated by $as_me. | |
23707 # Run this file to recreate the current configuration. | |
23708 # Compiler output produced by configure, useful for debugging | |
23709 # configure, is in config.log if it exists. | |
23710 | |
23711 debug=false | |
23712 ac_cs_recheck=false | |
23713 ac_cs_silent=false | |
23714 SHELL=\${CONFIG_SHELL-$SHELL} | |
23715 _ACEOF | |
23716 | |
23717 cat >>$CONFIG_STATUS <<\_ACEOF | |
23718 ## --------------------- ## | |
23719 ## M4sh Initialization. ## | |
23720 ## --------------------- ## | |
23721 | |
23722 # Be more Bourne compatible | |
23723 DUALCASE=1; export DUALCASE # for MKS sh | |
23724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23725 emulate sh | |
23726 NULLCMD=: | |
23727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23728 # is contrary to our usage. Disable this feature. | |
23729 alias -g '${1+"$@"}'='"$@"' | |
23730 setopt NO_GLOB_SUBST | |
23731 else | |
23732 case `(set -o) 2>/dev/null` in | |
23733 *posix*) set -o posix ;; | |
23734 esac | |
23735 | |
23736 fi | |
23737 | |
23738 | |
23739 | |
23740 | |
23741 # PATH needs CR | |
23742 # Avoid depending upon Character Ranges. | |
23743 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23746 as_cr_digits='0123456789' | |
23747 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23748 | |
23749 # The user is always right. | |
23750 if test "${PATH_SEPARATOR+set}" != set; then | |
23751 echo "#! /bin/sh" >conf$$.sh | |
23752 echo "exit 0" >>conf$$.sh | |
23753 chmod +x conf$$.sh | |
23754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23755 PATH_SEPARATOR=';' | |
23756 else | |
23757 PATH_SEPARATOR=: | |
23758 fi | |
23759 rm -f conf$$.sh | |
23760 fi | |
23761 | |
23762 # Support unset when possible. | |
23763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23764 as_unset=unset | |
23765 else | |
23766 as_unset=false | |
23767 fi | |
23768 | |
23769 | |
23770 # IFS | |
23771 # We need space, tab and new line, in precisely that order. Quoting is | |
23772 # there to prevent editors from complaining about space-tab. | |
23773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
23774 # splitting by setting IFS to empty value.) | |
23775 as_nl=' | |
23776 ' | |
23777 IFS=" "" $as_nl" | |
23778 | |
23779 # Find who we are. Look in the path if we contain no directory separator. | |
23780 case $0 in | |
23781 *[\\/]* ) as_myself=$0 ;; | |
23782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23783 for as_dir in $PATH | |
23784 do | |
23785 IFS=$as_save_IFS | |
23786 test -z "$as_dir" && as_dir=. | |
23787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23788 done | |
23789 IFS=$as_save_IFS | |
23790 | |
23791 ;; | |
23792 esac | |
23793 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23794 # in which case we are not to be found in the path. | |
23795 if test "x$as_myself" = x; then | |
23796 as_myself=$0 | |
23797 fi | |
23798 if test ! -f "$as_myself"; then | |
23799 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
23800 { (exit 1); exit 1; } | |
23801 fi | |
23802 | |
23803 # Work around bugs in pre-3.0 UWIN ksh. | |
23804 for as_var in ENV MAIL MAILPATH | |
23805 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
23806 done | |
23807 PS1='$ ' | |
23808 PS2='> ' | |
23809 PS4='+ ' | |
23810 | |
23811 # NLS nuisances. | |
23812 for as_var in \ | |
23813 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23814 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23815 LC_TELEPHONE LC_TIME | |
23816 do | |
23817 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23818 eval $as_var=C; export $as_var | |
23819 else | |
23820 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
23821 fi | |
23822 done | |
23823 | |
23824 # Required to use basename. | |
23825 if expr a : '\(a\)' >/dev/null 2>&1 && | |
23826 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
23827 as_expr=expr | |
23828 else | |
23829 as_expr=false | |
23830 fi | |
23831 | |
23832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
23833 as_basename=basename | |
23834 else | |
23835 as_basename=false | |
23836 fi | |
23837 | |
23838 | |
23839 # Name of the executable. | |
23840 as_me=`$as_basename -- "$0" || | |
23841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
23842 X"$0" : 'X\(//\)$' \| \ | |
23843 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
23844 echo X/"$0" | | |
23845 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
23846 s//\1/ | |
23847 q | |
23848 } | |
23849 /^X\/\(\/\/\)$/{ | |
23850 s//\1/ | |
23851 q | |
23852 } | |
23853 /^X\/\(\/\).*/{ | |
23854 s//\1/ | |
23855 q | |
23856 } | |
23857 s/.*/./; q'` | |
23858 | |
23859 # CDPATH. | |
23860 $as_unset CDPATH | |
23861 | |
23862 | |
23863 | |
23864 as_lineno_1=$LINENO | |
23865 as_lineno_2=$LINENO | |
23866 test "x$as_lineno_1" != "x$as_lineno_2" && | |
23867 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
23868 | |
23869 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23870 # uniformly replaced by the line number. The first 'sed' inserts a | |
23871 # line-number line after each line using $LINENO; the second 'sed' | |
23872 # does the real work. The second script uses 'N' to pair each | |
23873 # line-number line with the line containing $LINENO, and appends | |
23874 # trailing '-' during substitution so that $LINENO is not a special | |
23875 # case at line end. | |
23876 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
23877 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
23878 # E. McMahon (1931-1989) for sed's syntax. :-) | |
23879 sed -n ' | |
23880 p | |
23881 /[$]LINENO/= | |
23882 ' <$as_myself | | |
23883 sed ' | |
23884 s/[$]LINENO.*/&-/ | |
23885 t lineno | |
23886 b | |
23887 :lineno | |
23888 N | |
23889 :loop | |
23890 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
23891 t loop | |
23892 s/-\n.*// | |
23893 ' >$as_me.lineno && | |
23894 chmod +x "$as_me.lineno" || | |
23895 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
23896 { (exit 1); exit 1; }; } | |
23897 | |
23898 # Don't try to exec as it changes $[0], causing all sort of problems | |
23899 # (the dirname of $[0] is not the place where we might find the | |
23900 # original and so on. Autoconf is especially sensitive to this). | |
23901 . "./$as_me.lineno" | |
23902 # Exit status is that of the last command. | |
23903 exit | |
23904 } | |
23905 | |
23906 | |
23907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
23908 as_dirname=dirname | |
23909 else | |
23910 as_dirname=false | |
23911 fi | |
23912 | |
23913 ECHO_C= ECHO_N= ECHO_T= | |
23914 case `echo -n x` in | |
23915 -n*) | |
23916 case `echo 'x\c'` in | |
23917 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
23918 *) ECHO_C='\c';; | |
23919 esac;; | |
23920 *) | |
23921 ECHO_N='-n';; | |
23922 esac | |
23923 | |
23924 if expr a : '\(a\)' >/dev/null 2>&1 && | |
23925 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
23926 as_expr=expr | |
23927 else | |
23928 as_expr=false | |
23929 fi | |
23930 | |
23931 rm -f conf$$ conf$$.exe conf$$.file | |
23932 if test -d conf$$.dir; then | |
23933 rm -f conf$$.dir/conf$$.file | |
23934 else | |
23935 rm -f conf$$.dir | |
23936 mkdir conf$$.dir | |
23937 fi | |
23938 echo >conf$$.file | |
23939 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
23940 as_ln_s='ln -s' | |
23941 # ... but there are two gotchas: | |
23942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
23943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
23944 # In both cases, we have to default to `cp -p'. | |
23945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
23946 as_ln_s='cp -p' | |
23947 elif ln conf$$.file conf$$ 2>/dev/null; then | |
23948 as_ln_s=ln | |
23949 else | |
23950 as_ln_s='cp -p' | |
23951 fi | |
23952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
23953 rmdir conf$$.dir 2>/dev/null | |
23954 | |
23955 if mkdir -p . 2>/dev/null; then | |
23956 as_mkdir_p=: | |
23957 else | |
23958 test -d ./-p && rmdir ./-p | |
23959 as_mkdir_p=false | |
23960 fi | |
23961 | |
23962 if test -x / >/dev/null 2>&1; then | |
23963 as_test_x='test -x' | |
23964 else | |
23965 if ls -dL / >/dev/null 2>&1; then | |
23966 as_ls_L_option=L | |
23967 else | |
23968 as_ls_L_option= | |
23969 fi | |
23970 as_test_x=' | |
23971 eval sh -c '\'' | |
23972 if test -d "$1"; then | |
23973 test -d "$1/."; | |
23974 else | |
23975 case $1 in | |
23976 -*)set "./$1";; | |
23977 esac; | |
23978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
23979 ???[sx]*):;;*)false;;esac;fi | |
23980 '\'' sh | |
23981 ' | |
23982 fi | |
23983 as_executable_p=$as_test_x | |
23984 | |
23985 # Sed expression to map a string onto a valid CPP name. | |
23986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
23987 | |
23988 # Sed expression to map a string onto a valid variable name. | |
23989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
23990 | |
23991 | |
23992 exec 6>&1 | |
23993 | |
23994 # Save the log message, to keep $[0] and so on meaningful, and to | |
23995 # report actual input values of CONFIG_FILES etc. instead of their | |
23996 # values after options handling. | |
23997 ac_log=" | |
23998 This file was extended by io_lib $as_me 1.12.2, which was | |
23999 generated by GNU Autoconf 2.61. Invocation command line was | |
24000 | |
24001 CONFIG_FILES = $CONFIG_FILES | |
24002 CONFIG_HEADERS = $CONFIG_HEADERS | |
24003 CONFIG_LINKS = $CONFIG_LINKS | |
24004 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24005 $ $0 $@ | |
24006 | |
24007 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
24008 " | |
24009 | |
24010 _ACEOF | |
24011 | |
24012 cat >>$CONFIG_STATUS <<_ACEOF | |
24013 # Files that config.status was made for. | |
24014 config_files="$ac_config_files" | |
24015 config_headers="$ac_config_headers" | |
24016 config_commands="$ac_config_commands" | |
24017 | |
24018 _ACEOF | |
24019 | |
24020 cat >>$CONFIG_STATUS <<\_ACEOF | |
24021 ac_cs_usage="\ | |
24022 \`$as_me' instantiates files from templates according to the | |
24023 current configuration. | |
24024 | |
24025 Usage: $0 [OPTIONS] [FILE]... | |
24026 | |
24027 -h, --help print this help, then exit | |
24028 -V, --version print version number and configuration settings, then exit | |
24029 -q, --quiet do not print progress messages | |
24030 -d, --debug don't remove temporary files | |
24031 --recheck update $as_me by reconfiguring in the same conditions | |
24032 --file=FILE[:TEMPLATE] | |
24033 instantiate the configuration file FILE | |
24034 --header=FILE[:TEMPLATE] | |
24035 instantiate the configuration header FILE | |
24036 | |
24037 Configuration files: | |
24038 $config_files | |
24039 | |
24040 Configuration headers: | |
24041 $config_headers | |
24042 | |
24043 Configuration commands: | |
24044 $config_commands | |
24045 | |
24046 Report bugs to <bug-autoconf@gnu.org>." | |
24047 | |
24048 _ACEOF | |
24049 cat >>$CONFIG_STATUS <<_ACEOF | |
24050 ac_cs_version="\\ | |
24051 io_lib config.status 1.12.2 | |
24052 configured by $0, generated by GNU Autoconf 2.61, | |
24053 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
24054 | |
24055 Copyright (C) 2006 Free Software Foundation, Inc. | |
24056 This config.status script is free software; the Free Software Foundation | |
24057 gives unlimited permission to copy, distribute and modify it." | |
24058 | |
24059 ac_pwd='$ac_pwd' | |
24060 srcdir='$srcdir' | |
24061 INSTALL='$INSTALL' | |
24062 _ACEOF | |
24063 | |
24064 cat >>$CONFIG_STATUS <<\_ACEOF | |
24065 # If no file are specified by the user, then we need to provide default | |
24066 # value. By we need to know if files were specified by the user. | |
24067 ac_need_defaults=: | |
24068 while test $# != 0 | |
24069 do | |
24070 case $1 in | |
24071 --*=*) | |
24072 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
24073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
24074 ac_shift=: | |
24075 ;; | |
24076 *) | |
24077 ac_option=$1 | |
24078 ac_optarg=$2 | |
24079 ac_shift=shift | |
24080 ;; | |
24081 esac | |
24082 | |
24083 case $ac_option in | |
24084 # Handling of the options. | |
24085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24086 ac_cs_recheck=: ;; | |
24087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
24088 echo "$ac_cs_version"; exit ;; | |
24089 --debug | --debu | --deb | --de | --d | -d ) | |
24090 debug=: ;; | |
24091 --file | --fil | --fi | --f ) | |
24092 $ac_shift | |
24093 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24094 ac_need_defaults=false;; | |
24095 --header | --heade | --head | --hea ) | |
24096 $ac_shift | |
24097 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24098 ac_need_defaults=false;; | |
24099 --he | --h) | |
24100 # Conflict between --help and --header | |
24101 { echo "$as_me: error: ambiguous option: $1 | |
24102 Try \`$0 --help' for more information." >&2 | |
24103 { (exit 1); exit 1; }; };; | |
24104 --help | --hel | -h ) | |
24105 echo "$ac_cs_usage"; exit ;; | |
24106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24107 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24108 ac_cs_silent=: ;; | |
24109 | |
24110 # This is an error. | |
24111 -*) { echo "$as_me: error: unrecognized option: $1 | |
24112 Try \`$0 --help' for more information." >&2 | |
24113 { (exit 1); exit 1; }; } ;; | |
24114 | |
24115 *) ac_config_targets="$ac_config_targets $1" | |
24116 ac_need_defaults=false ;; | |
24117 | |
24118 esac | |
24119 shift | |
24120 done | |
24121 | |
24122 ac_configure_extra_args= | |
24123 | |
24124 if $ac_cs_silent; then | |
24125 exec 6>/dev/null | |
24126 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24127 fi | |
24128 | |
24129 _ACEOF | |
24130 cat >>$CONFIG_STATUS <<_ACEOF | |
24131 if \$ac_cs_recheck; then | |
24132 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
24133 CONFIG_SHELL=$SHELL | |
24134 export CONFIG_SHELL | |
24135 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
24136 fi | |
24137 | |
24138 _ACEOF | |
24139 cat >>$CONFIG_STATUS <<\_ACEOF | |
24140 exec 5>>config.log | |
24141 { | |
24142 echo | |
24143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24144 ## Running $as_me. ## | |
24145 _ASBOX | |
24146 echo "$ac_log" | |
24147 } >&5 | |
24148 | |
24149 _ACEOF | |
24150 cat >>$CONFIG_STATUS <<_ACEOF | |
24151 # | |
24152 # INIT-COMMANDS | |
24153 # | |
24154 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
24155 | |
24156 _ACEOF | |
24157 | |
24158 cat >>$CONFIG_STATUS <<\_ACEOF | |
24159 | |
24160 # Handling of arguments. | |
24161 for ac_config_target in $ac_config_targets | |
24162 do | |
24163 case $ac_config_target in | |
24164 "io_lib_config.h") CONFIG_HEADERS="$CONFIG_HEADERS io_lib_config.h" ;; | |
24165 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
24166 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24167 "io_lib/Makefile") CONFIG_FILES="$CONFIG_FILES io_lib/Makefile" ;; | |
24168 "progs/Makefile") CONFIG_FILES="$CONFIG_FILES progs/Makefile" ;; | |
24169 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
24170 "io_lib-config") CONFIG_FILES="$CONFIG_FILES io_lib-config" ;; | |
24171 | |
24172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
24173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24174 { (exit 1); exit 1; }; };; | |
24175 esac | |
24176 done | |
24177 | |
24178 | |
24179 # If the user did not use the arguments to specify the items to instantiate, | |
24180 # then the envvar interface is used. Set only those that are not. | |
24181 # We use the long form for the default assignment because of an extremely | |
24182 # bizarre bug on SunOS 4.1.3. | |
24183 if $ac_need_defaults; then | |
24184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24187 fi | |
24188 | |
24189 # Have a temporary directory for convenience. Make it in the build tree | |
24190 # simply because there is no reason against having it here, and in addition, | |
24191 # creating and moving files from /tmp can sometimes cause problems. | |
24192 # Hook for its removal unless debugging. | |
24193 # Note that there is a small window in which the directory will not be cleaned: | |
24194 # after its creation but before its name has been assigned to `$tmp'. | |
24195 $debug || | |
24196 { | |
24197 tmp= | |
24198 trap 'exit_status=$? | |
24199 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
24200 ' 0 | |
24201 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24202 } | |
24203 # Create a (secure) tmp directory for tmp files. | |
24204 | |
24205 { | |
24206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
24207 test -n "$tmp" && test -d "$tmp" | |
24208 } || | |
24209 { | |
24210 tmp=./conf$$-$RANDOM | |
24211 (umask 077 && mkdir "$tmp") | |
24212 } || | |
24213 { | |
24214 echo "$me: cannot create a temporary directory in ." >&2 | |
24215 { (exit 1); exit 1; } | |
24216 } | |
24217 | |
24218 # | |
24219 # Set up the sed scripts for CONFIG_FILES section. | |
24220 # | |
24221 | |
24222 # No need to generate the scripts if there are no CONFIG_FILES. | |
24223 # This happens for instance when ./config.status config.h | |
24224 if test -n "$CONFIG_FILES"; then | |
24225 | |
24226 _ACEOF | |
24227 | |
24228 | |
24229 | |
24230 ac_delim='%!_!# ' | |
24231 for ac_last_try in false false false false false :; do | |
24232 cat >conf$$subs.sed <<_ACEOF | |
24233 SHELL!$SHELL$ac_delim | |
24234 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
24235 PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
24236 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
24237 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
24238 PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
24239 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
24240 exec_prefix!$exec_prefix$ac_delim | |
24241 prefix!$prefix$ac_delim | |
24242 program_transform_name!$program_transform_name$ac_delim | |
24243 bindir!$bindir$ac_delim | |
24244 sbindir!$sbindir$ac_delim | |
24245 libexecdir!$libexecdir$ac_delim | |
24246 datarootdir!$datarootdir$ac_delim | |
24247 datadir!$datadir$ac_delim | |
24248 sysconfdir!$sysconfdir$ac_delim | |
24249 sharedstatedir!$sharedstatedir$ac_delim | |
24250 localstatedir!$localstatedir$ac_delim | |
24251 includedir!$includedir$ac_delim | |
24252 oldincludedir!$oldincludedir$ac_delim | |
24253 docdir!$docdir$ac_delim | |
24254 infodir!$infodir$ac_delim | |
24255 htmldir!$htmldir$ac_delim | |
24256 dvidir!$dvidir$ac_delim | |
24257 pdfdir!$pdfdir$ac_delim | |
24258 psdir!$psdir$ac_delim | |
24259 libdir!$libdir$ac_delim | |
24260 localedir!$localedir$ac_delim | |
24261 mandir!$mandir$ac_delim | |
24262 DEFS!$DEFS$ac_delim | |
24263 ECHO_C!$ECHO_C$ac_delim | |
24264 ECHO_N!$ECHO_N$ac_delim | |
24265 ECHO_T!$ECHO_T$ac_delim | |
24266 LIBS!$LIBS$ac_delim | |
24267 build_alias!$build_alias$ac_delim | |
24268 host_alias!$host_alias$ac_delim | |
24269 target_alias!$target_alias$ac_delim | |
24270 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
24271 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
24272 INSTALL_DATA!$INSTALL_DATA$ac_delim | |
24273 CYGPATH_W!$CYGPATH_W$ac_delim | |
24274 PACKAGE!$PACKAGE$ac_delim | |
24275 VERSION!$VERSION$ac_delim | |
24276 ACLOCAL!$ACLOCAL$ac_delim | |
24277 AUTOCONF!$AUTOCONF$ac_delim | |
24278 AUTOMAKE!$AUTOMAKE$ac_delim | |
24279 AUTOHEADER!$AUTOHEADER$ac_delim | |
24280 MAKEINFO!$MAKEINFO$ac_delim | |
24281 install_sh!$install_sh$ac_delim | |
24282 STRIP!$STRIP$ac_delim | |
24283 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
24284 mkdir_p!$mkdir_p$ac_delim | |
24285 AWK!$AWK$ac_delim | |
24286 SET_MAKE!$SET_MAKE$ac_delim | |
24287 am__leading_dot!$am__leading_dot$ac_delim | |
24288 AMTAR!$AMTAR$ac_delim | |
24289 am__tar!$am__tar$ac_delim | |
24290 am__untar!$am__untar$ac_delim | |
24291 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
24292 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
24293 MAINT!$MAINT$ac_delim | |
24294 VERS_CURRENT!$VERS_CURRENT$ac_delim | |
24295 VERS_REVISION!$VERS_REVISION$ac_delim | |
24296 VERS_AGE!$VERS_AGE$ac_delim | |
24297 CC!$CC$ac_delim | |
24298 CFLAGS!$CFLAGS$ac_delim | |
24299 LDFLAGS!$LDFLAGS$ac_delim | |
24300 CPPFLAGS!$CPPFLAGS$ac_delim | |
24301 ac_ct_CC!$ac_ct_CC$ac_delim | |
24302 EXEEXT!$EXEEXT$ac_delim | |
24303 OBJEXT!$OBJEXT$ac_delim | |
24304 DEPDIR!$DEPDIR$ac_delim | |
24305 am__include!$am__include$ac_delim | |
24306 am__quote!$am__quote$ac_delim | |
24307 AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
24308 AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
24309 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
24310 CCDEPMODE!$CCDEPMODE$ac_delim | |
24311 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
24312 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
24313 build!$build$ac_delim | |
24314 build_cpu!$build_cpu$ac_delim | |
24315 build_vendor!$build_vendor$ac_delim | |
24316 build_os!$build_os$ac_delim | |
24317 host!$host$ac_delim | |
24318 host_cpu!$host_cpu$ac_delim | |
24319 host_vendor!$host_vendor$ac_delim | |
24320 host_os!$host_os$ac_delim | |
24321 GREP!$GREP$ac_delim | |
24322 EGREP!$EGREP$ac_delim | |
24323 LN_S!$LN_S$ac_delim | |
24324 ECHO!$ECHO$ac_delim | |
24325 AR!$AR$ac_delim | |
24326 RANLIB!$RANLIB$ac_delim | |
24327 CPP!$CPP$ac_delim | |
24328 CXX!$CXX$ac_delim | |
24329 CXXFLAGS!$CXXFLAGS$ac_delim | |
24330 _ACEOF | |
24331 | |
24332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
24333 break | |
24334 elif $ac_last_try; then | |
24335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24337 { (exit 1); exit 1; }; } | |
24338 else | |
24339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24340 fi | |
24341 done | |
24342 | |
24343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24344 if test -n "$ac_eof"; then | |
24345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24346 ac_eof=`expr $ac_eof + 1` | |
24347 fi | |
24348 | |
24349 cat >>$CONFIG_STATUS <<_ACEOF | |
24350 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
24351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24352 _ACEOF | |
24353 sed ' | |
24354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24355 s/^/s,@/; s/!/@,|#_!!_#|/ | |
24356 :n | |
24357 t n | |
24358 s/'"$ac_delim"'$/,g/; t | |
24359 s/$/\\/; p | |
24360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24361 ' >>$CONFIG_STATUS <conf$$subs.sed | |
24362 rm -f conf$$subs.sed | |
24363 cat >>$CONFIG_STATUS <<_ACEOF | |
24364 CEOF$ac_eof | |
24365 _ACEOF | |
24366 | |
24367 | |
24368 ac_delim='%!_!# ' | |
24369 for ac_last_try in false false false false false :; do | |
24370 cat >conf$$subs.sed <<_ACEOF | |
24371 ac_ct_CXX!$ac_ct_CXX$ac_delim | |
24372 CXXDEPMODE!$CXXDEPMODE$ac_delim | |
24373 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
24374 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
24375 CXXCPP!$CXXCPP$ac_delim | |
24376 F77!$F77$ac_delim | |
24377 FFLAGS!$FFLAGS$ac_delim | |
24378 ac_ct_F77!$ac_ct_F77$ac_delim | |
24379 LIBTOOL!$LIBTOOL$ac_delim | |
24380 _libcurl_config!$_libcurl_config$ac_delim | |
24381 LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim | |
24382 LIBCURL!$LIBCURL$ac_delim | |
24383 LIBZ!$LIBZ$ac_delim | |
24384 HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim | |
24385 HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim | |
24386 LIBOBJS!$LIBOBJS$ac_delim | |
24387 LTLIBOBJS!$LTLIBOBJS$ac_delim | |
24388 _ACEOF | |
24389 | |
24390 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then | |
24391 break | |
24392 elif $ac_last_try; then | |
24393 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24394 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24395 { (exit 1); exit 1; }; } | |
24396 else | |
24397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24398 fi | |
24399 done | |
24400 | |
24401 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24402 if test -n "$ac_eof"; then | |
24403 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24404 ac_eof=`expr $ac_eof + 1` | |
24405 fi | |
24406 | |
24407 cat >>$CONFIG_STATUS <<_ACEOF | |
24408 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
24409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
24410 _ACEOF | |
24411 sed ' | |
24412 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24413 s/^/s,@/; s/!/@,|#_!!_#|/ | |
24414 :n | |
24415 t n | |
24416 s/'"$ac_delim"'$/,g/; t | |
24417 s/$/\\/; p | |
24418 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24419 ' >>$CONFIG_STATUS <conf$$subs.sed | |
24420 rm -f conf$$subs.sed | |
24421 cat >>$CONFIG_STATUS <<_ACEOF | |
24422 :end | |
24423 s/|#_!!_#|//g | |
24424 CEOF$ac_eof | |
24425 _ACEOF | |
24426 | |
24427 | |
24428 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24429 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24430 # trailing colons and then remove the whole line if VPATH becomes empty | |
24431 # (actually we leave an empty line to preserve line numbers). | |
24432 if test "x$srcdir" = x.; then | |
24433 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24434 s/:*\$(srcdir):*/:/ | |
24435 s/:*\${srcdir}:*/:/ | |
24436 s/:*@srcdir@:*/:/ | |
24437 s/^\([^=]*=[ ]*\):*/\1/ | |
24438 s/:*$// | |
24439 s/^[^=]*=[ ]*$// | |
24440 }' | |
24441 fi | |
24442 | |
24443 cat >>$CONFIG_STATUS <<\_ACEOF | |
24444 fi # test -n "$CONFIG_FILES" | |
24445 | |
24446 | |
24447 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
24448 do | |
24449 case $ac_tag in | |
24450 :[FHLC]) ac_mode=$ac_tag; continue;; | |
24451 esac | |
24452 case $ac_mode$ac_tag in | |
24453 :[FHL]*:*);; | |
24454 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
24455 echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
24456 { (exit 1); exit 1; }; };; | |
24457 :[FH]-) ac_tag=-:-;; | |
24458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
24459 esac | |
24460 ac_save_IFS=$IFS | |
24461 IFS=: | |
24462 set x $ac_tag | |
24463 IFS=$ac_save_IFS | |
24464 shift | |
24465 ac_file=$1 | |
24466 shift | |
24467 | |
24468 case $ac_mode in | |
24469 :L) ac_source=$1;; | |
24470 :[FH]) | |
24471 ac_file_inputs= | |
24472 for ac_f | |
24473 do | |
24474 case $ac_f in | |
24475 -) ac_f="$tmp/stdin";; | |
24476 *) # Look for the file first in the build tree, then in the source tree | |
24477 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
24478 # because $ac_f cannot contain `:'. | |
24479 test -f "$ac_f" || | |
24480 case $ac_f in | |
24481 [\\/$]*) false;; | |
24482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
24483 esac || | |
24484 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
24485 echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
24486 { (exit 1); exit 1; }; };; | |
24487 esac | |
24488 ac_file_inputs="$ac_file_inputs $ac_f" | |
24489 done | |
24490 | |
24491 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24492 # use $as_me), people would be surprised to read: | |
24493 # /* config.h. Generated by config.status. */ | |
24494 configure_input="Generated from "`IFS=: | |
24495 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
24496 if test x"$ac_file" != x-; then | |
24497 configure_input="$ac_file. $configure_input" | |
24498 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24499 echo "$as_me: creating $ac_file" >&6;} | |
24500 fi | |
24501 | |
24502 case $ac_tag in | |
24503 *:-:* | *:-) cat >"$tmp/stdin";; | |
24504 esac | |
24505 ;; | |
24506 esac | |
24507 | |
24508 ac_dir=`$as_dirname -- "$ac_file" || | |
24509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24510 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24511 X"$ac_file" : 'X\(//\)$' \| \ | |
24512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
24513 echo X"$ac_file" | | |
24514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24515 s//\1/ | |
24516 q | |
24517 } | |
24518 /^X\(\/\/\)[^/].*/{ | |
24519 s//\1/ | |
24520 q | |
24521 } | |
24522 /^X\(\/\/\)$/{ | |
24523 s//\1/ | |
24524 q | |
24525 } | |
24526 /^X\(\/\).*/{ | |
24527 s//\1/ | |
24528 q | |
24529 } | |
24530 s/.*/./; q'` | |
24531 { as_dir="$ac_dir" | |
24532 case $as_dir in #( | |
24533 -*) as_dir=./$as_dir;; | |
24534 esac | |
24535 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
24536 as_dirs= | |
24537 while :; do | |
24538 case $as_dir in #( | |
24539 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
24540 *) as_qdir=$as_dir;; | |
24541 esac | |
24542 as_dirs="'$as_qdir' $as_dirs" | |
24543 as_dir=`$as_dirname -- "$as_dir" || | |
24544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24545 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24546 X"$as_dir" : 'X\(//\)$' \| \ | |
24547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
24548 echo X"$as_dir" | | |
24549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24550 s//\1/ | |
24551 q | |
24552 } | |
24553 /^X\(\/\/\)[^/].*/{ | |
24554 s//\1/ | |
24555 q | |
24556 } | |
24557 /^X\(\/\/\)$/{ | |
24558 s//\1/ | |
24559 q | |
24560 } | |
24561 /^X\(\/\).*/{ | |
24562 s//\1/ | |
24563 q | |
24564 } | |
24565 s/.*/./; q'` | |
24566 test -d "$as_dir" && break | |
24567 done | |
24568 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
24569 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
24570 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
24571 { (exit 1); exit 1; }; }; } | |
24572 ac_builddir=. | |
24573 | |
24574 case "$ac_dir" in | |
24575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24576 *) | |
24577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
24578 # A ".." for each directory in $ac_dir_suffix. | |
24579 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
24580 case $ac_top_builddir_sub in | |
24581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
24583 esac ;; | |
24584 esac | |
24585 ac_abs_top_builddir=$ac_pwd | |
24586 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
24587 # for backward compatibility: | |
24588 ac_top_builddir=$ac_top_build_prefix | |
24589 | |
24590 case $srcdir in | |
24591 .) # We are building in place. | |
24592 ac_srcdir=. | |
24593 ac_top_srcdir=$ac_top_builddir_sub | |
24594 ac_abs_top_srcdir=$ac_pwd ;; | |
24595 [\\/]* | ?:[\\/]* ) # Absolute name. | |
24596 ac_srcdir=$srcdir$ac_dir_suffix; | |
24597 ac_top_srcdir=$srcdir | |
24598 ac_abs_top_srcdir=$srcdir ;; | |
24599 *) # Relative name. | |
24600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
24601 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
24602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
24603 esac | |
24604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
24605 | |
24606 | |
24607 case $ac_mode in | |
24608 :F) | |
24609 # | |
24610 # CONFIG_FILE | |
24611 # | |
24612 | |
24613 case $INSTALL in | |
24614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
24615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
24616 esac | |
24617 _ACEOF | |
24618 | |
24619 cat >>$CONFIG_STATUS <<\_ACEOF | |
24620 # If the template does not know about datarootdir, expand it. | |
24621 # FIXME: This hack should be removed a few years after 2.60. | |
24622 ac_datarootdir_hack=; ac_datarootdir_seen= | |
24623 | |
24624 case `sed -n '/datarootdir/ { | |
24625 p | |
24626 q | |
24627 } | |
24628 /@datadir@/p | |
24629 /@docdir@/p | |
24630 /@infodir@/p | |
24631 /@localedir@/p | |
24632 /@mandir@/p | |
24633 ' $ac_file_inputs` in | |
24634 *datarootdir*) ac_datarootdir_seen=yes;; | |
24635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
24636 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
24637 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
24638 _ACEOF | |
24639 cat >>$CONFIG_STATUS <<_ACEOF | |
24640 ac_datarootdir_hack=' | |
24641 s&@datadir@&$datadir&g | |
24642 s&@docdir@&$docdir&g | |
24643 s&@infodir@&$infodir&g | |
24644 s&@localedir@&$localedir&g | |
24645 s&@mandir@&$mandir&g | |
24646 s&\\\${datarootdir}&$datarootdir&g' ;; | |
24647 esac | |
24648 _ACEOF | |
24649 | |
24650 # Neutralize VPATH when `$srcdir' = `.'. | |
24651 # Shell code in configure.ac might set extrasub. | |
24652 # FIXME: do we really want to maintain this feature? | |
24653 cat >>$CONFIG_STATUS <<_ACEOF | |
24654 sed "$ac_vpsub | |
24655 $extrasub | |
24656 _ACEOF | |
24657 cat >>$CONFIG_STATUS <<\_ACEOF | |
24658 :t | |
24659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24660 s&@configure_input@&$configure_input&;t t | |
24661 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
24662 s&@srcdir@&$ac_srcdir&;t t | |
24663 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
24664 s&@top_srcdir@&$ac_top_srcdir&;t t | |
24665 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
24666 s&@builddir@&$ac_builddir&;t t | |
24667 s&@abs_builddir@&$ac_abs_builddir&;t t | |
24668 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
24669 s&@INSTALL@&$ac_INSTALL&;t t | |
24670 $ac_datarootdir_hack | |
24671 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
24672 | |
24673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
24674 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
24675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
24676 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24677 which seems to be undefined. Please make sure it is defined." >&5 | |
24678 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24679 which seems to be undefined. Please make sure it is defined." >&2;} | |
24680 | |
24681 rm -f "$tmp/stdin" | |
24682 case $ac_file in | |
24683 -) cat "$tmp/out"; rm -f "$tmp/out";; | |
24684 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
24685 esac | |
24686 ;; | |
24687 :H) | |
24688 # | |
24689 # CONFIG_HEADER | |
24690 # | |
24691 _ACEOF | |
24692 | |
24693 # Transform confdefs.h into a sed script `conftest.defines', that | |
24694 # substitutes the proper values into config.h.in to produce config.h. | |
24695 rm -f conftest.defines conftest.tail | |
24696 # First, append a space to every undef/define line, to ease matching. | |
24697 echo 's/$/ /' >conftest.defines | |
24698 # Then, protect against being on the right side of a sed subst, or in | |
24699 # an unquoted here document, in config.status. If some macros were | |
24700 # called several times there might be several #defines for the same | |
24701 # symbol, which is useless. But do not sort them, since the last | |
24702 # AC_DEFINE must be honored. | |
24703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
24704 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
24705 # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
24706 # PARAMS is the parameter list in the macro definition--in most cases, it's | |
24707 # just an empty string. | |
24708 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
24709 ac_dB='\\)[ (].*,\\1define\\2' | |
24710 ac_dC=' ' | |
24711 ac_dD=' ,' | |
24712 | |
24713 uniq confdefs.h | | |
24714 sed -n ' | |
24715 t rset | |
24716 :rset | |
24717 s/^[ ]*#[ ]*define[ ][ ]*// | |
24718 t ok | |
24719 d | |
24720 :ok | |
24721 s/[\\&,]/\\&/g | |
24722 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
24723 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
24724 ' >>conftest.defines | |
24725 | |
24726 # Remove the space that was appended to ease matching. | |
24727 # Then replace #undef with comments. This is necessary, for | |
24728 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
24729 # on some systems where configure will not decide to define it. | |
24730 # (The regexp can be short, since the line contains either #define or #undef.) | |
24731 echo 's/ $// | |
24732 s,^[ #]*u.*,/* & */,' >>conftest.defines | |
24733 | |
24734 # Break up conftest.defines: | |
24735 ac_max_sed_lines=50 | |
24736 | |
24737 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
24738 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
24739 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
24740 # et cetera. | |
24741 ac_in='$ac_file_inputs' | |
24742 ac_out='"$tmp/out1"' | |
24743 ac_nxt='"$tmp/out2"' | |
24744 | |
24745 while : | |
24746 do | |
24747 # Write a here document: | |
24748 cat >>$CONFIG_STATUS <<_ACEOF | |
24749 # First, check the format of the line: | |
24750 cat >"\$tmp/defines.sed" <<\\CEOF | |
24751 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
24752 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
24753 b | |
24754 :def | |
24755 _ACEOF | |
24756 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
24757 echo 'CEOF | |
24758 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
24759 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
24760 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
24761 grep . conftest.tail >/dev/null || break | |
24762 rm -f conftest.defines | |
24763 mv conftest.tail conftest.defines | |
24764 done | |
24765 rm -f conftest.defines conftest.tail | |
24766 | |
24767 echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
24768 cat >>$CONFIG_STATUS <<\_ACEOF | |
24769 if test x"$ac_file" != x-; then | |
24770 echo "/* $configure_input */" >"$tmp/config.h" | |
24771 cat "$ac_result" >>"$tmp/config.h" | |
24772 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
24773 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
24774 echo "$as_me: $ac_file is unchanged" >&6;} | |
24775 else | |
24776 rm -f $ac_file | |
24777 mv "$tmp/config.h" $ac_file | |
24778 fi | |
24779 else | |
24780 echo "/* $configure_input */" | |
24781 cat "$ac_result" | |
24782 fi | |
24783 rm -f "$tmp/out12" | |
24784 # Compute $ac_file's index in $config_headers. | |
24785 _am_stamp_count=1 | |
24786 for _am_header in $config_headers :; do | |
24787 case $_am_header in | |
24788 $ac_file | $ac_file:* ) | |
24789 break ;; | |
24790 * ) | |
24791 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
24792 esac | |
24793 done | |
24794 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | |
24795 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24796 X$ac_file : 'X\(//\)[^/]' \| \ | |
24797 X$ac_file : 'X\(//\)$' \| \ | |
24798 X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
24799 echo X$ac_file | | |
24800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24801 s//\1/ | |
24802 q | |
24803 } | |
24804 /^X\(\/\/\)[^/].*/{ | |
24805 s//\1/ | |
24806 q | |
24807 } | |
24808 /^X\(\/\/\)$/{ | |
24809 s//\1/ | |
24810 q | |
24811 } | |
24812 /^X\(\/\).*/{ | |
24813 s//\1/ | |
24814 q | |
24815 } | |
24816 s/.*/./; q'`/stamp-h$_am_stamp_count | |
24817 ;; | |
24818 | |
24819 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
24820 echo "$as_me: executing $ac_file commands" >&6;} | |
24821 ;; | |
24822 esac | |
24823 | |
24824 | |
24825 case $ac_file$ac_mode in | |
24826 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
24827 # Strip MF so we end up with the name of the file. | |
24828 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
24829 # Check whether this is an Automake generated Makefile or not. | |
24830 # We used to match only the files named `Makefile.in', but | |
24831 # some people rename them; so instead we look at the file content. | |
24832 # Grep'ing the first line is not enough: some people post-process | |
24833 # each Makefile.in and add a new line on top of each file to say so. | |
24834 # So let's grep whole file. | |
24835 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
24836 dirpart=`$as_dirname -- "$mf" || | |
24837 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24838 X"$mf" : 'X\(//\)[^/]' \| \ | |
24839 X"$mf" : 'X\(//\)$' \| \ | |
24840 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
24841 echo X"$mf" | | |
24842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24843 s//\1/ | |
24844 q | |
24845 } | |
24846 /^X\(\/\/\)[^/].*/{ | |
24847 s//\1/ | |
24848 q | |
24849 } | |
24850 /^X\(\/\/\)$/{ | |
24851 s//\1/ | |
24852 q | |
24853 } | |
24854 /^X\(\/\).*/{ | |
24855 s//\1/ | |
24856 q | |
24857 } | |
24858 s/.*/./; q'` | |
24859 else | |
24860 continue | |
24861 fi | |
24862 # Extract the definition of DEPDIR, am__include, and am__quote | |
24863 # from the Makefile without running `make'. | |
24864 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
24865 test -z "$DEPDIR" && continue | |
24866 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
24867 test -z "am__include" && continue | |
24868 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
24869 # When using ansi2knr, U may be empty or an underscore; expand it | |
24870 U=`sed -n 's/^U = //p' < "$mf"` | |
24871 # Find all dependency output files, they are included files with | |
24872 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
24873 # simplest approach to changing $(DEPDIR) to its actual value in the | |
24874 # expansion. | |
24875 for file in `sed -n " | |
24876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
24877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
24878 # Make sure the directory exists. | |
24879 test -f "$dirpart/$file" && continue | |
24880 fdir=`$as_dirname -- "$file" || | |
24881 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24882 X"$file" : 'X\(//\)[^/]' \| \ | |
24883 X"$file" : 'X\(//\)$' \| \ | |
24884 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
24885 echo X"$file" | | |
24886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24887 s//\1/ | |
24888 q | |
24889 } | |
24890 /^X\(\/\/\)[^/].*/{ | |
24891 s//\1/ | |
24892 q | |
24893 } | |
24894 /^X\(\/\/\)$/{ | |
24895 s//\1/ | |
24896 q | |
24897 } | |
24898 /^X\(\/\).*/{ | |
24899 s//\1/ | |
24900 q | |
24901 } | |
24902 s/.*/./; q'` | |
24903 { as_dir=$dirpart/$fdir | |
24904 case $as_dir in #( | |
24905 -*) as_dir=./$as_dir;; | |
24906 esac | |
24907 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
24908 as_dirs= | |
24909 while :; do | |
24910 case $as_dir in #( | |
24911 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
24912 *) as_qdir=$as_dir;; | |
24913 esac | |
24914 as_dirs="'$as_qdir' $as_dirs" | |
24915 as_dir=`$as_dirname -- "$as_dir" || | |
24916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24917 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24918 X"$as_dir" : 'X\(//\)$' \| \ | |
24919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
24920 echo X"$as_dir" | | |
24921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24922 s//\1/ | |
24923 q | |
24924 } | |
24925 /^X\(\/\/\)[^/].*/{ | |
24926 s//\1/ | |
24927 q | |
24928 } | |
24929 /^X\(\/\/\)$/{ | |
24930 s//\1/ | |
24931 q | |
24932 } | |
24933 /^X\(\/\).*/{ | |
24934 s//\1/ | |
24935 q | |
24936 } | |
24937 s/.*/./; q'` | |
24938 test -d "$as_dir" && break | |
24939 done | |
24940 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
24941 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
24942 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
24943 { (exit 1); exit 1; }; }; } | |
24944 # echo "creating $dirpart/$file" | |
24945 echo '# dummy' > "$dirpart/$file" | |
24946 done | |
24947 done | |
24948 ;; | |
24949 | |
24950 esac | |
24951 done # for ac_tag | |
24952 | |
24953 | |
24954 { (exit 0); exit 0; } | |
24955 _ACEOF | |
24956 chmod +x $CONFIG_STATUS | |
24957 ac_clean_files=$ac_clean_files_save | |
24958 | |
24959 | |
24960 # configure is writing to config.log, and then calls config.status. | |
24961 # config.status does its own redirection, appending to config.log. | |
24962 # Unfortunately, on DOS this fails, as config.log is still kept open | |
24963 # by configure, so config.status won't be able to write to it; its | |
24964 # output is simply discarded. So we exec the FD to /dev/null, | |
24965 # effectively closing config.log, so it can be properly (re)opened and | |
24966 # appended to by config.status. When coming back to configure, we | |
24967 # need to make the FD available again. | |
24968 if test "$no_create" != yes; then | |
24969 ac_cs_success=: | |
24970 ac_config_status_args= | |
24971 test "$silent" = yes && | |
24972 ac_config_status_args="$ac_config_status_args --quiet" | |
24973 exec 5>/dev/null | |
24974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24975 exec 5>>config.log | |
24976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24977 # would make configure fail if this is the last instruction. | |
24978 $ac_cs_success || { (exit 1); exit 1; } | |
24979 fi | |
24980 |