|
1 #! /bin/sh |
|
2 # Guess values for system-dependent variables and create Makefiles. |
|
3 # Generated by GNU Autoconf 2.61 for PCRE 7.8. |
|
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='PCRE' |
|
728 PACKAGE_TARNAME='pcre' |
|
729 PACKAGE_VERSION='7.8' |
|
730 PACKAGE_STRING='PCRE 7.8' |
|
731 PACKAGE_BUGREPORT='' |
|
732 |
|
733 ac_unique_file="pcre.h.in" |
|
734 # Factoring default headers for most tests. |
|
735 ac_includes_default="\ |
|
736 #include <stdio.h> |
|
737 #ifdef HAVE_SYS_TYPES_H |
|
738 # include <sys/types.h> |
|
739 #endif |
|
740 #ifdef HAVE_SYS_STAT_H |
|
741 # include <sys/stat.h> |
|
742 #endif |
|
743 #ifdef STDC_HEADERS |
|
744 # include <stdlib.h> |
|
745 # include <stddef.h> |
|
746 #else |
|
747 # ifdef HAVE_STDLIB_H |
|
748 # include <stdlib.h> |
|
749 # endif |
|
750 #endif |
|
751 #ifdef HAVE_STRING_H |
|
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
753 # include <memory.h> |
|
754 # endif |
|
755 # include <string.h> |
|
756 #endif |
|
757 #ifdef HAVE_STRINGS_H |
|
758 # include <strings.h> |
|
759 #endif |
|
760 #ifdef HAVE_INTTYPES_H |
|
761 # include <inttypes.h> |
|
762 #endif |
|
763 #ifdef HAVE_STDINT_H |
|
764 # include <stdint.h> |
|
765 #endif |
|
766 #ifdef HAVE_UNISTD_H |
|
767 # include <unistd.h> |
|
768 #endif" |
|
769 |
|
770 ac_subst_vars='SHELL |
|
771 PATH_SEPARATOR |
|
772 PACKAGE_NAME |
|
773 PACKAGE_TARNAME |
|
774 PACKAGE_VERSION |
|
775 PACKAGE_STRING |
|
776 PACKAGE_BUGREPORT |
|
777 exec_prefix |
|
778 prefix |
|
779 program_transform_name |
|
780 bindir |
|
781 sbindir |
|
782 libexecdir |
|
783 datarootdir |
|
784 datadir |
|
785 sysconfdir |
|
786 sharedstatedir |
|
787 localstatedir |
|
788 includedir |
|
789 oldincludedir |
|
790 docdir |
|
791 infodir |
|
792 htmldir |
|
793 dvidir |
|
794 pdfdir |
|
795 psdir |
|
796 libdir |
|
797 localedir |
|
798 mandir |
|
799 DEFS |
|
800 ECHO_C |
|
801 ECHO_N |
|
802 ECHO_T |
|
803 LIBS |
|
804 build_alias |
|
805 host_alias |
|
806 target_alias |
|
807 INSTALL_PROGRAM |
|
808 INSTALL_SCRIPT |
|
809 INSTALL_DATA |
|
810 am__isrc |
|
811 CYGPATH_W |
|
812 PACKAGE |
|
813 VERSION |
|
814 ACLOCAL |
|
815 AUTOCONF |
|
816 AUTOMAKE |
|
817 AUTOHEADER |
|
818 MAKEINFO |
|
819 install_sh |
|
820 STRIP |
|
821 INSTALL_STRIP_PROGRAM |
|
822 mkdir_p |
|
823 AWK |
|
824 SET_MAKE |
|
825 am__leading_dot |
|
826 AMTAR |
|
827 am__tar |
|
828 am__untar |
|
829 CC |
|
830 CFLAGS |
|
831 LDFLAGS |
|
832 CPPFLAGS |
|
833 ac_ct_CC |
|
834 EXEEXT |
|
835 OBJEXT |
|
836 DEPDIR |
|
837 am__include |
|
838 am__quote |
|
839 AMDEP_TRUE |
|
840 AMDEP_FALSE |
|
841 AMDEPBACKSLASH |
|
842 CCDEPMODE |
|
843 am__fastdepCC_TRUE |
|
844 am__fastdepCC_FALSE |
|
845 CXX |
|
846 CXXFLAGS |
|
847 ac_ct_CXX |
|
848 CXXDEPMODE |
|
849 am__fastdepCXX_TRUE |
|
850 am__fastdepCXX_FALSE |
|
851 build |
|
852 build_cpu |
|
853 build_vendor |
|
854 build_os |
|
855 host |
|
856 host_cpu |
|
857 host_vendor |
|
858 host_os |
|
859 SED |
|
860 GREP |
|
861 EGREP |
|
862 LN_S |
|
863 ECHO |
|
864 AR |
|
865 RANLIB |
|
866 DSYMUTIL |
|
867 NMEDIT |
|
868 DLLTOOL |
|
869 AS |
|
870 OBJDUMP |
|
871 CPP |
|
872 CXXCPP |
|
873 F77 |
|
874 FFLAGS |
|
875 ac_ct_F77 |
|
876 LIBTOOL |
|
877 PCRE_MAJOR |
|
878 PCRE_MINOR |
|
879 PCRE_PRERELEASE |
|
880 PCRE_DATE |
|
881 pcre_have_type_traits |
|
882 pcre_have_bits_type_traits |
|
883 WITH_PCRE_CPP_TRUE |
|
884 WITH_PCRE_CPP_FALSE |
|
885 WITH_REBUILD_CHARTABLES_TRUE |
|
886 WITH_REBUILD_CHARTABLES_FALSE |
|
887 pcre_have_long_long |
|
888 pcre_have_ulong_long |
|
889 EXTRA_LIBPCRE_LDFLAGS |
|
890 EXTRA_LIBPCREPOSIX_LDFLAGS |
|
891 EXTRA_LIBPCRECPP_LDFLAGS |
|
892 DISTCHECK_CONFIGURE_FLAGS |
|
893 LIBOBJS |
|
894 LTLIBOBJS' |
|
895 ac_subst_files='' |
|
896 ac_precious_vars='build_alias |
|
897 host_alias |
|
898 target_alias |
|
899 CC |
|
900 CFLAGS |
|
901 LDFLAGS |
|
902 LIBS |
|
903 CPPFLAGS |
|
904 CXX |
|
905 CXXFLAGS |
|
906 CCC |
|
907 CPP |
|
908 CXXCPP |
|
909 F77 |
|
910 FFLAGS' |
|
911 |
|
912 |
|
913 # Initialize some variables set by options. |
|
914 ac_init_help= |
|
915 ac_init_version=false |
|
916 # The variables have the same names as the options, with |
|
917 # dashes changed to underlines. |
|
918 cache_file=/dev/null |
|
919 exec_prefix=NONE |
|
920 no_create= |
|
921 no_recursion= |
|
922 prefix=NONE |
|
923 program_prefix=NONE |
|
924 program_suffix=NONE |
|
925 program_transform_name=s,x,x, |
|
926 silent= |
|
927 site= |
|
928 srcdir= |
|
929 verbose= |
|
930 x_includes=NONE |
|
931 x_libraries=NONE |
|
932 |
|
933 # Installation directory options. |
|
934 # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
935 # and all the variables that are supposed to be based on exec_prefix |
|
936 # by default will actually change. |
|
937 # Use braces instead of parens because sh, perl, etc. also accept them. |
|
938 # (The list follows the same order as the GNU Coding Standards.) |
|
939 bindir='${exec_prefix}/bin' |
|
940 sbindir='${exec_prefix}/sbin' |
|
941 libexecdir='${exec_prefix}/libexec' |
|
942 datarootdir='${prefix}/share' |
|
943 datadir='${datarootdir}' |
|
944 sysconfdir='${prefix}/etc' |
|
945 sharedstatedir='${prefix}/com' |
|
946 localstatedir='${prefix}/var' |
|
947 includedir='${prefix}/include' |
|
948 oldincludedir='/usr/include' |
|
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
|
950 infodir='${datarootdir}/info' |
|
951 htmldir='${docdir}' |
|
952 dvidir='${docdir}' |
|
953 pdfdir='${docdir}' |
|
954 psdir='${docdir}' |
|
955 libdir='${exec_prefix}/lib' |
|
956 localedir='${datarootdir}/locale' |
|
957 mandir='${datarootdir}/man' |
|
958 |
|
959 ac_prev= |
|
960 ac_dashdash= |
|
961 for ac_option |
|
962 do |
|
963 # If the previous option needs an argument, assign it. |
|
964 if test -n "$ac_prev"; then |
|
965 eval $ac_prev=\$ac_option |
|
966 ac_prev= |
|
967 continue |
|
968 fi |
|
969 |
|
970 case $ac_option in |
|
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
972 *) ac_optarg=yes ;; |
|
973 esac |
|
974 |
|
975 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
976 |
|
977 case $ac_dashdash$ac_option in |
|
978 --) |
|
979 ac_dashdash=yes ;; |
|
980 |
|
981 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
982 ac_prev=bindir ;; |
|
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
984 bindir=$ac_optarg ;; |
|
985 |
|
986 -build | --build | --buil | --bui | --bu) |
|
987 ac_prev=build_alias ;; |
|
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
989 build_alias=$ac_optarg ;; |
|
990 |
|
991 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
993 ac_prev=cache_file ;; |
|
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
996 cache_file=$ac_optarg ;; |
|
997 |
|
998 --config-cache | -C) |
|
999 cache_file=config.cache ;; |
|
1000 |
|
1001 -datadir | --datadir | --datadi | --datad) |
|
1002 ac_prev=datadir ;; |
|
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
1004 datadir=$ac_optarg ;; |
|
1005 |
|
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
1007 | --dataroo | --dataro | --datar) |
|
1008 ac_prev=datarootdir ;; |
|
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
1011 datarootdir=$ac_optarg ;; |
|
1012 |
|
1013 -disable-* | --disable-*) |
|
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
1015 # Reject names that are not valid shell variable names. |
|
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
1018 { (exit 1); exit 1; }; } |
|
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
|
1020 eval enable_$ac_feature=no ;; |
|
1021 |
|
1022 -docdir | --docdir | --docdi | --doc | --do) |
|
1023 ac_prev=docdir ;; |
|
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
1025 docdir=$ac_optarg ;; |
|
1026 |
|
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
1028 ac_prev=dvidir ;; |
|
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
1030 dvidir=$ac_optarg ;; |
|
1031 |
|
1032 -enable-* | --enable-*) |
|
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
1034 # Reject names that are not valid shell variable names. |
|
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
1037 { (exit 1); exit 1; }; } |
|
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
|
1039 eval enable_$ac_feature=\$ac_optarg ;; |
|
1040 |
|
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
1043 | --exec | --exe | --ex) |
|
1044 ac_prev=exec_prefix ;; |
|
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
1047 | --exec=* | --exe=* | --ex=*) |
|
1048 exec_prefix=$ac_optarg ;; |
|
1049 |
|
1050 -gas | --gas | --ga | --g) |
|
1051 # Obsolete; use --with-gas. |
|
1052 with_gas=yes ;; |
|
1053 |
|
1054 -help | --help | --hel | --he | -h) |
|
1055 ac_init_help=long ;; |
|
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1057 ac_init_help=recursive ;; |
|
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1059 ac_init_help=short ;; |
|
1060 |
|
1061 -host | --host | --hos | --ho) |
|
1062 ac_prev=host_alias ;; |
|
1063 -host=* | --host=* | --hos=* | --ho=*) |
|
1064 host_alias=$ac_optarg ;; |
|
1065 |
|
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
1067 ac_prev=htmldir ;; |
|
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1069 | --ht=*) |
|
1070 htmldir=$ac_optarg ;; |
|
1071 |
|
1072 -includedir | --includedir | --includedi | --included | --include \ |
|
1073 | --includ | --inclu | --incl | --inc) |
|
1074 ac_prev=includedir ;; |
|
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1076 | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1077 includedir=$ac_optarg ;; |
|
1078 |
|
1079 -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1080 ac_prev=infodir ;; |
|
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1082 infodir=$ac_optarg ;; |
|
1083 |
|
1084 -libdir | --libdir | --libdi | --libd) |
|
1085 ac_prev=libdir ;; |
|
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1087 libdir=$ac_optarg ;; |
|
1088 |
|
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1090 | --libexe | --libex | --libe) |
|
1091 ac_prev=libexecdir ;; |
|
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1093 | --libexe=* | --libex=* | --libe=*) |
|
1094 libexecdir=$ac_optarg ;; |
|
1095 |
|
1096 -localedir | --localedir | --localedi | --localed | --locale) |
|
1097 ac_prev=localedir ;; |
|
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1099 localedir=$ac_optarg ;; |
|
1100 |
|
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
1102 | --localstate | --localstat | --localsta | --localst | --locals) |
|
1103 ac_prev=localstatedir ;; |
|
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
1106 localstatedir=$ac_optarg ;; |
|
1107 |
|
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1109 ac_prev=mandir ;; |
|
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1111 mandir=$ac_optarg ;; |
|
1112 |
|
1113 -nfp | --nfp | --nf) |
|
1114 # Obsolete; use --without-fp. |
|
1115 with_fp=no ;; |
|
1116 |
|
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1118 | --no-cr | --no-c | -n) |
|
1119 no_create=yes ;; |
|
1120 |
|
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1123 no_recursion=yes ;; |
|
1124 |
|
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1127 | --oldin | --oldi | --old | --ol | --o) |
|
1128 ac_prev=oldincludedir ;; |
|
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1132 oldincludedir=$ac_optarg ;; |
|
1133 |
|
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1135 ac_prev=prefix ;; |
|
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1137 prefix=$ac_optarg ;; |
|
1138 |
|
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1140 | --program-pre | --program-pr | --program-p) |
|
1141 ac_prev=program_prefix ;; |
|
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1144 program_prefix=$ac_optarg ;; |
|
1145 |
|
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1147 | --program-suf | --program-su | --program-s) |
|
1148 ac_prev=program_suffix ;; |
|
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1151 program_suffix=$ac_optarg ;; |
|
1152 |
|
1153 -program-transform-name | --program-transform-name \ |
|
1154 | --program-transform-nam | --program-transform-na \ |
|
1155 | --program-transform-n | --program-transform- \ |
|
1156 | --program-transform | --program-transfor \ |
|
1157 | --program-transfo | --program-transf \ |
|
1158 | --program-trans | --program-tran \ |
|
1159 | --progr-tra | --program-tr | --program-t) |
|
1160 ac_prev=program_transform_name ;; |
|
1161 -program-transform-name=* | --program-transform-name=* \ |
|
1162 | --program-transform-nam=* | --program-transform-na=* \ |
|
1163 | --program-transform-n=* | --program-transform-=* \ |
|
1164 | --program-transform=* | --program-transfor=* \ |
|
1165 | --program-transfo=* | --program-transf=* \ |
|
1166 | --program-trans=* | --program-tran=* \ |
|
1167 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
1168 program_transform_name=$ac_optarg ;; |
|
1169 |
|
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1171 ac_prev=pdfdir ;; |
|
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1173 pdfdir=$ac_optarg ;; |
|
1174 |
|
1175 -psdir | --psdir | --psdi | --psd | --ps) |
|
1176 ac_prev=psdir ;; |
|
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1178 psdir=$ac_optarg ;; |
|
1179 |
|
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1181 | -silent | --silent | --silen | --sile | --sil) |
|
1182 silent=yes ;; |
|
1183 |
|
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1185 ac_prev=sbindir ;; |
|
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1187 | --sbi=* | --sb=*) |
|
1188 sbindir=$ac_optarg ;; |
|
1189 |
|
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1192 | --sharedst | --shareds | --shared | --share | --shar \ |
|
1193 | --sha | --sh) |
|
1194 ac_prev=sharedstatedir ;; |
|
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1198 | --sha=* | --sh=*) |
|
1199 sharedstatedir=$ac_optarg ;; |
|
1200 |
|
1201 -site | --site | --sit) |
|
1202 ac_prev=site ;; |
|
1203 -site=* | --site=* | --sit=*) |
|
1204 site=$ac_optarg ;; |
|
1205 |
|
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1207 ac_prev=srcdir ;; |
|
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1209 srcdir=$ac_optarg ;; |
|
1210 |
|
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1212 | --syscon | --sysco | --sysc | --sys | --sy) |
|
1213 ac_prev=sysconfdir ;; |
|
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1216 sysconfdir=$ac_optarg ;; |
|
1217 |
|
1218 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
1219 ac_prev=target_alias ;; |
|
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1221 target_alias=$ac_optarg ;; |
|
1222 |
|
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1224 verbose=yes ;; |
|
1225 |
|
1226 -version | --version | --versio | --versi | --vers | -V) |
|
1227 ac_init_version=: ;; |
|
1228 |
|
1229 -with-* | --with-*) |
|
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1231 # Reject names that are not valid shell variable names. |
|
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
1234 { (exit 1); exit 1; }; } |
|
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
|
1236 eval with_$ac_package=\$ac_optarg ;; |
|
1237 |
|
1238 -without-* | --without-*) |
|
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1240 # Reject names that are not valid shell variable names. |
|
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
1243 { (exit 1); exit 1; }; } |
|
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
|
1245 eval with_$ac_package=no ;; |
|
1246 |
|
1247 --x) |
|
1248 # Obsolete; use --with-x. |
|
1249 with_x=yes ;; |
|
1250 |
|
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1252 | --x-incl | --x-inc | --x-in | --x-i) |
|
1253 ac_prev=x_includes ;; |
|
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1256 x_includes=$ac_optarg ;; |
|
1257 |
|
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1260 ac_prev=x_libraries ;; |
|
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1263 x_libraries=$ac_optarg ;; |
|
1264 |
|
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option |
|
1266 Try \`$0 --help' for more information." >&2 |
|
1267 { (exit 1); exit 1; }; } |
|
1268 ;; |
|
1269 |
|
1270 *=*) |
|
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1272 # Reject names that are not valid shell variable names. |
|
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
1275 { (exit 1); exit 1; }; } |
|
1276 eval $ac_envvar=\$ac_optarg |
|
1277 export $ac_envvar ;; |
|
1278 |
|
1279 *) |
|
1280 # FIXME: should be removed in autoconf 3.0. |
|
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
1285 ;; |
|
1286 |
|
1287 esac |
|
1288 done |
|
1289 |
|
1290 if test -n "$ac_prev"; then |
|
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1292 { echo "$as_me: error: missing argument to $ac_option" >&2 |
|
1293 { (exit 1); exit 1; }; } |
|
1294 fi |
|
1295 |
|
1296 # Be sure to have absolute directory names. |
|
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1298 datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1300 libdir localedir mandir |
|
1301 do |
|
1302 eval ac_val=\$$ac_var |
|
1303 case $ac_val in |
|
1304 [\\/$]* | ?:[\\/]* ) continue;; |
|
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1306 esac |
|
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
1308 { (exit 1); exit 1; }; } |
|
1309 done |
|
1310 |
|
1311 # There might be people who depend on the old broken behavior: `$host' |
|
1312 # used to hold the argument of --host etc. |
|
1313 # FIXME: To remove some day. |
|
1314 build=$build_alias |
|
1315 host=$host_alias |
|
1316 target=$target_alias |
|
1317 |
|
1318 # FIXME: To remove some day. |
|
1319 if test "x$host_alias" != x; then |
|
1320 if test "x$build_alias" = x; then |
|
1321 cross_compiling=maybe |
|
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
1323 If a cross compiler is detected then cross compile mode will be used." >&2 |
|
1324 elif test "x$build_alias" != "x$host_alias"; then |
|
1325 cross_compiling=yes |
|
1326 fi |
|
1327 fi |
|
1328 |
|
1329 ac_tool_prefix= |
|
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1331 |
|
1332 test "$silent" = yes && exec 6>/dev/null |
|
1333 |
|
1334 |
|
1335 ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1336 ac_ls_di=`ls -di .` && |
|
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1338 { echo "$as_me: error: Working directory cannot be determined" >&2 |
|
1339 { (exit 1); exit 1; }; } |
|
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2 |
|
1342 { (exit 1); exit 1; }; } |
|
1343 |
|
1344 |
|
1345 # Find the source files, if location was not specified. |
|
1346 if test -z "$srcdir"; then |
|
1347 ac_srcdir_defaulted=yes |
|
1348 # Try the directory containing this script, then the parent directory. |
|
1349 ac_confdir=`$as_dirname -- "$0" || |
|
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1351 X"$0" : 'X\(//\)[^/]' \| \ |
|
1352 X"$0" : 'X\(//\)$' \| \ |
|
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
1354 echo X"$0" | |
|
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1356 s//\1/ |
|
1357 q |
|
1358 } |
|
1359 /^X\(\/\/\)[^/].*/{ |
|
1360 s//\1/ |
|
1361 q |
|
1362 } |
|
1363 /^X\(\/\/\)$/{ |
|
1364 s//\1/ |
|
1365 q |
|
1366 } |
|
1367 /^X\(\/\).*/{ |
|
1368 s//\1/ |
|
1369 q |
|
1370 } |
|
1371 s/.*/./; q'` |
|
1372 srcdir=$ac_confdir |
|
1373 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1374 srcdir=.. |
|
1375 fi |
|
1376 else |
|
1377 ac_srcdir_defaulted=no |
|
1378 fi |
|
1379 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
1382 { (exit 1); exit 1; }; } |
|
1383 fi |
|
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1385 ac_abs_confdir=`( |
|
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
|
1387 { (exit 1); exit 1; }; } |
|
1388 pwd)` |
|
1389 # When building in place, set srcdir=. |
|
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1391 srcdir=. |
|
1392 fi |
|
1393 # Remove unnecessary trailing slashes from srcdir. |
|
1394 # Double slashes in file names in object file debugging info |
|
1395 # mess up M-x gdb in Emacs. |
|
1396 case $srcdir in |
|
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1398 esac |
|
1399 for ac_var in $ac_precious_vars; do |
|
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1401 eval ac_env_${ac_var}_value=\$${ac_var} |
|
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1404 done |
|
1405 |
|
1406 # |
|
1407 # Report the --help message. |
|
1408 # |
|
1409 if test "$ac_init_help" = "long"; then |
|
1410 # Omit some internal or obsolete options to make the list less imposing. |
|
1411 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1412 cat <<_ACEOF |
|
1413 \`configure' configures PCRE 7.8 to adapt to many kinds of systems. |
|
1414 |
|
1415 Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1416 |
|
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1418 VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1419 |
|
1420 Defaults for the options are specified in brackets. |
|
1421 |
|
1422 Configuration: |
|
1423 -h, --help display this help and exit |
|
1424 --help=short display options specific to this package |
|
1425 --help=recursive display the short help of all the included packages |
|
1426 -V, --version display version information and exit |
|
1427 -q, --quiet, --silent do not print \`checking...' messages |
|
1428 --cache-file=FILE cache test results in FILE [disabled] |
|
1429 -C, --config-cache alias for \`--cache-file=config.cache' |
|
1430 -n, --no-create do not create output files |
|
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1432 |
|
1433 Installation directories: |
|
1434 --prefix=PREFIX install architecture-independent files in PREFIX |
|
1435 [$ac_default_prefix] |
|
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1437 [PREFIX] |
|
1438 |
|
1439 By default, \`make install' will install all the files in |
|
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1442 for instance \`--prefix=\$HOME'. |
|
1443 |
|
1444 For better control, use the options below. |
|
1445 |
|
1446 Fine tuning of the installation directories: |
|
1447 --bindir=DIR user executables [EPREFIX/bin] |
|
1448 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1449 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1453 --libdir=DIR object code libraries [EPREFIX/lib] |
|
1454 --includedir=DIR C header files [PREFIX/include] |
|
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1458 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1460 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre] |
|
1462 --htmldir=DIR html documentation [DOCDIR] |
|
1463 --dvidir=DIR dvi documentation [DOCDIR] |
|
1464 --pdfdir=DIR pdf documentation [DOCDIR] |
|
1465 --psdir=DIR ps documentation [DOCDIR] |
|
1466 _ACEOF |
|
1467 |
|
1468 cat <<\_ACEOF |
|
1469 |
|
1470 Program names: |
|
1471 --program-prefix=PREFIX prepend PREFIX to installed program names |
|
1472 --program-suffix=SUFFIX append SUFFIX to installed program names |
|
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1474 |
|
1475 System types: |
|
1476 --build=BUILD configure for building on BUILD [guessed] |
|
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1478 _ACEOF |
|
1479 fi |
|
1480 |
|
1481 if test -n "$ac_init_help"; then |
|
1482 case $ac_init_help in |
|
1483 short | recursive ) echo "Configuration of PCRE 7.8:";; |
|
1484 esac |
|
1485 cat <<\_ACEOF |
|
1486 |
|
1487 Optional Features: |
|
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1490 --disable-dependency-tracking speeds up one-time build |
|
1491 --enable-dependency-tracking do not reject slow dependency extractors |
|
1492 --enable-shared[=PKGS] build shared libraries [default=yes] |
|
1493 --enable-static[=PKGS] build static libraries [default=yes] |
|
1494 --enable-fast-install[=PKGS] |
|
1495 optimize for fast installation [default=yes] |
|
1496 --disable-libtool-lock avoid locking (might break parallel builds) |
|
1497 --disable-cpp disable C++ support |
|
1498 --enable-rebuild-chartables |
|
1499 rebuild character tables in current locale |
|
1500 --enable-utf8 enable UTF-8 support |
|
1501 --enable-unicode-properties |
|
1502 enable Unicode properties support (implies |
|
1503 --enable-utf8) |
|
1504 --enable-newline-is-cr use CR as newline character |
|
1505 --enable-newline-is-lf use LF as newline character (default) |
|
1506 --enable-newline-is-crlf |
|
1507 use CRLF as newline sequence |
|
1508 --enable-newline-is-anycrlf |
|
1509 use CR, LF, or CRLF as newline sequence |
|
1510 --enable-newline-is-any use any valid Unicode newline sequence |
|
1511 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default |
|
1512 --enable-ebcdic assume EBCDIC coding rather than ASCII; use this |
|
1513 only in (uncommon) EBCDIC environments; it implies |
|
1514 --enable-rebuild-chartables |
|
1515 --disable-stack-for-recursion |
|
1516 don't use stack recursion when matching |
|
1517 --enable-pcregrep-libz link pcregrep with libz to handle .gz files |
|
1518 --enable-pcregrep-libbz2 |
|
1519 link pcregrep with libbz2 to handle .bz2 files |
|
1520 --enable-pcretest-libreadline |
|
1521 link pcretest with libreadline |
|
1522 |
|
1523 Optional Packages: |
|
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1527 --with-pic try to use only PIC/non-PIC objects [default=use |
|
1528 both] |
|
1529 --with-tags[=TAGS] include additional configurations [automatic] |
|
1530 --with-posix-malloc-threshold=NBYTES |
|
1531 threshold for POSIX malloc usage (default=10) |
|
1532 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2) |
|
1533 --with-match-limit=N default limit on internal looping (default=10000000) |
|
1534 --with-match-limit-recursion=N |
|
1535 default limit on internal recursion |
|
1536 (default=MATCH_LIMIT) |
|
1537 |
|
1538 Some influential environment variables: |
|
1539 CC C compiler command |
|
1540 CFLAGS C compiler flags |
|
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1542 nonstandard directory <lib dir> |
|
1543 LIBS libraries to pass to the linker, e.g. -l<library> |
|
1544 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
|
1545 you have headers in a nonstandard directory <include dir> |
|
1546 CXX C++ compiler command |
|
1547 CXXFLAGS C++ compiler flags |
|
1548 CPP C preprocessor |
|
1549 CXXCPP C++ preprocessor |
|
1550 F77 Fortran 77 compiler command |
|
1551 FFLAGS Fortran 77 compiler flags |
|
1552 |
|
1553 Use these variables to override the choices made by `configure' or to help |
|
1554 it to find libraries and programs with nonstandard names/locations. |
|
1555 |
|
1556 _ACEOF |
|
1557 ac_status=$? |
|
1558 fi |
|
1559 |
|
1560 if test "$ac_init_help" = "recursive"; then |
|
1561 # If there are subdirs, report their specific --help. |
|
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1563 test -d "$ac_dir" || continue |
|
1564 ac_builddir=. |
|
1565 |
|
1566 case "$ac_dir" in |
|
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1568 *) |
|
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
1570 # A ".." for each directory in $ac_dir_suffix. |
|
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
1572 case $ac_top_builddir_sub in |
|
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1575 esac ;; |
|
1576 esac |
|
1577 ac_abs_top_builddir=$ac_pwd |
|
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1579 # for backward compatibility: |
|
1580 ac_top_builddir=$ac_top_build_prefix |
|
1581 |
|
1582 case $srcdir in |
|
1583 .) # We are building in place. |
|
1584 ac_srcdir=. |
|
1585 ac_top_srcdir=$ac_top_builddir_sub |
|
1586 ac_abs_top_srcdir=$ac_pwd ;; |
|
1587 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
1588 ac_srcdir=$srcdir$ac_dir_suffix; |
|
1589 ac_top_srcdir=$srcdir |
|
1590 ac_abs_top_srcdir=$srcdir ;; |
|
1591 *) # Relative name. |
|
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1595 esac |
|
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1597 |
|
1598 cd "$ac_dir" || { ac_status=$?; continue; } |
|
1599 # Check for guested configure. |
|
1600 if test -f "$ac_srcdir/configure.gnu"; then |
|
1601 echo && |
|
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1603 elif test -f "$ac_srcdir/configure"; then |
|
1604 echo && |
|
1605 $SHELL "$ac_srcdir/configure" --help=recursive |
|
1606 else |
|
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1608 fi || ac_status=$? |
|
1609 cd "$ac_pwd" || { ac_status=$?; break; } |
|
1610 done |
|
1611 fi |
|
1612 |
|
1613 test -n "$ac_init_help" && exit $ac_status |
|
1614 if $ac_init_version; then |
|
1615 cat <<\_ACEOF |
|
1616 PCRE configure 7.8 |
|
1617 generated by GNU Autoconf 2.61 |
|
1618 |
|
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
1621 This configure script is free software; the Free Software Foundation |
|
1622 gives unlimited permission to copy, distribute and modify it. |
|
1623 _ACEOF |
|
1624 exit |
|
1625 fi |
|
1626 cat >config.log <<_ACEOF |
|
1627 This file contains any messages produced by compilers while |
|
1628 running configure, to aid debugging if configure makes a mistake. |
|
1629 |
|
1630 It was created by PCRE $as_me 7.8, which was |
|
1631 generated by GNU Autoconf 2.61. Invocation command line was |
|
1632 |
|
1633 $ $0 $@ |
|
1634 |
|
1635 _ACEOF |
|
1636 exec 5>>config.log |
|
1637 { |
|
1638 cat <<_ASUNAME |
|
1639 ## --------- ## |
|
1640 ## Platform. ## |
|
1641 ## --------- ## |
|
1642 |
|
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1648 |
|
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1651 |
|
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1659 |
|
1660 _ASUNAME |
|
1661 |
|
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1663 for as_dir in $PATH |
|
1664 do |
|
1665 IFS=$as_save_IFS |
|
1666 test -z "$as_dir" && as_dir=. |
|
1667 echo "PATH: $as_dir" |
|
1668 done |
|
1669 IFS=$as_save_IFS |
|
1670 |
|
1671 } >&5 |
|
1672 |
|
1673 cat >&5 <<_ACEOF |
|
1674 |
|
1675 |
|
1676 ## ----------- ## |
|
1677 ## Core tests. ## |
|
1678 ## ----------- ## |
|
1679 |
|
1680 _ACEOF |
|
1681 |
|
1682 |
|
1683 # Keep a trace of the command line. |
|
1684 # Strip out --no-create and --no-recursion so they do not pile up. |
|
1685 # Strip out --silent because we don't want to record it for future runs. |
|
1686 # Also quote any args containing shell meta-characters. |
|
1687 # Make two passes to allow for proper duplicate-argument suppression. |
|
1688 ac_configure_args= |
|
1689 ac_configure_args0= |
|
1690 ac_configure_args1= |
|
1691 ac_must_keep_next=false |
|
1692 for ac_pass in 1 2 |
|
1693 do |
|
1694 for ac_arg |
|
1695 do |
|
1696 case $ac_arg in |
|
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1699 | -silent | --silent | --silen | --sile | --sil) |
|
1700 continue ;; |
|
1701 *\'*) |
|
1702 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1703 esac |
|
1704 case $ac_pass in |
|
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1706 2) |
|
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1708 if test $ac_must_keep_next = true; then |
|
1709 ac_must_keep_next=false # Got value, back to normal. |
|
1710 else |
|
1711 case $ac_arg in |
|
1712 *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1715 | -with-* | --with-* | -without-* | --without-* | --x) |
|
1716 case "$ac_configure_args0 " in |
|
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1718 esac |
|
1719 ;; |
|
1720 -* ) ac_must_keep_next=true ;; |
|
1721 esac |
|
1722 fi |
|
1723 ac_configure_args="$ac_configure_args '$ac_arg'" |
|
1724 ;; |
|
1725 esac |
|
1726 done |
|
1727 done |
|
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1730 |
|
1731 # When interrupted or exit'd, cleanup temporary files, and complete |
|
1732 # config.log. We remove comments because anyway the quotes in there |
|
1733 # would cause problems or look ugly. |
|
1734 # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
1736 trap 'exit_status=$? |
|
1737 # Save into config.log some information that might help in debugging. |
|
1738 { |
|
1739 echo |
|
1740 |
|
1741 cat <<\_ASBOX |
|
1742 ## ---------------- ## |
|
1743 ## Cache variables. ## |
|
1744 ## ---------------- ## |
|
1745 _ASBOX |
|
1746 echo |
|
1747 # The following way of writing the cache mishandles newlines in values, |
|
1748 ( |
|
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
1750 eval ac_val=\$$ac_var |
|
1751 case $ac_val in #( |
|
1752 *${as_nl}*) |
|
1753 case $ac_var in #( |
|
1754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
1756 esac |
|
1757 case $ac_var in #( |
|
1758 _ | IFS | as_nl) ;; #( |
|
1759 *) $as_unset $ac_var ;; |
|
1760 esac ;; |
|
1761 esac |
|
1762 done |
|
1763 (set) 2>&1 | |
|
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
1765 *${as_nl}ac_space=\ *) |
|
1766 sed -n \ |
|
1767 "s/'\''/'\''\\\\'\'''\''/g; |
|
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
1769 ;; #( |
|
1770 *) |
|
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
1772 ;; |
|
1773 esac | |
|
1774 sort |
|
1775 ) |
|
1776 echo |
|
1777 |
|
1778 cat <<\_ASBOX |
|
1779 ## ----------------- ## |
|
1780 ## Output variables. ## |
|
1781 ## ----------------- ## |
|
1782 _ASBOX |
|
1783 echo |
|
1784 for ac_var in $ac_subst_vars |
|
1785 do |
|
1786 eval ac_val=\$$ac_var |
|
1787 case $ac_val in |
|
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1789 esac |
|
1790 echo "$ac_var='\''$ac_val'\''" |
|
1791 done | sort |
|
1792 echo |
|
1793 |
|
1794 if test -n "$ac_subst_files"; then |
|
1795 cat <<\_ASBOX |
|
1796 ## ------------------- ## |
|
1797 ## File substitutions. ## |
|
1798 ## ------------------- ## |
|
1799 _ASBOX |
|
1800 echo |
|
1801 for ac_var in $ac_subst_files |
|
1802 do |
|
1803 eval ac_val=\$$ac_var |
|
1804 case $ac_val in |
|
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1806 esac |
|
1807 echo "$ac_var='\''$ac_val'\''" |
|
1808 done | sort |
|
1809 echo |
|
1810 fi |
|
1811 |
|
1812 if test -s confdefs.h; then |
|
1813 cat <<\_ASBOX |
|
1814 ## ----------- ## |
|
1815 ## confdefs.h. ## |
|
1816 ## ----------- ## |
|
1817 _ASBOX |
|
1818 echo |
|
1819 cat confdefs.h |
|
1820 echo |
|
1821 fi |
|
1822 test "$ac_signal" != 0 && |
|
1823 echo "$as_me: caught signal $ac_signal" |
|
1824 echo "$as_me: exit $exit_status" |
|
1825 } >&5 |
|
1826 rm -f core *.core core.conftest.* && |
|
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
1828 exit $exit_status |
|
1829 ' 0 |
|
1830 for ac_signal in 1 2 13 15; do |
|
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1832 done |
|
1833 ac_signal=0 |
|
1834 |
|
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1836 rm -f -r conftest* confdefs.h |
|
1837 |
|
1838 # Predefined preprocessor variables. |
|
1839 |
|
1840 cat >>confdefs.h <<_ACEOF |
|
1841 #define PACKAGE_NAME "$PACKAGE_NAME" |
|
1842 _ACEOF |
|
1843 |
|
1844 |
|
1845 cat >>confdefs.h <<_ACEOF |
|
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1847 _ACEOF |
|
1848 |
|
1849 |
|
1850 cat >>confdefs.h <<_ACEOF |
|
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1852 _ACEOF |
|
1853 |
|
1854 |
|
1855 cat >>confdefs.h <<_ACEOF |
|
1856 #define PACKAGE_STRING "$PACKAGE_STRING" |
|
1857 _ACEOF |
|
1858 |
|
1859 |
|
1860 cat >>confdefs.h <<_ACEOF |
|
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1862 _ACEOF |
|
1863 |
|
1864 |
|
1865 # Let the site file select an alternate cache file if it wants to. |
|
1866 # Prefer explicitly selected file to automatically selected ones. |
|
1867 if test -n "$CONFIG_SITE"; then |
|
1868 set x "$CONFIG_SITE" |
|
1869 elif test "x$prefix" != xNONE; then |
|
1870 set x "$prefix/share/config.site" "$prefix/etc/config.site" |
|
1871 else |
|
1872 set x "$ac_default_prefix/share/config.site" \ |
|
1873 "$ac_default_prefix/etc/config.site" |
|
1874 fi |
|
1875 shift |
|
1876 for ac_site_file |
|
1877 do |
|
1878 if test -r "$ac_site_file"; then |
|
1879 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1880 echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1881 sed 's/^/| /' "$ac_site_file" >&5 |
|
1882 . "$ac_site_file" |
|
1883 fi |
|
1884 done |
|
1885 |
|
1886 if test -r "$cache_file"; then |
|
1887 # Some versions of bash will fail to source /dev/null (special |
|
1888 # files actually), so we avoid doing that. |
|
1889 if test -f "$cache_file"; then |
|
1890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1891 echo "$as_me: loading cache $cache_file" >&6;} |
|
1892 case $cache_file in |
|
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
1894 *) . "./$cache_file";; |
|
1895 esac |
|
1896 fi |
|
1897 else |
|
1898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1899 echo "$as_me: creating cache $cache_file" >&6;} |
|
1900 >$cache_file |
|
1901 fi |
|
1902 |
|
1903 # Check that the precious variables saved in the cache have kept the same |
|
1904 # value. |
|
1905 ac_cache_corrupted=false |
|
1906 for ac_var in $ac_precious_vars; do |
|
1907 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
1908 eval ac_new_set=\$ac_env_${ac_var}_set |
|
1909 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
1910 eval ac_new_val=\$ac_env_${ac_var}_value |
|
1911 case $ac_old_set,$ac_new_set in |
|
1912 set,) |
|
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1915 ac_cache_corrupted=: ;; |
|
1916 ,set) |
|
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1919 ac_cache_corrupted=: ;; |
|
1920 ,);; |
|
1921 *) |
|
1922 if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1923 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1925 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
1926 echo "$as_me: former value: $ac_old_val" >&2;} |
|
1927 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
1928 echo "$as_me: current value: $ac_new_val" >&2;} |
|
1929 ac_cache_corrupted=: |
|
1930 fi;; |
|
1931 esac |
|
1932 # Pass precious variables to config.status. |
|
1933 if test "$ac_new_set" = set; then |
|
1934 case $ac_new_val in |
|
1935 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1936 *) ac_arg=$ac_var=$ac_new_val ;; |
|
1937 esac |
|
1938 case " $ac_configure_args " in |
|
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1941 esac |
|
1942 fi |
|
1943 done |
|
1944 if $ac_cache_corrupted; then |
|
1945 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1947 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1949 { (exit 1); exit 1; }; } |
|
1950 fi |
|
1951 |
|
1952 |
|
1953 |
|
1954 |
|
1955 |
|
1956 |
|
1957 |
|
1958 |
|
1959 |
|
1960 |
|
1961 |
|
1962 |
|
1963 |
|
1964 |
|
1965 |
|
1966 |
|
1967 |
|
1968 |
|
1969 |
|
1970 |
|
1971 |
|
1972 |
|
1973 |
|
1974 |
|
1975 |
|
1976 ac_ext=c |
|
1977 ac_cpp='$CPP $CPPFLAGS' |
|
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1981 |
|
1982 |
|
1983 |
|
1984 am__api_version='1.10' |
|
1985 |
|
1986 ac_aux_dir= |
|
1987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
1988 if test -f "$ac_dir/install-sh"; then |
|
1989 ac_aux_dir=$ac_dir |
|
1990 ac_install_sh="$ac_aux_dir/install-sh -c" |
|
1991 break |
|
1992 elif test -f "$ac_dir/install.sh"; then |
|
1993 ac_aux_dir=$ac_dir |
|
1994 ac_install_sh="$ac_aux_dir/install.sh -c" |
|
1995 break |
|
1996 elif test -f "$ac_dir/shtool"; then |
|
1997 ac_aux_dir=$ac_dir |
|
1998 ac_install_sh="$ac_aux_dir/shtool install -c" |
|
1999 break |
|
2000 fi |
|
2001 done |
|
2002 if test -z "$ac_aux_dir"; then |
|
2003 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
|
2004 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
|
2005 { (exit 1); exit 1; }; } |
|
2006 fi |
|
2007 |
|
2008 # These three variables are undocumented and unsupported, |
|
2009 # and are intended to be withdrawn in a future Autoconf release. |
|
2010 # They can cause serious problems if a builder's source tree is in a directory |
|
2011 # whose full name contains unusual characters. |
|
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2015 |
|
2016 |
|
2017 # Find a good install program. We prefer a C program (faster), |
|
2018 # so one script is as good as another. But avoid the broken or |
|
2019 # incompatible versions: |
|
2020 # SysV /etc/install, /usr/sbin/install |
|
2021 # SunOS /usr/etc/install |
|
2022 # IRIX /sbin/install |
|
2023 # AIX /bin/install |
|
2024 # AmigaOS /C/install, which installs bootblocks on floppy discs |
|
2025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
2026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
2027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
2028 # OS/2's system install, which has a completely different semantic |
|
2029 # ./install, which can be erroneously created by make from ./install.sh. |
|
2030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
2031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
|
2032 if test -z "$INSTALL"; then |
|
2033 if test "${ac_cv_path_install+set}" = set; then |
|
2034 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2035 else |
|
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2037 for as_dir in $PATH |
|
2038 do |
|
2039 IFS=$as_save_IFS |
|
2040 test -z "$as_dir" && as_dir=. |
|
2041 # Account for people who put trailing slashes in PATH elements. |
|
2042 case $as_dir/ in |
|
2043 ./ | .// | /cC/* | \ |
|
2044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
2045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
2046 /usr/ucb/* ) ;; |
|
2047 *) |
|
2048 # OSF1 and SCO ODT 3.0 have their own names for install. |
|
2049 # Don't use installbsd from OSF since it installs stuff as root |
|
2050 # by default. |
|
2051 for ac_prog in ginstall scoinst install; do |
|
2052 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
2054 if test $ac_prog = install && |
|
2055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2056 # AIX install. It has an incompatible calling convention. |
|
2057 : |
|
2058 elif test $ac_prog = install && |
|
2059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2060 # program-specific install script used by HP pwplus--don't use. |
|
2061 : |
|
2062 else |
|
2063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
2064 break 3 |
|
2065 fi |
|
2066 fi |
|
2067 done |
|
2068 done |
|
2069 ;; |
|
2070 esac |
|
2071 done |
|
2072 IFS=$as_save_IFS |
|
2073 |
|
2074 |
|
2075 fi |
|
2076 if test "${ac_cv_path_install+set}" = set; then |
|
2077 INSTALL=$ac_cv_path_install |
|
2078 else |
|
2079 # As a last resort, use the slow shell script. Don't cache a |
|
2080 # value for INSTALL within a source directory, because that will |
|
2081 # break other packages using the cache if that directory is |
|
2082 # removed, or if the value is a relative name. |
|
2083 INSTALL=$ac_install_sh |
|
2084 fi |
|
2085 fi |
|
2086 { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
2087 echo "${ECHO_T}$INSTALL" >&6; } |
|
2088 |
|
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
2090 # It thinks the first close brace ends the variable substitution. |
|
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
2092 |
|
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
2094 |
|
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
2096 |
|
2097 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
|
2098 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
|
2099 # Just in case |
|
2100 sleep 1 |
|
2101 echo timestamp > conftest.file |
|
2102 # Do `set' in a subshell so we don't clobber the current shell's |
|
2103 # arguments. Must try -L first in case configure is actually a |
|
2104 # symlink; some systems play weird games with the mod time of symlinks |
|
2105 # (eg FreeBSD returns the mod time of the symlink's containing |
|
2106 # directory). |
|
2107 if ( |
|
2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
2109 if test "$*" = "X"; then |
|
2110 # -L didn't work. |
|
2111 set X `ls -t $srcdir/configure conftest.file` |
|
2112 fi |
|
2113 rm -f conftest.file |
|
2114 if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2115 && test "$*" != "X conftest.file $srcdir/configure"; then |
|
2116 |
|
2117 # If neither matched, then we have a broken ls. This can happen |
|
2118 # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2119 # broken ls alias from the environment. This has actually |
|
2120 # happened. Such a system could not be considered "sane". |
|
2121 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
2122 alias in your environment" >&5 |
|
2123 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
2124 alias in your environment" >&2;} |
|
2125 { (exit 1); exit 1; }; } |
|
2126 fi |
|
2127 |
|
2128 test "$2" = conftest.file |
|
2129 ) |
|
2130 then |
|
2131 # Ok. |
|
2132 : |
|
2133 else |
|
2134 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
2135 Check your system clock" >&5 |
|
2136 echo "$as_me: error: newly created file is older than distributed files! |
|
2137 Check your system clock" >&2;} |
|
2138 { (exit 1); exit 1; }; } |
|
2139 fi |
|
2140 { echo "$as_me:$LINENO: result: yes" >&5 |
|
2141 echo "${ECHO_T}yes" >&6; } |
|
2142 test "$program_prefix" != NONE && |
|
2143 program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
2144 # Use a double $ so make ignores it. |
|
2145 test "$program_suffix" != NONE && |
|
2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
2147 # Double any \ or $. echo might interpret backslashes. |
|
2148 # By default was `s,x,x', remove it if useless. |
|
2149 cat <<\_ACEOF >conftest.sed |
|
2150 s/[\\$]/&&/g;s/;s,x,x,$// |
|
2151 _ACEOF |
|
2152 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
2153 rm -f conftest.sed |
|
2154 |
|
2155 # expand $ac_aux_dir to an absolute path |
|
2156 am_aux_dir=`cd $ac_aux_dir && pwd` |
|
2157 |
|
2158 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
2159 # Use eval to expand $SHELL |
|
2160 if eval "$MISSING --run true"; then |
|
2161 am_missing_run="$MISSING --run " |
|
2162 else |
|
2163 am_missing_run= |
|
2164 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
2165 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
2166 fi |
|
2167 |
|
2168 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
|
2169 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
|
2170 if test -z "$MKDIR_P"; then |
|
2171 if test "${ac_cv_path_mkdir+set}" = set; then |
|
2172 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2173 else |
|
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2175 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
|
2176 do |
|
2177 IFS=$as_save_IFS |
|
2178 test -z "$as_dir" && as_dir=. |
|
2179 for ac_prog in mkdir gmkdir; do |
|
2180 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2181 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
|
2182 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
|
2183 'mkdir (GNU coreutils) '* | \ |
|
2184 'mkdir (coreutils) '* | \ |
|
2185 'mkdir (fileutils) '4.1*) |
|
2186 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
|
2187 break 3;; |
|
2188 esac |
|
2189 done |
|
2190 done |
|
2191 done |
|
2192 IFS=$as_save_IFS |
|
2193 |
|
2194 fi |
|
2195 |
|
2196 if test "${ac_cv_path_mkdir+set}" = set; then |
|
2197 MKDIR_P="$ac_cv_path_mkdir -p" |
|
2198 else |
|
2199 # As a last resort, use the slow shell script. Don't cache a |
|
2200 # value for MKDIR_P within a source directory, because that will |
|
2201 # break other packages using the cache if that directory is |
|
2202 # removed, or if the value is a relative name. |
|
2203 test -d ./--version && rmdir ./--version |
|
2204 MKDIR_P="$ac_install_sh -d" |
|
2205 fi |
|
2206 fi |
|
2207 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
|
2208 echo "${ECHO_T}$MKDIR_P" >&6; } |
|
2209 |
|
2210 mkdir_p="$MKDIR_P" |
|
2211 case $mkdir_p in |
|
2212 [\\/$]* | ?:[\\/]*) ;; |
|
2213 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
|
2214 esac |
|
2215 |
|
2216 for ac_prog in gawk mawk nawk awk |
|
2217 do |
|
2218 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2219 set dummy $ac_prog; ac_word=$2 |
|
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2222 if test "${ac_cv_prog_AWK+set}" = set; then |
|
2223 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2224 else |
|
2225 if test -n "$AWK"; then |
|
2226 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
2227 else |
|
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2229 for as_dir in $PATH |
|
2230 do |
|
2231 IFS=$as_save_IFS |
|
2232 test -z "$as_dir" && as_dir=. |
|
2233 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2235 ac_cv_prog_AWK="$ac_prog" |
|
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2237 break 2 |
|
2238 fi |
|
2239 done |
|
2240 done |
|
2241 IFS=$as_save_IFS |
|
2242 |
|
2243 fi |
|
2244 fi |
|
2245 AWK=$ac_cv_prog_AWK |
|
2246 if test -n "$AWK"; then |
|
2247 { echo "$as_me:$LINENO: result: $AWK" >&5 |
|
2248 echo "${ECHO_T}$AWK" >&6; } |
|
2249 else |
|
2250 { echo "$as_me:$LINENO: result: no" >&5 |
|
2251 echo "${ECHO_T}no" >&6; } |
|
2252 fi |
|
2253 |
|
2254 |
|
2255 test -n "$AWK" && break |
|
2256 done |
|
2257 |
|
2258 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
2259 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
|
2260 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|
2261 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
|
2262 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2263 else |
|
2264 cat >conftest.make <<\_ACEOF |
|
2265 SHELL = /bin/sh |
|
2266 all: |
|
2267 @echo '@@@%%%=$(MAKE)=@@@%%%' |
|
2268 _ACEOF |
|
2269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
2270 case `${MAKE-make} -f conftest.make 2>/dev/null` in |
|
2271 *@@@%%%=?*=@@@%%%*) |
|
2272 eval ac_cv_prog_make_${ac_make}_set=yes;; |
|
2273 *) |
|
2274 eval ac_cv_prog_make_${ac_make}_set=no;; |
|
2275 esac |
|
2276 rm -f conftest.make |
|
2277 fi |
|
2278 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
|
2279 { echo "$as_me:$LINENO: result: yes" >&5 |
|
2280 echo "${ECHO_T}yes" >&6; } |
|
2281 SET_MAKE= |
|
2282 else |
|
2283 { echo "$as_me:$LINENO: result: no" >&5 |
|
2284 echo "${ECHO_T}no" >&6; } |
|
2285 SET_MAKE="MAKE=${MAKE-make}" |
|
2286 fi |
|
2287 |
|
2288 rm -rf .tst 2>/dev/null |
|
2289 mkdir .tst 2>/dev/null |
|
2290 if test -d .tst; then |
|
2291 am__leading_dot=. |
|
2292 else |
|
2293 am__leading_dot=_ |
|
2294 fi |
|
2295 rmdir .tst 2>/dev/null |
|
2296 |
|
2297 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
2298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
2299 # is not polluted with repeated "-I." |
|
2300 am__isrc=' -I$(srcdir)' |
|
2301 # test to see if srcdir already configured |
|
2302 if test -f $srcdir/config.status; then |
|
2303 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
|
2304 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
|
2305 { (exit 1); exit 1; }; } |
|
2306 fi |
|
2307 fi |
|
2308 |
|
2309 # test whether we have cygpath |
|
2310 if test -z "$CYGPATH_W"; then |
|
2311 if (cygpath --version) >/dev/null 2>/dev/null; then |
|
2312 CYGPATH_W='cygpath -w' |
|
2313 else |
|
2314 CYGPATH_W=echo |
|
2315 fi |
|
2316 fi |
|
2317 |
|
2318 |
|
2319 # Define the identity of the package. |
|
2320 PACKAGE='pcre' |
|
2321 VERSION='7.8' |
|
2322 |
|
2323 |
|
2324 cat >>confdefs.h <<_ACEOF |
|
2325 #define PACKAGE "$PACKAGE" |
|
2326 _ACEOF |
|
2327 |
|
2328 |
|
2329 cat >>confdefs.h <<_ACEOF |
|
2330 #define VERSION "$VERSION" |
|
2331 _ACEOF |
|
2332 |
|
2333 # Some tools Automake needs. |
|
2334 |
|
2335 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
2336 |
|
2337 |
|
2338 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
2339 |
|
2340 |
|
2341 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
2342 |
|
2343 |
|
2344 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
2345 |
|
2346 |
|
2347 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
2348 |
|
2349 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
|
2350 |
|
2351 # Installed binaries are usually stripped using `strip' when the user |
|
2352 # run `make install-strip'. However `strip' might not be the right |
|
2353 # tool to use in cross-compilation environments, therefore Automake |
|
2354 # will honor the `STRIP' environment variable to overrule this program. |
|
2355 if test "$cross_compiling" != no; then |
|
2356 if test -n "$ac_tool_prefix"; then |
|
2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2361 if test "${ac_cv_prog_STRIP+set}" = set; then |
|
2362 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2363 else |
|
2364 if test -n "$STRIP"; then |
|
2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2366 else |
|
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2368 for as_dir in $PATH |
|
2369 do |
|
2370 IFS=$as_save_IFS |
|
2371 test -z "$as_dir" && as_dir=. |
|
2372 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2376 break 2 |
|
2377 fi |
|
2378 done |
|
2379 done |
|
2380 IFS=$as_save_IFS |
|
2381 |
|
2382 fi |
|
2383 fi |
|
2384 STRIP=$ac_cv_prog_STRIP |
|
2385 if test -n "$STRIP"; then |
|
2386 { echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
2387 echo "${ECHO_T}$STRIP" >&6; } |
|
2388 else |
|
2389 { echo "$as_me:$LINENO: result: no" >&5 |
|
2390 echo "${ECHO_T}no" >&6; } |
|
2391 fi |
|
2392 |
|
2393 |
|
2394 fi |
|
2395 if test -z "$ac_cv_prog_STRIP"; then |
|
2396 ac_ct_STRIP=$STRIP |
|
2397 # Extract the first word of "strip", so it can be a program name with args. |
|
2398 set dummy strip; ac_word=$2 |
|
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
2402 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2403 else |
|
2404 if test -n "$ac_ct_STRIP"; then |
|
2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2406 else |
|
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2408 for as_dir in $PATH |
|
2409 do |
|
2410 IFS=$as_save_IFS |
|
2411 test -z "$as_dir" && as_dir=. |
|
2412 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2414 ac_cv_prog_ac_ct_STRIP="strip" |
|
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2416 break 2 |
|
2417 fi |
|
2418 done |
|
2419 done |
|
2420 IFS=$as_save_IFS |
|
2421 |
|
2422 fi |
|
2423 fi |
|
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2425 if test -n "$ac_ct_STRIP"; then |
|
2426 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
2427 echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
|
2428 else |
|
2429 { echo "$as_me:$LINENO: result: no" >&5 |
|
2430 echo "${ECHO_T}no" >&6; } |
|
2431 fi |
|
2432 |
|
2433 if test "x$ac_ct_STRIP" = x; then |
|
2434 STRIP=":" |
|
2435 else |
|
2436 case $cross_compiling:$ac_tool_warned in |
|
2437 yes:) |
|
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2439 whose name does not start with the host triplet. If you think this |
|
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2442 whose name does not start with the host triplet. If you think this |
|
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2444 ac_tool_warned=yes ;; |
|
2445 esac |
|
2446 STRIP=$ac_ct_STRIP |
|
2447 fi |
|
2448 else |
|
2449 STRIP="$ac_cv_prog_STRIP" |
|
2450 fi |
|
2451 |
|
2452 fi |
|
2453 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
2454 |
|
2455 # We need awk for the "check" target. The system "awk" is bad on |
|
2456 # some platforms. |
|
2457 # Always define AMTAR for backward compatibility. |
|
2458 |
|
2459 AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
2460 |
|
2461 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
|
2462 |
|
2463 |
|
2464 |
|
2465 |
|
2466 |
|
2467 ac_config_headers="$ac_config_headers config.h" |
|
2468 |
|
2469 |
|
2470 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just |
|
2471 # "-g" for any other compiler. There doesn't seem to be a standard way of |
|
2472 # getting rid of the -g (which I don't think is needed for a production |
|
2473 # library). This fudge seems to achieve the necessary. First, we remember the |
|
2474 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and |
|
2475 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not |
|
2476 # set, they will be set to Autoconf's defaults. Afterwards, if the original |
|
2477 # values were not set, remove the -g from the Autoconf defaults. |
|
2478 # (PH 02-May-07) |
|
2479 |
|
2480 remember_set_CFLAGS="$CFLAGS" |
|
2481 remember_set_CXXFLAGS="$CXXFLAGS" |
|
2482 |
|
2483 ac_ext=c |
|
2484 ac_cpp='$CPP $CPPFLAGS' |
|
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2488 if test -n "$ac_tool_prefix"; then |
|
2489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2490 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2493 if test "${ac_cv_prog_CC+set}" = set; then |
|
2494 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2495 else |
|
2496 if test -n "$CC"; then |
|
2497 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2498 else |
|
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2500 for as_dir in $PATH |
|
2501 do |
|
2502 IFS=$as_save_IFS |
|
2503 test -z "$as_dir" && as_dir=. |
|
2504 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2506 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2508 break 2 |
|
2509 fi |
|
2510 done |
|
2511 done |
|
2512 IFS=$as_save_IFS |
|
2513 |
|
2514 fi |
|
2515 fi |
|
2516 CC=$ac_cv_prog_CC |
|
2517 if test -n "$CC"; then |
|
2518 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2519 echo "${ECHO_T}$CC" >&6; } |
|
2520 else |
|
2521 { echo "$as_me:$LINENO: result: no" >&5 |
|
2522 echo "${ECHO_T}no" >&6; } |
|
2523 fi |
|
2524 |
|
2525 |
|
2526 fi |
|
2527 if test -z "$ac_cv_prog_CC"; then |
|
2528 ac_ct_CC=$CC |
|
2529 # Extract the first word of "gcc", so it can be a program name with args. |
|
2530 set dummy gcc; ac_word=$2 |
|
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2534 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2535 else |
|
2536 if test -n "$ac_ct_CC"; then |
|
2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2538 else |
|
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2540 for as_dir in $PATH |
|
2541 do |
|
2542 IFS=$as_save_IFS |
|
2543 test -z "$as_dir" && as_dir=. |
|
2544 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2546 ac_cv_prog_ac_ct_CC="gcc" |
|
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2548 break 2 |
|
2549 fi |
|
2550 done |
|
2551 done |
|
2552 IFS=$as_save_IFS |
|
2553 |
|
2554 fi |
|
2555 fi |
|
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2557 if test -n "$ac_ct_CC"; then |
|
2558 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2559 echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
2560 else |
|
2561 { echo "$as_me:$LINENO: result: no" >&5 |
|
2562 echo "${ECHO_T}no" >&6; } |
|
2563 fi |
|
2564 |
|
2565 if test "x$ac_ct_CC" = x; then |
|
2566 CC="" |
|
2567 else |
|
2568 case $cross_compiling:$ac_tool_warned in |
|
2569 yes:) |
|
2570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2571 whose name does not start with the host triplet. If you think this |
|
2572 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2574 whose name does not start with the host triplet. If you think this |
|
2575 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2576 ac_tool_warned=yes ;; |
|
2577 esac |
|
2578 CC=$ac_ct_CC |
|
2579 fi |
|
2580 else |
|
2581 CC="$ac_cv_prog_CC" |
|
2582 fi |
|
2583 |
|
2584 if test -z "$CC"; then |
|
2585 if test -n "$ac_tool_prefix"; then |
|
2586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2587 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2590 if test "${ac_cv_prog_CC+set}" = set; then |
|
2591 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2592 else |
|
2593 if test -n "$CC"; then |
|
2594 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2595 else |
|
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2597 for as_dir in $PATH |
|
2598 do |
|
2599 IFS=$as_save_IFS |
|
2600 test -z "$as_dir" && as_dir=. |
|
2601 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2603 ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2605 break 2 |
|
2606 fi |
|
2607 done |
|
2608 done |
|
2609 IFS=$as_save_IFS |
|
2610 |
|
2611 fi |
|
2612 fi |
|
2613 CC=$ac_cv_prog_CC |
|
2614 if test -n "$CC"; then |
|
2615 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2616 echo "${ECHO_T}$CC" >&6; } |
|
2617 else |
|
2618 { echo "$as_me:$LINENO: result: no" >&5 |
|
2619 echo "${ECHO_T}no" >&6; } |
|
2620 fi |
|
2621 |
|
2622 |
|
2623 fi |
|
2624 fi |
|
2625 if test -z "$CC"; then |
|
2626 # Extract the first word of "cc", so it can be a program name with args. |
|
2627 set dummy cc; ac_word=$2 |
|
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2630 if test "${ac_cv_prog_CC+set}" = set; then |
|
2631 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2632 else |
|
2633 if test -n "$CC"; then |
|
2634 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2635 else |
|
2636 ac_prog_rejected=no |
|
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2638 for as_dir in $PATH |
|
2639 do |
|
2640 IFS=$as_save_IFS |
|
2641 test -z "$as_dir" && as_dir=. |
|
2642 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
2645 ac_prog_rejected=yes |
|
2646 continue |
|
2647 fi |
|
2648 ac_cv_prog_CC="cc" |
|
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2650 break 2 |
|
2651 fi |
|
2652 done |
|
2653 done |
|
2654 IFS=$as_save_IFS |
|
2655 |
|
2656 if test $ac_prog_rejected = yes; then |
|
2657 # We found a bogon in the path, so make sure we never use it. |
|
2658 set dummy $ac_cv_prog_CC |
|
2659 shift |
|
2660 if test $# != 0; then |
|
2661 # We chose a different compiler from the bogus one. |
|
2662 # However, it has the same basename, so the bogon will be chosen |
|
2663 # first if we set CC to just the basename; use the full file name. |
|
2664 shift |
|
2665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2666 fi |
|
2667 fi |
|
2668 fi |
|
2669 fi |
|
2670 CC=$ac_cv_prog_CC |
|
2671 if test -n "$CC"; then |
|
2672 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2673 echo "${ECHO_T}$CC" >&6; } |
|
2674 else |
|
2675 { echo "$as_me:$LINENO: result: no" >&5 |
|
2676 echo "${ECHO_T}no" >&6; } |
|
2677 fi |
|
2678 |
|
2679 |
|
2680 fi |
|
2681 if test -z "$CC"; then |
|
2682 if test -n "$ac_tool_prefix"; then |
|
2683 for ac_prog in cl.exe |
|
2684 do |
|
2685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2687 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2689 if test "${ac_cv_prog_CC+set}" = set; then |
|
2690 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2691 else |
|
2692 if test -n "$CC"; then |
|
2693 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2694 else |
|
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2696 for as_dir in $PATH |
|
2697 do |
|
2698 IFS=$as_save_IFS |
|
2699 test -z "$as_dir" && as_dir=. |
|
2700 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2704 break 2 |
|
2705 fi |
|
2706 done |
|
2707 done |
|
2708 IFS=$as_save_IFS |
|
2709 |
|
2710 fi |
|
2711 fi |
|
2712 CC=$ac_cv_prog_CC |
|
2713 if test -n "$CC"; then |
|
2714 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2715 echo "${ECHO_T}$CC" >&6; } |
|
2716 else |
|
2717 { echo "$as_me:$LINENO: result: no" >&5 |
|
2718 echo "${ECHO_T}no" >&6; } |
|
2719 fi |
|
2720 |
|
2721 |
|
2722 test -n "$CC" && break |
|
2723 done |
|
2724 fi |
|
2725 if test -z "$CC"; then |
|
2726 ac_ct_CC=$CC |
|
2727 for ac_prog in cl.exe |
|
2728 do |
|
2729 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2730 set dummy $ac_prog; ac_word=$2 |
|
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2734 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2735 else |
|
2736 if test -n "$ac_ct_CC"; then |
|
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2738 else |
|
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2740 for as_dir in $PATH |
|
2741 do |
|
2742 IFS=$as_save_IFS |
|
2743 test -z "$as_dir" && as_dir=. |
|
2744 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2746 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2748 break 2 |
|
2749 fi |
|
2750 done |
|
2751 done |
|
2752 IFS=$as_save_IFS |
|
2753 |
|
2754 fi |
|
2755 fi |
|
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2757 if test -n "$ac_ct_CC"; then |
|
2758 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2759 echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
2760 else |
|
2761 { echo "$as_me:$LINENO: result: no" >&5 |
|
2762 echo "${ECHO_T}no" >&6; } |
|
2763 fi |
|
2764 |
|
2765 |
|
2766 test -n "$ac_ct_CC" && break |
|
2767 done |
|
2768 |
|
2769 if test "x$ac_ct_CC" = x; then |
|
2770 CC="" |
|
2771 else |
|
2772 case $cross_compiling:$ac_tool_warned in |
|
2773 yes:) |
|
2774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2775 whose name does not start with the host triplet. If you think this |
|
2776 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2778 whose name does not start with the host triplet. If you think this |
|
2779 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2780 ac_tool_warned=yes ;; |
|
2781 esac |
|
2782 CC=$ac_ct_CC |
|
2783 fi |
|
2784 fi |
|
2785 |
|
2786 fi |
|
2787 |
|
2788 |
|
2789 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
2790 See \`config.log' for more details." >&5 |
|
2791 echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
2792 See \`config.log' for more details." >&2;} |
|
2793 { (exit 1); exit 1; }; } |
|
2794 |
|
2795 # Provide some information about the compiler. |
|
2796 echo "$as_me:$LINENO: checking for C compiler version" >&5 |
|
2797 ac_compiler=`set X $ac_compile; echo $2` |
|
2798 { (ac_try="$ac_compiler --version >&5" |
|
2799 case "(($ac_try" in |
|
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2801 *) ac_try_echo=$ac_try;; |
|
2802 esac |
|
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2804 (eval "$ac_compiler --version >&5") 2>&5 |
|
2805 ac_status=$? |
|
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2807 (exit $ac_status); } |
|
2808 { (ac_try="$ac_compiler -v >&5" |
|
2809 case "(($ac_try" in |
|
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2811 *) ac_try_echo=$ac_try;; |
|
2812 esac |
|
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2814 (eval "$ac_compiler -v >&5") 2>&5 |
|
2815 ac_status=$? |
|
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2817 (exit $ac_status); } |
|
2818 { (ac_try="$ac_compiler -V >&5" |
|
2819 case "(($ac_try" in |
|
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2821 *) ac_try_echo=$ac_try;; |
|
2822 esac |
|
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2824 (eval "$ac_compiler -V >&5") 2>&5 |
|
2825 ac_status=$? |
|
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2827 (exit $ac_status); } |
|
2828 |
|
2829 cat >conftest.$ac_ext <<_ACEOF |
|
2830 /* confdefs.h. */ |
|
2831 _ACEOF |
|
2832 cat confdefs.h >>conftest.$ac_ext |
|
2833 cat >>conftest.$ac_ext <<_ACEOF |
|
2834 /* end confdefs.h. */ |
|
2835 |
|
2836 int |
|
2837 main () |
|
2838 { |
|
2839 |
|
2840 ; |
|
2841 return 0; |
|
2842 } |
|
2843 _ACEOF |
|
2844 ac_clean_files_save=$ac_clean_files |
|
2845 ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
2846 # Try to create an executable without -o first, disregard a.out. |
|
2847 # It will help us diagnose broken compilers, and finding out an intuition |
|
2848 # of exeext. |
|
2849 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
2850 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
2851 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
2852 # |
|
2853 # List of possible output files, starting from the most likely. |
|
2854 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
2855 # only as a last resort. b.out is created by i960 compilers. |
|
2856 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
2857 # |
|
2858 # The IRIX 6 linker writes into existing files which may not be |
|
2859 # executable, retaining their permissions. Remove them first so a |
|
2860 # subsequent execution test works. |
|
2861 ac_rmfiles= |
|
2862 for ac_file in $ac_files |
|
2863 do |
|
2864 case $ac_file in |
|
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
2866 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
2867 esac |
|
2868 done |
|
2869 rm -f $ac_rmfiles |
|
2870 |
|
2871 if { (ac_try="$ac_link_default" |
|
2872 case "(($ac_try" in |
|
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2874 *) ac_try_echo=$ac_try;; |
|
2875 esac |
|
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2877 (eval "$ac_link_default") 2>&5 |
|
2878 ac_status=$? |
|
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2880 (exit $ac_status); }; then |
|
2881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
2882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
2883 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
2884 # so that the user can short-circuit this test for compilers unknown to |
|
2885 # Autoconf. |
|
2886 for ac_file in $ac_files '' |
|
2887 do |
|
2888 test -f "$ac_file" || continue |
|
2889 case $ac_file in |
|
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
|
2891 ;; |
|
2892 [ab].out ) |
|
2893 # We found the default executable, but exeext='' is most |
|
2894 # certainly right. |
|
2895 break;; |
|
2896 *.* ) |
|
2897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
2898 then :; else |
|
2899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2900 fi |
|
2901 # We set ac_cv_exeext here because the later test for it is not |
|
2902 # safe: cross compilers may not add the suffix if given an `-o' |
|
2903 # argument, so we may need to know it at that point already. |
|
2904 # Even if this section looks crufty: it has the advantage of |
|
2905 # actually working. |
|
2906 break;; |
|
2907 * ) |
|
2908 break;; |
|
2909 esac |
|
2910 done |
|
2911 test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
2912 |
|
2913 else |
|
2914 ac_file='' |
|
2915 fi |
|
2916 |
|
2917 { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
2918 echo "${ECHO_T}$ac_file" >&6; } |
|
2919 if test -z "$ac_file"; then |
|
2920 echo "$as_me: failed program was:" >&5 |
|
2921 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2922 |
|
2923 { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
2924 See \`config.log' for more details." >&5 |
|
2925 echo "$as_me: error: C compiler cannot create executables |
|
2926 See \`config.log' for more details." >&2;} |
|
2927 { (exit 77); exit 77; }; } |
|
2928 fi |
|
2929 |
|
2930 ac_exeext=$ac_cv_exeext |
|
2931 |
|
2932 # Check that the compiler produces executables we can run. If not, either |
|
2933 # the compiler is broken, or we cross compile. |
|
2934 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
2935 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
2936 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
2937 # If not cross compiling, check that we can run a simple program. |
|
2938 if test "$cross_compiling" != yes; then |
|
2939 if { ac_try='./$ac_file' |
|
2940 { (case "(($ac_try" in |
|
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2942 *) ac_try_echo=$ac_try;; |
|
2943 esac |
|
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2945 (eval "$ac_try") 2>&5 |
|
2946 ac_status=$? |
|
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2948 (exit $ac_status); }; }; then |
|
2949 cross_compiling=no |
|
2950 else |
|
2951 if test "$cross_compiling" = maybe; then |
|
2952 cross_compiling=yes |
|
2953 else |
|
2954 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
2955 If you meant to cross compile, use \`--host'. |
|
2956 See \`config.log' for more details." >&5 |
|
2957 echo "$as_me: error: cannot run C compiled programs. |
|
2958 If you meant to cross compile, use \`--host'. |
|
2959 See \`config.log' for more details." >&2;} |
|
2960 { (exit 1); exit 1; }; } |
|
2961 fi |
|
2962 fi |
|
2963 fi |
|
2964 { echo "$as_me:$LINENO: result: yes" >&5 |
|
2965 echo "${ECHO_T}yes" >&6; } |
|
2966 |
|
2967 rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|
2968 ac_clean_files=$ac_clean_files_save |
|
2969 # Check that the compiler produces executables we can run. If not, either |
|
2970 # the compiler is broken, or we cross compile. |
|
2971 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
2972 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
2973 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
2974 echo "${ECHO_T}$cross_compiling" >&6; } |
|
2975 |
|
2976 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
2977 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
|
2978 if { (ac_try="$ac_link" |
|
2979 case "(($ac_try" in |
|
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2981 *) ac_try_echo=$ac_try;; |
|
2982 esac |
|
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2984 (eval "$ac_link") 2>&5 |
|
2985 ac_status=$? |
|
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2987 (exit $ac_status); }; then |
|
2988 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
2989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
2990 # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
2991 # `rm'. |
|
2992 for ac_file in conftest.exe conftest conftest.*; do |
|
2993 test -f "$ac_file" || continue |
|
2994 case $ac_file in |
|
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
2996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2997 break;; |
|
2998 * ) break;; |
|
2999 esac |
|
3000 done |
|
3001 else |
|
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
3003 See \`config.log' for more details." >&5 |
|
3004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
3005 See \`config.log' for more details." >&2;} |
|
3006 { (exit 1); exit 1; }; } |
|
3007 fi |
|
3008 |
|
3009 rm -f conftest$ac_cv_exeext |
|
3010 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
3011 echo "${ECHO_T}$ac_cv_exeext" >&6; } |
|
3012 |
|
3013 rm -f conftest.$ac_ext |
|
3014 EXEEXT=$ac_cv_exeext |
|
3015 ac_exeext=$EXEEXT |
|
3016 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
3018 if test "${ac_cv_objext+set}" = set; then |
|
3019 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3020 else |
|
3021 cat >conftest.$ac_ext <<_ACEOF |
|
3022 /* confdefs.h. */ |
|
3023 _ACEOF |
|
3024 cat confdefs.h >>conftest.$ac_ext |
|
3025 cat >>conftest.$ac_ext <<_ACEOF |
|
3026 /* end confdefs.h. */ |
|
3027 |
|
3028 int |
|
3029 main () |
|
3030 { |
|
3031 |
|
3032 ; |
|
3033 return 0; |
|
3034 } |
|
3035 _ACEOF |
|
3036 rm -f conftest.o conftest.obj |
|
3037 if { (ac_try="$ac_compile" |
|
3038 case "(($ac_try" in |
|
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3040 *) ac_try_echo=$ac_try;; |
|
3041 esac |
|
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3043 (eval "$ac_compile") 2>&5 |
|
3044 ac_status=$? |
|
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3046 (exit $ac_status); }; then |
|
3047 for ac_file in conftest.o conftest.obj conftest.*; do |
|
3048 test -f "$ac_file" || continue; |
|
3049 case $ac_file in |
|
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
|
3051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3052 break;; |
|
3053 esac |
|
3054 done |
|
3055 else |
|
3056 echo "$as_me: failed program was:" >&5 |
|
3057 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3058 |
|
3059 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
3060 See \`config.log' for more details." >&5 |
|
3061 echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
3062 See \`config.log' for more details." >&2;} |
|
3063 { (exit 1); exit 1; }; } |
|
3064 fi |
|
3065 |
|
3066 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3067 fi |
|
3068 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
3069 echo "${ECHO_T}$ac_cv_objext" >&6; } |
|
3070 OBJEXT=$ac_cv_objext |
|
3071 ac_objext=$OBJEXT |
|
3072 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
3073 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
|
3074 if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
3075 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3076 else |
|
3077 cat >conftest.$ac_ext <<_ACEOF |
|
3078 /* confdefs.h. */ |
|
3079 _ACEOF |
|
3080 cat confdefs.h >>conftest.$ac_ext |
|
3081 cat >>conftest.$ac_ext <<_ACEOF |
|
3082 /* end confdefs.h. */ |
|
3083 |
|
3084 int |
|
3085 main () |
|
3086 { |
|
3087 #ifndef __GNUC__ |
|
3088 choke me |
|
3089 #endif |
|
3090 |
|
3091 ; |
|
3092 return 0; |
|
3093 } |
|
3094 _ACEOF |
|
3095 rm -f conftest.$ac_objext |
|
3096 if { (ac_try="$ac_compile" |
|
3097 case "(($ac_try" in |
|
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3099 *) ac_try_echo=$ac_try;; |
|
3100 esac |
|
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3102 (eval "$ac_compile") 2>conftest.er1 |
|
3103 ac_status=$? |
|
3104 grep -v '^ *+' conftest.er1 >conftest.err |
|
3105 rm -f conftest.er1 |
|
3106 cat conftest.err >&5 |
|
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3108 (exit $ac_status); } && { |
|
3109 test -z "$ac_c_werror_flag" || |
|
3110 test ! -s conftest.err |
|
3111 } && test -s conftest.$ac_objext; then |
|
3112 ac_compiler_gnu=yes |
|
3113 else |
|
3114 echo "$as_me: failed program was:" >&5 |
|
3115 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3116 |
|
3117 ac_compiler_gnu=no |
|
3118 fi |
|
3119 |
|
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3121 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3122 |
|
3123 fi |
|
3124 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
3125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
3126 GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
3127 ac_test_CFLAGS=${CFLAGS+set} |
|
3128 ac_save_CFLAGS=$CFLAGS |
|
3129 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
3130 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
|
3131 if test "${ac_cv_prog_cc_g+set}" = set; then |
|
3132 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3133 else |
|
3134 ac_save_c_werror_flag=$ac_c_werror_flag |
|
3135 ac_c_werror_flag=yes |
|
3136 ac_cv_prog_cc_g=no |
|
3137 CFLAGS="-g" |
|
3138 cat >conftest.$ac_ext <<_ACEOF |
|
3139 /* confdefs.h. */ |
|
3140 _ACEOF |
|
3141 cat confdefs.h >>conftest.$ac_ext |
|
3142 cat >>conftest.$ac_ext <<_ACEOF |
|
3143 /* end confdefs.h. */ |
|
3144 |
|
3145 int |
|
3146 main () |
|
3147 { |
|
3148 |
|
3149 ; |
|
3150 return 0; |
|
3151 } |
|
3152 _ACEOF |
|
3153 rm -f conftest.$ac_objext |
|
3154 if { (ac_try="$ac_compile" |
|
3155 case "(($ac_try" in |
|
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3157 *) ac_try_echo=$ac_try;; |
|
3158 esac |
|
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3160 (eval "$ac_compile") 2>conftest.er1 |
|
3161 ac_status=$? |
|
3162 grep -v '^ *+' conftest.er1 >conftest.err |
|
3163 rm -f conftest.er1 |
|
3164 cat conftest.err >&5 |
|
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3166 (exit $ac_status); } && { |
|
3167 test -z "$ac_c_werror_flag" || |
|
3168 test ! -s conftest.err |
|
3169 } && test -s conftest.$ac_objext; then |
|
3170 ac_cv_prog_cc_g=yes |
|
3171 else |
|
3172 echo "$as_me: failed program was:" >&5 |
|
3173 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3174 |
|
3175 CFLAGS="" |
|
3176 cat >conftest.$ac_ext <<_ACEOF |
|
3177 /* confdefs.h. */ |
|
3178 _ACEOF |
|
3179 cat confdefs.h >>conftest.$ac_ext |
|
3180 cat >>conftest.$ac_ext <<_ACEOF |
|
3181 /* end confdefs.h. */ |
|
3182 |
|
3183 int |
|
3184 main () |
|
3185 { |
|
3186 |
|
3187 ; |
|
3188 return 0; |
|
3189 } |
|
3190 _ACEOF |
|
3191 rm -f conftest.$ac_objext |
|
3192 if { (ac_try="$ac_compile" |
|
3193 case "(($ac_try" in |
|
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3195 *) ac_try_echo=$ac_try;; |
|
3196 esac |
|
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3198 (eval "$ac_compile") 2>conftest.er1 |
|
3199 ac_status=$? |
|
3200 grep -v '^ *+' conftest.er1 >conftest.err |
|
3201 rm -f conftest.er1 |
|
3202 cat conftest.err >&5 |
|
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3204 (exit $ac_status); } && { |
|
3205 test -z "$ac_c_werror_flag" || |
|
3206 test ! -s conftest.err |
|
3207 } && test -s conftest.$ac_objext; then |
|
3208 : |
|
3209 else |
|
3210 echo "$as_me: failed program was:" >&5 |
|
3211 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3212 |
|
3213 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3214 CFLAGS="-g" |
|
3215 cat >conftest.$ac_ext <<_ACEOF |
|
3216 /* confdefs.h. */ |
|
3217 _ACEOF |
|
3218 cat confdefs.h >>conftest.$ac_ext |
|
3219 cat >>conftest.$ac_ext <<_ACEOF |
|
3220 /* end confdefs.h. */ |
|
3221 |
|
3222 int |
|
3223 main () |
|
3224 { |
|
3225 |
|
3226 ; |
|
3227 return 0; |
|
3228 } |
|
3229 _ACEOF |
|
3230 rm -f conftest.$ac_objext |
|
3231 if { (ac_try="$ac_compile" |
|
3232 case "(($ac_try" in |
|
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3234 *) ac_try_echo=$ac_try;; |
|
3235 esac |
|
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3237 (eval "$ac_compile") 2>conftest.er1 |
|
3238 ac_status=$? |
|
3239 grep -v '^ *+' conftest.er1 >conftest.err |
|
3240 rm -f conftest.er1 |
|
3241 cat conftest.err >&5 |
|
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3243 (exit $ac_status); } && { |
|
3244 test -z "$ac_c_werror_flag" || |
|
3245 test ! -s conftest.err |
|
3246 } && test -s conftest.$ac_objext; then |
|
3247 ac_cv_prog_cc_g=yes |
|
3248 else |
|
3249 echo "$as_me: failed program was:" >&5 |
|
3250 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3251 |
|
3252 |
|
3253 fi |
|
3254 |
|
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3256 fi |
|
3257 |
|
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3259 fi |
|
3260 |
|
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3262 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3263 fi |
|
3264 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
3265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
|
3266 if test "$ac_test_CFLAGS" = set; then |
|
3267 CFLAGS=$ac_save_CFLAGS |
|
3268 elif test $ac_cv_prog_cc_g = yes; then |
|
3269 if test "$GCC" = yes; then |
|
3270 CFLAGS="-g -O2" |
|
3271 else |
|
3272 CFLAGS="-g" |
|
3273 fi |
|
3274 else |
|
3275 if test "$GCC" = yes; then |
|
3276 CFLAGS="-O2" |
|
3277 else |
|
3278 CFLAGS= |
|
3279 fi |
|
3280 fi |
|
3281 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
|
3282 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
|
3283 if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
3284 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3285 else |
|
3286 ac_cv_prog_cc_c89=no |
|
3287 ac_save_CC=$CC |
|
3288 cat >conftest.$ac_ext <<_ACEOF |
|
3289 /* confdefs.h. */ |
|
3290 _ACEOF |
|
3291 cat confdefs.h >>conftest.$ac_ext |
|
3292 cat >>conftest.$ac_ext <<_ACEOF |
|
3293 /* end confdefs.h. */ |
|
3294 #include <stdarg.h> |
|
3295 #include <stdio.h> |
|
3296 #include <sys/types.h> |
|
3297 #include <sys/stat.h> |
|
3298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3299 struct buf { int x; }; |
|
3300 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3301 static char *e (p, i) |
|
3302 char **p; |
|
3303 int i; |
|
3304 { |
|
3305 return p[i]; |
|
3306 } |
|
3307 static char *f (char * (*g) (char **, int), char **p, ...) |
|
3308 { |
|
3309 char *s; |
|
3310 va_list v; |
|
3311 va_start (v,p); |
|
3312 s = g (p, va_arg (v,int)); |
|
3313 va_end (v); |
|
3314 return s; |
|
3315 } |
|
3316 |
|
3317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3318 function prototypes and stuff, but not '\xHH' hex character constants. |
|
3319 These don't provoke an error unfortunately, instead are silently treated |
|
3320 as 'x'. The following induces an error, until -std is added to get |
|
3321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3322 array size at least. It's necessary to write '\x00'==0 to get something |
|
3323 that's true only with -std. */ |
|
3324 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3325 |
|
3326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3327 inside strings and character constants. */ |
|
3328 #define FOO(x) 'x' |
|
3329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3330 |
|
3331 int test (int i, double x); |
|
3332 struct s1 {int (*f) (int a);}; |
|
3333 struct s2 {int (*f) (double a);}; |
|
3334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3335 int argc; |
|
3336 char **argv; |
|
3337 int |
|
3338 main () |
|
3339 { |
|
3340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3341 ; |
|
3342 return 0; |
|
3343 } |
|
3344 _ACEOF |
|
3345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3347 do |
|
3348 CC="$ac_save_CC $ac_arg" |
|
3349 rm -f conftest.$ac_objext |
|
3350 if { (ac_try="$ac_compile" |
|
3351 case "(($ac_try" in |
|
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3353 *) ac_try_echo=$ac_try;; |
|
3354 esac |
|
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3356 (eval "$ac_compile") 2>conftest.er1 |
|
3357 ac_status=$? |
|
3358 grep -v '^ *+' conftest.er1 >conftest.err |
|
3359 rm -f conftest.er1 |
|
3360 cat conftest.err >&5 |
|
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3362 (exit $ac_status); } && { |
|
3363 test -z "$ac_c_werror_flag" || |
|
3364 test ! -s conftest.err |
|
3365 } && test -s conftest.$ac_objext; then |
|
3366 ac_cv_prog_cc_c89=$ac_arg |
|
3367 else |
|
3368 echo "$as_me: failed program was:" >&5 |
|
3369 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3370 |
|
3371 |
|
3372 fi |
|
3373 |
|
3374 rm -f core conftest.err conftest.$ac_objext |
|
3375 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3376 done |
|
3377 rm -f conftest.$ac_ext |
|
3378 CC=$ac_save_CC |
|
3379 |
|
3380 fi |
|
3381 # AC_CACHE_VAL |
|
3382 case "x$ac_cv_prog_cc_c89" in |
|
3383 x) |
|
3384 { echo "$as_me:$LINENO: result: none needed" >&5 |
|
3385 echo "${ECHO_T}none needed" >&6; } ;; |
|
3386 xno) |
|
3387 { echo "$as_me:$LINENO: result: unsupported" >&5 |
|
3388 echo "${ECHO_T}unsupported" >&6; } ;; |
|
3389 *) |
|
3390 CC="$CC $ac_cv_prog_cc_c89" |
|
3391 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
3392 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
|
3393 esac |
|
3394 |
|
3395 |
|
3396 ac_ext=c |
|
3397 ac_cpp='$CPP $CPPFLAGS' |
|
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3401 DEPDIR="${am__leading_dot}deps" |
|
3402 |
|
3403 ac_config_commands="$ac_config_commands depfiles" |
|
3404 |
|
3405 |
|
3406 am_make=${MAKE-make} |
|
3407 cat > confinc << 'END' |
|
3408 am__doit: |
|
3409 @echo done |
|
3410 .PHONY: am__doit |
|
3411 END |
|
3412 # If we don't find an include directive, just comment out the code. |
|
3413 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
3414 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
|
3415 am__include="#" |
|
3416 am__quote= |
|
3417 _am_result=none |
|
3418 # First try GNU make style include. |
|
3419 echo "include confinc" > confmf |
|
3420 # We grep out `Entering directory' and `Leaving directory' |
|
3421 # messages which can occur if `w' ends up in MAKEFLAGS. |
|
3422 # In particular we don't look at `^make:' because GNU make might |
|
3423 # be invoked under some other name (usually "gmake"), in which |
|
3424 # case it prints its new name instead of `make'. |
|
3425 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
3426 am__include=include |
|
3427 am__quote= |
|
3428 _am_result=GNU |
|
3429 fi |
|
3430 # Now try BSD make style include. |
|
3431 if test "$am__include" = "#"; then |
|
3432 echo '.include "confinc"' > confmf |
|
3433 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
3434 am__include=.include |
|
3435 am__quote="\"" |
|
3436 _am_result=BSD |
|
3437 fi |
|
3438 fi |
|
3439 |
|
3440 |
|
3441 { echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
3442 echo "${ECHO_T}$_am_result" >&6; } |
|
3443 rm -f confinc confmf |
|
3444 |
|
3445 # Check whether --enable-dependency-tracking was given. |
|
3446 if test "${enable_dependency_tracking+set}" = set; then |
|
3447 enableval=$enable_dependency_tracking; |
|
3448 fi |
|
3449 |
|
3450 if test "x$enable_dependency_tracking" != xno; then |
|
3451 am_depcomp="$ac_aux_dir/depcomp" |
|
3452 AMDEPBACKSLASH='\' |
|
3453 fi |
|
3454 if test "x$enable_dependency_tracking" != xno; then |
|
3455 AMDEP_TRUE= |
|
3456 AMDEP_FALSE='#' |
|
3457 else |
|
3458 AMDEP_TRUE='#' |
|
3459 AMDEP_FALSE= |
|
3460 fi |
|
3461 |
|
3462 |
|
3463 |
|
3464 depcc="$CC" am_compiler_list= |
|
3465 |
|
3466 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
|
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
3469 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3470 else |
|
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3472 # We make a subdir and do the tests there. Otherwise we can end up |
|
3473 # making bogus files that we don't know about and never remove. For |
|
3474 # instance it was reported that on HP-UX the gcc test will end up |
|
3475 # making a dummy file named `D' -- because `-MD' means `put the output |
|
3476 # in D'. |
|
3477 mkdir conftest.dir |
|
3478 # Copy depcomp to subdir because otherwise we won't find it if we're |
|
3479 # using a relative directory. |
|
3480 cp "$am_depcomp" conftest.dir |
|
3481 cd conftest.dir |
|
3482 # We will build objects and dependencies in a subdirectory because |
|
3483 # it helps to detect inapplicable dependency modes. For instance |
|
3484 # both Tru64's cc and ICC support -MD to output dependencies as a |
|
3485 # side effect of compilation, but ICC will put the dependencies in |
|
3486 # the current directory while Tru64 will put them in the object |
|
3487 # directory. |
|
3488 mkdir sub |
|
3489 |
|
3490 am_cv_CC_dependencies_compiler_type=none |
|
3491 if test "$am_compiler_list" = ""; then |
|
3492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3493 fi |
|
3494 for depmode in $am_compiler_list; do |
|
3495 # Setup a source with many dependencies, because some compilers |
|
3496 # like to wrap large dependency lists on column 80 (with \), and |
|
3497 # we should not choose a depcomp mode which is confused by this. |
|
3498 # |
|
3499 # We need to recreate these files for each test, as the compiler may |
|
3500 # overwrite some of them when testing with obscure command lines. |
|
3501 # This happens at least with the AIX C compiler. |
|
3502 : > sub/conftest.c |
|
3503 for i in 1 2 3 4 5 6; do |
|
3504 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
3506 # Solaris 8's {/usr,}/bin/sh. |
|
3507 touch sub/conftst$i.h |
|
3508 done |
|
3509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3510 |
|
3511 case $depmode in |
|
3512 nosideeffect) |
|
3513 # after this tag, mechanisms are not by side-effect, so they'll |
|
3514 # only be used when explicitly requested |
|
3515 if test "x$enable_dependency_tracking" = xyes; then |
|
3516 continue |
|
3517 else |
|
3518 break |
|
3519 fi |
|
3520 ;; |
|
3521 none) break ;; |
|
3522 esac |
|
3523 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3524 # mode. It turns out that the SunPro C++ compiler does not properly |
|
3525 # handle `-M -o', and we need to detect this. |
|
3526 if depmode=$depmode \ |
|
3527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
3528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
3530 >/dev/null 2>conftest.err && |
|
3531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
3532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3533 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
3534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3535 # icc doesn't choke on unknown options, it will just issue warnings |
|
3536 # or remarks (even with -Werror). So we grep stderr for any message |
|
3537 # that says an option was ignored or not supported. |
|
3538 # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3539 # icc: Command line warning: ignoring option '-M'; no argument required |
|
3540 # The diagnosis changed in icc 8.0: |
|
3541 # icc: Command line remark: option '-MP' not supported |
|
3542 if (grep 'ignoring option' conftest.err || |
|
3543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
3544 am_cv_CC_dependencies_compiler_type=$depmode |
|
3545 break |
|
3546 fi |
|
3547 fi |
|
3548 done |
|
3549 |
|
3550 cd .. |
|
3551 rm -rf conftest.dir |
|
3552 else |
|
3553 am_cv_CC_dependencies_compiler_type=none |
|
3554 fi |
|
3555 |
|
3556 fi |
|
3557 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
3558 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
|
3559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
3560 |
|
3561 if |
|
3562 test "x$enable_dependency_tracking" != xno \ |
|
3563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3564 am__fastdepCC_TRUE= |
|
3565 am__fastdepCC_FALSE='#' |
|
3566 else |
|
3567 am__fastdepCC_TRUE='#' |
|
3568 am__fastdepCC_FALSE= |
|
3569 fi |
|
3570 |
|
3571 |
|
3572 ac_ext=cpp |
|
3573 ac_cpp='$CXXCPP $CPPFLAGS' |
|
3574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
3577 if test -z "$CXX"; then |
|
3578 if test -n "$CCC"; then |
|
3579 CXX=$CCC |
|
3580 else |
|
3581 if test -n "$ac_tool_prefix"; then |
|
3582 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
3583 do |
|
3584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3586 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
3588 if test "${ac_cv_prog_CXX+set}" = set; then |
|
3589 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3590 else |
|
3591 if test -n "$CXX"; then |
|
3592 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
3593 else |
|
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3595 for as_dir in $PATH |
|
3596 do |
|
3597 IFS=$as_save_IFS |
|
3598 test -z "$as_dir" && as_dir=. |
|
3599 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3601 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3603 break 2 |
|
3604 fi |
|
3605 done |
|
3606 done |
|
3607 IFS=$as_save_IFS |
|
3608 |
|
3609 fi |
|
3610 fi |
|
3611 CXX=$ac_cv_prog_CXX |
|
3612 if test -n "$CXX"; then |
|
3613 { echo "$as_me:$LINENO: result: $CXX" >&5 |
|
3614 echo "${ECHO_T}$CXX" >&6; } |
|
3615 else |
|
3616 { echo "$as_me:$LINENO: result: no" >&5 |
|
3617 echo "${ECHO_T}no" >&6; } |
|
3618 fi |
|
3619 |
|
3620 |
|
3621 test -n "$CXX" && break |
|
3622 done |
|
3623 fi |
|
3624 if test -z "$CXX"; then |
|
3625 ac_ct_CXX=$CXX |
|
3626 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
3627 do |
|
3628 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3629 set dummy $ac_prog; ac_word=$2 |
|
3630 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
3632 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
|
3633 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3634 else |
|
3635 if test -n "$ac_ct_CXX"; then |
|
3636 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
3637 else |
|
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3639 for as_dir in $PATH |
|
3640 do |
|
3641 IFS=$as_save_IFS |
|
3642 test -z "$as_dir" && as_dir=. |
|
3643 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3645 ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3647 break 2 |
|
3648 fi |
|
3649 done |
|
3650 done |
|
3651 IFS=$as_save_IFS |
|
3652 |
|
3653 fi |
|
3654 fi |
|
3655 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
3656 if test -n "$ac_ct_CXX"; then |
|
3657 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
|
3658 echo "${ECHO_T}$ac_ct_CXX" >&6; } |
|
3659 else |
|
3660 { echo "$as_me:$LINENO: result: no" >&5 |
|
3661 echo "${ECHO_T}no" >&6; } |
|
3662 fi |
|
3663 |
|
3664 |
|
3665 test -n "$ac_ct_CXX" && break |
|
3666 done |
|
3667 |
|
3668 if test "x$ac_ct_CXX" = x; then |
|
3669 CXX="g++" |
|
3670 else |
|
3671 case $cross_compiling:$ac_tool_warned in |
|
3672 yes:) |
|
3673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
3674 whose name does not start with the host triplet. If you think this |
|
3675 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
3676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
3677 whose name does not start with the host triplet. If you think this |
|
3678 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
3679 ac_tool_warned=yes ;; |
|
3680 esac |
|
3681 CXX=$ac_ct_CXX |
|
3682 fi |
|
3683 fi |
|
3684 |
|
3685 fi |
|
3686 fi |
|
3687 # Provide some information about the compiler. |
|
3688 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
|
3689 ac_compiler=`set X $ac_compile; echo $2` |
|
3690 { (ac_try="$ac_compiler --version >&5" |
|
3691 case "(($ac_try" in |
|
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3693 *) ac_try_echo=$ac_try;; |
|
3694 esac |
|
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3696 (eval "$ac_compiler --version >&5") 2>&5 |
|
3697 ac_status=$? |
|
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3699 (exit $ac_status); } |
|
3700 { (ac_try="$ac_compiler -v >&5" |
|
3701 case "(($ac_try" in |
|
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3703 *) ac_try_echo=$ac_try;; |
|
3704 esac |
|
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3706 (eval "$ac_compiler -v >&5") 2>&5 |
|
3707 ac_status=$? |
|
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3709 (exit $ac_status); } |
|
3710 { (ac_try="$ac_compiler -V >&5" |
|
3711 case "(($ac_try" in |
|
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3713 *) ac_try_echo=$ac_try;; |
|
3714 esac |
|
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3716 (eval "$ac_compiler -V >&5") 2>&5 |
|
3717 ac_status=$? |
|
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3719 (exit $ac_status); } |
|
3720 |
|
3721 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
|
3722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
|
3723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
|
3724 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3725 else |
|
3726 cat >conftest.$ac_ext <<_ACEOF |
|
3727 /* confdefs.h. */ |
|
3728 _ACEOF |
|
3729 cat confdefs.h >>conftest.$ac_ext |
|
3730 cat >>conftest.$ac_ext <<_ACEOF |
|
3731 /* end confdefs.h. */ |
|
3732 |
|
3733 int |
|
3734 main () |
|
3735 { |
|
3736 #ifndef __GNUC__ |
|
3737 choke me |
|
3738 #endif |
|
3739 |
|
3740 ; |
|
3741 return 0; |
|
3742 } |
|
3743 _ACEOF |
|
3744 rm -f conftest.$ac_objext |
|
3745 if { (ac_try="$ac_compile" |
|
3746 case "(($ac_try" in |
|
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3748 *) ac_try_echo=$ac_try;; |
|
3749 esac |
|
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3751 (eval "$ac_compile") 2>conftest.er1 |
|
3752 ac_status=$? |
|
3753 grep -v '^ *+' conftest.er1 >conftest.err |
|
3754 rm -f conftest.er1 |
|
3755 cat conftest.err >&5 |
|
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3757 (exit $ac_status); } && { |
|
3758 test -z "$ac_cxx_werror_flag" || |
|
3759 test ! -s conftest.err |
|
3760 } && test -s conftest.$ac_objext; then |
|
3761 ac_compiler_gnu=yes |
|
3762 else |
|
3763 echo "$as_me: failed program was:" >&5 |
|
3764 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3765 |
|
3766 ac_compiler_gnu=no |
|
3767 fi |
|
3768 |
|
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3770 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
3771 |
|
3772 fi |
|
3773 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
3774 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
|
3775 GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
3776 ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
3777 ac_save_CXXFLAGS=$CXXFLAGS |
|
3778 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
|
3779 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
|
3780 if test "${ac_cv_prog_cxx_g+set}" = set; then |
|
3781 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3782 else |
|
3783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
3784 ac_cxx_werror_flag=yes |
|
3785 ac_cv_prog_cxx_g=no |
|
3786 CXXFLAGS="-g" |
|
3787 cat >conftest.$ac_ext <<_ACEOF |
|
3788 /* confdefs.h. */ |
|
3789 _ACEOF |
|
3790 cat confdefs.h >>conftest.$ac_ext |
|
3791 cat >>conftest.$ac_ext <<_ACEOF |
|
3792 /* end confdefs.h. */ |
|
3793 |
|
3794 int |
|
3795 main () |
|
3796 { |
|
3797 |
|
3798 ; |
|
3799 return 0; |
|
3800 } |
|
3801 _ACEOF |
|
3802 rm -f conftest.$ac_objext |
|
3803 if { (ac_try="$ac_compile" |
|
3804 case "(($ac_try" in |
|
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3806 *) ac_try_echo=$ac_try;; |
|
3807 esac |
|
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3809 (eval "$ac_compile") 2>conftest.er1 |
|
3810 ac_status=$? |
|
3811 grep -v '^ *+' conftest.er1 >conftest.err |
|
3812 rm -f conftest.er1 |
|
3813 cat conftest.err >&5 |
|
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3815 (exit $ac_status); } && { |
|
3816 test -z "$ac_cxx_werror_flag" || |
|
3817 test ! -s conftest.err |
|
3818 } && test -s conftest.$ac_objext; then |
|
3819 ac_cv_prog_cxx_g=yes |
|
3820 else |
|
3821 echo "$as_me: failed program was:" >&5 |
|
3822 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3823 |
|
3824 CXXFLAGS="" |
|
3825 cat >conftest.$ac_ext <<_ACEOF |
|
3826 /* confdefs.h. */ |
|
3827 _ACEOF |
|
3828 cat confdefs.h >>conftest.$ac_ext |
|
3829 cat >>conftest.$ac_ext <<_ACEOF |
|
3830 /* end confdefs.h. */ |
|
3831 |
|
3832 int |
|
3833 main () |
|
3834 { |
|
3835 |
|
3836 ; |
|
3837 return 0; |
|
3838 } |
|
3839 _ACEOF |
|
3840 rm -f conftest.$ac_objext |
|
3841 if { (ac_try="$ac_compile" |
|
3842 case "(($ac_try" in |
|
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3844 *) ac_try_echo=$ac_try;; |
|
3845 esac |
|
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3847 (eval "$ac_compile") 2>conftest.er1 |
|
3848 ac_status=$? |
|
3849 grep -v '^ *+' conftest.er1 >conftest.err |
|
3850 rm -f conftest.er1 |
|
3851 cat conftest.err >&5 |
|
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3853 (exit $ac_status); } && { |
|
3854 test -z "$ac_cxx_werror_flag" || |
|
3855 test ! -s conftest.err |
|
3856 } && test -s conftest.$ac_objext; then |
|
3857 : |
|
3858 else |
|
3859 echo "$as_me: failed program was:" >&5 |
|
3860 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3861 |
|
3862 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
3863 CXXFLAGS="-g" |
|
3864 cat >conftest.$ac_ext <<_ACEOF |
|
3865 /* confdefs.h. */ |
|
3866 _ACEOF |
|
3867 cat confdefs.h >>conftest.$ac_ext |
|
3868 cat >>conftest.$ac_ext <<_ACEOF |
|
3869 /* end confdefs.h. */ |
|
3870 |
|
3871 int |
|
3872 main () |
|
3873 { |
|
3874 |
|
3875 ; |
|
3876 return 0; |
|
3877 } |
|
3878 _ACEOF |
|
3879 rm -f conftest.$ac_objext |
|
3880 if { (ac_try="$ac_compile" |
|
3881 case "(($ac_try" in |
|
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3883 *) ac_try_echo=$ac_try;; |
|
3884 esac |
|
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3886 (eval "$ac_compile") 2>conftest.er1 |
|
3887 ac_status=$? |
|
3888 grep -v '^ *+' conftest.er1 >conftest.err |
|
3889 rm -f conftest.er1 |
|
3890 cat conftest.err >&5 |
|
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3892 (exit $ac_status); } && { |
|
3893 test -z "$ac_cxx_werror_flag" || |
|
3894 test ! -s conftest.err |
|
3895 } && test -s conftest.$ac_objext; then |
|
3896 ac_cv_prog_cxx_g=yes |
|
3897 else |
|
3898 echo "$as_me: failed program was:" >&5 |
|
3899 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3900 |
|
3901 |
|
3902 fi |
|
3903 |
|
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3905 fi |
|
3906 |
|
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3908 fi |
|
3909 |
|
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3911 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
3912 fi |
|
3913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
3914 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
|
3915 if test "$ac_test_CXXFLAGS" = set; then |
|
3916 CXXFLAGS=$ac_save_CXXFLAGS |
|
3917 elif test $ac_cv_prog_cxx_g = yes; then |
|
3918 if test "$GXX" = yes; then |
|
3919 CXXFLAGS="-g -O2" |
|
3920 else |
|
3921 CXXFLAGS="-g" |
|
3922 fi |
|
3923 else |
|
3924 if test "$GXX" = yes; then |
|
3925 CXXFLAGS="-O2" |
|
3926 else |
|
3927 CXXFLAGS= |
|
3928 fi |
|
3929 fi |
|
3930 ac_ext=c |
|
3931 ac_cpp='$CPP $CPPFLAGS' |
|
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3935 |
|
3936 depcc="$CXX" am_compiler_list= |
|
3937 |
|
3938 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
3939 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
|
3940 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
|
3941 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3942 else |
|
3943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3944 # We make a subdir and do the tests there. Otherwise we can end up |
|
3945 # making bogus files that we don't know about and never remove. For |
|
3946 # instance it was reported that on HP-UX the gcc test will end up |
|
3947 # making a dummy file named `D' -- because `-MD' means `put the output |
|
3948 # in D'. |
|
3949 mkdir conftest.dir |
|
3950 # Copy depcomp to subdir because otherwise we won't find it if we're |
|
3951 # using a relative directory. |
|
3952 cp "$am_depcomp" conftest.dir |
|
3953 cd conftest.dir |
|
3954 # We will build objects and dependencies in a subdirectory because |
|
3955 # it helps to detect inapplicable dependency modes. For instance |
|
3956 # both Tru64's cc and ICC support -MD to output dependencies as a |
|
3957 # side effect of compilation, but ICC will put the dependencies in |
|
3958 # the current directory while Tru64 will put them in the object |
|
3959 # directory. |
|
3960 mkdir sub |
|
3961 |
|
3962 am_cv_CXX_dependencies_compiler_type=none |
|
3963 if test "$am_compiler_list" = ""; then |
|
3964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3965 fi |
|
3966 for depmode in $am_compiler_list; do |
|
3967 # Setup a source with many dependencies, because some compilers |
|
3968 # like to wrap large dependency lists on column 80 (with \), and |
|
3969 # we should not choose a depcomp mode which is confused by this. |
|
3970 # |
|
3971 # We need to recreate these files for each test, as the compiler may |
|
3972 # overwrite some of them when testing with obscure command lines. |
|
3973 # This happens at least with the AIX C compiler. |
|
3974 : > sub/conftest.c |
|
3975 for i in 1 2 3 4 5 6; do |
|
3976 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
3978 # Solaris 8's {/usr,}/bin/sh. |
|
3979 touch sub/conftst$i.h |
|
3980 done |
|
3981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3982 |
|
3983 case $depmode in |
|
3984 nosideeffect) |
|
3985 # after this tag, mechanisms are not by side-effect, so they'll |
|
3986 # only be used when explicitly requested |
|
3987 if test "x$enable_dependency_tracking" = xyes; then |
|
3988 continue |
|
3989 else |
|
3990 break |
|
3991 fi |
|
3992 ;; |
|
3993 none) break ;; |
|
3994 esac |
|
3995 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3996 # mode. It turns out that the SunPro C++ compiler does not properly |
|
3997 # handle `-M -o', and we need to detect this. |
|
3998 if depmode=$depmode \ |
|
3999 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
4000 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
4001 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
4002 >/dev/null 2>conftest.err && |
|
4003 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
4004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
4005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
4006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
4007 # icc doesn't choke on unknown options, it will just issue warnings |
|
4008 # or remarks (even with -Werror). So we grep stderr for any message |
|
4009 # that says an option was ignored or not supported. |
|
4010 # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
4011 # icc: Command line warning: ignoring option '-M'; no argument required |
|
4012 # The diagnosis changed in icc 8.0: |
|
4013 # icc: Command line remark: option '-MP' not supported |
|
4014 if (grep 'ignoring option' conftest.err || |
|
4015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
4016 am_cv_CXX_dependencies_compiler_type=$depmode |
|
4017 break |
|
4018 fi |
|
4019 fi |
|
4020 done |
|
4021 |
|
4022 cd .. |
|
4023 rm -rf conftest.dir |
|
4024 else |
|
4025 am_cv_CXX_dependencies_compiler_type=none |
|
4026 fi |
|
4027 |
|
4028 fi |
|
4029 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
|
4030 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
|
4031 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
|
4032 |
|
4033 if |
|
4034 test "x$enable_dependency_tracking" != xno \ |
|
4035 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
4036 am__fastdepCXX_TRUE= |
|
4037 am__fastdepCXX_FALSE='#' |
|
4038 else |
|
4039 am__fastdepCXX_TRUE='#' |
|
4040 am__fastdepCXX_FALSE= |
|
4041 fi |
|
4042 |
|
4043 |
|
4044 |
|
4045 if test "x$remember_set_CFLAGS" = "x" |
|
4046 then |
|
4047 if test "$CFLAGS" = "-g -O2" |
|
4048 then |
|
4049 CFLAGS="-O2" |
|
4050 elif test "$CFLAGS" = "-g" |
|
4051 then |
|
4052 CFLAGS="" |
|
4053 fi |
|
4054 fi |
|
4055 |
|
4056 if test "x$remember_set_CXXFLAGS" = "x" |
|
4057 then |
|
4058 if test "$CXXFLAGS" = "-g -O2" |
|
4059 then |
|
4060 CXXFLAGS="-O2" |
|
4061 elif test "$CXXFLAGS" = "-g" |
|
4062 then |
|
4063 CXXFLAGS="" |
|
4064 fi |
|
4065 fi |
|
4066 |
|
4067 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed. |
|
4068 # Check for that case, and just disable c++ code if g++ doesn't run. |
|
4069 ac_ext=cpp |
|
4070 ac_cpp='$CXXCPP $CPPFLAGS' |
|
4071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4074 |
|
4075 |
|
4076 cat >conftest.$ac_ext <<_ACEOF |
|
4077 /* confdefs.h. */ |
|
4078 _ACEOF |
|
4079 cat confdefs.h >>conftest.$ac_ext |
|
4080 cat >>conftest.$ac_ext <<_ACEOF |
|
4081 /* end confdefs.h. */ |
|
4082 |
|
4083 int |
|
4084 main () |
|
4085 { |
|
4086 |
|
4087 ; |
|
4088 return 0; |
|
4089 } |
|
4090 _ACEOF |
|
4091 rm -f conftest.$ac_objext |
|
4092 if { (ac_try="$ac_compile" |
|
4093 case "(($ac_try" in |
|
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4095 *) ac_try_echo=$ac_try;; |
|
4096 esac |
|
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
4098 (eval "$ac_compile") 2>conftest.er1 |
|
4099 ac_status=$? |
|
4100 grep -v '^ *+' conftest.er1 >conftest.err |
|
4101 rm -f conftest.er1 |
|
4102 cat conftest.err >&5 |
|
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4104 (exit $ac_status); } && { |
|
4105 test -z "$ac_cxx_werror_flag" || |
|
4106 test ! -s conftest.err |
|
4107 } && test -s conftest.$ac_objext; then |
|
4108 : |
|
4109 else |
|
4110 echo "$as_me: failed program was:" >&5 |
|
4111 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4112 |
|
4113 CXX=""; CXXCP=""; CXXFLAGS="" |
|
4114 fi |
|
4115 |
|
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4117 ac_ext=c |
|
4118 ac_cpp='$CPP $CPPFLAGS' |
|
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4122 |
|
4123 |
|
4124 # Find a good install program. We prefer a C program (faster), |
|
4125 # so one script is as good as another. But avoid the broken or |
|
4126 # incompatible versions: |
|
4127 # SysV /etc/install, /usr/sbin/install |
|
4128 # SunOS /usr/etc/install |
|
4129 # IRIX /sbin/install |
|
4130 # AIX /bin/install |
|
4131 # AmigaOS /C/install, which installs bootblocks on floppy discs |
|
4132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
4133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
4134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
4135 # OS/2's system install, which has a completely different semantic |
|
4136 # ./install, which can be erroneously created by make from ./install.sh. |
|
4137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
4138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
|
4139 if test -z "$INSTALL"; then |
|
4140 if test "${ac_cv_path_install+set}" = set; then |
|
4141 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4142 else |
|
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4144 for as_dir in $PATH |
|
4145 do |
|
4146 IFS=$as_save_IFS |
|
4147 test -z "$as_dir" && as_dir=. |
|
4148 # Account for people who put trailing slashes in PATH elements. |
|
4149 case $as_dir/ in |
|
4150 ./ | .// | /cC/* | \ |
|
4151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
4152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
4153 /usr/ucb/* ) ;; |
|
4154 *) |
|
4155 # OSF1 and SCO ODT 3.0 have their own names for install. |
|
4156 # Don't use installbsd from OSF since it installs stuff as root |
|
4157 # by default. |
|
4158 for ac_prog in ginstall scoinst install; do |
|
4159 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
4161 if test $ac_prog = install && |
|
4162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
4163 # AIX install. It has an incompatible calling convention. |
|
4164 : |
|
4165 elif test $ac_prog = install && |
|
4166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
4167 # program-specific install script used by HP pwplus--don't use. |
|
4168 : |
|
4169 else |
|
4170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
4171 break 3 |
|
4172 fi |
|
4173 fi |
|
4174 done |
|
4175 done |
|
4176 ;; |
|
4177 esac |
|
4178 done |
|
4179 IFS=$as_save_IFS |
|
4180 |
|
4181 |
|
4182 fi |
|
4183 if test "${ac_cv_path_install+set}" = set; then |
|
4184 INSTALL=$ac_cv_path_install |
|
4185 else |
|
4186 # As a last resort, use the slow shell script. Don't cache a |
|
4187 # value for INSTALL within a source directory, because that will |
|
4188 # break other packages using the cache if that directory is |
|
4189 # removed, or if the value is a relative name. |
|
4190 INSTALL=$ac_install_sh |
|
4191 fi |
|
4192 fi |
|
4193 { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
4194 echo "${ECHO_T}$INSTALL" >&6; } |
|
4195 |
|
4196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
4197 # It thinks the first close brace ends the variable substitution. |
|
4198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
4199 |
|
4200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
4201 |
|
4202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
4203 |
|
4204 |
|
4205 |
|
4206 # Check whether --enable-shared was given. |
|
4207 if test "${enable_shared+set}" = set; then |
|
4208 enableval=$enable_shared; p=${PACKAGE-default} |
|
4209 case $enableval in |
|
4210 yes) enable_shared=yes ;; |
|
4211 no) enable_shared=no ;; |
|
4212 *) |
|
4213 enable_shared=no |
|
4214 # Look at the argument we got. We use all the common list separators. |
|
4215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4216 for pkg in $enableval; do |
|
4217 IFS="$lt_save_ifs" |
|
4218 if test "X$pkg" = "X$p"; then |
|
4219 enable_shared=yes |
|
4220 fi |
|
4221 done |
|
4222 IFS="$lt_save_ifs" |
|
4223 ;; |
|
4224 esac |
|
4225 else |
|
4226 enable_shared=yes |
|
4227 fi |
|
4228 |
|
4229 |
|
4230 # Check whether --enable-static was given. |
|
4231 if test "${enable_static+set}" = set; then |
|
4232 enableval=$enable_static; p=${PACKAGE-default} |
|
4233 case $enableval in |
|
4234 yes) enable_static=yes ;; |
|
4235 no) enable_static=no ;; |
|
4236 *) |
|
4237 enable_static=no |
|
4238 # Look at the argument we got. We use all the common list separators. |
|
4239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4240 for pkg in $enableval; do |
|
4241 IFS="$lt_save_ifs" |
|
4242 if test "X$pkg" = "X$p"; then |
|
4243 enable_static=yes |
|
4244 fi |
|
4245 done |
|
4246 IFS="$lt_save_ifs" |
|
4247 ;; |
|
4248 esac |
|
4249 else |
|
4250 enable_static=yes |
|
4251 fi |
|
4252 |
|
4253 |
|
4254 # Check whether --enable-fast-install was given. |
|
4255 if test "${enable_fast_install+set}" = set; then |
|
4256 enableval=$enable_fast_install; p=${PACKAGE-default} |
|
4257 case $enableval in |
|
4258 yes) enable_fast_install=yes ;; |
|
4259 no) enable_fast_install=no ;; |
|
4260 *) |
|
4261 enable_fast_install=no |
|
4262 # Look at the argument we got. We use all the common list separators. |
|
4263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
4264 for pkg in $enableval; do |
|
4265 IFS="$lt_save_ifs" |
|
4266 if test "X$pkg" = "X$p"; then |
|
4267 enable_fast_install=yes |
|
4268 fi |
|
4269 done |
|
4270 IFS="$lt_save_ifs" |
|
4271 ;; |
|
4272 esac |
|
4273 else |
|
4274 enable_fast_install=yes |
|
4275 fi |
|
4276 |
|
4277 |
|
4278 # Make sure we can run config.sub. |
|
4279 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
4280 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
|
4281 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
|
4282 { (exit 1); exit 1; }; } |
|
4283 |
|
4284 { echo "$as_me:$LINENO: checking build system type" >&5 |
|
4285 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
|
4286 if test "${ac_cv_build+set}" = set; then |
|
4287 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4288 else |
|
4289 ac_build_alias=$build_alias |
|
4290 test "x$ac_build_alias" = x && |
|
4291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
4292 test "x$ac_build_alias" = x && |
|
4293 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
4294 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
4295 { (exit 1); exit 1; }; } |
|
4296 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
4297 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
|
4298 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
|
4299 { (exit 1); exit 1; }; } |
|
4300 |
|
4301 fi |
|
4302 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
4303 echo "${ECHO_T}$ac_cv_build" >&6; } |
|
4304 case $ac_cv_build in |
|
4305 *-*-*) ;; |
|
4306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
4307 echo "$as_me: error: invalid value of canonical build" >&2;} |
|
4308 { (exit 1); exit 1; }; };; |
|
4309 esac |
|
4310 build=$ac_cv_build |
|
4311 ac_save_IFS=$IFS; IFS='-' |
|
4312 set x $ac_cv_build |
|
4313 shift |
|
4314 build_cpu=$1 |
|
4315 build_vendor=$2 |
|
4316 shift; shift |
|
4317 # Remember, the first character of IFS is used to create $*, |
|
4318 # except with old shells: |
|
4319 build_os=$* |
|
4320 IFS=$ac_save_IFS |
|
4321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
4322 |
|
4323 |
|
4324 { echo "$as_me:$LINENO: checking host system type" >&5 |
|
4325 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
|
4326 if test "${ac_cv_host+set}" = set; then |
|
4327 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4328 else |
|
4329 if test "x$host_alias" = x; then |
|
4330 ac_cv_host=$ac_cv_build |
|
4331 else |
|
4332 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
4333 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
|
4334 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
|
4335 { (exit 1); exit 1; }; } |
|
4336 fi |
|
4337 |
|
4338 fi |
|
4339 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
4340 echo "${ECHO_T}$ac_cv_host" >&6; } |
|
4341 case $ac_cv_host in |
|
4342 *-*-*) ;; |
|
4343 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
4344 echo "$as_me: error: invalid value of canonical host" >&2;} |
|
4345 { (exit 1); exit 1; }; };; |
|
4346 esac |
|
4347 host=$ac_cv_host |
|
4348 ac_save_IFS=$IFS; IFS='-' |
|
4349 set x $ac_cv_host |
|
4350 shift |
|
4351 host_cpu=$1 |
|
4352 host_vendor=$2 |
|
4353 shift; shift |
|
4354 # Remember, the first character of IFS is used to create $*, |
|
4355 # except with old shells: |
|
4356 host_os=$* |
|
4357 IFS=$ac_save_IFS |
|
4358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
4359 |
|
4360 |
|
4361 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
4362 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
|
4363 if test "${lt_cv_path_SED+set}" = set; then |
|
4364 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4365 else |
|
4366 # Loop through the user's path and test for sed and gsed. |
|
4367 # Then use that list of sed's as ones to test for truncation. |
|
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4369 for as_dir in $PATH |
|
4370 do |
|
4371 IFS=$as_save_IFS |
|
4372 test -z "$as_dir" && as_dir=. |
|
4373 for lt_ac_prog in sed gsed; do |
|
4374 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4375 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
|
4376 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
4377 fi |
|
4378 done |
|
4379 done |
|
4380 done |
|
4381 IFS=$as_save_IFS |
|
4382 lt_ac_max=0 |
|
4383 lt_ac_count=0 |
|
4384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
4385 # along with /bin/sed that truncates output. |
|
4386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
4387 test ! -f $lt_ac_sed && continue |
|
4388 cat /dev/null > conftest.in |
|
4389 lt_ac_count=0 |
|
4390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
4391 # Check for GNU sed and select it if it is found. |
|
4392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
4393 lt_cv_path_SED=$lt_ac_sed |
|
4394 break |
|
4395 fi |
|
4396 while true; do |
|
4397 cat conftest.in conftest.in >conftest.tmp |
|
4398 mv conftest.tmp conftest.in |
|
4399 cp conftest.in conftest.nl |
|
4400 echo >>conftest.nl |
|
4401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
4402 cmp -s conftest.out conftest.nl || break |
|
4403 # 10000 chars as input seems more than enough |
|
4404 test $lt_ac_count -gt 10 && break |
|
4405 lt_ac_count=`expr $lt_ac_count + 1` |
|
4406 if test $lt_ac_count -gt $lt_ac_max; then |
|
4407 lt_ac_max=$lt_ac_count |
|
4408 lt_cv_path_SED=$lt_ac_sed |
|
4409 fi |
|
4410 done |
|
4411 done |
|
4412 |
|
4413 fi |
|
4414 |
|
4415 SED=$lt_cv_path_SED |
|
4416 |
|
4417 { echo "$as_me:$LINENO: result: $SED" >&5 |
|
4418 echo "${ECHO_T}$SED" >&6; } |
|
4419 |
|
4420 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
|
4421 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
|
4422 if test "${ac_cv_path_GREP+set}" = set; then |
|
4423 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4424 else |
|
4425 # Extract the first word of "grep ggrep" to use in msg output |
|
4426 if test -z "$GREP"; then |
|
4427 set dummy grep ggrep; ac_prog_name=$2 |
|
4428 if test "${ac_cv_path_GREP+set}" = set; then |
|
4429 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4430 else |
|
4431 ac_path_GREP_found=false |
|
4432 # Loop through the user's path and test for each of PROGNAME-LIST |
|
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4435 do |
|
4436 IFS=$as_save_IFS |
|
4437 test -z "$as_dir" && as_dir=. |
|
4438 for ac_prog in grep ggrep; do |
|
4439 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
4442 # Check for GNU ac_path_GREP and select it if it is found. |
|
4443 # Check for GNU $ac_path_GREP |
|
4444 case `"$ac_path_GREP" --version 2>&1` in |
|
4445 *GNU*) |
|
4446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
4447 *) |
|
4448 ac_count=0 |
|
4449 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
4450 while : |
|
4451 do |
|
4452 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4453 mv "conftest.tmp" "conftest.in" |
|
4454 cp "conftest.in" "conftest.nl" |
|
4455 echo 'GREP' >> "conftest.nl" |
|
4456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4458 ac_count=`expr $ac_count + 1` |
|
4459 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
4460 # Best one so far, save it but keep looking for a better one |
|
4461 ac_cv_path_GREP="$ac_path_GREP" |
|
4462 ac_path_GREP_max=$ac_count |
|
4463 fi |
|
4464 # 10*(2^10) chars as input seems more than enough |
|
4465 test $ac_count -gt 10 && break |
|
4466 done |
|
4467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4468 esac |
|
4469 |
|
4470 |
|
4471 $ac_path_GREP_found && break 3 |
|
4472 done |
|
4473 done |
|
4474 |
|
4475 done |
|
4476 IFS=$as_save_IFS |
|
4477 |
|
4478 |
|
4479 fi |
|
4480 |
|
4481 GREP="$ac_cv_path_GREP" |
|
4482 if test -z "$GREP"; then |
|
4483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
4484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
4485 { (exit 1); exit 1; }; } |
|
4486 fi |
|
4487 |
|
4488 else |
|
4489 ac_cv_path_GREP=$GREP |
|
4490 fi |
|
4491 |
|
4492 |
|
4493 fi |
|
4494 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
|
4495 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
|
4496 GREP="$ac_cv_path_GREP" |
|
4497 |
|
4498 |
|
4499 { echo "$as_me:$LINENO: checking for egrep" >&5 |
|
4500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
4501 if test "${ac_cv_path_EGREP+set}" = set; then |
|
4502 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4503 else |
|
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
4505 then ac_cv_path_EGREP="$GREP -E" |
|
4506 else |
|
4507 # Extract the first word of "egrep" to use in msg output |
|
4508 if test -z "$EGREP"; then |
|
4509 set dummy egrep; ac_prog_name=$2 |
|
4510 if test "${ac_cv_path_EGREP+set}" = set; then |
|
4511 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4512 else |
|
4513 ac_path_EGREP_found=false |
|
4514 # Loop through the user's path and test for each of PROGNAME-LIST |
|
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4517 do |
|
4518 IFS=$as_save_IFS |
|
4519 test -z "$as_dir" && as_dir=. |
|
4520 for ac_prog in egrep; do |
|
4521 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4523 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
4524 # Check for GNU ac_path_EGREP and select it if it is found. |
|
4525 # Check for GNU $ac_path_EGREP |
|
4526 case `"$ac_path_EGREP" --version 2>&1` in |
|
4527 *GNU*) |
|
4528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
4529 *) |
|
4530 ac_count=0 |
|
4531 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
4532 while : |
|
4533 do |
|
4534 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4535 mv "conftest.tmp" "conftest.in" |
|
4536 cp "conftest.in" "conftest.nl" |
|
4537 echo 'EGREP' >> "conftest.nl" |
|
4538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4540 ac_count=`expr $ac_count + 1` |
|
4541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
4542 # Best one so far, save it but keep looking for a better one |
|
4543 ac_cv_path_EGREP="$ac_path_EGREP" |
|
4544 ac_path_EGREP_max=$ac_count |
|
4545 fi |
|
4546 # 10*(2^10) chars as input seems more than enough |
|
4547 test $ac_count -gt 10 && break |
|
4548 done |
|
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4550 esac |
|
4551 |
|
4552 |
|
4553 $ac_path_EGREP_found && break 3 |
|
4554 done |
|
4555 done |
|
4556 |
|
4557 done |
|
4558 IFS=$as_save_IFS |
|
4559 |
|
4560 |
|
4561 fi |
|
4562 |
|
4563 EGREP="$ac_cv_path_EGREP" |
|
4564 if test -z "$EGREP"; then |
|
4565 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
4566 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
4567 { (exit 1); exit 1; }; } |
|
4568 fi |
|
4569 |
|
4570 else |
|
4571 ac_cv_path_EGREP=$EGREP |
|
4572 fi |
|
4573 |
|
4574 |
|
4575 fi |
|
4576 fi |
|
4577 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
4578 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
|
4579 EGREP="$ac_cv_path_EGREP" |
|
4580 |
|
4581 |
|
4582 |
|
4583 # Check whether --with-gnu-ld was given. |
|
4584 if test "${with_gnu_ld+set}" = set; then |
|
4585 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
4586 else |
|
4587 with_gnu_ld=no |
|
4588 fi |
|
4589 |
|
4590 ac_prog=ld |
|
4591 if test "$GCC" = yes; then |
|
4592 # Check if gcc -print-prog-name=ld gives a path. |
|
4593 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
4594 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
|
4595 case $host in |
|
4596 *-*-mingw*) |
|
4597 # gcc leaves a trailing carriage return which upsets mingw |
|
4598 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
4599 *) |
|
4600 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
4601 esac |
|
4602 case $ac_prog in |
|
4603 # Accept absolute paths. |
|
4604 [\\/]* | ?:[\\/]*) |
|
4605 re_direlt='/[^/][^/]*/\.\./' |
|
4606 # Canonicalize the pathname of ld |
|
4607 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
4608 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
4609 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
4610 done |
|
4611 test -z "$LD" && LD="$ac_prog" |
|
4612 ;; |
|
4613 "") |
|
4614 # If it fails, then pretend we aren't using GCC. |
|
4615 ac_prog=ld |
|
4616 ;; |
|
4617 *) |
|
4618 # If it is relative, then search for the first ld in PATH. |
|
4619 with_gnu_ld=unknown |
|
4620 ;; |
|
4621 esac |
|
4622 elif test "$with_gnu_ld" = yes; then |
|
4623 { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
4624 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
|
4625 else |
|
4626 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
4627 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
|
4628 fi |
|
4629 if test "${lt_cv_path_LD+set}" = set; then |
|
4630 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4631 else |
|
4632 if test -z "$LD"; then |
|
4633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4634 for ac_dir in $PATH; do |
|
4635 IFS="$lt_save_ifs" |
|
4636 test -z "$ac_dir" && ac_dir=. |
|
4637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
4638 lt_cv_path_LD="$ac_dir/$ac_prog" |
|
4639 # Check to see if the program is GNU ld. I'd rather use --version, |
|
4640 # but apparently some variants of GNU ld only accept -v. |
|
4641 # Break only if it was the GNU/non-GNU ld that we prefer. |
|
4642 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
4643 *GNU* | *'with BFD'*) |
|
4644 test "$with_gnu_ld" != no && break |
|
4645 ;; |
|
4646 *) |
|
4647 test "$with_gnu_ld" != yes && break |
|
4648 ;; |
|
4649 esac |
|
4650 fi |
|
4651 done |
|
4652 IFS="$lt_save_ifs" |
|
4653 else |
|
4654 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
4655 fi |
|
4656 fi |
|
4657 |
|
4658 LD="$lt_cv_path_LD" |
|
4659 if test -n "$LD"; then |
|
4660 { echo "$as_me:$LINENO: result: $LD" >&5 |
|
4661 echo "${ECHO_T}$LD" >&6; } |
|
4662 else |
|
4663 { echo "$as_me:$LINENO: result: no" >&5 |
|
4664 echo "${ECHO_T}no" >&6; } |
|
4665 fi |
|
4666 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
4667 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
4668 { (exit 1); exit 1; }; } |
|
4669 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
4670 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
|
4671 if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
4672 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4673 else |
|
4674 # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
4675 case `$LD -v 2>&1 </dev/null` in |
|
4676 *GNU* | *'with BFD'*) |
|
4677 lt_cv_prog_gnu_ld=yes |
|
4678 ;; |
|
4679 *) |
|
4680 lt_cv_prog_gnu_ld=no |
|
4681 ;; |
|
4682 esac |
|
4683 fi |
|
4684 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
4685 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
|
4686 with_gnu_ld=$lt_cv_prog_gnu_ld |
|
4687 |
|
4688 |
|
4689 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
4690 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
|
4691 if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
4692 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4693 else |
|
4694 lt_cv_ld_reload_flag='-r' |
|
4695 fi |
|
4696 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
4697 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
|
4698 reload_flag=$lt_cv_ld_reload_flag |
|
4699 case $reload_flag in |
|
4700 "" | " "*) ;; |
|
4701 *) reload_flag=" $reload_flag" ;; |
|
4702 esac |
|
4703 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4704 case $host_os in |
|
4705 darwin*) |
|
4706 if test "$GCC" = yes; then |
|
4707 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
4708 else |
|
4709 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4710 fi |
|
4711 ;; |
|
4712 esac |
|
4713 |
|
4714 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
4715 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
|
4716 if test "${lt_cv_path_NM+set}" = set; then |
|
4717 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4718 else |
|
4719 if test -n "$NM"; then |
|
4720 # Let the user override the test. |
|
4721 lt_cv_path_NM="$NM" |
|
4722 else |
|
4723 lt_nm_to_check="${ac_tool_prefix}nm" |
|
4724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
4725 lt_nm_to_check="$lt_nm_to_check nm" |
|
4726 fi |
|
4727 for lt_tmp_nm in $lt_nm_to_check; do |
|
4728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
4730 IFS="$lt_save_ifs" |
|
4731 test -z "$ac_dir" && ac_dir=. |
|
4732 tmp_nm="$ac_dir/$lt_tmp_nm" |
|
4733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
4734 # Check to see if the nm accepts a BSD-compat flag. |
|
4735 # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
4736 # nm: unknown option "B" ignored |
|
4737 # Tru64's nm complains that /dev/null is an invalid object file |
|
4738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
4739 */dev/null* | *'Invalid file or object type'*) |
|
4740 lt_cv_path_NM="$tmp_nm -B" |
|
4741 break |
|
4742 ;; |
|
4743 *) |
|
4744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
4745 */dev/null*) |
|
4746 lt_cv_path_NM="$tmp_nm -p" |
|
4747 break |
|
4748 ;; |
|
4749 *) |
|
4750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
4751 continue # so that we can try to find one that supports BSD flags |
|
4752 ;; |
|
4753 esac |
|
4754 ;; |
|
4755 esac |
|
4756 fi |
|
4757 done |
|
4758 IFS="$lt_save_ifs" |
|
4759 done |
|
4760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
4761 fi |
|
4762 fi |
|
4763 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
|
4764 echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
|
4765 NM="$lt_cv_path_NM" |
|
4766 |
|
4767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
4768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
|
4769 LN_S=$as_ln_s |
|
4770 if test "$LN_S" = "ln -s"; then |
|
4771 { echo "$as_me:$LINENO: result: yes" >&5 |
|
4772 echo "${ECHO_T}yes" >&6; } |
|
4773 else |
|
4774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
4775 echo "${ECHO_T}no, using $LN_S" >&6; } |
|
4776 fi |
|
4777 |
|
4778 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
|
4779 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
|
4780 if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
4781 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4782 else |
|
4783 lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
4784 lt_cv_file_magic_test_file= |
|
4785 lt_cv_deplibs_check_method='unknown' |
|
4786 # Need to set the preceding variable on all platforms that support |
|
4787 # interlibrary dependencies. |
|
4788 # 'none' -- dependencies not supported. |
|
4789 # `unknown' -- same as none, but documents that we really don't know. |
|
4790 # 'pass_all' -- all dependencies passed with no checks. |
|
4791 # 'test_compile' -- check by making test program. |
|
4792 # 'file_magic [[regex]]' -- check by looking for files in library path |
|
4793 # which responds to the $file_magic_cmd with a given extended regex. |
|
4794 # If you have `file' or equivalent on your system and you're not sure |
|
4795 # whether `pass_all' will *always* work, you probably want this one. |
|
4796 |
|
4797 case $host_os in |
|
4798 aix[4-9]*) |
|
4799 lt_cv_deplibs_check_method=pass_all |
|
4800 ;; |
|
4801 |
|
4802 beos*) |
|
4803 lt_cv_deplibs_check_method=pass_all |
|
4804 ;; |
|
4805 |
|
4806 bsdi[45]*) |
|
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
4808 lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
4809 lt_cv_file_magic_test_file=/shlib/libc.so |
|
4810 ;; |
|
4811 |
|
4812 cygwin*) |
|
4813 # func_win32_libid is a shell function defined in ltmain.sh |
|
4814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4815 lt_cv_file_magic_cmd='func_win32_libid' |
|
4816 ;; |
|
4817 |
|
4818 mingw* | pw32*) |
|
4819 # Base MSYS/MinGW do not provide the 'file' command needed by |
|
4820 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
|
4821 # unless we find 'file', for example because we are cross-compiling. |
|
4822 if ( file / ) >/dev/null 2>&1; then |
|
4823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4824 lt_cv_file_magic_cmd='func_win32_libid' |
|
4825 else |
|
4826 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
4827 lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
4828 fi |
|
4829 ;; |
|
4830 |
|
4831 darwin* | rhapsody*) |
|
4832 lt_cv_deplibs_check_method=pass_all |
|
4833 ;; |
|
4834 |
|
4835 freebsd* | dragonfly*) |
|
4836 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
4837 case $host_cpu in |
|
4838 i*86 ) |
|
4839 # Not sure whether the presence of OpenBSD here was a mistake. |
|
4840 # Let's accept both of them until this is cleared up. |
|
4841 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
4842 lt_cv_file_magic_cmd=/usr/bin/file |
|
4843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
4844 ;; |
|
4845 esac |
|
4846 else |
|
4847 lt_cv_deplibs_check_method=pass_all |
|
4848 fi |
|
4849 ;; |
|
4850 |
|
4851 gnu*) |
|
4852 lt_cv_deplibs_check_method=pass_all |
|
4853 ;; |
|
4854 |
|
4855 hpux10.20* | hpux11*) |
|
4856 lt_cv_file_magic_cmd=/usr/bin/file |
|
4857 case $host_cpu in |
|
4858 ia64*) |
|
4859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
4860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
4861 ;; |
|
4862 hppa*64*) |
|
4863 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]' |
|
4864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
4865 ;; |
|
4866 *) |
|
4867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
4868 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
4869 ;; |
|
4870 esac |
|
4871 ;; |
|
4872 |
|
4873 interix[3-9]*) |
|
4874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
4875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
4876 ;; |
|
4877 |
|
4878 irix5* | irix6* | nonstopux*) |
|
4879 case $LD in |
|
4880 *-32|*"-32 ") libmagic=32-bit;; |
|
4881 *-n32|*"-n32 ") libmagic=N32;; |
|
4882 *-64|*"-64 ") libmagic=64-bit;; |
|
4883 *) libmagic=never-match;; |
|
4884 esac |
|
4885 lt_cv_deplibs_check_method=pass_all |
|
4886 ;; |
|
4887 |
|
4888 # This must be Linux ELF. |
|
4889 linux* | k*bsd*-gnu) |
|
4890 lt_cv_deplibs_check_method=pass_all |
|
4891 ;; |
|
4892 |
|
4893 netbsd*) |
|
4894 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
4895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4896 else |
|
4897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
4898 fi |
|
4899 ;; |
|
4900 |
|
4901 newos6*) |
|
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
4903 lt_cv_file_magic_cmd=/usr/bin/file |
|
4904 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
4905 ;; |
|
4906 |
|
4907 nto-qnx*) |
|
4908 lt_cv_deplibs_check_method=unknown |
|
4909 ;; |
|
4910 |
|
4911 openbsd*) |
|
4912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
4913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
4914 else |
|
4915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4916 fi |
|
4917 ;; |
|
4918 |
|
4919 osf3* | osf4* | osf5*) |
|
4920 lt_cv_deplibs_check_method=pass_all |
|
4921 ;; |
|
4922 |
|
4923 rdos*) |
|
4924 lt_cv_deplibs_check_method=pass_all |
|
4925 ;; |
|
4926 |
|
4927 solaris*) |
|
4928 lt_cv_deplibs_check_method=pass_all |
|
4929 ;; |
|
4930 |
|
4931 sysv4 | sysv4.3*) |
|
4932 case $host_vendor in |
|
4933 motorola) |
|
4934 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]' |
|
4935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
4936 ;; |
|
4937 ncr) |
|
4938 lt_cv_deplibs_check_method=pass_all |
|
4939 ;; |
|
4940 sequent) |
|
4941 lt_cv_file_magic_cmd='/bin/file' |
|
4942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
4943 ;; |
|
4944 sni) |
|
4945 lt_cv_file_magic_cmd='/bin/file' |
|
4946 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
4947 lt_cv_file_magic_test_file=/lib/libc.so |
|
4948 ;; |
|
4949 siemens) |
|
4950 lt_cv_deplibs_check_method=pass_all |
|
4951 ;; |
|
4952 pc) |
|
4953 lt_cv_deplibs_check_method=pass_all |
|
4954 ;; |
|
4955 esac |
|
4956 ;; |
|
4957 |
|
4958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
4959 lt_cv_deplibs_check_method=pass_all |
|
4960 ;; |
|
4961 esac |
|
4962 |
|
4963 fi |
|
4964 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
4965 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
|
4966 file_magic_cmd=$lt_cv_file_magic_cmd |
|
4967 deplibs_check_method=$lt_cv_deplibs_check_method |
|
4968 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
4969 |
|
4970 |
|
4971 |
|
4972 |
|
4973 # If no C compiler was specified, use CC. |
|
4974 LTCC=${LTCC-"$CC"} |
|
4975 |
|
4976 # If no C compiler flags were specified, use CFLAGS. |
|
4977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
4978 |
|
4979 # Allow CC to be a program name with arguments. |
|
4980 compiler=$CC |
|
4981 |
|
4982 |
|
4983 # Check whether --enable-libtool-lock was given. |
|
4984 if test "${enable_libtool_lock+set}" = set; then |
|
4985 enableval=$enable_libtool_lock; |
|
4986 fi |
|
4987 |
|
4988 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
4989 |
|
4990 # Some flags need to be propagated to the compiler or linker for good |
|
4991 # libtool support. |
|
4992 case $host in |
|
4993 ia64-*-hpux*) |
|
4994 # Find out which ABI we are using. |
|
4995 echo 'int i;' > conftest.$ac_ext |
|
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
4997 (eval $ac_compile) 2>&5 |
|
4998 ac_status=$? |
|
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5000 (exit $ac_status); }; then |
|
5001 case `/usr/bin/file conftest.$ac_objext` in |
|
5002 *ELF-32*) |
|
5003 HPUX_IA64_MODE="32" |
|
5004 ;; |
|
5005 *ELF-64*) |
|
5006 HPUX_IA64_MODE="64" |
|
5007 ;; |
|
5008 esac |
|
5009 fi |
|
5010 rm -rf conftest* |
|
5011 ;; |
|
5012 *-*-irix6*) |
|
5013 # Find out which ABI we are using. |
|
5014 echo '#line 5014 "configure"' > conftest.$ac_ext |
|
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5016 (eval $ac_compile) 2>&5 |
|
5017 ac_status=$? |
|
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5019 (exit $ac_status); }; then |
|
5020 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
5021 case `/usr/bin/file conftest.$ac_objext` in |
|
5022 *32-bit*) |
|
5023 LD="${LD-ld} -melf32bsmip" |
|
5024 ;; |
|
5025 *N32*) |
|
5026 LD="${LD-ld} -melf32bmipn32" |
|
5027 ;; |
|
5028 *64-bit*) |
|
5029 LD="${LD-ld} -melf64bmip" |
|
5030 ;; |
|
5031 esac |
|
5032 else |
|
5033 case `/usr/bin/file conftest.$ac_objext` in |
|
5034 *32-bit*) |
|
5035 LD="${LD-ld} -32" |
|
5036 ;; |
|
5037 *N32*) |
|
5038 LD="${LD-ld} -n32" |
|
5039 ;; |
|
5040 *64-bit*) |
|
5041 LD="${LD-ld} -64" |
|
5042 ;; |
|
5043 esac |
|
5044 fi |
|
5045 fi |
|
5046 rm -rf conftest* |
|
5047 ;; |
|
5048 |
|
5049 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
|
5050 s390*-*linux*|sparc*-*linux*) |
|
5051 # Find out which ABI we are using. |
|
5052 echo 'int i;' > conftest.$ac_ext |
|
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5054 (eval $ac_compile) 2>&5 |
|
5055 ac_status=$? |
|
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5057 (exit $ac_status); }; then |
|
5058 case `/usr/bin/file conftest.o` in |
|
5059 *32-bit*) |
|
5060 case $host in |
|
5061 x86_64-*kfreebsd*-gnu) |
|
5062 LD="${LD-ld} -m elf_i386_fbsd" |
|
5063 ;; |
|
5064 x86_64-*linux*) |
|
5065 LD="${LD-ld} -m elf_i386" |
|
5066 ;; |
|
5067 ppc64-*linux*|powerpc64-*linux*) |
|
5068 LD="${LD-ld} -m elf32ppclinux" |
|
5069 ;; |
|
5070 s390x-*linux*) |
|
5071 LD="${LD-ld} -m elf_s390" |
|
5072 ;; |
|
5073 sparc64-*linux*) |
|
5074 LD="${LD-ld} -m elf32_sparc" |
|
5075 ;; |
|
5076 esac |
|
5077 ;; |
|
5078 *64-bit*) |
|
5079 case $host in |
|
5080 x86_64-*kfreebsd*-gnu) |
|
5081 LD="${LD-ld} -m elf_x86_64_fbsd" |
|
5082 ;; |
|
5083 x86_64-*linux*) |
|
5084 LD="${LD-ld} -m elf_x86_64" |
|
5085 ;; |
|
5086 ppc*-*linux*|powerpc*-*linux*) |
|
5087 LD="${LD-ld} -m elf64ppc" |
|
5088 ;; |
|
5089 s390*-*linux*) |
|
5090 LD="${LD-ld} -m elf64_s390" |
|
5091 ;; |
|
5092 sparc*-*linux*) |
|
5093 LD="${LD-ld} -m elf64_sparc" |
|
5094 ;; |
|
5095 esac |
|
5096 ;; |
|
5097 esac |
|
5098 fi |
|
5099 rm -rf conftest* |
|
5100 ;; |
|
5101 |
|
5102 *-*-sco3.2v5*) |
|
5103 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
5104 SAVE_CFLAGS="$CFLAGS" |
|
5105 CFLAGS="$CFLAGS -belf" |
|
5106 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
5107 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
|
5108 if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
5109 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5110 else |
|
5111 ac_ext=c |
|
5112 ac_cpp='$CPP $CPPFLAGS' |
|
5113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5115 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5116 |
|
5117 cat >conftest.$ac_ext <<_ACEOF |
|
5118 /* confdefs.h. */ |
|
5119 _ACEOF |
|
5120 cat confdefs.h >>conftest.$ac_ext |
|
5121 cat >>conftest.$ac_ext <<_ACEOF |
|
5122 /* end confdefs.h. */ |
|
5123 |
|
5124 int |
|
5125 main () |
|
5126 { |
|
5127 |
|
5128 ; |
|
5129 return 0; |
|
5130 } |
|
5131 _ACEOF |
|
5132 rm -f conftest.$ac_objext conftest$ac_exeext |
|
5133 if { (ac_try="$ac_link" |
|
5134 case "(($ac_try" in |
|
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5136 *) ac_try_echo=$ac_try;; |
|
5137 esac |
|
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5139 (eval "$ac_link") 2>conftest.er1 |
|
5140 ac_status=$? |
|
5141 grep -v '^ *+' conftest.er1 >conftest.err |
|
5142 rm -f conftest.er1 |
|
5143 cat conftest.err >&5 |
|
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5145 (exit $ac_status); } && { |
|
5146 test -z "$ac_c_werror_flag" || |
|
5147 test ! -s conftest.err |
|
5148 } && test -s conftest$ac_exeext && |
|
5149 $as_test_x conftest$ac_exeext; then |
|
5150 lt_cv_cc_needs_belf=yes |
|
5151 else |
|
5152 echo "$as_me: failed program was:" >&5 |
|
5153 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5154 |
|
5155 lt_cv_cc_needs_belf=no |
|
5156 fi |
|
5157 |
|
5158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
5159 conftest$ac_exeext conftest.$ac_ext |
|
5160 ac_ext=c |
|
5161 ac_cpp='$CPP $CPPFLAGS' |
|
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5165 |
|
5166 fi |
|
5167 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
5168 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
|
5169 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
5170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
5171 CFLAGS="$SAVE_CFLAGS" |
|
5172 fi |
|
5173 ;; |
|
5174 sparc*-*solaris*) |
|
5175 # Find out which ABI we are using. |
|
5176 echo 'int i;' > conftest.$ac_ext |
|
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
5178 (eval $ac_compile) 2>&5 |
|
5179 ac_status=$? |
|
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5181 (exit $ac_status); }; then |
|
5182 case `/usr/bin/file conftest.o` in |
|
5183 *64-bit*) |
|
5184 case $lt_cv_prog_gnu_ld in |
|
5185 yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
5186 *) |
|
5187 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
|
5188 LD="${LD-ld} -64" |
|
5189 fi |
|
5190 ;; |
|
5191 esac |
|
5192 ;; |
|
5193 esac |
|
5194 fi |
|
5195 rm -rf conftest* |
|
5196 ;; |
|
5197 |
|
5198 *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
|
5199 if test -n "$ac_tool_prefix"; then |
|
5200 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
|
5201 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
|
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5204 if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
|
5205 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5206 else |
|
5207 if test -n "$DLLTOOL"; then |
|
5208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
|
5209 else |
|
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5211 for as_dir in $PATH |
|
5212 do |
|
5213 IFS=$as_save_IFS |
|
5214 test -z "$as_dir" && as_dir=. |
|
5215 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5217 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
|
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5219 break 2 |
|
5220 fi |
|
5221 done |
|
5222 done |
|
5223 IFS=$as_save_IFS |
|
5224 |
|
5225 fi |
|
5226 fi |
|
5227 DLLTOOL=$ac_cv_prog_DLLTOOL |
|
5228 if test -n "$DLLTOOL"; then |
|
5229 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
|
5230 echo "${ECHO_T}$DLLTOOL" >&6; } |
|
5231 else |
|
5232 { echo "$as_me:$LINENO: result: no" >&5 |
|
5233 echo "${ECHO_T}no" >&6; } |
|
5234 fi |
|
5235 |
|
5236 |
|
5237 fi |
|
5238 if test -z "$ac_cv_prog_DLLTOOL"; then |
|
5239 ac_ct_DLLTOOL=$DLLTOOL |
|
5240 # Extract the first word of "dlltool", so it can be a program name with args. |
|
5241 set dummy dlltool; ac_word=$2 |
|
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5244 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
|
5245 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5246 else |
|
5247 if test -n "$ac_ct_DLLTOOL"; then |
|
5248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
|
5249 else |
|
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5251 for as_dir in $PATH |
|
5252 do |
|
5253 IFS=$as_save_IFS |
|
5254 test -z "$as_dir" && as_dir=. |
|
5255 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5257 ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
|
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5259 break 2 |
|
5260 fi |
|
5261 done |
|
5262 done |
|
5263 IFS=$as_save_IFS |
|
5264 |
|
5265 fi |
|
5266 fi |
|
5267 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
|
5268 if test -n "$ac_ct_DLLTOOL"; then |
|
5269 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
|
5270 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
|
5271 else |
|
5272 { echo "$as_me:$LINENO: result: no" >&5 |
|
5273 echo "${ECHO_T}no" >&6; } |
|
5274 fi |
|
5275 |
|
5276 if test "x$ac_ct_DLLTOOL" = x; then |
|
5277 DLLTOOL="false" |
|
5278 else |
|
5279 case $cross_compiling:$ac_tool_warned in |
|
5280 yes:) |
|
5281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
5282 whose name does not start with the host triplet. If you think this |
|
5283 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
5284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
5285 whose name does not start with the host triplet. If you think this |
|
5286 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
5287 ac_tool_warned=yes ;; |
|
5288 esac |
|
5289 DLLTOOL=$ac_ct_DLLTOOL |
|
5290 fi |
|
5291 else |
|
5292 DLLTOOL="$ac_cv_prog_DLLTOOL" |
|
5293 fi |
|
5294 |
|
5295 if test -n "$ac_tool_prefix"; then |
|
5296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
|
5297 set dummy ${ac_tool_prefix}as; ac_word=$2 |
|
5298 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5300 if test "${ac_cv_prog_AS+set}" = set; then |
|
5301 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5302 else |
|
5303 if test -n "$AS"; then |
|
5304 ac_cv_prog_AS="$AS" # Let the user override the test. |
|
5305 else |
|
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5307 for as_dir in $PATH |
|
5308 do |
|
5309 IFS=$as_save_IFS |
|
5310 test -z "$as_dir" && as_dir=. |
|
5311 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5313 ac_cv_prog_AS="${ac_tool_prefix}as" |
|
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5315 break 2 |
|
5316 fi |
|
5317 done |
|
5318 done |
|
5319 IFS=$as_save_IFS |
|
5320 |
|
5321 fi |
|
5322 fi |
|
5323 AS=$ac_cv_prog_AS |
|
5324 if test -n "$AS"; then |
|
5325 { echo "$as_me:$LINENO: result: $AS" >&5 |
|
5326 echo "${ECHO_T}$AS" >&6; } |
|
5327 else |
|
5328 { echo "$as_me:$LINENO: result: no" >&5 |
|
5329 echo "${ECHO_T}no" >&6; } |
|
5330 fi |
|
5331 |
|
5332 |
|
5333 fi |
|
5334 if test -z "$ac_cv_prog_AS"; then |
|
5335 ac_ct_AS=$AS |
|
5336 # Extract the first word of "as", so it can be a program name with args. |
|
5337 set dummy as; ac_word=$2 |
|
5338 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5340 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
|
5341 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5342 else |
|
5343 if test -n "$ac_ct_AS"; then |
|
5344 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
|
5345 else |
|
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5347 for as_dir in $PATH |
|
5348 do |
|
5349 IFS=$as_save_IFS |
|
5350 test -z "$as_dir" && as_dir=. |
|
5351 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5353 ac_cv_prog_ac_ct_AS="as" |
|
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5355 break 2 |
|
5356 fi |
|
5357 done |
|
5358 done |
|
5359 IFS=$as_save_IFS |
|
5360 |
|
5361 fi |
|
5362 fi |
|
5363 ac_ct_AS=$ac_cv_prog_ac_ct_AS |
|
5364 if test -n "$ac_ct_AS"; then |
|
5365 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
|
5366 echo "${ECHO_T}$ac_ct_AS" >&6; } |
|
5367 else |
|
5368 { echo "$as_me:$LINENO: result: no" >&5 |
|
5369 echo "${ECHO_T}no" >&6; } |
|
5370 fi |
|
5371 |
|
5372 if test "x$ac_ct_AS" = x; then |
|
5373 AS="false" |
|
5374 else |
|
5375 case $cross_compiling:$ac_tool_warned in |
|
5376 yes:) |
|
5377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
5378 whose name does not start with the host triplet. If you think this |
|
5379 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
5380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
5381 whose name does not start with the host triplet. If you think this |
|
5382 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
5383 ac_tool_warned=yes ;; |
|
5384 esac |
|
5385 AS=$ac_ct_AS |
|
5386 fi |
|
5387 else |
|
5388 AS="$ac_cv_prog_AS" |
|
5389 fi |
|
5390 |
|
5391 if test -n "$ac_tool_prefix"; then |
|
5392 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
|
5393 set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
|
5394 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5396 if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
|
5397 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5398 else |
|
5399 if test -n "$OBJDUMP"; then |
|
5400 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
|
5401 else |
|
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5403 for as_dir in $PATH |
|
5404 do |
|
5405 IFS=$as_save_IFS |
|
5406 test -z "$as_dir" && as_dir=. |
|
5407 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
|
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5411 break 2 |
|
5412 fi |
|
5413 done |
|
5414 done |
|
5415 IFS=$as_save_IFS |
|
5416 |
|
5417 fi |
|
5418 fi |
|
5419 OBJDUMP=$ac_cv_prog_OBJDUMP |
|
5420 if test -n "$OBJDUMP"; then |
|
5421 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
|
5422 echo "${ECHO_T}$OBJDUMP" >&6; } |
|
5423 else |
|
5424 { echo "$as_me:$LINENO: result: no" >&5 |
|
5425 echo "${ECHO_T}no" >&6; } |
|
5426 fi |
|
5427 |
|
5428 |
|
5429 fi |
|
5430 if test -z "$ac_cv_prog_OBJDUMP"; then |
|
5431 ac_ct_OBJDUMP=$OBJDUMP |
|
5432 # Extract the first word of "objdump", so it can be a program name with args. |
|
5433 set dummy objdump; ac_word=$2 |
|
5434 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
5436 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
|
5437 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5438 else |
|
5439 if test -n "$ac_ct_OBJDUMP"; then |
|
5440 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
|
5441 else |
|
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5443 for as_dir in $PATH |
|
5444 do |
|
5445 IFS=$as_save_IFS |
|
5446 test -z "$as_dir" && as_dir=. |
|
5447 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5449 ac_cv_prog_ac_ct_OBJDUMP="objdump" |
|
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5451 break 2 |
|
5452 fi |
|
5453 done |
|
5454 done |
|
5455 IFS=$as_save_IFS |
|
5456 |
|
5457 fi |
|
5458 fi |
|
5459 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
|
5460 if test -n "$ac_ct_OBJDUMP"; then |
|
5461 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
|
5462 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
|
5463 else |
|
5464 { echo "$as_me:$LINENO: result: no" >&5 |
|
5465 echo "${ECHO_T}no" >&6; } |
|
5466 fi |
|
5467 |
|
5468 if test "x$ac_ct_OBJDUMP" = x; then |
|
5469 OBJDUMP="false" |
|
5470 else |
|
5471 case $cross_compiling:$ac_tool_warned in |
|
5472 yes:) |
|
5473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
5474 whose name does not start with the host triplet. If you think this |
|
5475 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
5476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
5477 whose name does not start with the host triplet. If you think this |
|
5478 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
5479 ac_tool_warned=yes ;; |
|
5480 esac |
|
5481 OBJDUMP=$ac_ct_OBJDUMP |
|
5482 fi |
|
5483 else |
|
5484 OBJDUMP="$ac_cv_prog_OBJDUMP" |
|
5485 fi |
|
5486 |
|
5487 ;; |
|
5488 |
|
5489 esac |
|
5490 |
|
5491 need_locks="$enable_libtool_lock" |
|
5492 |
|
5493 |
|
5494 ac_ext=c |
|
5495 ac_cpp='$CPP $CPPFLAGS' |
|
5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5499 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
5500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
|
5501 # On Suns, sometimes $CPP names a directory. |
|
5502 if test -n "$CPP" && test -d "$CPP"; then |
|
5503 CPP= |
|
5504 fi |
|
5505 if test -z "$CPP"; then |
|
5506 if test "${ac_cv_prog_CPP+set}" = set; then |
|
5507 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5508 else |
|
5509 # Double quotes because CPP needs to be expanded |
|
5510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
5511 do |
|
5512 ac_preproc_ok=false |
|
5513 for ac_c_preproc_warn_flag in '' yes |
|
5514 do |
|
5515 # Use a header file that comes with gcc, so configuring glibc |
|
5516 # with a fresh cross-compiler works. |
|
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5518 # <limits.h> exists even on freestanding compilers. |
|
5519 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
5520 # not just through cpp. "Syntax error" is here to catch this case. |
|
5521 cat >conftest.$ac_ext <<_ACEOF |
|
5522 /* confdefs.h. */ |
|
5523 _ACEOF |
|
5524 cat confdefs.h >>conftest.$ac_ext |
|
5525 cat >>conftest.$ac_ext <<_ACEOF |
|
5526 /* end confdefs.h. */ |
|
5527 #ifdef __STDC__ |
|
5528 # include <limits.h> |
|
5529 #else |
|
5530 # include <assert.h> |
|
5531 #endif |
|
5532 Syntax error |
|
5533 _ACEOF |
|
5534 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
5535 case "(($ac_try" in |
|
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5537 *) ac_try_echo=$ac_try;; |
|
5538 esac |
|
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
5541 ac_status=$? |
|
5542 grep -v '^ *+' conftest.er1 >conftest.err |
|
5543 rm -f conftest.er1 |
|
5544 cat conftest.err >&5 |
|
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5546 (exit $ac_status); } >/dev/null && { |
|
5547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
5548 test ! -s conftest.err |
|
5549 }; then |
|
5550 : |
|
5551 else |
|
5552 echo "$as_me: failed program was:" >&5 |
|
5553 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5554 |
|
5555 # Broken: fails on valid input. |
|
5556 continue |
|
5557 fi |
|
5558 |
|
5559 rm -f conftest.err conftest.$ac_ext |
|
5560 |
|
5561 # OK, works on sane cases. Now check whether nonexistent headers |
|
5562 # can be detected and how. |
|
5563 cat >conftest.$ac_ext <<_ACEOF |
|
5564 /* confdefs.h. */ |
|
5565 _ACEOF |
|
5566 cat confdefs.h >>conftest.$ac_ext |
|
5567 cat >>conftest.$ac_ext <<_ACEOF |
|
5568 /* end confdefs.h. */ |
|
5569 #include <ac_nonexistent.h> |
|
5570 _ACEOF |
|
5571 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
5572 case "(($ac_try" in |
|
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5574 *) ac_try_echo=$ac_try;; |
|
5575 esac |
|
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
5578 ac_status=$? |
|
5579 grep -v '^ *+' conftest.er1 >conftest.err |
|
5580 rm -f conftest.er1 |
|
5581 cat conftest.err >&5 |
|
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5583 (exit $ac_status); } >/dev/null && { |
|
5584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
5585 test ! -s conftest.err |
|
5586 }; then |
|
5587 # Broken: success on invalid input. |
|
5588 continue |
|
5589 else |
|
5590 echo "$as_me: failed program was:" >&5 |
|
5591 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5592 |
|
5593 # Passes both tests. |
|
5594 ac_preproc_ok=: |
|
5595 break |
|
5596 fi |
|
5597 |
|
5598 rm -f conftest.err conftest.$ac_ext |
|
5599 |
|
5600 done |
|
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5602 rm -f conftest.err conftest.$ac_ext |
|
5603 if $ac_preproc_ok; then |
|
5604 break |
|
5605 fi |
|
5606 |
|
5607 done |
|
5608 ac_cv_prog_CPP=$CPP |
|
5609 |
|
5610 fi |
|
5611 CPP=$ac_cv_prog_CPP |
|
5612 else |
|
5613 ac_cv_prog_CPP=$CPP |
|
5614 fi |
|
5615 { echo "$as_me:$LINENO: result: $CPP" >&5 |
|
5616 echo "${ECHO_T}$CPP" >&6; } |
|
5617 ac_preproc_ok=false |
|
5618 for ac_c_preproc_warn_flag in '' yes |
|
5619 do |
|
5620 # Use a header file that comes with gcc, so configuring glibc |
|
5621 # with a fresh cross-compiler works. |
|
5622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5623 # <limits.h> exists even on freestanding compilers. |
|
5624 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
5625 # not just through cpp. "Syntax error" is here to catch this case. |
|
5626 cat >conftest.$ac_ext <<_ACEOF |
|
5627 /* confdefs.h. */ |
|
5628 _ACEOF |
|
5629 cat confdefs.h >>conftest.$ac_ext |
|
5630 cat >>conftest.$ac_ext <<_ACEOF |
|
5631 /* end confdefs.h. */ |
|
5632 #ifdef __STDC__ |
|
5633 # include <limits.h> |
|
5634 #else |
|
5635 # include <assert.h> |
|
5636 #endif |
|
5637 Syntax error |
|
5638 _ACEOF |
|
5639 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
5640 case "(($ac_try" in |
|
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5642 *) ac_try_echo=$ac_try;; |
|
5643 esac |
|
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
5646 ac_status=$? |
|
5647 grep -v '^ *+' conftest.er1 >conftest.err |
|
5648 rm -f conftest.er1 |
|
5649 cat conftest.err >&5 |
|
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5651 (exit $ac_status); } >/dev/null && { |
|
5652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
5653 test ! -s conftest.err |
|
5654 }; then |
|
5655 : |
|
5656 else |
|
5657 echo "$as_me: failed program was:" >&5 |
|
5658 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5659 |
|
5660 # Broken: fails on valid input. |
|
5661 continue |
|
5662 fi |
|
5663 |
|
5664 rm -f conftest.err conftest.$ac_ext |
|
5665 |
|
5666 # OK, works on sane cases. Now check whether nonexistent headers |
|
5667 # can be detected and how. |
|
5668 cat >conftest.$ac_ext <<_ACEOF |
|
5669 /* confdefs.h. */ |
|
5670 _ACEOF |
|
5671 cat confdefs.h >>conftest.$ac_ext |
|
5672 cat >>conftest.$ac_ext <<_ACEOF |
|
5673 /* end confdefs.h. */ |
|
5674 #include <ac_nonexistent.h> |
|
5675 _ACEOF |
|
5676 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
5677 case "(($ac_try" in |
|
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5679 *) ac_try_echo=$ac_try;; |
|
5680 esac |
|
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
5683 ac_status=$? |
|
5684 grep -v '^ *+' conftest.er1 >conftest.err |
|
5685 rm -f conftest.er1 |
|
5686 cat conftest.err >&5 |
|
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5688 (exit $ac_status); } >/dev/null && { |
|
5689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
5690 test ! -s conftest.err |
|
5691 }; then |
|
5692 # Broken: success on invalid input. |
|
5693 continue |
|
5694 else |
|
5695 echo "$as_me: failed program was:" >&5 |
|
5696 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5697 |
|
5698 # Passes both tests. |
|
5699 ac_preproc_ok=: |
|
5700 break |
|
5701 fi |
|
5702 |
|
5703 rm -f conftest.err conftest.$ac_ext |
|
5704 |
|
5705 done |
|
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5707 rm -f conftest.err conftest.$ac_ext |
|
5708 if $ac_preproc_ok; then |
|
5709 : |
|
5710 else |
|
5711 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
5712 See \`config.log' for more details." >&5 |
|
5713 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
5714 See \`config.log' for more details." >&2;} |
|
5715 { (exit 1); exit 1; }; } |
|
5716 fi |
|
5717 |
|
5718 ac_ext=c |
|
5719 ac_cpp='$CPP $CPPFLAGS' |
|
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5723 |
|
5724 |
|
5725 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
5726 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
5727 if test "${ac_cv_header_stdc+set}" = set; then |
|
5728 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5729 else |
|
5730 cat >conftest.$ac_ext <<_ACEOF |
|
5731 /* confdefs.h. */ |
|
5732 _ACEOF |
|
5733 cat confdefs.h >>conftest.$ac_ext |
|
5734 cat >>conftest.$ac_ext <<_ACEOF |
|
5735 /* end confdefs.h. */ |
|
5736 #include <stdlib.h> |
|
5737 #include <stdarg.h> |
|
5738 #include <string.h> |
|
5739 #include <float.h> |
|
5740 |
|
5741 int |
|
5742 main () |
|
5743 { |
|
5744 |
|
5745 ; |
|
5746 return 0; |
|
5747 } |
|
5748 _ACEOF |
|
5749 rm -f conftest.$ac_objext |
|
5750 if { (ac_try="$ac_compile" |
|
5751 case "(($ac_try" in |
|
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5753 *) ac_try_echo=$ac_try;; |
|
5754 esac |
|
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5756 (eval "$ac_compile") 2>conftest.er1 |
|
5757 ac_status=$? |
|
5758 grep -v '^ *+' conftest.er1 >conftest.err |
|
5759 rm -f conftest.er1 |
|
5760 cat conftest.err >&5 |
|
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5762 (exit $ac_status); } && { |
|
5763 test -z "$ac_c_werror_flag" || |
|
5764 test ! -s conftest.err |
|
5765 } && test -s conftest.$ac_objext; then |
|
5766 ac_cv_header_stdc=yes |
|
5767 else |
|
5768 echo "$as_me: failed program was:" >&5 |
|
5769 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5770 |
|
5771 ac_cv_header_stdc=no |
|
5772 fi |
|
5773 |
|
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5775 |
|
5776 if test $ac_cv_header_stdc = yes; then |
|
5777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
5778 cat >conftest.$ac_ext <<_ACEOF |
|
5779 /* confdefs.h. */ |
|
5780 _ACEOF |
|
5781 cat confdefs.h >>conftest.$ac_ext |
|
5782 cat >>conftest.$ac_ext <<_ACEOF |
|
5783 /* end confdefs.h. */ |
|
5784 #include <string.h> |
|
5785 |
|
5786 _ACEOF |
|
5787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5788 $EGREP "memchr" >/dev/null 2>&1; then |
|
5789 : |
|
5790 else |
|
5791 ac_cv_header_stdc=no |
|
5792 fi |
|
5793 rm -f conftest* |
|
5794 |
|
5795 fi |
|
5796 |
|
5797 if test $ac_cv_header_stdc = yes; then |
|
5798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
5799 cat >conftest.$ac_ext <<_ACEOF |
|
5800 /* confdefs.h. */ |
|
5801 _ACEOF |
|
5802 cat confdefs.h >>conftest.$ac_ext |
|
5803 cat >>conftest.$ac_ext <<_ACEOF |
|
5804 /* end confdefs.h. */ |
|
5805 #include <stdlib.h> |
|
5806 |
|
5807 _ACEOF |
|
5808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5809 $EGREP "free" >/dev/null 2>&1; then |
|
5810 : |
|
5811 else |
|
5812 ac_cv_header_stdc=no |
|
5813 fi |
|
5814 rm -f conftest* |
|
5815 |
|
5816 fi |
|
5817 |
|
5818 if test $ac_cv_header_stdc = yes; then |
|
5819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
5820 if test "$cross_compiling" = yes; then |
|
5821 : |
|
5822 else |
|
5823 cat >conftest.$ac_ext <<_ACEOF |
|
5824 /* confdefs.h. */ |
|
5825 _ACEOF |
|
5826 cat confdefs.h >>conftest.$ac_ext |
|
5827 cat >>conftest.$ac_ext <<_ACEOF |
|
5828 /* end confdefs.h. */ |
|
5829 #include <ctype.h> |
|
5830 #include <stdlib.h> |
|
5831 #if ((' ' & 0x0FF) == 0x020) |
|
5832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
5833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
5834 #else |
|
5835 # define ISLOWER(c) \ |
|
5836 (('a' <= (c) && (c) <= 'i') \ |
|
5837 || ('j' <= (c) && (c) <= 'r') \ |
|
5838 || ('s' <= (c) && (c) <= 'z')) |
|
5839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
5840 #endif |
|
5841 |
|
5842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
5843 int |
|
5844 main () |
|
5845 { |
|
5846 int i; |
|
5847 for (i = 0; i < 256; i++) |
|
5848 if (XOR (islower (i), ISLOWER (i)) |
|
5849 || toupper (i) != TOUPPER (i)) |
|
5850 return 2; |
|
5851 return 0; |
|
5852 } |
|
5853 _ACEOF |
|
5854 rm -f conftest$ac_exeext |
|
5855 if { (ac_try="$ac_link" |
|
5856 case "(($ac_try" in |
|
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5858 *) ac_try_echo=$ac_try;; |
|
5859 esac |
|
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5861 (eval "$ac_link") 2>&5 |
|
5862 ac_status=$? |
|
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
5865 { (case "(($ac_try" in |
|
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5867 *) ac_try_echo=$ac_try;; |
|
5868 esac |
|
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5870 (eval "$ac_try") 2>&5 |
|
5871 ac_status=$? |
|
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5873 (exit $ac_status); }; }; then |
|
5874 : |
|
5875 else |
|
5876 echo "$as_me: program exited with status $ac_status" >&5 |
|
5877 echo "$as_me: failed program was:" >&5 |
|
5878 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5879 |
|
5880 ( exit $ac_status ) |
|
5881 ac_cv_header_stdc=no |
|
5882 fi |
|
5883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
5884 fi |
|
5885 |
|
5886 |
|
5887 fi |
|
5888 fi |
|
5889 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
5890 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
5891 if test $ac_cv_header_stdc = yes; then |
|
5892 |
|
5893 cat >>confdefs.h <<\_ACEOF |
|
5894 #define STDC_HEADERS 1 |
|
5895 _ACEOF |
|
5896 |
|
5897 fi |
|
5898 |
|
5899 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
5900 |
|
5901 |
|
5902 |
|
5903 |
|
5904 |
|
5905 |
|
5906 |
|
5907 |
|
5908 |
|
5909 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
5910 inttypes.h stdint.h unistd.h |
|
5911 do |
|
5912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
5913 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
5915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
5916 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5917 else |
|
5918 cat >conftest.$ac_ext <<_ACEOF |
|
5919 /* confdefs.h. */ |
|
5920 _ACEOF |
|
5921 cat confdefs.h >>conftest.$ac_ext |
|
5922 cat >>conftest.$ac_ext <<_ACEOF |
|
5923 /* end confdefs.h. */ |
|
5924 $ac_includes_default |
|
5925 |
|
5926 #include <$ac_header> |
|
5927 _ACEOF |
|
5928 rm -f conftest.$ac_objext |
|
5929 if { (ac_try="$ac_compile" |
|
5930 case "(($ac_try" in |
|
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5932 *) ac_try_echo=$ac_try;; |
|
5933 esac |
|
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
5935 (eval "$ac_compile") 2>conftest.er1 |
|
5936 ac_status=$? |
|
5937 grep -v '^ *+' conftest.er1 >conftest.err |
|
5938 rm -f conftest.er1 |
|
5939 cat conftest.err >&5 |
|
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5941 (exit $ac_status); } && { |
|
5942 test -z "$ac_c_werror_flag" || |
|
5943 test ! -s conftest.err |
|
5944 } && test -s conftest.$ac_objext; then |
|
5945 eval "$as_ac_Header=yes" |
|
5946 else |
|
5947 echo "$as_me: failed program was:" >&5 |
|
5948 sed 's/^/| /' conftest.$ac_ext >&5 |
|
5949 |
|
5950 eval "$as_ac_Header=no" |
|
5951 fi |
|
5952 |
|
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5954 fi |
|
5955 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
5956 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
5957 echo "${ECHO_T}$ac_res" >&6; } |
|
5958 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
5959 cat >>confdefs.h <<_ACEOF |
|
5960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
5961 _ACEOF |
|
5962 |
|
5963 fi |
|
5964 |
|
5965 done |
|
5966 |
|
5967 |
|
5968 |
|
5969 for ac_header in dlfcn.h |
|
5970 do |
|
5971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
5972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
5973 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
5974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
5975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
5976 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5977 fi |
|
5978 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
5979 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
5980 echo "${ECHO_T}$ac_res" >&6; } |
|
5981 else |
|
5982 # Is the header compilable? |
|
5983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
5984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
5985 cat >conftest.$ac_ext <<_ACEOF |
|
5986 /* confdefs.h. */ |
|
5987 _ACEOF |
|
5988 cat confdefs.h >>conftest.$ac_ext |
|
5989 cat >>conftest.$ac_ext <<_ACEOF |
|
5990 /* end confdefs.h. */ |
|
5991 $ac_includes_default |
|
5992 #include <$ac_header> |
|
5993 _ACEOF |
|
5994 rm -f conftest.$ac_objext |
|
5995 if { (ac_try="$ac_compile" |
|
5996 case "(($ac_try" in |
|
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
5998 *) ac_try_echo=$ac_try;; |
|
5999 esac |
|
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6001 (eval "$ac_compile") 2>conftest.er1 |
|
6002 ac_status=$? |
|
6003 grep -v '^ *+' conftest.er1 >conftest.err |
|
6004 rm -f conftest.er1 |
|
6005 cat conftest.err >&5 |
|
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6007 (exit $ac_status); } && { |
|
6008 test -z "$ac_c_werror_flag" || |
|
6009 test ! -s conftest.err |
|
6010 } && test -s conftest.$ac_objext; then |
|
6011 ac_header_compiler=yes |
|
6012 else |
|
6013 echo "$as_me: failed program was:" >&5 |
|
6014 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6015 |
|
6016 ac_header_compiler=no |
|
6017 fi |
|
6018 |
|
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
6021 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
6022 |
|
6023 # Is the header present? |
|
6024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
6025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
6026 cat >conftest.$ac_ext <<_ACEOF |
|
6027 /* confdefs.h. */ |
|
6028 _ACEOF |
|
6029 cat confdefs.h >>conftest.$ac_ext |
|
6030 cat >>conftest.$ac_ext <<_ACEOF |
|
6031 /* end confdefs.h. */ |
|
6032 #include <$ac_header> |
|
6033 _ACEOF |
|
6034 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
6035 case "(($ac_try" in |
|
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6037 *) ac_try_echo=$ac_try;; |
|
6038 esac |
|
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
6041 ac_status=$? |
|
6042 grep -v '^ *+' conftest.er1 >conftest.err |
|
6043 rm -f conftest.er1 |
|
6044 cat conftest.err >&5 |
|
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6046 (exit $ac_status); } >/dev/null && { |
|
6047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
6048 test ! -s conftest.err |
|
6049 }; then |
|
6050 ac_header_preproc=yes |
|
6051 else |
|
6052 echo "$as_me: failed program was:" >&5 |
|
6053 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6054 |
|
6055 ac_header_preproc=no |
|
6056 fi |
|
6057 |
|
6058 rm -f conftest.err conftest.$ac_ext |
|
6059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
6060 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
6061 |
|
6062 # So? What about this header? |
|
6063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
6064 yes:no: ) |
|
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
6066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
6068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
6069 ac_header_preproc=yes |
|
6070 ;; |
|
6071 no:yes:* ) |
|
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
6073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
6075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
6077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
6079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
6081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
6083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
6084 |
|
6085 ;; |
|
6086 esac |
|
6087 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
6088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
6090 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6091 else |
|
6092 eval "$as_ac_Header=\$ac_header_preproc" |
|
6093 fi |
|
6094 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
6095 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
6096 echo "${ECHO_T}$ac_res" >&6; } |
|
6097 |
|
6098 fi |
|
6099 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
6100 cat >>confdefs.h <<_ACEOF |
|
6101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
6102 _ACEOF |
|
6103 |
|
6104 fi |
|
6105 |
|
6106 done |
|
6107 |
|
6108 |
|
6109 |
|
6110 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
6111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
6112 (test "X$CXX" != "Xg++"))) ; then |
|
6113 ac_ext=cpp |
|
6114 ac_cpp='$CXXCPP $CPPFLAGS' |
|
6115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6118 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
6119 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
6120 if test -z "$CXXCPP"; then |
|
6121 if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
6122 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6123 else |
|
6124 # Double quotes because CXXCPP needs to be expanded |
|
6125 for CXXCPP in "$CXX -E" "/lib/cpp" |
|
6126 do |
|
6127 ac_preproc_ok=false |
|
6128 for ac_cxx_preproc_warn_flag in '' yes |
|
6129 do |
|
6130 # Use a header file that comes with gcc, so configuring glibc |
|
6131 # with a fresh cross-compiler works. |
|
6132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6133 # <limits.h> exists even on freestanding compilers. |
|
6134 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
6135 # not just through cpp. "Syntax error" is here to catch this case. |
|
6136 cat >conftest.$ac_ext <<_ACEOF |
|
6137 /* confdefs.h. */ |
|
6138 _ACEOF |
|
6139 cat confdefs.h >>conftest.$ac_ext |
|
6140 cat >>conftest.$ac_ext <<_ACEOF |
|
6141 /* end confdefs.h. */ |
|
6142 #ifdef __STDC__ |
|
6143 # include <limits.h> |
|
6144 #else |
|
6145 # include <assert.h> |
|
6146 #endif |
|
6147 Syntax error |
|
6148 _ACEOF |
|
6149 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
6150 case "(($ac_try" in |
|
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6152 *) ac_try_echo=$ac_try;; |
|
6153 esac |
|
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
6156 ac_status=$? |
|
6157 grep -v '^ *+' conftest.er1 >conftest.err |
|
6158 rm -f conftest.er1 |
|
6159 cat conftest.err >&5 |
|
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6161 (exit $ac_status); } >/dev/null && { |
|
6162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
6163 test ! -s conftest.err |
|
6164 }; then |
|
6165 : |
|
6166 else |
|
6167 echo "$as_me: failed program was:" >&5 |
|
6168 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6169 |
|
6170 # Broken: fails on valid input. |
|
6171 continue |
|
6172 fi |
|
6173 |
|
6174 rm -f conftest.err conftest.$ac_ext |
|
6175 |
|
6176 # OK, works on sane cases. Now check whether nonexistent headers |
|
6177 # can be detected and how. |
|
6178 cat >conftest.$ac_ext <<_ACEOF |
|
6179 /* confdefs.h. */ |
|
6180 _ACEOF |
|
6181 cat confdefs.h >>conftest.$ac_ext |
|
6182 cat >>conftest.$ac_ext <<_ACEOF |
|
6183 /* end confdefs.h. */ |
|
6184 #include <ac_nonexistent.h> |
|
6185 _ACEOF |
|
6186 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
6187 case "(($ac_try" in |
|
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6189 *) ac_try_echo=$ac_try;; |
|
6190 esac |
|
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
6193 ac_status=$? |
|
6194 grep -v '^ *+' conftest.er1 >conftest.err |
|
6195 rm -f conftest.er1 |
|
6196 cat conftest.err >&5 |
|
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6198 (exit $ac_status); } >/dev/null && { |
|
6199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
6200 test ! -s conftest.err |
|
6201 }; then |
|
6202 # Broken: success on invalid input. |
|
6203 continue |
|
6204 else |
|
6205 echo "$as_me: failed program was:" >&5 |
|
6206 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6207 |
|
6208 # Passes both tests. |
|
6209 ac_preproc_ok=: |
|
6210 break |
|
6211 fi |
|
6212 |
|
6213 rm -f conftest.err conftest.$ac_ext |
|
6214 |
|
6215 done |
|
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6217 rm -f conftest.err conftest.$ac_ext |
|
6218 if $ac_preproc_ok; then |
|
6219 break |
|
6220 fi |
|
6221 |
|
6222 done |
|
6223 ac_cv_prog_CXXCPP=$CXXCPP |
|
6224 |
|
6225 fi |
|
6226 CXXCPP=$ac_cv_prog_CXXCPP |
|
6227 else |
|
6228 ac_cv_prog_CXXCPP=$CXXCPP |
|
6229 fi |
|
6230 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
6231 echo "${ECHO_T}$CXXCPP" >&6; } |
|
6232 ac_preproc_ok=false |
|
6233 for ac_cxx_preproc_warn_flag in '' yes |
|
6234 do |
|
6235 # Use a header file that comes with gcc, so configuring glibc |
|
6236 # with a fresh cross-compiler works. |
|
6237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6238 # <limits.h> exists even on freestanding compilers. |
|
6239 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
6240 # not just through cpp. "Syntax error" is here to catch this case. |
|
6241 cat >conftest.$ac_ext <<_ACEOF |
|
6242 /* confdefs.h. */ |
|
6243 _ACEOF |
|
6244 cat confdefs.h >>conftest.$ac_ext |
|
6245 cat >>conftest.$ac_ext <<_ACEOF |
|
6246 /* end confdefs.h. */ |
|
6247 #ifdef __STDC__ |
|
6248 # include <limits.h> |
|
6249 #else |
|
6250 # include <assert.h> |
|
6251 #endif |
|
6252 Syntax error |
|
6253 _ACEOF |
|
6254 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
6255 case "(($ac_try" in |
|
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6257 *) ac_try_echo=$ac_try;; |
|
6258 esac |
|
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
6261 ac_status=$? |
|
6262 grep -v '^ *+' conftest.er1 >conftest.err |
|
6263 rm -f conftest.er1 |
|
6264 cat conftest.err >&5 |
|
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6266 (exit $ac_status); } >/dev/null && { |
|
6267 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
6268 test ! -s conftest.err |
|
6269 }; then |
|
6270 : |
|
6271 else |
|
6272 echo "$as_me: failed program was:" >&5 |
|
6273 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6274 |
|
6275 # Broken: fails on valid input. |
|
6276 continue |
|
6277 fi |
|
6278 |
|
6279 rm -f conftest.err conftest.$ac_ext |
|
6280 |
|
6281 # OK, works on sane cases. Now check whether nonexistent headers |
|
6282 # can be detected and how. |
|
6283 cat >conftest.$ac_ext <<_ACEOF |
|
6284 /* confdefs.h. */ |
|
6285 _ACEOF |
|
6286 cat confdefs.h >>conftest.$ac_ext |
|
6287 cat >>conftest.$ac_ext <<_ACEOF |
|
6288 /* end confdefs.h. */ |
|
6289 #include <ac_nonexistent.h> |
|
6290 _ACEOF |
|
6291 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
6292 case "(($ac_try" in |
|
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6294 *) ac_try_echo=$ac_try;; |
|
6295 esac |
|
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
6298 ac_status=$? |
|
6299 grep -v '^ *+' conftest.er1 >conftest.err |
|
6300 rm -f conftest.er1 |
|
6301 cat conftest.err >&5 |
|
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6303 (exit $ac_status); } >/dev/null && { |
|
6304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
6305 test ! -s conftest.err |
|
6306 }; then |
|
6307 # Broken: success on invalid input. |
|
6308 continue |
|
6309 else |
|
6310 echo "$as_me: failed program was:" >&5 |
|
6311 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6312 |
|
6313 # Passes both tests. |
|
6314 ac_preproc_ok=: |
|
6315 break |
|
6316 fi |
|
6317 |
|
6318 rm -f conftest.err conftest.$ac_ext |
|
6319 |
|
6320 done |
|
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6322 rm -f conftest.err conftest.$ac_ext |
|
6323 if $ac_preproc_ok; then |
|
6324 : |
|
6325 else |
|
6326 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6327 See \`config.log' for more details." >&5 |
|
6328 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
6329 See \`config.log' for more details." >&2;} |
|
6330 { (exit 1); exit 1; }; } |
|
6331 fi |
|
6332 |
|
6333 ac_ext=cpp |
|
6334 ac_cpp='$CXXCPP $CPPFLAGS' |
|
6335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6338 |
|
6339 fi |
|
6340 |
|
6341 ac_ext=f |
|
6342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
6343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
6345 if test -n "$ac_tool_prefix"; then |
|
6346 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 |
|
6347 do |
|
6348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
6349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
6352 if test "${ac_cv_prog_F77+set}" = set; then |
|
6353 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6354 else |
|
6355 if test -n "$F77"; then |
|
6356 ac_cv_prog_F77="$F77" # Let the user override the test. |
|
6357 else |
|
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6359 for as_dir in $PATH |
|
6360 do |
|
6361 IFS=$as_save_IFS |
|
6362 test -z "$as_dir" && as_dir=. |
|
6363 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6365 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6367 break 2 |
|
6368 fi |
|
6369 done |
|
6370 done |
|
6371 IFS=$as_save_IFS |
|
6372 |
|
6373 fi |
|
6374 fi |
|
6375 F77=$ac_cv_prog_F77 |
|
6376 if test -n "$F77"; then |
|
6377 { echo "$as_me:$LINENO: result: $F77" >&5 |
|
6378 echo "${ECHO_T}$F77" >&6; } |
|
6379 else |
|
6380 { echo "$as_me:$LINENO: result: no" >&5 |
|
6381 echo "${ECHO_T}no" >&6; } |
|
6382 fi |
|
6383 |
|
6384 |
|
6385 test -n "$F77" && break |
|
6386 done |
|
6387 fi |
|
6388 if test -z "$F77"; then |
|
6389 ac_ct_F77=$F77 |
|
6390 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 |
|
6391 do |
|
6392 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
6393 set dummy $ac_prog; ac_word=$2 |
|
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
6396 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
6397 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6398 else |
|
6399 if test -n "$ac_ct_F77"; then |
|
6400 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
6401 else |
|
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6403 for as_dir in $PATH |
|
6404 do |
|
6405 IFS=$as_save_IFS |
|
6406 test -z "$as_dir" && as_dir=. |
|
6407 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6409 ac_cv_prog_ac_ct_F77="$ac_prog" |
|
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6411 break 2 |
|
6412 fi |
|
6413 done |
|
6414 done |
|
6415 IFS=$as_save_IFS |
|
6416 |
|
6417 fi |
|
6418 fi |
|
6419 ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
6420 if test -n "$ac_ct_F77"; then |
|
6421 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
6422 echo "${ECHO_T}$ac_ct_F77" >&6; } |
|
6423 else |
|
6424 { echo "$as_me:$LINENO: result: no" >&5 |
|
6425 echo "${ECHO_T}no" >&6; } |
|
6426 fi |
|
6427 |
|
6428 |
|
6429 test -n "$ac_ct_F77" && break |
|
6430 done |
|
6431 |
|
6432 if test "x$ac_ct_F77" = x; then |
|
6433 F77="" |
|
6434 else |
|
6435 case $cross_compiling:$ac_tool_warned in |
|
6436 yes:) |
|
6437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
6438 whose name does not start with the host triplet. If you think this |
|
6439 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
6440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
6441 whose name does not start with the host triplet. If you think this |
|
6442 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
6443 ac_tool_warned=yes ;; |
|
6444 esac |
|
6445 F77=$ac_ct_F77 |
|
6446 fi |
|
6447 fi |
|
6448 |
|
6449 |
|
6450 # Provide some information about the compiler. |
|
6451 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
|
6452 ac_compiler=`set X $ac_compile; echo $2` |
|
6453 { (ac_try="$ac_compiler --version >&5" |
|
6454 case "(($ac_try" in |
|
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6456 *) ac_try_echo=$ac_try;; |
|
6457 esac |
|
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6459 (eval "$ac_compiler --version >&5") 2>&5 |
|
6460 ac_status=$? |
|
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6462 (exit $ac_status); } |
|
6463 { (ac_try="$ac_compiler -v >&5" |
|
6464 case "(($ac_try" in |
|
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6466 *) ac_try_echo=$ac_try;; |
|
6467 esac |
|
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6469 (eval "$ac_compiler -v >&5") 2>&5 |
|
6470 ac_status=$? |
|
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6472 (exit $ac_status); } |
|
6473 { (ac_try="$ac_compiler -V >&5" |
|
6474 case "(($ac_try" in |
|
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6476 *) ac_try_echo=$ac_try;; |
|
6477 esac |
|
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6479 (eval "$ac_compiler -V >&5") 2>&5 |
|
6480 ac_status=$? |
|
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6482 (exit $ac_status); } |
|
6483 rm -f a.out |
|
6484 |
|
6485 # If we don't use `.F' as extension, the preprocessor is not run on the |
|
6486 # input file. (Note that this only needs to work for GNU compilers.) |
|
6487 ac_save_ext=$ac_ext |
|
6488 ac_ext=F |
|
6489 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
6490 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
|
6491 if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
6492 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6493 else |
|
6494 cat >conftest.$ac_ext <<_ACEOF |
|
6495 program main |
|
6496 #ifndef __GNUC__ |
|
6497 choke me |
|
6498 #endif |
|
6499 |
|
6500 end |
|
6501 _ACEOF |
|
6502 rm -f conftest.$ac_objext |
|
6503 if { (ac_try="$ac_compile" |
|
6504 case "(($ac_try" in |
|
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6506 *) ac_try_echo=$ac_try;; |
|
6507 esac |
|
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6509 (eval "$ac_compile") 2>conftest.er1 |
|
6510 ac_status=$? |
|
6511 grep -v '^ *+' conftest.er1 >conftest.err |
|
6512 rm -f conftest.er1 |
|
6513 cat conftest.err >&5 |
|
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6515 (exit $ac_status); } && { |
|
6516 test -z "$ac_f77_werror_flag" || |
|
6517 test ! -s conftest.err |
|
6518 } && test -s conftest.$ac_objext; then |
|
6519 ac_compiler_gnu=yes |
|
6520 else |
|
6521 echo "$as_me: failed program was:" >&5 |
|
6522 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6523 |
|
6524 ac_compiler_gnu=no |
|
6525 fi |
|
6526 |
|
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6528 ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
6529 |
|
6530 fi |
|
6531 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
6532 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
|
6533 ac_ext=$ac_save_ext |
|
6534 ac_test_FFLAGS=${FFLAGS+set} |
|
6535 ac_save_FFLAGS=$FFLAGS |
|
6536 FFLAGS= |
|
6537 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
6538 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
|
6539 if test "${ac_cv_prog_f77_g+set}" = set; then |
|
6540 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6541 else |
|
6542 FFLAGS=-g |
|
6543 cat >conftest.$ac_ext <<_ACEOF |
|
6544 program main |
|
6545 |
|
6546 end |
|
6547 _ACEOF |
|
6548 rm -f conftest.$ac_objext |
|
6549 if { (ac_try="$ac_compile" |
|
6550 case "(($ac_try" in |
|
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
6552 *) ac_try_echo=$ac_try;; |
|
6553 esac |
|
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
6555 (eval "$ac_compile") 2>conftest.er1 |
|
6556 ac_status=$? |
|
6557 grep -v '^ *+' conftest.er1 >conftest.err |
|
6558 rm -f conftest.er1 |
|
6559 cat conftest.err >&5 |
|
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6561 (exit $ac_status); } && { |
|
6562 test -z "$ac_f77_werror_flag" || |
|
6563 test ! -s conftest.err |
|
6564 } && test -s conftest.$ac_objext; then |
|
6565 ac_cv_prog_f77_g=yes |
|
6566 else |
|
6567 echo "$as_me: failed program was:" >&5 |
|
6568 sed 's/^/| /' conftest.$ac_ext >&5 |
|
6569 |
|
6570 ac_cv_prog_f77_g=no |
|
6571 fi |
|
6572 |
|
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6574 |
|
6575 fi |
|
6576 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
6577 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
|
6578 if test "$ac_test_FFLAGS" = set; then |
|
6579 FFLAGS=$ac_save_FFLAGS |
|
6580 elif test $ac_cv_prog_f77_g = yes; then |
|
6581 if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6582 FFLAGS="-g -O2" |
|
6583 else |
|
6584 FFLAGS="-g" |
|
6585 fi |
|
6586 else |
|
6587 if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
6588 FFLAGS="-O2" |
|
6589 else |
|
6590 FFLAGS= |
|
6591 fi |
|
6592 fi |
|
6593 |
|
6594 G77=`test $ac_compiler_gnu = yes && echo yes` |
|
6595 ac_ext=c |
|
6596 ac_cpp='$CPP $CPPFLAGS' |
|
6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6600 |
|
6601 |
|
6602 |
|
6603 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
6604 # find the maximum length of command line arguments |
|
6605 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
6606 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
|
6607 if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
6608 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6609 else |
|
6610 i=0 |
|
6611 teststring="ABCD" |
|
6612 |
|
6613 case $build_os in |
|
6614 msdosdjgpp*) |
|
6615 # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
6616 # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
6617 # during glob expansion). Even if it were fixed, the result of this |
|
6618 # check would be larger than it should be. |
|
6619 lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
6620 ;; |
|
6621 |
|
6622 gnu*) |
|
6623 # Under GNU Hurd, this test is not required because there is |
|
6624 # no limit to the length of command line arguments. |
|
6625 # Libtool will interpret -1 as no limit whatsoever |
|
6626 lt_cv_sys_max_cmd_len=-1; |
|
6627 ;; |
|
6628 |
|
6629 cygwin* | mingw*) |
|
6630 # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
6631 # about 5 minutes as the teststring grows exponentially. |
|
6632 # Worse, since 9x/ME are not pre-emptively multitasking, |
|
6633 # you end up with a "frozen" computer, even though with patience |
|
6634 # the test eventually succeeds (with a max line length of 256k). |
|
6635 # Instead, let's just punt: use the minimum linelength reported by |
|
6636 # all of the supported platforms: 8192 (on NT/2K/XP). |
|
6637 lt_cv_sys_max_cmd_len=8192; |
|
6638 ;; |
|
6639 |
|
6640 amigaos*) |
|
6641 # On AmigaOS with pdksh, this test takes hours, literally. |
|
6642 # So we just punt and use a minimum line length of 8192. |
|
6643 lt_cv_sys_max_cmd_len=8192; |
|
6644 ;; |
|
6645 |
|
6646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
6647 # This has been around since 386BSD, at least. Likely further. |
|
6648 if test -x /sbin/sysctl; then |
|
6649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
6650 elif test -x /usr/sbin/sysctl; then |
|
6651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
6652 else |
|
6653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
|
6654 fi |
|
6655 # And add a safety zone |
|
6656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
6658 ;; |
|
6659 |
|
6660 interix*) |
|
6661 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
6662 lt_cv_sys_max_cmd_len=196608 |
|
6663 ;; |
|
6664 |
|
6665 osf*) |
|
6666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
6667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
6668 # nice to cause kernel panics so lets avoid the loop below. |
|
6669 # First set a reasonable default. |
|
6670 lt_cv_sys_max_cmd_len=16384 |
|
6671 # |
|
6672 if test -x /sbin/sysconfig; then |
|
6673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
6674 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
6675 esac |
|
6676 fi |
|
6677 ;; |
|
6678 sco3.2v5*) |
|
6679 lt_cv_sys_max_cmd_len=102400 |
|
6680 ;; |
|
6681 sysv5* | sco5v6* | sysv4.2uw2*) |
|
6682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
6683 if test -n "$kargmax"; then |
|
6684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
6685 else |
|
6686 lt_cv_sys_max_cmd_len=32768 |
|
6687 fi |
|
6688 ;; |
|
6689 *) |
|
6690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
|
6691 if test -n "$lt_cv_sys_max_cmd_len"; then |
|
6692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
6693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
6694 else |
|
6695 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
6696 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
6697 = "XX$teststring") >/dev/null 2>&1 && |
|
6698 new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
6699 lt_cv_sys_max_cmd_len=$new_result && |
|
6700 test $i != 17 # 1/2 MB should be enough |
|
6701 do |
|
6702 i=`expr $i + 1` |
|
6703 teststring=$teststring$teststring |
|
6704 done |
|
6705 teststring= |
|
6706 # Add a significant safety factor because C++ compilers can tack on massive |
|
6707 # amounts of additional arguments before passing them to the linker. |
|
6708 # It appears as though 1/2 is a usable value. |
|
6709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
6710 fi |
|
6711 ;; |
|
6712 esac |
|
6713 |
|
6714 fi |
|
6715 |
|
6716 if test -n $lt_cv_sys_max_cmd_len ; then |
|
6717 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
6718 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
|
6719 else |
|
6720 { echo "$as_me:$LINENO: result: none" >&5 |
|
6721 echo "${ECHO_T}none" >&6; } |
|
6722 fi |
|
6723 |
|
6724 |
|
6725 |
|
6726 |
|
6727 |
|
6728 # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
6729 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
6730 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
|
6731 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
6732 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6733 else |
|
6734 |
|
6735 # These are sane defaults that work on at least a few old systems. |
|
6736 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
6737 |
|
6738 # Character class describing NM global symbol codes. |
|
6739 symcode='[BCDEGRST]' |
|
6740 |
|
6741 # Regexp to match symbols that can be accessed directly from C. |
|
6742 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
6743 |
|
6744 # Transform an extracted symbol line into a proper C declaration |
|
6745 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
6746 |
|
6747 # Transform an extracted symbol line into symbol name and symbol address |
|
6748 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'" |
|
6749 |
|
6750 # Define system-specific variables. |
|
6751 case $host_os in |
|
6752 aix*) |
|
6753 symcode='[BCDT]' |
|
6754 ;; |
|
6755 cygwin* | mingw* | pw32*) |
|
6756 symcode='[ABCDGISTW]' |
|
6757 ;; |
|
6758 hpux*) # Its linker distinguishes data from code symbols |
|
6759 if test "$host_cpu" = ia64; then |
|
6760 symcode='[ABCDEGRST]' |
|
6761 fi |
|
6762 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6763 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'" |
|
6764 ;; |
|
6765 linux* | k*bsd*-gnu) |
|
6766 if test "$host_cpu" = ia64; then |
|
6767 symcode='[ABCDGIRSTW]' |
|
6768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6769 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'" |
|
6770 fi |
|
6771 ;; |
|
6772 irix* | nonstopux*) |
|
6773 symcode='[BCDEGRST]' |
|
6774 ;; |
|
6775 osf*) |
|
6776 symcode='[BCDEGQRST]' |
|
6777 ;; |
|
6778 solaris*) |
|
6779 symcode='[BDRT]' |
|
6780 ;; |
|
6781 sco3.2v5*) |
|
6782 symcode='[DT]' |
|
6783 ;; |
|
6784 sysv4.2uw2*) |
|
6785 symcode='[DT]' |
|
6786 ;; |
|
6787 sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
6788 symcode='[ABDT]' |
|
6789 ;; |
|
6790 sysv4) |
|
6791 symcode='[DFNSTU]' |
|
6792 ;; |
|
6793 esac |
|
6794 |
|
6795 # Handle CRLF in mingw tool chain |
|
6796 opt_cr= |
|
6797 case $build_os in |
|
6798 mingw*) |
|
6799 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
6800 ;; |
|
6801 esac |
|
6802 |
|
6803 # If we're using GNU nm, then use its standard symbol codes. |
|
6804 case `$NM -V 2>&1` in |
|
6805 *GNU* | *'with BFD'*) |
|
6806 symcode='[ABCDGIRSTW]' ;; |
|
6807 esac |
|
6808 |
|
6809 # Try without a prefix undercore, then with it. |
|
6810 for ac_symprfx in "" "_"; do |
|
6811 |
|
6812 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
6813 symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
6814 |
|
6815 # Write the raw and C identifiers. |
|
6816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
6817 |
|
6818 # Check to see that the pipe works correctly. |
|
6819 pipe_works=no |
|
6820 |
|
6821 rm -f conftest* |
|
6822 cat > conftest.$ac_ext <<EOF |
|
6823 #ifdef __cplusplus |
|
6824 extern "C" { |
|
6825 #endif |
|
6826 char nm_test_var; |
|
6827 void nm_test_func(){} |
|
6828 #ifdef __cplusplus |
|
6829 } |
|
6830 #endif |
|
6831 int main(){nm_test_var='a';nm_test_func();return(0);} |
|
6832 EOF |
|
6833 |
|
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6835 (eval $ac_compile) 2>&5 |
|
6836 ac_status=$? |
|
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6838 (exit $ac_status); }; then |
|
6839 # Now try to grab the symbols. |
|
6840 nlist=conftest.nm |
|
6841 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
6842 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
6843 ac_status=$? |
|
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6845 (exit $ac_status); } && test -s "$nlist"; then |
|
6846 # Try sorting and uniquifying the output. |
|
6847 if sort "$nlist" | uniq > "$nlist"T; then |
|
6848 mv -f "$nlist"T "$nlist" |
|
6849 else |
|
6850 rm -f "$nlist"T |
|
6851 fi |
|
6852 |
|
6853 # Make sure that we snagged all the symbols we need. |
|
6854 if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
6855 if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
6856 cat <<EOF > conftest.$ac_ext |
|
6857 #ifdef __cplusplus |
|
6858 extern "C" { |
|
6859 #endif |
|
6860 |
|
6861 EOF |
|
6862 # Now generate the symbol file. |
|
6863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
6864 |
|
6865 cat <<EOF >> conftest.$ac_ext |
|
6866 #if defined (__STDC__) && __STDC__ |
|
6867 # define lt_ptr_t void * |
|
6868 #else |
|
6869 # define lt_ptr_t char * |
|
6870 # define const |
|
6871 #endif |
|
6872 |
|
6873 /* The mapping between symbol names and symbols. */ |
|
6874 const struct { |
|
6875 const char *name; |
|
6876 lt_ptr_t address; |
|
6877 } |
|
6878 lt_preloaded_symbols[] = |
|
6879 { |
|
6880 EOF |
|
6881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
6882 cat <<\EOF >> conftest.$ac_ext |
|
6883 {0, (lt_ptr_t) 0} |
|
6884 }; |
|
6885 |
|
6886 #ifdef __cplusplus |
|
6887 } |
|
6888 #endif |
|
6889 EOF |
|
6890 # Now try linking the two files. |
|
6891 mv conftest.$ac_objext conftstm.$ac_objext |
|
6892 lt_save_LIBS="$LIBS" |
|
6893 lt_save_CFLAGS="$CFLAGS" |
|
6894 LIBS="conftstm.$ac_objext" |
|
6895 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6897 (eval $ac_link) 2>&5 |
|
6898 ac_status=$? |
|
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6900 (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
6901 pipe_works=yes |
|
6902 fi |
|
6903 LIBS="$lt_save_LIBS" |
|
6904 CFLAGS="$lt_save_CFLAGS" |
|
6905 else |
|
6906 echo "cannot find nm_test_func in $nlist" >&5 |
|
6907 fi |
|
6908 else |
|
6909 echo "cannot find nm_test_var in $nlist" >&5 |
|
6910 fi |
|
6911 else |
|
6912 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
6913 fi |
|
6914 else |
|
6915 echo "$progname: failed program was:" >&5 |
|
6916 cat conftest.$ac_ext >&5 |
|
6917 fi |
|
6918 rm -rf conftest* conftst* |
|
6919 |
|
6920 # Do not use the global_symbol_pipe unless it works. |
|
6921 if test "$pipe_works" = yes; then |
|
6922 break |
|
6923 else |
|
6924 lt_cv_sys_global_symbol_pipe= |
|
6925 fi |
|
6926 done |
|
6927 |
|
6928 fi |
|
6929 |
|
6930 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
6931 lt_cv_sys_global_symbol_to_cdecl= |
|
6932 fi |
|
6933 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
6934 { echo "$as_me:$LINENO: result: failed" >&5 |
|
6935 echo "${ECHO_T}failed" >&6; } |
|
6936 else |
|
6937 { echo "$as_me:$LINENO: result: ok" >&5 |
|
6938 echo "${ECHO_T}ok" >&6; } |
|
6939 fi |
|
6940 |
|
6941 { echo "$as_me:$LINENO: checking for objdir" >&5 |
|
6942 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
|
6943 if test "${lt_cv_objdir+set}" = set; then |
|
6944 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6945 else |
|
6946 rm -f .libs 2>/dev/null |
|
6947 mkdir .libs 2>/dev/null |
|
6948 if test -d .libs; then |
|
6949 lt_cv_objdir=.libs |
|
6950 else |
|
6951 # MS-DOS does not allow filenames that begin with a dot. |
|
6952 lt_cv_objdir=_libs |
|
6953 fi |
|
6954 rmdir .libs 2>/dev/null |
|
6955 fi |
|
6956 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
6957 echo "${ECHO_T}$lt_cv_objdir" >&6; } |
|
6958 objdir=$lt_cv_objdir |
|
6959 |
|
6960 |
|
6961 |
|
6962 |
|
6963 |
|
6964 case $host_os in |
|
6965 aix3*) |
|
6966 # AIX sometimes has problems with the GCC collect2 program. For some |
|
6967 # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
6968 # vanish in a puff of smoke. |
|
6969 if test "X${COLLECT_NAMES+set}" != Xset; then |
|
6970 COLLECT_NAMES= |
|
6971 export COLLECT_NAMES |
|
6972 fi |
|
6973 ;; |
|
6974 esac |
|
6975 |
|
6976 # Sed substitution that helps us do robust quoting. It backslashifies |
|
6977 # metacharacters that are still active within double-quoted strings. |
|
6978 Xsed='sed -e 1s/^X//' |
|
6979 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
6980 |
|
6981 # Same as above, but do not quote variable references. |
|
6982 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
6983 |
|
6984 # Sed substitution to delay expansion of an escaped shell variable in a |
|
6985 # double_quote_subst'ed string. |
|
6986 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
6987 |
|
6988 # Sed substitution to avoid accidental globbing in evaled expressions |
|
6989 no_glob_subst='s/\*/\\\*/g' |
|
6990 |
|
6991 # Constants: |
|
6992 rm="rm -f" |
|
6993 |
|
6994 # Global variables: |
|
6995 default_ofile=libtool |
|
6996 can_build_shared=yes |
|
6997 |
|
6998 # All known linkers require a `.a' archive for static linking (except MSVC, |
|
6999 # which needs '.lib'). |
|
7000 libext=a |
|
7001 ltmain="$ac_aux_dir/ltmain.sh" |
|
7002 ofile="$default_ofile" |
|
7003 with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
7004 |
|
7005 if test -n "$ac_tool_prefix"; then |
|
7006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
7007 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7010 if test "${ac_cv_prog_AR+set}" = set; then |
|
7011 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7012 else |
|
7013 if test -n "$AR"; then |
|
7014 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
7015 else |
|
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7017 for as_dir in $PATH |
|
7018 do |
|
7019 IFS=$as_save_IFS |
|
7020 test -z "$as_dir" && as_dir=. |
|
7021 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7023 ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7025 break 2 |
|
7026 fi |
|
7027 done |
|
7028 done |
|
7029 IFS=$as_save_IFS |
|
7030 |
|
7031 fi |
|
7032 fi |
|
7033 AR=$ac_cv_prog_AR |
|
7034 if test -n "$AR"; then |
|
7035 { echo "$as_me:$LINENO: result: $AR" >&5 |
|
7036 echo "${ECHO_T}$AR" >&6; } |
|
7037 else |
|
7038 { echo "$as_me:$LINENO: result: no" >&5 |
|
7039 echo "${ECHO_T}no" >&6; } |
|
7040 fi |
|
7041 |
|
7042 |
|
7043 fi |
|
7044 if test -z "$ac_cv_prog_AR"; then |
|
7045 ac_ct_AR=$AR |
|
7046 # Extract the first word of "ar", so it can be a program name with args. |
|
7047 set dummy ar; ac_word=$2 |
|
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7050 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
7051 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7052 else |
|
7053 if test -n "$ac_ct_AR"; then |
|
7054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
7055 else |
|
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7057 for as_dir in $PATH |
|
7058 do |
|
7059 IFS=$as_save_IFS |
|
7060 test -z "$as_dir" && as_dir=. |
|
7061 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7063 ac_cv_prog_ac_ct_AR="ar" |
|
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7065 break 2 |
|
7066 fi |
|
7067 done |
|
7068 done |
|
7069 IFS=$as_save_IFS |
|
7070 |
|
7071 fi |
|
7072 fi |
|
7073 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
7074 if test -n "$ac_ct_AR"; then |
|
7075 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
7076 echo "${ECHO_T}$ac_ct_AR" >&6; } |
|
7077 else |
|
7078 { echo "$as_me:$LINENO: result: no" >&5 |
|
7079 echo "${ECHO_T}no" >&6; } |
|
7080 fi |
|
7081 |
|
7082 if test "x$ac_ct_AR" = x; then |
|
7083 AR="false" |
|
7084 else |
|
7085 case $cross_compiling:$ac_tool_warned in |
|
7086 yes:) |
|
7087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
7088 whose name does not start with the host triplet. If you think this |
|
7089 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
7090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
7091 whose name does not start with the host triplet. If you think this |
|
7092 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
7093 ac_tool_warned=yes ;; |
|
7094 esac |
|
7095 AR=$ac_ct_AR |
|
7096 fi |
|
7097 else |
|
7098 AR="$ac_cv_prog_AR" |
|
7099 fi |
|
7100 |
|
7101 if test -n "$ac_tool_prefix"; then |
|
7102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
7103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7106 if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
7107 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7108 else |
|
7109 if test -n "$RANLIB"; then |
|
7110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
7111 else |
|
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7113 for as_dir in $PATH |
|
7114 do |
|
7115 IFS=$as_save_IFS |
|
7116 test -z "$as_dir" && as_dir=. |
|
7117 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7121 break 2 |
|
7122 fi |
|
7123 done |
|
7124 done |
|
7125 IFS=$as_save_IFS |
|
7126 |
|
7127 fi |
|
7128 fi |
|
7129 RANLIB=$ac_cv_prog_RANLIB |
|
7130 if test -n "$RANLIB"; then |
|
7131 { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
7132 echo "${ECHO_T}$RANLIB" >&6; } |
|
7133 else |
|
7134 { echo "$as_me:$LINENO: result: no" >&5 |
|
7135 echo "${ECHO_T}no" >&6; } |
|
7136 fi |
|
7137 |
|
7138 |
|
7139 fi |
|
7140 if test -z "$ac_cv_prog_RANLIB"; then |
|
7141 ac_ct_RANLIB=$RANLIB |
|
7142 # Extract the first word of "ranlib", so it can be a program name with args. |
|
7143 set dummy ranlib; ac_word=$2 |
|
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
7147 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7148 else |
|
7149 if test -n "$ac_ct_RANLIB"; then |
|
7150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
7151 else |
|
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7153 for as_dir in $PATH |
|
7154 do |
|
7155 IFS=$as_save_IFS |
|
7156 test -z "$as_dir" && as_dir=. |
|
7157 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7159 ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7161 break 2 |
|
7162 fi |
|
7163 done |
|
7164 done |
|
7165 IFS=$as_save_IFS |
|
7166 |
|
7167 fi |
|
7168 fi |
|
7169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
7170 if test -n "$ac_ct_RANLIB"; then |
|
7171 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
7172 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
|
7173 else |
|
7174 { echo "$as_me:$LINENO: result: no" >&5 |
|
7175 echo "${ECHO_T}no" >&6; } |
|
7176 fi |
|
7177 |
|
7178 if test "x$ac_ct_RANLIB" = x; then |
|
7179 RANLIB=":" |
|
7180 else |
|
7181 case $cross_compiling:$ac_tool_warned in |
|
7182 yes:) |
|
7183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
7184 whose name does not start with the host triplet. If you think this |
|
7185 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
7186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
7187 whose name does not start with the host triplet. If you think this |
|
7188 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
7189 ac_tool_warned=yes ;; |
|
7190 esac |
|
7191 RANLIB=$ac_ct_RANLIB |
|
7192 fi |
|
7193 else |
|
7194 RANLIB="$ac_cv_prog_RANLIB" |
|
7195 fi |
|
7196 |
|
7197 if test -n "$ac_tool_prefix"; then |
|
7198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
7199 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7202 if test "${ac_cv_prog_STRIP+set}" = set; then |
|
7203 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7204 else |
|
7205 if test -n "$STRIP"; then |
|
7206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
7207 else |
|
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7209 for as_dir in $PATH |
|
7210 do |
|
7211 IFS=$as_save_IFS |
|
7212 test -z "$as_dir" && as_dir=. |
|
7213 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7215 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7217 break 2 |
|
7218 fi |
|
7219 done |
|
7220 done |
|
7221 IFS=$as_save_IFS |
|
7222 |
|
7223 fi |
|
7224 fi |
|
7225 STRIP=$ac_cv_prog_STRIP |
|
7226 if test -n "$STRIP"; then |
|
7227 { echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
7228 echo "${ECHO_T}$STRIP" >&6; } |
|
7229 else |
|
7230 { echo "$as_me:$LINENO: result: no" >&5 |
|
7231 echo "${ECHO_T}no" >&6; } |
|
7232 fi |
|
7233 |
|
7234 |
|
7235 fi |
|
7236 if test -z "$ac_cv_prog_STRIP"; then |
|
7237 ac_ct_STRIP=$STRIP |
|
7238 # Extract the first word of "strip", so it can be a program name with args. |
|
7239 set dummy strip; ac_word=$2 |
|
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
7243 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7244 else |
|
7245 if test -n "$ac_ct_STRIP"; then |
|
7246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
7247 else |
|
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7249 for as_dir in $PATH |
|
7250 do |
|
7251 IFS=$as_save_IFS |
|
7252 test -z "$as_dir" && as_dir=. |
|
7253 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7255 ac_cv_prog_ac_ct_STRIP="strip" |
|
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7257 break 2 |
|
7258 fi |
|
7259 done |
|
7260 done |
|
7261 IFS=$as_save_IFS |
|
7262 |
|
7263 fi |
|
7264 fi |
|
7265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
7266 if test -n "$ac_ct_STRIP"; then |
|
7267 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
7268 echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
|
7269 else |
|
7270 { echo "$as_me:$LINENO: result: no" >&5 |
|
7271 echo "${ECHO_T}no" >&6; } |
|
7272 fi |
|
7273 |
|
7274 if test "x$ac_ct_STRIP" = x; then |
|
7275 STRIP=":" |
|
7276 else |
|
7277 case $cross_compiling:$ac_tool_warned in |
|
7278 yes:) |
|
7279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
7280 whose name does not start with the host triplet. If you think this |
|
7281 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
7282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
7283 whose name does not start with the host triplet. If you think this |
|
7284 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
7285 ac_tool_warned=yes ;; |
|
7286 esac |
|
7287 STRIP=$ac_ct_STRIP |
|
7288 fi |
|
7289 else |
|
7290 STRIP="$ac_cv_prog_STRIP" |
|
7291 fi |
|
7292 |
|
7293 |
|
7294 old_CC="$CC" |
|
7295 old_CFLAGS="$CFLAGS" |
|
7296 |
|
7297 # Set sane defaults for various variables |
|
7298 test -z "$AR" && AR=ar |
|
7299 test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
7300 test -z "$AS" && AS=as |
|
7301 test -z "$CC" && CC=cc |
|
7302 test -z "$LTCC" && LTCC=$CC |
|
7303 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
7304 test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
7305 test -z "$LD" && LD=ld |
|
7306 test -z "$LN_S" && LN_S="ln -s" |
|
7307 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
7308 test -z "$NM" && NM=nm |
|
7309 test -z "$SED" && SED=sed |
|
7310 test -z "$OBJDUMP" && OBJDUMP=objdump |
|
7311 test -z "$RANLIB" && RANLIB=: |
|
7312 test -z "$STRIP" && STRIP=: |
|
7313 test -z "$ac_objext" && ac_objext=o |
|
7314 |
|
7315 # Determine commands to create old-style static archives. |
|
7316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
|
7317 old_postinstall_cmds='chmod 644 $oldlib' |
|
7318 old_postuninstall_cmds= |
|
7319 |
|
7320 if test -n "$RANLIB"; then |
|
7321 case $host_os in |
|
7322 openbsd*) |
|
7323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
|
7324 ;; |
|
7325 *) |
|
7326 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
|
7327 ;; |
|
7328 esac |
|
7329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
7330 fi |
|
7331 |
|
7332 for cc_temp in $compiler""; do |
|
7333 case $cc_temp in |
|
7334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
7335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
7336 \-*) ;; |
|
7337 *) break;; |
|
7338 esac |
|
7339 done |
|
7340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
7341 |
|
7342 |
|
7343 # Only perform the check for file, if the check method requires it |
|
7344 case $deplibs_check_method in |
|
7345 file_magic*) |
|
7346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
7347 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
7348 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
|
7349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
7350 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7351 else |
|
7352 case $MAGIC_CMD in |
|
7353 [\\/*] | ?:[\\/]*) |
|
7354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7355 ;; |
|
7356 *) |
|
7357 lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7360 for ac_dir in $ac_dummy; do |
|
7361 IFS="$lt_save_ifs" |
|
7362 test -z "$ac_dir" && ac_dir=. |
|
7363 if test -f $ac_dir/${ac_tool_prefix}file; then |
|
7364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
7365 if test -n "$file_magic_test_file"; then |
|
7366 case $deplibs_check_method in |
|
7367 "file_magic "*) |
|
7368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7371 $EGREP "$file_magic_regex" > /dev/null; then |
|
7372 : |
|
7373 else |
|
7374 cat <<EOF 1>&2 |
|
7375 |
|
7376 *** Warning: the command libtool uses to detect shared libraries, |
|
7377 *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7378 *** The result is that libtool may fail to recognize shared libraries |
|
7379 *** as such. This will affect the creation of libtool libraries that |
|
7380 *** depend on shared libraries, but programs linked with such libtool |
|
7381 *** libraries will work regardless of this problem. Nevertheless, you |
|
7382 *** may want to report the problem to your system manager and/or to |
|
7383 *** bug-libtool@gnu.org |
|
7384 |
|
7385 EOF |
|
7386 fi ;; |
|
7387 esac |
|
7388 fi |
|
7389 break |
|
7390 fi |
|
7391 done |
|
7392 IFS="$lt_save_ifs" |
|
7393 MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7394 ;; |
|
7395 esac |
|
7396 fi |
|
7397 |
|
7398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7399 if test -n "$MAGIC_CMD"; then |
|
7400 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
7401 echo "${ECHO_T}$MAGIC_CMD" >&6; } |
|
7402 else |
|
7403 { echo "$as_me:$LINENO: result: no" >&5 |
|
7404 echo "${ECHO_T}no" >&6; } |
|
7405 fi |
|
7406 |
|
7407 if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
7408 if test -n "$ac_tool_prefix"; then |
|
7409 { echo "$as_me:$LINENO: checking for file" >&5 |
|
7410 echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
|
7411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
7412 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7413 else |
|
7414 case $MAGIC_CMD in |
|
7415 [\\/*] | ?:[\\/]*) |
|
7416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7417 ;; |
|
7418 *) |
|
7419 lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7422 for ac_dir in $ac_dummy; do |
|
7423 IFS="$lt_save_ifs" |
|
7424 test -z "$ac_dir" && ac_dir=. |
|
7425 if test -f $ac_dir/file; then |
|
7426 lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
7427 if test -n "$file_magic_test_file"; then |
|
7428 case $deplibs_check_method in |
|
7429 "file_magic "*) |
|
7430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7433 $EGREP "$file_magic_regex" > /dev/null; then |
|
7434 : |
|
7435 else |
|
7436 cat <<EOF 1>&2 |
|
7437 |
|
7438 *** Warning: the command libtool uses to detect shared libraries, |
|
7439 *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7440 *** The result is that libtool may fail to recognize shared libraries |
|
7441 *** as such. This will affect the creation of libtool libraries that |
|
7442 *** depend on shared libraries, but programs linked with such libtool |
|
7443 *** libraries will work regardless of this problem. Nevertheless, you |
|
7444 *** may want to report the problem to your system manager and/or to |
|
7445 *** bug-libtool@gnu.org |
|
7446 |
|
7447 EOF |
|
7448 fi ;; |
|
7449 esac |
|
7450 fi |
|
7451 break |
|
7452 fi |
|
7453 done |
|
7454 IFS="$lt_save_ifs" |
|
7455 MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7456 ;; |
|
7457 esac |
|
7458 fi |
|
7459 |
|
7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7461 if test -n "$MAGIC_CMD"; then |
|
7462 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
7463 echo "${ECHO_T}$MAGIC_CMD" >&6; } |
|
7464 else |
|
7465 { echo "$as_me:$LINENO: result: no" >&5 |
|
7466 echo "${ECHO_T}no" >&6; } |
|
7467 fi |
|
7468 |
|
7469 else |
|
7470 MAGIC_CMD=: |
|
7471 fi |
|
7472 fi |
|
7473 |
|
7474 fi |
|
7475 ;; |
|
7476 esac |
|
7477 |
|
7478 |
|
7479 case $host_os in |
|
7480 rhapsody* | darwin*) |
|
7481 if test -n "$ac_tool_prefix"; then |
|
7482 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
|
7483 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
|
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7486 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
|
7487 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7488 else |
|
7489 if test -n "$DSYMUTIL"; then |
|
7490 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
|
7491 else |
|
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7493 for as_dir in $PATH |
|
7494 do |
|
7495 IFS=$as_save_IFS |
|
7496 test -z "$as_dir" && as_dir=. |
|
7497 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7499 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
|
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7501 break 2 |
|
7502 fi |
|
7503 done |
|
7504 done |
|
7505 IFS=$as_save_IFS |
|
7506 |
|
7507 fi |
|
7508 fi |
|
7509 DSYMUTIL=$ac_cv_prog_DSYMUTIL |
|
7510 if test -n "$DSYMUTIL"; then |
|
7511 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
|
7512 echo "${ECHO_T}$DSYMUTIL" >&6; } |
|
7513 else |
|
7514 { echo "$as_me:$LINENO: result: no" >&5 |
|
7515 echo "${ECHO_T}no" >&6; } |
|
7516 fi |
|
7517 |
|
7518 |
|
7519 fi |
|
7520 if test -z "$ac_cv_prog_DSYMUTIL"; then |
|
7521 ac_ct_DSYMUTIL=$DSYMUTIL |
|
7522 # Extract the first word of "dsymutil", so it can be a program name with args. |
|
7523 set dummy dsymutil; ac_word=$2 |
|
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7526 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
|
7527 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7528 else |
|
7529 if test -n "$ac_ct_DSYMUTIL"; then |
|
7530 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
|
7531 else |
|
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7533 for as_dir in $PATH |
|
7534 do |
|
7535 IFS=$as_save_IFS |
|
7536 test -z "$as_dir" && as_dir=. |
|
7537 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7539 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
|
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7541 break 2 |
|
7542 fi |
|
7543 done |
|
7544 done |
|
7545 IFS=$as_save_IFS |
|
7546 |
|
7547 fi |
|
7548 fi |
|
7549 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
|
7550 if test -n "$ac_ct_DSYMUTIL"; then |
|
7551 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
|
7552 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } |
|
7553 else |
|
7554 { echo "$as_me:$LINENO: result: no" >&5 |
|
7555 echo "${ECHO_T}no" >&6; } |
|
7556 fi |
|
7557 |
|
7558 if test "x$ac_ct_DSYMUTIL" = x; then |
|
7559 DSYMUTIL=":" |
|
7560 else |
|
7561 case $cross_compiling:$ac_tool_warned in |
|
7562 yes:) |
|
7563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
7564 whose name does not start with the host triplet. If you think this |
|
7565 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
7566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
7567 whose name does not start with the host triplet. If you think this |
|
7568 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
7569 ac_tool_warned=yes ;; |
|
7570 esac |
|
7571 DSYMUTIL=$ac_ct_DSYMUTIL |
|
7572 fi |
|
7573 else |
|
7574 DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
|
7575 fi |
|
7576 |
|
7577 if test -n "$ac_tool_prefix"; then |
|
7578 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
|
7579 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
|
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7582 if test "${ac_cv_prog_NMEDIT+set}" = set; then |
|
7583 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7584 else |
|
7585 if test -n "$NMEDIT"; then |
|
7586 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
|
7587 else |
|
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7589 for as_dir in $PATH |
|
7590 do |
|
7591 IFS=$as_save_IFS |
|
7592 test -z "$as_dir" && as_dir=. |
|
7593 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7595 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
|
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7597 break 2 |
|
7598 fi |
|
7599 done |
|
7600 done |
|
7601 IFS=$as_save_IFS |
|
7602 |
|
7603 fi |
|
7604 fi |
|
7605 NMEDIT=$ac_cv_prog_NMEDIT |
|
7606 if test -n "$NMEDIT"; then |
|
7607 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
|
7608 echo "${ECHO_T}$NMEDIT" >&6; } |
|
7609 else |
|
7610 { echo "$as_me:$LINENO: result: no" >&5 |
|
7611 echo "${ECHO_T}no" >&6; } |
|
7612 fi |
|
7613 |
|
7614 |
|
7615 fi |
|
7616 if test -z "$ac_cv_prog_NMEDIT"; then |
|
7617 ac_ct_NMEDIT=$NMEDIT |
|
7618 # Extract the first word of "nmedit", so it can be a program name with args. |
|
7619 set dummy nmedit; ac_word=$2 |
|
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
7622 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
|
7623 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7624 else |
|
7625 if test -n "$ac_ct_NMEDIT"; then |
|
7626 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
|
7627 else |
|
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7629 for as_dir in $PATH |
|
7630 do |
|
7631 IFS=$as_save_IFS |
|
7632 test -z "$as_dir" && as_dir=. |
|
7633 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7635 ac_cv_prog_ac_ct_NMEDIT="nmedit" |
|
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7637 break 2 |
|
7638 fi |
|
7639 done |
|
7640 done |
|
7641 IFS=$as_save_IFS |
|
7642 |
|
7643 fi |
|
7644 fi |
|
7645 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
|
7646 if test -n "$ac_ct_NMEDIT"; then |
|
7647 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
|
7648 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } |
|
7649 else |
|
7650 { echo "$as_me:$LINENO: result: no" >&5 |
|
7651 echo "${ECHO_T}no" >&6; } |
|
7652 fi |
|
7653 |
|
7654 if test "x$ac_ct_NMEDIT" = x; then |
|
7655 NMEDIT=":" |
|
7656 else |
|
7657 case $cross_compiling:$ac_tool_warned in |
|
7658 yes:) |
|
7659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
7660 whose name does not start with the host triplet. If you think this |
|
7661 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
7662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
7663 whose name does not start with the host triplet. If you think this |
|
7664 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
7665 ac_tool_warned=yes ;; |
|
7666 esac |
|
7667 NMEDIT=$ac_ct_NMEDIT |
|
7668 fi |
|
7669 else |
|
7670 NMEDIT="$ac_cv_prog_NMEDIT" |
|
7671 fi |
|
7672 |
|
7673 |
|
7674 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
|
7675 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } |
|
7676 if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
|
7677 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7678 else |
|
7679 lt_cv_apple_cc_single_mod=no |
|
7680 if test -z "${LT_MULTI_MODULE}"; then |
|
7681 # By default we will add the -single_module flag. You can override |
|
7682 # by either setting the environment variable LT_MULTI_MODULE |
|
7683 # non-empty at configure time, or by adding -multi_module to the |
|
7684 # link flags. |
|
7685 echo "int foo(void){return 1;}" > conftest.c |
|
7686 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
7687 -dynamiclib ${wl}-single_module conftest.c |
|
7688 if test -f libconftest.dylib; then |
|
7689 lt_cv_apple_cc_single_mod=yes |
|
7690 rm -rf libconftest.dylib* |
|
7691 fi |
|
7692 rm conftest.c |
|
7693 fi |
|
7694 fi |
|
7695 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
|
7696 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } |
|
7697 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
|
7698 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } |
|
7699 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
|
7700 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7701 else |
|
7702 lt_cv_ld_exported_symbols_list=no |
|
7703 save_LDFLAGS=$LDFLAGS |
|
7704 echo "_main" > conftest.sym |
|
7705 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
|
7706 cat >conftest.$ac_ext <<_ACEOF |
|
7707 /* confdefs.h. */ |
|
7708 _ACEOF |
|
7709 cat confdefs.h >>conftest.$ac_ext |
|
7710 cat >>conftest.$ac_ext <<_ACEOF |
|
7711 /* end confdefs.h. */ |
|
7712 |
|
7713 int |
|
7714 main () |
|
7715 { |
|
7716 |
|
7717 ; |
|
7718 return 0; |
|
7719 } |
|
7720 _ACEOF |
|
7721 rm -f conftest.$ac_objext conftest$ac_exeext |
|
7722 if { (ac_try="$ac_link" |
|
7723 case "(($ac_try" in |
|
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7725 *) ac_try_echo=$ac_try;; |
|
7726 esac |
|
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
7728 (eval "$ac_link") 2>conftest.er1 |
|
7729 ac_status=$? |
|
7730 grep -v '^ *+' conftest.er1 >conftest.err |
|
7731 rm -f conftest.er1 |
|
7732 cat conftest.err >&5 |
|
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7734 (exit $ac_status); } && { |
|
7735 test -z "$ac_c_werror_flag" || |
|
7736 test ! -s conftest.err |
|
7737 } && test -s conftest$ac_exeext && |
|
7738 $as_test_x conftest$ac_exeext; then |
|
7739 lt_cv_ld_exported_symbols_list=yes |
|
7740 else |
|
7741 echo "$as_me: failed program was:" >&5 |
|
7742 sed 's/^/| /' conftest.$ac_ext >&5 |
|
7743 |
|
7744 lt_cv_ld_exported_symbols_list=no |
|
7745 fi |
|
7746 |
|
7747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
7748 conftest$ac_exeext conftest.$ac_ext |
|
7749 LDFLAGS="$save_LDFLAGS" |
|
7750 |
|
7751 fi |
|
7752 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
|
7753 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } |
|
7754 case $host_os in |
|
7755 rhapsody* | darwin1.[0123]) |
|
7756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
|
7757 darwin1.*) |
|
7758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
7759 darwin*) |
|
7760 # if running on 10.5 or later, the deployment target defaults |
|
7761 # to the OS version, if on x86, and 10.4, the deployment |
|
7762 # target defaults to 10.4. Don't you love it? |
|
7763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
|
7764 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
|
7765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
7766 10.[012]*) |
|
7767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
7768 10.*) |
|
7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
7770 esac |
|
7771 ;; |
|
7772 esac |
|
7773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
|
7774 _lt_dar_single_mod='$single_module' |
|
7775 fi |
|
7776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
|
7777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
|
7778 else |
|
7779 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
|
7780 fi |
|
7781 if test "$DSYMUTIL" != ":"; then |
|
7782 _lt_dsymutil="~$DSYMUTIL \$lib || :" |
|
7783 else |
|
7784 _lt_dsymutil= |
|
7785 fi |
|
7786 ;; |
|
7787 esac |
|
7788 |
|
7789 |
|
7790 enable_dlopen=no |
|
7791 enable_win32_dll=yes |
|
7792 |
|
7793 # Check whether --enable-libtool-lock was given. |
|
7794 if test "${enable_libtool_lock+set}" = set; then |
|
7795 enableval=$enable_libtool_lock; |
|
7796 fi |
|
7797 |
|
7798 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
7799 |
|
7800 |
|
7801 # Check whether --with-pic was given. |
|
7802 if test "${with_pic+set}" = set; then |
|
7803 withval=$with_pic; pic_mode="$withval" |
|
7804 else |
|
7805 pic_mode=default |
|
7806 fi |
|
7807 |
|
7808 test -z "$pic_mode" && pic_mode=default |
|
7809 |
|
7810 # Check if we have a version mismatch between libtool.m4 and ltmain.sh. |
|
7811 # |
|
7812 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. |
|
7813 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually |
|
7814 # calls AC_LIBTOOL_CONFIG and creates libtool. |
|
7815 # |
|
7816 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 |
|
7817 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; } |
|
7818 if test "x$ltmain" = "x" ; then |
|
7819 { echo "$as_me:$LINENO: result: no" >&5 |
|
7820 echo "${ECHO_T}no" >&6; } |
|
7821 { { echo "$as_me:$LINENO: error: |
|
7822 |
|
7823 *** [Gentoo] sanity check failed! *** |
|
7824 *** \$ltmain is not defined, please check the patch for consistency! *** |
|
7825 " >&5 |
|
7826 echo "$as_me: error: |
|
7827 |
|
7828 *** [Gentoo] sanity check failed! *** |
|
7829 *** \$ltmain is not defined, please check the patch for consistency! *** |
|
7830 " >&2;} |
|
7831 { (exit 1); exit 1; }; } |
|
7832 fi |
|
7833 gentoo_lt_version="1.5.26" |
|
7834 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` |
|
7835 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then |
|
7836 { echo "$as_me:$LINENO: result: no" >&5 |
|
7837 echo "${ECHO_T}no" >&6; } |
|
7838 { { echo "$as_me:$LINENO: error: |
|
7839 |
|
7840 *** [Gentoo] sanity check failed! *** |
|
7841 *** libtool.m4 and ltmain.sh have a version mismatch! *** |
|
7842 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** |
|
7843 |
|
7844 Please run: |
|
7845 |
|
7846 libtoolize --copy --force |
|
7847 |
|
7848 if appropriate, please contact the maintainer of this |
|
7849 package (or your distribution) for help. |
|
7850 " >&5 |
|
7851 echo "$as_me: error: |
|
7852 |
|
7853 *** [Gentoo] sanity check failed! *** |
|
7854 *** libtool.m4 and ltmain.sh have a version mismatch! *** |
|
7855 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** |
|
7856 |
|
7857 Please run: |
|
7858 |
|
7859 libtoolize --copy --force |
|
7860 |
|
7861 if appropriate, please contact the maintainer of this |
|
7862 package (or your distribution) for help. |
|
7863 " >&2;} |
|
7864 { (exit 1); exit 1; }; } |
|
7865 else |
|
7866 { echo "$as_me:$LINENO: result: yes" >&5 |
|
7867 echo "${ECHO_T}yes" >&6; } |
|
7868 fi |
|
7869 |
|
7870 |
|
7871 # Use C for the default configuration in the libtool script |
|
7872 tagname= |
|
7873 lt_save_CC="$CC" |
|
7874 ac_ext=c |
|
7875 ac_cpp='$CPP $CPPFLAGS' |
|
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7879 |
|
7880 |
|
7881 # Source file extension for C test sources. |
|
7882 ac_ext=c |
|
7883 |
|
7884 # Object file extension for compiled C test sources. |
|
7885 objext=o |
|
7886 objext=$objext |
|
7887 |
|
7888 # Code to be used in simple compile tests |
|
7889 lt_simple_compile_test_code="int some_variable = 0;" |
|
7890 |
|
7891 # Code to be used in simple link tests |
|
7892 lt_simple_link_test_code='int main(){return(0);}' |
|
7893 |
|
7894 |
|
7895 # If no C compiler was specified, use CC. |
|
7896 LTCC=${LTCC-"$CC"} |
|
7897 |
|
7898 # If no C compiler flags were specified, use CFLAGS. |
|
7899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
7900 |
|
7901 # Allow CC to be a program name with arguments. |
|
7902 compiler=$CC |
|
7903 |
|
7904 |
|
7905 # save warnings/boilerplate of simple test code |
|
7906 ac_outfile=conftest.$ac_objext |
|
7907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
7908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7909 _lt_compiler_boilerplate=`cat conftest.err` |
|
7910 $rm conftest* |
|
7911 |
|
7912 ac_outfile=conftest.$ac_objext |
|
7913 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
7914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7915 _lt_linker_boilerplate=`cat conftest.err` |
|
7916 $rm -r conftest* |
|
7917 |
|
7918 |
|
7919 |
|
7920 lt_prog_compiler_no_builtin_flag= |
|
7921 |
|
7922 if test "$GCC" = yes; then |
|
7923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
7924 |
|
7925 |
|
7926 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
7927 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
|
7928 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
7929 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
7930 else |
|
7931 lt_cv_prog_compiler_rtti_exceptions=no |
|
7932 ac_outfile=conftest.$ac_objext |
|
7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7934 lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
7935 # Insert the option either (1) after the last *FLAGS variable, or |
|
7936 # (2) before a word containing "conftest.", or (3) at the end. |
|
7937 # Note that $ac_compile itself does not contain backslashes and begins |
|
7938 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7939 # The option is referenced via a variable to avoid confusing sed. |
|
7940 lt_compile=`echo "$ac_compile" | $SED \ |
|
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7943 -e 's:$: $lt_compiler_flag:'` |
|
7944 (eval echo "\"\$as_me:7944: $lt_compile\"" >&5) |
|
7945 (eval "$lt_compile" 2>conftest.err) |
|
7946 ac_status=$? |
|
7947 cat conftest.err >&5 |
|
7948 echo "$as_me:7948: \$? = $ac_status" >&5 |
|
7949 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
7950 # The compiler can only warn and ignore the option if not recognized |
|
7951 # So say no if there are warnings other than the usual output. |
|
7952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
7955 lt_cv_prog_compiler_rtti_exceptions=yes |
|
7956 fi |
|
7957 fi |
|
7958 $rm conftest* |
|
7959 |
|
7960 fi |
|
7961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
7962 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
7963 |
|
7964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
7965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
7966 else |
|
7967 : |
|
7968 fi |
|
7969 |
|
7970 fi |
|
7971 |
|
7972 lt_prog_compiler_wl= |
|
7973 lt_prog_compiler_pic= |
|
7974 lt_prog_compiler_static= |
|
7975 |
|
7976 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
7977 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
7978 |
|
7979 if test "$GCC" = yes; then |
|
7980 lt_prog_compiler_wl='-Wl,' |
|
7981 lt_prog_compiler_static='-static' |
|
7982 |
|
7983 case $host_os in |
|
7984 aix*) |
|
7985 # All AIX code is PIC. |
|
7986 if test "$host_cpu" = ia64; then |
|
7987 # AIX 5 now supports IA64 processor |
|
7988 lt_prog_compiler_static='-Bstatic' |
|
7989 fi |
|
7990 ;; |
|
7991 |
|
7992 amigaos*) |
|
7993 # FIXME: we need at least 68020 code to build shared libraries, but |
|
7994 # adding the `-m68020' flag to GCC prevents building anything better, |
|
7995 # like `-m68040'. |
|
7996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
7997 ;; |
|
7998 |
|
7999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
8000 # PIC is the default for these OSes. |
|
8001 ;; |
|
8002 |
|
8003 mingw* | cygwin* | pw32* | os2*) |
|
8004 # This hack is so that the source file can tell whether it is being |
|
8005 # built for inclusion in a dll (and should export symbols for example). |
|
8006 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
8007 # (--disable-auto-import) libraries |
|
8008 lt_prog_compiler_pic='-DDLL_EXPORT' |
|
8009 ;; |
|
8010 |
|
8011 darwin* | rhapsody*) |
|
8012 # PIC is the default on this platform |
|
8013 # Common symbols not allowed in MH_DYLIB files |
|
8014 lt_prog_compiler_pic='-fno-common' |
|
8015 ;; |
|
8016 |
|
8017 interix[3-9]*) |
|
8018 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
8019 # Instead, we relocate shared libraries at runtime. |
|
8020 ;; |
|
8021 |
|
8022 msdosdjgpp*) |
|
8023 # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
8024 # on systems that don't support them. |
|
8025 lt_prog_compiler_can_build_shared=no |
|
8026 enable_shared=no |
|
8027 ;; |
|
8028 |
|
8029 sysv4*MP*) |
|
8030 if test -d /usr/nec; then |
|
8031 lt_prog_compiler_pic=-Kconform_pic |
|
8032 fi |
|
8033 ;; |
|
8034 |
|
8035 hpux*) |
|
8036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
8037 # not for PA HP-UX. |
|
8038 case $host_cpu in |
|
8039 hppa*64*|ia64*) |
|
8040 # +Z the default |
|
8041 ;; |
|
8042 *) |
|
8043 lt_prog_compiler_pic='-fPIC' |
|
8044 ;; |
|
8045 esac |
|
8046 ;; |
|
8047 |
|
8048 *) |
|
8049 lt_prog_compiler_pic='-fPIC' |
|
8050 ;; |
|
8051 esac |
|
8052 else |
|
8053 # PORTME Check for flag to pass linker flags through the system compiler. |
|
8054 case $host_os in |
|
8055 aix*) |
|
8056 lt_prog_compiler_wl='-Wl,' |
|
8057 if test "$host_cpu" = ia64; then |
|
8058 # AIX 5 now supports IA64 processor |
|
8059 lt_prog_compiler_static='-Bstatic' |
|
8060 else |
|
8061 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
8062 fi |
|
8063 ;; |
|
8064 darwin*) |
|
8065 # PIC is the default on this platform |
|
8066 # Common symbols not allowed in MH_DYLIB files |
|
8067 case $cc_basename in |
|
8068 xlc*) |
|
8069 lt_prog_compiler_pic='-qnocommon' |
|
8070 lt_prog_compiler_wl='-Wl,' |
|
8071 ;; |
|
8072 esac |
|
8073 ;; |
|
8074 |
|
8075 mingw* | cygwin* | pw32* | os2*) |
|
8076 # This hack is so that the source file can tell whether it is being |
|
8077 # built for inclusion in a dll (and should export symbols for example). |
|
8078 lt_prog_compiler_pic='-DDLL_EXPORT' |
|
8079 ;; |
|
8080 |
|
8081 hpux9* | hpux10* | hpux11*) |
|
8082 lt_prog_compiler_wl='-Wl,' |
|
8083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
8084 # not for PA HP-UX. |
|
8085 case $host_cpu in |
|
8086 hppa*64*|ia64*) |
|
8087 # +Z the default |
|
8088 ;; |
|
8089 *) |
|
8090 lt_prog_compiler_pic='+Z' |
|
8091 ;; |
|
8092 esac |
|
8093 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
8094 lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
8095 ;; |
|
8096 |
|
8097 irix5* | irix6* | nonstopux*) |
|
8098 lt_prog_compiler_wl='-Wl,' |
|
8099 # PIC (with -KPIC) is the default. |
|
8100 lt_prog_compiler_static='-non_shared' |
|
8101 ;; |
|
8102 |
|
8103 newsos6) |
|
8104 lt_prog_compiler_pic='-KPIC' |
|
8105 lt_prog_compiler_static='-Bstatic' |
|
8106 ;; |
|
8107 |
|
8108 linux* | k*bsd*-gnu) |
|
8109 case $cc_basename in |
|
8110 icc* | ecc*) |
|
8111 lt_prog_compiler_wl='-Wl,' |
|
8112 lt_prog_compiler_pic='-KPIC' |
|
8113 lt_prog_compiler_static='-static' |
|
8114 ;; |
|
8115 pgcc* | pgf77* | pgf90* | pgf95*) |
|
8116 # Portland Group compilers (*not* the Pentium gcc compiler, |
|
8117 # which looks to be a dead project) |
|
8118 lt_prog_compiler_wl='-Wl,' |
|
8119 lt_prog_compiler_pic='-fpic' |
|
8120 lt_prog_compiler_static='-Bstatic' |
|
8121 ;; |
|
8122 ccc*) |
|
8123 lt_prog_compiler_wl='-Wl,' |
|
8124 # All Alpha code is PIC. |
|
8125 lt_prog_compiler_static='-non_shared' |
|
8126 ;; |
|
8127 *) |
|
8128 case `$CC -V 2>&1 | sed 5q` in |
|
8129 *Sun\ C*) |
|
8130 # Sun C 5.9 |
|
8131 lt_prog_compiler_pic='-KPIC' |
|
8132 lt_prog_compiler_static='-Bstatic' |
|
8133 lt_prog_compiler_wl='-Wl,' |
|
8134 ;; |
|
8135 *Sun\ F*) |
|
8136 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
8137 lt_prog_compiler_pic='-KPIC' |
|
8138 lt_prog_compiler_static='-Bstatic' |
|
8139 lt_prog_compiler_wl='' |
|
8140 ;; |
|
8141 esac |
|
8142 ;; |
|
8143 esac |
|
8144 ;; |
|
8145 |
|
8146 osf3* | osf4* | osf5*) |
|
8147 lt_prog_compiler_wl='-Wl,' |
|
8148 # All OSF/1 code is PIC. |
|
8149 lt_prog_compiler_static='-non_shared' |
|
8150 ;; |
|
8151 |
|
8152 rdos*) |
|
8153 lt_prog_compiler_static='-non_shared' |
|
8154 ;; |
|
8155 |
|
8156 solaris*) |
|
8157 lt_prog_compiler_pic='-KPIC' |
|
8158 lt_prog_compiler_static='-Bstatic' |
|
8159 case $cc_basename in |
|
8160 f77* | f90* | f95*) |
|
8161 lt_prog_compiler_wl='-Qoption ld ';; |
|
8162 *) |
|
8163 lt_prog_compiler_wl='-Wl,';; |
|
8164 esac |
|
8165 ;; |
|
8166 |
|
8167 sunos4*) |
|
8168 lt_prog_compiler_wl='-Qoption ld ' |
|
8169 lt_prog_compiler_pic='-PIC' |
|
8170 lt_prog_compiler_static='-Bstatic' |
|
8171 ;; |
|
8172 |
|
8173 sysv4 | sysv4.2uw2* | sysv4.3*) |
|
8174 lt_prog_compiler_wl='-Wl,' |
|
8175 lt_prog_compiler_pic='-KPIC' |
|
8176 lt_prog_compiler_static='-Bstatic' |
|
8177 ;; |
|
8178 |
|
8179 sysv4*MP*) |
|
8180 if test -d /usr/nec ;then |
|
8181 lt_prog_compiler_pic='-Kconform_pic' |
|
8182 lt_prog_compiler_static='-Bstatic' |
|
8183 fi |
|
8184 ;; |
|
8185 |
|
8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
8187 lt_prog_compiler_wl='-Wl,' |
|
8188 lt_prog_compiler_pic='-KPIC' |
|
8189 lt_prog_compiler_static='-Bstatic' |
|
8190 ;; |
|
8191 |
|
8192 unicos*) |
|
8193 lt_prog_compiler_wl='-Wl,' |
|
8194 lt_prog_compiler_can_build_shared=no |
|
8195 ;; |
|
8196 |
|
8197 uts4*) |
|
8198 lt_prog_compiler_pic='-pic' |
|
8199 lt_prog_compiler_static='-Bstatic' |
|
8200 ;; |
|
8201 |
|
8202 *) |
|
8203 lt_prog_compiler_can_build_shared=no |
|
8204 ;; |
|
8205 esac |
|
8206 fi |
|
8207 |
|
8208 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
8209 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
|
8210 |
|
8211 # |
|
8212 # Check to make sure the PIC flag actually works. |
|
8213 # |
|
8214 if test -n "$lt_prog_compiler_pic"; then |
|
8215 |
|
8216 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
8217 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
|
8218 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
|
8219 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8220 else |
|
8221 lt_cv_prog_compiler_pic_works=no |
|
8222 ac_outfile=conftest.$ac_objext |
|
8223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8224 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
8225 # Insert the option either (1) after the last *FLAGS variable, or |
|
8226 # (2) before a word containing "conftest.", or (3) at the end. |
|
8227 # Note that $ac_compile itself does not contain backslashes and begins |
|
8228 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8229 # The option is referenced via a variable to avoid confusing sed. |
|
8230 lt_compile=`echo "$ac_compile" | $SED \ |
|
8231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8233 -e 's:$: $lt_compiler_flag:'` |
|
8234 (eval echo "\"\$as_me:8234: $lt_compile\"" >&5) |
|
8235 (eval "$lt_compile" 2>conftest.err) |
|
8236 ac_status=$? |
|
8237 cat conftest.err >&5 |
|
8238 echo "$as_me:8238: \$? = $ac_status" >&5 |
|
8239 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
8240 # The compiler can only warn and ignore the option if not recognized |
|
8241 # So say no if there are warnings other than the usual output. |
|
8242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
8243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
8245 lt_cv_prog_compiler_pic_works=yes |
|
8246 fi |
|
8247 fi |
|
8248 $rm conftest* |
|
8249 |
|
8250 fi |
|
8251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
|
8252 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } |
|
8253 |
|
8254 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
|
8255 case $lt_prog_compiler_pic in |
|
8256 "" | " "*) ;; |
|
8257 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
8258 esac |
|
8259 else |
|
8260 lt_prog_compiler_pic= |
|
8261 lt_prog_compiler_can_build_shared=no |
|
8262 fi |
|
8263 |
|
8264 fi |
|
8265 case $host_os in |
|
8266 # For platforms which do not support PIC, -DPIC is meaningless: |
|
8267 *djgpp*) |
|
8268 lt_prog_compiler_pic= |
|
8269 ;; |
|
8270 *) |
|
8271 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
8272 ;; |
|
8273 esac |
|
8274 |
|
8275 # |
|
8276 # Check to make sure the static flag actually works. |
|
8277 # |
|
8278 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
8279 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
8280 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
8281 if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
|
8282 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8283 else |
|
8284 lt_cv_prog_compiler_static_works=no |
|
8285 save_LDFLAGS="$LDFLAGS" |
|
8286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
8287 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
8288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
8289 # The linker can only warn and ignore the option if not recognized |
|
8290 # So say no if there are warnings |
|
8291 if test -s conftest.err; then |
|
8292 # Append any errors to the config.log. |
|
8293 cat conftest.err 1>&5 |
|
8294 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8296 if diff conftest.exp conftest.er2 >/dev/null; then |
|
8297 lt_cv_prog_compiler_static_works=yes |
|
8298 fi |
|
8299 else |
|
8300 lt_cv_prog_compiler_static_works=yes |
|
8301 fi |
|
8302 fi |
|
8303 $rm -r conftest* |
|
8304 LDFLAGS="$save_LDFLAGS" |
|
8305 |
|
8306 fi |
|
8307 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
|
8308 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } |
|
8309 |
|
8310 if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
|
8311 : |
|
8312 else |
|
8313 lt_prog_compiler_static= |
|
8314 fi |
|
8315 |
|
8316 |
|
8317 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
8318 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
8319 if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
8320 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
8321 else |
|
8322 lt_cv_prog_compiler_c_o=no |
|
8323 $rm -r conftest 2>/dev/null |
|
8324 mkdir conftest |
|
8325 cd conftest |
|
8326 mkdir out |
|
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8328 |
|
8329 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
8330 # Insert the option either (1) after the last *FLAGS variable, or |
|
8331 # (2) before a word containing "conftest.", or (3) at the end. |
|
8332 # Note that $ac_compile itself does not contain backslashes and begins |
|
8333 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8334 lt_compile=`echo "$ac_compile" | $SED \ |
|
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8337 -e 's:$: $lt_compiler_flag:'` |
|
8338 (eval echo "\"\$as_me:8338: $lt_compile\"" >&5) |
|
8339 (eval "$lt_compile" 2>out/conftest.err) |
|
8340 ac_status=$? |
|
8341 cat out/conftest.err >&5 |
|
8342 echo "$as_me:8342: \$? = $ac_status" >&5 |
|
8343 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
8344 then |
|
8345 # The compiler can only warn and ignore the option if not recognized |
|
8346 # So say no if there are warnings |
|
8347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
8348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
8349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
8350 lt_cv_prog_compiler_c_o=yes |
|
8351 fi |
|
8352 fi |
|
8353 chmod u+w . 2>&5 |
|
8354 $rm conftest* |
|
8355 # SGI C++ compiler will create directory out/ii_files/ for |
|
8356 # template instantiation |
|
8357 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
8358 $rm out/* && rmdir out |
|
8359 cd .. |
|
8360 rmdir conftest |
|
8361 $rm conftest* |
|
8362 |
|
8363 fi |
|
8364 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
8365 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
|
8366 |
|
8367 |
|
8368 hard_links="nottested" |
|
8369 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
8370 # do not overwrite the value of need_locks provided by the user |
|
8371 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
8372 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
8373 hard_links=yes |
|
8374 $rm conftest* |
|
8375 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
8376 touch conftest.a |
|
8377 ln conftest.a conftest.b 2>&5 || hard_links=no |
|
8378 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
8379 { echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
8380 echo "${ECHO_T}$hard_links" >&6; } |
|
8381 if test "$hard_links" = no; then |
|
8382 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
8383 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
8384 need_locks=warn |
|
8385 fi |
|
8386 else |
|
8387 need_locks=no |
|
8388 fi |
|
8389 |
|
8390 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
8391 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
8392 |
|
8393 runpath_var= |
|
8394 allow_undefined_flag= |
|
8395 enable_shared_with_static_runtimes=no |
|
8396 archive_cmds= |
|
8397 archive_expsym_cmds= |
|
8398 old_archive_From_new_cmds= |
|
8399 old_archive_from_expsyms_cmds= |
|
8400 export_dynamic_flag_spec= |
|
8401 whole_archive_flag_spec= |
|
8402 thread_safe_flag_spec= |
|
8403 hardcode_libdir_flag_spec= |
|
8404 hardcode_libdir_flag_spec_ld= |
|
8405 hardcode_libdir_separator= |
|
8406 hardcode_direct=no |
|
8407 hardcode_minus_L=no |
|
8408 hardcode_shlibpath_var=unsupported |
|
8409 link_all_deplibs=unknown |
|
8410 hardcode_automatic=no |
|
8411 module_cmds= |
|
8412 module_expsym_cmds= |
|
8413 always_export_symbols=no |
|
8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
8415 # include_expsyms should be a list of space-separated symbols to be *always* |
|
8416 # included in the symbol list |
|
8417 include_expsyms= |
|
8418 # exclude_expsyms can be an extended regexp of symbols to exclude |
|
8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
8421 # as well as any symbol that contains `d'. |
|
8422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
8424 # platforms (ab)use it in PIC code, but their linkers get confused if |
|
8425 # the symbol is explicitly referenced. Since portable code cannot |
|
8426 # rely on this symbol name, it's probably fine to never include it in |
|
8427 # preloaded symbol tables. |
|
8428 # Exclude shared library initialization/finalization symbols. |
|
8429 extract_expsyms_cmds= |
|
8430 # Just being paranoid about ensuring that cc_basename is set. |
|
8431 for cc_temp in $compiler""; do |
|
8432 case $cc_temp in |
|
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
8435 \-*) ;; |
|
8436 *) break;; |
|
8437 esac |
|
8438 done |
|
8439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
8440 |
|
8441 case $host_os in |
|
8442 cygwin* | mingw* | pw32*) |
|
8443 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
8444 # When not using gcc, we currently assume that we are using |
|
8445 # Microsoft Visual C++. |
|
8446 if test "$GCC" != yes; then |
|
8447 with_gnu_ld=no |
|
8448 fi |
|
8449 ;; |
|
8450 interix*) |
|
8451 # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
8452 with_gnu_ld=yes |
|
8453 ;; |
|
8454 openbsd*) |
|
8455 with_gnu_ld=no |
|
8456 ;; |
|
8457 esac |
|
8458 |
|
8459 ld_shlibs=yes |
|
8460 if test "$with_gnu_ld" = yes; then |
|
8461 # If archive_cmds runs LD, not CC, wlarc should be empty |
|
8462 wlarc='${wl}' |
|
8463 |
|
8464 # Set some defaults for GNU ld with shared library support. These |
|
8465 # are reset later if shared libraries are not supported. Putting them |
|
8466 # here allows them to be overridden if necessary. |
|
8467 runpath_var=LD_RUN_PATH |
|
8468 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
8469 export_dynamic_flag_spec='${wl}--export-dynamic' |
|
8470 # ancient GNU ld didn't support --whole-archive et. al. |
|
8471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
8472 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
8473 else |
|
8474 whole_archive_flag_spec= |
|
8475 fi |
|
8476 supports_anon_versioning=no |
|
8477 case `$LD -v 2>/dev/null` in |
|
8478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
8479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
8480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
8481 *\ 2.11.*) ;; # other 2.11 versions |
|
8482 *) supports_anon_versioning=yes ;; |
|
8483 esac |
|
8484 |
|
8485 # See if GNU ld supports shared libraries. |
|
8486 case $host_os in |
|
8487 aix[3-9]*) |
|
8488 # On AIX/PPC, the GNU linker is very broken |
|
8489 if test "$host_cpu" != ia64; then |
|
8490 ld_shlibs=no |
|
8491 cat <<EOF 1>&2 |
|
8492 |
|
8493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
8494 *** to be unable to reliably create shared libraries on AIX. |
|
8495 *** Therefore, libtool is disabling shared libraries support. If you |
|
8496 *** really care for shared libraries, you may want to modify your PATH |
|
8497 *** so that a non-GNU linker is found, and then restart. |
|
8498 |
|
8499 EOF |
|
8500 fi |
|
8501 ;; |
|
8502 |
|
8503 amigaos*) |
|
8504 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)' |
|
8505 hardcode_libdir_flag_spec='-L$libdir' |
|
8506 hardcode_minus_L=yes |
|
8507 |
|
8508 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
8509 # that the semantics of dynamic libraries on AmigaOS, at least up |
|
8510 # to version 4, is to share data among multiple programs linked |
|
8511 # with the same dynamic library. Since this doesn't match the |
|
8512 # behavior of shared libraries on other platforms, we can't use |
|
8513 # them. |
|
8514 ld_shlibs=no |
|
8515 ;; |
|
8516 |
|
8517 beos*) |
|
8518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8519 allow_undefined_flag=unsupported |
|
8520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
8521 # support --undefined. This deserves some investigation. FIXME |
|
8522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8523 else |
|
8524 ld_shlibs=no |
|
8525 fi |
|
8526 ;; |
|
8527 |
|
8528 cygwin* | mingw* | pw32*) |
|
8529 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
8530 # as there is no search path for DLLs. |
|
8531 hardcode_libdir_flag_spec='-L$libdir' |
|
8532 allow_undefined_flag=unsupported |
|
8533 always_export_symbols=no |
|
8534 enable_shared_with_static_runtimes=yes |
|
8535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
8536 |
|
8537 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8539 # If the export-symbols file already is a .def file (1st line |
|
8540 # is EXPORTS), use it as is; otherwise, prepend... |
|
8541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
8542 cp $export_symbols $output_objdir/$soname.def; |
|
8543 else |
|
8544 echo EXPORTS > $output_objdir/$soname.def; |
|
8545 cat $export_symbols >> $output_objdir/$soname.def; |
|
8546 fi~ |
|
8547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8548 else |
|
8549 ld_shlibs=no |
|
8550 fi |
|
8551 ;; |
|
8552 |
|
8553 interix[3-9]*) |
|
8554 hardcode_direct=no |
|
8555 hardcode_shlibpath_var=no |
|
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8557 export_dynamic_flag_spec='${wl}-E' |
|
8558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
8559 # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
8560 # default) and relocated if they conflict, which is a slow very memory |
|
8561 # consuming and fragmenting process. To avoid this, we pick a random, |
|
8562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
8563 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
8564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
8565 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' |
|
8566 ;; |
|
8567 |
|
8568 gnu* | linux* | k*bsd*-gnu) |
|
8569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8570 tmp_addflag= |
|
8571 case $cc_basename,$host_cpu in |
|
8572 pgcc*) # Portland Group C compiler |
|
8573 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' |
|
8574 tmp_addflag=' $pic_flag' |
|
8575 ;; |
|
8576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
8577 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' |
|
8578 tmp_addflag=' $pic_flag -Mnomain' ;; |
|
8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
8580 tmp_addflag=' -i_dynamic' ;; |
|
8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
8582 tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
8583 ifc* | ifort*) # Intel Fortran compiler |
|
8584 tmp_addflag=' -nofor_main' ;; |
|
8585 esac |
|
8586 case `$CC -V 2>&1 | sed 5q` in |
|
8587 *Sun\ C*) # Sun C 5.9 |
|
8588 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8589 tmp_sharedflag='-G' ;; |
|
8590 *Sun\ F*) # Sun Fortran 8.3 |
|
8591 tmp_sharedflag='-G' ;; |
|
8592 *) |
|
8593 tmp_sharedflag='-shared' ;; |
|
8594 esac |
|
8595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8596 |
|
8597 if test $supports_anon_versioning = yes; then |
|
8598 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
8599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8600 $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
8602 fi |
|
8603 else |
|
8604 ld_shlibs=no |
|
8605 fi |
|
8606 ;; |
|
8607 |
|
8608 netbsd*) |
|
8609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
8610 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
8611 wlarc= |
|
8612 else |
|
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8615 fi |
|
8616 ;; |
|
8617 |
|
8618 solaris*) |
|
8619 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
8620 ld_shlibs=no |
|
8621 cat <<EOF 1>&2 |
|
8622 |
|
8623 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
8624 *** create shared libraries on Solaris systems. Therefore, libtool |
|
8625 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
8626 *** binutils to release 2.9.1 or newer. Another option is to modify |
|
8627 *** your PATH or compiler configuration so that the native linker is |
|
8628 *** used, and then restart. |
|
8629 |
|
8630 EOF |
|
8631 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8634 else |
|
8635 ld_shlibs=no |
|
8636 fi |
|
8637 ;; |
|
8638 |
|
8639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
8640 case `$LD -v 2>&1` in |
|
8641 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
8642 ld_shlibs=no |
|
8643 cat <<_LT_EOF 1>&2 |
|
8644 |
|
8645 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
8646 *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
8647 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
8648 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
8649 *** your PATH or compiler configuration so that the native linker is |
|
8650 *** used, and then restart. |
|
8651 |
|
8652 _LT_EOF |
|
8653 ;; |
|
8654 *) |
|
8655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8656 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
8658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
8659 else |
|
8660 ld_shlibs=no |
|
8661 fi |
|
8662 ;; |
|
8663 esac |
|
8664 ;; |
|
8665 |
|
8666 sunos4*) |
|
8667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8668 wlarc= |
|
8669 hardcode_direct=yes |
|
8670 hardcode_shlibpath_var=no |
|
8671 ;; |
|
8672 |
|
8673 *) |
|
8674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8677 else |
|
8678 ld_shlibs=no |
|
8679 fi |
|
8680 ;; |
|
8681 esac |
|
8682 |
|
8683 if test "$ld_shlibs" = no; then |
|
8684 runpath_var= |
|
8685 hardcode_libdir_flag_spec= |
|
8686 export_dynamic_flag_spec= |
|
8687 whole_archive_flag_spec= |
|
8688 fi |
|
8689 else |
|
8690 # PORTME fill in a description of your system's linker (not GNU ld) |
|
8691 case $host_os in |
|
8692 aix3*) |
|
8693 allow_undefined_flag=unsupported |
|
8694 always_export_symbols=yes |
|
8695 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' |
|
8696 # Note: this linker hardcodes the directories in LIBPATH if there |
|
8697 # are no directories specified by -L. |
|
8698 hardcode_minus_L=yes |
|
8699 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
8700 # Neither direct hardcoding nor static linking is supported with a |
|
8701 # broken collect2. |
|
8702 hardcode_direct=unsupported |
|
8703 fi |
|
8704 ;; |
|
8705 |
|
8706 aix[4-9]*) |
|
8707 if test "$host_cpu" = ia64; then |
|
8708 # On IA64, the linker does run time linking by default, so we don't |
|
8709 # have to do anything special. |
|
8710 aix_use_runtimelinking=no |
|
8711 exp_sym_flag='-Bexport' |
|
8712 no_entry_flag="" |
|
8713 else |
|
8714 # If we're using GNU nm, then we don't want the "-C" option. |
|
8715 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
8716 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
8717 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' |
|
8718 else |
|
8719 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' |
|
8720 fi |
|
8721 aix_use_runtimelinking=no |
|
8722 |
|
8723 # Test if we are trying to use run time linking or normal |
|
8724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
8725 # need to do runtime linking. |
|
8726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
8727 for ld_flag in $LDFLAGS; do |
|
8728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
8729 aix_use_runtimelinking=yes |
|
8730 break |
|
8731 fi |
|
8732 done |
|
8733 ;; |
|
8734 esac |
|
8735 |
|
8736 exp_sym_flag='-bexport' |
|
8737 no_entry_flag='-bnoentry' |
|
8738 fi |
|
8739 |
|
8740 # When large executables or shared objects are built, AIX ld can |
|
8741 # have problems creating the table of contents. If linking a library |
|
8742 # or program results in "error TOC overflow" add -mminimal-toc to |
|
8743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
8744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
8745 |
|
8746 archive_cmds='' |
|
8747 hardcode_direct=yes |
|
8748 hardcode_libdir_separator=':' |
|
8749 link_all_deplibs=yes |
|
8750 |
|
8751 if test "$GCC" = yes; then |
|
8752 case $host_os in aix4.[012]|aix4.[012].*) |
|
8753 # We only want to do this on AIX 4.2 and lower, the check |
|
8754 # below for broken collect2 doesn't work under 4.3+ |
|
8755 collect2name=`${CC} -print-prog-name=collect2` |
|
8756 if test -f "$collect2name" && \ |
|
8757 strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
8758 then |
|
8759 # We have reworked collect2 |
|
8760 : |
|
8761 else |
|
8762 # We have old collect2 |
|
8763 hardcode_direct=unsupported |
|
8764 # It fails to find uninstalled libraries when the uninstalled |
|
8765 # path is not listed in the libpath. Setting hardcode_minus_L |
|
8766 # to unsupported forces relinking |
|
8767 hardcode_minus_L=yes |
|
8768 hardcode_libdir_flag_spec='-L$libdir' |
|
8769 hardcode_libdir_separator= |
|
8770 fi |
|
8771 ;; |
|
8772 esac |
|
8773 shared_flag='-shared' |
|
8774 if test "$aix_use_runtimelinking" = yes; then |
|
8775 shared_flag="$shared_flag "'${wl}-G' |
|
8776 fi |
|
8777 else |
|
8778 # not using gcc |
|
8779 if test "$host_cpu" = ia64; then |
|
8780 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
8781 # chokes on -Wl,-G. The following line is correct: |
|
8782 shared_flag='-G' |
|
8783 else |
|
8784 if test "$aix_use_runtimelinking" = yes; then |
|
8785 shared_flag='${wl}-G' |
|
8786 else |
|
8787 shared_flag='${wl}-bM:SRE' |
|
8788 fi |
|
8789 fi |
|
8790 fi |
|
8791 |
|
8792 # It seems that -bexpall does not export symbols beginning with |
|
8793 # underscore (_), so it is better to generate a list of symbols to export. |
|
8794 always_export_symbols=yes |
|
8795 if test "$aix_use_runtimelinking" = yes; then |
|
8796 # Warning - without using the other runtime loading flags (-brtl), |
|
8797 # -berok will link without error, but may produce a broken library. |
|
8798 allow_undefined_flag='-berok' |
|
8799 # Determine the default libpath from the value encoded in an empty executable. |
|
8800 cat >conftest.$ac_ext <<_ACEOF |
|
8801 /* confdefs.h. */ |
|
8802 _ACEOF |
|
8803 cat confdefs.h >>conftest.$ac_ext |
|
8804 cat >>conftest.$ac_ext <<_ACEOF |
|
8805 /* end confdefs.h. */ |
|
8806 |
|
8807 int |
|
8808 main () |
|
8809 { |
|
8810 |
|
8811 ; |
|
8812 return 0; |
|
8813 } |
|
8814 _ACEOF |
|
8815 rm -f conftest.$ac_objext conftest$ac_exeext |
|
8816 if { (ac_try="$ac_link" |
|
8817 case "(($ac_try" in |
|
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
8819 *) ac_try_echo=$ac_try;; |
|
8820 esac |
|
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
8822 (eval "$ac_link") 2>conftest.er1 |
|
8823 ac_status=$? |
|
8824 grep -v '^ *+' conftest.er1 >conftest.err |
|
8825 rm -f conftest.er1 |
|
8826 cat conftest.err >&5 |
|
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8828 (exit $ac_status); } && { |
|
8829 test -z "$ac_c_werror_flag" || |
|
8830 test ! -s conftest.err |
|
8831 } && test -s conftest$ac_exeext && |
|
8832 $as_test_x conftest$ac_exeext; then |
|
8833 |
|
8834 lt_aix_libpath_sed=' |
|
8835 /Import File Strings/,/^$/ { |
|
8836 /^0/ { |
|
8837 s/^0 *\(.*\)$/\1/ |
|
8838 p |
|
8839 } |
|
8840 }' |
|
8841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8842 # Check for a 64-bit object if we didn't find anything. |
|
8843 if test -z "$aix_libpath"; then |
|
8844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8845 fi |
|
8846 else |
|
8847 echo "$as_me: failed program was:" >&5 |
|
8848 sed 's/^/| /' conftest.$ac_ext >&5 |
|
8849 |
|
8850 |
|
8851 fi |
|
8852 |
|
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
8854 conftest$ac_exeext conftest.$ac_ext |
|
8855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8856 |
|
8857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8858 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" |
|
8859 else |
|
8860 if test "$host_cpu" = ia64; then |
|
8861 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
8862 allow_undefined_flag="-z nodefs" |
|
8863 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" |
|
8864 else |
|
8865 # Determine the default libpath from the value encoded in an empty executable. |
|
8866 cat >conftest.$ac_ext <<_ACEOF |
|
8867 /* confdefs.h. */ |
|
8868 _ACEOF |
|
8869 cat confdefs.h >>conftest.$ac_ext |
|
8870 cat >>conftest.$ac_ext <<_ACEOF |
|
8871 /* end confdefs.h. */ |
|
8872 |
|
8873 int |
|
8874 main () |
|
8875 { |
|
8876 |
|
8877 ; |
|
8878 return 0; |
|
8879 } |
|
8880 _ACEOF |
|
8881 rm -f conftest.$ac_objext conftest$ac_exeext |
|
8882 if { (ac_try="$ac_link" |
|
8883 case "(($ac_try" in |
|
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
8885 *) ac_try_echo=$ac_try;; |
|
8886 esac |
|
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
8888 (eval "$ac_link") 2>conftest.er1 |
|
8889 ac_status=$? |
|
8890 grep -v '^ *+' conftest.er1 >conftest.err |
|
8891 rm -f conftest.er1 |
|
8892 cat conftest.err >&5 |
|
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8894 (exit $ac_status); } && { |
|
8895 test -z "$ac_c_werror_flag" || |
|
8896 test ! -s conftest.err |
|
8897 } && test -s conftest$ac_exeext && |
|
8898 $as_test_x conftest$ac_exeext; then |
|
8899 |
|
8900 lt_aix_libpath_sed=' |
|
8901 /Import File Strings/,/^$/ { |
|
8902 /^0/ { |
|
8903 s/^0 *\(.*\)$/\1/ |
|
8904 p |
|
8905 } |
|
8906 }' |
|
8907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8908 # Check for a 64-bit object if we didn't find anything. |
|
8909 if test -z "$aix_libpath"; then |
|
8910 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8911 fi |
|
8912 else |
|
8913 echo "$as_me: failed program was:" >&5 |
|
8914 sed 's/^/| /' conftest.$ac_ext >&5 |
|
8915 |
|
8916 |
|
8917 fi |
|
8918 |
|
8919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
8920 conftest$ac_exeext conftest.$ac_ext |
|
8921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8922 |
|
8923 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8924 # Warning - without using the other run time loading flags, |
|
8925 # -berok will link without error, but may produce a broken library. |
|
8926 no_undefined_flag=' ${wl}-bernotok' |
|
8927 allow_undefined_flag=' ${wl}-berok' |
|
8928 # Exported symbols can be pulled into shared objects from archives |
|
8929 whole_archive_flag_spec='$convenience' |
|
8930 archive_cmds_need_lc=yes |
|
8931 # This is similar to how AIX traditionally builds its shared libraries. |
|
8932 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' |
|
8933 fi |
|
8934 fi |
|
8935 ;; |
|
8936 |
|
8937 amigaos*) |
|
8938 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)' |
|
8939 hardcode_libdir_flag_spec='-L$libdir' |
|
8940 hardcode_minus_L=yes |
|
8941 # see comment about different semantics on the GNU ld section |
|
8942 ld_shlibs=no |
|
8943 ;; |
|
8944 |
|
8945 bsdi[45]*) |
|
8946 export_dynamic_flag_spec=-rdynamic |
|
8947 ;; |
|
8948 |
|
8949 cygwin* | mingw* | pw32*) |
|
8950 # When not using gcc, we currently assume that we are using |
|
8951 # Microsoft Visual C++. |
|
8952 # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
8953 # no search path for DLLs. |
|
8954 hardcode_libdir_flag_spec=' ' |
|
8955 allow_undefined_flag=unsupported |
|
8956 # Tell ltmain to make .lib files, not .a files. |
|
8957 libext=lib |
|
8958 # Tell ltmain to make .dll files, not .so files. |
|
8959 shrext_cmds=".dll" |
|
8960 # FIXME: Setting linknames here is a bad hack. |
|
8961 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
8962 # The linker will automatically build a .lib file if we build a DLL. |
|
8963 old_archive_From_new_cmds='true' |
|
8964 # FIXME: Should let the user specify the lib program. |
|
8965 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
8966 fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
8967 enable_shared_with_static_runtimes=yes |
|
8968 ;; |
|
8969 |
|
8970 darwin* | rhapsody*) |
|
8971 case $host_os in |
|
8972 rhapsody* | darwin1.[012]) |
|
8973 allow_undefined_flag='${wl}-undefined ${wl}suppress' |
|
8974 ;; |
|
8975 *) # Darwin 1.3 on |
|
8976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
8977 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
8978 else |
|
8979 case ${MACOSX_DEPLOYMENT_TARGET} in |
|
8980 10.[012]) |
|
8981 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
8982 ;; |
|
8983 10.*) |
|
8984 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
|
8985 ;; |
|
8986 esac |
|
8987 fi |
|
8988 ;; |
|
8989 esac |
|
8990 archive_cmds_need_lc=no |
|
8991 hardcode_direct=no |
|
8992 hardcode_automatic=yes |
|
8993 hardcode_shlibpath_var=unsupported |
|
8994 whole_archive_flag_spec='' |
|
8995 link_all_deplibs=yes |
|
8996 if test "$GCC" = yes ; then |
|
8997 output_verbose_link_cmd='echo' |
|
8998 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
8999 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
9000 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
|
9001 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
|
9002 else |
|
9003 case $cc_basename in |
|
9004 xlc*) |
|
9005 output_verbose_link_cmd='echo' |
|
9006 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
|
9007 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
9008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
9009 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
9010 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}' |
|
9011 ;; |
|
9012 *) |
|
9013 ld_shlibs=no |
|
9014 ;; |
|
9015 esac |
|
9016 fi |
|
9017 ;; |
|
9018 |
|
9019 dgux*) |
|
9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9021 hardcode_libdir_flag_spec='-L$libdir' |
|
9022 hardcode_shlibpath_var=no |
|
9023 ;; |
|
9024 |
|
9025 freebsd1*) |
|
9026 ld_shlibs=no |
|
9027 ;; |
|
9028 |
|
9029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
9030 # support. Future versions do this automatically, but an explicit c++rt0.o |
|
9031 # does not break anything, and helps significantly (at the cost of a little |
|
9032 # extra space). |
|
9033 freebsd2.2*) |
|
9034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
9035 hardcode_libdir_flag_spec='-R$libdir' |
|
9036 hardcode_direct=yes |
|
9037 hardcode_shlibpath_var=no |
|
9038 ;; |
|
9039 |
|
9040 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
9041 freebsd2*) |
|
9042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9043 hardcode_direct=yes |
|
9044 hardcode_minus_L=yes |
|
9045 hardcode_shlibpath_var=no |
|
9046 ;; |
|
9047 |
|
9048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
9049 freebsd* | dragonfly*) |
|
9050 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
9051 hardcode_libdir_flag_spec='-R$libdir' |
|
9052 hardcode_direct=yes |
|
9053 hardcode_shlibpath_var=no |
|
9054 ;; |
|
9055 |
|
9056 hpux9*) |
|
9057 if test "$GCC" = yes; then |
|
9058 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' |
|
9059 else |
|
9060 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' |
|
9061 fi |
|
9062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9063 hardcode_libdir_separator=: |
|
9064 hardcode_direct=yes |
|
9065 |
|
9066 # hardcode_minus_L: Not really in the search PATH, |
|
9067 # but as the default location of the library. |
|
9068 hardcode_minus_L=yes |
|
9069 export_dynamic_flag_spec='${wl}-E' |
|
9070 ;; |
|
9071 |
|
9072 hpux10*) |
|
9073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
9074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9075 else |
|
9076 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
9077 fi |
|
9078 if test "$with_gnu_ld" = no; then |
|
9079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9080 hardcode_libdir_separator=: |
|
9081 |
|
9082 hardcode_direct=yes |
|
9083 export_dynamic_flag_spec='${wl}-E' |
|
9084 |
|
9085 # hardcode_minus_L: Not really in the search PATH, |
|
9086 # but as the default location of the library. |
|
9087 hardcode_minus_L=yes |
|
9088 fi |
|
9089 ;; |
|
9090 |
|
9091 hpux11*) |
|
9092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
9093 case $host_cpu in |
|
9094 hppa*64*) |
|
9095 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9096 ;; |
|
9097 ia64*) |
|
9098 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9099 ;; |
|
9100 *) |
|
9101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9102 ;; |
|
9103 esac |
|
9104 else |
|
9105 case $host_cpu in |
|
9106 hppa*64*) |
|
9107 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9108 ;; |
|
9109 ia64*) |
|
9110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9111 ;; |
|
9112 *) |
|
9113 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9114 ;; |
|
9115 esac |
|
9116 fi |
|
9117 if test "$with_gnu_ld" = no; then |
|
9118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9119 hardcode_libdir_separator=: |
|
9120 |
|
9121 case $host_cpu in |
|
9122 hppa*64*|ia64*) |
|
9123 hardcode_libdir_flag_spec_ld='+b $libdir' |
|
9124 hardcode_direct=no |
|
9125 hardcode_shlibpath_var=no |
|
9126 ;; |
|
9127 *) |
|
9128 hardcode_direct=yes |
|
9129 export_dynamic_flag_spec='${wl}-E' |
|
9130 |
|
9131 # hardcode_minus_L: Not really in the search PATH, |
|
9132 # but as the default location of the library. |
|
9133 hardcode_minus_L=yes |
|
9134 ;; |
|
9135 esac |
|
9136 fi |
|
9137 ;; |
|
9138 |
|
9139 irix5* | irix6* | nonstopux*) |
|
9140 if test "$GCC" = yes; then |
|
9141 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' |
|
9142 else |
|
9143 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' |
|
9144 hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
9145 fi |
|
9146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9147 hardcode_libdir_separator=: |
|
9148 link_all_deplibs=yes |
|
9149 ;; |
|
9150 |
|
9151 netbsd*) |
|
9152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
9154 else |
|
9155 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
9156 fi |
|
9157 hardcode_libdir_flag_spec='-R$libdir' |
|
9158 hardcode_direct=yes |
|
9159 hardcode_shlibpath_var=no |
|
9160 ;; |
|
9161 |
|
9162 newsos6) |
|
9163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9164 hardcode_direct=yes |
|
9165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9166 hardcode_libdir_separator=: |
|
9167 hardcode_shlibpath_var=no |
|
9168 ;; |
|
9169 |
|
9170 openbsd*) |
|
9171 if test -f /usr/libexec/ld.so; then |
|
9172 hardcode_direct=yes |
|
9173 hardcode_shlibpath_var=no |
|
9174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
9177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9178 export_dynamic_flag_spec='${wl}-E' |
|
9179 else |
|
9180 case $host_os in |
|
9181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
9182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9183 hardcode_libdir_flag_spec='-R$libdir' |
|
9184 ;; |
|
9185 *) |
|
9186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9188 ;; |
|
9189 esac |
|
9190 fi |
|
9191 else |
|
9192 ld_shlibs=no |
|
9193 fi |
|
9194 ;; |
|
9195 |
|
9196 os2*) |
|
9197 hardcode_libdir_flag_spec='-L$libdir' |
|
9198 hardcode_minus_L=yes |
|
9199 allow_undefined_flag=unsupported |
|
9200 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' |
|
9201 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
9202 ;; |
|
9203 |
|
9204 osf3*) |
|
9205 if test "$GCC" = yes; then |
|
9206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
9207 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' |
|
9208 else |
|
9209 allow_undefined_flag=' -expect_unresolved \*' |
|
9210 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' |
|
9211 fi |
|
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9213 hardcode_libdir_separator=: |
|
9214 ;; |
|
9215 |
|
9216 osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
9217 if test "$GCC" = yes; then |
|
9218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
9219 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' |
|
9220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9221 else |
|
9222 allow_undefined_flag=' -expect_unresolved \*' |
|
9223 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' |
|
9224 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
9225 $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' |
|
9226 |
|
9227 # Both c and cxx compiler support -rpath directly |
|
9228 hardcode_libdir_flag_spec='-rpath $libdir' |
|
9229 fi |
|
9230 hardcode_libdir_separator=: |
|
9231 ;; |
|
9232 |
|
9233 solaris*) |
|
9234 no_undefined_flag=' -z text' |
|
9235 if test "$GCC" = yes; then |
|
9236 wlarc='${wl}' |
|
9237 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9238 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
9239 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
9240 else |
|
9241 wlarc='' |
|
9242 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9243 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
9244 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
9245 fi |
|
9246 hardcode_libdir_flag_spec='-R$libdir' |
|
9247 hardcode_shlibpath_var=no |
|
9248 case $host_os in |
|
9249 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
9250 *) |
|
9251 # The compiler driver will combine and reorder linker options, |
|
9252 # but understands `-z linker_flag'. GCC discards it without `$wl', |
|
9253 # but is careful enough not to reorder. |
|
9254 # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
9255 if test "$GCC" = yes; then |
|
9256 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
9257 else |
|
9258 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
|
9259 fi |
|
9260 ;; |
|
9261 esac |
|
9262 link_all_deplibs=yes |
|
9263 ;; |
|
9264 |
|
9265 sunos4*) |
|
9266 if test "x$host_vendor" = xsequent; then |
|
9267 # Use $CC to link under sequent, because it throws in some extra .o |
|
9268 # files that make .init and .fini sections work. |
|
9269 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9270 else |
|
9271 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
9272 fi |
|
9273 hardcode_libdir_flag_spec='-L$libdir' |
|
9274 hardcode_direct=yes |
|
9275 hardcode_minus_L=yes |
|
9276 hardcode_shlibpath_var=no |
|
9277 ;; |
|
9278 |
|
9279 sysv4) |
|
9280 case $host_vendor in |
|
9281 sni) |
|
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9283 hardcode_direct=yes # is this really true??? |
|
9284 ;; |
|
9285 siemens) |
|
9286 ## LD is ld it makes a PLAMLIB |
|
9287 ## CC just makes a GrossModule. |
|
9288 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
9289 reload_cmds='$CC -r -o $output$reload_objs' |
|
9290 hardcode_direct=no |
|
9291 ;; |
|
9292 motorola) |
|
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9294 hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
9295 ;; |
|
9296 esac |
|
9297 runpath_var='LD_RUN_PATH' |
|
9298 hardcode_shlibpath_var=no |
|
9299 ;; |
|
9300 |
|
9301 sysv4.3*) |
|
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9303 hardcode_shlibpath_var=no |
|
9304 export_dynamic_flag_spec='-Bexport' |
|
9305 ;; |
|
9306 |
|
9307 sysv4*MP*) |
|
9308 if test -d /usr/nec; then |
|
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9310 hardcode_shlibpath_var=no |
|
9311 runpath_var=LD_RUN_PATH |
|
9312 hardcode_runpath_var=yes |
|
9313 ld_shlibs=yes |
|
9314 fi |
|
9315 ;; |
|
9316 |
|
9317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
9318 no_undefined_flag='${wl}-z,text' |
|
9319 archive_cmds_need_lc=no |
|
9320 hardcode_shlibpath_var=no |
|
9321 runpath_var='LD_RUN_PATH' |
|
9322 |
|
9323 if test "$GCC" = yes; then |
|
9324 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9325 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9326 else |
|
9327 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9328 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9329 fi |
|
9330 ;; |
|
9331 |
|
9332 sysv5* | sco3.2v5* | sco5v6*) |
|
9333 # Note: We can NOT use -z defs as we might desire, because we do not |
|
9334 # link with -lc, and that would cause any symbols used from libc to |
|
9335 # always be unresolved, which means just about no library would |
|
9336 # ever link correctly. If we're not using GNU ld we use -z text |
|
9337 # though, which does catch some bad symbols but isn't as heavy-handed |
|
9338 # as -z defs. |
|
9339 no_undefined_flag='${wl}-z,text' |
|
9340 allow_undefined_flag='${wl}-z,nodefs' |
|
9341 archive_cmds_need_lc=no |
|
9342 hardcode_shlibpath_var=no |
|
9343 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
9344 hardcode_libdir_separator=':' |
|
9345 link_all_deplibs=yes |
|
9346 export_dynamic_flag_spec='${wl}-Bexport' |
|
9347 runpath_var='LD_RUN_PATH' |
|
9348 |
|
9349 if test "$GCC" = yes; then |
|
9350 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9352 else |
|
9353 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9355 fi |
|
9356 ;; |
|
9357 |
|
9358 uts4*) |
|
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9360 hardcode_libdir_flag_spec='-L$libdir' |
|
9361 hardcode_shlibpath_var=no |
|
9362 ;; |
|
9363 |
|
9364 *) |
|
9365 ld_shlibs=no |
|
9366 ;; |
|
9367 esac |
|
9368 fi |
|
9369 |
|
9370 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
9371 echo "${ECHO_T}$ld_shlibs" >&6; } |
|
9372 test "$ld_shlibs" = no && can_build_shared=no |
|
9373 |
|
9374 # |
|
9375 # Do we need to explicitly link libc? |
|
9376 # |
|
9377 case "x$archive_cmds_need_lc" in |
|
9378 x|xyes) |
|
9379 # Assume -lc should be added |
|
9380 archive_cmds_need_lc=yes |
|
9381 |
|
9382 if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
9383 case $archive_cmds in |
|
9384 *'~'*) |
|
9385 # FIXME: we may have to deal with multi-command sequences. |
|
9386 ;; |
|
9387 '$CC '*) |
|
9388 # Test whether the compiler implicitly links with -lc since on some |
|
9389 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
9390 # to ld, don't add -lc before -lgcc. |
|
9391 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
9392 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
9393 $rm conftest* |
|
9394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9395 |
|
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
9397 (eval $ac_compile) 2>&5 |
|
9398 ac_status=$? |
|
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9400 (exit $ac_status); } 2>conftest.err; then |
|
9401 soname=conftest |
|
9402 lib=conftest |
|
9403 libobjs=conftest.$ac_objext |
|
9404 deplibs= |
|
9405 wl=$lt_prog_compiler_wl |
|
9406 pic_flag=$lt_prog_compiler_pic |
|
9407 compiler_flags=-v |
|
9408 linker_flags=-v |
|
9409 verstring= |
|
9410 output_objdir=. |
|
9411 libname=conftest |
|
9412 lt_save_allow_undefined_flag=$allow_undefined_flag |
|
9413 allow_undefined_flag= |
|
9414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
9415 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
9416 ac_status=$? |
|
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9418 (exit $ac_status); } |
|
9419 then |
|
9420 archive_cmds_need_lc=no |
|
9421 else |
|
9422 archive_cmds_need_lc=yes |
|
9423 fi |
|
9424 allow_undefined_flag=$lt_save_allow_undefined_flag |
|
9425 else |
|
9426 cat conftest.err 1>&5 |
|
9427 fi |
|
9428 $rm conftest* |
|
9429 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
9430 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
|
9431 ;; |
|
9432 esac |
|
9433 fi |
|
9434 ;; |
|
9435 esac |
|
9436 |
|
9437 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
9438 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
9439 library_names_spec= |
|
9440 libname_spec='lib$name' |
|
9441 soname_spec= |
|
9442 shrext_cmds=".so" |
|
9443 postinstall_cmds= |
|
9444 postuninstall_cmds= |
|
9445 finish_cmds= |
|
9446 finish_eval= |
|
9447 shlibpath_var= |
|
9448 shlibpath_overrides_runpath=unknown |
|
9449 version_type=none |
|
9450 dynamic_linker="$host_os ld.so" |
|
9451 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
9452 |
|
9453 if test "$GCC" = yes; then |
|
9454 case $host_os in |
|
9455 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
|
9456 *) lt_awk_arg="/^libraries:/" ;; |
|
9457 esac |
|
9458 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
9459 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
|
9460 # if the path contains ";" then we assume it to be the separator |
|
9461 # otherwise default to the standard path separator (i.e. ":") - it is |
|
9462 # assumed that no part of a normal pathname contains ";" but that should |
|
9463 # okay in the real world where ";" in dirpaths is itself problematic. |
|
9464 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
|
9465 else |
|
9466 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9467 fi |
|
9468 # Ok, now we have the path, separated by spaces, we can step through it |
|
9469 # and add multilib dir if necessary. |
|
9470 lt_tmp_lt_search_path_spec= |
|
9471 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
|
9472 for lt_sys_path in $lt_search_path_spec; do |
|
9473 if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
|
9474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
|
9475 else |
|
9476 test -d "$lt_sys_path" && \ |
|
9477 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
|
9478 fi |
|
9479 done |
|
9480 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
|
9481 BEGIN {RS=" "; FS="/|\n";} { |
|
9482 lt_foo=""; |
|
9483 lt_count=0; |
|
9484 for (lt_i = NF; lt_i > 0; lt_i--) { |
|
9485 if ($lt_i != "" && $lt_i != ".") { |
|
9486 if ($lt_i == "..") { |
|
9487 lt_count++; |
|
9488 } else { |
|
9489 if (lt_count == 0) { |
|
9490 lt_foo="/" $lt_i lt_foo; |
|
9491 } else { |
|
9492 lt_count--; |
|
9493 } |
|
9494 } |
|
9495 } |
|
9496 } |
|
9497 if (lt_foo != "") { lt_freq[lt_foo]++; } |
|
9498 if (lt_freq[lt_foo] == 1) { print lt_foo; } |
|
9499 }'` |
|
9500 sys_lib_search_path_spec=`echo $lt_search_path_spec` |
|
9501 else |
|
9502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
9503 fi |
|
9504 need_lib_prefix=unknown |
|
9505 hardcode_into_libs=no |
|
9506 |
|
9507 # when you set need_version to no, make sure it does not cause -set_version |
|
9508 # flags to be left without arguments |
|
9509 need_version=unknown |
|
9510 |
|
9511 case $host_os in |
|
9512 aix3*) |
|
9513 version_type=linux |
|
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
9515 shlibpath_var=LIBPATH |
|
9516 |
|
9517 # AIX 3 has no versioning support, so we append a major version to the name. |
|
9518 soname_spec='${libname}${release}${shared_ext}$major' |
|
9519 ;; |
|
9520 |
|
9521 aix[4-9]*) |
|
9522 version_type=linux |
|
9523 need_lib_prefix=no |
|
9524 need_version=no |
|
9525 hardcode_into_libs=yes |
|
9526 if test "$host_cpu" = ia64; then |
|
9527 # AIX 5 supports IA64 |
|
9528 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
9529 shlibpath_var=LD_LIBRARY_PATH |
|
9530 else |
|
9531 # With GCC up to 2.95.x, collect2 would create an import file |
|
9532 # for dependence libraries. The import file would start with |
|
9533 # the line `#! .'. This would cause the generated library to |
|
9534 # depend on `.', always an invalid library. This was fixed in |
|
9535 # development snapshots of GCC prior to 3.0. |
|
9536 case $host_os in |
|
9537 aix4 | aix4.[01] | aix4.[01].*) |
|
9538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
9539 echo ' yes ' |
|
9540 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
9541 : |
|
9542 else |
|
9543 can_build_shared=no |
|
9544 fi |
|
9545 ;; |
|
9546 esac |
|
9547 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
9548 # soname into executable. Probably we can add versioning support to |
|
9549 # collect2, so additional links can be useful in future. |
|
9550 if test "$aix_use_runtimelinking" = yes; then |
|
9551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
9552 # instead of lib<name>.a to let people know that these are not |
|
9553 # typical AIX shared libraries. |
|
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9555 else |
|
9556 # We preserve .a as extension for shared libraries through AIX4.2 |
|
9557 # and later when we are not doing run time linking. |
|
9558 library_names_spec='${libname}${release}.a $libname.a' |
|
9559 soname_spec='${libname}${release}${shared_ext}$major' |
|
9560 fi |
|
9561 shlibpath_var=LIBPATH |
|
9562 fi |
|
9563 ;; |
|
9564 |
|
9565 amigaos*) |
|
9566 library_names_spec='$libname.ixlibrary $libname.a' |
|
9567 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
9568 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' |
|
9569 ;; |
|
9570 |
|
9571 beos*) |
|
9572 library_names_spec='${libname}${shared_ext}' |
|
9573 dynamic_linker="$host_os ld.so" |
|
9574 shlibpath_var=LIBRARY_PATH |
|
9575 ;; |
|
9576 |
|
9577 bsdi[45]*) |
|
9578 version_type=linux |
|
9579 need_version=no |
|
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9581 soname_spec='${libname}${release}${shared_ext}$major' |
|
9582 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
9583 shlibpath_var=LD_LIBRARY_PATH |
|
9584 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
9585 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
9586 # the default ld.so.conf also contains /usr/contrib/lib and |
|
9587 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
9588 # libtool to hard-code these into programs |
|
9589 ;; |
|
9590 |
|
9591 cygwin* | mingw* | pw32*) |
|
9592 version_type=windows |
|
9593 shrext_cmds=".dll" |
|
9594 need_version=no |
|
9595 need_lib_prefix=no |
|
9596 |
|
9597 case $GCC,$host_os in |
|
9598 yes,cygwin* | yes,mingw* | yes,pw32*) |
|
9599 library_names_spec='$libname.dll.a' |
|
9600 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
9601 postinstall_cmds='base_file=`basename \${file}`~ |
|
9602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
9603 dldir=$destdir/`dirname \$dlpath`~ |
|
9604 test -d \$dldir || mkdir -p \$dldir~ |
|
9605 $install_prog $dir/$dlname \$dldir/$dlname~ |
|
9606 chmod a+x \$dldir/$dlname' |
|
9607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
9608 dlpath=$dir/\$dldll~ |
|
9609 $rm \$dlpath' |
|
9610 shlibpath_overrides_runpath=yes |
|
9611 |
|
9612 case $host_os in |
|
9613 cygwin*) |
|
9614 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
9615 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9616 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
9617 ;; |
|
9618 mingw*) |
|
9619 # MinGW DLLs use traditional 'lib' prefix |
|
9620 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9621 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
9622 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
9623 # It is most probably a Windows format PATH printed by |
|
9624 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
9625 # path with ; separators, and with drive letters. We can handle the |
|
9626 # drive letters (cygwin fileutils understands them), so leave them, |
|
9627 # especially as we might pass files found there to a mingw objdump, |
|
9628 # which wouldn't understand a cygwinified path. Ahh. |
|
9629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
9630 else |
|
9631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9632 fi |
|
9633 ;; |
|
9634 pw32*) |
|
9635 # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
9636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9637 ;; |
|
9638 esac |
|
9639 ;; |
|
9640 |
|
9641 *) |
|
9642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
9643 ;; |
|
9644 esac |
|
9645 dynamic_linker='Win32 ld.exe' |
|
9646 # FIXME: first we should search . and the directory the executable is in |
|
9647 shlibpath_var=PATH |
|
9648 ;; |
|
9649 |
|
9650 darwin* | rhapsody*) |
|
9651 dynamic_linker="$host_os dyld" |
|
9652 version_type=darwin |
|
9653 need_lib_prefix=no |
|
9654 need_version=no |
|
9655 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
9656 soname_spec='${libname}${release}${major}$shared_ext' |
|
9657 shlibpath_overrides_runpath=yes |
|
9658 shlibpath_var=DYLD_LIBRARY_PATH |
|
9659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
9660 |
|
9661 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
|
9662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
9663 ;; |
|
9664 |
|
9665 dgux*) |
|
9666 version_type=linux |
|
9667 need_lib_prefix=no |
|
9668 need_version=no |
|
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
9670 soname_spec='${libname}${release}${shared_ext}$major' |
|
9671 shlibpath_var=LD_LIBRARY_PATH |
|
9672 ;; |
|
9673 |
|
9674 freebsd1*) |
|
9675 dynamic_linker=no |
|
9676 ;; |
|
9677 |
|
9678 freebsd* | dragonfly*) |
|
9679 # DragonFly does not have aout. When/if they implement a new |
|
9680 # versioning mechanism, adjust this. |
|
9681 if test -x /usr/bin/objformat; then |
|
9682 objformat=`/usr/bin/objformat` |
|
9683 else |
|
9684 case $host_os in |
|
9685 freebsd[123]*) objformat=aout ;; |
|
9686 *) objformat=elf ;; |
|
9687 esac |
|
9688 fi |
|
9689 # Handle Gentoo/FreeBSD as it was Linux |
|
9690 case $host_vendor in |
|
9691 gentoo) |
|
9692 version_type=linux ;; |
|
9693 *) |
|
9694 version_type=freebsd-$objformat ;; |
|
9695 esac |
|
9696 |
|
9697 case $version_type in |
|
9698 freebsd-elf*) |
|
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9700 need_version=no |
|
9701 need_lib_prefix=no |
|
9702 ;; |
|
9703 freebsd-*) |
|
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
9705 need_version=yes |
|
9706 ;; |
|
9707 linux) |
|
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9709 soname_spec='${libname}${release}${shared_ext}$major' |
|
9710 need_lib_prefix=no |
|
9711 need_version=no |
|
9712 ;; |
|
9713 esac |
|
9714 shlibpath_var=LD_LIBRARY_PATH |
|
9715 case $host_os in |
|
9716 freebsd2*) |
|
9717 shlibpath_overrides_runpath=yes |
|
9718 ;; |
|
9719 freebsd3.[01]* | freebsdelf3.[01]*) |
|
9720 shlibpath_overrides_runpath=yes |
|
9721 hardcode_into_libs=yes |
|
9722 ;; |
|
9723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
9724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
9725 shlibpath_overrides_runpath=no |
|
9726 hardcode_into_libs=yes |
|
9727 ;; |
|
9728 *) # from 4.6 on, and DragonFly |
|
9729 shlibpath_overrides_runpath=yes |
|
9730 hardcode_into_libs=yes |
|
9731 ;; |
|
9732 esac |
|
9733 ;; |
|
9734 |
|
9735 gnu*) |
|
9736 version_type=linux |
|
9737 need_lib_prefix=no |
|
9738 need_version=no |
|
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
9740 soname_spec='${libname}${release}${shared_ext}$major' |
|
9741 shlibpath_var=LD_LIBRARY_PATH |
|
9742 hardcode_into_libs=yes |
|
9743 ;; |
|
9744 |
|
9745 hpux9* | hpux10* | hpux11*) |
|
9746 # Give a soname corresponding to the major version so that dld.sl refuses to |
|
9747 # link against other versions. |
|
9748 version_type=sunos |
|
9749 need_lib_prefix=no |
|
9750 need_version=no |
|
9751 case $host_cpu in |
|
9752 ia64*) |
|
9753 shrext_cmds='.so' |
|
9754 hardcode_into_libs=yes |
|
9755 dynamic_linker="$host_os dld.so" |
|
9756 shlibpath_var=LD_LIBRARY_PATH |
|
9757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9759 soname_spec='${libname}${release}${shared_ext}$major' |
|
9760 if test "X$HPUX_IA64_MODE" = X32; then |
|
9761 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
9762 else |
|
9763 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
9764 fi |
|
9765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9766 ;; |
|
9767 hppa*64*) |
|
9768 shrext_cmds='.sl' |
|
9769 hardcode_into_libs=yes |
|
9770 dynamic_linker="$host_os dld.sl" |
|
9771 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
9772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9774 soname_spec='${libname}${release}${shared_ext}$major' |
|
9775 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
9776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9777 ;; |
|
9778 *) |
|
9779 shrext_cmds='.sl' |
|
9780 dynamic_linker="$host_os dld.sl" |
|
9781 shlibpath_var=SHLIB_PATH |
|
9782 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9784 soname_spec='${libname}${release}${shared_ext}$major' |
|
9785 ;; |
|
9786 esac |
|
9787 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
9788 postinstall_cmds='chmod 555 $lib' |
|
9789 ;; |
|
9790 |
|
9791 interix[3-9]*) |
|
9792 version_type=linux |
|
9793 need_lib_prefix=no |
|
9794 need_version=no |
|
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9796 soname_spec='${libname}${release}${shared_ext}$major' |
|
9797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
9798 shlibpath_var=LD_LIBRARY_PATH |
|
9799 shlibpath_overrides_runpath=no |
|
9800 hardcode_into_libs=yes |
|
9801 ;; |
|
9802 |
|
9803 irix5* | irix6* | nonstopux*) |
|
9804 case $host_os in |
|
9805 nonstopux*) version_type=nonstopux ;; |
|
9806 *) |
|
9807 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
9808 version_type=linux |
|
9809 else |
|
9810 version_type=irix |
|
9811 fi ;; |
|
9812 esac |
|
9813 need_lib_prefix=no |
|
9814 need_version=no |
|
9815 soname_spec='${libname}${release}${shared_ext}$major' |
|
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9817 case $host_os in |
|
9818 irix5* | nonstopux*) |
|
9819 libsuff= shlibsuff= |
|
9820 ;; |
|
9821 *) |
|
9822 case $LD in # libtool.m4 will add one of these switches to LD |
|
9823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
9824 libsuff= shlibsuff= libmagic=32-bit;; |
|
9825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
9826 libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
9827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
9828 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
9829 *) libsuff= shlibsuff= libmagic=never-match;; |
|
9830 esac |
|
9831 ;; |
|
9832 esac |
|
9833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
9834 shlibpath_overrides_runpath=no |
|
9835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
9836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
9837 hardcode_into_libs=yes |
|
9838 ;; |
|
9839 |
|
9840 # No shared lib support for Linux oldld, aout, or coff. |
|
9841 linux*oldld* | linux*aout* | linux*coff*) |
|
9842 dynamic_linker=no |
|
9843 ;; |
|
9844 |
|
9845 # This must be Linux ELF. |
|
9846 linux* | k*bsd*-gnu) |
|
9847 version_type=linux |
|
9848 need_lib_prefix=no |
|
9849 need_version=no |
|
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9851 soname_spec='${libname}${release}${shared_ext}$major' |
|
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
9853 shlibpath_var=LD_LIBRARY_PATH |
|
9854 shlibpath_overrides_runpath=no |
|
9855 # This implies no fast_install, which is unacceptable. |
|
9856 # Some rework will be needed to allow for fast_install |
|
9857 # before this can be enabled. |
|
9858 hardcode_into_libs=yes |
|
9859 |
|
9860 # Append ld.so.conf contents to the search path |
|
9861 if test -f /etc/ld.so.conf; then |
|
9862 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
9863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
9864 fi |
|
9865 |
|
9866 # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
9867 # powerpc, because MkLinux only supported shared libraries with the |
|
9868 # GNU dynamic linker. Since this was broken with cross compilers, |
|
9869 # most powerpc-linux boxes support dynamic linking these days and |
|
9870 # people can always --disable-shared, the test was removed, and we |
|
9871 # assume the GNU/Linux dynamic linker is in use. |
|
9872 dynamic_linker='GNU/Linux ld.so' |
|
9873 ;; |
|
9874 |
|
9875 netbsd*) |
|
9876 version_type=sunos |
|
9877 need_lib_prefix=no |
|
9878 need_version=no |
|
9879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9882 dynamic_linker='NetBSD (a.out) ld.so' |
|
9883 else |
|
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9885 soname_spec='${libname}${release}${shared_ext}$major' |
|
9886 dynamic_linker='NetBSD ld.elf_so' |
|
9887 fi |
|
9888 shlibpath_var=LD_LIBRARY_PATH |
|
9889 shlibpath_overrides_runpath=yes |
|
9890 hardcode_into_libs=yes |
|
9891 ;; |
|
9892 |
|
9893 newsos6) |
|
9894 version_type=linux |
|
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9896 shlibpath_var=LD_LIBRARY_PATH |
|
9897 shlibpath_overrides_runpath=yes |
|
9898 ;; |
|
9899 |
|
9900 nto-qnx*) |
|
9901 version_type=linux |
|
9902 need_lib_prefix=no |
|
9903 need_version=no |
|
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9905 soname_spec='${libname}${release}${shared_ext}$major' |
|
9906 shlibpath_var=LD_LIBRARY_PATH |
|
9907 shlibpath_overrides_runpath=yes |
|
9908 ;; |
|
9909 |
|
9910 openbsd*) |
|
9911 version_type=sunos |
|
9912 sys_lib_dlsearch_path_spec="/usr/lib" |
|
9913 need_lib_prefix=no |
|
9914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
9915 case $host_os in |
|
9916 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
9917 *) need_version=no ;; |
|
9918 esac |
|
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9921 shlibpath_var=LD_LIBRARY_PATH |
|
9922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9923 case $host_os in |
|
9924 openbsd2.[89] | openbsd2.[89].*) |
|
9925 shlibpath_overrides_runpath=no |
|
9926 ;; |
|
9927 *) |
|
9928 shlibpath_overrides_runpath=yes |
|
9929 ;; |
|
9930 esac |
|
9931 else |
|
9932 shlibpath_overrides_runpath=yes |
|
9933 fi |
|
9934 ;; |
|
9935 |
|
9936 os2*) |
|
9937 libname_spec='$name' |
|
9938 shrext_cmds=".dll" |
|
9939 need_lib_prefix=no |
|
9940 library_names_spec='$libname${shared_ext} $libname.a' |
|
9941 dynamic_linker='OS/2 ld.exe' |
|
9942 shlibpath_var=LIBPATH |
|
9943 ;; |
|
9944 |
|
9945 osf3* | osf4* | osf5*) |
|
9946 version_type=osf |
|
9947 need_lib_prefix=no |
|
9948 need_version=no |
|
9949 soname_spec='${libname}${release}${shared_ext}$major' |
|
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9951 shlibpath_var=LD_LIBRARY_PATH |
|
9952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
9953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
9954 ;; |
|
9955 |
|
9956 rdos*) |
|
9957 dynamic_linker=no |
|
9958 ;; |
|
9959 |
|
9960 solaris*) |
|
9961 version_type=linux |
|
9962 need_lib_prefix=no |
|
9963 need_version=no |
|
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9965 soname_spec='${libname}${release}${shared_ext}$major' |
|
9966 shlibpath_var=LD_LIBRARY_PATH |
|
9967 shlibpath_overrides_runpath=yes |
|
9968 hardcode_into_libs=yes |
|
9969 # ldd complains unless libraries are executable |
|
9970 postinstall_cmds='chmod +x $lib' |
|
9971 ;; |
|
9972 |
|
9973 sunos4*) |
|
9974 version_type=sunos |
|
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
9977 shlibpath_var=LD_LIBRARY_PATH |
|
9978 shlibpath_overrides_runpath=yes |
|
9979 if test "$with_gnu_ld" = yes; then |
|
9980 need_lib_prefix=no |
|
9981 fi |
|
9982 need_version=yes |
|
9983 ;; |
|
9984 |
|
9985 sysv4 | sysv4.3*) |
|
9986 version_type=linux |
|
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9988 soname_spec='${libname}${release}${shared_ext}$major' |
|
9989 shlibpath_var=LD_LIBRARY_PATH |
|
9990 case $host_vendor in |
|
9991 sni) |
|
9992 shlibpath_overrides_runpath=no |
|
9993 need_lib_prefix=no |
|
9994 export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
9995 runpath_var=LD_RUN_PATH |
|
9996 ;; |
|
9997 siemens) |
|
9998 need_lib_prefix=no |
|
9999 ;; |
|
10000 motorola) |
|
10001 need_lib_prefix=no |
|
10002 need_version=no |
|
10003 shlibpath_overrides_runpath=no |
|
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
10005 ;; |
|
10006 esac |
|
10007 ;; |
|
10008 |
|
10009 sysv4*MP*) |
|
10010 if test -d /usr/nec ;then |
|
10011 version_type=linux |
|
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
10013 soname_spec='$libname${shared_ext}.$major' |
|
10014 shlibpath_var=LD_LIBRARY_PATH |
|
10015 fi |
|
10016 ;; |
|
10017 |
|
10018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
10019 version_type=freebsd-elf |
|
10020 need_lib_prefix=no |
|
10021 need_version=no |
|
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10023 soname_spec='${libname}${release}${shared_ext}$major' |
|
10024 shlibpath_var=LD_LIBRARY_PATH |
|
10025 hardcode_into_libs=yes |
|
10026 if test "$with_gnu_ld" = yes; then |
|
10027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
10028 shlibpath_overrides_runpath=no |
|
10029 else |
|
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
10031 shlibpath_overrides_runpath=yes |
|
10032 case $host_os in |
|
10033 sco3.2v5*) |
|
10034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
10035 ;; |
|
10036 esac |
|
10037 fi |
|
10038 sys_lib_dlsearch_path_spec='/usr/lib' |
|
10039 ;; |
|
10040 |
|
10041 uts4*) |
|
10042 version_type=linux |
|
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10044 soname_spec='${libname}${release}${shared_ext}$major' |
|
10045 shlibpath_var=LD_LIBRARY_PATH |
|
10046 ;; |
|
10047 |
|
10048 *) |
|
10049 dynamic_linker=no |
|
10050 ;; |
|
10051 esac |
|
10052 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
10053 echo "${ECHO_T}$dynamic_linker" >&6; } |
|
10054 test "$dynamic_linker" = no && can_build_shared=no |
|
10055 |
|
10056 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
10057 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10058 else |
|
10059 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
|
10060 fi |
|
10061 |
|
10062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
10063 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
10064 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10065 else |
|
10066 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
|
10067 fi |
|
10068 |
|
10069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
10070 |
|
10071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
10072 if test "$GCC" = yes; then |
|
10073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
10074 fi |
|
10075 |
|
10076 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
10077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
10078 hardcode_action= |
|
10079 if test -n "$hardcode_libdir_flag_spec" || \ |
|
10080 test -n "$runpath_var" || \ |
|
10081 test "X$hardcode_automatic" = "Xyes" ; then |
|
10082 |
|
10083 # We can hardcode non-existant directories. |
|
10084 if test "$hardcode_direct" != no && |
|
10085 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
10086 # have to relink, otherwise we might link with an installed library |
|
10087 # when we should be linking with a yet-to-be-installed one |
|
10088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
10089 test "$hardcode_minus_L" != no; then |
|
10090 # Linking always hardcodes the temporary library directory. |
|
10091 hardcode_action=relink |
|
10092 else |
|
10093 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
10094 hardcode_action=immediate |
|
10095 fi |
|
10096 else |
|
10097 # We cannot hardcode anything, or else we can only hardcode existing |
|
10098 # directories. |
|
10099 hardcode_action=unsupported |
|
10100 fi |
|
10101 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
10102 echo "${ECHO_T}$hardcode_action" >&6; } |
|
10103 |
|
10104 if test "$hardcode_action" = relink; then |
|
10105 # Fast installation is not supported |
|
10106 enable_fast_install=no |
|
10107 elif test "$shlibpath_overrides_runpath" = yes || |
|
10108 test "$enable_shared" = no; then |
|
10109 # Fast installation is not necessary |
|
10110 enable_fast_install=needless |
|
10111 fi |
|
10112 |
|
10113 striplib= |
|
10114 old_striplib= |
|
10115 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
10116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
|
10117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
10118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
10119 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
10120 { echo "$as_me:$LINENO: result: yes" >&5 |
|
10121 echo "${ECHO_T}yes" >&6; } |
|
10122 else |
|
10123 # FIXME - insert some real tests, host_os isn't really good enough |
|
10124 case $host_os in |
|
10125 darwin*) |
|
10126 if test -n "$STRIP" ; then |
|
10127 striplib="$STRIP -x" |
|
10128 old_striplib="$STRIP -S" |
|
10129 { echo "$as_me:$LINENO: result: yes" >&5 |
|
10130 echo "${ECHO_T}yes" >&6; } |
|
10131 else |
|
10132 { echo "$as_me:$LINENO: result: no" >&5 |
|
10133 echo "${ECHO_T}no" >&6; } |
|
10134 fi |
|
10135 ;; |
|
10136 *) |
|
10137 { echo "$as_me:$LINENO: result: no" >&5 |
|
10138 echo "${ECHO_T}no" >&6; } |
|
10139 ;; |
|
10140 esac |
|
10141 fi |
|
10142 |
|
10143 if test "x$enable_dlopen" != xyes; then |
|
10144 enable_dlopen=unknown |
|
10145 enable_dlopen_self=unknown |
|
10146 enable_dlopen_self_static=unknown |
|
10147 else |
|
10148 lt_cv_dlopen=no |
|
10149 lt_cv_dlopen_libs= |
|
10150 |
|
10151 case $host_os in |
|
10152 beos*) |
|
10153 lt_cv_dlopen="load_add_on" |
|
10154 lt_cv_dlopen_libs= |
|
10155 lt_cv_dlopen_self=yes |
|
10156 ;; |
|
10157 |
|
10158 mingw* | pw32*) |
|
10159 lt_cv_dlopen="LoadLibrary" |
|
10160 lt_cv_dlopen_libs= |
|
10161 ;; |
|
10162 |
|
10163 cygwin*) |
|
10164 lt_cv_dlopen="dlopen" |
|
10165 lt_cv_dlopen_libs= |
|
10166 ;; |
|
10167 |
|
10168 darwin*) |
|
10169 # if libdl is installed we need to link against it |
|
10170 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
10171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
10172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
10173 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10174 else |
|
10175 ac_check_lib_save_LIBS=$LIBS |
|
10176 LIBS="-ldl $LIBS" |
|
10177 cat >conftest.$ac_ext <<_ACEOF |
|
10178 /* confdefs.h. */ |
|
10179 _ACEOF |
|
10180 cat confdefs.h >>conftest.$ac_ext |
|
10181 cat >>conftest.$ac_ext <<_ACEOF |
|
10182 /* end confdefs.h. */ |
|
10183 |
|
10184 /* Override any GCC internal prototype to avoid an error. |
|
10185 Use char because int might match the return type of a GCC |
|
10186 builtin and then its argument prototype would still apply. */ |
|
10187 #ifdef __cplusplus |
|
10188 extern "C" |
|
10189 #endif |
|
10190 char dlopen (); |
|
10191 int |
|
10192 main () |
|
10193 { |
|
10194 return dlopen (); |
|
10195 ; |
|
10196 return 0; |
|
10197 } |
|
10198 _ACEOF |
|
10199 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10200 if { (ac_try="$ac_link" |
|
10201 case "(($ac_try" in |
|
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10203 *) ac_try_echo=$ac_try;; |
|
10204 esac |
|
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10206 (eval "$ac_link") 2>conftest.er1 |
|
10207 ac_status=$? |
|
10208 grep -v '^ *+' conftest.er1 >conftest.err |
|
10209 rm -f conftest.er1 |
|
10210 cat conftest.err >&5 |
|
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10212 (exit $ac_status); } && { |
|
10213 test -z "$ac_c_werror_flag" || |
|
10214 test ! -s conftest.err |
|
10215 } && test -s conftest$ac_exeext && |
|
10216 $as_test_x conftest$ac_exeext; then |
|
10217 ac_cv_lib_dl_dlopen=yes |
|
10218 else |
|
10219 echo "$as_me: failed program was:" >&5 |
|
10220 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10221 |
|
10222 ac_cv_lib_dl_dlopen=no |
|
10223 fi |
|
10224 |
|
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10226 conftest$ac_exeext conftest.$ac_ext |
|
10227 LIBS=$ac_check_lib_save_LIBS |
|
10228 fi |
|
10229 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
10231 if test $ac_cv_lib_dl_dlopen = yes; then |
|
10232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10233 else |
|
10234 |
|
10235 lt_cv_dlopen="dyld" |
|
10236 lt_cv_dlopen_libs= |
|
10237 lt_cv_dlopen_self=yes |
|
10238 |
|
10239 fi |
|
10240 |
|
10241 ;; |
|
10242 |
|
10243 *) |
|
10244 { echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
10245 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
|
10246 if test "${ac_cv_func_shl_load+set}" = set; then |
|
10247 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10248 else |
|
10249 cat >conftest.$ac_ext <<_ACEOF |
|
10250 /* confdefs.h. */ |
|
10251 _ACEOF |
|
10252 cat confdefs.h >>conftest.$ac_ext |
|
10253 cat >>conftest.$ac_ext <<_ACEOF |
|
10254 /* end confdefs.h. */ |
|
10255 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
10256 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
10257 #define shl_load innocuous_shl_load |
|
10258 |
|
10259 /* System header to define __stub macros and hopefully few prototypes, |
|
10260 which can conflict with char shl_load (); below. |
|
10261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
10262 <limits.h> exists even on freestanding compilers. */ |
|
10263 |
|
10264 #ifdef __STDC__ |
|
10265 # include <limits.h> |
|
10266 #else |
|
10267 # include <assert.h> |
|
10268 #endif |
|
10269 |
|
10270 #undef shl_load |
|
10271 |
|
10272 /* Override any GCC internal prototype to avoid an error. |
|
10273 Use char because int might match the return type of a GCC |
|
10274 builtin and then its argument prototype would still apply. */ |
|
10275 #ifdef __cplusplus |
|
10276 extern "C" |
|
10277 #endif |
|
10278 char shl_load (); |
|
10279 /* The GNU C library defines this for functions which it implements |
|
10280 to always fail with ENOSYS. Some functions are actually named |
|
10281 something starting with __ and the normal name is an alias. */ |
|
10282 #if defined __stub_shl_load || defined __stub___shl_load |
|
10283 choke me |
|
10284 #endif |
|
10285 |
|
10286 int |
|
10287 main () |
|
10288 { |
|
10289 return shl_load (); |
|
10290 ; |
|
10291 return 0; |
|
10292 } |
|
10293 _ACEOF |
|
10294 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10295 if { (ac_try="$ac_link" |
|
10296 case "(($ac_try" in |
|
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10298 *) ac_try_echo=$ac_try;; |
|
10299 esac |
|
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10301 (eval "$ac_link") 2>conftest.er1 |
|
10302 ac_status=$? |
|
10303 grep -v '^ *+' conftest.er1 >conftest.err |
|
10304 rm -f conftest.er1 |
|
10305 cat conftest.err >&5 |
|
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10307 (exit $ac_status); } && { |
|
10308 test -z "$ac_c_werror_flag" || |
|
10309 test ! -s conftest.err |
|
10310 } && test -s conftest$ac_exeext && |
|
10311 $as_test_x conftest$ac_exeext; then |
|
10312 ac_cv_func_shl_load=yes |
|
10313 else |
|
10314 echo "$as_me: failed program was:" >&5 |
|
10315 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10316 |
|
10317 ac_cv_func_shl_load=no |
|
10318 fi |
|
10319 |
|
10320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10321 conftest$ac_exeext conftest.$ac_ext |
|
10322 fi |
|
10323 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
10324 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
|
10325 if test $ac_cv_func_shl_load = yes; then |
|
10326 lt_cv_dlopen="shl_load" |
|
10327 else |
|
10328 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
10329 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
|
10330 if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
10331 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10332 else |
|
10333 ac_check_lib_save_LIBS=$LIBS |
|
10334 LIBS="-ldld $LIBS" |
|
10335 cat >conftest.$ac_ext <<_ACEOF |
|
10336 /* confdefs.h. */ |
|
10337 _ACEOF |
|
10338 cat confdefs.h >>conftest.$ac_ext |
|
10339 cat >>conftest.$ac_ext <<_ACEOF |
|
10340 /* end confdefs.h. */ |
|
10341 |
|
10342 /* Override any GCC internal prototype to avoid an error. |
|
10343 Use char because int might match the return type of a GCC |
|
10344 builtin and then its argument prototype would still apply. */ |
|
10345 #ifdef __cplusplus |
|
10346 extern "C" |
|
10347 #endif |
|
10348 char shl_load (); |
|
10349 int |
|
10350 main () |
|
10351 { |
|
10352 return shl_load (); |
|
10353 ; |
|
10354 return 0; |
|
10355 } |
|
10356 _ACEOF |
|
10357 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10358 if { (ac_try="$ac_link" |
|
10359 case "(($ac_try" in |
|
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10361 *) ac_try_echo=$ac_try;; |
|
10362 esac |
|
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10364 (eval "$ac_link") 2>conftest.er1 |
|
10365 ac_status=$? |
|
10366 grep -v '^ *+' conftest.er1 >conftest.err |
|
10367 rm -f conftest.er1 |
|
10368 cat conftest.err >&5 |
|
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10370 (exit $ac_status); } && { |
|
10371 test -z "$ac_c_werror_flag" || |
|
10372 test ! -s conftest.err |
|
10373 } && test -s conftest$ac_exeext && |
|
10374 $as_test_x conftest$ac_exeext; then |
|
10375 ac_cv_lib_dld_shl_load=yes |
|
10376 else |
|
10377 echo "$as_me: failed program was:" >&5 |
|
10378 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10379 |
|
10380 ac_cv_lib_dld_shl_load=no |
|
10381 fi |
|
10382 |
|
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10384 conftest$ac_exeext conftest.$ac_ext |
|
10385 LIBS=$ac_check_lib_save_LIBS |
|
10386 fi |
|
10387 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
10388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
|
10389 if test $ac_cv_lib_dld_shl_load = yes; then |
|
10390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
|
10391 else |
|
10392 { echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
10393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
|
10394 if test "${ac_cv_func_dlopen+set}" = set; then |
|
10395 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10396 else |
|
10397 cat >conftest.$ac_ext <<_ACEOF |
|
10398 /* confdefs.h. */ |
|
10399 _ACEOF |
|
10400 cat confdefs.h >>conftest.$ac_ext |
|
10401 cat >>conftest.$ac_ext <<_ACEOF |
|
10402 /* end confdefs.h. */ |
|
10403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
10404 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
10405 #define dlopen innocuous_dlopen |
|
10406 |
|
10407 /* System header to define __stub macros and hopefully few prototypes, |
|
10408 which can conflict with char dlopen (); below. |
|
10409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
10410 <limits.h> exists even on freestanding compilers. */ |
|
10411 |
|
10412 #ifdef __STDC__ |
|
10413 # include <limits.h> |
|
10414 #else |
|
10415 # include <assert.h> |
|
10416 #endif |
|
10417 |
|
10418 #undef dlopen |
|
10419 |
|
10420 /* Override any GCC internal prototype to avoid an error. |
|
10421 Use char because int might match the return type of a GCC |
|
10422 builtin and then its argument prototype would still apply. */ |
|
10423 #ifdef __cplusplus |
|
10424 extern "C" |
|
10425 #endif |
|
10426 char dlopen (); |
|
10427 /* The GNU C library defines this for functions which it implements |
|
10428 to always fail with ENOSYS. Some functions are actually named |
|
10429 something starting with __ and the normal name is an alias. */ |
|
10430 #if defined __stub_dlopen || defined __stub___dlopen |
|
10431 choke me |
|
10432 #endif |
|
10433 |
|
10434 int |
|
10435 main () |
|
10436 { |
|
10437 return dlopen (); |
|
10438 ; |
|
10439 return 0; |
|
10440 } |
|
10441 _ACEOF |
|
10442 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10443 if { (ac_try="$ac_link" |
|
10444 case "(($ac_try" in |
|
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10446 *) ac_try_echo=$ac_try;; |
|
10447 esac |
|
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10449 (eval "$ac_link") 2>conftest.er1 |
|
10450 ac_status=$? |
|
10451 grep -v '^ *+' conftest.er1 >conftest.err |
|
10452 rm -f conftest.er1 |
|
10453 cat conftest.err >&5 |
|
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10455 (exit $ac_status); } && { |
|
10456 test -z "$ac_c_werror_flag" || |
|
10457 test ! -s conftest.err |
|
10458 } && test -s conftest$ac_exeext && |
|
10459 $as_test_x conftest$ac_exeext; then |
|
10460 ac_cv_func_dlopen=yes |
|
10461 else |
|
10462 echo "$as_me: failed program was:" >&5 |
|
10463 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10464 |
|
10465 ac_cv_func_dlopen=no |
|
10466 fi |
|
10467 |
|
10468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10469 conftest$ac_exeext conftest.$ac_ext |
|
10470 fi |
|
10471 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
10472 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
|
10473 if test $ac_cv_func_dlopen = yes; then |
|
10474 lt_cv_dlopen="dlopen" |
|
10475 else |
|
10476 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
10477 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
|
10478 if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
10479 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10480 else |
|
10481 ac_check_lib_save_LIBS=$LIBS |
|
10482 LIBS="-ldl $LIBS" |
|
10483 cat >conftest.$ac_ext <<_ACEOF |
|
10484 /* confdefs.h. */ |
|
10485 _ACEOF |
|
10486 cat confdefs.h >>conftest.$ac_ext |
|
10487 cat >>conftest.$ac_ext <<_ACEOF |
|
10488 /* end confdefs.h. */ |
|
10489 |
|
10490 /* Override any GCC internal prototype to avoid an error. |
|
10491 Use char because int might match the return type of a GCC |
|
10492 builtin and then its argument prototype would still apply. */ |
|
10493 #ifdef __cplusplus |
|
10494 extern "C" |
|
10495 #endif |
|
10496 char dlopen (); |
|
10497 int |
|
10498 main () |
|
10499 { |
|
10500 return dlopen (); |
|
10501 ; |
|
10502 return 0; |
|
10503 } |
|
10504 _ACEOF |
|
10505 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10506 if { (ac_try="$ac_link" |
|
10507 case "(($ac_try" in |
|
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10509 *) ac_try_echo=$ac_try;; |
|
10510 esac |
|
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10512 (eval "$ac_link") 2>conftest.er1 |
|
10513 ac_status=$? |
|
10514 grep -v '^ *+' conftest.er1 >conftest.err |
|
10515 rm -f conftest.er1 |
|
10516 cat conftest.err >&5 |
|
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10518 (exit $ac_status); } && { |
|
10519 test -z "$ac_c_werror_flag" || |
|
10520 test ! -s conftest.err |
|
10521 } && test -s conftest$ac_exeext && |
|
10522 $as_test_x conftest$ac_exeext; then |
|
10523 ac_cv_lib_dl_dlopen=yes |
|
10524 else |
|
10525 echo "$as_me: failed program was:" >&5 |
|
10526 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10527 |
|
10528 ac_cv_lib_dl_dlopen=no |
|
10529 fi |
|
10530 |
|
10531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10532 conftest$ac_exeext conftest.$ac_ext |
|
10533 LIBS=$ac_check_lib_save_LIBS |
|
10534 fi |
|
10535 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
|
10537 if test $ac_cv_lib_dl_dlopen = yes; then |
|
10538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10539 else |
|
10540 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
10541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
|
10542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
10543 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10544 else |
|
10545 ac_check_lib_save_LIBS=$LIBS |
|
10546 LIBS="-lsvld $LIBS" |
|
10547 cat >conftest.$ac_ext <<_ACEOF |
|
10548 /* confdefs.h. */ |
|
10549 _ACEOF |
|
10550 cat confdefs.h >>conftest.$ac_ext |
|
10551 cat >>conftest.$ac_ext <<_ACEOF |
|
10552 /* end confdefs.h. */ |
|
10553 |
|
10554 /* Override any GCC internal prototype to avoid an error. |
|
10555 Use char because int might match the return type of a GCC |
|
10556 builtin and then its argument prototype would still apply. */ |
|
10557 #ifdef __cplusplus |
|
10558 extern "C" |
|
10559 #endif |
|
10560 char dlopen (); |
|
10561 int |
|
10562 main () |
|
10563 { |
|
10564 return dlopen (); |
|
10565 ; |
|
10566 return 0; |
|
10567 } |
|
10568 _ACEOF |
|
10569 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10570 if { (ac_try="$ac_link" |
|
10571 case "(($ac_try" in |
|
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10573 *) ac_try_echo=$ac_try;; |
|
10574 esac |
|
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10576 (eval "$ac_link") 2>conftest.er1 |
|
10577 ac_status=$? |
|
10578 grep -v '^ *+' conftest.er1 >conftest.err |
|
10579 rm -f conftest.er1 |
|
10580 cat conftest.err >&5 |
|
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10582 (exit $ac_status); } && { |
|
10583 test -z "$ac_c_werror_flag" || |
|
10584 test ! -s conftest.err |
|
10585 } && test -s conftest$ac_exeext && |
|
10586 $as_test_x conftest$ac_exeext; then |
|
10587 ac_cv_lib_svld_dlopen=yes |
|
10588 else |
|
10589 echo "$as_me: failed program was:" >&5 |
|
10590 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10591 |
|
10592 ac_cv_lib_svld_dlopen=no |
|
10593 fi |
|
10594 |
|
10595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10596 conftest$ac_exeext conftest.$ac_ext |
|
10597 LIBS=$ac_check_lib_save_LIBS |
|
10598 fi |
|
10599 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
10600 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
|
10601 if test $ac_cv_lib_svld_dlopen = yes; then |
|
10602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
10603 else |
|
10604 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
10605 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
|
10606 if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
10607 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10608 else |
|
10609 ac_check_lib_save_LIBS=$LIBS |
|
10610 LIBS="-ldld $LIBS" |
|
10611 cat >conftest.$ac_ext <<_ACEOF |
|
10612 /* confdefs.h. */ |
|
10613 _ACEOF |
|
10614 cat confdefs.h >>conftest.$ac_ext |
|
10615 cat >>conftest.$ac_ext <<_ACEOF |
|
10616 /* end confdefs.h. */ |
|
10617 |
|
10618 /* Override any GCC internal prototype to avoid an error. |
|
10619 Use char because int might match the return type of a GCC |
|
10620 builtin and then its argument prototype would still apply. */ |
|
10621 #ifdef __cplusplus |
|
10622 extern "C" |
|
10623 #endif |
|
10624 char dld_link (); |
|
10625 int |
|
10626 main () |
|
10627 { |
|
10628 return dld_link (); |
|
10629 ; |
|
10630 return 0; |
|
10631 } |
|
10632 _ACEOF |
|
10633 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10634 if { (ac_try="$ac_link" |
|
10635 case "(($ac_try" in |
|
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10637 *) ac_try_echo=$ac_try;; |
|
10638 esac |
|
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
10640 (eval "$ac_link") 2>conftest.er1 |
|
10641 ac_status=$? |
|
10642 grep -v '^ *+' conftest.er1 >conftest.err |
|
10643 rm -f conftest.er1 |
|
10644 cat conftest.err >&5 |
|
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10646 (exit $ac_status); } && { |
|
10647 test -z "$ac_c_werror_flag" || |
|
10648 test ! -s conftest.err |
|
10649 } && test -s conftest$ac_exeext && |
|
10650 $as_test_x conftest$ac_exeext; then |
|
10651 ac_cv_lib_dld_dld_link=yes |
|
10652 else |
|
10653 echo "$as_me: failed program was:" >&5 |
|
10654 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10655 |
|
10656 ac_cv_lib_dld_dld_link=no |
|
10657 fi |
|
10658 |
|
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10660 conftest$ac_exeext conftest.$ac_ext |
|
10661 LIBS=$ac_check_lib_save_LIBS |
|
10662 fi |
|
10663 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
10664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
|
10665 if test $ac_cv_lib_dld_dld_link = yes; then |
|
10666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
|
10667 fi |
|
10668 |
|
10669 |
|
10670 fi |
|
10671 |
|
10672 |
|
10673 fi |
|
10674 |
|
10675 |
|
10676 fi |
|
10677 |
|
10678 |
|
10679 fi |
|
10680 |
|
10681 |
|
10682 fi |
|
10683 |
|
10684 ;; |
|
10685 esac |
|
10686 |
|
10687 if test "x$lt_cv_dlopen" != xno; then |
|
10688 enable_dlopen=yes |
|
10689 else |
|
10690 enable_dlopen=no |
|
10691 fi |
|
10692 |
|
10693 case $lt_cv_dlopen in |
|
10694 dlopen) |
|
10695 save_CPPFLAGS="$CPPFLAGS" |
|
10696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
10697 |
|
10698 save_LDFLAGS="$LDFLAGS" |
|
10699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
10700 |
|
10701 save_LIBS="$LIBS" |
|
10702 LIBS="$lt_cv_dlopen_libs $LIBS" |
|
10703 |
|
10704 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
10705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
|
10706 if test "${lt_cv_dlopen_self+set}" = set; then |
|
10707 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10708 else |
|
10709 if test "$cross_compiling" = yes; then : |
|
10710 lt_cv_dlopen_self=cross |
|
10711 else |
|
10712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10713 lt_status=$lt_dlunknown |
|
10714 cat > conftest.$ac_ext <<EOF |
|
10715 #line 10715 "configure" |
|
10716 #include "confdefs.h" |
|
10717 |
|
10718 #if HAVE_DLFCN_H |
|
10719 #include <dlfcn.h> |
|
10720 #endif |
|
10721 |
|
10722 #include <stdio.h> |
|
10723 |
|
10724 #ifdef RTLD_GLOBAL |
|
10725 # define LT_DLGLOBAL RTLD_GLOBAL |
|
10726 #else |
|
10727 # ifdef DL_GLOBAL |
|
10728 # define LT_DLGLOBAL DL_GLOBAL |
|
10729 # else |
|
10730 # define LT_DLGLOBAL 0 |
|
10731 # endif |
|
10732 #endif |
|
10733 |
|
10734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10735 find out it does not work in some platform. */ |
|
10736 #ifndef LT_DLLAZY_OR_NOW |
|
10737 # ifdef RTLD_LAZY |
|
10738 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10739 # else |
|
10740 # ifdef DL_LAZY |
|
10741 # define LT_DLLAZY_OR_NOW DL_LAZY |
|
10742 # else |
|
10743 # ifdef RTLD_NOW |
|
10744 # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10745 # else |
|
10746 # ifdef DL_NOW |
|
10747 # define LT_DLLAZY_OR_NOW DL_NOW |
|
10748 # else |
|
10749 # define LT_DLLAZY_OR_NOW 0 |
|
10750 # endif |
|
10751 # endif |
|
10752 # endif |
|
10753 # endif |
|
10754 #endif |
|
10755 |
|
10756 #ifdef __cplusplus |
|
10757 extern "C" void exit (int); |
|
10758 #endif |
|
10759 |
|
10760 void fnord() { int i=42;} |
|
10761 int main () |
|
10762 { |
|
10763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10764 int status = $lt_dlunknown; |
|
10765 |
|
10766 if (self) |
|
10767 { |
|
10768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10770 /* dlclose (self); */ |
|
10771 } |
|
10772 else |
|
10773 puts (dlerror ()); |
|
10774 |
|
10775 exit (status); |
|
10776 } |
|
10777 EOF |
|
10778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
10779 (eval $ac_link) 2>&5 |
|
10780 ac_status=$? |
|
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10783 (./conftest; exit; ) >&5 2>/dev/null |
|
10784 lt_status=$? |
|
10785 case x$lt_status in |
|
10786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
10787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
10788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
10789 esac |
|
10790 else : |
|
10791 # compilation failed |
|
10792 lt_cv_dlopen_self=no |
|
10793 fi |
|
10794 fi |
|
10795 rm -fr conftest* |
|
10796 |
|
10797 |
|
10798 fi |
|
10799 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
10800 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
|
10801 |
|
10802 if test "x$lt_cv_dlopen_self" = xyes; then |
|
10803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
10804 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
10805 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
|
10806 if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
10807 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
10808 else |
|
10809 if test "$cross_compiling" = yes; then : |
|
10810 lt_cv_dlopen_self_static=cross |
|
10811 else |
|
10812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10813 lt_status=$lt_dlunknown |
|
10814 cat > conftest.$ac_ext <<EOF |
|
10815 #line 10815 "configure" |
|
10816 #include "confdefs.h" |
|
10817 |
|
10818 #if HAVE_DLFCN_H |
|
10819 #include <dlfcn.h> |
|
10820 #endif |
|
10821 |
|
10822 #include <stdio.h> |
|
10823 |
|
10824 #ifdef RTLD_GLOBAL |
|
10825 # define LT_DLGLOBAL RTLD_GLOBAL |
|
10826 #else |
|
10827 # ifdef DL_GLOBAL |
|
10828 # define LT_DLGLOBAL DL_GLOBAL |
|
10829 # else |
|
10830 # define LT_DLGLOBAL 0 |
|
10831 # endif |
|
10832 #endif |
|
10833 |
|
10834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10835 find out it does not work in some platform. */ |
|
10836 #ifndef LT_DLLAZY_OR_NOW |
|
10837 # ifdef RTLD_LAZY |
|
10838 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10839 # else |
|
10840 # ifdef DL_LAZY |
|
10841 # define LT_DLLAZY_OR_NOW DL_LAZY |
|
10842 # else |
|
10843 # ifdef RTLD_NOW |
|
10844 # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10845 # else |
|
10846 # ifdef DL_NOW |
|
10847 # define LT_DLLAZY_OR_NOW DL_NOW |
|
10848 # else |
|
10849 # define LT_DLLAZY_OR_NOW 0 |
|
10850 # endif |
|
10851 # endif |
|
10852 # endif |
|
10853 # endif |
|
10854 #endif |
|
10855 |
|
10856 #ifdef __cplusplus |
|
10857 extern "C" void exit (int); |
|
10858 #endif |
|
10859 |
|
10860 void fnord() { int i=42;} |
|
10861 int main () |
|
10862 { |
|
10863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10864 int status = $lt_dlunknown; |
|
10865 |
|
10866 if (self) |
|
10867 { |
|
10868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10870 /* dlclose (self); */ |
|
10871 } |
|
10872 else |
|
10873 puts (dlerror ()); |
|
10874 |
|
10875 exit (status); |
|
10876 } |
|
10877 EOF |
|
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
10879 (eval $ac_link) 2>&5 |
|
10880 ac_status=$? |
|
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10883 (./conftest; exit; ) >&5 2>/dev/null |
|
10884 lt_status=$? |
|
10885 case x$lt_status in |
|
10886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
10889 esac |
|
10890 else : |
|
10891 # compilation failed |
|
10892 lt_cv_dlopen_self_static=no |
|
10893 fi |
|
10894 fi |
|
10895 rm -fr conftest* |
|
10896 |
|
10897 |
|
10898 fi |
|
10899 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
10900 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
|
10901 fi |
|
10902 |
|
10903 CPPFLAGS="$save_CPPFLAGS" |
|
10904 LDFLAGS="$save_LDFLAGS" |
|
10905 LIBS="$save_LIBS" |
|
10906 ;; |
|
10907 esac |
|
10908 |
|
10909 case $lt_cv_dlopen_self in |
|
10910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
10911 *) enable_dlopen_self=unknown ;; |
|
10912 esac |
|
10913 |
|
10914 case $lt_cv_dlopen_self_static in |
|
10915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
10916 *) enable_dlopen_self_static=unknown ;; |
|
10917 esac |
|
10918 fi |
|
10919 |
|
10920 |
|
10921 # Report which library types will actually be built |
|
10922 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
10923 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
|
10924 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
10925 echo "${ECHO_T}$can_build_shared" >&6; } |
|
10926 |
|
10927 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
10928 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
|
10929 test "$can_build_shared" = "no" && enable_shared=no |
|
10930 |
|
10931 # On AIX, shared libraries and static libraries use the same namespace, and |
|
10932 # are all built from PIC. |
|
10933 case $host_os in |
|
10934 aix3*) |
|
10935 test "$enable_shared" = yes && enable_static=no |
|
10936 if test -n "$RANLIB"; then |
|
10937 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
10938 postinstall_cmds='$RANLIB $lib' |
|
10939 fi |
|
10940 ;; |
|
10941 |
|
10942 aix[4-9]*) |
|
10943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
10944 test "$enable_shared" = yes && enable_static=no |
|
10945 fi |
|
10946 ;; |
|
10947 esac |
|
10948 { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
10949 echo "${ECHO_T}$enable_shared" >&6; } |
|
10950 |
|
10951 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
10952 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
|
10953 # Make sure either enable_shared or enable_static is yes. |
|
10954 test "$enable_shared" = yes || enable_static=yes |
|
10955 { echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
10956 echo "${ECHO_T}$enable_static" >&6; } |
|
10957 |
|
10958 # The else clause should only fire when bootstrapping the |
|
10959 # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
10960 # with your package, and you will get complaints that there are |
|
10961 # no rules to generate ltmain.sh. |
|
10962 if test -f "$ltmain"; then |
|
10963 # See if we are running on zsh, and set the options which allow our commands through |
|
10964 # without removal of \ escapes. |
|
10965 if test -n "${ZSH_VERSION+set}" ; then |
|
10966 setopt NO_GLOB_SUBST |
|
10967 fi |
|
10968 # Now quote all the things that may contain metacharacters while being |
|
10969 # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
10970 # variables and quote the copies for generation of the libtool script. |
|
10971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
10972 SED SHELL STRIP \ |
|
10973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
10974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
10975 deplibs_check_method reload_flag reload_cmds need_locks \ |
|
10976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
10977 lt_cv_sys_global_symbol_to_c_name_address \ |
|
10978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
10979 old_postinstall_cmds old_postuninstall_cmds \ |
|
10980 compiler \ |
|
10981 CC \ |
|
10982 LD \ |
|
10983 lt_prog_compiler_wl \ |
|
10984 lt_prog_compiler_pic \ |
|
10985 lt_prog_compiler_static \ |
|
10986 lt_prog_compiler_no_builtin_flag \ |
|
10987 export_dynamic_flag_spec \ |
|
10988 thread_safe_flag_spec \ |
|
10989 whole_archive_flag_spec \ |
|
10990 enable_shared_with_static_runtimes \ |
|
10991 old_archive_cmds \ |
|
10992 old_archive_from_new_cmds \ |
|
10993 predep_objects \ |
|
10994 postdep_objects \ |
|
10995 predeps \ |
|
10996 postdeps \ |
|
10997 compiler_lib_search_path \ |
|
10998 compiler_lib_search_dirs \ |
|
10999 archive_cmds \ |
|
11000 archive_expsym_cmds \ |
|
11001 postinstall_cmds \ |
|
11002 postuninstall_cmds \ |
|
11003 old_archive_from_expsyms_cmds \ |
|
11004 allow_undefined_flag \ |
|
11005 no_undefined_flag \ |
|
11006 export_symbols_cmds \ |
|
11007 hardcode_libdir_flag_spec \ |
|
11008 hardcode_libdir_flag_spec_ld \ |
|
11009 hardcode_libdir_separator \ |
|
11010 hardcode_automatic \ |
|
11011 module_cmds \ |
|
11012 module_expsym_cmds \ |
|
11013 lt_cv_prog_compiler_c_o \ |
|
11014 fix_srcfile_path \ |
|
11015 exclude_expsyms \ |
|
11016 include_expsyms; do |
|
11017 |
|
11018 case $var in |
|
11019 old_archive_cmds | \ |
|
11020 old_archive_from_new_cmds | \ |
|
11021 archive_cmds | \ |
|
11022 archive_expsym_cmds | \ |
|
11023 module_cmds | \ |
|
11024 module_expsym_cmds | \ |
|
11025 old_archive_from_expsyms_cmds | \ |
|
11026 export_symbols_cmds | \ |
|
11027 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
11028 postinstall_cmds | postuninstall_cmds | \ |
|
11029 old_postinstall_cmds | old_postuninstall_cmds | \ |
|
11030 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
11031 # Double-quote double-evaled strings. |
|
11032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
11033 ;; |
|
11034 *) |
|
11035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
11036 ;; |
|
11037 esac |
|
11038 done |
|
11039 |
|
11040 case $lt_echo in |
|
11041 *'\$0 --fallback-echo"') |
|
11042 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
11043 ;; |
|
11044 esac |
|
11045 |
|
11046 cfgfile="${ofile}T" |
|
11047 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
11048 $rm -f "$cfgfile" |
|
11049 { echo "$as_me:$LINENO: creating $ofile" >&5 |
|
11050 echo "$as_me: creating $ofile" >&6;} |
|
11051 |
|
11052 cat <<__EOF__ >> "$cfgfile" |
|
11053 #! $SHELL |
|
11054 |
|
11055 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
11056 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
11057 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
11058 # |
|
11059 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
|
11060 # Free Software Foundation, Inc. |
|
11061 # |
|
11062 # This file is part of GNU Libtool: |
|
11063 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
11064 # |
|
11065 # This program is free software; you can redistribute it and/or modify |
|
11066 # it under the terms of the GNU General Public License as published by |
|
11067 # the Free Software Foundation; either version 2 of the License, or |
|
11068 # (at your option) any later version. |
|
11069 # |
|
11070 # This program is distributed in the hope that it will be useful, but |
|
11071 # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11072 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
11073 # General Public License for more details. |
|
11074 # |
|
11075 # You should have received a copy of the GNU General Public License |
|
11076 # along with this program; if not, write to the Free Software |
|
11077 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
11078 # |
|
11079 # As a special exception to the GNU General Public License, if you |
|
11080 # distribute this file as part of a program that contains a |
|
11081 # configuration script generated by Autoconf, you may include it under |
|
11082 # the same distribution terms that you use for the rest of that program. |
|
11083 |
|
11084 # A sed program that does not truncate output. |
|
11085 SED=$lt_SED |
|
11086 |
|
11087 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
11088 Xsed="$SED -e 1s/^X//" |
|
11089 |
|
11090 # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
11091 # if CDPATH is set. |
|
11092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
11093 |
|
11094 # The names of the tagged configurations supported by this script. |
|
11095 available_tags= |
|
11096 |
|
11097 # ### BEGIN LIBTOOL CONFIG |
|
11098 |
|
11099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
11100 |
|
11101 # Shell to use when invoking shell scripts. |
|
11102 SHELL=$lt_SHELL |
|
11103 |
|
11104 # Whether or not to build shared libraries. |
|
11105 build_libtool_libs=$enable_shared |
|
11106 |
|
11107 # Whether or not to build static libraries. |
|
11108 build_old_libs=$enable_static |
|
11109 |
|
11110 # Whether or not to add -lc for building shared libraries. |
|
11111 build_libtool_need_lc=$archive_cmds_need_lc |
|
11112 |
|
11113 # Whether or not to disallow shared libs when runtime libs are static |
|
11114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
11115 |
|
11116 # Whether or not to optimize for fast installation. |
|
11117 fast_install=$enable_fast_install |
|
11118 |
|
11119 # The host system. |
|
11120 host_alias=$host_alias |
|
11121 host=$host |
|
11122 host_os=$host_os |
|
11123 |
|
11124 # The build system. |
|
11125 build_alias=$build_alias |
|
11126 build=$build |
|
11127 build_os=$build_os |
|
11128 |
|
11129 # An echo program that does not interpret backslashes. |
|
11130 echo=$lt_echo |
|
11131 |
|
11132 # The archiver. |
|
11133 AR=$lt_AR |
|
11134 AR_FLAGS=$lt_AR_FLAGS |
|
11135 |
|
11136 # A C compiler. |
|
11137 LTCC=$lt_LTCC |
|
11138 |
|
11139 # LTCC compiler flags. |
|
11140 LTCFLAGS=$lt_LTCFLAGS |
|
11141 |
|
11142 # A language-specific compiler. |
|
11143 CC=$lt_compiler |
|
11144 |
|
11145 # Is the compiler the GNU C compiler? |
|
11146 with_gcc=$GCC |
|
11147 |
|
11148 # An ERE matcher. |
|
11149 EGREP=$lt_EGREP |
|
11150 |
|
11151 # The linker used to build libraries. |
|
11152 LD=$lt_LD |
|
11153 |
|
11154 # Whether we need hard or soft links. |
|
11155 LN_S=$lt_LN_S |
|
11156 |
|
11157 # A BSD-compatible nm program. |
|
11158 NM=$lt_NM |
|
11159 |
|
11160 # A symbol stripping program |
|
11161 STRIP=$lt_STRIP |
|
11162 |
|
11163 # Used to examine libraries when file_magic_cmd begins "file" |
|
11164 MAGIC_CMD=$MAGIC_CMD |
|
11165 |
|
11166 # Used on cygwin: DLL creation program. |
|
11167 DLLTOOL="$DLLTOOL" |
|
11168 |
|
11169 # Used on cygwin: object dumper. |
|
11170 OBJDUMP="$OBJDUMP" |
|
11171 |
|
11172 # Used on cygwin: assembler. |
|
11173 AS="$AS" |
|
11174 |
|
11175 # The name of the directory that contains temporary libtool files. |
|
11176 objdir=$objdir |
|
11177 |
|
11178 # How to create reloadable object files. |
|
11179 reload_flag=$lt_reload_flag |
|
11180 reload_cmds=$lt_reload_cmds |
|
11181 |
|
11182 # How to pass a linker flag through the compiler. |
|
11183 wl=$lt_lt_prog_compiler_wl |
|
11184 |
|
11185 # Object file suffix (normally "o"). |
|
11186 objext="$ac_objext" |
|
11187 |
|
11188 # Old archive suffix (normally "a"). |
|
11189 libext="$libext" |
|
11190 |
|
11191 # Shared library suffix (normally ".so"). |
|
11192 shrext_cmds='$shrext_cmds' |
|
11193 |
|
11194 # Executable file suffix (normally ""). |
|
11195 exeext="$exeext" |
|
11196 |
|
11197 # Additional compiler flags for building library objects. |
|
11198 pic_flag=$lt_lt_prog_compiler_pic |
|
11199 pic_mode=$pic_mode |
|
11200 |
|
11201 # What is the maximum length of a command? |
|
11202 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
11203 |
|
11204 # Does compiler simultaneously support -c and -o options? |
|
11205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
11206 |
|
11207 # Must we lock files when doing compilation? |
|
11208 need_locks=$lt_need_locks |
|
11209 |
|
11210 # Do we need the lib prefix for modules? |
|
11211 need_lib_prefix=$need_lib_prefix |
|
11212 |
|
11213 # Do we need a version for libraries? |
|
11214 need_version=$need_version |
|
11215 |
|
11216 # Whether dlopen is supported. |
|
11217 dlopen_support=$enable_dlopen |
|
11218 |
|
11219 # Whether dlopen of programs is supported. |
|
11220 dlopen_self=$enable_dlopen_self |
|
11221 |
|
11222 # Whether dlopen of statically linked programs is supported. |
|
11223 dlopen_self_static=$enable_dlopen_self_static |
|
11224 |
|
11225 # Compiler flag to prevent dynamic linking. |
|
11226 link_static_flag=$lt_lt_prog_compiler_static |
|
11227 |
|
11228 # Compiler flag to turn off builtin functions. |
|
11229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
11230 |
|
11231 # Compiler flag to allow reflexive dlopens. |
|
11232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
11233 |
|
11234 # Compiler flag to generate shared objects directly from archives. |
|
11235 whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
11236 |
|
11237 # Compiler flag to generate thread-safe objects. |
|
11238 thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
11239 |
|
11240 # Library versioning type. |
|
11241 version_type=$version_type |
|
11242 |
|
11243 # Format of library name prefix. |
|
11244 libname_spec=$lt_libname_spec |
|
11245 |
|
11246 # List of archive names. First name is the real one, the rest are links. |
|
11247 # The last name is the one that the linker finds with -lNAME. |
|
11248 library_names_spec=$lt_library_names_spec |
|
11249 |
|
11250 # The coded name of the library, if different from the real name. |
|
11251 soname_spec=$lt_soname_spec |
|
11252 |
|
11253 # Commands used to build and install an old-style archive. |
|
11254 RANLIB=$lt_RANLIB |
|
11255 old_archive_cmds=$lt_old_archive_cmds |
|
11256 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
11257 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
11258 |
|
11259 # Create an old-style archive from a shared archive. |
|
11260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
11261 |
|
11262 # Create a temporary old-style archive to link instead of a shared archive. |
|
11263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
11264 |
|
11265 # Commands used to build and install a shared archive. |
|
11266 archive_cmds=$lt_archive_cmds |
|
11267 archive_expsym_cmds=$lt_archive_expsym_cmds |
|
11268 postinstall_cmds=$lt_postinstall_cmds |
|
11269 postuninstall_cmds=$lt_postuninstall_cmds |
|
11270 |
|
11271 # Commands used to build a loadable module (assumed same as above if empty) |
|
11272 module_cmds=$lt_module_cmds |
|
11273 module_expsym_cmds=$lt_module_expsym_cmds |
|
11274 |
|
11275 # Commands to strip libraries. |
|
11276 old_striplib=$lt_old_striplib |
|
11277 striplib=$lt_striplib |
|
11278 |
|
11279 # Dependencies to place before the objects being linked to create a |
|
11280 # shared library. |
|
11281 predep_objects=$lt_predep_objects |
|
11282 |
|
11283 # Dependencies to place after the objects being linked to create a |
|
11284 # shared library. |
|
11285 postdep_objects=$lt_postdep_objects |
|
11286 |
|
11287 # Dependencies to place before the objects being linked to create a |
|
11288 # shared library. |
|
11289 predeps=$lt_predeps |
|
11290 |
|
11291 # Dependencies to place after the objects being linked to create a |
|
11292 # shared library. |
|
11293 postdeps=$lt_postdeps |
|
11294 |
|
11295 # The directories searched by this compiler when creating a shared |
|
11296 # library |
|
11297 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
|
11298 |
|
11299 # The library search path used internally by the compiler when linking |
|
11300 # a shared library. |
|
11301 compiler_lib_search_path=$lt_compiler_lib_search_path |
|
11302 |
|
11303 # Method to check whether dependent libraries are shared objects. |
|
11304 deplibs_check_method=$lt_deplibs_check_method |
|
11305 |
|
11306 # Command to use when deplibs_check_method == file_magic. |
|
11307 file_magic_cmd=$lt_file_magic_cmd |
|
11308 |
|
11309 # Flag that allows shared libraries with undefined symbols to be built. |
|
11310 allow_undefined_flag=$lt_allow_undefined_flag |
|
11311 |
|
11312 # Flag that forces no undefined symbols. |
|
11313 no_undefined_flag=$lt_no_undefined_flag |
|
11314 |
|
11315 # Commands used to finish a libtool library installation in a directory. |
|
11316 finish_cmds=$lt_finish_cmds |
|
11317 |
|
11318 # Same as above, but a single script fragment to be evaled but not shown. |
|
11319 finish_eval=$lt_finish_eval |
|
11320 |
|
11321 # Take the output of nm and produce a listing of raw symbols and C names. |
|
11322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
11323 |
|
11324 # Transform the output of nm in a proper C declaration |
|
11325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
11326 |
|
11327 # Transform the output of nm in a C name address pair |
|
11328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
11329 |
|
11330 # This is the shared library runtime path variable. |
|
11331 runpath_var=$runpath_var |
|
11332 |
|
11333 # This is the shared library path variable. |
|
11334 shlibpath_var=$shlibpath_var |
|
11335 |
|
11336 # Is shlibpath searched before the hard-coded library search path? |
|
11337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
11338 |
|
11339 # How to hardcode a shared library path into an executable. |
|
11340 hardcode_action=$hardcode_action |
|
11341 |
|
11342 # Whether we should hardcode library paths into libraries. |
|
11343 hardcode_into_libs=$hardcode_into_libs |
|
11344 |
|
11345 # Flag to hardcode \$libdir into a binary during linking. |
|
11346 # This must work even if \$libdir does not exist. |
|
11347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
11348 |
|
11349 # If ld is used when linking, flag to hardcode \$libdir into |
|
11350 # a binary during linking. This must work even if \$libdir does |
|
11351 # not exist. |
|
11352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
11353 |
|
11354 # Whether we need a single -rpath flag with a separated argument. |
|
11355 hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
11356 |
|
11357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
11358 # resulting binary. |
|
11359 hardcode_direct=$hardcode_direct |
|
11360 |
|
11361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
11362 # resulting binary. |
|
11363 hardcode_minus_L=$hardcode_minus_L |
|
11364 |
|
11365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
11366 # the resulting binary. |
|
11367 hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
11368 |
|
11369 # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
11370 # and all subsequent libraries and executables linked against it. |
|
11371 hardcode_automatic=$hardcode_automatic |
|
11372 |
|
11373 # Variables whose values should be saved in libtool wrapper scripts and |
|
11374 # restored at relink time. |
|
11375 variables_saved_for_relink="$variables_saved_for_relink" |
|
11376 |
|
11377 # Whether libtool must link a program against all its dependency libraries. |
|
11378 link_all_deplibs=$link_all_deplibs |
|
11379 |
|
11380 # Compile-time system search path for libraries |
|
11381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
11382 |
|
11383 # Run-time system search path for libraries |
|
11384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
11385 |
|
11386 # Fix the shell variable \$srcfile for the compiler. |
|
11387 fix_srcfile_path=$lt_fix_srcfile_path |
|
11388 |
|
11389 # Set to yes if exported symbols are required. |
|
11390 always_export_symbols=$always_export_symbols |
|
11391 |
|
11392 # The commands to list exported symbols. |
|
11393 export_symbols_cmds=$lt_export_symbols_cmds |
|
11394 |
|
11395 # The commands to extract the exported symbol list from a shared archive. |
|
11396 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
11397 |
|
11398 # Symbols that should not be listed in the preloaded symbols. |
|
11399 exclude_expsyms=$lt_exclude_expsyms |
|
11400 |
|
11401 # Symbols that must always be exported. |
|
11402 include_expsyms=$lt_include_expsyms |
|
11403 |
|
11404 # ### END LIBTOOL CONFIG |
|
11405 |
|
11406 __EOF__ |
|
11407 |
|
11408 |
|
11409 case $host_os in |
|
11410 aix3*) |
|
11411 cat <<\EOF >> "$cfgfile" |
|
11412 |
|
11413 # AIX sometimes has problems with the GCC collect2 program. For some |
|
11414 # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
11415 # vanish in a puff of smoke. |
|
11416 if test "X${COLLECT_NAMES+set}" != Xset; then |
|
11417 COLLECT_NAMES= |
|
11418 export COLLECT_NAMES |
|
11419 fi |
|
11420 EOF |
|
11421 ;; |
|
11422 esac |
|
11423 |
|
11424 # We use sed instead of cat because bash on DJGPP gets confused if |
|
11425 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
11426 # text mode, it properly converts lines to CR/LF. This bash problem |
|
11427 # is reportedly fixed, but why not run on old versions too? |
|
11428 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
11429 |
|
11430 mv -f "$cfgfile" "$ofile" || \ |
|
11431 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
11432 chmod +x "$ofile" |
|
11433 |
|
11434 else |
|
11435 # If there is no Makefile yet, we rely on a make rule to execute |
|
11436 # `config.status --recheck' to rerun these tests and create the |
|
11437 # libtool script then. |
|
11438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
11439 if test -f "$ltmain_in"; then |
|
11440 test -f Makefile && make "$ltmain" |
|
11441 fi |
|
11442 fi |
|
11443 |
|
11444 |
|
11445 ac_ext=c |
|
11446 ac_cpp='$CPP $CPPFLAGS' |
|
11447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11449 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
11450 |
|
11451 CC="$lt_save_CC" |
|
11452 |
|
11453 |
|
11454 # Check whether --with-tags was given. |
|
11455 if test "${with_tags+set}" = set; then |
|
11456 withval=$with_tags; tagnames="$withval" |
|
11457 fi |
|
11458 |
|
11459 |
|
11460 if test -f "$ltmain" && test -n "$tagnames"; then |
|
11461 if test ! -f "${ofile}"; then |
|
11462 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
11463 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
11464 fi |
|
11465 |
|
11466 if test -z "$LTCC"; then |
|
11467 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
11468 if test -z "$LTCC"; then |
|
11469 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
11470 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
11471 else |
|
11472 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
11473 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
11474 fi |
|
11475 fi |
|
11476 if test -z "$LTCFLAGS"; then |
|
11477 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
|
11478 fi |
|
11479 |
|
11480 # Extract list of available tagged configurations in $ofile. |
|
11481 # Note that this assumes the entire list is on one line. |
|
11482 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
11483 |
|
11484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
11485 for tagname in $tagnames; do |
|
11486 IFS="$lt_save_ifs" |
|
11487 # Check whether tagname contains only valid characters |
|
11488 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
11489 "") ;; |
|
11490 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
11491 echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
11492 { (exit 1); exit 1; }; } |
|
11493 ;; |
|
11494 esac |
|
11495 |
|
11496 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
11497 then |
|
11498 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
11499 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
11500 { (exit 1); exit 1; }; } |
|
11501 fi |
|
11502 |
|
11503 # Update the list of available tags. |
|
11504 if test -n "$tagname"; then |
|
11505 echo appending configuration tag \"$tagname\" to $ofile |
|
11506 |
|
11507 case $tagname in |
|
11508 CXX) |
|
11509 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
11510 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
11511 (test "X$CXX" != "Xg++"))) ; then |
|
11512 ac_ext=cpp |
|
11513 ac_cpp='$CXXCPP $CPPFLAGS' |
|
11514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
11517 |
|
11518 |
|
11519 |
|
11520 |
|
11521 archive_cmds_need_lc_CXX=no |
|
11522 allow_undefined_flag_CXX= |
|
11523 always_export_symbols_CXX=no |
|
11524 archive_expsym_cmds_CXX= |
|
11525 export_dynamic_flag_spec_CXX= |
|
11526 hardcode_direct_CXX=no |
|
11527 hardcode_libdir_flag_spec_CXX= |
|
11528 hardcode_libdir_flag_spec_ld_CXX= |
|
11529 hardcode_libdir_separator_CXX= |
|
11530 hardcode_minus_L_CXX=no |
|
11531 hardcode_shlibpath_var_CXX=unsupported |
|
11532 hardcode_automatic_CXX=no |
|
11533 module_cmds_CXX= |
|
11534 module_expsym_cmds_CXX= |
|
11535 link_all_deplibs_CXX=unknown |
|
11536 old_archive_cmds_CXX=$old_archive_cmds |
|
11537 no_undefined_flag_CXX= |
|
11538 whole_archive_flag_spec_CXX= |
|
11539 enable_shared_with_static_runtimes_CXX=no |
|
11540 |
|
11541 # Dependencies to place before and after the object being linked: |
|
11542 predep_objects_CXX= |
|
11543 postdep_objects_CXX= |
|
11544 predeps_CXX= |
|
11545 postdeps_CXX= |
|
11546 compiler_lib_search_path_CXX= |
|
11547 compiler_lib_search_dirs_CXX= |
|
11548 |
|
11549 # Source file extension for C++ test sources. |
|
11550 ac_ext=cpp |
|
11551 |
|
11552 # Object file extension for compiled C++ test sources. |
|
11553 objext=o |
|
11554 objext_CXX=$objext |
|
11555 |
|
11556 # Code to be used in simple compile tests |
|
11557 lt_simple_compile_test_code="int some_variable = 0;" |
|
11558 |
|
11559 # Code to be used in simple link tests |
|
11560 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
|
11561 |
|
11562 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
11563 |
|
11564 # If no C compiler was specified, use CC. |
|
11565 LTCC=${LTCC-"$CC"} |
|
11566 |
|
11567 # If no C compiler flags were specified, use CFLAGS. |
|
11568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
11569 |
|
11570 # Allow CC to be a program name with arguments. |
|
11571 compiler=$CC |
|
11572 |
|
11573 |
|
11574 # save warnings/boilerplate of simple test code |
|
11575 ac_outfile=conftest.$ac_objext |
|
11576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
11577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
11578 _lt_compiler_boilerplate=`cat conftest.err` |
|
11579 $rm conftest* |
|
11580 |
|
11581 ac_outfile=conftest.$ac_objext |
|
11582 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
11583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
11584 _lt_linker_boilerplate=`cat conftest.err` |
|
11585 $rm -r conftest* |
|
11586 |
|
11587 |
|
11588 # Allow CC to be a program name with arguments. |
|
11589 lt_save_CC=$CC |
|
11590 lt_save_LD=$LD |
|
11591 lt_save_GCC=$GCC |
|
11592 GCC=$GXX |
|
11593 lt_save_with_gnu_ld=$with_gnu_ld |
|
11594 lt_save_path_LD=$lt_cv_path_LD |
|
11595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
11596 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
11597 else |
|
11598 $as_unset lt_cv_prog_gnu_ld |
|
11599 fi |
|
11600 if test -n "${lt_cv_path_LDCXX+set}"; then |
|
11601 lt_cv_path_LD=$lt_cv_path_LDCXX |
|
11602 else |
|
11603 $as_unset lt_cv_path_LD |
|
11604 fi |
|
11605 test -z "${LDCXX+set}" || LD=$LDCXX |
|
11606 CC=${CXX-"c++"} |
|
11607 compiler=$CC |
|
11608 compiler_CXX=$CC |
|
11609 for cc_temp in $compiler""; do |
|
11610 case $cc_temp in |
|
11611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
11612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
11613 \-*) ;; |
|
11614 *) break;; |
|
11615 esac |
|
11616 done |
|
11617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
11618 |
|
11619 |
|
11620 # We don't want -fno-exception wen compiling C++ code, so set the |
|
11621 # no_builtin_flag separately |
|
11622 if test "$GXX" = yes; then |
|
11623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
11624 else |
|
11625 lt_prog_compiler_no_builtin_flag_CXX= |
|
11626 fi |
|
11627 |
|
11628 if test "$GXX" = yes; then |
|
11629 # Set up default GNU C++ configuration |
|
11630 |
|
11631 |
|
11632 # Check whether --with-gnu-ld was given. |
|
11633 if test "${with_gnu_ld+set}" = set; then |
|
11634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
11635 else |
|
11636 with_gnu_ld=no |
|
11637 fi |
|
11638 |
|
11639 ac_prog=ld |
|
11640 if test "$GCC" = yes; then |
|
11641 # Check if gcc -print-prog-name=ld gives a path. |
|
11642 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
11643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
|
11644 case $host in |
|
11645 *-*-mingw*) |
|
11646 # gcc leaves a trailing carriage return which upsets mingw |
|
11647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
11648 *) |
|
11649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
11650 esac |
|
11651 case $ac_prog in |
|
11652 # Accept absolute paths. |
|
11653 [\\/]* | ?:[\\/]*) |
|
11654 re_direlt='/[^/][^/]*/\.\./' |
|
11655 # Canonicalize the pathname of ld |
|
11656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
11657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
11658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
11659 done |
|
11660 test -z "$LD" && LD="$ac_prog" |
|
11661 ;; |
|
11662 "") |
|
11663 # If it fails, then pretend we aren't using GCC. |
|
11664 ac_prog=ld |
|
11665 ;; |
|
11666 *) |
|
11667 # If it is relative, then search for the first ld in PATH. |
|
11668 with_gnu_ld=unknown |
|
11669 ;; |
|
11670 esac |
|
11671 elif test "$with_gnu_ld" = yes; then |
|
11672 { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
11673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
|
11674 else |
|
11675 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
11676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
|
11677 fi |
|
11678 if test "${lt_cv_path_LD+set}" = set; then |
|
11679 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11680 else |
|
11681 if test -z "$LD"; then |
|
11682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
11683 for ac_dir in $PATH; do |
|
11684 IFS="$lt_save_ifs" |
|
11685 test -z "$ac_dir" && ac_dir=. |
|
11686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
11687 lt_cv_path_LD="$ac_dir/$ac_prog" |
|
11688 # Check to see if the program is GNU ld. I'd rather use --version, |
|
11689 # but apparently some variants of GNU ld only accept -v. |
|
11690 # Break only if it was the GNU/non-GNU ld that we prefer. |
|
11691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
11692 *GNU* | *'with BFD'*) |
|
11693 test "$with_gnu_ld" != no && break |
|
11694 ;; |
|
11695 *) |
|
11696 test "$with_gnu_ld" != yes && break |
|
11697 ;; |
|
11698 esac |
|
11699 fi |
|
11700 done |
|
11701 IFS="$lt_save_ifs" |
|
11702 else |
|
11703 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
11704 fi |
|
11705 fi |
|
11706 |
|
11707 LD="$lt_cv_path_LD" |
|
11708 if test -n "$LD"; then |
|
11709 { echo "$as_me:$LINENO: result: $LD" >&5 |
|
11710 echo "${ECHO_T}$LD" >&6; } |
|
11711 else |
|
11712 { echo "$as_me:$LINENO: result: no" >&5 |
|
11713 echo "${ECHO_T}no" >&6; } |
|
11714 fi |
|
11715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
11716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
11717 { (exit 1); exit 1; }; } |
|
11718 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
11719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
|
11720 if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
11721 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
11722 else |
|
11723 # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
11724 case `$LD -v 2>&1 </dev/null` in |
|
11725 *GNU* | *'with BFD'*) |
|
11726 lt_cv_prog_gnu_ld=yes |
|
11727 ;; |
|
11728 *) |
|
11729 lt_cv_prog_gnu_ld=no |
|
11730 ;; |
|
11731 esac |
|
11732 fi |
|
11733 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
11734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
|
11735 with_gnu_ld=$lt_cv_prog_gnu_ld |
|
11736 |
|
11737 |
|
11738 |
|
11739 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
11740 # archiving commands below assume that GNU ld is being used. |
|
11741 if test "$with_gnu_ld" = yes; then |
|
11742 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11743 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' |
|
11744 |
|
11745 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
11746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11747 |
|
11748 # If archive_cmds runs LD, not CC, wlarc should be empty |
|
11749 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
11750 # investigate it a little bit more. (MM) |
|
11751 wlarc='${wl}' |
|
11752 |
|
11753 # ancient GNU ld didn't support --whole-archive et. al. |
|
11754 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
11755 grep 'no-whole-archive' > /dev/null; then |
|
11756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
11757 else |
|
11758 whole_archive_flag_spec_CXX= |
|
11759 fi |
|
11760 else |
|
11761 with_gnu_ld=no |
|
11762 wlarc= |
|
11763 |
|
11764 # A generic and very simple default shared library creation |
|
11765 # command for GNU C++ for the case where it uses the native |
|
11766 # linker, instead of GNU ld. If possible, this setting should |
|
11767 # overridden to take advantage of the native linker features on |
|
11768 # the platform it is being used on. |
|
11769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
11770 fi |
|
11771 |
|
11772 # Commands to make compiler produce verbose output that lists |
|
11773 # what "hidden" libraries, object files and flags are used when |
|
11774 # linking a shared library. |
|
11775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
11776 |
|
11777 else |
|
11778 GXX=no |
|
11779 with_gnu_ld=no |
|
11780 wlarc= |
|
11781 fi |
|
11782 |
|
11783 # PORTME: fill in a description of your system's C++ link characteristics |
|
11784 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
11785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
11786 ld_shlibs_CXX=yes |
|
11787 case $host_os in |
|
11788 aix3*) |
|
11789 # FIXME: insert proper C++ library support |
|
11790 ld_shlibs_CXX=no |
|
11791 ;; |
|
11792 aix[4-9]*) |
|
11793 if test "$host_cpu" = ia64; then |
|
11794 # On IA64, the linker does run time linking by default, so we don't |
|
11795 # have to do anything special. |
|
11796 aix_use_runtimelinking=no |
|
11797 exp_sym_flag='-Bexport' |
|
11798 no_entry_flag="" |
|
11799 else |
|
11800 aix_use_runtimelinking=no |
|
11801 |
|
11802 # Test if we are trying to use run time linking or normal |
|
11803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
11804 # need to do runtime linking. |
|
11805 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
11806 for ld_flag in $LDFLAGS; do |
|
11807 case $ld_flag in |
|
11808 *-brtl*) |
|
11809 aix_use_runtimelinking=yes |
|
11810 break |
|
11811 ;; |
|
11812 esac |
|
11813 done |
|
11814 ;; |
|
11815 esac |
|
11816 |
|
11817 exp_sym_flag='-bexport' |
|
11818 no_entry_flag='-bnoentry' |
|
11819 fi |
|
11820 |
|
11821 # When large executables or shared objects are built, AIX ld can |
|
11822 # have problems creating the table of contents. If linking a library |
|
11823 # or program results in "error TOC overflow" add -mminimal-toc to |
|
11824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
11825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
11826 |
|
11827 archive_cmds_CXX='' |
|
11828 hardcode_direct_CXX=yes |
|
11829 hardcode_libdir_separator_CXX=':' |
|
11830 link_all_deplibs_CXX=yes |
|
11831 |
|
11832 if test "$GXX" = yes; then |
|
11833 case $host_os in aix4.[012]|aix4.[012].*) |
|
11834 # We only want to do this on AIX 4.2 and lower, the check |
|
11835 # below for broken collect2 doesn't work under 4.3+ |
|
11836 collect2name=`${CC} -print-prog-name=collect2` |
|
11837 if test -f "$collect2name" && \ |
|
11838 strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
11839 then |
|
11840 # We have reworked collect2 |
|
11841 : |
|
11842 else |
|
11843 # We have old collect2 |
|
11844 hardcode_direct_CXX=unsupported |
|
11845 # It fails to find uninstalled libraries when the uninstalled |
|
11846 # path is not listed in the libpath. Setting hardcode_minus_L |
|
11847 # to unsupported forces relinking |
|
11848 hardcode_minus_L_CXX=yes |
|
11849 hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11850 hardcode_libdir_separator_CXX= |
|
11851 fi |
|
11852 ;; |
|
11853 esac |
|
11854 shared_flag='-shared' |
|
11855 if test "$aix_use_runtimelinking" = yes; then |
|
11856 shared_flag="$shared_flag "'${wl}-G' |
|
11857 fi |
|
11858 else |
|
11859 # not using gcc |
|
11860 if test "$host_cpu" = ia64; then |
|
11861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
11862 # chokes on -Wl,-G. The following line is correct: |
|
11863 shared_flag='-G' |
|
11864 else |
|
11865 if test "$aix_use_runtimelinking" = yes; then |
|
11866 shared_flag='${wl}-G' |
|
11867 else |
|
11868 shared_flag='${wl}-bM:SRE' |
|
11869 fi |
|
11870 fi |
|
11871 fi |
|
11872 |
|
11873 # It seems that -bexpall does not export symbols beginning with |
|
11874 # underscore (_), so it is better to generate a list of symbols to export. |
|
11875 always_export_symbols_CXX=yes |
|
11876 if test "$aix_use_runtimelinking" = yes; then |
|
11877 # Warning - without using the other runtime loading flags (-brtl), |
|
11878 # -berok will link without error, but may produce a broken library. |
|
11879 allow_undefined_flag_CXX='-berok' |
|
11880 # Determine the default libpath from the value encoded in an empty executable. |
|
11881 cat >conftest.$ac_ext <<_ACEOF |
|
11882 /* confdefs.h. */ |
|
11883 _ACEOF |
|
11884 cat confdefs.h >>conftest.$ac_ext |
|
11885 cat >>conftest.$ac_ext <<_ACEOF |
|
11886 /* end confdefs.h. */ |
|
11887 |
|
11888 int |
|
11889 main () |
|
11890 { |
|
11891 |
|
11892 ; |
|
11893 return 0; |
|
11894 } |
|
11895 _ACEOF |
|
11896 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11897 if { (ac_try="$ac_link" |
|
11898 case "(($ac_try" in |
|
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11900 *) ac_try_echo=$ac_try;; |
|
11901 esac |
|
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
11903 (eval "$ac_link") 2>conftest.er1 |
|
11904 ac_status=$? |
|
11905 grep -v '^ *+' conftest.er1 >conftest.err |
|
11906 rm -f conftest.er1 |
|
11907 cat conftest.err >&5 |
|
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11909 (exit $ac_status); } && { |
|
11910 test -z "$ac_cxx_werror_flag" || |
|
11911 test ! -s conftest.err |
|
11912 } && test -s conftest$ac_exeext && |
|
11913 $as_test_x conftest$ac_exeext; then |
|
11914 |
|
11915 lt_aix_libpath_sed=' |
|
11916 /Import File Strings/,/^$/ { |
|
11917 /^0/ { |
|
11918 s/^0 *\(.*\)$/\1/ |
|
11919 p |
|
11920 } |
|
11921 }' |
|
11922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11923 # Check for a 64-bit object if we didn't find anything. |
|
11924 if test -z "$aix_libpath"; then |
|
11925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11926 fi |
|
11927 else |
|
11928 echo "$as_me: failed program was:" >&5 |
|
11929 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11930 |
|
11931 |
|
11932 fi |
|
11933 |
|
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11935 conftest$ac_exeext conftest.$ac_ext |
|
11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11937 |
|
11938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11939 |
|
11940 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" |
|
11941 else |
|
11942 if test "$host_cpu" = ia64; then |
|
11943 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
11944 allow_undefined_flag_CXX="-z nodefs" |
|
11945 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" |
|
11946 else |
|
11947 # Determine the default libpath from the value encoded in an empty executable. |
|
11948 cat >conftest.$ac_ext <<_ACEOF |
|
11949 /* confdefs.h. */ |
|
11950 _ACEOF |
|
11951 cat confdefs.h >>conftest.$ac_ext |
|
11952 cat >>conftest.$ac_ext <<_ACEOF |
|
11953 /* end confdefs.h. */ |
|
11954 |
|
11955 int |
|
11956 main () |
|
11957 { |
|
11958 |
|
11959 ; |
|
11960 return 0; |
|
11961 } |
|
11962 _ACEOF |
|
11963 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11964 if { (ac_try="$ac_link" |
|
11965 case "(($ac_try" in |
|
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11967 *) ac_try_echo=$ac_try;; |
|
11968 esac |
|
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
11970 (eval "$ac_link") 2>conftest.er1 |
|
11971 ac_status=$? |
|
11972 grep -v '^ *+' conftest.er1 >conftest.err |
|
11973 rm -f conftest.er1 |
|
11974 cat conftest.err >&5 |
|
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11976 (exit $ac_status); } && { |
|
11977 test -z "$ac_cxx_werror_flag" || |
|
11978 test ! -s conftest.err |
|
11979 } && test -s conftest$ac_exeext && |
|
11980 $as_test_x conftest$ac_exeext; then |
|
11981 |
|
11982 lt_aix_libpath_sed=' |
|
11983 /Import File Strings/,/^$/ { |
|
11984 /^0/ { |
|
11985 s/^0 *\(.*\)$/\1/ |
|
11986 p |
|
11987 } |
|
11988 }' |
|
11989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11990 # Check for a 64-bit object if we didn't find anything. |
|
11991 if test -z "$aix_libpath"; then |
|
11992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11993 fi |
|
11994 else |
|
11995 echo "$as_me: failed program was:" >&5 |
|
11996 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11997 |
|
11998 |
|
11999 fi |
|
12000 |
|
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
12002 conftest$ac_exeext conftest.$ac_ext |
|
12003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
12004 |
|
12005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
12006 # Warning - without using the other run time loading flags, |
|
12007 # -berok will link without error, but may produce a broken library. |
|
12008 no_undefined_flag_CXX=' ${wl}-bernotok' |
|
12009 allow_undefined_flag_CXX=' ${wl}-berok' |
|
12010 # Exported symbols can be pulled into shared objects from archives |
|
12011 whole_archive_flag_spec_CXX='$convenience' |
|
12012 archive_cmds_need_lc_CXX=yes |
|
12013 # This is similar to how AIX traditionally builds its shared libraries. |
|
12014 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' |
|
12015 fi |
|
12016 fi |
|
12017 ;; |
|
12018 |
|
12019 beos*) |
|
12020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
12021 allow_undefined_flag_CXX=unsupported |
|
12022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
12023 # support --undefined. This deserves some investigation. FIXME |
|
12024 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12025 else |
|
12026 ld_shlibs_CXX=no |
|
12027 fi |
|
12028 ;; |
|
12029 |
|
12030 chorus*) |
|
12031 case $cc_basename in |
|
12032 *) |
|
12033 # FIXME: insert proper C++ library support |
|
12034 ld_shlibs_CXX=no |
|
12035 ;; |
|
12036 esac |
|
12037 ;; |
|
12038 |
|
12039 cygwin* | mingw* | pw32*) |
|
12040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
12041 # as there is no search path for DLLs. |
|
12042 hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
12043 allow_undefined_flag_CXX=unsupported |
|
12044 always_export_symbols_CXX=no |
|
12045 enable_shared_with_static_runtimes_CXX=yes |
|
12046 |
|
12047 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
12048 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' |
|
12049 # If the export-symbols file already is a .def file (1st line |
|
12050 # is EXPORTS), use it as is; otherwise, prepend... |
|
12051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
12052 cp $export_symbols $output_objdir/$soname.def; |
|
12053 else |
|
12054 echo EXPORTS > $output_objdir/$soname.def; |
|
12055 cat $export_symbols >> $output_objdir/$soname.def; |
|
12056 fi~ |
|
12057 $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' |
|
12058 else |
|
12059 ld_shlibs_CXX=no |
|
12060 fi |
|
12061 ;; |
|
12062 darwin* | rhapsody*) |
|
12063 archive_cmds_need_lc_CXX=no |
|
12064 hardcode_direct_CXX=no |
|
12065 hardcode_automatic_CXX=yes |
|
12066 hardcode_shlibpath_var_CXX=unsupported |
|
12067 whole_archive_flag_spec_CXX='' |
|
12068 link_all_deplibs_CXX=yes |
|
12069 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
|
12070 if test "$GXX" = yes ; then |
|
12071 output_verbose_link_cmd='echo' |
|
12072 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
12073 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
12074 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
|
12075 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
|
12076 if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
|
12077 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${_lt_dsymutil}" |
|
12078 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" |
|
12079 fi |
|
12080 else |
|
12081 case $cc_basename in |
|
12082 xlc*) |
|
12083 output_verbose_link_cmd='echo' |
|
12084 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
|
12085 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
12086 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
12087 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
12088 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}' |
|
12089 ;; |
|
12090 *) |
|
12091 ld_shlibs_CXX=no |
|
12092 ;; |
|
12093 esac |
|
12094 fi |
|
12095 ;; |
|
12096 |
|
12097 dgux*) |
|
12098 case $cc_basename in |
|
12099 ec++*) |
|
12100 # FIXME: insert proper C++ library support |
|
12101 ld_shlibs_CXX=no |
|
12102 ;; |
|
12103 ghcx*) |
|
12104 # Green Hills C++ Compiler |
|
12105 # FIXME: insert proper C++ library support |
|
12106 ld_shlibs_CXX=no |
|
12107 ;; |
|
12108 *) |
|
12109 # FIXME: insert proper C++ library support |
|
12110 ld_shlibs_CXX=no |
|
12111 ;; |
|
12112 esac |
|
12113 ;; |
|
12114 freebsd[12]*) |
|
12115 # C++ shared libraries reported to be fairly broken before switch to ELF |
|
12116 ld_shlibs_CXX=no |
|
12117 ;; |
|
12118 freebsd-elf*) |
|
12119 archive_cmds_need_lc_CXX=no |
|
12120 ;; |
|
12121 freebsd* | dragonfly*) |
|
12122 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
12123 # conventions |
|
12124 ld_shlibs_CXX=yes |
|
12125 ;; |
|
12126 gnu*) |
|
12127 ;; |
|
12128 hpux9*) |
|
12129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12130 hardcode_libdir_separator_CXX=: |
|
12131 export_dynamic_flag_spec_CXX='${wl}-E' |
|
12132 hardcode_direct_CXX=yes |
|
12133 hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12134 # but as the default |
|
12135 # location of the library. |
|
12136 |
|
12137 case $cc_basename in |
|
12138 CC*) |
|
12139 # FIXME: insert proper C++ library support |
|
12140 ld_shlibs_CXX=no |
|
12141 ;; |
|
12142 aCC*) |
|
12143 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' |
|
12144 # Commands to make compiler produce verbose output that lists |
|
12145 # what "hidden" libraries, object files and flags are used when |
|
12146 # linking a shared library. |
|
12147 # |
|
12148 # There doesn't appear to be a way to prevent this compiler from |
|
12149 # explicitly linking system object files so we need to strip them |
|
12150 # from the output so that they don't get included in the library |
|
12151 # dependencies. |
|
12152 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' |
|
12153 ;; |
|
12154 *) |
|
12155 if test "$GXX" = yes; then |
|
12156 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' |
|
12157 else |
|
12158 # FIXME: insert proper C++ library support |
|
12159 ld_shlibs_CXX=no |
|
12160 fi |
|
12161 ;; |
|
12162 esac |
|
12163 ;; |
|
12164 hpux10*|hpux11*) |
|
12165 if test $with_gnu_ld = no; then |
|
12166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12167 hardcode_libdir_separator_CXX=: |
|
12168 |
|
12169 case $host_cpu in |
|
12170 hppa*64*|ia64*) ;; |
|
12171 *) |
|
12172 export_dynamic_flag_spec_CXX='${wl}-E' |
|
12173 ;; |
|
12174 esac |
|
12175 fi |
|
12176 case $host_cpu in |
|
12177 hppa*64*|ia64*) |
|
12178 hardcode_direct_CXX=no |
|
12179 hardcode_shlibpath_var_CXX=no |
|
12180 ;; |
|
12181 *) |
|
12182 hardcode_direct_CXX=yes |
|
12183 hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12184 # but as the default |
|
12185 # location of the library. |
|
12186 ;; |
|
12187 esac |
|
12188 |
|
12189 case $cc_basename in |
|
12190 CC*) |
|
12191 # FIXME: insert proper C++ library support |
|
12192 ld_shlibs_CXX=no |
|
12193 ;; |
|
12194 aCC*) |
|
12195 case $host_cpu in |
|
12196 hppa*64*) |
|
12197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12198 ;; |
|
12199 ia64*) |
|
12200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12201 ;; |
|
12202 *) |
|
12203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12204 ;; |
|
12205 esac |
|
12206 # Commands to make compiler produce verbose output that lists |
|
12207 # what "hidden" libraries, object files and flags are used when |
|
12208 # linking a shared library. |
|
12209 # |
|
12210 # There doesn't appear to be a way to prevent this compiler from |
|
12211 # explicitly linking system object files so we need to strip them |
|
12212 # from the output so that they don't get included in the library |
|
12213 # dependencies. |
|
12214 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' |
|
12215 ;; |
|
12216 *) |
|
12217 if test "$GXX" = yes; then |
|
12218 if test $with_gnu_ld = no; then |
|
12219 case $host_cpu in |
|
12220 hppa*64*) |
|
12221 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12222 ;; |
|
12223 ia64*) |
|
12224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12225 ;; |
|
12226 *) |
|
12227 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' |
|
12228 ;; |
|
12229 esac |
|
12230 fi |
|
12231 else |
|
12232 # FIXME: insert proper C++ library support |
|
12233 ld_shlibs_CXX=no |
|
12234 fi |
|
12235 ;; |
|
12236 esac |
|
12237 ;; |
|
12238 interix[3-9]*) |
|
12239 hardcode_direct_CXX=no |
|
12240 hardcode_shlibpath_var_CXX=no |
|
12241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12242 export_dynamic_flag_spec_CXX='${wl}-E' |
|
12243 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
12244 # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
12245 # default) and relocated if they conflict, which is a slow very memory |
|
12246 # consuming and fragmenting process. To avoid this, we pick a random, |
|
12247 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
12248 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
12249 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' |
|
12250 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' |
|
12251 ;; |
|
12252 irix5* | irix6*) |
|
12253 case $cc_basename in |
|
12254 CC*) |
|
12255 # SGI C++ |
|
12256 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' |
|
12257 |
|
12258 # Archives containing C++ object files must be created using |
|
12259 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
12260 # necessary to make sure instantiated templates are included |
|
12261 # in the archive. |
|
12262 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
12263 ;; |
|
12264 *) |
|
12265 if test "$GXX" = yes; then |
|
12266 if test "$with_gnu_ld" = no; then |
|
12267 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' |
|
12268 else |
|
12269 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' |
|
12270 fi |
|
12271 fi |
|
12272 link_all_deplibs_CXX=yes |
|
12273 ;; |
|
12274 esac |
|
12275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12276 hardcode_libdir_separator_CXX=: |
|
12277 ;; |
|
12278 linux* | k*bsd*-gnu) |
|
12279 case $cc_basename in |
|
12280 KCC*) |
|
12281 # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
12282 |
|
12283 # KCC will only create a shared library if the output file |
|
12284 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
12285 # to its proper name (with version) after linking. |
|
12286 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' |
|
12287 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' |
|
12288 # Commands to make compiler produce verbose output that lists |
|
12289 # what "hidden" libraries, object files and flags are used when |
|
12290 # linking a shared library. |
|
12291 # |
|
12292 # There doesn't appear to be a way to prevent this compiler from |
|
12293 # explicitly linking system object files so we need to strip them |
|
12294 # from the output so that they don't get included in the library |
|
12295 # dependencies. |
|
12296 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' |
|
12297 |
|
12298 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
12299 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12300 |
|
12301 # Archives containing C++ object files must be created using |
|
12302 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
12303 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
12304 ;; |
|
12305 icpc*) |
|
12306 # Intel C++ |
|
12307 with_gnu_ld=yes |
|
12308 # version 8.0 and above of icpc choke on multiply defined symbols |
|
12309 # if we add $predep_objects and $postdep_objects, however 7.1 and |
|
12310 # earlier do not add the objects themselves. |
|
12311 case `$CC -V 2>&1` in |
|
12312 *"Version 7."*) |
|
12313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12314 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' |
|
12315 ;; |
|
12316 *) # Version 8.0 or newer |
|
12317 tmp_idyn= |
|
12318 case $host_cpu in |
|
12319 ia64*) tmp_idyn=' -i_dynamic';; |
|
12320 esac |
|
12321 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12322 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' |
|
12323 ;; |
|
12324 esac |
|
12325 archive_cmds_need_lc_CXX=no |
|
12326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
12329 ;; |
|
12330 pgCC* | pgcpp*) |
|
12331 # Portland Group C++ compiler |
|
12332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
12333 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' |
|
12334 |
|
12335 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
12336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12337 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' |
|
12338 ;; |
|
12339 cxx*) |
|
12340 # Compaq C++ |
|
12341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12342 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' |
|
12343 |
|
12344 runpath_var=LD_RUN_PATH |
|
12345 hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
12346 hardcode_libdir_separator_CXX=: |
|
12347 |
|
12348 # Commands to make compiler produce verbose output that lists |
|
12349 # what "hidden" libraries, object files and flags are used when |
|
12350 # linking a shared library. |
|
12351 # |
|
12352 # There doesn't appear to be a way to prevent this compiler from |
|
12353 # explicitly linking system object files so we need to strip them |
|
12354 # from the output so that they don't get included in the library |
|
12355 # dependencies. |
|
12356 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' |
|
12357 ;; |
|
12358 *) |
|
12359 case `$CC -V 2>&1 | sed 5q` in |
|
12360 *Sun\ C*) |
|
12361 # Sun C++ 5.9 |
|
12362 no_undefined_flag_CXX=' -zdefs' |
|
12363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12364 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
|
12365 hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12366 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
12367 |
|
12368 # Not sure whether something based on |
|
12369 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
|
12370 # would be better. |
|
12371 output_verbose_link_cmd='echo' |
|
12372 |
|
12373 # Archives containing C++ object files must be created using |
|
12374 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
12375 # necessary to make sure instantiated templates are included |
|
12376 # in the archive. |
|
12377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
12378 ;; |
|
12379 esac |
|
12380 ;; |
|
12381 esac |
|
12382 ;; |
|
12383 lynxos*) |
|
12384 # FIXME: insert proper C++ library support |
|
12385 ld_shlibs_CXX=no |
|
12386 ;; |
|
12387 m88k*) |
|
12388 # FIXME: insert proper C++ library support |
|
12389 ld_shlibs_CXX=no |
|
12390 ;; |
|
12391 mvs*) |
|
12392 case $cc_basename in |
|
12393 cxx*) |
|
12394 # FIXME: insert proper C++ library support |
|
12395 ld_shlibs_CXX=no |
|
12396 ;; |
|
12397 *) |
|
12398 # FIXME: insert proper C++ library support |
|
12399 ld_shlibs_CXX=no |
|
12400 ;; |
|
12401 esac |
|
12402 ;; |
|
12403 netbsd*) |
|
12404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
12405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
12406 wlarc= |
|
12407 hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12408 hardcode_direct_CXX=yes |
|
12409 hardcode_shlibpath_var_CXX=no |
|
12410 fi |
|
12411 # Workaround some broken pre-1.5 toolchains |
|
12412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
12413 ;; |
|
12414 openbsd2*) |
|
12415 # C++ shared libraries are fairly broken |
|
12416 ld_shlibs_CXX=no |
|
12417 ;; |
|
12418 openbsd*) |
|
12419 if test -f /usr/libexec/ld.so; then |
|
12420 hardcode_direct_CXX=yes |
|
12421 hardcode_shlibpath_var_CXX=no |
|
12422 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
12423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
12425 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
12426 export_dynamic_flag_spec_CXX='${wl}-E' |
|
12427 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
12428 fi |
|
12429 output_verbose_link_cmd='echo' |
|
12430 else |
|
12431 ld_shlibs_CXX=no |
|
12432 fi |
|
12433 ;; |
|
12434 osf3*) |
|
12435 case $cc_basename in |
|
12436 KCC*) |
|
12437 # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
12438 |
|
12439 # KCC will only create a shared library if the output file |
|
12440 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
12441 # to its proper name (with version) after linking. |
|
12442 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' |
|
12443 |
|
12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12445 hardcode_libdir_separator_CXX=: |
|
12446 |
|
12447 # Archives containing C++ object files must be created using |
|
12448 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
12449 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
12450 |
|
12451 ;; |
|
12452 RCC*) |
|
12453 # Rational C++ 2.4.1 |
|
12454 # FIXME: insert proper C++ library support |
|
12455 ld_shlibs_CXX=no |
|
12456 ;; |
|
12457 cxx*) |
|
12458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
12459 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' |
|
12460 |
|
12461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12462 hardcode_libdir_separator_CXX=: |
|
12463 |
|
12464 # Commands to make compiler produce verbose output that lists |
|
12465 # what "hidden" libraries, object files and flags are used when |
|
12466 # linking a shared library. |
|
12467 # |
|
12468 # There doesn't appear to be a way to prevent this compiler from |
|
12469 # explicitly linking system object files so we need to strip them |
|
12470 # from the output so that they don't get included in the library |
|
12471 # dependencies. |
|
12472 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' |
|
12473 ;; |
|
12474 *) |
|
12475 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
12476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
12477 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' |
|
12478 |
|
12479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12480 hardcode_libdir_separator_CXX=: |
|
12481 |
|
12482 # Commands to make compiler produce verbose output that lists |
|
12483 # what "hidden" libraries, object files and flags are used when |
|
12484 # linking a shared library. |
|
12485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
12486 |
|
12487 else |
|
12488 # FIXME: insert proper C++ library support |
|
12489 ld_shlibs_CXX=no |
|
12490 fi |
|
12491 ;; |
|
12492 esac |
|
12493 ;; |
|
12494 osf4* | osf5*) |
|
12495 case $cc_basename in |
|
12496 KCC*) |
|
12497 # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
12498 |
|
12499 # KCC will only create a shared library if the output file |
|
12500 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
12501 # to its proper name (with version) after linking. |
|
12502 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' |
|
12503 |
|
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12505 hardcode_libdir_separator_CXX=: |
|
12506 |
|
12507 # Archives containing C++ object files must be created using |
|
12508 # the KAI C++ compiler. |
|
12509 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
12510 ;; |
|
12511 RCC*) |
|
12512 # Rational C++ 2.4.1 |
|
12513 # FIXME: insert proper C++ library support |
|
12514 ld_shlibs_CXX=no |
|
12515 ;; |
|
12516 cxx*) |
|
12517 allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
12518 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' |
|
12519 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
12520 echo "-hidden">> $lib.exp~ |
|
12521 $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~ |
|
12522 $rm $lib.exp' |
|
12523 |
|
12524 hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
12525 hardcode_libdir_separator_CXX=: |
|
12526 |
|
12527 # Commands to make compiler produce verbose output that lists |
|
12528 # what "hidden" libraries, object files and flags are used when |
|
12529 # linking a shared library. |
|
12530 # |
|
12531 # There doesn't appear to be a way to prevent this compiler from |
|
12532 # explicitly linking system object files so we need to strip them |
|
12533 # from the output so that they don't get included in the library |
|
12534 # dependencies. |
|
12535 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' |
|
12536 ;; |
|
12537 *) |
|
12538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
12539 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
12540 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' |
|
12541 |
|
12542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12543 hardcode_libdir_separator_CXX=: |
|
12544 |
|
12545 # Commands to make compiler produce verbose output that lists |
|
12546 # what "hidden" libraries, object files and flags are used when |
|
12547 # linking a shared library. |
|
12548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
12549 |
|
12550 else |
|
12551 # FIXME: insert proper C++ library support |
|
12552 ld_shlibs_CXX=no |
|
12553 fi |
|
12554 ;; |
|
12555 esac |
|
12556 ;; |
|
12557 psos*) |
|
12558 # FIXME: insert proper C++ library support |
|
12559 ld_shlibs_CXX=no |
|
12560 ;; |
|
12561 sunos4*) |
|
12562 case $cc_basename in |
|
12563 CC*) |
|
12564 # Sun C++ 4.x |
|
12565 # FIXME: insert proper C++ library support |
|
12566 ld_shlibs_CXX=no |
|
12567 ;; |
|
12568 lcc*) |
|
12569 # Lucid |
|
12570 # FIXME: insert proper C++ library support |
|
12571 ld_shlibs_CXX=no |
|
12572 ;; |
|
12573 *) |
|
12574 # FIXME: insert proper C++ library support |
|
12575 ld_shlibs_CXX=no |
|
12576 ;; |
|
12577 esac |
|
12578 ;; |
|
12579 solaris*) |
|
12580 case $cc_basename in |
|
12581 CC*) |
|
12582 # Sun C++ 4.2, 5.x and Centerline C++ |
|
12583 archive_cmds_need_lc_CXX=yes |
|
12584 no_undefined_flag_CXX=' -zdefs' |
|
12585 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
12587 $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' |
|
12588 |
|
12589 hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12590 hardcode_shlibpath_var_CXX=no |
|
12591 case $host_os in |
|
12592 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
12593 *) |
|
12594 # The compiler driver will combine and reorder linker options, |
|
12595 # but understands `-z linker_flag'. |
|
12596 # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
12597 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
|
12598 ;; |
|
12599 esac |
|
12600 link_all_deplibs_CXX=yes |
|
12601 |
|
12602 output_verbose_link_cmd='echo' |
|
12603 |
|
12604 # Archives containing C++ object files must be created using |
|
12605 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
12606 # necessary to make sure instantiated templates are included |
|
12607 # in the archive. |
|
12608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
12609 ;; |
|
12610 gcx*) |
|
12611 # Green Hills C++ Compiler |
|
12612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12613 |
|
12614 # The C++ compiler must be used to create the archive. |
|
12615 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
12616 ;; |
|
12617 *) |
|
12618 # GNU C++ compiler with Solaris linker |
|
12619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
12620 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
12621 if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
12622 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
12624 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
12625 |
|
12626 # Commands to make compiler produce verbose output that lists |
|
12627 # what "hidden" libraries, object files and flags are used when |
|
12628 # linking a shared library. |
|
12629 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
12630 else |
|
12631 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
12632 # platform. |
|
12633 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12634 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
12635 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
12636 |
|
12637 # Commands to make compiler produce verbose output that lists |
|
12638 # what "hidden" libraries, object files and flags are used when |
|
12639 # linking a shared library. |
|
12640 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
12641 fi |
|
12642 |
|
12643 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
12644 case $host_os in |
|
12645 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
12646 *) |
|
12647 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
12648 ;; |
|
12649 esac |
|
12650 fi |
|
12651 ;; |
|
12652 esac |
|
12653 ;; |
|
12654 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
12655 no_undefined_flag_CXX='${wl}-z,text' |
|
12656 archive_cmds_need_lc_CXX=no |
|
12657 hardcode_shlibpath_var_CXX=no |
|
12658 runpath_var='LD_RUN_PATH' |
|
12659 |
|
12660 case $cc_basename in |
|
12661 CC*) |
|
12662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12664 ;; |
|
12665 *) |
|
12666 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12667 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12668 ;; |
|
12669 esac |
|
12670 ;; |
|
12671 sysv5* | sco3.2v5* | sco5v6*) |
|
12672 # Note: We can NOT use -z defs as we might desire, because we do not |
|
12673 # link with -lc, and that would cause any symbols used from libc to |
|
12674 # always be unresolved, which means just about no library would |
|
12675 # ever link correctly. If we're not using GNU ld we use -z text |
|
12676 # though, which does catch some bad symbols but isn't as heavy-handed |
|
12677 # as -z defs. |
|
12678 # For security reasons, it is highly recommended that you always |
|
12679 # use absolute paths for naming shared libraries, and exclude the |
|
12680 # DT_RUNPATH tag from executables and libraries. But doing so |
|
12681 # requires that you compile everything twice, which is a pain. |
|
12682 # So that behaviour is only enabled if SCOABSPATH is set to a |
|
12683 # non-empty value in the environment. Most likely only useful for |
|
12684 # creating official distributions of packages. |
|
12685 # This is a hack until libtool officially supports absolute path |
|
12686 # names for shared libraries. |
|
12687 no_undefined_flag_CXX='${wl}-z,text' |
|
12688 allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
12689 archive_cmds_need_lc_CXX=no |
|
12690 hardcode_shlibpath_var_CXX=no |
|
12691 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
12692 hardcode_libdir_separator_CXX=':' |
|
12693 link_all_deplibs_CXX=yes |
|
12694 export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
12695 runpath_var='LD_RUN_PATH' |
|
12696 |
|
12697 case $cc_basename in |
|
12698 CC*) |
|
12699 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12700 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12701 ;; |
|
12702 *) |
|
12703 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12704 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12705 ;; |
|
12706 esac |
|
12707 ;; |
|
12708 tandem*) |
|
12709 case $cc_basename in |
|
12710 NCC*) |
|
12711 # NonStop-UX NCC 3.20 |
|
12712 # FIXME: insert proper C++ library support |
|
12713 ld_shlibs_CXX=no |
|
12714 ;; |
|
12715 *) |
|
12716 # FIXME: insert proper C++ library support |
|
12717 ld_shlibs_CXX=no |
|
12718 ;; |
|
12719 esac |
|
12720 ;; |
|
12721 vxworks*) |
|
12722 # FIXME: insert proper C++ library support |
|
12723 ld_shlibs_CXX=no |
|
12724 ;; |
|
12725 *) |
|
12726 # FIXME: insert proper C++ library support |
|
12727 ld_shlibs_CXX=no |
|
12728 ;; |
|
12729 esac |
|
12730 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
12731 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
|
12732 test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
12733 |
|
12734 GCC_CXX="$GXX" |
|
12735 LD_CXX="$LD" |
|
12736 |
|
12737 cat > conftest.$ac_ext <<EOF |
|
12738 class Foo |
|
12739 { |
|
12740 public: |
|
12741 Foo (void) { a = 0; } |
|
12742 private: |
|
12743 int a; |
|
12744 }; |
|
12745 EOF |
|
12746 |
|
12747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
12748 (eval $ac_compile) 2>&5 |
|
12749 ac_status=$? |
|
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12751 (exit $ac_status); }; then |
|
12752 # Parse the compiler output and extract the necessary |
|
12753 # objects, libraries and library flags. |
|
12754 |
|
12755 # Sentinel used to keep track of whether or not we are before |
|
12756 # the conftest object file. |
|
12757 pre_test_object_deps_done=no |
|
12758 |
|
12759 # The `*' in the case matches for architectures that use `case' in |
|
12760 # $output_verbose_cmd can trigger glob expansion during the loop |
|
12761 # eval without this substitution. |
|
12762 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
|
12763 |
|
12764 for p in `eval $output_verbose_link_cmd`; do |
|
12765 case $p in |
|
12766 |
|
12767 -L* | -R* | -l*) |
|
12768 # Some compilers place space between "-{L,R}" and the path. |
|
12769 # Remove the space. |
|
12770 if test $p = "-L" \ |
|
12771 || test $p = "-R"; then |
|
12772 prev=$p |
|
12773 continue |
|
12774 else |
|
12775 prev= |
|
12776 fi |
|
12777 |
|
12778 if test "$pre_test_object_deps_done" = no; then |
|
12779 case $p in |
|
12780 -L* | -R*) |
|
12781 # Internal compiler library paths should come after those |
|
12782 # provided the user. The postdeps already come after the |
|
12783 # user supplied libs so there is no need to process them. |
|
12784 if test -z "$compiler_lib_search_path_CXX"; then |
|
12785 compiler_lib_search_path_CXX="${prev}${p}" |
|
12786 else |
|
12787 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
12788 fi |
|
12789 ;; |
|
12790 # The "-l" case would never come before the object being |
|
12791 # linked, so don't bother handling this case. |
|
12792 esac |
|
12793 else |
|
12794 if test -z "$postdeps_CXX"; then |
|
12795 postdeps_CXX="${prev}${p}" |
|
12796 else |
|
12797 postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
12798 fi |
|
12799 fi |
|
12800 ;; |
|
12801 |
|
12802 *.$objext) |
|
12803 # This assumes that the test object file only shows up |
|
12804 # once in the compiler output. |
|
12805 if test "$p" = "conftest.$objext"; then |
|
12806 pre_test_object_deps_done=yes |
|
12807 continue |
|
12808 fi |
|
12809 |
|
12810 if test "$pre_test_object_deps_done" = no; then |
|
12811 if test -z "$predep_objects_CXX"; then |
|
12812 predep_objects_CXX="$p" |
|
12813 else |
|
12814 predep_objects_CXX="$predep_objects_CXX $p" |
|
12815 fi |
|
12816 else |
|
12817 if test -z "$postdep_objects_CXX"; then |
|
12818 postdep_objects_CXX="$p" |
|
12819 else |
|
12820 postdep_objects_CXX="$postdep_objects_CXX $p" |
|
12821 fi |
|
12822 fi |
|
12823 ;; |
|
12824 |
|
12825 *) ;; # Ignore the rest. |
|
12826 |
|
12827 esac |
|
12828 done |
|
12829 |
|
12830 # Clean up. |
|
12831 rm -f a.out a.exe |
|
12832 else |
|
12833 echo "libtool.m4: error: problem compiling CXX test program" |
|
12834 fi |
|
12835 |
|
12836 $rm -f confest.$objext |
|
12837 |
|
12838 compiler_lib_search_dirs_CXX= |
|
12839 if test -n "$compiler_lib_search_path_CXX"; then |
|
12840 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
|
12841 fi |
|
12842 |
|
12843 # PORTME: override above test on systems where it is broken |
|
12844 case $host_os in |
|
12845 interix[3-9]*) |
|
12846 # Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
12847 # hack all around it, let's just trust "g++" to DTRT. |
|
12848 predep_objects_CXX= |
|
12849 postdep_objects_CXX= |
|
12850 postdeps_CXX= |
|
12851 ;; |
|
12852 |
|
12853 linux*) |
|
12854 case `$CC -V 2>&1 | sed 5q` in |
|
12855 *Sun\ C*) |
|
12856 # Sun C++ 5.9 |
|
12857 # |
|
12858 # The more standards-conforming stlport4 library is |
|
12859 # incompatible with the Cstd library. Avoid specifying |
|
12860 # it if it's in CXXFLAGS. Ignore libCrun as |
|
12861 # -library=stlport4 depends on it. |
|
12862 case " $CXX $CXXFLAGS " in |
|
12863 *" -library=stlport4 "*) |
|
12864 solaris_use_stlport4=yes |
|
12865 ;; |
|
12866 esac |
|
12867 if test "$solaris_use_stlport4" != yes; then |
|
12868 postdeps_CXX='-library=Cstd -library=Crun' |
|
12869 fi |
|
12870 ;; |
|
12871 esac |
|
12872 ;; |
|
12873 |
|
12874 solaris*) |
|
12875 case $cc_basename in |
|
12876 CC*) |
|
12877 # The more standards-conforming stlport4 library is |
|
12878 # incompatible with the Cstd library. Avoid specifying |
|
12879 # it if it's in CXXFLAGS. Ignore libCrun as |
|
12880 # -library=stlport4 depends on it. |
|
12881 case " $CXX $CXXFLAGS " in |
|
12882 *" -library=stlport4 "*) |
|
12883 solaris_use_stlport4=yes |
|
12884 ;; |
|
12885 esac |
|
12886 |
|
12887 # Adding this requires a known-good setup of shared libraries for |
|
12888 # Sun compiler versions before 5.6, else PIC objects from an old |
|
12889 # archive will be linked into the output, leading to subtle bugs. |
|
12890 if test "$solaris_use_stlport4" != yes; then |
|
12891 postdeps_CXX='-library=Cstd -library=Crun' |
|
12892 fi |
|
12893 ;; |
|
12894 esac |
|
12895 ;; |
|
12896 esac |
|
12897 |
|
12898 case " $postdeps_CXX " in |
|
12899 *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
12900 esac |
|
12901 |
|
12902 lt_prog_compiler_wl_CXX= |
|
12903 lt_prog_compiler_pic_CXX= |
|
12904 lt_prog_compiler_static_CXX= |
|
12905 |
|
12906 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
12907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
12908 |
|
12909 # C++ specific cases for pic, static, wl, etc. |
|
12910 if test "$GXX" = yes; then |
|
12911 lt_prog_compiler_wl_CXX='-Wl,' |
|
12912 lt_prog_compiler_static_CXX='-static' |
|
12913 |
|
12914 case $host_os in |
|
12915 aix*) |
|
12916 # All AIX code is PIC. |
|
12917 if test "$host_cpu" = ia64; then |
|
12918 # AIX 5 now supports IA64 processor |
|
12919 lt_prog_compiler_static_CXX='-Bstatic' |
|
12920 fi |
|
12921 ;; |
|
12922 amigaos*) |
|
12923 # FIXME: we need at least 68020 code to build shared libraries, but |
|
12924 # adding the `-m68020' flag to GCC prevents building anything better, |
|
12925 # like `-m68040'. |
|
12926 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
12927 ;; |
|
12928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
12929 # PIC is the default for these OSes. |
|
12930 ;; |
|
12931 mingw* | cygwin* | os2* | pw32*) |
|
12932 # This hack is so that the source file can tell whether it is being |
|
12933 # built for inclusion in a dll (and should export symbols for example). |
|
12934 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
12935 # (--disable-auto-import) libraries |
|
12936 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
12937 ;; |
|
12938 darwin* | rhapsody*) |
|
12939 # PIC is the default on this platform |
|
12940 # Common symbols not allowed in MH_DYLIB files |
|
12941 lt_prog_compiler_pic_CXX='-fno-common' |
|
12942 ;; |
|
12943 *djgpp*) |
|
12944 # DJGPP does not support shared libraries at all |
|
12945 lt_prog_compiler_pic_CXX= |
|
12946 ;; |
|
12947 interix[3-9]*) |
|
12948 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
12949 # Instead, we relocate shared libraries at runtime. |
|
12950 ;; |
|
12951 sysv4*MP*) |
|
12952 if test -d /usr/nec; then |
|
12953 lt_prog_compiler_pic_CXX=-Kconform_pic |
|
12954 fi |
|
12955 ;; |
|
12956 hpux*) |
|
12957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
12958 # not for PA HP-UX. |
|
12959 case $host_cpu in |
|
12960 hppa*64*|ia64*) |
|
12961 ;; |
|
12962 *) |
|
12963 lt_prog_compiler_pic_CXX='-fPIC' |
|
12964 ;; |
|
12965 esac |
|
12966 ;; |
|
12967 *) |
|
12968 lt_prog_compiler_pic_CXX='-fPIC' |
|
12969 ;; |
|
12970 esac |
|
12971 else |
|
12972 case $host_os in |
|
12973 aix[4-9]*) |
|
12974 # All AIX code is PIC. |
|
12975 if test "$host_cpu" = ia64; then |
|
12976 # AIX 5 now supports IA64 processor |
|
12977 lt_prog_compiler_static_CXX='-Bstatic' |
|
12978 else |
|
12979 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
12980 fi |
|
12981 ;; |
|
12982 chorus*) |
|
12983 case $cc_basename in |
|
12984 cxch68*) |
|
12985 # Green Hills C++ Compiler |
|
12986 # _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" |
|
12987 ;; |
|
12988 esac |
|
12989 ;; |
|
12990 darwin*) |
|
12991 # PIC is the default on this platform |
|
12992 # Common symbols not allowed in MH_DYLIB files |
|
12993 case $cc_basename in |
|
12994 xlc*) |
|
12995 lt_prog_compiler_pic_CXX='-qnocommon' |
|
12996 lt_prog_compiler_wl_CXX='-Wl,' |
|
12997 ;; |
|
12998 esac |
|
12999 ;; |
|
13000 dgux*) |
|
13001 case $cc_basename in |
|
13002 ec++*) |
|
13003 lt_prog_compiler_pic_CXX='-KPIC' |
|
13004 ;; |
|
13005 ghcx*) |
|
13006 # Green Hills C++ Compiler |
|
13007 lt_prog_compiler_pic_CXX='-pic' |
|
13008 ;; |
|
13009 *) |
|
13010 ;; |
|
13011 esac |
|
13012 ;; |
|
13013 freebsd* | dragonfly*) |
|
13014 # FreeBSD uses GNU C++ |
|
13015 ;; |
|
13016 hpux9* | hpux10* | hpux11*) |
|
13017 case $cc_basename in |
|
13018 CC*) |
|
13019 lt_prog_compiler_wl_CXX='-Wl,' |
|
13020 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
13021 if test "$host_cpu" != ia64; then |
|
13022 lt_prog_compiler_pic_CXX='+Z' |
|
13023 fi |
|
13024 ;; |
|
13025 aCC*) |
|
13026 lt_prog_compiler_wl_CXX='-Wl,' |
|
13027 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
13028 case $host_cpu in |
|
13029 hppa*64*|ia64*) |
|
13030 # +Z the default |
|
13031 ;; |
|
13032 *) |
|
13033 lt_prog_compiler_pic_CXX='+Z' |
|
13034 ;; |
|
13035 esac |
|
13036 ;; |
|
13037 *) |
|
13038 ;; |
|
13039 esac |
|
13040 ;; |
|
13041 interix*) |
|
13042 # This is c89, which is MS Visual C++ (no shared libs) |
|
13043 # Anyone wants to do a port? |
|
13044 ;; |
|
13045 irix5* | irix6* | nonstopux*) |
|
13046 case $cc_basename in |
|
13047 CC*) |
|
13048 lt_prog_compiler_wl_CXX='-Wl,' |
|
13049 lt_prog_compiler_static_CXX='-non_shared' |
|
13050 # CC pic flag -KPIC is the default. |
|
13051 ;; |
|
13052 *) |
|
13053 ;; |
|
13054 esac |
|
13055 ;; |
|
13056 linux* | k*bsd*-gnu) |
|
13057 case $cc_basename in |
|
13058 KCC*) |
|
13059 # KAI C++ Compiler |
|
13060 lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13061 lt_prog_compiler_pic_CXX='-fPIC' |
|
13062 ;; |
|
13063 icpc* | ecpc*) |
|
13064 # Intel C++ |
|
13065 lt_prog_compiler_wl_CXX='-Wl,' |
|
13066 lt_prog_compiler_pic_CXX='-KPIC' |
|
13067 lt_prog_compiler_static_CXX='-static' |
|
13068 ;; |
|
13069 pgCC* | pgcpp*) |
|
13070 # Portland Group C++ compiler. |
|
13071 lt_prog_compiler_wl_CXX='-Wl,' |
|
13072 lt_prog_compiler_pic_CXX='-fpic' |
|
13073 lt_prog_compiler_static_CXX='-Bstatic' |
|
13074 ;; |
|
13075 cxx*) |
|
13076 # Compaq C++ |
|
13077 # Make sure the PIC flag is empty. It appears that all Alpha |
|
13078 # Linux and Compaq Tru64 Unix objects are PIC. |
|
13079 lt_prog_compiler_pic_CXX= |
|
13080 lt_prog_compiler_static_CXX='-non_shared' |
|
13081 ;; |
|
13082 *) |
|
13083 case `$CC -V 2>&1 | sed 5q` in |
|
13084 *Sun\ C*) |
|
13085 # Sun C++ 5.9 |
|
13086 lt_prog_compiler_pic_CXX='-KPIC' |
|
13087 lt_prog_compiler_static_CXX='-Bstatic' |
|
13088 lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
13089 ;; |
|
13090 esac |
|
13091 ;; |
|
13092 esac |
|
13093 ;; |
|
13094 lynxos*) |
|
13095 ;; |
|
13096 m88k*) |
|
13097 ;; |
|
13098 mvs*) |
|
13099 case $cc_basename in |
|
13100 cxx*) |
|
13101 lt_prog_compiler_pic_CXX='-W c,exportall' |
|
13102 ;; |
|
13103 *) |
|
13104 ;; |
|
13105 esac |
|
13106 ;; |
|
13107 netbsd*) |
|
13108 ;; |
|
13109 osf3* | osf4* | osf5*) |
|
13110 case $cc_basename in |
|
13111 KCC*) |
|
13112 lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13113 ;; |
|
13114 RCC*) |
|
13115 # Rational C++ 2.4.1 |
|
13116 lt_prog_compiler_pic_CXX='-pic' |
|
13117 ;; |
|
13118 cxx*) |
|
13119 # Digital/Compaq C++ |
|
13120 lt_prog_compiler_wl_CXX='-Wl,' |
|
13121 # Make sure the PIC flag is empty. It appears that all Alpha |
|
13122 # Linux and Compaq Tru64 Unix objects are PIC. |
|
13123 lt_prog_compiler_pic_CXX= |
|
13124 lt_prog_compiler_static_CXX='-non_shared' |
|
13125 ;; |
|
13126 *) |
|
13127 ;; |
|
13128 esac |
|
13129 ;; |
|
13130 psos*) |
|
13131 ;; |
|
13132 solaris*) |
|
13133 case $cc_basename in |
|
13134 CC*) |
|
13135 # Sun C++ 4.2, 5.x and Centerline C++ |
|
13136 lt_prog_compiler_pic_CXX='-KPIC' |
|
13137 lt_prog_compiler_static_CXX='-Bstatic' |
|
13138 lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
13139 ;; |
|
13140 gcx*) |
|
13141 # Green Hills C++ Compiler |
|
13142 lt_prog_compiler_pic_CXX='-PIC' |
|
13143 ;; |
|
13144 *) |
|
13145 ;; |
|
13146 esac |
|
13147 ;; |
|
13148 sunos4*) |
|
13149 case $cc_basename in |
|
13150 CC*) |
|
13151 # Sun C++ 4.x |
|
13152 lt_prog_compiler_pic_CXX='-pic' |
|
13153 lt_prog_compiler_static_CXX='-Bstatic' |
|
13154 ;; |
|
13155 lcc*) |
|
13156 # Lucid |
|
13157 lt_prog_compiler_pic_CXX='-pic' |
|
13158 ;; |
|
13159 *) |
|
13160 ;; |
|
13161 esac |
|
13162 ;; |
|
13163 tandem*) |
|
13164 case $cc_basename in |
|
13165 NCC*) |
|
13166 # NonStop-UX NCC 3.20 |
|
13167 lt_prog_compiler_pic_CXX='-KPIC' |
|
13168 ;; |
|
13169 *) |
|
13170 ;; |
|
13171 esac |
|
13172 ;; |
|
13173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
13174 case $cc_basename in |
|
13175 CC*) |
|
13176 lt_prog_compiler_wl_CXX='-Wl,' |
|
13177 lt_prog_compiler_pic_CXX='-KPIC' |
|
13178 lt_prog_compiler_static_CXX='-Bstatic' |
|
13179 ;; |
|
13180 esac |
|
13181 ;; |
|
13182 vxworks*) |
|
13183 ;; |
|
13184 *) |
|
13185 lt_prog_compiler_can_build_shared_CXX=no |
|
13186 ;; |
|
13187 esac |
|
13188 fi |
|
13189 |
|
13190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
13191 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
|
13192 |
|
13193 # |
|
13194 # Check to make sure the PIC flag actually works. |
|
13195 # |
|
13196 if test -n "$lt_prog_compiler_pic_CXX"; then |
|
13197 |
|
13198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
13199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
|
13200 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
|
13201 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13202 else |
|
13203 lt_cv_prog_compiler_pic_works_CXX=no |
|
13204 ac_outfile=conftest.$ac_objext |
|
13205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13206 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
13207 # Insert the option either (1) after the last *FLAGS variable, or |
|
13208 # (2) before a word containing "conftest.", or (3) at the end. |
|
13209 # Note that $ac_compile itself does not contain backslashes and begins |
|
13210 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13211 # The option is referenced via a variable to avoid confusing sed. |
|
13212 lt_compile=`echo "$ac_compile" | $SED \ |
|
13213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
13214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13215 -e 's:$: $lt_compiler_flag:'` |
|
13216 (eval echo "\"\$as_me:13216: $lt_compile\"" >&5) |
|
13217 (eval "$lt_compile" 2>conftest.err) |
|
13218 ac_status=$? |
|
13219 cat conftest.err >&5 |
|
13220 echo "$as_me:13220: \$? = $ac_status" >&5 |
|
13221 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
13222 # The compiler can only warn and ignore the option if not recognized |
|
13223 # So say no if there are warnings other than the usual output. |
|
13224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
13225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
13227 lt_cv_prog_compiler_pic_works_CXX=yes |
|
13228 fi |
|
13229 fi |
|
13230 $rm conftest* |
|
13231 |
|
13232 fi |
|
13233 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
|
13234 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
|
13235 |
|
13236 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
|
13237 case $lt_prog_compiler_pic_CXX in |
|
13238 "" | " "*) ;; |
|
13239 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
13240 esac |
|
13241 else |
|
13242 lt_prog_compiler_pic_CXX= |
|
13243 lt_prog_compiler_can_build_shared_CXX=no |
|
13244 fi |
|
13245 |
|
13246 fi |
|
13247 case $host_os in |
|
13248 # For platforms which do not support PIC, -DPIC is meaningless: |
|
13249 *djgpp*) |
|
13250 lt_prog_compiler_pic_CXX= |
|
13251 ;; |
|
13252 *) |
|
13253 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
13254 ;; |
|
13255 esac |
|
13256 |
|
13257 # |
|
13258 # Check to make sure the static flag actually works. |
|
13259 # |
|
13260 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
13261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
13262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
13263 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
|
13264 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13265 else |
|
13266 lt_cv_prog_compiler_static_works_CXX=no |
|
13267 save_LDFLAGS="$LDFLAGS" |
|
13268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
13269 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
13270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
13271 # The linker can only warn and ignore the option if not recognized |
|
13272 # So say no if there are warnings |
|
13273 if test -s conftest.err; then |
|
13274 # Append any errors to the config.log. |
|
13275 cat conftest.err 1>&5 |
|
13276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
13277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13278 if diff conftest.exp conftest.er2 >/dev/null; then |
|
13279 lt_cv_prog_compiler_static_works_CXX=yes |
|
13280 fi |
|
13281 else |
|
13282 lt_cv_prog_compiler_static_works_CXX=yes |
|
13283 fi |
|
13284 fi |
|
13285 $rm -r conftest* |
|
13286 LDFLAGS="$save_LDFLAGS" |
|
13287 |
|
13288 fi |
|
13289 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
|
13290 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } |
|
13291 |
|
13292 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
|
13293 : |
|
13294 else |
|
13295 lt_prog_compiler_static_CXX= |
|
13296 fi |
|
13297 |
|
13298 |
|
13299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
13300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
13301 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
13302 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
13303 else |
|
13304 lt_cv_prog_compiler_c_o_CXX=no |
|
13305 $rm -r conftest 2>/dev/null |
|
13306 mkdir conftest |
|
13307 cd conftest |
|
13308 mkdir out |
|
13309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13310 |
|
13311 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
13312 # Insert the option either (1) after the last *FLAGS variable, or |
|
13313 # (2) before a word containing "conftest.", or (3) at the end. |
|
13314 # Note that $ac_compile itself does not contain backslashes and begins |
|
13315 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13316 lt_compile=`echo "$ac_compile" | $SED \ |
|
13317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
13318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13319 -e 's:$: $lt_compiler_flag:'` |
|
13320 (eval echo "\"\$as_me:13320: $lt_compile\"" >&5) |
|
13321 (eval "$lt_compile" 2>out/conftest.err) |
|
13322 ac_status=$? |
|
13323 cat out/conftest.err >&5 |
|
13324 echo "$as_me:13324: \$? = $ac_status" >&5 |
|
13325 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
13326 then |
|
13327 # The compiler can only warn and ignore the option if not recognized |
|
13328 # So say no if there are warnings |
|
13329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
13330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
13331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
13332 lt_cv_prog_compiler_c_o_CXX=yes |
|
13333 fi |
|
13334 fi |
|
13335 chmod u+w . 2>&5 |
|
13336 $rm conftest* |
|
13337 # SGI C++ compiler will create directory out/ii_files/ for |
|
13338 # template instantiation |
|
13339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
13340 $rm out/* && rmdir out |
|
13341 cd .. |
|
13342 rmdir conftest |
|
13343 $rm conftest* |
|
13344 |
|
13345 fi |
|
13346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
13347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
|
13348 |
|
13349 |
|
13350 hard_links="nottested" |
|
13351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
13352 # do not overwrite the value of need_locks provided by the user |
|
13353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
13354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
13355 hard_links=yes |
|
13356 $rm conftest* |
|
13357 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13358 touch conftest.a |
|
13359 ln conftest.a conftest.b 2>&5 || hard_links=no |
|
13360 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13361 { echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
13362 echo "${ECHO_T}$hard_links" >&6; } |
|
13363 if test "$hard_links" = no; then |
|
13364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
13365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
13366 need_locks=warn |
|
13367 fi |
|
13368 else |
|
13369 need_locks=no |
|
13370 fi |
|
13371 |
|
13372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
13373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
13374 |
|
13375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13376 case $host_os in |
|
13377 aix[4-9]*) |
|
13378 # If we're using GNU nm, then we don't want the "-C" option. |
|
13379 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
13380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
13381 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' |
|
13382 else |
|
13383 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' |
|
13384 fi |
|
13385 ;; |
|
13386 pw32*) |
|
13387 export_symbols_cmds_CXX="$ltdll_cmds" |
|
13388 ;; |
|
13389 cygwin* | mingw*) |
|
13390 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' |
|
13391 ;; |
|
13392 *) |
|
13393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13394 ;; |
|
13395 esac |
|
13396 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
13397 |
|
13398 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
13399 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
|
13400 test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
13401 |
|
13402 # |
|
13403 # Do we need to explicitly link libc? |
|
13404 # |
|
13405 case "x$archive_cmds_need_lc_CXX" in |
|
13406 x|xyes) |
|
13407 # Assume -lc should be added |
|
13408 archive_cmds_need_lc_CXX=yes |
|
13409 |
|
13410 if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
13411 case $archive_cmds_CXX in |
|
13412 *'~'*) |
|
13413 # FIXME: we may have to deal with multi-command sequences. |
|
13414 ;; |
|
13415 '$CC '*) |
|
13416 # Test whether the compiler implicitly links with -lc since on some |
|
13417 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
13418 # to ld, don't add -lc before -lgcc. |
|
13419 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
13420 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
13421 $rm conftest* |
|
13422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13423 |
|
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
13425 (eval $ac_compile) 2>&5 |
|
13426 ac_status=$? |
|
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13428 (exit $ac_status); } 2>conftest.err; then |
|
13429 soname=conftest |
|
13430 lib=conftest |
|
13431 libobjs=conftest.$ac_objext |
|
13432 deplibs= |
|
13433 wl=$lt_prog_compiler_wl_CXX |
|
13434 pic_flag=$lt_prog_compiler_pic_CXX |
|
13435 compiler_flags=-v |
|
13436 linker_flags=-v |
|
13437 verstring= |
|
13438 output_objdir=. |
|
13439 libname=conftest |
|
13440 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
13441 allow_undefined_flag_CXX= |
|
13442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
13443 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
13444 ac_status=$? |
|
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
13446 (exit $ac_status); } |
|
13447 then |
|
13448 archive_cmds_need_lc_CXX=no |
|
13449 else |
|
13450 archive_cmds_need_lc_CXX=yes |
|
13451 fi |
|
13452 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
13453 else |
|
13454 cat conftest.err 1>&5 |
|
13455 fi |
|
13456 $rm conftest* |
|
13457 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
13458 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
|
13459 ;; |
|
13460 esac |
|
13461 fi |
|
13462 ;; |
|
13463 esac |
|
13464 |
|
13465 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
13466 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
13467 library_names_spec= |
|
13468 libname_spec='lib$name' |
|
13469 soname_spec= |
|
13470 shrext_cmds=".so" |
|
13471 postinstall_cmds= |
|
13472 postuninstall_cmds= |
|
13473 finish_cmds= |
|
13474 finish_eval= |
|
13475 shlibpath_var= |
|
13476 shlibpath_overrides_runpath=unknown |
|
13477 version_type=none |
|
13478 dynamic_linker="$host_os ld.so" |
|
13479 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
13480 |
|
13481 need_lib_prefix=unknown |
|
13482 hardcode_into_libs=no |
|
13483 |
|
13484 # when you set need_version to no, make sure it does not cause -set_version |
|
13485 # flags to be left without arguments |
|
13486 need_version=unknown |
|
13487 |
|
13488 case $host_os in |
|
13489 aix3*) |
|
13490 version_type=linux |
|
13491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
13492 shlibpath_var=LIBPATH |
|
13493 |
|
13494 # AIX 3 has no versioning support, so we append a major version to the name. |
|
13495 soname_spec='${libname}${release}${shared_ext}$major' |
|
13496 ;; |
|
13497 |
|
13498 aix[4-9]*) |
|
13499 version_type=linux |
|
13500 need_lib_prefix=no |
|
13501 need_version=no |
|
13502 hardcode_into_libs=yes |
|
13503 if test "$host_cpu" = ia64; then |
|
13504 # AIX 5 supports IA64 |
|
13505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
13506 shlibpath_var=LD_LIBRARY_PATH |
|
13507 else |
|
13508 # With GCC up to 2.95.x, collect2 would create an import file |
|
13509 # for dependence libraries. The import file would start with |
|
13510 # the line `#! .'. This would cause the generated library to |
|
13511 # depend on `.', always an invalid library. This was fixed in |
|
13512 # development snapshots of GCC prior to 3.0. |
|
13513 case $host_os in |
|
13514 aix4 | aix4.[01] | aix4.[01].*) |
|
13515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
13516 echo ' yes ' |
|
13517 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
13518 : |
|
13519 else |
|
13520 can_build_shared=no |
|
13521 fi |
|
13522 ;; |
|
13523 esac |
|
13524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
13525 # soname into executable. Probably we can add versioning support to |
|
13526 # collect2, so additional links can be useful in future. |
|
13527 if test "$aix_use_runtimelinking" = yes; then |
|
13528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
13529 # instead of lib<name>.a to let people know that these are not |
|
13530 # typical AIX shared libraries. |
|
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13532 else |
|
13533 # We preserve .a as extension for shared libraries through AIX4.2 |
|
13534 # and later when we are not doing run time linking. |
|
13535 library_names_spec='${libname}${release}.a $libname.a' |
|
13536 soname_spec='${libname}${release}${shared_ext}$major' |
|
13537 fi |
|
13538 shlibpath_var=LIBPATH |
|
13539 fi |
|
13540 ;; |
|
13541 |
|
13542 amigaos*) |
|
13543 library_names_spec='$libname.ixlibrary $libname.a' |
|
13544 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
13545 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' |
|
13546 ;; |
|
13547 |
|
13548 beos*) |
|
13549 library_names_spec='${libname}${shared_ext}' |
|
13550 dynamic_linker="$host_os ld.so" |
|
13551 shlibpath_var=LIBRARY_PATH |
|
13552 ;; |
|
13553 |
|
13554 bsdi[45]*) |
|
13555 version_type=linux |
|
13556 need_version=no |
|
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13558 soname_spec='${libname}${release}${shared_ext}$major' |
|
13559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
13560 shlibpath_var=LD_LIBRARY_PATH |
|
13561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
13562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
13563 # the default ld.so.conf also contains /usr/contrib/lib and |
|
13564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
13565 # libtool to hard-code these into programs |
|
13566 ;; |
|
13567 |
|
13568 cygwin* | mingw* | pw32*) |
|
13569 version_type=windows |
|
13570 shrext_cmds=".dll" |
|
13571 need_version=no |
|
13572 need_lib_prefix=no |
|
13573 |
|
13574 case $GCC,$host_os in |
|
13575 yes,cygwin* | yes,mingw* | yes,pw32*) |
|
13576 library_names_spec='$libname.dll.a' |
|
13577 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
13578 postinstall_cmds='base_file=`basename \${file}`~ |
|
13579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
13580 dldir=$destdir/`dirname \$dlpath`~ |
|
13581 test -d \$dldir || mkdir -p \$dldir~ |
|
13582 $install_prog $dir/$dlname \$dldir/$dlname~ |
|
13583 chmod a+x \$dldir/$dlname' |
|
13584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
13585 dlpath=$dir/\$dldll~ |
|
13586 $rm \$dlpath' |
|
13587 shlibpath_overrides_runpath=yes |
|
13588 |
|
13589 case $host_os in |
|
13590 cygwin*) |
|
13591 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
13592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13593 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
13594 ;; |
|
13595 mingw*) |
|
13596 # MinGW DLLs use traditional 'lib' prefix |
|
13597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
13599 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
13600 # It is most probably a Windows format PATH printed by |
|
13601 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
13602 # path with ; separators, and with drive letters. We can handle the |
|
13603 # drive letters (cygwin fileutils understands them), so leave them, |
|
13604 # especially as we might pass files found there to a mingw objdump, |
|
13605 # which wouldn't understand a cygwinified path. Ahh. |
|
13606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
13607 else |
|
13608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
13609 fi |
|
13610 ;; |
|
13611 pw32*) |
|
13612 # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
13613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13614 ;; |
|
13615 esac |
|
13616 ;; |
|
13617 |
|
13618 *) |
|
13619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
13620 ;; |
|
13621 esac |
|
13622 dynamic_linker='Win32 ld.exe' |
|
13623 # FIXME: first we should search . and the directory the executable is in |
|
13624 shlibpath_var=PATH |
|
13625 ;; |
|
13626 |
|
13627 darwin* | rhapsody*) |
|
13628 dynamic_linker="$host_os dyld" |
|
13629 version_type=darwin |
|
13630 need_lib_prefix=no |
|
13631 need_version=no |
|
13632 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
13633 soname_spec='${libname}${release}${major}$shared_ext' |
|
13634 shlibpath_overrides_runpath=yes |
|
13635 shlibpath_var=DYLD_LIBRARY_PATH |
|
13636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
13637 |
|
13638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
13639 ;; |
|
13640 |
|
13641 dgux*) |
|
13642 version_type=linux |
|
13643 need_lib_prefix=no |
|
13644 need_version=no |
|
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
13646 soname_spec='${libname}${release}${shared_ext}$major' |
|
13647 shlibpath_var=LD_LIBRARY_PATH |
|
13648 ;; |
|
13649 |
|
13650 freebsd1*) |
|
13651 dynamic_linker=no |
|
13652 ;; |
|
13653 |
|
13654 freebsd* | dragonfly*) |
|
13655 # DragonFly does not have aout. When/if they implement a new |
|
13656 # versioning mechanism, adjust this. |
|
13657 if test -x /usr/bin/objformat; then |
|
13658 objformat=`/usr/bin/objformat` |
|
13659 else |
|
13660 case $host_os in |
|
13661 freebsd[123]*) objformat=aout ;; |
|
13662 *) objformat=elf ;; |
|
13663 esac |
|
13664 fi |
|
13665 # Handle Gentoo/FreeBSD as it was Linux |
|
13666 case $host_vendor in |
|
13667 gentoo) |
|
13668 version_type=linux ;; |
|
13669 *) |
|
13670 version_type=freebsd-$objformat ;; |
|
13671 esac |
|
13672 |
|
13673 case $version_type in |
|
13674 freebsd-elf*) |
|
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13676 need_version=no |
|
13677 need_lib_prefix=no |
|
13678 ;; |
|
13679 freebsd-*) |
|
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
13681 need_version=yes |
|
13682 ;; |
|
13683 linux) |
|
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
13685 soname_spec='${libname}${release}${shared_ext}$major' |
|
13686 need_lib_prefix=no |
|
13687 need_version=no |
|
13688 ;; |
|
13689 esac |
|
13690 shlibpath_var=LD_LIBRARY_PATH |
|
13691 case $host_os in |
|
13692 freebsd2*) |
|
13693 shlibpath_overrides_runpath=yes |
|
13694 ;; |
|
13695 freebsd3.[01]* | freebsdelf3.[01]*) |
|
13696 shlibpath_overrides_runpath=yes |
|
13697 hardcode_into_libs=yes |
|
13698 ;; |
|
13699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
13700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
13701 shlibpath_overrides_runpath=no |
|
13702 hardcode_into_libs=yes |
|
13703 ;; |
|
13704 *) # from 4.6 on, and DragonFly |
|
13705 shlibpath_overrides_runpath=yes |
|
13706 hardcode_into_libs=yes |
|
13707 ;; |
|
13708 esac |
|
13709 ;; |
|
13710 |
|
13711 gnu*) |
|
13712 version_type=linux |
|
13713 need_lib_prefix=no |
|
13714 need_version=no |
|
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
13716 soname_spec='${libname}${release}${shared_ext}$major' |
|
13717 shlibpath_var=LD_LIBRARY_PATH |
|
13718 hardcode_into_libs=yes |
|
13719 ;; |
|
13720 |
|
13721 hpux9* | hpux10* | hpux11*) |
|
13722 # Give a soname corresponding to the major version so that dld.sl refuses to |
|
13723 # link against other versions. |
|
13724 version_type=sunos |
|
13725 need_lib_prefix=no |
|
13726 need_version=no |
|
13727 case $host_cpu in |
|
13728 ia64*) |
|
13729 shrext_cmds='.so' |
|
13730 hardcode_into_libs=yes |
|
13731 dynamic_linker="$host_os dld.so" |
|
13732 shlibpath_var=LD_LIBRARY_PATH |
|
13733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13735 soname_spec='${libname}${release}${shared_ext}$major' |
|
13736 if test "X$HPUX_IA64_MODE" = X32; then |
|
13737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
13738 else |
|
13739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
13740 fi |
|
13741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
13742 ;; |
|
13743 hppa*64*) |
|
13744 shrext_cmds='.sl' |
|
13745 hardcode_into_libs=yes |
|
13746 dynamic_linker="$host_os dld.sl" |
|
13747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
13748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13750 soname_spec='${libname}${release}${shared_ext}$major' |
|
13751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
13752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
13753 ;; |
|
13754 *) |
|
13755 shrext_cmds='.sl' |
|
13756 dynamic_linker="$host_os dld.sl" |
|
13757 shlibpath_var=SHLIB_PATH |
|
13758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13760 soname_spec='${libname}${release}${shared_ext}$major' |
|
13761 ;; |
|
13762 esac |
|
13763 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
13764 postinstall_cmds='chmod 555 $lib' |
|
13765 ;; |
|
13766 |
|
13767 interix[3-9]*) |
|
13768 version_type=linux |
|
13769 need_lib_prefix=no |
|
13770 need_version=no |
|
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
13772 soname_spec='${libname}${release}${shared_ext}$major' |
|
13773 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
13774 shlibpath_var=LD_LIBRARY_PATH |
|
13775 shlibpath_overrides_runpath=no |
|
13776 hardcode_into_libs=yes |
|
13777 ;; |
|
13778 |
|
13779 irix5* | irix6* | nonstopux*) |
|
13780 case $host_os in |
|
13781 nonstopux*) version_type=nonstopux ;; |
|
13782 *) |
|
13783 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
13784 version_type=linux |
|
13785 else |
|
13786 version_type=irix |
|
13787 fi ;; |
|
13788 esac |
|
13789 need_lib_prefix=no |
|
13790 need_version=no |
|
13791 soname_spec='${libname}${release}${shared_ext}$major' |
|
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13793 case $host_os in |
|
13794 irix5* | nonstopux*) |
|
13795 libsuff= shlibsuff= |
|
13796 ;; |
|
13797 *) |
|
13798 case $LD in # libtool.m4 will add one of these switches to LD |
|
13799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
13800 libsuff= shlibsuff= libmagic=32-bit;; |
|
13801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
13802 libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
13803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
13804 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
13805 *) libsuff= shlibsuff= libmagic=never-match;; |
|
13806 esac |
|
13807 ;; |
|
13808 esac |
|
13809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
13810 shlibpath_overrides_runpath=no |
|
13811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
13812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
13813 hardcode_into_libs=yes |
|
13814 ;; |
|
13815 |
|
13816 # No shared lib support for Linux oldld, aout, or coff. |
|
13817 linux*oldld* | linux*aout* | linux*coff*) |
|
13818 dynamic_linker=no |
|
13819 ;; |
|
13820 |
|
13821 # This must be Linux ELF. |
|
13822 linux* | k*bsd*-gnu) |
|
13823 version_type=linux |
|
13824 need_lib_prefix=no |
|
13825 need_version=no |
|
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13827 soname_spec='${libname}${release}${shared_ext}$major' |
|
13828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
13829 shlibpath_var=LD_LIBRARY_PATH |
|
13830 shlibpath_overrides_runpath=no |
|
13831 # This implies no fast_install, which is unacceptable. |
|
13832 # Some rework will be needed to allow for fast_install |
|
13833 # before this can be enabled. |
|
13834 hardcode_into_libs=yes |
|
13835 |
|
13836 # Append ld.so.conf contents to the search path |
|
13837 if test -f /etc/ld.so.conf; then |
|
13838 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
13839 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
13840 fi |
|
13841 |
|
13842 # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
13843 # powerpc, because MkLinux only supported shared libraries with the |
|
13844 # GNU dynamic linker. Since this was broken with cross compilers, |
|
13845 # most powerpc-linux boxes support dynamic linking these days and |
|
13846 # people can always --disable-shared, the test was removed, and we |
|
13847 # assume the GNU/Linux dynamic linker is in use. |
|
13848 dynamic_linker='GNU/Linux ld.so' |
|
13849 ;; |
|
13850 |
|
13851 netbsd*) |
|
13852 version_type=sunos |
|
13853 need_lib_prefix=no |
|
13854 need_version=no |
|
13855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
13857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
13858 dynamic_linker='NetBSD (a.out) ld.so' |
|
13859 else |
|
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
13861 soname_spec='${libname}${release}${shared_ext}$major' |
|
13862 dynamic_linker='NetBSD ld.elf_so' |
|
13863 fi |
|
13864 shlibpath_var=LD_LIBRARY_PATH |
|
13865 shlibpath_overrides_runpath=yes |
|
13866 hardcode_into_libs=yes |
|
13867 ;; |
|
13868 |
|
13869 newsos6) |
|
13870 version_type=linux |
|
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13872 shlibpath_var=LD_LIBRARY_PATH |
|
13873 shlibpath_overrides_runpath=yes |
|
13874 ;; |
|
13875 |
|
13876 nto-qnx*) |
|
13877 version_type=linux |
|
13878 need_lib_prefix=no |
|
13879 need_version=no |
|
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13881 soname_spec='${libname}${release}${shared_ext}$major' |
|
13882 shlibpath_var=LD_LIBRARY_PATH |
|
13883 shlibpath_overrides_runpath=yes |
|
13884 ;; |
|
13885 |
|
13886 openbsd*) |
|
13887 version_type=sunos |
|
13888 sys_lib_dlsearch_path_spec="/usr/lib" |
|
13889 need_lib_prefix=no |
|
13890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
13891 case $host_os in |
|
13892 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
13893 *) need_version=no ;; |
|
13894 esac |
|
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
13897 shlibpath_var=LD_LIBRARY_PATH |
|
13898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
13899 case $host_os in |
|
13900 openbsd2.[89] | openbsd2.[89].*) |
|
13901 shlibpath_overrides_runpath=no |
|
13902 ;; |
|
13903 *) |
|
13904 shlibpath_overrides_runpath=yes |
|
13905 ;; |
|
13906 esac |
|
13907 else |
|
13908 shlibpath_overrides_runpath=yes |
|
13909 fi |
|
13910 ;; |
|
13911 |
|
13912 os2*) |
|
13913 libname_spec='$name' |
|
13914 shrext_cmds=".dll" |
|
13915 need_lib_prefix=no |
|
13916 library_names_spec='$libname${shared_ext} $libname.a' |
|
13917 dynamic_linker='OS/2 ld.exe' |
|
13918 shlibpath_var=LIBPATH |
|
13919 ;; |
|
13920 |
|
13921 osf3* | osf4* | osf5*) |
|
13922 version_type=osf |
|
13923 need_lib_prefix=no |
|
13924 need_version=no |
|
13925 soname_spec='${libname}${release}${shared_ext}$major' |
|
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13927 shlibpath_var=LD_LIBRARY_PATH |
|
13928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
13929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
13930 ;; |
|
13931 |
|
13932 rdos*) |
|
13933 dynamic_linker=no |
|
13934 ;; |
|
13935 |
|
13936 solaris*) |
|
13937 version_type=linux |
|
13938 need_lib_prefix=no |
|
13939 need_version=no |
|
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13941 soname_spec='${libname}${release}${shared_ext}$major' |
|
13942 shlibpath_var=LD_LIBRARY_PATH |
|
13943 shlibpath_overrides_runpath=yes |
|
13944 hardcode_into_libs=yes |
|
13945 # ldd complains unless libraries are executable |
|
13946 postinstall_cmds='chmod +x $lib' |
|
13947 ;; |
|
13948 |
|
13949 sunos4*) |
|
13950 version_type=sunos |
|
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
13952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
13953 shlibpath_var=LD_LIBRARY_PATH |
|
13954 shlibpath_overrides_runpath=yes |
|
13955 if test "$with_gnu_ld" = yes; then |
|
13956 need_lib_prefix=no |
|
13957 fi |
|
13958 need_version=yes |
|
13959 ;; |
|
13960 |
|
13961 sysv4 | sysv4.3*) |
|
13962 version_type=linux |
|
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13964 soname_spec='${libname}${release}${shared_ext}$major' |
|
13965 shlibpath_var=LD_LIBRARY_PATH |
|
13966 case $host_vendor in |
|
13967 sni) |
|
13968 shlibpath_overrides_runpath=no |
|
13969 need_lib_prefix=no |
|
13970 export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
13971 runpath_var=LD_RUN_PATH |
|
13972 ;; |
|
13973 siemens) |
|
13974 need_lib_prefix=no |
|
13975 ;; |
|
13976 motorola) |
|
13977 need_lib_prefix=no |
|
13978 need_version=no |
|
13979 shlibpath_overrides_runpath=no |
|
13980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
13981 ;; |
|
13982 esac |
|
13983 ;; |
|
13984 |
|
13985 sysv4*MP*) |
|
13986 if test -d /usr/nec ;then |
|
13987 version_type=linux |
|
13988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
13989 soname_spec='$libname${shared_ext}.$major' |
|
13990 shlibpath_var=LD_LIBRARY_PATH |
|
13991 fi |
|
13992 ;; |
|
13993 |
|
13994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
13995 version_type=freebsd-elf |
|
13996 need_lib_prefix=no |
|
13997 need_version=no |
|
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13999 soname_spec='${libname}${release}${shared_ext}$major' |
|
14000 shlibpath_var=LD_LIBRARY_PATH |
|
14001 hardcode_into_libs=yes |
|
14002 if test "$with_gnu_ld" = yes; then |
|
14003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
14004 shlibpath_overrides_runpath=no |
|
14005 else |
|
14006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
14007 shlibpath_overrides_runpath=yes |
|
14008 case $host_os in |
|
14009 sco3.2v5*) |
|
14010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
14011 ;; |
|
14012 esac |
|
14013 fi |
|
14014 sys_lib_dlsearch_path_spec='/usr/lib' |
|
14015 ;; |
|
14016 |
|
14017 uts4*) |
|
14018 version_type=linux |
|
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14020 soname_spec='${libname}${release}${shared_ext}$major' |
|
14021 shlibpath_var=LD_LIBRARY_PATH |
|
14022 ;; |
|
14023 |
|
14024 *) |
|
14025 dynamic_linker=no |
|
14026 ;; |
|
14027 esac |
|
14028 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
14029 echo "${ECHO_T}$dynamic_linker" >&6; } |
|
14030 test "$dynamic_linker" = no && can_build_shared=no |
|
14031 |
|
14032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
14033 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14034 else |
|
14035 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
|
14036 fi |
|
14037 |
|
14038 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
14039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
14040 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14041 else |
|
14042 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
|
14043 fi |
|
14044 |
|
14045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
14046 |
|
14047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
14048 if test "$GCC" = yes; then |
|
14049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
14050 fi |
|
14051 |
|
14052 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
14053 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
14054 hardcode_action_CXX= |
|
14055 if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
14056 test -n "$runpath_var_CXX" || \ |
|
14057 test "X$hardcode_automatic_CXX" = "Xyes" ; then |
|
14058 |
|
14059 # We can hardcode non-existant directories. |
|
14060 if test "$hardcode_direct_CXX" != no && |
|
14061 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
14062 # have to relink, otherwise we might link with an installed library |
|
14063 # when we should be linking with a yet-to-be-installed one |
|
14064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
14065 test "$hardcode_minus_L_CXX" != no; then |
|
14066 # Linking always hardcodes the temporary library directory. |
|
14067 hardcode_action_CXX=relink |
|
14068 else |
|
14069 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
14070 hardcode_action_CXX=immediate |
|
14071 fi |
|
14072 else |
|
14073 # We cannot hardcode anything, or else we can only hardcode existing |
|
14074 # directories. |
|
14075 hardcode_action_CXX=unsupported |
|
14076 fi |
|
14077 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
14078 echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
|
14079 |
|
14080 if test "$hardcode_action_CXX" = relink; then |
|
14081 # Fast installation is not supported |
|
14082 enable_fast_install=no |
|
14083 elif test "$shlibpath_overrides_runpath" = yes || |
|
14084 test "$enable_shared" = no; then |
|
14085 # Fast installation is not necessary |
|
14086 enable_fast_install=needless |
|
14087 fi |
|
14088 |
|
14089 |
|
14090 # The else clause should only fire when bootstrapping the |
|
14091 # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
14092 # with your package, and you will get complaints that there are |
|
14093 # no rules to generate ltmain.sh. |
|
14094 if test -f "$ltmain"; then |
|
14095 # See if we are running on zsh, and set the options which allow our commands through |
|
14096 # without removal of \ escapes. |
|
14097 if test -n "${ZSH_VERSION+set}" ; then |
|
14098 setopt NO_GLOB_SUBST |
|
14099 fi |
|
14100 # Now quote all the things that may contain metacharacters while being |
|
14101 # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
14102 # variables and quote the copies for generation of the libtool script. |
|
14103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
14104 SED SHELL STRIP \ |
|
14105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
14106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
14107 deplibs_check_method reload_flag reload_cmds need_locks \ |
|
14108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
14109 lt_cv_sys_global_symbol_to_c_name_address \ |
|
14110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
14111 old_postinstall_cmds old_postuninstall_cmds \ |
|
14112 compiler_CXX \ |
|
14113 CC_CXX \ |
|
14114 LD_CXX \ |
|
14115 lt_prog_compiler_wl_CXX \ |
|
14116 lt_prog_compiler_pic_CXX \ |
|
14117 lt_prog_compiler_static_CXX \ |
|
14118 lt_prog_compiler_no_builtin_flag_CXX \ |
|
14119 export_dynamic_flag_spec_CXX \ |
|
14120 thread_safe_flag_spec_CXX \ |
|
14121 whole_archive_flag_spec_CXX \ |
|
14122 enable_shared_with_static_runtimes_CXX \ |
|
14123 old_archive_cmds_CXX \ |
|
14124 old_archive_from_new_cmds_CXX \ |
|
14125 predep_objects_CXX \ |
|
14126 postdep_objects_CXX \ |
|
14127 predeps_CXX \ |
|
14128 postdeps_CXX \ |
|
14129 compiler_lib_search_path_CXX \ |
|
14130 compiler_lib_search_dirs_CXX \ |
|
14131 archive_cmds_CXX \ |
|
14132 archive_expsym_cmds_CXX \ |
|
14133 postinstall_cmds_CXX \ |
|
14134 postuninstall_cmds_CXX \ |
|
14135 old_archive_from_expsyms_cmds_CXX \ |
|
14136 allow_undefined_flag_CXX \ |
|
14137 no_undefined_flag_CXX \ |
|
14138 export_symbols_cmds_CXX \ |
|
14139 hardcode_libdir_flag_spec_CXX \ |
|
14140 hardcode_libdir_flag_spec_ld_CXX \ |
|
14141 hardcode_libdir_separator_CXX \ |
|
14142 hardcode_automatic_CXX \ |
|
14143 module_cmds_CXX \ |
|
14144 module_expsym_cmds_CXX \ |
|
14145 lt_cv_prog_compiler_c_o_CXX \ |
|
14146 fix_srcfile_path_CXX \ |
|
14147 exclude_expsyms_CXX \ |
|
14148 include_expsyms_CXX; do |
|
14149 |
|
14150 case $var in |
|
14151 old_archive_cmds_CXX | \ |
|
14152 old_archive_from_new_cmds_CXX | \ |
|
14153 archive_cmds_CXX | \ |
|
14154 archive_expsym_cmds_CXX | \ |
|
14155 module_cmds_CXX | \ |
|
14156 module_expsym_cmds_CXX | \ |
|
14157 old_archive_from_expsyms_cmds_CXX | \ |
|
14158 export_symbols_cmds_CXX | \ |
|
14159 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
14160 postinstall_cmds | postuninstall_cmds | \ |
|
14161 old_postinstall_cmds | old_postuninstall_cmds | \ |
|
14162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
14163 # Double-quote double-evaled strings. |
|
14164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
14165 ;; |
|
14166 *) |
|
14167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
14168 ;; |
|
14169 esac |
|
14170 done |
|
14171 |
|
14172 case $lt_echo in |
|
14173 *'\$0 --fallback-echo"') |
|
14174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
14175 ;; |
|
14176 esac |
|
14177 |
|
14178 cfgfile="$ofile" |
|
14179 |
|
14180 cat <<__EOF__ >> "$cfgfile" |
|
14181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
14182 |
|
14183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
14184 |
|
14185 # Shell to use when invoking shell scripts. |
|
14186 SHELL=$lt_SHELL |
|
14187 |
|
14188 # Whether or not to build shared libraries. |
|
14189 build_libtool_libs=$enable_shared |
|
14190 |
|
14191 # Whether or not to build static libraries. |
|
14192 build_old_libs=$enable_static |
|
14193 |
|
14194 # Whether or not to add -lc for building shared libraries. |
|
14195 build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
14196 |
|
14197 # Whether or not to disallow shared libs when runtime libs are static |
|
14198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
14199 |
|
14200 # Whether or not to optimize for fast installation. |
|
14201 fast_install=$enable_fast_install |
|
14202 |
|
14203 # The host system. |
|
14204 host_alias=$host_alias |
|
14205 host=$host |
|
14206 host_os=$host_os |
|
14207 |
|
14208 # The build system. |
|
14209 build_alias=$build_alias |
|
14210 build=$build |
|
14211 build_os=$build_os |
|
14212 |
|
14213 # An echo program that does not interpret backslashes. |
|
14214 echo=$lt_echo |
|
14215 |
|
14216 # The archiver. |
|
14217 AR=$lt_AR |
|
14218 AR_FLAGS=$lt_AR_FLAGS |
|
14219 |
|
14220 # A C compiler. |
|
14221 LTCC=$lt_LTCC |
|
14222 |
|
14223 # LTCC compiler flags. |
|
14224 LTCFLAGS=$lt_LTCFLAGS |
|
14225 |
|
14226 # A language-specific compiler. |
|
14227 CC=$lt_compiler_CXX |
|
14228 |
|
14229 # Is the compiler the GNU C compiler? |
|
14230 with_gcc=$GCC_CXX |
|
14231 |
|
14232 # An ERE matcher. |
|
14233 EGREP=$lt_EGREP |
|
14234 |
|
14235 # The linker used to build libraries. |
|
14236 LD=$lt_LD_CXX |
|
14237 |
|
14238 # Whether we need hard or soft links. |
|
14239 LN_S=$lt_LN_S |
|
14240 |
|
14241 # A BSD-compatible nm program. |
|
14242 NM=$lt_NM |
|
14243 |
|
14244 # A symbol stripping program |
|
14245 STRIP=$lt_STRIP |
|
14246 |
|
14247 # Used to examine libraries when file_magic_cmd begins "file" |
|
14248 MAGIC_CMD=$MAGIC_CMD |
|
14249 |
|
14250 # Used on cygwin: DLL creation program. |
|
14251 DLLTOOL="$DLLTOOL" |
|
14252 |
|
14253 # Used on cygwin: object dumper. |
|
14254 OBJDUMP="$OBJDUMP" |
|
14255 |
|
14256 # Used on cygwin: assembler. |
|
14257 AS="$AS" |
|
14258 |
|
14259 # The name of the directory that contains temporary libtool files. |
|
14260 objdir=$objdir |
|
14261 |
|
14262 # How to create reloadable object files. |
|
14263 reload_flag=$lt_reload_flag |
|
14264 reload_cmds=$lt_reload_cmds |
|
14265 |
|
14266 # How to pass a linker flag through the compiler. |
|
14267 wl=$lt_lt_prog_compiler_wl_CXX |
|
14268 |
|
14269 # Object file suffix (normally "o"). |
|
14270 objext="$ac_objext" |
|
14271 |
|
14272 # Old archive suffix (normally "a"). |
|
14273 libext="$libext" |
|
14274 |
|
14275 # Shared library suffix (normally ".so"). |
|
14276 shrext_cmds='$shrext_cmds' |
|
14277 |
|
14278 # Executable file suffix (normally ""). |
|
14279 exeext="$exeext" |
|
14280 |
|
14281 # Additional compiler flags for building library objects. |
|
14282 pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
14283 pic_mode=$pic_mode |
|
14284 |
|
14285 # What is the maximum length of a command? |
|
14286 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
14287 |
|
14288 # Does compiler simultaneously support -c and -o options? |
|
14289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
14290 |
|
14291 # Must we lock files when doing compilation? |
|
14292 need_locks=$lt_need_locks |
|
14293 |
|
14294 # Do we need the lib prefix for modules? |
|
14295 need_lib_prefix=$need_lib_prefix |
|
14296 |
|
14297 # Do we need a version for libraries? |
|
14298 need_version=$need_version |
|
14299 |
|
14300 # Whether dlopen is supported. |
|
14301 dlopen_support=$enable_dlopen |
|
14302 |
|
14303 # Whether dlopen of programs is supported. |
|
14304 dlopen_self=$enable_dlopen_self |
|
14305 |
|
14306 # Whether dlopen of statically linked programs is supported. |
|
14307 dlopen_self_static=$enable_dlopen_self_static |
|
14308 |
|
14309 # Compiler flag to prevent dynamic linking. |
|
14310 link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
14311 |
|
14312 # Compiler flag to turn off builtin functions. |
|
14313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
14314 |
|
14315 # Compiler flag to allow reflexive dlopens. |
|
14316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
14317 |
|
14318 # Compiler flag to generate shared objects directly from archives. |
|
14319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
14320 |
|
14321 # Compiler flag to generate thread-safe objects. |
|
14322 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
14323 |
|
14324 # Library versioning type. |
|
14325 version_type=$version_type |
|
14326 |
|
14327 # Format of library name prefix. |
|
14328 libname_spec=$lt_libname_spec |
|
14329 |
|
14330 # List of archive names. First name is the real one, the rest are links. |
|
14331 # The last name is the one that the linker finds with -lNAME. |
|
14332 library_names_spec=$lt_library_names_spec |
|
14333 |
|
14334 # The coded name of the library, if different from the real name. |
|
14335 soname_spec=$lt_soname_spec |
|
14336 |
|
14337 # Commands used to build and install an old-style archive. |
|
14338 RANLIB=$lt_RANLIB |
|
14339 old_archive_cmds=$lt_old_archive_cmds_CXX |
|
14340 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
14341 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
14342 |
|
14343 # Create an old-style archive from a shared archive. |
|
14344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
14345 |
|
14346 # Create a temporary old-style archive to link instead of a shared archive. |
|
14347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
14348 |
|
14349 # Commands used to build and install a shared archive. |
|
14350 archive_cmds=$lt_archive_cmds_CXX |
|
14351 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
14352 postinstall_cmds=$lt_postinstall_cmds |
|
14353 postuninstall_cmds=$lt_postuninstall_cmds |
|
14354 |
|
14355 # Commands used to build a loadable module (assumed same as above if empty) |
|
14356 module_cmds=$lt_module_cmds_CXX |
|
14357 module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
14358 |
|
14359 # Commands to strip libraries. |
|
14360 old_striplib=$lt_old_striplib |
|
14361 striplib=$lt_striplib |
|
14362 |
|
14363 # Dependencies to place before the objects being linked to create a |
|
14364 # shared library. |
|
14365 predep_objects=$lt_predep_objects_CXX |
|
14366 |
|
14367 # Dependencies to place after the objects being linked to create a |
|
14368 # shared library. |
|
14369 postdep_objects=$lt_postdep_objects_CXX |
|
14370 |
|
14371 # Dependencies to place before the objects being linked to create a |
|
14372 # shared library. |
|
14373 predeps=$lt_predeps_CXX |
|
14374 |
|
14375 # Dependencies to place after the objects being linked to create a |
|
14376 # shared library. |
|
14377 postdeps=$lt_postdeps_CXX |
|
14378 |
|
14379 # The directories searched by this compiler when creating a shared |
|
14380 # library |
|
14381 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
|
14382 |
|
14383 # The library search path used internally by the compiler when linking |
|
14384 # a shared library. |
|
14385 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
14386 |
|
14387 # Method to check whether dependent libraries are shared objects. |
|
14388 deplibs_check_method=$lt_deplibs_check_method |
|
14389 |
|
14390 # Command to use when deplibs_check_method == file_magic. |
|
14391 file_magic_cmd=$lt_file_magic_cmd |
|
14392 |
|
14393 # Flag that allows shared libraries with undefined symbols to be built. |
|
14394 allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
14395 |
|
14396 # Flag that forces no undefined symbols. |
|
14397 no_undefined_flag=$lt_no_undefined_flag_CXX |
|
14398 |
|
14399 # Commands used to finish a libtool library installation in a directory. |
|
14400 finish_cmds=$lt_finish_cmds |
|
14401 |
|
14402 # Same as above, but a single script fragment to be evaled but not shown. |
|
14403 finish_eval=$lt_finish_eval |
|
14404 |
|
14405 # Take the output of nm and produce a listing of raw symbols and C names. |
|
14406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
14407 |
|
14408 # Transform the output of nm in a proper C declaration |
|
14409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
14410 |
|
14411 # Transform the output of nm in a C name address pair |
|
14412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
14413 |
|
14414 # This is the shared library runtime path variable. |
|
14415 runpath_var=$runpath_var |
|
14416 |
|
14417 # This is the shared library path variable. |
|
14418 shlibpath_var=$shlibpath_var |
|
14419 |
|
14420 # Is shlibpath searched before the hard-coded library search path? |
|
14421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
14422 |
|
14423 # How to hardcode a shared library path into an executable. |
|
14424 hardcode_action=$hardcode_action_CXX |
|
14425 |
|
14426 # Whether we should hardcode library paths into libraries. |
|
14427 hardcode_into_libs=$hardcode_into_libs |
|
14428 |
|
14429 # Flag to hardcode \$libdir into a binary during linking. |
|
14430 # This must work even if \$libdir does not exist. |
|
14431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
14432 |
|
14433 # If ld is used when linking, flag to hardcode \$libdir into |
|
14434 # a binary during linking. This must work even if \$libdir does |
|
14435 # not exist. |
|
14436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
14437 |
|
14438 # Whether we need a single -rpath flag with a separated argument. |
|
14439 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
14440 |
|
14441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
14442 # resulting binary. |
|
14443 hardcode_direct=$hardcode_direct_CXX |
|
14444 |
|
14445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
14446 # resulting binary. |
|
14447 hardcode_minus_L=$hardcode_minus_L_CXX |
|
14448 |
|
14449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
14450 # the resulting binary. |
|
14451 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
14452 |
|
14453 # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
14454 # and all subsequent libraries and executables linked against it. |
|
14455 hardcode_automatic=$hardcode_automatic_CXX |
|
14456 |
|
14457 # Variables whose values should be saved in libtool wrapper scripts and |
|
14458 # restored at relink time. |
|
14459 variables_saved_for_relink="$variables_saved_for_relink" |
|
14460 |
|
14461 # Whether libtool must link a program against all its dependency libraries. |
|
14462 link_all_deplibs=$link_all_deplibs_CXX |
|
14463 |
|
14464 # Compile-time system search path for libraries |
|
14465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
14466 |
|
14467 # Run-time system search path for libraries |
|
14468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
14469 |
|
14470 # Fix the shell variable \$srcfile for the compiler. |
|
14471 fix_srcfile_path=$lt_fix_srcfile_path |
|
14472 |
|
14473 # Set to yes if exported symbols are required. |
|
14474 always_export_symbols=$always_export_symbols_CXX |
|
14475 |
|
14476 # The commands to list exported symbols. |
|
14477 export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
14478 |
|
14479 # The commands to extract the exported symbol list from a shared archive. |
|
14480 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
14481 |
|
14482 # Symbols that should not be listed in the preloaded symbols. |
|
14483 exclude_expsyms=$lt_exclude_expsyms_CXX |
|
14484 |
|
14485 # Symbols that must always be exported. |
|
14486 include_expsyms=$lt_include_expsyms_CXX |
|
14487 |
|
14488 # ### END LIBTOOL TAG CONFIG: $tagname |
|
14489 |
|
14490 __EOF__ |
|
14491 |
|
14492 |
|
14493 else |
|
14494 # If there is no Makefile yet, we rely on a make rule to execute |
|
14495 # `config.status --recheck' to rerun these tests and create the |
|
14496 # libtool script then. |
|
14497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
14498 if test -f "$ltmain_in"; then |
|
14499 test -f Makefile && make "$ltmain" |
|
14500 fi |
|
14501 fi |
|
14502 |
|
14503 |
|
14504 ac_ext=c |
|
14505 ac_cpp='$CPP $CPPFLAGS' |
|
14506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
14507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
14508 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
14509 |
|
14510 CC=$lt_save_CC |
|
14511 LDCXX=$LD |
|
14512 LD=$lt_save_LD |
|
14513 GCC=$lt_save_GCC |
|
14514 with_gnu_ldcxx=$with_gnu_ld |
|
14515 with_gnu_ld=$lt_save_with_gnu_ld |
|
14516 lt_cv_path_LDCXX=$lt_cv_path_LD |
|
14517 lt_cv_path_LD=$lt_save_path_LD |
|
14518 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
14519 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
14520 |
|
14521 else |
|
14522 tagname="" |
|
14523 fi |
|
14524 ;; |
|
14525 |
|
14526 F77) |
|
14527 if test -n "$F77" && test "X$F77" != "Xno"; then |
|
14528 |
|
14529 ac_ext=f |
|
14530 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
14531 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
14532 ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
14533 |
|
14534 |
|
14535 archive_cmds_need_lc_F77=no |
|
14536 allow_undefined_flag_F77= |
|
14537 always_export_symbols_F77=no |
|
14538 archive_expsym_cmds_F77= |
|
14539 export_dynamic_flag_spec_F77= |
|
14540 hardcode_direct_F77=no |
|
14541 hardcode_libdir_flag_spec_F77= |
|
14542 hardcode_libdir_flag_spec_ld_F77= |
|
14543 hardcode_libdir_separator_F77= |
|
14544 hardcode_minus_L_F77=no |
|
14545 hardcode_automatic_F77=no |
|
14546 module_cmds_F77= |
|
14547 module_expsym_cmds_F77= |
|
14548 link_all_deplibs_F77=unknown |
|
14549 old_archive_cmds_F77=$old_archive_cmds |
|
14550 no_undefined_flag_F77= |
|
14551 whole_archive_flag_spec_F77= |
|
14552 enable_shared_with_static_runtimes_F77=no |
|
14553 |
|
14554 # Source file extension for f77 test sources. |
|
14555 ac_ext=f |
|
14556 |
|
14557 # Object file extension for compiled f77 test sources. |
|
14558 objext=o |
|
14559 objext_F77=$objext |
|
14560 |
|
14561 # Code to be used in simple compile tests |
|
14562 lt_simple_compile_test_code="\ |
|
14563 subroutine t |
|
14564 return |
|
14565 end |
|
14566 " |
|
14567 |
|
14568 # Code to be used in simple link tests |
|
14569 lt_simple_link_test_code="\ |
|
14570 program t |
|
14571 end |
|
14572 " |
|
14573 |
|
14574 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
14575 |
|
14576 # If no C compiler was specified, use CC. |
|
14577 LTCC=${LTCC-"$CC"} |
|
14578 |
|
14579 # If no C compiler flags were specified, use CFLAGS. |
|
14580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
14581 |
|
14582 # Allow CC to be a program name with arguments. |
|
14583 compiler=$CC |
|
14584 |
|
14585 |
|
14586 # save warnings/boilerplate of simple test code |
|
14587 ac_outfile=conftest.$ac_objext |
|
14588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
14589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
14590 _lt_compiler_boilerplate=`cat conftest.err` |
|
14591 $rm conftest* |
|
14592 |
|
14593 ac_outfile=conftest.$ac_objext |
|
14594 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
14595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
14596 _lt_linker_boilerplate=`cat conftest.err` |
|
14597 $rm -r conftest* |
|
14598 |
|
14599 |
|
14600 # Allow CC to be a program name with arguments. |
|
14601 lt_save_CC="$CC" |
|
14602 CC=${F77-"f77"} |
|
14603 compiler=$CC |
|
14604 compiler_F77=$CC |
|
14605 for cc_temp in $compiler""; do |
|
14606 case $cc_temp in |
|
14607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
14608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
14609 \-*) ;; |
|
14610 *) break;; |
|
14611 esac |
|
14612 done |
|
14613 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
14614 |
|
14615 |
|
14616 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
14617 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
|
14618 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
14619 echo "${ECHO_T}$can_build_shared" >&6; } |
|
14620 |
|
14621 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
14622 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
|
14623 test "$can_build_shared" = "no" && enable_shared=no |
|
14624 |
|
14625 # On AIX, shared libraries and static libraries use the same namespace, and |
|
14626 # are all built from PIC. |
|
14627 case $host_os in |
|
14628 aix3*) |
|
14629 test "$enable_shared" = yes && enable_static=no |
|
14630 if test -n "$RANLIB"; then |
|
14631 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
14632 postinstall_cmds='$RANLIB $lib' |
|
14633 fi |
|
14634 ;; |
|
14635 aix[4-9]*) |
|
14636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
14637 test "$enable_shared" = yes && enable_static=no |
|
14638 fi |
|
14639 ;; |
|
14640 esac |
|
14641 { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
14642 echo "${ECHO_T}$enable_shared" >&6; } |
|
14643 |
|
14644 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
14645 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
|
14646 # Make sure either enable_shared or enable_static is yes. |
|
14647 test "$enable_shared" = yes || enable_static=yes |
|
14648 { echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
14649 echo "${ECHO_T}$enable_static" >&6; } |
|
14650 |
|
14651 GCC_F77="$G77" |
|
14652 LD_F77="$LD" |
|
14653 |
|
14654 lt_prog_compiler_wl_F77= |
|
14655 lt_prog_compiler_pic_F77= |
|
14656 lt_prog_compiler_static_F77= |
|
14657 |
|
14658 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
14659 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
14660 |
|
14661 if test "$GCC" = yes; then |
|
14662 lt_prog_compiler_wl_F77='-Wl,' |
|
14663 lt_prog_compiler_static_F77='-static' |
|
14664 |
|
14665 case $host_os in |
|
14666 aix*) |
|
14667 # All AIX code is PIC. |
|
14668 if test "$host_cpu" = ia64; then |
|
14669 # AIX 5 now supports IA64 processor |
|
14670 lt_prog_compiler_static_F77='-Bstatic' |
|
14671 fi |
|
14672 ;; |
|
14673 |
|
14674 amigaos*) |
|
14675 # FIXME: we need at least 68020 code to build shared libraries, but |
|
14676 # adding the `-m68020' flag to GCC prevents building anything better, |
|
14677 # like `-m68040'. |
|
14678 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
14679 ;; |
|
14680 |
|
14681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
14682 # PIC is the default for these OSes. |
|
14683 ;; |
|
14684 |
|
14685 mingw* | cygwin* | pw32* | os2*) |
|
14686 # This hack is so that the source file can tell whether it is being |
|
14687 # built for inclusion in a dll (and should export symbols for example). |
|
14688 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
14689 # (--disable-auto-import) libraries |
|
14690 lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
14691 ;; |
|
14692 |
|
14693 darwin* | rhapsody*) |
|
14694 # PIC is the default on this platform |
|
14695 # Common symbols not allowed in MH_DYLIB files |
|
14696 lt_prog_compiler_pic_F77='-fno-common' |
|
14697 ;; |
|
14698 |
|
14699 interix[3-9]*) |
|
14700 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
14701 # Instead, we relocate shared libraries at runtime. |
|
14702 ;; |
|
14703 |
|
14704 msdosdjgpp*) |
|
14705 # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
14706 # on systems that don't support them. |
|
14707 lt_prog_compiler_can_build_shared_F77=no |
|
14708 enable_shared=no |
|
14709 ;; |
|
14710 |
|
14711 sysv4*MP*) |
|
14712 if test -d /usr/nec; then |
|
14713 lt_prog_compiler_pic_F77=-Kconform_pic |
|
14714 fi |
|
14715 ;; |
|
14716 |
|
14717 hpux*) |
|
14718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
14719 # not for PA HP-UX. |
|
14720 case $host_cpu in |
|
14721 hppa*64*|ia64*) |
|
14722 # +Z the default |
|
14723 ;; |
|
14724 *) |
|
14725 lt_prog_compiler_pic_F77='-fPIC' |
|
14726 ;; |
|
14727 esac |
|
14728 ;; |
|
14729 |
|
14730 *) |
|
14731 lt_prog_compiler_pic_F77='-fPIC' |
|
14732 ;; |
|
14733 esac |
|
14734 else |
|
14735 # PORTME Check for flag to pass linker flags through the system compiler. |
|
14736 case $host_os in |
|
14737 aix*) |
|
14738 lt_prog_compiler_wl_F77='-Wl,' |
|
14739 if test "$host_cpu" = ia64; then |
|
14740 # AIX 5 now supports IA64 processor |
|
14741 lt_prog_compiler_static_F77='-Bstatic' |
|
14742 else |
|
14743 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
14744 fi |
|
14745 ;; |
|
14746 darwin*) |
|
14747 # PIC is the default on this platform |
|
14748 # Common symbols not allowed in MH_DYLIB files |
|
14749 case $cc_basename in |
|
14750 xlc*) |
|
14751 lt_prog_compiler_pic_F77='-qnocommon' |
|
14752 lt_prog_compiler_wl_F77='-Wl,' |
|
14753 ;; |
|
14754 esac |
|
14755 ;; |
|
14756 |
|
14757 mingw* | cygwin* | pw32* | os2*) |
|
14758 # This hack is so that the source file can tell whether it is being |
|
14759 # built for inclusion in a dll (and should export symbols for example). |
|
14760 lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
14761 ;; |
|
14762 |
|
14763 hpux9* | hpux10* | hpux11*) |
|
14764 lt_prog_compiler_wl_F77='-Wl,' |
|
14765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
14766 # not for PA HP-UX. |
|
14767 case $host_cpu in |
|
14768 hppa*64*|ia64*) |
|
14769 # +Z the default |
|
14770 ;; |
|
14771 *) |
|
14772 lt_prog_compiler_pic_F77='+Z' |
|
14773 ;; |
|
14774 esac |
|
14775 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
14776 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
14777 ;; |
|
14778 |
|
14779 irix5* | irix6* | nonstopux*) |
|
14780 lt_prog_compiler_wl_F77='-Wl,' |
|
14781 # PIC (with -KPIC) is the default. |
|
14782 lt_prog_compiler_static_F77='-non_shared' |
|
14783 ;; |
|
14784 |
|
14785 newsos6) |
|
14786 lt_prog_compiler_pic_F77='-KPIC' |
|
14787 lt_prog_compiler_static_F77='-Bstatic' |
|
14788 ;; |
|
14789 |
|
14790 linux* | k*bsd*-gnu) |
|
14791 case $cc_basename in |
|
14792 icc* | ecc*) |
|
14793 lt_prog_compiler_wl_F77='-Wl,' |
|
14794 lt_prog_compiler_pic_F77='-KPIC' |
|
14795 lt_prog_compiler_static_F77='-static' |
|
14796 ;; |
|
14797 pgcc* | pgf77* | pgf90* | pgf95*) |
|
14798 # Portland Group compilers (*not* the Pentium gcc compiler, |
|
14799 # which looks to be a dead project) |
|
14800 lt_prog_compiler_wl_F77='-Wl,' |
|
14801 lt_prog_compiler_pic_F77='-fpic' |
|
14802 lt_prog_compiler_static_F77='-Bstatic' |
|
14803 ;; |
|
14804 ccc*) |
|
14805 lt_prog_compiler_wl_F77='-Wl,' |
|
14806 # All Alpha code is PIC. |
|
14807 lt_prog_compiler_static_F77='-non_shared' |
|
14808 ;; |
|
14809 *) |
|
14810 case `$CC -V 2>&1 | sed 5q` in |
|
14811 *Sun\ C*) |
|
14812 # Sun C 5.9 |
|
14813 lt_prog_compiler_pic_F77='-KPIC' |
|
14814 lt_prog_compiler_static_F77='-Bstatic' |
|
14815 lt_prog_compiler_wl_F77='-Wl,' |
|
14816 ;; |
|
14817 *Sun\ F*) |
|
14818 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
14819 lt_prog_compiler_pic_F77='-KPIC' |
|
14820 lt_prog_compiler_static_F77='-Bstatic' |
|
14821 lt_prog_compiler_wl_F77='' |
|
14822 ;; |
|
14823 esac |
|
14824 ;; |
|
14825 esac |
|
14826 ;; |
|
14827 |
|
14828 osf3* | osf4* | osf5*) |
|
14829 lt_prog_compiler_wl_F77='-Wl,' |
|
14830 # All OSF/1 code is PIC. |
|
14831 lt_prog_compiler_static_F77='-non_shared' |
|
14832 ;; |
|
14833 |
|
14834 rdos*) |
|
14835 lt_prog_compiler_static_F77='-non_shared' |
|
14836 ;; |
|
14837 |
|
14838 solaris*) |
|
14839 lt_prog_compiler_pic_F77='-KPIC' |
|
14840 lt_prog_compiler_static_F77='-Bstatic' |
|
14841 case $cc_basename in |
|
14842 f77* | f90* | f95*) |
|
14843 lt_prog_compiler_wl_F77='-Qoption ld ';; |
|
14844 *) |
|
14845 lt_prog_compiler_wl_F77='-Wl,';; |
|
14846 esac |
|
14847 ;; |
|
14848 |
|
14849 sunos4*) |
|
14850 lt_prog_compiler_wl_F77='-Qoption ld ' |
|
14851 lt_prog_compiler_pic_F77='-PIC' |
|
14852 lt_prog_compiler_static_F77='-Bstatic' |
|
14853 ;; |
|
14854 |
|
14855 sysv4 | sysv4.2uw2* | sysv4.3*) |
|
14856 lt_prog_compiler_wl_F77='-Wl,' |
|
14857 lt_prog_compiler_pic_F77='-KPIC' |
|
14858 lt_prog_compiler_static_F77='-Bstatic' |
|
14859 ;; |
|
14860 |
|
14861 sysv4*MP*) |
|
14862 if test -d /usr/nec ;then |
|
14863 lt_prog_compiler_pic_F77='-Kconform_pic' |
|
14864 lt_prog_compiler_static_F77='-Bstatic' |
|
14865 fi |
|
14866 ;; |
|
14867 |
|
14868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
14869 lt_prog_compiler_wl_F77='-Wl,' |
|
14870 lt_prog_compiler_pic_F77='-KPIC' |
|
14871 lt_prog_compiler_static_F77='-Bstatic' |
|
14872 ;; |
|
14873 |
|
14874 unicos*) |
|
14875 lt_prog_compiler_wl_F77='-Wl,' |
|
14876 lt_prog_compiler_can_build_shared_F77=no |
|
14877 ;; |
|
14878 |
|
14879 uts4*) |
|
14880 lt_prog_compiler_pic_F77='-pic' |
|
14881 lt_prog_compiler_static_F77='-Bstatic' |
|
14882 ;; |
|
14883 |
|
14884 *) |
|
14885 lt_prog_compiler_can_build_shared_F77=no |
|
14886 ;; |
|
14887 esac |
|
14888 fi |
|
14889 |
|
14890 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
14891 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
|
14892 |
|
14893 # |
|
14894 # Check to make sure the PIC flag actually works. |
|
14895 # |
|
14896 if test -n "$lt_prog_compiler_pic_F77"; then |
|
14897 |
|
14898 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
14899 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
|
14900 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then |
|
14901 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14902 else |
|
14903 lt_cv_prog_compiler_pic_works_F77=no |
|
14904 ac_outfile=conftest.$ac_objext |
|
14905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
14906 lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
14907 # Insert the option either (1) after the last *FLAGS variable, or |
|
14908 # (2) before a word containing "conftest.", or (3) at the end. |
|
14909 # Note that $ac_compile itself does not contain backslashes and begins |
|
14910 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
14911 # The option is referenced via a variable to avoid confusing sed. |
|
14912 lt_compile=`echo "$ac_compile" | $SED \ |
|
14913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
14914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
14915 -e 's:$: $lt_compiler_flag:'` |
|
14916 (eval echo "\"\$as_me:14916: $lt_compile\"" >&5) |
|
14917 (eval "$lt_compile" 2>conftest.err) |
|
14918 ac_status=$? |
|
14919 cat conftest.err >&5 |
|
14920 echo "$as_me:14920: \$? = $ac_status" >&5 |
|
14921 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
14922 # The compiler can only warn and ignore the option if not recognized |
|
14923 # So say no if there are warnings other than the usual output. |
|
14924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
14925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
14926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
14927 lt_cv_prog_compiler_pic_works_F77=yes |
|
14928 fi |
|
14929 fi |
|
14930 $rm conftest* |
|
14931 |
|
14932 fi |
|
14933 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 |
|
14934 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } |
|
14935 |
|
14936 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then |
|
14937 case $lt_prog_compiler_pic_F77 in |
|
14938 "" | " "*) ;; |
|
14939 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
14940 esac |
|
14941 else |
|
14942 lt_prog_compiler_pic_F77= |
|
14943 lt_prog_compiler_can_build_shared_F77=no |
|
14944 fi |
|
14945 |
|
14946 fi |
|
14947 case $host_os in |
|
14948 # For platforms which do not support PIC, -DPIC is meaningless: |
|
14949 *djgpp*) |
|
14950 lt_prog_compiler_pic_F77= |
|
14951 ;; |
|
14952 *) |
|
14953 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
14954 ;; |
|
14955 esac |
|
14956 |
|
14957 # |
|
14958 # Check to make sure the static flag actually works. |
|
14959 # |
|
14960 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
|
14961 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
14962 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
14963 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then |
|
14964 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
14965 else |
|
14966 lt_cv_prog_compiler_static_works_F77=no |
|
14967 save_LDFLAGS="$LDFLAGS" |
|
14968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
14969 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
14970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
14971 # The linker can only warn and ignore the option if not recognized |
|
14972 # So say no if there are warnings |
|
14973 if test -s conftest.err; then |
|
14974 # Append any errors to the config.log. |
|
14975 cat conftest.err 1>&5 |
|
14976 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
14977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
14978 if diff conftest.exp conftest.er2 >/dev/null; then |
|
14979 lt_cv_prog_compiler_static_works_F77=yes |
|
14980 fi |
|
14981 else |
|
14982 lt_cv_prog_compiler_static_works_F77=yes |
|
14983 fi |
|
14984 fi |
|
14985 $rm -r conftest* |
|
14986 LDFLAGS="$save_LDFLAGS" |
|
14987 |
|
14988 fi |
|
14989 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 |
|
14990 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } |
|
14991 |
|
14992 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then |
|
14993 : |
|
14994 else |
|
14995 lt_prog_compiler_static_F77= |
|
14996 fi |
|
14997 |
|
14998 |
|
14999 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
15000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
15001 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
15002 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
15003 else |
|
15004 lt_cv_prog_compiler_c_o_F77=no |
|
15005 $rm -r conftest 2>/dev/null |
|
15006 mkdir conftest |
|
15007 cd conftest |
|
15008 mkdir out |
|
15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
15010 |
|
15011 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
15012 # Insert the option either (1) after the last *FLAGS variable, or |
|
15013 # (2) before a word containing "conftest.", or (3) at the end. |
|
15014 # Note that $ac_compile itself does not contain backslashes and begins |
|
15015 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
15016 lt_compile=`echo "$ac_compile" | $SED \ |
|
15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
15019 -e 's:$: $lt_compiler_flag:'` |
|
15020 (eval echo "\"\$as_me:15020: $lt_compile\"" >&5) |
|
15021 (eval "$lt_compile" 2>out/conftest.err) |
|
15022 ac_status=$? |
|
15023 cat out/conftest.err >&5 |
|
15024 echo "$as_me:15024: \$? = $ac_status" >&5 |
|
15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
15026 then |
|
15027 # The compiler can only warn and ignore the option if not recognized |
|
15028 # So say no if there are warnings |
|
15029 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
15032 lt_cv_prog_compiler_c_o_F77=yes |
|
15033 fi |
|
15034 fi |
|
15035 chmod u+w . 2>&5 |
|
15036 $rm conftest* |
|
15037 # SGI C++ compiler will create directory out/ii_files/ for |
|
15038 # template instantiation |
|
15039 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
15040 $rm out/* && rmdir out |
|
15041 cd .. |
|
15042 rmdir conftest |
|
15043 $rm conftest* |
|
15044 |
|
15045 fi |
|
15046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
15047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
|
15048 |
|
15049 |
|
15050 hard_links="nottested" |
|
15051 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
15052 # do not overwrite the value of need_locks provided by the user |
|
15053 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
15054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
15055 hard_links=yes |
|
15056 $rm conftest* |
|
15057 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
15058 touch conftest.a |
|
15059 ln conftest.a conftest.b 2>&5 || hard_links=no |
|
15060 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
15061 { echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
15062 echo "${ECHO_T}$hard_links" >&6; } |
|
15063 if test "$hard_links" = no; then |
|
15064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
15065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
15066 need_locks=warn |
|
15067 fi |
|
15068 else |
|
15069 need_locks=no |
|
15070 fi |
|
15071 |
|
15072 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
15073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
15074 |
|
15075 runpath_var= |
|
15076 allow_undefined_flag_F77= |
|
15077 enable_shared_with_static_runtimes_F77=no |
|
15078 archive_cmds_F77= |
|
15079 archive_expsym_cmds_F77= |
|
15080 old_archive_From_new_cmds_F77= |
|
15081 old_archive_from_expsyms_cmds_F77= |
|
15082 export_dynamic_flag_spec_F77= |
|
15083 whole_archive_flag_spec_F77= |
|
15084 thread_safe_flag_spec_F77= |
|
15085 hardcode_libdir_flag_spec_F77= |
|
15086 hardcode_libdir_flag_spec_ld_F77= |
|
15087 hardcode_libdir_separator_F77= |
|
15088 hardcode_direct_F77=no |
|
15089 hardcode_minus_L_F77=no |
|
15090 hardcode_shlibpath_var_F77=unsupported |
|
15091 link_all_deplibs_F77=unknown |
|
15092 hardcode_automatic_F77=no |
|
15093 module_cmds_F77= |
|
15094 module_expsym_cmds_F77= |
|
15095 always_export_symbols_F77=no |
|
15096 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
15097 # include_expsyms should be a list of space-separated symbols to be *always* |
|
15098 # included in the symbol list |
|
15099 include_expsyms_F77= |
|
15100 # exclude_expsyms can be an extended regexp of symbols to exclude |
|
15101 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
15102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
15103 # as well as any symbol that contains `d'. |
|
15104 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
15105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
15106 # platforms (ab)use it in PIC code, but their linkers get confused if |
|
15107 # the symbol is explicitly referenced. Since portable code cannot |
|
15108 # rely on this symbol name, it's probably fine to never include it in |
|
15109 # preloaded symbol tables. |
|
15110 # Exclude shared library initialization/finalization symbols. |
|
15111 extract_expsyms_cmds= |
|
15112 # Just being paranoid about ensuring that cc_basename is set. |
|
15113 for cc_temp in $compiler""; do |
|
15114 case $cc_temp in |
|
15115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
15116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
15117 \-*) ;; |
|
15118 *) break;; |
|
15119 esac |
|
15120 done |
|
15121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
15122 |
|
15123 case $host_os in |
|
15124 cygwin* | mingw* | pw32*) |
|
15125 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
15126 # When not using gcc, we currently assume that we are using |
|
15127 # Microsoft Visual C++. |
|
15128 if test "$GCC" != yes; then |
|
15129 with_gnu_ld=no |
|
15130 fi |
|
15131 ;; |
|
15132 interix*) |
|
15133 # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
15134 with_gnu_ld=yes |
|
15135 ;; |
|
15136 openbsd*) |
|
15137 with_gnu_ld=no |
|
15138 ;; |
|
15139 esac |
|
15140 |
|
15141 ld_shlibs_F77=yes |
|
15142 if test "$with_gnu_ld" = yes; then |
|
15143 # If archive_cmds runs LD, not CC, wlarc should be empty |
|
15144 wlarc='${wl}' |
|
15145 |
|
15146 # Set some defaults for GNU ld with shared library support. These |
|
15147 # are reset later if shared libraries are not supported. Putting them |
|
15148 # here allows them to be overridden if necessary. |
|
15149 runpath_var=LD_RUN_PATH |
|
15150 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
15151 export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
15152 # ancient GNU ld didn't support --whole-archive et. al. |
|
15153 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
15154 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
15155 else |
|
15156 whole_archive_flag_spec_F77= |
|
15157 fi |
|
15158 supports_anon_versioning=no |
|
15159 case `$LD -v 2>/dev/null` in |
|
15160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
15161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
15162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
15163 *\ 2.11.*) ;; # other 2.11 versions |
|
15164 *) supports_anon_versioning=yes ;; |
|
15165 esac |
|
15166 |
|
15167 # See if GNU ld supports shared libraries. |
|
15168 case $host_os in |
|
15169 aix[3-9]*) |
|
15170 # On AIX/PPC, the GNU linker is very broken |
|
15171 if test "$host_cpu" != ia64; then |
|
15172 ld_shlibs_F77=no |
|
15173 cat <<EOF 1>&2 |
|
15174 |
|
15175 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
15176 *** to be unable to reliably create shared libraries on AIX. |
|
15177 *** Therefore, libtool is disabling shared libraries support. If you |
|
15178 *** really care for shared libraries, you may want to modify your PATH |
|
15179 *** so that a non-GNU linker is found, and then restart. |
|
15180 |
|
15181 EOF |
|
15182 fi |
|
15183 ;; |
|
15184 |
|
15185 amigaos*) |
|
15186 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)' |
|
15187 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15188 hardcode_minus_L_F77=yes |
|
15189 |
|
15190 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
15191 # that the semantics of dynamic libraries on AmigaOS, at least up |
|
15192 # to version 4, is to share data among multiple programs linked |
|
15193 # with the same dynamic library. Since this doesn't match the |
|
15194 # behavior of shared libraries on other platforms, we can't use |
|
15195 # them. |
|
15196 ld_shlibs_F77=no |
|
15197 ;; |
|
15198 |
|
15199 beos*) |
|
15200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
15201 allow_undefined_flag_F77=unsupported |
|
15202 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
15203 # support --undefined. This deserves some investigation. FIXME |
|
15204 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
15205 else |
|
15206 ld_shlibs_F77=no |
|
15207 fi |
|
15208 ;; |
|
15209 |
|
15210 cygwin* | mingw* | pw32*) |
|
15211 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
15212 # as there is no search path for DLLs. |
|
15213 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15214 allow_undefined_flag_F77=unsupported |
|
15215 always_export_symbols_F77=no |
|
15216 enable_shared_with_static_runtimes_F77=yes |
|
15217 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
15218 |
|
15219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
15220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
15221 # If the export-symbols file already is a .def file (1st line |
|
15222 # is EXPORTS), use it as is; otherwise, prepend... |
|
15223 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
15224 cp $export_symbols $output_objdir/$soname.def; |
|
15225 else |
|
15226 echo EXPORTS > $output_objdir/$soname.def; |
|
15227 cat $export_symbols >> $output_objdir/$soname.def; |
|
15228 fi~ |
|
15229 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
15230 else |
|
15231 ld_shlibs_F77=no |
|
15232 fi |
|
15233 ;; |
|
15234 |
|
15235 interix[3-9]*) |
|
15236 hardcode_direct_F77=no |
|
15237 hardcode_shlibpath_var_F77=no |
|
15238 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
15239 export_dynamic_flag_spec_F77='${wl}-E' |
|
15240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
15241 # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
15242 # default) and relocated if they conflict, which is a slow very memory |
|
15243 # consuming and fragmenting process. To avoid this, we pick a random, |
|
15244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
15245 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
15246 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' |
|
15247 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' |
|
15248 ;; |
|
15249 |
|
15250 gnu* | linux* | k*bsd*-gnu) |
|
15251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
15252 tmp_addflag= |
|
15253 case $cc_basename,$host_cpu in |
|
15254 pgcc*) # Portland Group C compiler |
|
15255 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' |
|
15256 tmp_addflag=' $pic_flag' |
|
15257 ;; |
|
15258 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
15259 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' |
|
15260 tmp_addflag=' $pic_flag -Mnomain' ;; |
|
15261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
15262 tmp_addflag=' -i_dynamic' ;; |
|
15263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
15264 tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
15265 ifc* | ifort*) # Intel Fortran compiler |
|
15266 tmp_addflag=' -nofor_main' ;; |
|
15267 esac |
|
15268 case `$CC -V 2>&1 | sed 5q` in |
|
15269 *Sun\ C*) # Sun C 5.9 |
|
15270 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
15271 tmp_sharedflag='-G' ;; |
|
15272 *Sun\ F*) # Sun Fortran 8.3 |
|
15273 tmp_sharedflag='-G' ;; |
|
15274 *) |
|
15275 tmp_sharedflag='-shared' ;; |
|
15276 esac |
|
15277 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
15278 |
|
15279 if test $supports_anon_versioning = yes; then |
|
15280 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
15281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
15282 $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
15283 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
15284 fi |
|
15285 else |
|
15286 ld_shlibs_F77=no |
|
15287 fi |
|
15288 ;; |
|
15289 |
|
15290 netbsd*) |
|
15291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
15292 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
15293 wlarc= |
|
15294 else |
|
15295 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
15296 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
15297 fi |
|
15298 ;; |
|
15299 |
|
15300 solaris*) |
|
15301 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
15302 ld_shlibs_F77=no |
|
15303 cat <<EOF 1>&2 |
|
15304 |
|
15305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
15306 *** create shared libraries on Solaris systems. Therefore, libtool |
|
15307 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
15308 *** binutils to release 2.9.1 or newer. Another option is to modify |
|
15309 *** your PATH or compiler configuration so that the native linker is |
|
15310 *** used, and then restart. |
|
15311 |
|
15312 EOF |
|
15313 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
15314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
15315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
15316 else |
|
15317 ld_shlibs_F77=no |
|
15318 fi |
|
15319 ;; |
|
15320 |
|
15321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
15322 case `$LD -v 2>&1` in |
|
15323 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
15324 ld_shlibs_F77=no |
|
15325 cat <<_LT_EOF 1>&2 |
|
15326 |
|
15327 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
15328 *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
15329 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
15330 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
15331 *** your PATH or compiler configuration so that the native linker is |
|
15332 *** used, and then restart. |
|
15333 |
|
15334 _LT_EOF |
|
15335 ;; |
|
15336 *) |
|
15337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
15338 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
15339 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
15340 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
15341 else |
|
15342 ld_shlibs_F77=no |
|
15343 fi |
|
15344 ;; |
|
15345 esac |
|
15346 ;; |
|
15347 |
|
15348 sunos4*) |
|
15349 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
15350 wlarc= |
|
15351 hardcode_direct_F77=yes |
|
15352 hardcode_shlibpath_var_F77=no |
|
15353 ;; |
|
15354 |
|
15355 *) |
|
15356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
15357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
15358 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
15359 else |
|
15360 ld_shlibs_F77=no |
|
15361 fi |
|
15362 ;; |
|
15363 esac |
|
15364 |
|
15365 if test "$ld_shlibs_F77" = no; then |
|
15366 runpath_var= |
|
15367 hardcode_libdir_flag_spec_F77= |
|
15368 export_dynamic_flag_spec_F77= |
|
15369 whole_archive_flag_spec_F77= |
|
15370 fi |
|
15371 else |
|
15372 # PORTME fill in a description of your system's linker (not GNU ld) |
|
15373 case $host_os in |
|
15374 aix3*) |
|
15375 allow_undefined_flag_F77=unsupported |
|
15376 always_export_symbols_F77=yes |
|
15377 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' |
|
15378 # Note: this linker hardcodes the directories in LIBPATH if there |
|
15379 # are no directories specified by -L. |
|
15380 hardcode_minus_L_F77=yes |
|
15381 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
15382 # Neither direct hardcoding nor static linking is supported with a |
|
15383 # broken collect2. |
|
15384 hardcode_direct_F77=unsupported |
|
15385 fi |
|
15386 ;; |
|
15387 |
|
15388 aix[4-9]*) |
|
15389 if test "$host_cpu" = ia64; then |
|
15390 # On IA64, the linker does run time linking by default, so we don't |
|
15391 # have to do anything special. |
|
15392 aix_use_runtimelinking=no |
|
15393 exp_sym_flag='-Bexport' |
|
15394 no_entry_flag="" |
|
15395 else |
|
15396 # If we're using GNU nm, then we don't want the "-C" option. |
|
15397 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
15398 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
15399 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' |
|
15400 else |
|
15401 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' |
|
15402 fi |
|
15403 aix_use_runtimelinking=no |
|
15404 |
|
15405 # Test if we are trying to use run time linking or normal |
|
15406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
15407 # need to do runtime linking. |
|
15408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
15409 for ld_flag in $LDFLAGS; do |
|
15410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
15411 aix_use_runtimelinking=yes |
|
15412 break |
|
15413 fi |
|
15414 done |
|
15415 ;; |
|
15416 esac |
|
15417 |
|
15418 exp_sym_flag='-bexport' |
|
15419 no_entry_flag='-bnoentry' |
|
15420 fi |
|
15421 |
|
15422 # When large executables or shared objects are built, AIX ld can |
|
15423 # have problems creating the table of contents. If linking a library |
|
15424 # or program results in "error TOC overflow" add -mminimal-toc to |
|
15425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
15426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
15427 |
|
15428 archive_cmds_F77='' |
|
15429 hardcode_direct_F77=yes |
|
15430 hardcode_libdir_separator_F77=':' |
|
15431 link_all_deplibs_F77=yes |
|
15432 |
|
15433 if test "$GCC" = yes; then |
|
15434 case $host_os in aix4.[012]|aix4.[012].*) |
|
15435 # We only want to do this on AIX 4.2 and lower, the check |
|
15436 # below for broken collect2 doesn't work under 4.3+ |
|
15437 collect2name=`${CC} -print-prog-name=collect2` |
|
15438 if test -f "$collect2name" && \ |
|
15439 strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
15440 then |
|
15441 # We have reworked collect2 |
|
15442 : |
|
15443 else |
|
15444 # We have old collect2 |
|
15445 hardcode_direct_F77=unsupported |
|
15446 # It fails to find uninstalled libraries when the uninstalled |
|
15447 # path is not listed in the libpath. Setting hardcode_minus_L |
|
15448 # to unsupported forces relinking |
|
15449 hardcode_minus_L_F77=yes |
|
15450 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15451 hardcode_libdir_separator_F77= |
|
15452 fi |
|
15453 ;; |
|
15454 esac |
|
15455 shared_flag='-shared' |
|
15456 if test "$aix_use_runtimelinking" = yes; then |
|
15457 shared_flag="$shared_flag "'${wl}-G' |
|
15458 fi |
|
15459 else |
|
15460 # not using gcc |
|
15461 if test "$host_cpu" = ia64; then |
|
15462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
15463 # chokes on -Wl,-G. The following line is correct: |
|
15464 shared_flag='-G' |
|
15465 else |
|
15466 if test "$aix_use_runtimelinking" = yes; then |
|
15467 shared_flag='${wl}-G' |
|
15468 else |
|
15469 shared_flag='${wl}-bM:SRE' |
|
15470 fi |
|
15471 fi |
|
15472 fi |
|
15473 |
|
15474 # It seems that -bexpall does not export symbols beginning with |
|
15475 # underscore (_), so it is better to generate a list of symbols to export. |
|
15476 always_export_symbols_F77=yes |
|
15477 if test "$aix_use_runtimelinking" = yes; then |
|
15478 # Warning - without using the other runtime loading flags (-brtl), |
|
15479 # -berok will link without error, but may produce a broken library. |
|
15480 allow_undefined_flag_F77='-berok' |
|
15481 # Determine the default libpath from the value encoded in an empty executable. |
|
15482 cat >conftest.$ac_ext <<_ACEOF |
|
15483 program main |
|
15484 |
|
15485 end |
|
15486 _ACEOF |
|
15487 rm -f conftest.$ac_objext conftest$ac_exeext |
|
15488 if { (ac_try="$ac_link" |
|
15489 case "(($ac_try" in |
|
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
15491 *) ac_try_echo=$ac_try;; |
|
15492 esac |
|
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
15494 (eval "$ac_link") 2>conftest.er1 |
|
15495 ac_status=$? |
|
15496 grep -v '^ *+' conftest.er1 >conftest.err |
|
15497 rm -f conftest.er1 |
|
15498 cat conftest.err >&5 |
|
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15500 (exit $ac_status); } && { |
|
15501 test -z "$ac_f77_werror_flag" || |
|
15502 test ! -s conftest.err |
|
15503 } && test -s conftest$ac_exeext && |
|
15504 $as_test_x conftest$ac_exeext; then |
|
15505 |
|
15506 lt_aix_libpath_sed=' |
|
15507 /Import File Strings/,/^$/ { |
|
15508 /^0/ { |
|
15509 s/^0 *\(.*\)$/\1/ |
|
15510 p |
|
15511 } |
|
15512 }' |
|
15513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
15514 # Check for a 64-bit object if we didn't find anything. |
|
15515 if test -z "$aix_libpath"; then |
|
15516 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
15517 fi |
|
15518 else |
|
15519 echo "$as_me: failed program was:" >&5 |
|
15520 sed 's/^/| /' conftest.$ac_ext >&5 |
|
15521 |
|
15522 |
|
15523 fi |
|
15524 |
|
15525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
15526 conftest$ac_exeext conftest.$ac_ext |
|
15527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
15528 |
|
15529 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
15530 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" |
|
15531 else |
|
15532 if test "$host_cpu" = ia64; then |
|
15533 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
15534 allow_undefined_flag_F77="-z nodefs" |
|
15535 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" |
|
15536 else |
|
15537 # Determine the default libpath from the value encoded in an empty executable. |
|
15538 cat >conftest.$ac_ext <<_ACEOF |
|
15539 program main |
|
15540 |
|
15541 end |
|
15542 _ACEOF |
|
15543 rm -f conftest.$ac_objext conftest$ac_exeext |
|
15544 if { (ac_try="$ac_link" |
|
15545 case "(($ac_try" in |
|
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
15547 *) ac_try_echo=$ac_try;; |
|
15548 esac |
|
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
15550 (eval "$ac_link") 2>conftest.er1 |
|
15551 ac_status=$? |
|
15552 grep -v '^ *+' conftest.er1 >conftest.err |
|
15553 rm -f conftest.er1 |
|
15554 cat conftest.err >&5 |
|
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
15556 (exit $ac_status); } && { |
|
15557 test -z "$ac_f77_werror_flag" || |
|
15558 test ! -s conftest.err |
|
15559 } && test -s conftest$ac_exeext && |
|
15560 $as_test_x conftest$ac_exeext; then |
|
15561 |
|
15562 lt_aix_libpath_sed=' |
|
15563 /Import File Strings/,/^$/ { |
|
15564 /^0/ { |
|
15565 s/^0 *\(.*\)$/\1/ |
|
15566 p |
|
15567 } |
|
15568 }' |
|
15569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
15570 # Check for a 64-bit object if we didn't find anything. |
|
15571 if test -z "$aix_libpath"; then |
|
15572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
15573 fi |
|
15574 else |
|
15575 echo "$as_me: failed program was:" >&5 |
|
15576 sed 's/^/| /' conftest.$ac_ext >&5 |
|
15577 |
|
15578 |
|
15579 fi |
|
15580 |
|
15581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
15582 conftest$ac_exeext conftest.$ac_ext |
|
15583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
15584 |
|
15585 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
15586 # Warning - without using the other run time loading flags, |
|
15587 # -berok will link without error, but may produce a broken library. |
|
15588 no_undefined_flag_F77=' ${wl}-bernotok' |
|
15589 allow_undefined_flag_F77=' ${wl}-berok' |
|
15590 # Exported symbols can be pulled into shared objects from archives |
|
15591 whole_archive_flag_spec_F77='$convenience' |
|
15592 archive_cmds_need_lc_F77=yes |
|
15593 # This is similar to how AIX traditionally builds its shared libraries. |
|
15594 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' |
|
15595 fi |
|
15596 fi |
|
15597 ;; |
|
15598 |
|
15599 amigaos*) |
|
15600 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)' |
|
15601 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15602 hardcode_minus_L_F77=yes |
|
15603 # see comment about different semantics on the GNU ld section |
|
15604 ld_shlibs_F77=no |
|
15605 ;; |
|
15606 |
|
15607 bsdi[45]*) |
|
15608 export_dynamic_flag_spec_F77=-rdynamic |
|
15609 ;; |
|
15610 |
|
15611 cygwin* | mingw* | pw32*) |
|
15612 # When not using gcc, we currently assume that we are using |
|
15613 # Microsoft Visual C++. |
|
15614 # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
15615 # no search path for DLLs. |
|
15616 hardcode_libdir_flag_spec_F77=' ' |
|
15617 allow_undefined_flag_F77=unsupported |
|
15618 # Tell ltmain to make .lib files, not .a files. |
|
15619 libext=lib |
|
15620 # Tell ltmain to make .dll files, not .so files. |
|
15621 shrext_cmds=".dll" |
|
15622 # FIXME: Setting linknames here is a bad hack. |
|
15623 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
15624 # The linker will automatically build a .lib file if we build a DLL. |
|
15625 old_archive_From_new_cmds_F77='true' |
|
15626 # FIXME: Should let the user specify the lib program. |
|
15627 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
15628 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
|
15629 enable_shared_with_static_runtimes_F77=yes |
|
15630 ;; |
|
15631 |
|
15632 darwin* | rhapsody*) |
|
15633 case $host_os in |
|
15634 rhapsody* | darwin1.[012]) |
|
15635 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
|
15636 ;; |
|
15637 *) # Darwin 1.3 on |
|
15638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
15639 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
15640 else |
|
15641 case ${MACOSX_DEPLOYMENT_TARGET} in |
|
15642 10.[012]) |
|
15643 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
15644 ;; |
|
15645 10.*) |
|
15646 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
|
15647 ;; |
|
15648 esac |
|
15649 fi |
|
15650 ;; |
|
15651 esac |
|
15652 archive_cmds_need_lc_F77=no |
|
15653 hardcode_direct_F77=no |
|
15654 hardcode_automatic_F77=yes |
|
15655 hardcode_shlibpath_var_F77=unsupported |
|
15656 whole_archive_flag_spec_F77='' |
|
15657 link_all_deplibs_F77=yes |
|
15658 if test "$GCC" = yes ; then |
|
15659 output_verbose_link_cmd='echo' |
|
15660 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
15661 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
15662 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
|
15663 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
|
15664 else |
|
15665 case $cc_basename in |
|
15666 xlc*) |
|
15667 output_verbose_link_cmd='echo' |
|
15668 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
|
15669 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
15670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
15671 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
15672 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}' |
|
15673 ;; |
|
15674 *) |
|
15675 ld_shlibs_F77=no |
|
15676 ;; |
|
15677 esac |
|
15678 fi |
|
15679 ;; |
|
15680 |
|
15681 dgux*) |
|
15682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15683 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15684 hardcode_shlibpath_var_F77=no |
|
15685 ;; |
|
15686 |
|
15687 freebsd1*) |
|
15688 ld_shlibs_F77=no |
|
15689 ;; |
|
15690 |
|
15691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
15692 # support. Future versions do this automatically, but an explicit c++rt0.o |
|
15693 # does not break anything, and helps significantly (at the cost of a little |
|
15694 # extra space). |
|
15695 freebsd2.2*) |
|
15696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
15697 hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15698 hardcode_direct_F77=yes |
|
15699 hardcode_shlibpath_var_F77=no |
|
15700 ;; |
|
15701 |
|
15702 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
15703 freebsd2*) |
|
15704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
15705 hardcode_direct_F77=yes |
|
15706 hardcode_minus_L_F77=yes |
|
15707 hardcode_shlibpath_var_F77=no |
|
15708 ;; |
|
15709 |
|
15710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
15711 freebsd* | dragonfly*) |
|
15712 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
15713 hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15714 hardcode_direct_F77=yes |
|
15715 hardcode_shlibpath_var_F77=no |
|
15716 ;; |
|
15717 |
|
15718 hpux9*) |
|
15719 if test "$GCC" = yes; then |
|
15720 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' |
|
15721 else |
|
15722 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' |
|
15723 fi |
|
15724 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15725 hardcode_libdir_separator_F77=: |
|
15726 hardcode_direct_F77=yes |
|
15727 |
|
15728 # hardcode_minus_L: Not really in the search PATH, |
|
15729 # but as the default location of the library. |
|
15730 hardcode_minus_L_F77=yes |
|
15731 export_dynamic_flag_spec_F77='${wl}-E' |
|
15732 ;; |
|
15733 |
|
15734 hpux10*) |
|
15735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
15736 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
15737 else |
|
15738 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
15739 fi |
|
15740 if test "$with_gnu_ld" = no; then |
|
15741 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15742 hardcode_libdir_separator_F77=: |
|
15743 |
|
15744 hardcode_direct_F77=yes |
|
15745 export_dynamic_flag_spec_F77='${wl}-E' |
|
15746 |
|
15747 # hardcode_minus_L: Not really in the search PATH, |
|
15748 # but as the default location of the library. |
|
15749 hardcode_minus_L_F77=yes |
|
15750 fi |
|
15751 ;; |
|
15752 |
|
15753 hpux11*) |
|
15754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
15755 case $host_cpu in |
|
15756 hppa*64*) |
|
15757 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15758 ;; |
|
15759 ia64*) |
|
15760 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
15761 ;; |
|
15762 *) |
|
15763 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
15764 ;; |
|
15765 esac |
|
15766 else |
|
15767 case $host_cpu in |
|
15768 hppa*64*) |
|
15769 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15770 ;; |
|
15771 ia64*) |
|
15772 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
15773 ;; |
|
15774 *) |
|
15775 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
15776 ;; |
|
15777 esac |
|
15778 fi |
|
15779 if test "$with_gnu_ld" = no; then |
|
15780 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
15781 hardcode_libdir_separator_F77=: |
|
15782 |
|
15783 case $host_cpu in |
|
15784 hppa*64*|ia64*) |
|
15785 hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
15786 hardcode_direct_F77=no |
|
15787 hardcode_shlibpath_var_F77=no |
|
15788 ;; |
|
15789 *) |
|
15790 hardcode_direct_F77=yes |
|
15791 export_dynamic_flag_spec_F77='${wl}-E' |
|
15792 |
|
15793 # hardcode_minus_L: Not really in the search PATH, |
|
15794 # but as the default location of the library. |
|
15795 hardcode_minus_L_F77=yes |
|
15796 ;; |
|
15797 esac |
|
15798 fi |
|
15799 ;; |
|
15800 |
|
15801 irix5* | irix6* | nonstopux*) |
|
15802 if test "$GCC" = yes; then |
|
15803 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' |
|
15804 else |
|
15805 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' |
|
15806 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
15807 fi |
|
15808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15809 hardcode_libdir_separator_F77=: |
|
15810 link_all_deplibs_F77=yes |
|
15811 ;; |
|
15812 |
|
15813 netbsd*) |
|
15814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
15815 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
15816 else |
|
15817 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
15818 fi |
|
15819 hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15820 hardcode_direct_F77=yes |
|
15821 hardcode_shlibpath_var_F77=no |
|
15822 ;; |
|
15823 |
|
15824 newsos6) |
|
15825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15826 hardcode_direct_F77=yes |
|
15827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15828 hardcode_libdir_separator_F77=: |
|
15829 hardcode_shlibpath_var_F77=no |
|
15830 ;; |
|
15831 |
|
15832 openbsd*) |
|
15833 if test -f /usr/libexec/ld.so; then |
|
15834 hardcode_direct_F77=yes |
|
15835 hardcode_shlibpath_var_F77=no |
|
15836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
15837 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
15838 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
15839 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
15840 export_dynamic_flag_spec_F77='${wl}-E' |
|
15841 else |
|
15842 case $host_os in |
|
15843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
15844 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
15845 hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15846 ;; |
|
15847 *) |
|
15848 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
15849 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
15850 ;; |
|
15851 esac |
|
15852 fi |
|
15853 else |
|
15854 ld_shlibs_F77=no |
|
15855 fi |
|
15856 ;; |
|
15857 |
|
15858 os2*) |
|
15859 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15860 hardcode_minus_L_F77=yes |
|
15861 allow_undefined_flag_F77=unsupported |
|
15862 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' |
|
15863 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
15864 ;; |
|
15865 |
|
15866 osf3*) |
|
15867 if test "$GCC" = yes; then |
|
15868 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
15869 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' |
|
15870 else |
|
15871 allow_undefined_flag_F77=' -expect_unresolved \*' |
|
15872 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' |
|
15873 fi |
|
15874 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15875 hardcode_libdir_separator_F77=: |
|
15876 ;; |
|
15877 |
|
15878 osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
15879 if test "$GCC" = yes; then |
|
15880 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
15881 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' |
|
15882 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
15883 else |
|
15884 allow_undefined_flag_F77=' -expect_unresolved \*' |
|
15885 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' |
|
15886 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~ |
|
15887 $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' |
|
15888 |
|
15889 # Both c and cxx compiler support -rpath directly |
|
15890 hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
15891 fi |
|
15892 hardcode_libdir_separator_F77=: |
|
15893 ;; |
|
15894 |
|
15895 solaris*) |
|
15896 no_undefined_flag_F77=' -z text' |
|
15897 if test "$GCC" = yes; then |
|
15898 wlarc='${wl}' |
|
15899 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15900 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
15901 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
15902 else |
|
15903 wlarc='' |
|
15904 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15905 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
15906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
15907 fi |
|
15908 hardcode_libdir_flag_spec_F77='-R$libdir' |
|
15909 hardcode_shlibpath_var_F77=no |
|
15910 case $host_os in |
|
15911 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
15912 *) |
|
15913 # The compiler driver will combine and reorder linker options, |
|
15914 # but understands `-z linker_flag'. GCC discards it without `$wl', |
|
15915 # but is careful enough not to reorder. |
|
15916 # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
15917 if test "$GCC" = yes; then |
|
15918 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
15919 else |
|
15920 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
|
15921 fi |
|
15922 ;; |
|
15923 esac |
|
15924 link_all_deplibs_F77=yes |
|
15925 ;; |
|
15926 |
|
15927 sunos4*) |
|
15928 if test "x$host_vendor" = xsequent; then |
|
15929 # Use $CC to link under sequent, because it throws in some extra .o |
|
15930 # files that make .init and .fini sections work. |
|
15931 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15932 else |
|
15933 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
15934 fi |
|
15935 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
15936 hardcode_direct_F77=yes |
|
15937 hardcode_minus_L_F77=yes |
|
15938 hardcode_shlibpath_var_F77=no |
|
15939 ;; |
|
15940 |
|
15941 sysv4) |
|
15942 case $host_vendor in |
|
15943 sni) |
|
15944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15945 hardcode_direct_F77=yes # is this really true??? |
|
15946 ;; |
|
15947 siemens) |
|
15948 ## LD is ld it makes a PLAMLIB |
|
15949 ## CC just makes a GrossModule. |
|
15950 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
15951 reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
15952 hardcode_direct_F77=no |
|
15953 ;; |
|
15954 motorola) |
|
15955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15956 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
15957 ;; |
|
15958 esac |
|
15959 runpath_var='LD_RUN_PATH' |
|
15960 hardcode_shlibpath_var_F77=no |
|
15961 ;; |
|
15962 |
|
15963 sysv4.3*) |
|
15964 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15965 hardcode_shlibpath_var_F77=no |
|
15966 export_dynamic_flag_spec_F77='-Bexport' |
|
15967 ;; |
|
15968 |
|
15969 sysv4*MP*) |
|
15970 if test -d /usr/nec; then |
|
15971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
15972 hardcode_shlibpath_var_F77=no |
|
15973 runpath_var=LD_RUN_PATH |
|
15974 hardcode_runpath_var=yes |
|
15975 ld_shlibs_F77=yes |
|
15976 fi |
|
15977 ;; |
|
15978 |
|
15979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
15980 no_undefined_flag_F77='${wl}-z,text' |
|
15981 archive_cmds_need_lc_F77=no |
|
15982 hardcode_shlibpath_var_F77=no |
|
15983 runpath_var='LD_RUN_PATH' |
|
15984 |
|
15985 if test "$GCC" = yes; then |
|
15986 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15987 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15988 else |
|
15989 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15990 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
15991 fi |
|
15992 ;; |
|
15993 |
|
15994 sysv5* | sco3.2v5* | sco5v6*) |
|
15995 # Note: We can NOT use -z defs as we might desire, because we do not |
|
15996 # link with -lc, and that would cause any symbols used from libc to |
|
15997 # always be unresolved, which means just about no library would |
|
15998 # ever link correctly. If we're not using GNU ld we use -z text |
|
15999 # though, which does catch some bad symbols but isn't as heavy-handed |
|
16000 # as -z defs. |
|
16001 no_undefined_flag_F77='${wl}-z,text' |
|
16002 allow_undefined_flag_F77='${wl}-z,nodefs' |
|
16003 archive_cmds_need_lc_F77=no |
|
16004 hardcode_shlibpath_var_F77=no |
|
16005 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
16006 hardcode_libdir_separator_F77=':' |
|
16007 link_all_deplibs_F77=yes |
|
16008 export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
16009 runpath_var='LD_RUN_PATH' |
|
16010 |
|
16011 if test "$GCC" = yes; then |
|
16012 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
16013 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
16014 else |
|
16015 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
16016 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
16017 fi |
|
16018 ;; |
|
16019 |
|
16020 uts4*) |
|
16021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
16022 hardcode_libdir_flag_spec_F77='-L$libdir' |
|
16023 hardcode_shlibpath_var_F77=no |
|
16024 ;; |
|
16025 |
|
16026 *) |
|
16027 ld_shlibs_F77=no |
|
16028 ;; |
|
16029 esac |
|
16030 fi |
|
16031 |
|
16032 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
16033 echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
|
16034 test "$ld_shlibs_F77" = no && can_build_shared=no |
|
16035 |
|
16036 # |
|
16037 # Do we need to explicitly link libc? |
|
16038 # |
|
16039 case "x$archive_cmds_need_lc_F77" in |
|
16040 x|xyes) |
|
16041 # Assume -lc should be added |
|
16042 archive_cmds_need_lc_F77=yes |
|
16043 |
|
16044 if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
16045 case $archive_cmds_F77 in |
|
16046 *'~'*) |
|
16047 # FIXME: we may have to deal with multi-command sequences. |
|
16048 ;; |
|
16049 '$CC '*) |
|
16050 # Test whether the compiler implicitly links with -lc since on some |
|
16051 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
16052 # to ld, don't add -lc before -lgcc. |
|
16053 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
16054 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
16055 $rm conftest* |
|
16056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
16057 |
|
16058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
16059 (eval $ac_compile) 2>&5 |
|
16060 ac_status=$? |
|
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16062 (exit $ac_status); } 2>conftest.err; then |
|
16063 soname=conftest |
|
16064 lib=conftest |
|
16065 libobjs=conftest.$ac_objext |
|
16066 deplibs= |
|
16067 wl=$lt_prog_compiler_wl_F77 |
|
16068 pic_flag=$lt_prog_compiler_pic_F77 |
|
16069 compiler_flags=-v |
|
16070 linker_flags=-v |
|
16071 verstring= |
|
16072 output_objdir=. |
|
16073 libname=conftest |
|
16074 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
16075 allow_undefined_flag_F77= |
|
16076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
16077 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
16078 ac_status=$? |
|
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
16080 (exit $ac_status); } |
|
16081 then |
|
16082 archive_cmds_need_lc_F77=no |
|
16083 else |
|
16084 archive_cmds_need_lc_F77=yes |
|
16085 fi |
|
16086 allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
16087 else |
|
16088 cat conftest.err 1>&5 |
|
16089 fi |
|
16090 $rm conftest* |
|
16091 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
16092 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
|
16093 ;; |
|
16094 esac |
|
16095 fi |
|
16096 ;; |
|
16097 esac |
|
16098 |
|
16099 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
16100 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
16101 library_names_spec= |
|
16102 libname_spec='lib$name' |
|
16103 soname_spec= |
|
16104 shrext_cmds=".so" |
|
16105 postinstall_cmds= |
|
16106 postuninstall_cmds= |
|
16107 finish_cmds= |
|
16108 finish_eval= |
|
16109 shlibpath_var= |
|
16110 shlibpath_overrides_runpath=unknown |
|
16111 version_type=none |
|
16112 dynamic_linker="$host_os ld.so" |
|
16113 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
16114 |
|
16115 need_lib_prefix=unknown |
|
16116 hardcode_into_libs=no |
|
16117 |
|
16118 # when you set need_version to no, make sure it does not cause -set_version |
|
16119 # flags to be left without arguments |
|
16120 need_version=unknown |
|
16121 |
|
16122 case $host_os in |
|
16123 aix3*) |
|
16124 version_type=linux |
|
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
16126 shlibpath_var=LIBPATH |
|
16127 |
|
16128 # AIX 3 has no versioning support, so we append a major version to the name. |
|
16129 soname_spec='${libname}${release}${shared_ext}$major' |
|
16130 ;; |
|
16131 |
|
16132 aix[4-9]*) |
|
16133 version_type=linux |
|
16134 need_lib_prefix=no |
|
16135 need_version=no |
|
16136 hardcode_into_libs=yes |
|
16137 if test "$host_cpu" = ia64; then |
|
16138 # AIX 5 supports IA64 |
|
16139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
16140 shlibpath_var=LD_LIBRARY_PATH |
|
16141 else |
|
16142 # With GCC up to 2.95.x, collect2 would create an import file |
|
16143 # for dependence libraries. The import file would start with |
|
16144 # the line `#! .'. This would cause the generated library to |
|
16145 # depend on `.', always an invalid library. This was fixed in |
|
16146 # development snapshots of GCC prior to 3.0. |
|
16147 case $host_os in |
|
16148 aix4 | aix4.[01] | aix4.[01].*) |
|
16149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
16150 echo ' yes ' |
|
16151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
16152 : |
|
16153 else |
|
16154 can_build_shared=no |
|
16155 fi |
|
16156 ;; |
|
16157 esac |
|
16158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
16159 # soname into executable. Probably we can add versioning support to |
|
16160 # collect2, so additional links can be useful in future. |
|
16161 if test "$aix_use_runtimelinking" = yes; then |
|
16162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
16163 # instead of lib<name>.a to let people know that these are not |
|
16164 # typical AIX shared libraries. |
|
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16166 else |
|
16167 # We preserve .a as extension for shared libraries through AIX4.2 |
|
16168 # and later when we are not doing run time linking. |
|
16169 library_names_spec='${libname}${release}.a $libname.a' |
|
16170 soname_spec='${libname}${release}${shared_ext}$major' |
|
16171 fi |
|
16172 shlibpath_var=LIBPATH |
|
16173 fi |
|
16174 ;; |
|
16175 |
|
16176 amigaos*) |
|
16177 library_names_spec='$libname.ixlibrary $libname.a' |
|
16178 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
16179 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' |
|
16180 ;; |
|
16181 |
|
16182 beos*) |
|
16183 library_names_spec='${libname}${shared_ext}' |
|
16184 dynamic_linker="$host_os ld.so" |
|
16185 shlibpath_var=LIBRARY_PATH |
|
16186 ;; |
|
16187 |
|
16188 bsdi[45]*) |
|
16189 version_type=linux |
|
16190 need_version=no |
|
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16192 soname_spec='${libname}${release}${shared_ext}$major' |
|
16193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
16194 shlibpath_var=LD_LIBRARY_PATH |
|
16195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
16196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
16197 # the default ld.so.conf also contains /usr/contrib/lib and |
|
16198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
16199 # libtool to hard-code these into programs |
|
16200 ;; |
|
16201 |
|
16202 cygwin* | mingw* | pw32*) |
|
16203 version_type=windows |
|
16204 shrext_cmds=".dll" |
|
16205 need_version=no |
|
16206 need_lib_prefix=no |
|
16207 |
|
16208 case $GCC,$host_os in |
|
16209 yes,cygwin* | yes,mingw* | yes,pw32*) |
|
16210 library_names_spec='$libname.dll.a' |
|
16211 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
16212 postinstall_cmds='base_file=`basename \${file}`~ |
|
16213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
16214 dldir=$destdir/`dirname \$dlpath`~ |
|
16215 test -d \$dldir || mkdir -p \$dldir~ |
|
16216 $install_prog $dir/$dlname \$dldir/$dlname~ |
|
16217 chmod a+x \$dldir/$dlname' |
|
16218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
16219 dlpath=$dir/\$dldll~ |
|
16220 $rm \$dlpath' |
|
16221 shlibpath_overrides_runpath=yes |
|
16222 |
|
16223 case $host_os in |
|
16224 cygwin*) |
|
16225 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
16226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
16227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
16228 ;; |
|
16229 mingw*) |
|
16230 # MinGW DLLs use traditional 'lib' prefix |
|
16231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
16232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
16233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
16234 # It is most probably a Windows format PATH printed by |
|
16235 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
16236 # path with ; separators, and with drive letters. We can handle the |
|
16237 # drive letters (cygwin fileutils understands them), so leave them, |
|
16238 # especially as we might pass files found there to a mingw objdump, |
|
16239 # which wouldn't understand a cygwinified path. Ahh. |
|
16240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
16241 else |
|
16242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
16243 fi |
|
16244 ;; |
|
16245 pw32*) |
|
16246 # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
16247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
16248 ;; |
|
16249 esac |
|
16250 ;; |
|
16251 |
|
16252 *) |
|
16253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
16254 ;; |
|
16255 esac |
|
16256 dynamic_linker='Win32 ld.exe' |
|
16257 # FIXME: first we should search . and the directory the executable is in |
|
16258 shlibpath_var=PATH |
|
16259 ;; |
|
16260 |
|
16261 darwin* | rhapsody*) |
|
16262 dynamic_linker="$host_os dyld" |
|
16263 version_type=darwin |
|
16264 need_lib_prefix=no |
|
16265 need_version=no |
|
16266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
16267 soname_spec='${libname}${release}${major}$shared_ext' |
|
16268 shlibpath_overrides_runpath=yes |
|
16269 shlibpath_var=DYLD_LIBRARY_PATH |
|
16270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
16271 |
|
16272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
16273 ;; |
|
16274 |
|
16275 dgux*) |
|
16276 version_type=linux |
|
16277 need_lib_prefix=no |
|
16278 need_version=no |
|
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
16280 soname_spec='${libname}${release}${shared_ext}$major' |
|
16281 shlibpath_var=LD_LIBRARY_PATH |
|
16282 ;; |
|
16283 |
|
16284 freebsd1*) |
|
16285 dynamic_linker=no |
|
16286 ;; |
|
16287 |
|
16288 freebsd* | dragonfly*) |
|
16289 # DragonFly does not have aout. When/if they implement a new |
|
16290 # versioning mechanism, adjust this. |
|
16291 if test -x /usr/bin/objformat; then |
|
16292 objformat=`/usr/bin/objformat` |
|
16293 else |
|
16294 case $host_os in |
|
16295 freebsd[123]*) objformat=aout ;; |
|
16296 *) objformat=elf ;; |
|
16297 esac |
|
16298 fi |
|
16299 # Handle Gentoo/FreeBSD as it was Linux |
|
16300 case $host_vendor in |
|
16301 gentoo) |
|
16302 version_type=linux ;; |
|
16303 *) |
|
16304 version_type=freebsd-$objformat ;; |
|
16305 esac |
|
16306 |
|
16307 case $version_type in |
|
16308 freebsd-elf*) |
|
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
16310 need_version=no |
|
16311 need_lib_prefix=no |
|
16312 ;; |
|
16313 freebsd-*) |
|
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
16315 need_version=yes |
|
16316 ;; |
|
16317 linux) |
|
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
16319 soname_spec='${libname}${release}${shared_ext}$major' |
|
16320 need_lib_prefix=no |
|
16321 need_version=no |
|
16322 ;; |
|
16323 esac |
|
16324 shlibpath_var=LD_LIBRARY_PATH |
|
16325 case $host_os in |
|
16326 freebsd2*) |
|
16327 shlibpath_overrides_runpath=yes |
|
16328 ;; |
|
16329 freebsd3.[01]* | freebsdelf3.[01]*) |
|
16330 shlibpath_overrides_runpath=yes |
|
16331 hardcode_into_libs=yes |
|
16332 ;; |
|
16333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
16334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
16335 shlibpath_overrides_runpath=no |
|
16336 hardcode_into_libs=yes |
|
16337 ;; |
|
16338 *) # from 4.6 on, and DragonFly |
|
16339 shlibpath_overrides_runpath=yes |
|
16340 hardcode_into_libs=yes |
|
16341 ;; |
|
16342 esac |
|
16343 ;; |
|
16344 |
|
16345 gnu*) |
|
16346 version_type=linux |
|
16347 need_lib_prefix=no |
|
16348 need_version=no |
|
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
16350 soname_spec='${libname}${release}${shared_ext}$major' |
|
16351 shlibpath_var=LD_LIBRARY_PATH |
|
16352 hardcode_into_libs=yes |
|
16353 ;; |
|
16354 |
|
16355 hpux9* | hpux10* | hpux11*) |
|
16356 # Give a soname corresponding to the major version so that dld.sl refuses to |
|
16357 # link against other versions. |
|
16358 version_type=sunos |
|
16359 need_lib_prefix=no |
|
16360 need_version=no |
|
16361 case $host_cpu in |
|
16362 ia64*) |
|
16363 shrext_cmds='.so' |
|
16364 hardcode_into_libs=yes |
|
16365 dynamic_linker="$host_os dld.so" |
|
16366 shlibpath_var=LD_LIBRARY_PATH |
|
16367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16369 soname_spec='${libname}${release}${shared_ext}$major' |
|
16370 if test "X$HPUX_IA64_MODE" = X32; then |
|
16371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
16372 else |
|
16373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
16374 fi |
|
16375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
16376 ;; |
|
16377 hppa*64*) |
|
16378 shrext_cmds='.sl' |
|
16379 hardcode_into_libs=yes |
|
16380 dynamic_linker="$host_os dld.sl" |
|
16381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
16382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16384 soname_spec='${libname}${release}${shared_ext}$major' |
|
16385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
16386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
16387 ;; |
|
16388 *) |
|
16389 shrext_cmds='.sl' |
|
16390 dynamic_linker="$host_os dld.sl" |
|
16391 shlibpath_var=SHLIB_PATH |
|
16392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16394 soname_spec='${libname}${release}${shared_ext}$major' |
|
16395 ;; |
|
16396 esac |
|
16397 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
16398 postinstall_cmds='chmod 555 $lib' |
|
16399 ;; |
|
16400 |
|
16401 interix[3-9]*) |
|
16402 version_type=linux |
|
16403 need_lib_prefix=no |
|
16404 need_version=no |
|
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
16406 soname_spec='${libname}${release}${shared_ext}$major' |
|
16407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
16408 shlibpath_var=LD_LIBRARY_PATH |
|
16409 shlibpath_overrides_runpath=no |
|
16410 hardcode_into_libs=yes |
|
16411 ;; |
|
16412 |
|
16413 irix5* | irix6* | nonstopux*) |
|
16414 case $host_os in |
|
16415 nonstopux*) version_type=nonstopux ;; |
|
16416 *) |
|
16417 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
16418 version_type=linux |
|
16419 else |
|
16420 version_type=irix |
|
16421 fi ;; |
|
16422 esac |
|
16423 need_lib_prefix=no |
|
16424 need_version=no |
|
16425 soname_spec='${libname}${release}${shared_ext}$major' |
|
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
16427 case $host_os in |
|
16428 irix5* | nonstopux*) |
|
16429 libsuff= shlibsuff= |
|
16430 ;; |
|
16431 *) |
|
16432 case $LD in # libtool.m4 will add one of these switches to LD |
|
16433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
16434 libsuff= shlibsuff= libmagic=32-bit;; |
|
16435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
16436 libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
16437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
16438 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
16439 *) libsuff= shlibsuff= libmagic=never-match;; |
|
16440 esac |
|
16441 ;; |
|
16442 esac |
|
16443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
16444 shlibpath_overrides_runpath=no |
|
16445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
16446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
16447 hardcode_into_libs=yes |
|
16448 ;; |
|
16449 |
|
16450 # No shared lib support for Linux oldld, aout, or coff. |
|
16451 linux*oldld* | linux*aout* | linux*coff*) |
|
16452 dynamic_linker=no |
|
16453 ;; |
|
16454 |
|
16455 # This must be Linux ELF. |
|
16456 linux* | k*bsd*-gnu) |
|
16457 version_type=linux |
|
16458 need_lib_prefix=no |
|
16459 need_version=no |
|
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16461 soname_spec='${libname}${release}${shared_ext}$major' |
|
16462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
16463 shlibpath_var=LD_LIBRARY_PATH |
|
16464 shlibpath_overrides_runpath=no |
|
16465 # This implies no fast_install, which is unacceptable. |
|
16466 # Some rework will be needed to allow for fast_install |
|
16467 # before this can be enabled. |
|
16468 hardcode_into_libs=yes |
|
16469 |
|
16470 # Append ld.so.conf contents to the search path |
|
16471 if test -f /etc/ld.so.conf; then |
|
16472 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
16473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
16474 fi |
|
16475 |
|
16476 # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
16477 # powerpc, because MkLinux only supported shared libraries with the |
|
16478 # GNU dynamic linker. Since this was broken with cross compilers, |
|
16479 # most powerpc-linux boxes support dynamic linking these days and |
|
16480 # people can always --disable-shared, the test was removed, and we |
|
16481 # assume the GNU/Linux dynamic linker is in use. |
|
16482 dynamic_linker='GNU/Linux ld.so' |
|
16483 ;; |
|
16484 |
|
16485 netbsd*) |
|
16486 version_type=sunos |
|
16487 need_lib_prefix=no |
|
16488 need_version=no |
|
16489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
16492 dynamic_linker='NetBSD (a.out) ld.so' |
|
16493 else |
|
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
16495 soname_spec='${libname}${release}${shared_ext}$major' |
|
16496 dynamic_linker='NetBSD ld.elf_so' |
|
16497 fi |
|
16498 shlibpath_var=LD_LIBRARY_PATH |
|
16499 shlibpath_overrides_runpath=yes |
|
16500 hardcode_into_libs=yes |
|
16501 ;; |
|
16502 |
|
16503 newsos6) |
|
16504 version_type=linux |
|
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16506 shlibpath_var=LD_LIBRARY_PATH |
|
16507 shlibpath_overrides_runpath=yes |
|
16508 ;; |
|
16509 |
|
16510 nto-qnx*) |
|
16511 version_type=linux |
|
16512 need_lib_prefix=no |
|
16513 need_version=no |
|
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16515 soname_spec='${libname}${release}${shared_ext}$major' |
|
16516 shlibpath_var=LD_LIBRARY_PATH |
|
16517 shlibpath_overrides_runpath=yes |
|
16518 ;; |
|
16519 |
|
16520 openbsd*) |
|
16521 version_type=sunos |
|
16522 sys_lib_dlsearch_path_spec="/usr/lib" |
|
16523 need_lib_prefix=no |
|
16524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
16525 case $host_os in |
|
16526 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
16527 *) need_version=no ;; |
|
16528 esac |
|
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
16531 shlibpath_var=LD_LIBRARY_PATH |
|
16532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
16533 case $host_os in |
|
16534 openbsd2.[89] | openbsd2.[89].*) |
|
16535 shlibpath_overrides_runpath=no |
|
16536 ;; |
|
16537 *) |
|
16538 shlibpath_overrides_runpath=yes |
|
16539 ;; |
|
16540 esac |
|
16541 else |
|
16542 shlibpath_overrides_runpath=yes |
|
16543 fi |
|
16544 ;; |
|
16545 |
|
16546 os2*) |
|
16547 libname_spec='$name' |
|
16548 shrext_cmds=".dll" |
|
16549 need_lib_prefix=no |
|
16550 library_names_spec='$libname${shared_ext} $libname.a' |
|
16551 dynamic_linker='OS/2 ld.exe' |
|
16552 shlibpath_var=LIBPATH |
|
16553 ;; |
|
16554 |
|
16555 osf3* | osf4* | osf5*) |
|
16556 version_type=osf |
|
16557 need_lib_prefix=no |
|
16558 need_version=no |
|
16559 soname_spec='${libname}${release}${shared_ext}$major' |
|
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16561 shlibpath_var=LD_LIBRARY_PATH |
|
16562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
16563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
16564 ;; |
|
16565 |
|
16566 rdos*) |
|
16567 dynamic_linker=no |
|
16568 ;; |
|
16569 |
|
16570 solaris*) |
|
16571 version_type=linux |
|
16572 need_lib_prefix=no |
|
16573 need_version=no |
|
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16575 soname_spec='${libname}${release}${shared_ext}$major' |
|
16576 shlibpath_var=LD_LIBRARY_PATH |
|
16577 shlibpath_overrides_runpath=yes |
|
16578 hardcode_into_libs=yes |
|
16579 # ldd complains unless libraries are executable |
|
16580 postinstall_cmds='chmod +x $lib' |
|
16581 ;; |
|
16582 |
|
16583 sunos4*) |
|
16584 version_type=sunos |
|
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
16586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
16587 shlibpath_var=LD_LIBRARY_PATH |
|
16588 shlibpath_overrides_runpath=yes |
|
16589 if test "$with_gnu_ld" = yes; then |
|
16590 need_lib_prefix=no |
|
16591 fi |
|
16592 need_version=yes |
|
16593 ;; |
|
16594 |
|
16595 sysv4 | sysv4.3*) |
|
16596 version_type=linux |
|
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16598 soname_spec='${libname}${release}${shared_ext}$major' |
|
16599 shlibpath_var=LD_LIBRARY_PATH |
|
16600 case $host_vendor in |
|
16601 sni) |
|
16602 shlibpath_overrides_runpath=no |
|
16603 need_lib_prefix=no |
|
16604 export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
16605 runpath_var=LD_RUN_PATH |
|
16606 ;; |
|
16607 siemens) |
|
16608 need_lib_prefix=no |
|
16609 ;; |
|
16610 motorola) |
|
16611 need_lib_prefix=no |
|
16612 need_version=no |
|
16613 shlibpath_overrides_runpath=no |
|
16614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
16615 ;; |
|
16616 esac |
|
16617 ;; |
|
16618 |
|
16619 sysv4*MP*) |
|
16620 if test -d /usr/nec ;then |
|
16621 version_type=linux |
|
16622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
16623 soname_spec='$libname${shared_ext}.$major' |
|
16624 shlibpath_var=LD_LIBRARY_PATH |
|
16625 fi |
|
16626 ;; |
|
16627 |
|
16628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
16629 version_type=freebsd-elf |
|
16630 need_lib_prefix=no |
|
16631 need_version=no |
|
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
16633 soname_spec='${libname}${release}${shared_ext}$major' |
|
16634 shlibpath_var=LD_LIBRARY_PATH |
|
16635 hardcode_into_libs=yes |
|
16636 if test "$with_gnu_ld" = yes; then |
|
16637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
16638 shlibpath_overrides_runpath=no |
|
16639 else |
|
16640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
16641 shlibpath_overrides_runpath=yes |
|
16642 case $host_os in |
|
16643 sco3.2v5*) |
|
16644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
16645 ;; |
|
16646 esac |
|
16647 fi |
|
16648 sys_lib_dlsearch_path_spec='/usr/lib' |
|
16649 ;; |
|
16650 |
|
16651 uts4*) |
|
16652 version_type=linux |
|
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
16654 soname_spec='${libname}${release}${shared_ext}$major' |
|
16655 shlibpath_var=LD_LIBRARY_PATH |
|
16656 ;; |
|
16657 |
|
16658 *) |
|
16659 dynamic_linker=no |
|
16660 ;; |
|
16661 esac |
|
16662 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
16663 echo "${ECHO_T}$dynamic_linker" >&6; } |
|
16664 test "$dynamic_linker" = no && can_build_shared=no |
|
16665 |
|
16666 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
16667 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16668 else |
|
16669 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
|
16670 fi |
|
16671 |
|
16672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
16673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
16674 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
16675 else |
|
16676 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
|
16677 fi |
|
16678 |
|
16679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
16680 |
|
16681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
16682 if test "$GCC" = yes; then |
|
16683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
16684 fi |
|
16685 |
|
16686 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
16687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
16688 hardcode_action_F77= |
|
16689 if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
16690 test -n "$runpath_var_F77" || \ |
|
16691 test "X$hardcode_automatic_F77" = "Xyes" ; then |
|
16692 |
|
16693 # We can hardcode non-existant directories. |
|
16694 if test "$hardcode_direct_F77" != no && |
|
16695 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
16696 # have to relink, otherwise we might link with an installed library |
|
16697 # when we should be linking with a yet-to-be-installed one |
|
16698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
16699 test "$hardcode_minus_L_F77" != no; then |
|
16700 # Linking always hardcodes the temporary library directory. |
|
16701 hardcode_action_F77=relink |
|
16702 else |
|
16703 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
16704 hardcode_action_F77=immediate |
|
16705 fi |
|
16706 else |
|
16707 # We cannot hardcode anything, or else we can only hardcode existing |
|
16708 # directories. |
|
16709 hardcode_action_F77=unsupported |
|
16710 fi |
|
16711 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
16712 echo "${ECHO_T}$hardcode_action_F77" >&6; } |
|
16713 |
|
16714 if test "$hardcode_action_F77" = relink; then |
|
16715 # Fast installation is not supported |
|
16716 enable_fast_install=no |
|
16717 elif test "$shlibpath_overrides_runpath" = yes || |
|
16718 test "$enable_shared" = no; then |
|
16719 # Fast installation is not necessary |
|
16720 enable_fast_install=needless |
|
16721 fi |
|
16722 |
|
16723 |
|
16724 # The else clause should only fire when bootstrapping the |
|
16725 # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
16726 # with your package, and you will get complaints that there are |
|
16727 # no rules to generate ltmain.sh. |
|
16728 if test -f "$ltmain"; then |
|
16729 # See if we are running on zsh, and set the options which allow our commands through |
|
16730 # without removal of \ escapes. |
|
16731 if test -n "${ZSH_VERSION+set}" ; then |
|
16732 setopt NO_GLOB_SUBST |
|
16733 fi |
|
16734 # Now quote all the things that may contain metacharacters while being |
|
16735 # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
16736 # variables and quote the copies for generation of the libtool script. |
|
16737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
16738 SED SHELL STRIP \ |
|
16739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
16740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
16741 deplibs_check_method reload_flag reload_cmds need_locks \ |
|
16742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
16743 lt_cv_sys_global_symbol_to_c_name_address \ |
|
16744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
16745 old_postinstall_cmds old_postuninstall_cmds \ |
|
16746 compiler_F77 \ |
|
16747 CC_F77 \ |
|
16748 LD_F77 \ |
|
16749 lt_prog_compiler_wl_F77 \ |
|
16750 lt_prog_compiler_pic_F77 \ |
|
16751 lt_prog_compiler_static_F77 \ |
|
16752 lt_prog_compiler_no_builtin_flag_F77 \ |
|
16753 export_dynamic_flag_spec_F77 \ |
|
16754 thread_safe_flag_spec_F77 \ |
|
16755 whole_archive_flag_spec_F77 \ |
|
16756 enable_shared_with_static_runtimes_F77 \ |
|
16757 old_archive_cmds_F77 \ |
|
16758 old_archive_from_new_cmds_F77 \ |
|
16759 predep_objects_F77 \ |
|
16760 postdep_objects_F77 \ |
|
16761 predeps_F77 \ |
|
16762 postdeps_F77 \ |
|
16763 compiler_lib_search_path_F77 \ |
|
16764 compiler_lib_search_dirs_F77 \ |
|
16765 archive_cmds_F77 \ |
|
16766 archive_expsym_cmds_F77 \ |
|
16767 postinstall_cmds_F77 \ |
|
16768 postuninstall_cmds_F77 \ |
|
16769 old_archive_from_expsyms_cmds_F77 \ |
|
16770 allow_undefined_flag_F77 \ |
|
16771 no_undefined_flag_F77 \ |
|
16772 export_symbols_cmds_F77 \ |
|
16773 hardcode_libdir_flag_spec_F77 \ |
|
16774 hardcode_libdir_flag_spec_ld_F77 \ |
|
16775 hardcode_libdir_separator_F77 \ |
|
16776 hardcode_automatic_F77 \ |
|
16777 module_cmds_F77 \ |
|
16778 module_expsym_cmds_F77 \ |
|
16779 lt_cv_prog_compiler_c_o_F77 \ |
|
16780 fix_srcfile_path_F77 \ |
|
16781 exclude_expsyms_F77 \ |
|
16782 include_expsyms_F77; do |
|
16783 |
|
16784 case $var in |
|
16785 old_archive_cmds_F77 | \ |
|
16786 old_archive_from_new_cmds_F77 | \ |
|
16787 archive_cmds_F77 | \ |
|
16788 archive_expsym_cmds_F77 | \ |
|
16789 module_cmds_F77 | \ |
|
16790 module_expsym_cmds_F77 | \ |
|
16791 old_archive_from_expsyms_cmds_F77 | \ |
|
16792 export_symbols_cmds_F77 | \ |
|
16793 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
16794 postinstall_cmds | postuninstall_cmds | \ |
|
16795 old_postinstall_cmds | old_postuninstall_cmds | \ |
|
16796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
16797 # Double-quote double-evaled strings. |
|
16798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
16799 ;; |
|
16800 *) |
|
16801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
16802 ;; |
|
16803 esac |
|
16804 done |
|
16805 |
|
16806 case $lt_echo in |
|
16807 *'\$0 --fallback-echo"') |
|
16808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
16809 ;; |
|
16810 esac |
|
16811 |
|
16812 cfgfile="$ofile" |
|
16813 |
|
16814 cat <<__EOF__ >> "$cfgfile" |
|
16815 # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
16816 |
|
16817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
16818 |
|
16819 # Shell to use when invoking shell scripts. |
|
16820 SHELL=$lt_SHELL |
|
16821 |
|
16822 # Whether or not to build shared libraries. |
|
16823 build_libtool_libs=$enable_shared |
|
16824 |
|
16825 # Whether or not to build static libraries. |
|
16826 build_old_libs=$enable_static |
|
16827 |
|
16828 # Whether or not to add -lc for building shared libraries. |
|
16829 build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
16830 |
|
16831 # Whether or not to disallow shared libs when runtime libs are static |
|
16832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
16833 |
|
16834 # Whether or not to optimize for fast installation. |
|
16835 fast_install=$enable_fast_install |
|
16836 |
|
16837 # The host system. |
|
16838 host_alias=$host_alias |
|
16839 host=$host |
|
16840 host_os=$host_os |
|
16841 |
|
16842 # The build system. |
|
16843 build_alias=$build_alias |
|
16844 build=$build |
|
16845 build_os=$build_os |
|
16846 |
|
16847 # An echo program that does not interpret backslashes. |
|
16848 echo=$lt_echo |
|
16849 |
|
16850 # The archiver. |
|
16851 AR=$lt_AR |
|
16852 AR_FLAGS=$lt_AR_FLAGS |
|
16853 |
|
16854 # A C compiler. |
|
16855 LTCC=$lt_LTCC |
|
16856 |
|
16857 # LTCC compiler flags. |
|
16858 LTCFLAGS=$lt_LTCFLAGS |
|
16859 |
|
16860 # A language-specific compiler. |
|
16861 CC=$lt_compiler_F77 |
|
16862 |
|
16863 # Is the compiler the GNU C compiler? |
|
16864 with_gcc=$GCC_F77 |
|
16865 |
|
16866 # An ERE matcher. |
|
16867 EGREP=$lt_EGREP |
|
16868 |
|
16869 # The linker used to build libraries. |
|
16870 LD=$lt_LD_F77 |
|
16871 |
|
16872 # Whether we need hard or soft links. |
|
16873 LN_S=$lt_LN_S |
|
16874 |
|
16875 # A BSD-compatible nm program. |
|
16876 NM=$lt_NM |
|
16877 |
|
16878 # A symbol stripping program |
|
16879 STRIP=$lt_STRIP |
|
16880 |
|
16881 # Used to examine libraries when file_magic_cmd begins "file" |
|
16882 MAGIC_CMD=$MAGIC_CMD |
|
16883 |
|
16884 # Used on cygwin: DLL creation program. |
|
16885 DLLTOOL="$DLLTOOL" |
|
16886 |
|
16887 # Used on cygwin: object dumper. |
|
16888 OBJDUMP="$OBJDUMP" |
|
16889 |
|
16890 # Used on cygwin: assembler. |
|
16891 AS="$AS" |
|
16892 |
|
16893 # The name of the directory that contains temporary libtool files. |
|
16894 objdir=$objdir |
|
16895 |
|
16896 # How to create reloadable object files. |
|
16897 reload_flag=$lt_reload_flag |
|
16898 reload_cmds=$lt_reload_cmds |
|
16899 |
|
16900 # How to pass a linker flag through the compiler. |
|
16901 wl=$lt_lt_prog_compiler_wl_F77 |
|
16902 |
|
16903 # Object file suffix (normally "o"). |
|
16904 objext="$ac_objext" |
|
16905 |
|
16906 # Old archive suffix (normally "a"). |
|
16907 libext="$libext" |
|
16908 |
|
16909 # Shared library suffix (normally ".so"). |
|
16910 shrext_cmds='$shrext_cmds' |
|
16911 |
|
16912 # Executable file suffix (normally ""). |
|
16913 exeext="$exeext" |
|
16914 |
|
16915 # Additional compiler flags for building library objects. |
|
16916 pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
16917 pic_mode=$pic_mode |
|
16918 |
|
16919 # What is the maximum length of a command? |
|
16920 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
16921 |
|
16922 # Does compiler simultaneously support -c and -o options? |
|
16923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
16924 |
|
16925 # Must we lock files when doing compilation? |
|
16926 need_locks=$lt_need_locks |
|
16927 |
|
16928 # Do we need the lib prefix for modules? |
|
16929 need_lib_prefix=$need_lib_prefix |
|
16930 |
|
16931 # Do we need a version for libraries? |
|
16932 need_version=$need_version |
|
16933 |
|
16934 # Whether dlopen is supported. |
|
16935 dlopen_support=$enable_dlopen |
|
16936 |
|
16937 # Whether dlopen of programs is supported. |
|
16938 dlopen_self=$enable_dlopen_self |
|
16939 |
|
16940 # Whether dlopen of statically linked programs is supported. |
|
16941 dlopen_self_static=$enable_dlopen_self_static |
|
16942 |
|
16943 # Compiler flag to prevent dynamic linking. |
|
16944 link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
16945 |
|
16946 # Compiler flag to turn off builtin functions. |
|
16947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
16948 |
|
16949 # Compiler flag to allow reflexive dlopens. |
|
16950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
16951 |
|
16952 # Compiler flag to generate shared objects directly from archives. |
|
16953 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
16954 |
|
16955 # Compiler flag to generate thread-safe objects. |
|
16956 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
16957 |
|
16958 # Library versioning type. |
|
16959 version_type=$version_type |
|
16960 |
|
16961 # Format of library name prefix. |
|
16962 libname_spec=$lt_libname_spec |
|
16963 |
|
16964 # List of archive names. First name is the real one, the rest are links. |
|
16965 # The last name is the one that the linker finds with -lNAME. |
|
16966 library_names_spec=$lt_library_names_spec |
|
16967 |
|
16968 # The coded name of the library, if different from the real name. |
|
16969 soname_spec=$lt_soname_spec |
|
16970 |
|
16971 # Commands used to build and install an old-style archive. |
|
16972 RANLIB=$lt_RANLIB |
|
16973 old_archive_cmds=$lt_old_archive_cmds_F77 |
|
16974 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
16975 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
16976 |
|
16977 # Create an old-style archive from a shared archive. |
|
16978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
16979 |
|
16980 # Create a temporary old-style archive to link instead of a shared archive. |
|
16981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
16982 |
|
16983 # Commands used to build and install a shared archive. |
|
16984 archive_cmds=$lt_archive_cmds_F77 |
|
16985 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
16986 postinstall_cmds=$lt_postinstall_cmds |
|
16987 postuninstall_cmds=$lt_postuninstall_cmds |
|
16988 |
|
16989 # Commands used to build a loadable module (assumed same as above if empty) |
|
16990 module_cmds=$lt_module_cmds_F77 |
|
16991 module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
16992 |
|
16993 # Commands to strip libraries. |
|
16994 old_striplib=$lt_old_striplib |
|
16995 striplib=$lt_striplib |
|
16996 |
|
16997 # Dependencies to place before the objects being linked to create a |
|
16998 # shared library. |
|
16999 predep_objects=$lt_predep_objects_F77 |
|
17000 |
|
17001 # Dependencies to place after the objects being linked to create a |
|
17002 # shared library. |
|
17003 postdep_objects=$lt_postdep_objects_F77 |
|
17004 |
|
17005 # Dependencies to place before the objects being linked to create a |
|
17006 # shared library. |
|
17007 predeps=$lt_predeps_F77 |
|
17008 |
|
17009 # Dependencies to place after the objects being linked to create a |
|
17010 # shared library. |
|
17011 postdeps=$lt_postdeps_F77 |
|
17012 |
|
17013 # The directories searched by this compiler when creating a shared |
|
17014 # library |
|
17015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 |
|
17016 |
|
17017 # The library search path used internally by the compiler when linking |
|
17018 # a shared library. |
|
17019 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
17020 |
|
17021 # Method to check whether dependent libraries are shared objects. |
|
17022 deplibs_check_method=$lt_deplibs_check_method |
|
17023 |
|
17024 # Command to use when deplibs_check_method == file_magic. |
|
17025 file_magic_cmd=$lt_file_magic_cmd |
|
17026 |
|
17027 # Flag that allows shared libraries with undefined symbols to be built. |
|
17028 allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
17029 |
|
17030 # Flag that forces no undefined symbols. |
|
17031 no_undefined_flag=$lt_no_undefined_flag_F77 |
|
17032 |
|
17033 # Commands used to finish a libtool library installation in a directory. |
|
17034 finish_cmds=$lt_finish_cmds |
|
17035 |
|
17036 # Same as above, but a single script fragment to be evaled but not shown. |
|
17037 finish_eval=$lt_finish_eval |
|
17038 |
|
17039 # Take the output of nm and produce a listing of raw symbols and C names. |
|
17040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
17041 |
|
17042 # Transform the output of nm in a proper C declaration |
|
17043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
17044 |
|
17045 # Transform the output of nm in a C name address pair |
|
17046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
17047 |
|
17048 # This is the shared library runtime path variable. |
|
17049 runpath_var=$runpath_var |
|
17050 |
|
17051 # This is the shared library path variable. |
|
17052 shlibpath_var=$shlibpath_var |
|
17053 |
|
17054 # Is shlibpath searched before the hard-coded library search path? |
|
17055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
17056 |
|
17057 # How to hardcode a shared library path into an executable. |
|
17058 hardcode_action=$hardcode_action_F77 |
|
17059 |
|
17060 # Whether we should hardcode library paths into libraries. |
|
17061 hardcode_into_libs=$hardcode_into_libs |
|
17062 |
|
17063 # Flag to hardcode \$libdir into a binary during linking. |
|
17064 # This must work even if \$libdir does not exist. |
|
17065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
17066 |
|
17067 # If ld is used when linking, flag to hardcode \$libdir into |
|
17068 # a binary during linking. This must work even if \$libdir does |
|
17069 # not exist. |
|
17070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
17071 |
|
17072 # Whether we need a single -rpath flag with a separated argument. |
|
17073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
17074 |
|
17075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
17076 # resulting binary. |
|
17077 hardcode_direct=$hardcode_direct_F77 |
|
17078 |
|
17079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
17080 # resulting binary. |
|
17081 hardcode_minus_L=$hardcode_minus_L_F77 |
|
17082 |
|
17083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
17084 # the resulting binary. |
|
17085 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
17086 |
|
17087 # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
17088 # and all subsequent libraries and executables linked against it. |
|
17089 hardcode_automatic=$hardcode_automatic_F77 |
|
17090 |
|
17091 # Variables whose values should be saved in libtool wrapper scripts and |
|
17092 # restored at relink time. |
|
17093 variables_saved_for_relink="$variables_saved_for_relink" |
|
17094 |
|
17095 # Whether libtool must link a program against all its dependency libraries. |
|
17096 link_all_deplibs=$link_all_deplibs_F77 |
|
17097 |
|
17098 # Compile-time system search path for libraries |
|
17099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
17100 |
|
17101 # Run-time system search path for libraries |
|
17102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
17103 |
|
17104 # Fix the shell variable \$srcfile for the compiler. |
|
17105 fix_srcfile_path=$lt_fix_srcfile_path |
|
17106 |
|
17107 # Set to yes if exported symbols are required. |
|
17108 always_export_symbols=$always_export_symbols_F77 |
|
17109 |
|
17110 # The commands to list exported symbols. |
|
17111 export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
17112 |
|
17113 # The commands to extract the exported symbol list from a shared archive. |
|
17114 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
17115 |
|
17116 # Symbols that should not be listed in the preloaded symbols. |
|
17117 exclude_expsyms=$lt_exclude_expsyms_F77 |
|
17118 |
|
17119 # Symbols that must always be exported. |
|
17120 include_expsyms=$lt_include_expsyms_F77 |
|
17121 |
|
17122 # ### END LIBTOOL TAG CONFIG: $tagname |
|
17123 |
|
17124 __EOF__ |
|
17125 |
|
17126 |
|
17127 else |
|
17128 # If there is no Makefile yet, we rely on a make rule to execute |
|
17129 # `config.status --recheck' to rerun these tests and create the |
|
17130 # libtool script then. |
|
17131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
17132 if test -f "$ltmain_in"; then |
|
17133 test -f Makefile && make "$ltmain" |
|
17134 fi |
|
17135 fi |
|
17136 |
|
17137 |
|
17138 ac_ext=c |
|
17139 ac_cpp='$CPP $CPPFLAGS' |
|
17140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
17141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
17142 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
17143 |
|
17144 CC="$lt_save_CC" |
|
17145 |
|
17146 else |
|
17147 tagname="" |
|
17148 fi |
|
17149 ;; |
|
17150 |
|
17151 GCJ) |
|
17152 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
17153 |
|
17154 |
|
17155 # Source file extension for Java test sources. |
|
17156 ac_ext=java |
|
17157 |
|
17158 # Object file extension for compiled Java test sources. |
|
17159 objext=o |
|
17160 objext_GCJ=$objext |
|
17161 |
|
17162 # Code to be used in simple compile tests |
|
17163 lt_simple_compile_test_code="class foo {}" |
|
17164 |
|
17165 # Code to be used in simple link tests |
|
17166 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
|
17167 |
|
17168 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
17169 |
|
17170 # If no C compiler was specified, use CC. |
|
17171 LTCC=${LTCC-"$CC"} |
|
17172 |
|
17173 # If no C compiler flags were specified, use CFLAGS. |
|
17174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
17175 |
|
17176 # Allow CC to be a program name with arguments. |
|
17177 compiler=$CC |
|
17178 |
|
17179 |
|
17180 # save warnings/boilerplate of simple test code |
|
17181 ac_outfile=conftest.$ac_objext |
|
17182 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
17183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
17184 _lt_compiler_boilerplate=`cat conftest.err` |
|
17185 $rm conftest* |
|
17186 |
|
17187 ac_outfile=conftest.$ac_objext |
|
17188 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
17189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
17190 _lt_linker_boilerplate=`cat conftest.err` |
|
17191 $rm -r conftest* |
|
17192 |
|
17193 |
|
17194 # Allow CC to be a program name with arguments. |
|
17195 lt_save_CC="$CC" |
|
17196 CC=${GCJ-"gcj"} |
|
17197 compiler=$CC |
|
17198 compiler_GCJ=$CC |
|
17199 for cc_temp in $compiler""; do |
|
17200 case $cc_temp in |
|
17201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
17202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
17203 \-*) ;; |
|
17204 *) break;; |
|
17205 esac |
|
17206 done |
|
17207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
17208 |
|
17209 |
|
17210 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
17211 archive_cmds_need_lc_GCJ=no |
|
17212 |
|
17213 old_archive_cmds_GCJ=$old_archive_cmds |
|
17214 |
|
17215 |
|
17216 lt_prog_compiler_no_builtin_flag_GCJ= |
|
17217 |
|
17218 if test "$GCC" = yes; then |
|
17219 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
17220 |
|
17221 |
|
17222 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
17223 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
|
17224 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
17225 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
17226 else |
|
17227 lt_cv_prog_compiler_rtti_exceptions=no |
|
17228 ac_outfile=conftest.$ac_objext |
|
17229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17230 lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
17231 # Insert the option either (1) after the last *FLAGS variable, or |
|
17232 # (2) before a word containing "conftest.", or (3) at the end. |
|
17233 # Note that $ac_compile itself does not contain backslashes and begins |
|
17234 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
17235 # The option is referenced via a variable to avoid confusing sed. |
|
17236 lt_compile=`echo "$ac_compile" | $SED \ |
|
17237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
17238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
17239 -e 's:$: $lt_compiler_flag:'` |
|
17240 (eval echo "\"\$as_me:17240: $lt_compile\"" >&5) |
|
17241 (eval "$lt_compile" 2>conftest.err) |
|
17242 ac_status=$? |
|
17243 cat conftest.err >&5 |
|
17244 echo "$as_me:17244: \$? = $ac_status" >&5 |
|
17245 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
17246 # The compiler can only warn and ignore the option if not recognized |
|
17247 # So say no if there are warnings other than the usual output. |
|
17248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
17249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
17250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
17251 lt_cv_prog_compiler_rtti_exceptions=yes |
|
17252 fi |
|
17253 fi |
|
17254 $rm conftest* |
|
17255 |
|
17256 fi |
|
17257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
17258 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
17259 |
|
17260 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
17261 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
17262 else |
|
17263 : |
|
17264 fi |
|
17265 |
|
17266 fi |
|
17267 |
|
17268 lt_prog_compiler_wl_GCJ= |
|
17269 lt_prog_compiler_pic_GCJ= |
|
17270 lt_prog_compiler_static_GCJ= |
|
17271 |
|
17272 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
17273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
|
17274 |
|
17275 if test "$GCC" = yes; then |
|
17276 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17277 lt_prog_compiler_static_GCJ='-static' |
|
17278 |
|
17279 case $host_os in |
|
17280 aix*) |
|
17281 # All AIX code is PIC. |
|
17282 if test "$host_cpu" = ia64; then |
|
17283 # AIX 5 now supports IA64 processor |
|
17284 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17285 fi |
|
17286 ;; |
|
17287 |
|
17288 amigaos*) |
|
17289 # FIXME: we need at least 68020 code to build shared libraries, but |
|
17290 # adding the `-m68020' flag to GCC prevents building anything better, |
|
17291 # like `-m68040'. |
|
17292 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
17293 ;; |
|
17294 |
|
17295 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
17296 # PIC is the default for these OSes. |
|
17297 ;; |
|
17298 |
|
17299 mingw* | cygwin* | pw32* | os2*) |
|
17300 # This hack is so that the source file can tell whether it is being |
|
17301 # built for inclusion in a dll (and should export symbols for example). |
|
17302 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
17303 # (--disable-auto-import) libraries |
|
17304 |
|
17305 ;; |
|
17306 |
|
17307 darwin* | rhapsody*) |
|
17308 # PIC is the default on this platform |
|
17309 # Common symbols not allowed in MH_DYLIB files |
|
17310 lt_prog_compiler_pic_GCJ='-fno-common' |
|
17311 ;; |
|
17312 |
|
17313 interix[3-9]*) |
|
17314 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
17315 # Instead, we relocate shared libraries at runtime. |
|
17316 ;; |
|
17317 |
|
17318 msdosdjgpp*) |
|
17319 # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
17320 # on systems that don't support them. |
|
17321 lt_prog_compiler_can_build_shared_GCJ=no |
|
17322 enable_shared=no |
|
17323 ;; |
|
17324 |
|
17325 sysv4*MP*) |
|
17326 if test -d /usr/nec; then |
|
17327 lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
17328 fi |
|
17329 ;; |
|
17330 |
|
17331 hpux*) |
|
17332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
17333 # not for PA HP-UX. |
|
17334 case $host_cpu in |
|
17335 hppa*64*|ia64*) |
|
17336 # +Z the default |
|
17337 ;; |
|
17338 *) |
|
17339 lt_prog_compiler_pic_GCJ='-fPIC' |
|
17340 ;; |
|
17341 esac |
|
17342 ;; |
|
17343 |
|
17344 *) |
|
17345 lt_prog_compiler_pic_GCJ='-fPIC' |
|
17346 ;; |
|
17347 esac |
|
17348 else |
|
17349 # PORTME Check for flag to pass linker flags through the system compiler. |
|
17350 case $host_os in |
|
17351 aix*) |
|
17352 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17353 if test "$host_cpu" = ia64; then |
|
17354 # AIX 5 now supports IA64 processor |
|
17355 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17356 else |
|
17357 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
17358 fi |
|
17359 ;; |
|
17360 darwin*) |
|
17361 # PIC is the default on this platform |
|
17362 # Common symbols not allowed in MH_DYLIB files |
|
17363 case $cc_basename in |
|
17364 xlc*) |
|
17365 lt_prog_compiler_pic_GCJ='-qnocommon' |
|
17366 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17367 ;; |
|
17368 esac |
|
17369 ;; |
|
17370 |
|
17371 mingw* | cygwin* | pw32* | os2*) |
|
17372 # This hack is so that the source file can tell whether it is being |
|
17373 # built for inclusion in a dll (and should export symbols for example). |
|
17374 |
|
17375 ;; |
|
17376 |
|
17377 hpux9* | hpux10* | hpux11*) |
|
17378 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
17380 # not for PA HP-UX. |
|
17381 case $host_cpu in |
|
17382 hppa*64*|ia64*) |
|
17383 # +Z the default |
|
17384 ;; |
|
17385 *) |
|
17386 lt_prog_compiler_pic_GCJ='+Z' |
|
17387 ;; |
|
17388 esac |
|
17389 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
17390 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
17391 ;; |
|
17392 |
|
17393 irix5* | irix6* | nonstopux*) |
|
17394 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17395 # PIC (with -KPIC) is the default. |
|
17396 lt_prog_compiler_static_GCJ='-non_shared' |
|
17397 ;; |
|
17398 |
|
17399 newsos6) |
|
17400 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17401 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17402 ;; |
|
17403 |
|
17404 linux* | k*bsd*-gnu) |
|
17405 case $cc_basename in |
|
17406 icc* | ecc*) |
|
17407 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17408 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17409 lt_prog_compiler_static_GCJ='-static' |
|
17410 ;; |
|
17411 pgcc* | pgf77* | pgf90* | pgf95*) |
|
17412 # Portland Group compilers (*not* the Pentium gcc compiler, |
|
17413 # which looks to be a dead project) |
|
17414 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17415 lt_prog_compiler_pic_GCJ='-fpic' |
|
17416 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17417 ;; |
|
17418 ccc*) |
|
17419 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17420 # All Alpha code is PIC. |
|
17421 lt_prog_compiler_static_GCJ='-non_shared' |
|
17422 ;; |
|
17423 *) |
|
17424 case `$CC -V 2>&1 | sed 5q` in |
|
17425 *Sun\ C*) |
|
17426 # Sun C 5.9 |
|
17427 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17428 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17429 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17430 ;; |
|
17431 *Sun\ F*) |
|
17432 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
17433 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17434 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17435 lt_prog_compiler_wl_GCJ='' |
|
17436 ;; |
|
17437 esac |
|
17438 ;; |
|
17439 esac |
|
17440 ;; |
|
17441 |
|
17442 osf3* | osf4* | osf5*) |
|
17443 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17444 # All OSF/1 code is PIC. |
|
17445 lt_prog_compiler_static_GCJ='-non_shared' |
|
17446 ;; |
|
17447 |
|
17448 rdos*) |
|
17449 lt_prog_compiler_static_GCJ='-non_shared' |
|
17450 ;; |
|
17451 |
|
17452 solaris*) |
|
17453 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17454 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17455 case $cc_basename in |
|
17456 f77* | f90* | f95*) |
|
17457 lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
|
17458 *) |
|
17459 lt_prog_compiler_wl_GCJ='-Wl,';; |
|
17460 esac |
|
17461 ;; |
|
17462 |
|
17463 sunos4*) |
|
17464 lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
17465 lt_prog_compiler_pic_GCJ='-PIC' |
|
17466 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17467 ;; |
|
17468 |
|
17469 sysv4 | sysv4.2uw2* | sysv4.3*) |
|
17470 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17471 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17472 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17473 ;; |
|
17474 |
|
17475 sysv4*MP*) |
|
17476 if test -d /usr/nec ;then |
|
17477 lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
17478 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17479 fi |
|
17480 ;; |
|
17481 |
|
17482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
17483 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17484 lt_prog_compiler_pic_GCJ='-KPIC' |
|
17485 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17486 ;; |
|
17487 |
|
17488 unicos*) |
|
17489 lt_prog_compiler_wl_GCJ='-Wl,' |
|
17490 lt_prog_compiler_can_build_shared_GCJ=no |
|
17491 ;; |
|
17492 |
|
17493 uts4*) |
|
17494 lt_prog_compiler_pic_GCJ='-pic' |
|
17495 lt_prog_compiler_static_GCJ='-Bstatic' |
|
17496 ;; |
|
17497 |
|
17498 *) |
|
17499 lt_prog_compiler_can_build_shared_GCJ=no |
|
17500 ;; |
|
17501 esac |
|
17502 fi |
|
17503 |
|
17504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
17505 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
|
17506 |
|
17507 # |
|
17508 # Check to make sure the PIC flag actually works. |
|
17509 # |
|
17510 if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
17511 |
|
17512 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
17513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
|
17514 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then |
|
17515 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
17516 else |
|
17517 lt_cv_prog_compiler_pic_works_GCJ=no |
|
17518 ac_outfile=conftest.$ac_objext |
|
17519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17520 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
17521 # Insert the option either (1) after the last *FLAGS variable, or |
|
17522 # (2) before a word containing "conftest.", or (3) at the end. |
|
17523 # Note that $ac_compile itself does not contain backslashes and begins |
|
17524 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
17525 # The option is referenced via a variable to avoid confusing sed. |
|
17526 lt_compile=`echo "$ac_compile" | $SED \ |
|
17527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
17528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
17529 -e 's:$: $lt_compiler_flag:'` |
|
17530 (eval echo "\"\$as_me:17530: $lt_compile\"" >&5) |
|
17531 (eval "$lt_compile" 2>conftest.err) |
|
17532 ac_status=$? |
|
17533 cat conftest.err >&5 |
|
17534 echo "$as_me:17534: \$? = $ac_status" >&5 |
|
17535 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
17536 # The compiler can only warn and ignore the option if not recognized |
|
17537 # So say no if there are warnings other than the usual output. |
|
17538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
17539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
17540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
17541 lt_cv_prog_compiler_pic_works_GCJ=yes |
|
17542 fi |
|
17543 fi |
|
17544 $rm conftest* |
|
17545 |
|
17546 fi |
|
17547 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 |
|
17548 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } |
|
17549 |
|
17550 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then |
|
17551 case $lt_prog_compiler_pic_GCJ in |
|
17552 "" | " "*) ;; |
|
17553 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
17554 esac |
|
17555 else |
|
17556 lt_prog_compiler_pic_GCJ= |
|
17557 lt_prog_compiler_can_build_shared_GCJ=no |
|
17558 fi |
|
17559 |
|
17560 fi |
|
17561 case $host_os in |
|
17562 # For platforms which do not support PIC, -DPIC is meaningless: |
|
17563 *djgpp*) |
|
17564 lt_prog_compiler_pic_GCJ= |
|
17565 ;; |
|
17566 *) |
|
17567 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
17568 ;; |
|
17569 esac |
|
17570 |
|
17571 # |
|
17572 # Check to make sure the static flag actually works. |
|
17573 # |
|
17574 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
|
17575 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
17576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
|
17577 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then |
|
17578 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
17579 else |
|
17580 lt_cv_prog_compiler_static_works_GCJ=no |
|
17581 save_LDFLAGS="$LDFLAGS" |
|
17582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
17583 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
17584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
17585 # The linker can only warn and ignore the option if not recognized |
|
17586 # So say no if there are warnings |
|
17587 if test -s conftest.err; then |
|
17588 # Append any errors to the config.log. |
|
17589 cat conftest.err 1>&5 |
|
17590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
17591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
17592 if diff conftest.exp conftest.er2 >/dev/null; then |
|
17593 lt_cv_prog_compiler_static_works_GCJ=yes |
|
17594 fi |
|
17595 else |
|
17596 lt_cv_prog_compiler_static_works_GCJ=yes |
|
17597 fi |
|
17598 fi |
|
17599 $rm -r conftest* |
|
17600 LDFLAGS="$save_LDFLAGS" |
|
17601 |
|
17602 fi |
|
17603 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 |
|
17604 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } |
|
17605 |
|
17606 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then |
|
17607 : |
|
17608 else |
|
17609 lt_prog_compiler_static_GCJ= |
|
17610 fi |
|
17611 |
|
17612 |
|
17613 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
17614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
|
17615 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
17616 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
17617 else |
|
17618 lt_cv_prog_compiler_c_o_GCJ=no |
|
17619 $rm -r conftest 2>/dev/null |
|
17620 mkdir conftest |
|
17621 cd conftest |
|
17622 mkdir out |
|
17623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
17624 |
|
17625 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
17626 # Insert the option either (1) after the last *FLAGS variable, or |
|
17627 # (2) before a word containing "conftest.", or (3) at the end. |
|
17628 # Note that $ac_compile itself does not contain backslashes and begins |
|
17629 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
17630 lt_compile=`echo "$ac_compile" | $SED \ |
|
17631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
17632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
17633 -e 's:$: $lt_compiler_flag:'` |
|
17634 (eval echo "\"\$as_me:17634: $lt_compile\"" >&5) |
|
17635 (eval "$lt_compile" 2>out/conftest.err) |
|
17636 ac_status=$? |
|
17637 cat out/conftest.err >&5 |
|
17638 echo "$as_me:17638: \$? = $ac_status" >&5 |
|
17639 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
17640 then |
|
17641 # The compiler can only warn and ignore the option if not recognized |
|
17642 # So say no if there are warnings |
|
17643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
17644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
17645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
17646 lt_cv_prog_compiler_c_o_GCJ=yes |
|
17647 fi |
|
17648 fi |
|
17649 chmod u+w . 2>&5 |
|
17650 $rm conftest* |
|
17651 # SGI C++ compiler will create directory out/ii_files/ for |
|
17652 # template instantiation |
|
17653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
17654 $rm out/* && rmdir out |
|
17655 cd .. |
|
17656 rmdir conftest |
|
17657 $rm conftest* |
|
17658 |
|
17659 fi |
|
17660 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
17661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
|
17662 |
|
17663 |
|
17664 hard_links="nottested" |
|
17665 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
17666 # do not overwrite the value of need_locks provided by the user |
|
17667 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
17668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
|
17669 hard_links=yes |
|
17670 $rm conftest* |
|
17671 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
17672 touch conftest.a |
|
17673 ln conftest.a conftest.b 2>&5 || hard_links=no |
|
17674 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
17675 { echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
17676 echo "${ECHO_T}$hard_links" >&6; } |
|
17677 if test "$hard_links" = no; then |
|
17678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
17679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
17680 need_locks=warn |
|
17681 fi |
|
17682 else |
|
17683 need_locks=no |
|
17684 fi |
|
17685 |
|
17686 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
17687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
|
17688 |
|
17689 runpath_var= |
|
17690 allow_undefined_flag_GCJ= |
|
17691 enable_shared_with_static_runtimes_GCJ=no |
|
17692 archive_cmds_GCJ= |
|
17693 archive_expsym_cmds_GCJ= |
|
17694 old_archive_From_new_cmds_GCJ= |
|
17695 old_archive_from_expsyms_cmds_GCJ= |
|
17696 export_dynamic_flag_spec_GCJ= |
|
17697 whole_archive_flag_spec_GCJ= |
|
17698 thread_safe_flag_spec_GCJ= |
|
17699 hardcode_libdir_flag_spec_GCJ= |
|
17700 hardcode_libdir_flag_spec_ld_GCJ= |
|
17701 hardcode_libdir_separator_GCJ= |
|
17702 hardcode_direct_GCJ=no |
|
17703 hardcode_minus_L_GCJ=no |
|
17704 hardcode_shlibpath_var_GCJ=unsupported |
|
17705 link_all_deplibs_GCJ=unknown |
|
17706 hardcode_automatic_GCJ=no |
|
17707 module_cmds_GCJ= |
|
17708 module_expsym_cmds_GCJ= |
|
17709 always_export_symbols_GCJ=no |
|
17710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
17711 # include_expsyms should be a list of space-separated symbols to be *always* |
|
17712 # included in the symbol list |
|
17713 include_expsyms_GCJ= |
|
17714 # exclude_expsyms can be an extended regexp of symbols to exclude |
|
17715 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
17716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
17717 # as well as any symbol that contains `d'. |
|
17718 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
17719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
17720 # platforms (ab)use it in PIC code, but their linkers get confused if |
|
17721 # the symbol is explicitly referenced. Since portable code cannot |
|
17722 # rely on this symbol name, it's probably fine to never include it in |
|
17723 # preloaded symbol tables. |
|
17724 # Exclude shared library initialization/finalization symbols. |
|
17725 extract_expsyms_cmds= |
|
17726 # Just being paranoid about ensuring that cc_basename is set. |
|
17727 for cc_temp in $compiler""; do |
|
17728 case $cc_temp in |
|
17729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
17730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
17731 \-*) ;; |
|
17732 *) break;; |
|
17733 esac |
|
17734 done |
|
17735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
17736 |
|
17737 case $host_os in |
|
17738 cygwin* | mingw* | pw32*) |
|
17739 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
17740 # When not using gcc, we currently assume that we are using |
|
17741 # Microsoft Visual C++. |
|
17742 if test "$GCC" != yes; then |
|
17743 with_gnu_ld=no |
|
17744 fi |
|
17745 ;; |
|
17746 interix*) |
|
17747 # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
17748 with_gnu_ld=yes |
|
17749 ;; |
|
17750 openbsd*) |
|
17751 with_gnu_ld=no |
|
17752 ;; |
|
17753 esac |
|
17754 |
|
17755 ld_shlibs_GCJ=yes |
|
17756 if test "$with_gnu_ld" = yes; then |
|
17757 # If archive_cmds runs LD, not CC, wlarc should be empty |
|
17758 wlarc='${wl}' |
|
17759 |
|
17760 # Set some defaults for GNU ld with shared library support. These |
|
17761 # are reset later if shared libraries are not supported. Putting them |
|
17762 # here allows them to be overridden if necessary. |
|
17763 runpath_var=LD_RUN_PATH |
|
17764 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
17765 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
17766 # ancient GNU ld didn't support --whole-archive et. al. |
|
17767 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
17768 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
17769 else |
|
17770 whole_archive_flag_spec_GCJ= |
|
17771 fi |
|
17772 supports_anon_versioning=no |
|
17773 case `$LD -v 2>/dev/null` in |
|
17774 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
17775 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
17776 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
17777 *\ 2.11.*) ;; # other 2.11 versions |
|
17778 *) supports_anon_versioning=yes ;; |
|
17779 esac |
|
17780 |
|
17781 # See if GNU ld supports shared libraries. |
|
17782 case $host_os in |
|
17783 aix[3-9]*) |
|
17784 # On AIX/PPC, the GNU linker is very broken |
|
17785 if test "$host_cpu" != ia64; then |
|
17786 ld_shlibs_GCJ=no |
|
17787 cat <<EOF 1>&2 |
|
17788 |
|
17789 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
17790 *** to be unable to reliably create shared libraries on AIX. |
|
17791 *** Therefore, libtool is disabling shared libraries support. If you |
|
17792 *** really care for shared libraries, you may want to modify your PATH |
|
17793 *** so that a non-GNU linker is found, and then restart. |
|
17794 |
|
17795 EOF |
|
17796 fi |
|
17797 ;; |
|
17798 |
|
17799 amigaos*) |
|
17800 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)' |
|
17801 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17802 hardcode_minus_L_GCJ=yes |
|
17803 |
|
17804 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
17805 # that the semantics of dynamic libraries on AmigaOS, at least up |
|
17806 # to version 4, is to share data among multiple programs linked |
|
17807 # with the same dynamic library. Since this doesn't match the |
|
17808 # behavior of shared libraries on other platforms, we can't use |
|
17809 # them. |
|
17810 ld_shlibs_GCJ=no |
|
17811 ;; |
|
17812 |
|
17813 beos*) |
|
17814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17815 allow_undefined_flag_GCJ=unsupported |
|
17816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
17817 # support --undefined. This deserves some investigation. FIXME |
|
17818 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17819 else |
|
17820 ld_shlibs_GCJ=no |
|
17821 fi |
|
17822 ;; |
|
17823 |
|
17824 cygwin* | mingw* | pw32*) |
|
17825 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
17826 # as there is no search path for DLLs. |
|
17827 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
17828 allow_undefined_flag_GCJ=unsupported |
|
17829 always_export_symbols_GCJ=no |
|
17830 enable_shared_with_static_runtimes_GCJ=yes |
|
17831 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
17832 |
|
17833 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
17834 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
17835 # If the export-symbols file already is a .def file (1st line |
|
17836 # is EXPORTS), use it as is; otherwise, prepend... |
|
17837 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
17838 cp $export_symbols $output_objdir/$soname.def; |
|
17839 else |
|
17840 echo EXPORTS > $output_objdir/$soname.def; |
|
17841 cat $export_symbols >> $output_objdir/$soname.def; |
|
17842 fi~ |
|
17843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
17844 else |
|
17845 ld_shlibs_GCJ=no |
|
17846 fi |
|
17847 ;; |
|
17848 |
|
17849 interix[3-9]*) |
|
17850 hardcode_direct_GCJ=no |
|
17851 hardcode_shlibpath_var_GCJ=no |
|
17852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
17853 export_dynamic_flag_spec_GCJ='${wl}-E' |
|
17854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
17855 # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
17856 # default) and relocated if they conflict, which is a slow very memory |
|
17857 # consuming and fragmenting process. To avoid this, we pick a random, |
|
17858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
17859 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
17860 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' |
|
17861 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' |
|
17862 ;; |
|
17863 |
|
17864 gnu* | linux* | k*bsd*-gnu) |
|
17865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17866 tmp_addflag= |
|
17867 case $cc_basename,$host_cpu in |
|
17868 pgcc*) # Portland Group C compiler |
|
17869 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' |
|
17870 tmp_addflag=' $pic_flag' |
|
17871 ;; |
|
17872 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
17873 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' |
|
17874 tmp_addflag=' $pic_flag -Mnomain' ;; |
|
17875 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
17876 tmp_addflag=' -i_dynamic' ;; |
|
17877 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
17878 tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
17879 ifc* | ifort*) # Intel Fortran compiler |
|
17880 tmp_addflag=' -nofor_main' ;; |
|
17881 esac |
|
17882 case `$CC -V 2>&1 | sed 5q` in |
|
17883 *Sun\ C*) # Sun C 5.9 |
|
17884 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
17885 tmp_sharedflag='-G' ;; |
|
17886 *Sun\ F*) # Sun Fortran 8.3 |
|
17887 tmp_sharedflag='-G' ;; |
|
17888 *) |
|
17889 tmp_sharedflag='-shared' ;; |
|
17890 esac |
|
17891 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17892 |
|
17893 if test $supports_anon_versioning = yes; then |
|
17894 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
17895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
17896 $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
17897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
17898 fi |
|
17899 else |
|
17900 ld_shlibs_GCJ=no |
|
17901 fi |
|
17902 ;; |
|
17903 |
|
17904 netbsd*) |
|
17905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
17906 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
17907 wlarc= |
|
17908 else |
|
17909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17910 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17911 fi |
|
17912 ;; |
|
17913 |
|
17914 solaris*) |
|
17915 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
17916 ld_shlibs_GCJ=no |
|
17917 cat <<EOF 1>&2 |
|
17918 |
|
17919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
17920 *** create shared libraries on Solaris systems. Therefore, libtool |
|
17921 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
17922 *** binutils to release 2.9.1 or newer. Another option is to modify |
|
17923 *** your PATH or compiler configuration so that the native linker is |
|
17924 *** used, and then restart. |
|
17925 |
|
17926 EOF |
|
17927 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17928 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17929 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17930 else |
|
17931 ld_shlibs_GCJ=no |
|
17932 fi |
|
17933 ;; |
|
17934 |
|
17935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
17936 case `$LD -v 2>&1` in |
|
17937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
17938 ld_shlibs_GCJ=no |
|
17939 cat <<_LT_EOF 1>&2 |
|
17940 |
|
17941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
17942 *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
17943 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
17944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
17945 *** your PATH or compiler configuration so that the native linker is |
|
17946 *** used, and then restart. |
|
17947 |
|
17948 _LT_EOF |
|
17949 ;; |
|
17950 *) |
|
17951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17952 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
17953 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
17954 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
17955 else |
|
17956 ld_shlibs_GCJ=no |
|
17957 fi |
|
17958 ;; |
|
17959 esac |
|
17960 ;; |
|
17961 |
|
17962 sunos4*) |
|
17963 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
17964 wlarc= |
|
17965 hardcode_direct_GCJ=yes |
|
17966 hardcode_shlibpath_var_GCJ=no |
|
17967 ;; |
|
17968 |
|
17969 *) |
|
17970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
17971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
17972 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
17973 else |
|
17974 ld_shlibs_GCJ=no |
|
17975 fi |
|
17976 ;; |
|
17977 esac |
|
17978 |
|
17979 if test "$ld_shlibs_GCJ" = no; then |
|
17980 runpath_var= |
|
17981 hardcode_libdir_flag_spec_GCJ= |
|
17982 export_dynamic_flag_spec_GCJ= |
|
17983 whole_archive_flag_spec_GCJ= |
|
17984 fi |
|
17985 else |
|
17986 # PORTME fill in a description of your system's linker (not GNU ld) |
|
17987 case $host_os in |
|
17988 aix3*) |
|
17989 allow_undefined_flag_GCJ=unsupported |
|
17990 always_export_symbols_GCJ=yes |
|
17991 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' |
|
17992 # Note: this linker hardcodes the directories in LIBPATH if there |
|
17993 # are no directories specified by -L. |
|
17994 hardcode_minus_L_GCJ=yes |
|
17995 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
17996 # Neither direct hardcoding nor static linking is supported with a |
|
17997 # broken collect2. |
|
17998 hardcode_direct_GCJ=unsupported |
|
17999 fi |
|
18000 ;; |
|
18001 |
|
18002 aix[4-9]*) |
|
18003 if test "$host_cpu" = ia64; then |
|
18004 # On IA64, the linker does run time linking by default, so we don't |
|
18005 # have to do anything special. |
|
18006 aix_use_runtimelinking=no |
|
18007 exp_sym_flag='-Bexport' |
|
18008 no_entry_flag="" |
|
18009 else |
|
18010 # If we're using GNU nm, then we don't want the "-C" option. |
|
18011 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
18012 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
18013 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' |
|
18014 else |
|
18015 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' |
|
18016 fi |
|
18017 aix_use_runtimelinking=no |
|
18018 |
|
18019 # Test if we are trying to use run time linking or normal |
|
18020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
18021 # need to do runtime linking. |
|
18022 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
18023 for ld_flag in $LDFLAGS; do |
|
18024 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
18025 aix_use_runtimelinking=yes |
|
18026 break |
|
18027 fi |
|
18028 done |
|
18029 ;; |
|
18030 esac |
|
18031 |
|
18032 exp_sym_flag='-bexport' |
|
18033 no_entry_flag='-bnoentry' |
|
18034 fi |
|
18035 |
|
18036 # When large executables or shared objects are built, AIX ld can |
|
18037 # have problems creating the table of contents. If linking a library |
|
18038 # or program results in "error TOC overflow" add -mminimal-toc to |
|
18039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
18040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
18041 |
|
18042 archive_cmds_GCJ='' |
|
18043 hardcode_direct_GCJ=yes |
|
18044 hardcode_libdir_separator_GCJ=':' |
|
18045 link_all_deplibs_GCJ=yes |
|
18046 |
|
18047 if test "$GCC" = yes; then |
|
18048 case $host_os in aix4.[012]|aix4.[012].*) |
|
18049 # We only want to do this on AIX 4.2 and lower, the check |
|
18050 # below for broken collect2 doesn't work under 4.3+ |
|
18051 collect2name=`${CC} -print-prog-name=collect2` |
|
18052 if test -f "$collect2name" && \ |
|
18053 strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
18054 then |
|
18055 # We have reworked collect2 |
|
18056 : |
|
18057 else |
|
18058 # We have old collect2 |
|
18059 hardcode_direct_GCJ=unsupported |
|
18060 # It fails to find uninstalled libraries when the uninstalled |
|
18061 # path is not listed in the libpath. Setting hardcode_minus_L |
|
18062 # to unsupported forces relinking |
|
18063 hardcode_minus_L_GCJ=yes |
|
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18065 hardcode_libdir_separator_GCJ= |
|
18066 fi |
|
18067 ;; |
|
18068 esac |
|
18069 shared_flag='-shared' |
|
18070 if test "$aix_use_runtimelinking" = yes; then |
|
18071 shared_flag="$shared_flag "'${wl}-G' |
|
18072 fi |
|
18073 else |
|
18074 # not using gcc |
|
18075 if test "$host_cpu" = ia64; then |
|
18076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
18077 # chokes on -Wl,-G. The following line is correct: |
|
18078 shared_flag='-G' |
|
18079 else |
|
18080 if test "$aix_use_runtimelinking" = yes; then |
|
18081 shared_flag='${wl}-G' |
|
18082 else |
|
18083 shared_flag='${wl}-bM:SRE' |
|
18084 fi |
|
18085 fi |
|
18086 fi |
|
18087 |
|
18088 # It seems that -bexpall does not export symbols beginning with |
|
18089 # underscore (_), so it is better to generate a list of symbols to export. |
|
18090 always_export_symbols_GCJ=yes |
|
18091 if test "$aix_use_runtimelinking" = yes; then |
|
18092 # Warning - without using the other runtime loading flags (-brtl), |
|
18093 # -berok will link without error, but may produce a broken library. |
|
18094 allow_undefined_flag_GCJ='-berok' |
|
18095 # Determine the default libpath from the value encoded in an empty executable. |
|
18096 cat >conftest.$ac_ext <<_ACEOF |
|
18097 /* confdefs.h. */ |
|
18098 _ACEOF |
|
18099 cat confdefs.h >>conftest.$ac_ext |
|
18100 cat >>conftest.$ac_ext <<_ACEOF |
|
18101 /* end confdefs.h. */ |
|
18102 |
|
18103 int |
|
18104 main () |
|
18105 { |
|
18106 |
|
18107 ; |
|
18108 return 0; |
|
18109 } |
|
18110 _ACEOF |
|
18111 rm -f conftest.$ac_objext conftest$ac_exeext |
|
18112 if { (ac_try="$ac_link" |
|
18113 case "(($ac_try" in |
|
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
18115 *) ac_try_echo=$ac_try;; |
|
18116 esac |
|
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
18118 (eval "$ac_link") 2>conftest.er1 |
|
18119 ac_status=$? |
|
18120 grep -v '^ *+' conftest.er1 >conftest.err |
|
18121 rm -f conftest.er1 |
|
18122 cat conftest.err >&5 |
|
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18124 (exit $ac_status); } && { |
|
18125 test -z "$ac_c_werror_flag" || |
|
18126 test ! -s conftest.err |
|
18127 } && test -s conftest$ac_exeext && |
|
18128 $as_test_x conftest$ac_exeext; then |
|
18129 |
|
18130 lt_aix_libpath_sed=' |
|
18131 /Import File Strings/,/^$/ { |
|
18132 /^0/ { |
|
18133 s/^0 *\(.*\)$/\1/ |
|
18134 p |
|
18135 } |
|
18136 }' |
|
18137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
18138 # Check for a 64-bit object if we didn't find anything. |
|
18139 if test -z "$aix_libpath"; then |
|
18140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
18141 fi |
|
18142 else |
|
18143 echo "$as_me: failed program was:" >&5 |
|
18144 sed 's/^/| /' conftest.$ac_ext >&5 |
|
18145 |
|
18146 |
|
18147 fi |
|
18148 |
|
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
18150 conftest$ac_exeext conftest.$ac_ext |
|
18151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
18152 |
|
18153 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
18154 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" |
|
18155 else |
|
18156 if test "$host_cpu" = ia64; then |
|
18157 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
18158 allow_undefined_flag_GCJ="-z nodefs" |
|
18159 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" |
|
18160 else |
|
18161 # Determine the default libpath from the value encoded in an empty executable. |
|
18162 cat >conftest.$ac_ext <<_ACEOF |
|
18163 /* confdefs.h. */ |
|
18164 _ACEOF |
|
18165 cat confdefs.h >>conftest.$ac_ext |
|
18166 cat >>conftest.$ac_ext <<_ACEOF |
|
18167 /* end confdefs.h. */ |
|
18168 |
|
18169 int |
|
18170 main () |
|
18171 { |
|
18172 |
|
18173 ; |
|
18174 return 0; |
|
18175 } |
|
18176 _ACEOF |
|
18177 rm -f conftest.$ac_objext conftest$ac_exeext |
|
18178 if { (ac_try="$ac_link" |
|
18179 case "(($ac_try" in |
|
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
18181 *) ac_try_echo=$ac_try;; |
|
18182 esac |
|
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
18184 (eval "$ac_link") 2>conftest.er1 |
|
18185 ac_status=$? |
|
18186 grep -v '^ *+' conftest.er1 >conftest.err |
|
18187 rm -f conftest.er1 |
|
18188 cat conftest.err >&5 |
|
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18190 (exit $ac_status); } && { |
|
18191 test -z "$ac_c_werror_flag" || |
|
18192 test ! -s conftest.err |
|
18193 } && test -s conftest$ac_exeext && |
|
18194 $as_test_x conftest$ac_exeext; then |
|
18195 |
|
18196 lt_aix_libpath_sed=' |
|
18197 /Import File Strings/,/^$/ { |
|
18198 /^0/ { |
|
18199 s/^0 *\(.*\)$/\1/ |
|
18200 p |
|
18201 } |
|
18202 }' |
|
18203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
18204 # Check for a 64-bit object if we didn't find anything. |
|
18205 if test -z "$aix_libpath"; then |
|
18206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
18207 fi |
|
18208 else |
|
18209 echo "$as_me: failed program was:" >&5 |
|
18210 sed 's/^/| /' conftest.$ac_ext >&5 |
|
18211 |
|
18212 |
|
18213 fi |
|
18214 |
|
18215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
18216 conftest$ac_exeext conftest.$ac_ext |
|
18217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
18218 |
|
18219 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
18220 # Warning - without using the other run time loading flags, |
|
18221 # -berok will link without error, but may produce a broken library. |
|
18222 no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
18223 allow_undefined_flag_GCJ=' ${wl}-berok' |
|
18224 # Exported symbols can be pulled into shared objects from archives |
|
18225 whole_archive_flag_spec_GCJ='$convenience' |
|
18226 archive_cmds_need_lc_GCJ=yes |
|
18227 # This is similar to how AIX traditionally builds its shared libraries. |
|
18228 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' |
|
18229 fi |
|
18230 fi |
|
18231 ;; |
|
18232 |
|
18233 amigaos*) |
|
18234 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)' |
|
18235 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18236 hardcode_minus_L_GCJ=yes |
|
18237 # see comment about different semantics on the GNU ld section |
|
18238 ld_shlibs_GCJ=no |
|
18239 ;; |
|
18240 |
|
18241 bsdi[45]*) |
|
18242 export_dynamic_flag_spec_GCJ=-rdynamic |
|
18243 ;; |
|
18244 |
|
18245 cygwin* | mingw* | pw32*) |
|
18246 # When not using gcc, we currently assume that we are using |
|
18247 # Microsoft Visual C++. |
|
18248 # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
18249 # no search path for DLLs. |
|
18250 hardcode_libdir_flag_spec_GCJ=' ' |
|
18251 allow_undefined_flag_GCJ=unsupported |
|
18252 # Tell ltmain to make .lib files, not .a files. |
|
18253 libext=lib |
|
18254 # Tell ltmain to make .dll files, not .so files. |
|
18255 shrext_cmds=".dll" |
|
18256 # FIXME: Setting linknames here is a bad hack. |
|
18257 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
18258 # The linker will automatically build a .lib file if we build a DLL. |
|
18259 old_archive_From_new_cmds_GCJ='true' |
|
18260 # FIXME: Should let the user specify the lib program. |
|
18261 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
18262 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
|
18263 enable_shared_with_static_runtimes_GCJ=yes |
|
18264 ;; |
|
18265 |
|
18266 darwin* | rhapsody*) |
|
18267 case $host_os in |
|
18268 rhapsody* | darwin1.[012]) |
|
18269 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
|
18270 ;; |
|
18271 *) # Darwin 1.3 on |
|
18272 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
18273 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
18274 else |
|
18275 case ${MACOSX_DEPLOYMENT_TARGET} in |
|
18276 10.[012]) |
|
18277 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
18278 ;; |
|
18279 10.*) |
|
18280 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
|
18281 ;; |
|
18282 esac |
|
18283 fi |
|
18284 ;; |
|
18285 esac |
|
18286 archive_cmds_need_lc_GCJ=no |
|
18287 hardcode_direct_GCJ=no |
|
18288 hardcode_automatic_GCJ=yes |
|
18289 hardcode_shlibpath_var_GCJ=unsupported |
|
18290 whole_archive_flag_spec_GCJ='' |
|
18291 link_all_deplibs_GCJ=yes |
|
18292 if test "$GCC" = yes ; then |
|
18293 output_verbose_link_cmd='echo' |
|
18294 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
18295 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
18296 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
|
18297 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
|
18298 else |
|
18299 case $cc_basename in |
|
18300 xlc*) |
|
18301 output_verbose_link_cmd='echo' |
|
18302 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
|
18303 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
18304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
18305 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
18306 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}' |
|
18307 ;; |
|
18308 *) |
|
18309 ld_shlibs_GCJ=no |
|
18310 ;; |
|
18311 esac |
|
18312 fi |
|
18313 ;; |
|
18314 |
|
18315 dgux*) |
|
18316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18317 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18318 hardcode_shlibpath_var_GCJ=no |
|
18319 ;; |
|
18320 |
|
18321 freebsd1*) |
|
18322 ld_shlibs_GCJ=no |
|
18323 ;; |
|
18324 |
|
18325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
18326 # support. Future versions do this automatically, but an explicit c++rt0.o |
|
18327 # does not break anything, and helps significantly (at the cost of a little |
|
18328 # extra space). |
|
18329 freebsd2.2*) |
|
18330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
18331 hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
18332 hardcode_direct_GCJ=yes |
|
18333 hardcode_shlibpath_var_GCJ=no |
|
18334 ;; |
|
18335 |
|
18336 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
18337 freebsd2*) |
|
18338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
18339 hardcode_direct_GCJ=yes |
|
18340 hardcode_minus_L_GCJ=yes |
|
18341 hardcode_shlibpath_var_GCJ=no |
|
18342 ;; |
|
18343 |
|
18344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
18345 freebsd* | dragonfly*) |
|
18346 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
18347 hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
18348 hardcode_direct_GCJ=yes |
|
18349 hardcode_shlibpath_var_GCJ=no |
|
18350 ;; |
|
18351 |
|
18352 hpux9*) |
|
18353 if test "$GCC" = yes; then |
|
18354 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' |
|
18355 else |
|
18356 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' |
|
18357 fi |
|
18358 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
18359 hardcode_libdir_separator_GCJ=: |
|
18360 hardcode_direct_GCJ=yes |
|
18361 |
|
18362 # hardcode_minus_L: Not really in the search PATH, |
|
18363 # but as the default location of the library. |
|
18364 hardcode_minus_L_GCJ=yes |
|
18365 export_dynamic_flag_spec_GCJ='${wl}-E' |
|
18366 ;; |
|
18367 |
|
18368 hpux10*) |
|
18369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
18370 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
18371 else |
|
18372 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
18373 fi |
|
18374 if test "$with_gnu_ld" = no; then |
|
18375 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
18376 hardcode_libdir_separator_GCJ=: |
|
18377 |
|
18378 hardcode_direct_GCJ=yes |
|
18379 export_dynamic_flag_spec_GCJ='${wl}-E' |
|
18380 |
|
18381 # hardcode_minus_L: Not really in the search PATH, |
|
18382 # but as the default location of the library. |
|
18383 hardcode_minus_L_GCJ=yes |
|
18384 fi |
|
18385 ;; |
|
18386 |
|
18387 hpux11*) |
|
18388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
18389 case $host_cpu in |
|
18390 hppa*64*) |
|
18391 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18392 ;; |
|
18393 ia64*) |
|
18394 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
18395 ;; |
|
18396 *) |
|
18397 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
18398 ;; |
|
18399 esac |
|
18400 else |
|
18401 case $host_cpu in |
|
18402 hppa*64*) |
|
18403 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18404 ;; |
|
18405 ia64*) |
|
18406 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
18407 ;; |
|
18408 *) |
|
18409 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
18410 ;; |
|
18411 esac |
|
18412 fi |
|
18413 if test "$with_gnu_ld" = no; then |
|
18414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
18415 hardcode_libdir_separator_GCJ=: |
|
18416 |
|
18417 case $host_cpu in |
|
18418 hppa*64*|ia64*) |
|
18419 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
18420 hardcode_direct_GCJ=no |
|
18421 hardcode_shlibpath_var_GCJ=no |
|
18422 ;; |
|
18423 *) |
|
18424 hardcode_direct_GCJ=yes |
|
18425 export_dynamic_flag_spec_GCJ='${wl}-E' |
|
18426 |
|
18427 # hardcode_minus_L: Not really in the search PATH, |
|
18428 # but as the default location of the library. |
|
18429 hardcode_minus_L_GCJ=yes |
|
18430 ;; |
|
18431 esac |
|
18432 fi |
|
18433 ;; |
|
18434 |
|
18435 irix5* | irix6* | nonstopux*) |
|
18436 if test "$GCC" = yes; then |
|
18437 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' |
|
18438 else |
|
18439 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' |
|
18440 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
18441 fi |
|
18442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
18443 hardcode_libdir_separator_GCJ=: |
|
18444 link_all_deplibs_GCJ=yes |
|
18445 ;; |
|
18446 |
|
18447 netbsd*) |
|
18448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
18449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
18450 else |
|
18451 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
18452 fi |
|
18453 hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
18454 hardcode_direct_GCJ=yes |
|
18455 hardcode_shlibpath_var_GCJ=no |
|
18456 ;; |
|
18457 |
|
18458 newsos6) |
|
18459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18460 hardcode_direct_GCJ=yes |
|
18461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
18462 hardcode_libdir_separator_GCJ=: |
|
18463 hardcode_shlibpath_var_GCJ=no |
|
18464 ;; |
|
18465 |
|
18466 openbsd*) |
|
18467 if test -f /usr/libexec/ld.so; then |
|
18468 hardcode_direct_GCJ=yes |
|
18469 hardcode_shlibpath_var_GCJ=no |
|
18470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
18471 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
18472 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
18473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
18474 export_dynamic_flag_spec_GCJ='${wl}-E' |
|
18475 else |
|
18476 case $host_os in |
|
18477 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
18478 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
18479 hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
18480 ;; |
|
18481 *) |
|
18482 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
18483 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
18484 ;; |
|
18485 esac |
|
18486 fi |
|
18487 else |
|
18488 ld_shlibs_GCJ=no |
|
18489 fi |
|
18490 ;; |
|
18491 |
|
18492 os2*) |
|
18493 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18494 hardcode_minus_L_GCJ=yes |
|
18495 allow_undefined_flag_GCJ=unsupported |
|
18496 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' |
|
18497 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
18498 ;; |
|
18499 |
|
18500 osf3*) |
|
18501 if test "$GCC" = yes; then |
|
18502 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
18503 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' |
|
18504 else |
|
18505 allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
18506 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' |
|
18507 fi |
|
18508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
18509 hardcode_libdir_separator_GCJ=: |
|
18510 ;; |
|
18511 |
|
18512 osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
18513 if test "$GCC" = yes; then |
|
18514 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
18515 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' |
|
18516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
18517 else |
|
18518 allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
18519 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' |
|
18520 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~ |
|
18521 $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' |
|
18522 |
|
18523 # Both c and cxx compiler support -rpath directly |
|
18524 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
18525 fi |
|
18526 hardcode_libdir_separator_GCJ=: |
|
18527 ;; |
|
18528 |
|
18529 solaris*) |
|
18530 no_undefined_flag_GCJ=' -z text' |
|
18531 if test "$GCC" = yes; then |
|
18532 wlarc='${wl}' |
|
18533 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18534 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
18535 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
18536 else |
|
18537 wlarc='' |
|
18538 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18539 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
18540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
18541 fi |
|
18542 hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
18543 hardcode_shlibpath_var_GCJ=no |
|
18544 case $host_os in |
|
18545 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
18546 *) |
|
18547 # The compiler driver will combine and reorder linker options, |
|
18548 # but understands `-z linker_flag'. GCC discards it without `$wl', |
|
18549 # but is careful enough not to reorder. |
|
18550 # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
18551 if test "$GCC" = yes; then |
|
18552 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
18553 else |
|
18554 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
|
18555 fi |
|
18556 ;; |
|
18557 esac |
|
18558 link_all_deplibs_GCJ=yes |
|
18559 ;; |
|
18560 |
|
18561 sunos4*) |
|
18562 if test "x$host_vendor" = xsequent; then |
|
18563 # Use $CC to link under sequent, because it throws in some extra .o |
|
18564 # files that make .init and .fini sections work. |
|
18565 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18566 else |
|
18567 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
18568 fi |
|
18569 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18570 hardcode_direct_GCJ=yes |
|
18571 hardcode_minus_L_GCJ=yes |
|
18572 hardcode_shlibpath_var_GCJ=no |
|
18573 ;; |
|
18574 |
|
18575 sysv4) |
|
18576 case $host_vendor in |
|
18577 sni) |
|
18578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18579 hardcode_direct_GCJ=yes # is this really true??? |
|
18580 ;; |
|
18581 siemens) |
|
18582 ## LD is ld it makes a PLAMLIB |
|
18583 ## CC just makes a GrossModule. |
|
18584 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
18585 reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
18586 hardcode_direct_GCJ=no |
|
18587 ;; |
|
18588 motorola) |
|
18589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18590 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
18591 ;; |
|
18592 esac |
|
18593 runpath_var='LD_RUN_PATH' |
|
18594 hardcode_shlibpath_var_GCJ=no |
|
18595 ;; |
|
18596 |
|
18597 sysv4.3*) |
|
18598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18599 hardcode_shlibpath_var_GCJ=no |
|
18600 export_dynamic_flag_spec_GCJ='-Bexport' |
|
18601 ;; |
|
18602 |
|
18603 sysv4*MP*) |
|
18604 if test -d /usr/nec; then |
|
18605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18606 hardcode_shlibpath_var_GCJ=no |
|
18607 runpath_var=LD_RUN_PATH |
|
18608 hardcode_runpath_var=yes |
|
18609 ld_shlibs_GCJ=yes |
|
18610 fi |
|
18611 ;; |
|
18612 |
|
18613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
18614 no_undefined_flag_GCJ='${wl}-z,text' |
|
18615 archive_cmds_need_lc_GCJ=no |
|
18616 hardcode_shlibpath_var_GCJ=no |
|
18617 runpath_var='LD_RUN_PATH' |
|
18618 |
|
18619 if test "$GCC" = yes; then |
|
18620 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18621 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18622 else |
|
18623 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18624 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18625 fi |
|
18626 ;; |
|
18627 |
|
18628 sysv5* | sco3.2v5* | sco5v6*) |
|
18629 # Note: We can NOT use -z defs as we might desire, because we do not |
|
18630 # link with -lc, and that would cause any symbols used from libc to |
|
18631 # always be unresolved, which means just about no library would |
|
18632 # ever link correctly. If we're not using GNU ld we use -z text |
|
18633 # though, which does catch some bad symbols but isn't as heavy-handed |
|
18634 # as -z defs. |
|
18635 no_undefined_flag_GCJ='${wl}-z,text' |
|
18636 allow_undefined_flag_GCJ='${wl}-z,nodefs' |
|
18637 archive_cmds_need_lc_GCJ=no |
|
18638 hardcode_shlibpath_var_GCJ=no |
|
18639 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
18640 hardcode_libdir_separator_GCJ=':' |
|
18641 link_all_deplibs_GCJ=yes |
|
18642 export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
18643 runpath_var='LD_RUN_PATH' |
|
18644 |
|
18645 if test "$GCC" = yes; then |
|
18646 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18647 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18648 else |
|
18649 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18650 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
18651 fi |
|
18652 ;; |
|
18653 |
|
18654 uts4*) |
|
18655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
18656 hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
18657 hardcode_shlibpath_var_GCJ=no |
|
18658 ;; |
|
18659 |
|
18660 *) |
|
18661 ld_shlibs_GCJ=no |
|
18662 ;; |
|
18663 esac |
|
18664 fi |
|
18665 |
|
18666 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
18667 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
|
18668 test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
18669 |
|
18670 # |
|
18671 # Do we need to explicitly link libc? |
|
18672 # |
|
18673 case "x$archive_cmds_need_lc_GCJ" in |
|
18674 x|xyes) |
|
18675 # Assume -lc should be added |
|
18676 archive_cmds_need_lc_GCJ=yes |
|
18677 |
|
18678 if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
18679 case $archive_cmds_GCJ in |
|
18680 *'~'*) |
|
18681 # FIXME: we may have to deal with multi-command sequences. |
|
18682 ;; |
|
18683 '$CC '*) |
|
18684 # Test whether the compiler implicitly links with -lc since on some |
|
18685 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
18686 # to ld, don't add -lc before -lgcc. |
|
18687 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
18688 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
|
18689 $rm conftest* |
|
18690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
18691 |
|
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
18693 (eval $ac_compile) 2>&5 |
|
18694 ac_status=$? |
|
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18696 (exit $ac_status); } 2>conftest.err; then |
|
18697 soname=conftest |
|
18698 lib=conftest |
|
18699 libobjs=conftest.$ac_objext |
|
18700 deplibs= |
|
18701 wl=$lt_prog_compiler_wl_GCJ |
|
18702 pic_flag=$lt_prog_compiler_pic_GCJ |
|
18703 compiler_flags=-v |
|
18704 linker_flags=-v |
|
18705 verstring= |
|
18706 output_objdir=. |
|
18707 libname=conftest |
|
18708 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
18709 allow_undefined_flag_GCJ= |
|
18710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
18711 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
18712 ac_status=$? |
|
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
18714 (exit $ac_status); } |
|
18715 then |
|
18716 archive_cmds_need_lc_GCJ=no |
|
18717 else |
|
18718 archive_cmds_need_lc_GCJ=yes |
|
18719 fi |
|
18720 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
18721 else |
|
18722 cat conftest.err 1>&5 |
|
18723 fi |
|
18724 $rm conftest* |
|
18725 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
18726 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
|
18727 ;; |
|
18728 esac |
|
18729 fi |
|
18730 ;; |
|
18731 esac |
|
18732 |
|
18733 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
18734 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
|
18735 library_names_spec= |
|
18736 libname_spec='lib$name' |
|
18737 soname_spec= |
|
18738 shrext_cmds=".so" |
|
18739 postinstall_cmds= |
|
18740 postuninstall_cmds= |
|
18741 finish_cmds= |
|
18742 finish_eval= |
|
18743 shlibpath_var= |
|
18744 shlibpath_overrides_runpath=unknown |
|
18745 version_type=none |
|
18746 dynamic_linker="$host_os ld.so" |
|
18747 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
18748 |
|
18749 need_lib_prefix=unknown |
|
18750 hardcode_into_libs=no |
|
18751 |
|
18752 # when you set need_version to no, make sure it does not cause -set_version |
|
18753 # flags to be left without arguments |
|
18754 need_version=unknown |
|
18755 |
|
18756 case $host_os in |
|
18757 aix3*) |
|
18758 version_type=linux |
|
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
18760 shlibpath_var=LIBPATH |
|
18761 |
|
18762 # AIX 3 has no versioning support, so we append a major version to the name. |
|
18763 soname_spec='${libname}${release}${shared_ext}$major' |
|
18764 ;; |
|
18765 |
|
18766 aix[4-9]*) |
|
18767 version_type=linux |
|
18768 need_lib_prefix=no |
|
18769 need_version=no |
|
18770 hardcode_into_libs=yes |
|
18771 if test "$host_cpu" = ia64; then |
|
18772 # AIX 5 supports IA64 |
|
18773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
18774 shlibpath_var=LD_LIBRARY_PATH |
|
18775 else |
|
18776 # With GCC up to 2.95.x, collect2 would create an import file |
|
18777 # for dependence libraries. The import file would start with |
|
18778 # the line `#! .'. This would cause the generated library to |
|
18779 # depend on `.', always an invalid library. This was fixed in |
|
18780 # development snapshots of GCC prior to 3.0. |
|
18781 case $host_os in |
|
18782 aix4 | aix4.[01] | aix4.[01].*) |
|
18783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
18784 echo ' yes ' |
|
18785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
18786 : |
|
18787 else |
|
18788 can_build_shared=no |
|
18789 fi |
|
18790 ;; |
|
18791 esac |
|
18792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
18793 # soname into executable. Probably we can add versioning support to |
|
18794 # collect2, so additional links can be useful in future. |
|
18795 if test "$aix_use_runtimelinking" = yes; then |
|
18796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
18797 # instead of lib<name>.a to let people know that these are not |
|
18798 # typical AIX shared libraries. |
|
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18800 else |
|
18801 # We preserve .a as extension for shared libraries through AIX4.2 |
|
18802 # and later when we are not doing run time linking. |
|
18803 library_names_spec='${libname}${release}.a $libname.a' |
|
18804 soname_spec='${libname}${release}${shared_ext}$major' |
|
18805 fi |
|
18806 shlibpath_var=LIBPATH |
|
18807 fi |
|
18808 ;; |
|
18809 |
|
18810 amigaos*) |
|
18811 library_names_spec='$libname.ixlibrary $libname.a' |
|
18812 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
18813 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' |
|
18814 ;; |
|
18815 |
|
18816 beos*) |
|
18817 library_names_spec='${libname}${shared_ext}' |
|
18818 dynamic_linker="$host_os ld.so" |
|
18819 shlibpath_var=LIBRARY_PATH |
|
18820 ;; |
|
18821 |
|
18822 bsdi[45]*) |
|
18823 version_type=linux |
|
18824 need_version=no |
|
18825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
18826 soname_spec='${libname}${release}${shared_ext}$major' |
|
18827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
18828 shlibpath_var=LD_LIBRARY_PATH |
|
18829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
18830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
18831 # the default ld.so.conf also contains /usr/contrib/lib and |
|
18832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
18833 # libtool to hard-code these into programs |
|
18834 ;; |
|
18835 |
|
18836 cygwin* | mingw* | pw32*) |
|
18837 version_type=windows |
|
18838 shrext_cmds=".dll" |
|
18839 need_version=no |
|
18840 need_lib_prefix=no |
|
18841 |
|
18842 case $GCC,$host_os in |
|
18843 yes,cygwin* | yes,mingw* | yes,pw32*) |
|
18844 library_names_spec='$libname.dll.a' |
|
18845 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
18846 postinstall_cmds='base_file=`basename \${file}`~ |
|
18847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
18848 dldir=$destdir/`dirname \$dlpath`~ |
|
18849 test -d \$dldir || mkdir -p \$dldir~ |
|
18850 $install_prog $dir/$dlname \$dldir/$dlname~ |
|
18851 chmod a+x \$dldir/$dlname' |
|
18852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
18853 dlpath=$dir/\$dldll~ |
|
18854 $rm \$dlpath' |
|
18855 shlibpath_overrides_runpath=yes |
|
18856 |
|
18857 case $host_os in |
|
18858 cygwin*) |
|
18859 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
18860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
18861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
18862 ;; |
|
18863 mingw*) |
|
18864 # MinGW DLLs use traditional 'lib' prefix |
|
18865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
18866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
18867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
18868 # It is most probably a Windows format PATH printed by |
|
18869 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
18870 # path with ; separators, and with drive letters. We can handle the |
|
18871 # drive letters (cygwin fileutils understands them), so leave them, |
|
18872 # especially as we might pass files found there to a mingw objdump, |
|
18873 # which wouldn't understand a cygwinified path. Ahh. |
|
18874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
18875 else |
|
18876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
18877 fi |
|
18878 ;; |
|
18879 pw32*) |
|
18880 # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
18881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
18882 ;; |
|
18883 esac |
|
18884 ;; |
|
18885 |
|
18886 *) |
|
18887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
18888 ;; |
|
18889 esac |
|
18890 dynamic_linker='Win32 ld.exe' |
|
18891 # FIXME: first we should search . and the directory the executable is in |
|
18892 shlibpath_var=PATH |
|
18893 ;; |
|
18894 |
|
18895 darwin* | rhapsody*) |
|
18896 dynamic_linker="$host_os dyld" |
|
18897 version_type=darwin |
|
18898 need_lib_prefix=no |
|
18899 need_version=no |
|
18900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
18901 soname_spec='${libname}${release}${major}$shared_ext' |
|
18902 shlibpath_overrides_runpath=yes |
|
18903 shlibpath_var=DYLD_LIBRARY_PATH |
|
18904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
18905 |
|
18906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
18907 ;; |
|
18908 |
|
18909 dgux*) |
|
18910 version_type=linux |
|
18911 need_lib_prefix=no |
|
18912 need_version=no |
|
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
18914 soname_spec='${libname}${release}${shared_ext}$major' |
|
18915 shlibpath_var=LD_LIBRARY_PATH |
|
18916 ;; |
|
18917 |
|
18918 freebsd1*) |
|
18919 dynamic_linker=no |
|
18920 ;; |
|
18921 |
|
18922 freebsd* | dragonfly*) |
|
18923 # DragonFly does not have aout. When/if they implement a new |
|
18924 # versioning mechanism, adjust this. |
|
18925 if test -x /usr/bin/objformat; then |
|
18926 objformat=`/usr/bin/objformat` |
|
18927 else |
|
18928 case $host_os in |
|
18929 freebsd[123]*) objformat=aout ;; |
|
18930 *) objformat=elf ;; |
|
18931 esac |
|
18932 fi |
|
18933 # Handle Gentoo/FreeBSD as it was Linux |
|
18934 case $host_vendor in |
|
18935 gentoo) |
|
18936 version_type=linux ;; |
|
18937 *) |
|
18938 version_type=freebsd-$objformat ;; |
|
18939 esac |
|
18940 |
|
18941 case $version_type in |
|
18942 freebsd-elf*) |
|
18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
18944 need_version=no |
|
18945 need_lib_prefix=no |
|
18946 ;; |
|
18947 freebsd-*) |
|
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
18949 need_version=yes |
|
18950 ;; |
|
18951 linux) |
|
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
18953 soname_spec='${libname}${release}${shared_ext}$major' |
|
18954 need_lib_prefix=no |
|
18955 need_version=no |
|
18956 ;; |
|
18957 esac |
|
18958 shlibpath_var=LD_LIBRARY_PATH |
|
18959 case $host_os in |
|
18960 freebsd2*) |
|
18961 shlibpath_overrides_runpath=yes |
|
18962 ;; |
|
18963 freebsd3.[01]* | freebsdelf3.[01]*) |
|
18964 shlibpath_overrides_runpath=yes |
|
18965 hardcode_into_libs=yes |
|
18966 ;; |
|
18967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
18968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
18969 shlibpath_overrides_runpath=no |
|
18970 hardcode_into_libs=yes |
|
18971 ;; |
|
18972 *) # from 4.6 on, and DragonFly |
|
18973 shlibpath_overrides_runpath=yes |
|
18974 hardcode_into_libs=yes |
|
18975 ;; |
|
18976 esac |
|
18977 ;; |
|
18978 |
|
18979 gnu*) |
|
18980 version_type=linux |
|
18981 need_lib_prefix=no |
|
18982 need_version=no |
|
18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
18984 soname_spec='${libname}${release}${shared_ext}$major' |
|
18985 shlibpath_var=LD_LIBRARY_PATH |
|
18986 hardcode_into_libs=yes |
|
18987 ;; |
|
18988 |
|
18989 hpux9* | hpux10* | hpux11*) |
|
18990 # Give a soname corresponding to the major version so that dld.sl refuses to |
|
18991 # link against other versions. |
|
18992 version_type=sunos |
|
18993 need_lib_prefix=no |
|
18994 need_version=no |
|
18995 case $host_cpu in |
|
18996 ia64*) |
|
18997 shrext_cmds='.so' |
|
18998 hardcode_into_libs=yes |
|
18999 dynamic_linker="$host_os dld.so" |
|
19000 shlibpath_var=LD_LIBRARY_PATH |
|
19001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
19002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19003 soname_spec='${libname}${release}${shared_ext}$major' |
|
19004 if test "X$HPUX_IA64_MODE" = X32; then |
|
19005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
19006 else |
|
19007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
19008 fi |
|
19009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
19010 ;; |
|
19011 hppa*64*) |
|
19012 shrext_cmds='.sl' |
|
19013 hardcode_into_libs=yes |
|
19014 dynamic_linker="$host_os dld.sl" |
|
19015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
19016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19018 soname_spec='${libname}${release}${shared_ext}$major' |
|
19019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
19020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
19021 ;; |
|
19022 *) |
|
19023 shrext_cmds='.sl' |
|
19024 dynamic_linker="$host_os dld.sl" |
|
19025 shlibpath_var=SHLIB_PATH |
|
19026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
19027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19028 soname_spec='${libname}${release}${shared_ext}$major' |
|
19029 ;; |
|
19030 esac |
|
19031 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
19032 postinstall_cmds='chmod 555 $lib' |
|
19033 ;; |
|
19034 |
|
19035 interix[3-9]*) |
|
19036 version_type=linux |
|
19037 need_lib_prefix=no |
|
19038 need_version=no |
|
19039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
19040 soname_spec='${libname}${release}${shared_ext}$major' |
|
19041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
19042 shlibpath_var=LD_LIBRARY_PATH |
|
19043 shlibpath_overrides_runpath=no |
|
19044 hardcode_into_libs=yes |
|
19045 ;; |
|
19046 |
|
19047 irix5* | irix6* | nonstopux*) |
|
19048 case $host_os in |
|
19049 nonstopux*) version_type=nonstopux ;; |
|
19050 *) |
|
19051 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
19052 version_type=linux |
|
19053 else |
|
19054 version_type=irix |
|
19055 fi ;; |
|
19056 esac |
|
19057 need_lib_prefix=no |
|
19058 need_version=no |
|
19059 soname_spec='${libname}${release}${shared_ext}$major' |
|
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
19061 case $host_os in |
|
19062 irix5* | nonstopux*) |
|
19063 libsuff= shlibsuff= |
|
19064 ;; |
|
19065 *) |
|
19066 case $LD in # libtool.m4 will add one of these switches to LD |
|
19067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
19068 libsuff= shlibsuff= libmagic=32-bit;; |
|
19069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
19070 libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
19071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
19072 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
19073 *) libsuff= shlibsuff= libmagic=never-match;; |
|
19074 esac |
|
19075 ;; |
|
19076 esac |
|
19077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
19078 shlibpath_overrides_runpath=no |
|
19079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
19080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
19081 hardcode_into_libs=yes |
|
19082 ;; |
|
19083 |
|
19084 # No shared lib support for Linux oldld, aout, or coff. |
|
19085 linux*oldld* | linux*aout* | linux*coff*) |
|
19086 dynamic_linker=no |
|
19087 ;; |
|
19088 |
|
19089 # This must be Linux ELF. |
|
19090 linux* | k*bsd*-gnu) |
|
19091 version_type=linux |
|
19092 need_lib_prefix=no |
|
19093 need_version=no |
|
19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19095 soname_spec='${libname}${release}${shared_ext}$major' |
|
19096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
19097 shlibpath_var=LD_LIBRARY_PATH |
|
19098 shlibpath_overrides_runpath=no |
|
19099 # This implies no fast_install, which is unacceptable. |
|
19100 # Some rework will be needed to allow for fast_install |
|
19101 # before this can be enabled. |
|
19102 hardcode_into_libs=yes |
|
19103 |
|
19104 # Append ld.so.conf contents to the search path |
|
19105 if test -f /etc/ld.so.conf; then |
|
19106 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
19107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
19108 fi |
|
19109 |
|
19110 # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
19111 # powerpc, because MkLinux only supported shared libraries with the |
|
19112 # GNU dynamic linker. Since this was broken with cross compilers, |
|
19113 # most powerpc-linux boxes support dynamic linking these days and |
|
19114 # people can always --disable-shared, the test was removed, and we |
|
19115 # assume the GNU/Linux dynamic linker is in use. |
|
19116 dynamic_linker='GNU/Linux ld.so' |
|
19117 ;; |
|
19118 |
|
19119 netbsd*) |
|
19120 version_type=sunos |
|
19121 need_lib_prefix=no |
|
19122 need_version=no |
|
19123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
19126 dynamic_linker='NetBSD (a.out) ld.so' |
|
19127 else |
|
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
19129 soname_spec='${libname}${release}${shared_ext}$major' |
|
19130 dynamic_linker='NetBSD ld.elf_so' |
|
19131 fi |
|
19132 shlibpath_var=LD_LIBRARY_PATH |
|
19133 shlibpath_overrides_runpath=yes |
|
19134 hardcode_into_libs=yes |
|
19135 ;; |
|
19136 |
|
19137 newsos6) |
|
19138 version_type=linux |
|
19139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19140 shlibpath_var=LD_LIBRARY_PATH |
|
19141 shlibpath_overrides_runpath=yes |
|
19142 ;; |
|
19143 |
|
19144 nto-qnx*) |
|
19145 version_type=linux |
|
19146 need_lib_prefix=no |
|
19147 need_version=no |
|
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19149 soname_spec='${libname}${release}${shared_ext}$major' |
|
19150 shlibpath_var=LD_LIBRARY_PATH |
|
19151 shlibpath_overrides_runpath=yes |
|
19152 ;; |
|
19153 |
|
19154 openbsd*) |
|
19155 version_type=sunos |
|
19156 sys_lib_dlsearch_path_spec="/usr/lib" |
|
19157 need_lib_prefix=no |
|
19158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
19159 case $host_os in |
|
19160 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
19161 *) need_version=no ;; |
|
19162 esac |
|
19163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
19165 shlibpath_var=LD_LIBRARY_PATH |
|
19166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
19167 case $host_os in |
|
19168 openbsd2.[89] | openbsd2.[89].*) |
|
19169 shlibpath_overrides_runpath=no |
|
19170 ;; |
|
19171 *) |
|
19172 shlibpath_overrides_runpath=yes |
|
19173 ;; |
|
19174 esac |
|
19175 else |
|
19176 shlibpath_overrides_runpath=yes |
|
19177 fi |
|
19178 ;; |
|
19179 |
|
19180 os2*) |
|
19181 libname_spec='$name' |
|
19182 shrext_cmds=".dll" |
|
19183 need_lib_prefix=no |
|
19184 library_names_spec='$libname${shared_ext} $libname.a' |
|
19185 dynamic_linker='OS/2 ld.exe' |
|
19186 shlibpath_var=LIBPATH |
|
19187 ;; |
|
19188 |
|
19189 osf3* | osf4* | osf5*) |
|
19190 version_type=osf |
|
19191 need_lib_prefix=no |
|
19192 need_version=no |
|
19193 soname_spec='${libname}${release}${shared_ext}$major' |
|
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19195 shlibpath_var=LD_LIBRARY_PATH |
|
19196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
19197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
19198 ;; |
|
19199 |
|
19200 rdos*) |
|
19201 dynamic_linker=no |
|
19202 ;; |
|
19203 |
|
19204 solaris*) |
|
19205 version_type=linux |
|
19206 need_lib_prefix=no |
|
19207 need_version=no |
|
19208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19209 soname_spec='${libname}${release}${shared_ext}$major' |
|
19210 shlibpath_var=LD_LIBRARY_PATH |
|
19211 shlibpath_overrides_runpath=yes |
|
19212 hardcode_into_libs=yes |
|
19213 # ldd complains unless libraries are executable |
|
19214 postinstall_cmds='chmod +x $lib' |
|
19215 ;; |
|
19216 |
|
19217 sunos4*) |
|
19218 version_type=sunos |
|
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
19220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
19221 shlibpath_var=LD_LIBRARY_PATH |
|
19222 shlibpath_overrides_runpath=yes |
|
19223 if test "$with_gnu_ld" = yes; then |
|
19224 need_lib_prefix=no |
|
19225 fi |
|
19226 need_version=yes |
|
19227 ;; |
|
19228 |
|
19229 sysv4 | sysv4.3*) |
|
19230 version_type=linux |
|
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19232 soname_spec='${libname}${release}${shared_ext}$major' |
|
19233 shlibpath_var=LD_LIBRARY_PATH |
|
19234 case $host_vendor in |
|
19235 sni) |
|
19236 shlibpath_overrides_runpath=no |
|
19237 need_lib_prefix=no |
|
19238 export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
19239 runpath_var=LD_RUN_PATH |
|
19240 ;; |
|
19241 siemens) |
|
19242 need_lib_prefix=no |
|
19243 ;; |
|
19244 motorola) |
|
19245 need_lib_prefix=no |
|
19246 need_version=no |
|
19247 shlibpath_overrides_runpath=no |
|
19248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
19249 ;; |
|
19250 esac |
|
19251 ;; |
|
19252 |
|
19253 sysv4*MP*) |
|
19254 if test -d /usr/nec ;then |
|
19255 version_type=linux |
|
19256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
19257 soname_spec='$libname${shared_ext}.$major' |
|
19258 shlibpath_var=LD_LIBRARY_PATH |
|
19259 fi |
|
19260 ;; |
|
19261 |
|
19262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
19263 version_type=freebsd-elf |
|
19264 need_lib_prefix=no |
|
19265 need_version=no |
|
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
19267 soname_spec='${libname}${release}${shared_ext}$major' |
|
19268 shlibpath_var=LD_LIBRARY_PATH |
|
19269 hardcode_into_libs=yes |
|
19270 if test "$with_gnu_ld" = yes; then |
|
19271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
19272 shlibpath_overrides_runpath=no |
|
19273 else |
|
19274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
19275 shlibpath_overrides_runpath=yes |
|
19276 case $host_os in |
|
19277 sco3.2v5*) |
|
19278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
19279 ;; |
|
19280 esac |
|
19281 fi |
|
19282 sys_lib_dlsearch_path_spec='/usr/lib' |
|
19283 ;; |
|
19284 |
|
19285 uts4*) |
|
19286 version_type=linux |
|
19287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
19288 soname_spec='${libname}${release}${shared_ext}$major' |
|
19289 shlibpath_var=LD_LIBRARY_PATH |
|
19290 ;; |
|
19291 |
|
19292 *) |
|
19293 dynamic_linker=no |
|
19294 ;; |
|
19295 esac |
|
19296 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
19297 echo "${ECHO_T}$dynamic_linker" >&6; } |
|
19298 test "$dynamic_linker" = no && can_build_shared=no |
|
19299 |
|
19300 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
19301 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19302 else |
|
19303 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
|
19304 fi |
|
19305 |
|
19306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
19307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
19308 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19309 else |
|
19310 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
|
19311 fi |
|
19312 |
|
19313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
19314 |
|
19315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
19316 if test "$GCC" = yes; then |
|
19317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
19318 fi |
|
19319 |
|
19320 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
19321 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
|
19322 hardcode_action_GCJ= |
|
19323 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
19324 test -n "$runpath_var_GCJ" || \ |
|
19325 test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
|
19326 |
|
19327 # We can hardcode non-existant directories. |
|
19328 if test "$hardcode_direct_GCJ" != no && |
|
19329 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
19330 # have to relink, otherwise we might link with an installed library |
|
19331 # when we should be linking with a yet-to-be-installed one |
|
19332 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
19333 test "$hardcode_minus_L_GCJ" != no; then |
|
19334 # Linking always hardcodes the temporary library directory. |
|
19335 hardcode_action_GCJ=relink |
|
19336 else |
|
19337 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
19338 hardcode_action_GCJ=immediate |
|
19339 fi |
|
19340 else |
|
19341 # We cannot hardcode anything, or else we can only hardcode existing |
|
19342 # directories. |
|
19343 hardcode_action_GCJ=unsupported |
|
19344 fi |
|
19345 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
19346 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
|
19347 |
|
19348 if test "$hardcode_action_GCJ" = relink; then |
|
19349 # Fast installation is not supported |
|
19350 enable_fast_install=no |
|
19351 elif test "$shlibpath_overrides_runpath" = yes || |
|
19352 test "$enable_shared" = no; then |
|
19353 # Fast installation is not necessary |
|
19354 enable_fast_install=needless |
|
19355 fi |
|
19356 |
|
19357 |
|
19358 # The else clause should only fire when bootstrapping the |
|
19359 # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
19360 # with your package, and you will get complaints that there are |
|
19361 # no rules to generate ltmain.sh. |
|
19362 if test -f "$ltmain"; then |
|
19363 # See if we are running on zsh, and set the options which allow our commands through |
|
19364 # without removal of \ escapes. |
|
19365 if test -n "${ZSH_VERSION+set}" ; then |
|
19366 setopt NO_GLOB_SUBST |
|
19367 fi |
|
19368 # Now quote all the things that may contain metacharacters while being |
|
19369 # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
19370 # variables and quote the copies for generation of the libtool script. |
|
19371 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
19372 SED SHELL STRIP \ |
|
19373 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
19374 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
19375 deplibs_check_method reload_flag reload_cmds need_locks \ |
|
19376 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
19377 lt_cv_sys_global_symbol_to_c_name_address \ |
|
19378 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
19379 old_postinstall_cmds old_postuninstall_cmds \ |
|
19380 compiler_GCJ \ |
|
19381 CC_GCJ \ |
|
19382 LD_GCJ \ |
|
19383 lt_prog_compiler_wl_GCJ \ |
|
19384 lt_prog_compiler_pic_GCJ \ |
|
19385 lt_prog_compiler_static_GCJ \ |
|
19386 lt_prog_compiler_no_builtin_flag_GCJ \ |
|
19387 export_dynamic_flag_spec_GCJ \ |
|
19388 thread_safe_flag_spec_GCJ \ |
|
19389 whole_archive_flag_spec_GCJ \ |
|
19390 enable_shared_with_static_runtimes_GCJ \ |
|
19391 old_archive_cmds_GCJ \ |
|
19392 old_archive_from_new_cmds_GCJ \ |
|
19393 predep_objects_GCJ \ |
|
19394 postdep_objects_GCJ \ |
|
19395 predeps_GCJ \ |
|
19396 postdeps_GCJ \ |
|
19397 compiler_lib_search_path_GCJ \ |
|
19398 compiler_lib_search_dirs_GCJ \ |
|
19399 archive_cmds_GCJ \ |
|
19400 archive_expsym_cmds_GCJ \ |
|
19401 postinstall_cmds_GCJ \ |
|
19402 postuninstall_cmds_GCJ \ |
|
19403 old_archive_from_expsyms_cmds_GCJ \ |
|
19404 allow_undefined_flag_GCJ \ |
|
19405 no_undefined_flag_GCJ \ |
|
19406 export_symbols_cmds_GCJ \ |
|
19407 hardcode_libdir_flag_spec_GCJ \ |
|
19408 hardcode_libdir_flag_spec_ld_GCJ \ |
|
19409 hardcode_libdir_separator_GCJ \ |
|
19410 hardcode_automatic_GCJ \ |
|
19411 module_cmds_GCJ \ |
|
19412 module_expsym_cmds_GCJ \ |
|
19413 lt_cv_prog_compiler_c_o_GCJ \ |
|
19414 fix_srcfile_path_GCJ \ |
|
19415 exclude_expsyms_GCJ \ |
|
19416 include_expsyms_GCJ; do |
|
19417 |
|
19418 case $var in |
|
19419 old_archive_cmds_GCJ | \ |
|
19420 old_archive_from_new_cmds_GCJ | \ |
|
19421 archive_cmds_GCJ | \ |
|
19422 archive_expsym_cmds_GCJ | \ |
|
19423 module_cmds_GCJ | \ |
|
19424 module_expsym_cmds_GCJ | \ |
|
19425 old_archive_from_expsyms_cmds_GCJ | \ |
|
19426 export_symbols_cmds_GCJ | \ |
|
19427 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
19428 postinstall_cmds | postuninstall_cmds | \ |
|
19429 old_postinstall_cmds | old_postuninstall_cmds | \ |
|
19430 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
19431 # Double-quote double-evaled strings. |
|
19432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
19433 ;; |
|
19434 *) |
|
19435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
19436 ;; |
|
19437 esac |
|
19438 done |
|
19439 |
|
19440 case $lt_echo in |
|
19441 *'\$0 --fallback-echo"') |
|
19442 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
19443 ;; |
|
19444 esac |
|
19445 |
|
19446 cfgfile="$ofile" |
|
19447 |
|
19448 cat <<__EOF__ >> "$cfgfile" |
|
19449 # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
19450 |
|
19451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
19452 |
|
19453 # Shell to use when invoking shell scripts. |
|
19454 SHELL=$lt_SHELL |
|
19455 |
|
19456 # Whether or not to build shared libraries. |
|
19457 build_libtool_libs=$enable_shared |
|
19458 |
|
19459 # Whether or not to build static libraries. |
|
19460 build_old_libs=$enable_static |
|
19461 |
|
19462 # Whether or not to add -lc for building shared libraries. |
|
19463 build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
19464 |
|
19465 # Whether or not to disallow shared libs when runtime libs are static |
|
19466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
19467 |
|
19468 # Whether or not to optimize for fast installation. |
|
19469 fast_install=$enable_fast_install |
|
19470 |
|
19471 # The host system. |
|
19472 host_alias=$host_alias |
|
19473 host=$host |
|
19474 host_os=$host_os |
|
19475 |
|
19476 # The build system. |
|
19477 build_alias=$build_alias |
|
19478 build=$build |
|
19479 build_os=$build_os |
|
19480 |
|
19481 # An echo program that does not interpret backslashes. |
|
19482 echo=$lt_echo |
|
19483 |
|
19484 # The archiver. |
|
19485 AR=$lt_AR |
|
19486 AR_FLAGS=$lt_AR_FLAGS |
|
19487 |
|
19488 # A C compiler. |
|
19489 LTCC=$lt_LTCC |
|
19490 |
|
19491 # LTCC compiler flags. |
|
19492 LTCFLAGS=$lt_LTCFLAGS |
|
19493 |
|
19494 # A language-specific compiler. |
|
19495 CC=$lt_compiler_GCJ |
|
19496 |
|
19497 # Is the compiler the GNU C compiler? |
|
19498 with_gcc=$GCC_GCJ |
|
19499 |
|
19500 # An ERE matcher. |
|
19501 EGREP=$lt_EGREP |
|
19502 |
|
19503 # The linker used to build libraries. |
|
19504 LD=$lt_LD_GCJ |
|
19505 |
|
19506 # Whether we need hard or soft links. |
|
19507 LN_S=$lt_LN_S |
|
19508 |
|
19509 # A BSD-compatible nm program. |
|
19510 NM=$lt_NM |
|
19511 |
|
19512 # A symbol stripping program |
|
19513 STRIP=$lt_STRIP |
|
19514 |
|
19515 # Used to examine libraries when file_magic_cmd begins "file" |
|
19516 MAGIC_CMD=$MAGIC_CMD |
|
19517 |
|
19518 # Used on cygwin: DLL creation program. |
|
19519 DLLTOOL="$DLLTOOL" |
|
19520 |
|
19521 # Used on cygwin: object dumper. |
|
19522 OBJDUMP="$OBJDUMP" |
|
19523 |
|
19524 # Used on cygwin: assembler. |
|
19525 AS="$AS" |
|
19526 |
|
19527 # The name of the directory that contains temporary libtool files. |
|
19528 objdir=$objdir |
|
19529 |
|
19530 # How to create reloadable object files. |
|
19531 reload_flag=$lt_reload_flag |
|
19532 reload_cmds=$lt_reload_cmds |
|
19533 |
|
19534 # How to pass a linker flag through the compiler. |
|
19535 wl=$lt_lt_prog_compiler_wl_GCJ |
|
19536 |
|
19537 # Object file suffix (normally "o"). |
|
19538 objext="$ac_objext" |
|
19539 |
|
19540 # Old archive suffix (normally "a"). |
|
19541 libext="$libext" |
|
19542 |
|
19543 # Shared library suffix (normally ".so"). |
|
19544 shrext_cmds='$shrext_cmds' |
|
19545 |
|
19546 # Executable file suffix (normally ""). |
|
19547 exeext="$exeext" |
|
19548 |
|
19549 # Additional compiler flags for building library objects. |
|
19550 pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
19551 pic_mode=$pic_mode |
|
19552 |
|
19553 # What is the maximum length of a command? |
|
19554 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
19555 |
|
19556 # Does compiler simultaneously support -c and -o options? |
|
19557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
19558 |
|
19559 # Must we lock files when doing compilation? |
|
19560 need_locks=$lt_need_locks |
|
19561 |
|
19562 # Do we need the lib prefix for modules? |
|
19563 need_lib_prefix=$need_lib_prefix |
|
19564 |
|
19565 # Do we need a version for libraries? |
|
19566 need_version=$need_version |
|
19567 |
|
19568 # Whether dlopen is supported. |
|
19569 dlopen_support=$enable_dlopen |
|
19570 |
|
19571 # Whether dlopen of programs is supported. |
|
19572 dlopen_self=$enable_dlopen_self |
|
19573 |
|
19574 # Whether dlopen of statically linked programs is supported. |
|
19575 dlopen_self_static=$enable_dlopen_self_static |
|
19576 |
|
19577 # Compiler flag to prevent dynamic linking. |
|
19578 link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
19579 |
|
19580 # Compiler flag to turn off builtin functions. |
|
19581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
19582 |
|
19583 # Compiler flag to allow reflexive dlopens. |
|
19584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
19585 |
|
19586 # Compiler flag to generate shared objects directly from archives. |
|
19587 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
19588 |
|
19589 # Compiler flag to generate thread-safe objects. |
|
19590 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
19591 |
|
19592 # Library versioning type. |
|
19593 version_type=$version_type |
|
19594 |
|
19595 # Format of library name prefix. |
|
19596 libname_spec=$lt_libname_spec |
|
19597 |
|
19598 # List of archive names. First name is the real one, the rest are links. |
|
19599 # The last name is the one that the linker finds with -lNAME. |
|
19600 library_names_spec=$lt_library_names_spec |
|
19601 |
|
19602 # The coded name of the library, if different from the real name. |
|
19603 soname_spec=$lt_soname_spec |
|
19604 |
|
19605 # Commands used to build and install an old-style archive. |
|
19606 RANLIB=$lt_RANLIB |
|
19607 old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
19608 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
19609 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
19610 |
|
19611 # Create an old-style archive from a shared archive. |
|
19612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
19613 |
|
19614 # Create a temporary old-style archive to link instead of a shared archive. |
|
19615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
19616 |
|
19617 # Commands used to build and install a shared archive. |
|
19618 archive_cmds=$lt_archive_cmds_GCJ |
|
19619 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
19620 postinstall_cmds=$lt_postinstall_cmds |
|
19621 postuninstall_cmds=$lt_postuninstall_cmds |
|
19622 |
|
19623 # Commands used to build a loadable module (assumed same as above if empty) |
|
19624 module_cmds=$lt_module_cmds_GCJ |
|
19625 module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
19626 |
|
19627 # Commands to strip libraries. |
|
19628 old_striplib=$lt_old_striplib |
|
19629 striplib=$lt_striplib |
|
19630 |
|
19631 # Dependencies to place before the objects being linked to create a |
|
19632 # shared library. |
|
19633 predep_objects=$lt_predep_objects_GCJ |
|
19634 |
|
19635 # Dependencies to place after the objects being linked to create a |
|
19636 # shared library. |
|
19637 postdep_objects=$lt_postdep_objects_GCJ |
|
19638 |
|
19639 # Dependencies to place before the objects being linked to create a |
|
19640 # shared library. |
|
19641 predeps=$lt_predeps_GCJ |
|
19642 |
|
19643 # Dependencies to place after the objects being linked to create a |
|
19644 # shared library. |
|
19645 postdeps=$lt_postdeps_GCJ |
|
19646 |
|
19647 # The directories searched by this compiler when creating a shared |
|
19648 # library |
|
19649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ |
|
19650 |
|
19651 # The library search path used internally by the compiler when linking |
|
19652 # a shared library. |
|
19653 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
19654 |
|
19655 # Method to check whether dependent libraries are shared objects. |
|
19656 deplibs_check_method=$lt_deplibs_check_method |
|
19657 |
|
19658 # Command to use when deplibs_check_method == file_magic. |
|
19659 file_magic_cmd=$lt_file_magic_cmd |
|
19660 |
|
19661 # Flag that allows shared libraries with undefined symbols to be built. |
|
19662 allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
19663 |
|
19664 # Flag that forces no undefined symbols. |
|
19665 no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
19666 |
|
19667 # Commands used to finish a libtool library installation in a directory. |
|
19668 finish_cmds=$lt_finish_cmds |
|
19669 |
|
19670 # Same as above, but a single script fragment to be evaled but not shown. |
|
19671 finish_eval=$lt_finish_eval |
|
19672 |
|
19673 # Take the output of nm and produce a listing of raw symbols and C names. |
|
19674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
19675 |
|
19676 # Transform the output of nm in a proper C declaration |
|
19677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
19678 |
|
19679 # Transform the output of nm in a C name address pair |
|
19680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
19681 |
|
19682 # This is the shared library runtime path variable. |
|
19683 runpath_var=$runpath_var |
|
19684 |
|
19685 # This is the shared library path variable. |
|
19686 shlibpath_var=$shlibpath_var |
|
19687 |
|
19688 # Is shlibpath searched before the hard-coded library search path? |
|
19689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
19690 |
|
19691 # How to hardcode a shared library path into an executable. |
|
19692 hardcode_action=$hardcode_action_GCJ |
|
19693 |
|
19694 # Whether we should hardcode library paths into libraries. |
|
19695 hardcode_into_libs=$hardcode_into_libs |
|
19696 |
|
19697 # Flag to hardcode \$libdir into a binary during linking. |
|
19698 # This must work even if \$libdir does not exist. |
|
19699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
19700 |
|
19701 # If ld is used when linking, flag to hardcode \$libdir into |
|
19702 # a binary during linking. This must work even if \$libdir does |
|
19703 # not exist. |
|
19704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
19705 |
|
19706 # Whether we need a single -rpath flag with a separated argument. |
|
19707 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
19708 |
|
19709 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
19710 # resulting binary. |
|
19711 hardcode_direct=$hardcode_direct_GCJ |
|
19712 |
|
19713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
19714 # resulting binary. |
|
19715 hardcode_minus_L=$hardcode_minus_L_GCJ |
|
19716 |
|
19717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
19718 # the resulting binary. |
|
19719 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
19720 |
|
19721 # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
19722 # and all subsequent libraries and executables linked against it. |
|
19723 hardcode_automatic=$hardcode_automatic_GCJ |
|
19724 |
|
19725 # Variables whose values should be saved in libtool wrapper scripts and |
|
19726 # restored at relink time. |
|
19727 variables_saved_for_relink="$variables_saved_for_relink" |
|
19728 |
|
19729 # Whether libtool must link a program against all its dependency libraries. |
|
19730 link_all_deplibs=$link_all_deplibs_GCJ |
|
19731 |
|
19732 # Compile-time system search path for libraries |
|
19733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
19734 |
|
19735 # Run-time system search path for libraries |
|
19736 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
19737 |
|
19738 # Fix the shell variable \$srcfile for the compiler. |
|
19739 fix_srcfile_path=$lt_fix_srcfile_path |
|
19740 |
|
19741 # Set to yes if exported symbols are required. |
|
19742 always_export_symbols=$always_export_symbols_GCJ |
|
19743 |
|
19744 # The commands to list exported symbols. |
|
19745 export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
19746 |
|
19747 # The commands to extract the exported symbol list from a shared archive. |
|
19748 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
19749 |
|
19750 # Symbols that should not be listed in the preloaded symbols. |
|
19751 exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
19752 |
|
19753 # Symbols that must always be exported. |
|
19754 include_expsyms=$lt_include_expsyms_GCJ |
|
19755 |
|
19756 # ### END LIBTOOL TAG CONFIG: $tagname |
|
19757 |
|
19758 __EOF__ |
|
19759 |
|
19760 |
|
19761 else |
|
19762 # If there is no Makefile yet, we rely on a make rule to execute |
|
19763 # `config.status --recheck' to rerun these tests and create the |
|
19764 # libtool script then. |
|
19765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
19766 if test -f "$ltmain_in"; then |
|
19767 test -f Makefile && make "$ltmain" |
|
19768 fi |
|
19769 fi |
|
19770 |
|
19771 |
|
19772 ac_ext=c |
|
19773 ac_cpp='$CPP $CPPFLAGS' |
|
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
19777 |
|
19778 CC="$lt_save_CC" |
|
19779 |
|
19780 else |
|
19781 tagname="" |
|
19782 fi |
|
19783 ;; |
|
19784 |
|
19785 RC) |
|
19786 |
|
19787 |
|
19788 # Source file extension for RC test sources. |
|
19789 ac_ext=rc |
|
19790 |
|
19791 # Object file extension for compiled RC test sources. |
|
19792 objext=o |
|
19793 objext_RC=$objext |
|
19794 |
|
19795 # Code to be used in simple compile tests |
|
19796 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
|
19797 |
|
19798 # Code to be used in simple link tests |
|
19799 lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
19800 |
|
19801 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
19802 |
|
19803 # If no C compiler was specified, use CC. |
|
19804 LTCC=${LTCC-"$CC"} |
|
19805 |
|
19806 # If no C compiler flags were specified, use CFLAGS. |
|
19807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
19808 |
|
19809 # Allow CC to be a program name with arguments. |
|
19810 compiler=$CC |
|
19811 |
|
19812 |
|
19813 # save warnings/boilerplate of simple test code |
|
19814 ac_outfile=conftest.$ac_objext |
|
19815 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
19816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
19817 _lt_compiler_boilerplate=`cat conftest.err` |
|
19818 $rm conftest* |
|
19819 |
|
19820 ac_outfile=conftest.$ac_objext |
|
19821 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
19822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
19823 _lt_linker_boilerplate=`cat conftest.err` |
|
19824 $rm -r conftest* |
|
19825 |
|
19826 |
|
19827 # Allow CC to be a program name with arguments. |
|
19828 lt_save_CC="$CC" |
|
19829 CC=${RC-"windres"} |
|
19830 compiler=$CC |
|
19831 compiler_RC=$CC |
|
19832 for cc_temp in $compiler""; do |
|
19833 case $cc_temp in |
|
19834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
19835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
19836 \-*) ;; |
|
19837 *) break;; |
|
19838 esac |
|
19839 done |
|
19840 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
19841 |
|
19842 lt_cv_prog_compiler_c_o_RC=yes |
|
19843 |
|
19844 # The else clause should only fire when bootstrapping the |
|
19845 # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
19846 # with your package, and you will get complaints that there are |
|
19847 # no rules to generate ltmain.sh. |
|
19848 if test -f "$ltmain"; then |
|
19849 # See if we are running on zsh, and set the options which allow our commands through |
|
19850 # without removal of \ escapes. |
|
19851 if test -n "${ZSH_VERSION+set}" ; then |
|
19852 setopt NO_GLOB_SUBST |
|
19853 fi |
|
19854 # Now quote all the things that may contain metacharacters while being |
|
19855 # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
19856 # variables and quote the copies for generation of the libtool script. |
|
19857 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
19858 SED SHELL STRIP \ |
|
19859 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
19860 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
19861 deplibs_check_method reload_flag reload_cmds need_locks \ |
|
19862 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
19863 lt_cv_sys_global_symbol_to_c_name_address \ |
|
19864 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
19865 old_postinstall_cmds old_postuninstall_cmds \ |
|
19866 compiler_RC \ |
|
19867 CC_RC \ |
|
19868 LD_RC \ |
|
19869 lt_prog_compiler_wl_RC \ |
|
19870 lt_prog_compiler_pic_RC \ |
|
19871 lt_prog_compiler_static_RC \ |
|
19872 lt_prog_compiler_no_builtin_flag_RC \ |
|
19873 export_dynamic_flag_spec_RC \ |
|
19874 thread_safe_flag_spec_RC \ |
|
19875 whole_archive_flag_spec_RC \ |
|
19876 enable_shared_with_static_runtimes_RC \ |
|
19877 old_archive_cmds_RC \ |
|
19878 old_archive_from_new_cmds_RC \ |
|
19879 predep_objects_RC \ |
|
19880 postdep_objects_RC \ |
|
19881 predeps_RC \ |
|
19882 postdeps_RC \ |
|
19883 compiler_lib_search_path_RC \ |
|
19884 compiler_lib_search_dirs_RC \ |
|
19885 archive_cmds_RC \ |
|
19886 archive_expsym_cmds_RC \ |
|
19887 postinstall_cmds_RC \ |
|
19888 postuninstall_cmds_RC \ |
|
19889 old_archive_from_expsyms_cmds_RC \ |
|
19890 allow_undefined_flag_RC \ |
|
19891 no_undefined_flag_RC \ |
|
19892 export_symbols_cmds_RC \ |
|
19893 hardcode_libdir_flag_spec_RC \ |
|
19894 hardcode_libdir_flag_spec_ld_RC \ |
|
19895 hardcode_libdir_separator_RC \ |
|
19896 hardcode_automatic_RC \ |
|
19897 module_cmds_RC \ |
|
19898 module_expsym_cmds_RC \ |
|
19899 lt_cv_prog_compiler_c_o_RC \ |
|
19900 fix_srcfile_path_RC \ |
|
19901 exclude_expsyms_RC \ |
|
19902 include_expsyms_RC; do |
|
19903 |
|
19904 case $var in |
|
19905 old_archive_cmds_RC | \ |
|
19906 old_archive_from_new_cmds_RC | \ |
|
19907 archive_cmds_RC | \ |
|
19908 archive_expsym_cmds_RC | \ |
|
19909 module_cmds_RC | \ |
|
19910 module_expsym_cmds_RC | \ |
|
19911 old_archive_from_expsyms_cmds_RC | \ |
|
19912 export_symbols_cmds_RC | \ |
|
19913 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
19914 postinstall_cmds | postuninstall_cmds | \ |
|
19915 old_postinstall_cmds | old_postuninstall_cmds | \ |
|
19916 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
19917 # Double-quote double-evaled strings. |
|
19918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
19919 ;; |
|
19920 *) |
|
19921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
19922 ;; |
|
19923 esac |
|
19924 done |
|
19925 |
|
19926 case $lt_echo in |
|
19927 *'\$0 --fallback-echo"') |
|
19928 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
19929 ;; |
|
19930 esac |
|
19931 |
|
19932 cfgfile="$ofile" |
|
19933 |
|
19934 cat <<__EOF__ >> "$cfgfile" |
|
19935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
19936 |
|
19937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
19938 |
|
19939 # Shell to use when invoking shell scripts. |
|
19940 SHELL=$lt_SHELL |
|
19941 |
|
19942 # Whether or not to build shared libraries. |
|
19943 build_libtool_libs=$enable_shared |
|
19944 |
|
19945 # Whether or not to build static libraries. |
|
19946 build_old_libs=$enable_static |
|
19947 |
|
19948 # Whether or not to add -lc for building shared libraries. |
|
19949 build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
19950 |
|
19951 # Whether or not to disallow shared libs when runtime libs are static |
|
19952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
19953 |
|
19954 # Whether or not to optimize for fast installation. |
|
19955 fast_install=$enable_fast_install |
|
19956 |
|
19957 # The host system. |
|
19958 host_alias=$host_alias |
|
19959 host=$host |
|
19960 host_os=$host_os |
|
19961 |
|
19962 # The build system. |
|
19963 build_alias=$build_alias |
|
19964 build=$build |
|
19965 build_os=$build_os |
|
19966 |
|
19967 # An echo program that does not interpret backslashes. |
|
19968 echo=$lt_echo |
|
19969 |
|
19970 # The archiver. |
|
19971 AR=$lt_AR |
|
19972 AR_FLAGS=$lt_AR_FLAGS |
|
19973 |
|
19974 # A C compiler. |
|
19975 LTCC=$lt_LTCC |
|
19976 |
|
19977 # LTCC compiler flags. |
|
19978 LTCFLAGS=$lt_LTCFLAGS |
|
19979 |
|
19980 # A language-specific compiler. |
|
19981 CC=$lt_compiler_RC |
|
19982 |
|
19983 # Is the compiler the GNU C compiler? |
|
19984 with_gcc=$GCC_RC |
|
19985 |
|
19986 # An ERE matcher. |
|
19987 EGREP=$lt_EGREP |
|
19988 |
|
19989 # The linker used to build libraries. |
|
19990 LD=$lt_LD_RC |
|
19991 |
|
19992 # Whether we need hard or soft links. |
|
19993 LN_S=$lt_LN_S |
|
19994 |
|
19995 # A BSD-compatible nm program. |
|
19996 NM=$lt_NM |
|
19997 |
|
19998 # A symbol stripping program |
|
19999 STRIP=$lt_STRIP |
|
20000 |
|
20001 # Used to examine libraries when file_magic_cmd begins "file" |
|
20002 MAGIC_CMD=$MAGIC_CMD |
|
20003 |
|
20004 # Used on cygwin: DLL creation program. |
|
20005 DLLTOOL="$DLLTOOL" |
|
20006 |
|
20007 # Used on cygwin: object dumper. |
|
20008 OBJDUMP="$OBJDUMP" |
|
20009 |
|
20010 # Used on cygwin: assembler. |
|
20011 AS="$AS" |
|
20012 |
|
20013 # The name of the directory that contains temporary libtool files. |
|
20014 objdir=$objdir |
|
20015 |
|
20016 # How to create reloadable object files. |
|
20017 reload_flag=$lt_reload_flag |
|
20018 reload_cmds=$lt_reload_cmds |
|
20019 |
|
20020 # How to pass a linker flag through the compiler. |
|
20021 wl=$lt_lt_prog_compiler_wl_RC |
|
20022 |
|
20023 # Object file suffix (normally "o"). |
|
20024 objext="$ac_objext" |
|
20025 |
|
20026 # Old archive suffix (normally "a"). |
|
20027 libext="$libext" |
|
20028 |
|
20029 # Shared library suffix (normally ".so"). |
|
20030 shrext_cmds='$shrext_cmds' |
|
20031 |
|
20032 # Executable file suffix (normally ""). |
|
20033 exeext="$exeext" |
|
20034 |
|
20035 # Additional compiler flags for building library objects. |
|
20036 pic_flag=$lt_lt_prog_compiler_pic_RC |
|
20037 pic_mode=$pic_mode |
|
20038 |
|
20039 # What is the maximum length of a command? |
|
20040 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
20041 |
|
20042 # Does compiler simultaneously support -c and -o options? |
|
20043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
20044 |
|
20045 # Must we lock files when doing compilation? |
|
20046 need_locks=$lt_need_locks |
|
20047 |
|
20048 # Do we need the lib prefix for modules? |
|
20049 need_lib_prefix=$need_lib_prefix |
|
20050 |
|
20051 # Do we need a version for libraries? |
|
20052 need_version=$need_version |
|
20053 |
|
20054 # Whether dlopen is supported. |
|
20055 dlopen_support=$enable_dlopen |
|
20056 |
|
20057 # Whether dlopen of programs is supported. |
|
20058 dlopen_self=$enable_dlopen_self |
|
20059 |
|
20060 # Whether dlopen of statically linked programs is supported. |
|
20061 dlopen_self_static=$enable_dlopen_self_static |
|
20062 |
|
20063 # Compiler flag to prevent dynamic linking. |
|
20064 link_static_flag=$lt_lt_prog_compiler_static_RC |
|
20065 |
|
20066 # Compiler flag to turn off builtin functions. |
|
20067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
20068 |
|
20069 # Compiler flag to allow reflexive dlopens. |
|
20070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
20071 |
|
20072 # Compiler flag to generate shared objects directly from archives. |
|
20073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
20074 |
|
20075 # Compiler flag to generate thread-safe objects. |
|
20076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
20077 |
|
20078 # Library versioning type. |
|
20079 version_type=$version_type |
|
20080 |
|
20081 # Format of library name prefix. |
|
20082 libname_spec=$lt_libname_spec |
|
20083 |
|
20084 # List of archive names. First name is the real one, the rest are links. |
|
20085 # The last name is the one that the linker finds with -lNAME. |
|
20086 library_names_spec=$lt_library_names_spec |
|
20087 |
|
20088 # The coded name of the library, if different from the real name. |
|
20089 soname_spec=$lt_soname_spec |
|
20090 |
|
20091 # Commands used to build and install an old-style archive. |
|
20092 RANLIB=$lt_RANLIB |
|
20093 old_archive_cmds=$lt_old_archive_cmds_RC |
|
20094 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
20095 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
20096 |
|
20097 # Create an old-style archive from a shared archive. |
|
20098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
20099 |
|
20100 # Create a temporary old-style archive to link instead of a shared archive. |
|
20101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
20102 |
|
20103 # Commands used to build and install a shared archive. |
|
20104 archive_cmds=$lt_archive_cmds_RC |
|
20105 archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
20106 postinstall_cmds=$lt_postinstall_cmds |
|
20107 postuninstall_cmds=$lt_postuninstall_cmds |
|
20108 |
|
20109 # Commands used to build a loadable module (assumed same as above if empty) |
|
20110 module_cmds=$lt_module_cmds_RC |
|
20111 module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
20112 |
|
20113 # Commands to strip libraries. |
|
20114 old_striplib=$lt_old_striplib |
|
20115 striplib=$lt_striplib |
|
20116 |
|
20117 # Dependencies to place before the objects being linked to create a |
|
20118 # shared library. |
|
20119 predep_objects=$lt_predep_objects_RC |
|
20120 |
|
20121 # Dependencies to place after the objects being linked to create a |
|
20122 # shared library. |
|
20123 postdep_objects=$lt_postdep_objects_RC |
|
20124 |
|
20125 # Dependencies to place before the objects being linked to create a |
|
20126 # shared library. |
|
20127 predeps=$lt_predeps_RC |
|
20128 |
|
20129 # Dependencies to place after the objects being linked to create a |
|
20130 # shared library. |
|
20131 postdeps=$lt_postdeps_RC |
|
20132 |
|
20133 # The directories searched by this compiler when creating a shared |
|
20134 # library |
|
20135 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC |
|
20136 |
|
20137 # The library search path used internally by the compiler when linking |
|
20138 # a shared library. |
|
20139 compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
20140 |
|
20141 # Method to check whether dependent libraries are shared objects. |
|
20142 deplibs_check_method=$lt_deplibs_check_method |
|
20143 |
|
20144 # Command to use when deplibs_check_method == file_magic. |
|
20145 file_magic_cmd=$lt_file_magic_cmd |
|
20146 |
|
20147 # Flag that allows shared libraries with undefined symbols to be built. |
|
20148 allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
20149 |
|
20150 # Flag that forces no undefined symbols. |
|
20151 no_undefined_flag=$lt_no_undefined_flag_RC |
|
20152 |
|
20153 # Commands used to finish a libtool library installation in a directory. |
|
20154 finish_cmds=$lt_finish_cmds |
|
20155 |
|
20156 # Same as above, but a single script fragment to be evaled but not shown. |
|
20157 finish_eval=$lt_finish_eval |
|
20158 |
|
20159 # Take the output of nm and produce a listing of raw symbols and C names. |
|
20160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
20161 |
|
20162 # Transform the output of nm in a proper C declaration |
|
20163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
20164 |
|
20165 # Transform the output of nm in a C name address pair |
|
20166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
20167 |
|
20168 # This is the shared library runtime path variable. |
|
20169 runpath_var=$runpath_var |
|
20170 |
|
20171 # This is the shared library path variable. |
|
20172 shlibpath_var=$shlibpath_var |
|
20173 |
|
20174 # Is shlibpath searched before the hard-coded library search path? |
|
20175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
20176 |
|
20177 # How to hardcode a shared library path into an executable. |
|
20178 hardcode_action=$hardcode_action_RC |
|
20179 |
|
20180 # Whether we should hardcode library paths into libraries. |
|
20181 hardcode_into_libs=$hardcode_into_libs |
|
20182 |
|
20183 # Flag to hardcode \$libdir into a binary during linking. |
|
20184 # This must work even if \$libdir does not exist. |
|
20185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
20186 |
|
20187 # If ld is used when linking, flag to hardcode \$libdir into |
|
20188 # a binary during linking. This must work even if \$libdir does |
|
20189 # not exist. |
|
20190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
20191 |
|
20192 # Whether we need a single -rpath flag with a separated argument. |
|
20193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
20194 |
|
20195 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
20196 # resulting binary. |
|
20197 hardcode_direct=$hardcode_direct_RC |
|
20198 |
|
20199 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
20200 # resulting binary. |
|
20201 hardcode_minus_L=$hardcode_minus_L_RC |
|
20202 |
|
20203 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
20204 # the resulting binary. |
|
20205 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
20206 |
|
20207 # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
20208 # and all subsequent libraries and executables linked against it. |
|
20209 hardcode_automatic=$hardcode_automatic_RC |
|
20210 |
|
20211 # Variables whose values should be saved in libtool wrapper scripts and |
|
20212 # restored at relink time. |
|
20213 variables_saved_for_relink="$variables_saved_for_relink" |
|
20214 |
|
20215 # Whether libtool must link a program against all its dependency libraries. |
|
20216 link_all_deplibs=$link_all_deplibs_RC |
|
20217 |
|
20218 # Compile-time system search path for libraries |
|
20219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
20220 |
|
20221 # Run-time system search path for libraries |
|
20222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
20223 |
|
20224 # Fix the shell variable \$srcfile for the compiler. |
|
20225 fix_srcfile_path=$lt_fix_srcfile_path |
|
20226 |
|
20227 # Set to yes if exported symbols are required. |
|
20228 always_export_symbols=$always_export_symbols_RC |
|
20229 |
|
20230 # The commands to list exported symbols. |
|
20231 export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
20232 |
|
20233 # The commands to extract the exported symbol list from a shared archive. |
|
20234 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
20235 |
|
20236 # Symbols that should not be listed in the preloaded symbols. |
|
20237 exclude_expsyms=$lt_exclude_expsyms_RC |
|
20238 |
|
20239 # Symbols that must always be exported. |
|
20240 include_expsyms=$lt_include_expsyms_RC |
|
20241 |
|
20242 # ### END LIBTOOL TAG CONFIG: $tagname |
|
20243 |
|
20244 __EOF__ |
|
20245 |
|
20246 |
|
20247 else |
|
20248 # If there is no Makefile yet, we rely on a make rule to execute |
|
20249 # `config.status --recheck' to rerun these tests and create the |
|
20250 # libtool script then. |
|
20251 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
20252 if test -f "$ltmain_in"; then |
|
20253 test -f Makefile && make "$ltmain" |
|
20254 fi |
|
20255 fi |
|
20256 |
|
20257 |
|
20258 ac_ext=c |
|
20259 ac_cpp='$CPP $CPPFLAGS' |
|
20260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
20261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
20262 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
20263 |
|
20264 CC="$lt_save_CC" |
|
20265 |
|
20266 ;; |
|
20267 |
|
20268 *) |
|
20269 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
20270 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
20271 { (exit 1); exit 1; }; } |
|
20272 ;; |
|
20273 esac |
|
20274 |
|
20275 # Append the new tag name to the list of available tags. |
|
20276 if test -n "$tagname" ; then |
|
20277 available_tags="$available_tags $tagname" |
|
20278 fi |
|
20279 fi |
|
20280 done |
|
20281 IFS="$lt_save_ifs" |
|
20282 |
|
20283 # Now substitute the updated list of available tags. |
|
20284 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
20285 mv "${ofile}T" "$ofile" |
|
20286 chmod +x "$ofile" |
|
20287 else |
|
20288 rm -f "${ofile}T" |
|
20289 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
20290 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
20291 { (exit 1); exit 1; }; } |
|
20292 fi |
|
20293 fi |
|
20294 |
|
20295 |
|
20296 |
|
20297 # This can be used to rebuild libtool when needed |
|
20298 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
20299 |
|
20300 # Always use our own libtool. |
|
20301 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
20302 |
|
20303 # Prevent multiple expansion |
|
20304 |
|
20305 |
|
20306 |
|
20307 |
|
20308 |
|
20309 |
|
20310 |
|
20311 |
|
20312 |
|
20313 |
|
20314 |
|
20315 |
|
20316 |
|
20317 |
|
20318 |
|
20319 |
|
20320 |
|
20321 |
|
20322 |
|
20323 |
|
20324 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
20325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
|
20326 LN_S=$as_ln_s |
|
20327 if test "$LN_S" = "ln -s"; then |
|
20328 { echo "$as_me:$LINENO: result: yes" >&5 |
|
20329 echo "${ECHO_T}yes" >&6; } |
|
20330 else |
|
20331 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
20332 echo "${ECHO_T}no, using $LN_S" >&6; } |
|
20333 fi |
|
20334 |
|
20335 |
|
20336 PCRE_MAJOR="7" |
|
20337 PCRE_MINOR="8" |
|
20338 PCRE_PRERELEASE="" |
|
20339 PCRE_DATE="2008-09-05" |
|
20340 |
|
20341 |
|
20342 |
|
20343 |
|
20344 |
|
20345 |
|
20346 # Set a more sensible default value for $(htmldir). |
|
20347 if test "x$htmldir" = 'x${docdir}' |
|
20348 then |
|
20349 htmldir='${docdir}/html' |
|
20350 fi |
|
20351 |
|
20352 # Handle --disable-cpp |
|
20353 # Check whether --enable-cpp was given. |
|
20354 if test "${enable_cpp+set}" = set; then |
|
20355 enableval=$enable_cpp; |
|
20356 else |
|
20357 enable_cpp=yes |
|
20358 fi |
|
20359 |
|
20360 |
|
20361 # Handle --enable-rebuild-chartables |
|
20362 # Check whether --enable-rebuild-chartables was given. |
|
20363 if test "${enable_rebuild_chartables+set}" = set; then |
|
20364 enableval=$enable_rebuild_chartables; |
|
20365 else |
|
20366 enable_rebuild_chartables=no |
|
20367 fi |
|
20368 |
|
20369 |
|
20370 # Handle --enable-utf8 (disabled by default) |
|
20371 # Check whether --enable-utf8 was given. |
|
20372 if test "${enable_utf8+set}" = set; then |
|
20373 enableval=$enable_utf8; |
|
20374 else |
|
20375 enable_utf8=unset |
|
20376 fi |
|
20377 |
|
20378 |
|
20379 # Handle --enable-unicode-properties |
|
20380 # Check whether --enable-unicode-properties was given. |
|
20381 if test "${enable_unicode_properties+set}" = set; then |
|
20382 enableval=$enable_unicode_properties; |
|
20383 else |
|
20384 enable_unicode_properties=no |
|
20385 fi |
|
20386 |
|
20387 |
|
20388 # Handle --enable-newline=NL |
|
20389 |
|
20390 # Separate newline options |
|
20391 ac_pcre_newline=lf |
|
20392 # Check whether --enable-newline-is-cr was given. |
|
20393 if test "${enable_newline_is_cr+set}" = set; then |
|
20394 enableval=$enable_newline_is_cr; ac_pcre_newline=cr |
|
20395 fi |
|
20396 |
|
20397 # Check whether --enable-newline-is-lf was given. |
|
20398 if test "${enable_newline_is_lf+set}" = set; then |
|
20399 enableval=$enable_newline_is_lf; ac_pcre_newline=lf |
|
20400 fi |
|
20401 |
|
20402 # Check whether --enable-newline-is-crlf was given. |
|
20403 if test "${enable_newline_is_crlf+set}" = set; then |
|
20404 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf |
|
20405 fi |
|
20406 |
|
20407 # Check whether --enable-newline-is-anycrlf was given. |
|
20408 if test "${enable_newline_is_anycrlf+set}" = set; then |
|
20409 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf |
|
20410 fi |
|
20411 |
|
20412 # Check whether --enable-newline-is-any was given. |
|
20413 if test "${enable_newline_is_any+set}" = set; then |
|
20414 enableval=$enable_newline_is_any; ac_pcre_newline=any |
|
20415 fi |
|
20416 |
|
20417 enable_newline="$ac_pcre_newline" |
|
20418 |
|
20419 # Handle --enable-bsr-anycrlf |
|
20420 # Check whether --enable-bsr-anycrlf was given. |
|
20421 if test "${enable_bsr_anycrlf+set}" = set; then |
|
20422 enableval=$enable_bsr_anycrlf; |
|
20423 else |
|
20424 enable_bsr_anycrlf=no |
|
20425 fi |
|
20426 |
|
20427 |
|
20428 # Handle --enable-ebcdic |
|
20429 # Check whether --enable-ebcdic was given. |
|
20430 if test "${enable_ebcdic+set}" = set; then |
|
20431 enableval=$enable_ebcdic; |
|
20432 else |
|
20433 enable_ebcdic=no |
|
20434 fi |
|
20435 |
|
20436 |
|
20437 # Handle --disable-stack-for-recursion |
|
20438 # Check whether --enable-stack-for-recursion was given. |
|
20439 if test "${enable_stack_for_recursion+set}" = set; then |
|
20440 enableval=$enable_stack_for_recursion; |
|
20441 else |
|
20442 enable_stack_for_recursion=yes |
|
20443 fi |
|
20444 |
|
20445 |
|
20446 # Handle --enable-pcregrep-libz |
|
20447 # Check whether --enable-pcregrep-libz was given. |
|
20448 if test "${enable_pcregrep_libz+set}" = set; then |
|
20449 enableval=$enable_pcregrep_libz; |
|
20450 else |
|
20451 enable_pcregrep_libz=no |
|
20452 fi |
|
20453 |
|
20454 |
|
20455 # Handle --enable-pcregrep-libbz2 |
|
20456 # Check whether --enable-pcregrep-libbz2 was given. |
|
20457 if test "${enable_pcregrep_libbz2+set}" = set; then |
|
20458 enableval=$enable_pcregrep_libbz2; |
|
20459 else |
|
20460 enable_pcregrep_libbz2=no |
|
20461 fi |
|
20462 |
|
20463 |
|
20464 # Handle --enable-pcretest-libreadline |
|
20465 # Check whether --enable-pcretest-libreadline was given. |
|
20466 if test "${enable_pcretest_libreadline+set}" = set; then |
|
20467 enableval=$enable_pcretest_libreadline; |
|
20468 else |
|
20469 enable_pcretest_libreadline=no |
|
20470 fi |
|
20471 |
|
20472 |
|
20473 # Handle --with-posix-malloc-threshold=NBYTES |
|
20474 |
|
20475 # Check whether --with-posix-malloc-threshold was given. |
|
20476 if test "${with_posix_malloc_threshold+set}" = set; then |
|
20477 withval=$with_posix_malloc_threshold; |
|
20478 else |
|
20479 with_posix_malloc_threshold=10 |
|
20480 fi |
|
20481 |
|
20482 |
|
20483 # Handle --with-link-size=N |
|
20484 |
|
20485 # Check whether --with-link-size was given. |
|
20486 if test "${with_link_size+set}" = set; then |
|
20487 withval=$with_link_size; |
|
20488 else |
|
20489 with_link_size=2 |
|
20490 fi |
|
20491 |
|
20492 |
|
20493 # Handle --with-match-limit=N |
|
20494 |
|
20495 # Check whether --with-match-limit was given. |
|
20496 if test "${with_match_limit+set}" = set; then |
|
20497 withval=$with_match_limit; |
|
20498 else |
|
20499 with_match_limit=10000000 |
|
20500 fi |
|
20501 |
|
20502 |
|
20503 # Handle --with-match-limit_recursion=N |
|
20504 # |
|
20505 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION |
|
20506 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric |
|
20507 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some |
|
20508 # different numeric value (or even the same numeric value as MATCH_LIMIT, |
|
20509 # though no longer defined in terms of the latter). |
|
20510 # |
|
20511 |
|
20512 # Check whether --with-match-limit-recursion was given. |
|
20513 if test "${with_match_limit_recursion+set}" = set; then |
|
20514 withval=$with_match_limit_recursion; |
|
20515 else |
|
20516 with_match_limit_recursion=MATCH_LIMIT |
|
20517 fi |
|
20518 |
|
20519 |
|
20520 # Make sure that if enable_unicode_properties was set, that UTF-8 support |
|
20521 # is enabled. |
|
20522 # |
|
20523 if test "x$enable_unicode_properties" = "xyes" |
|
20524 then |
|
20525 if test "x$enable_utf8" = "xno" |
|
20526 then |
|
20527 { { echo "$as_me:$LINENO: error: support for Unicode properties requires UTF-8 support" >&5 |
|
20528 echo "$as_me: error: support for Unicode properties requires UTF-8 support" >&2;} |
|
20529 { (exit 1); exit 1; }; } |
|
20530 fi |
|
20531 enable_utf8=yes |
|
20532 fi |
|
20533 |
|
20534 if test "x$enable_utf8" = "xunset" |
|
20535 then |
|
20536 enable_utf8=no |
|
20537 fi |
|
20538 |
|
20539 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled. |
|
20540 # |
|
20541 if test "x$enable_ebcdic" = "xyes" |
|
20542 then |
|
20543 enable_rebuild_chartables=yes |
|
20544 fi |
|
20545 |
|
20546 # Convert the newline identifier into the appropriate integer value. |
|
20547 case "$enable_newline" in |
|
20548 lf) ac_pcre_newline_value=10 ;; |
|
20549 cr) ac_pcre_newline_value=13 ;; |
|
20550 crlf) ac_pcre_newline_value=3338 ;; |
|
20551 anycrlf) ac_pcre_newline_value=-2 ;; |
|
20552 any) ac_pcre_newline_value=-1 ;; |
|
20553 *) |
|
20554 { { echo "$as_me:$LINENO: error: invalid argument \"$enable_newline\" to --enable-newline option" >&5 |
|
20555 echo "$as_me: error: invalid argument \"$enable_newline\" to --enable-newline option" >&2;} |
|
20556 { (exit 1); exit 1; }; } |
|
20557 ;; |
|
20558 esac |
|
20559 |
|
20560 # Check argument to --with-link-size |
|
20561 case "$with_link_size" in |
|
20562 2|3|4) ;; |
|
20563 *) |
|
20564 { { echo "$as_me:$LINENO: error: invalid argument \"$with_link_size\" to --with-link-size option" >&5 |
|
20565 echo "$as_me: error: invalid argument \"$with_link_size\" to --with-link-size option" >&2;} |
|
20566 { (exit 1); exit 1; }; } |
|
20567 ;; |
|
20568 esac |
|
20569 |
|
20570 |
|
20571 |
|
20572 |
|
20573 # Checks for header files. |
|
20574 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
20575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
20576 if test "${ac_cv_header_stdc+set}" = set; then |
|
20577 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20578 else |
|
20579 cat >conftest.$ac_ext <<_ACEOF |
|
20580 /* confdefs.h. */ |
|
20581 _ACEOF |
|
20582 cat confdefs.h >>conftest.$ac_ext |
|
20583 cat >>conftest.$ac_ext <<_ACEOF |
|
20584 /* end confdefs.h. */ |
|
20585 #include <stdlib.h> |
|
20586 #include <stdarg.h> |
|
20587 #include <string.h> |
|
20588 #include <float.h> |
|
20589 |
|
20590 int |
|
20591 main () |
|
20592 { |
|
20593 |
|
20594 ; |
|
20595 return 0; |
|
20596 } |
|
20597 _ACEOF |
|
20598 rm -f conftest.$ac_objext |
|
20599 if { (ac_try="$ac_compile" |
|
20600 case "(($ac_try" in |
|
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20602 *) ac_try_echo=$ac_try;; |
|
20603 esac |
|
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20605 (eval "$ac_compile") 2>conftest.er1 |
|
20606 ac_status=$? |
|
20607 grep -v '^ *+' conftest.er1 >conftest.err |
|
20608 rm -f conftest.er1 |
|
20609 cat conftest.err >&5 |
|
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20611 (exit $ac_status); } && { |
|
20612 test -z "$ac_c_werror_flag" || |
|
20613 test ! -s conftest.err |
|
20614 } && test -s conftest.$ac_objext; then |
|
20615 ac_cv_header_stdc=yes |
|
20616 else |
|
20617 echo "$as_me: failed program was:" >&5 |
|
20618 sed 's/^/| /' conftest.$ac_ext >&5 |
|
20619 |
|
20620 ac_cv_header_stdc=no |
|
20621 fi |
|
20622 |
|
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
20624 |
|
20625 if test $ac_cv_header_stdc = yes; then |
|
20626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
20627 cat >conftest.$ac_ext <<_ACEOF |
|
20628 /* confdefs.h. */ |
|
20629 _ACEOF |
|
20630 cat confdefs.h >>conftest.$ac_ext |
|
20631 cat >>conftest.$ac_ext <<_ACEOF |
|
20632 /* end confdefs.h. */ |
|
20633 #include <string.h> |
|
20634 |
|
20635 _ACEOF |
|
20636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
20637 $EGREP "memchr" >/dev/null 2>&1; then |
|
20638 : |
|
20639 else |
|
20640 ac_cv_header_stdc=no |
|
20641 fi |
|
20642 rm -f conftest* |
|
20643 |
|
20644 fi |
|
20645 |
|
20646 if test $ac_cv_header_stdc = yes; then |
|
20647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
20648 cat >conftest.$ac_ext <<_ACEOF |
|
20649 /* confdefs.h. */ |
|
20650 _ACEOF |
|
20651 cat confdefs.h >>conftest.$ac_ext |
|
20652 cat >>conftest.$ac_ext <<_ACEOF |
|
20653 /* end confdefs.h. */ |
|
20654 #include <stdlib.h> |
|
20655 |
|
20656 _ACEOF |
|
20657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
20658 $EGREP "free" >/dev/null 2>&1; then |
|
20659 : |
|
20660 else |
|
20661 ac_cv_header_stdc=no |
|
20662 fi |
|
20663 rm -f conftest* |
|
20664 |
|
20665 fi |
|
20666 |
|
20667 if test $ac_cv_header_stdc = yes; then |
|
20668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
20669 if test "$cross_compiling" = yes; then |
|
20670 : |
|
20671 else |
|
20672 cat >conftest.$ac_ext <<_ACEOF |
|
20673 /* confdefs.h. */ |
|
20674 _ACEOF |
|
20675 cat confdefs.h >>conftest.$ac_ext |
|
20676 cat >>conftest.$ac_ext <<_ACEOF |
|
20677 /* end confdefs.h. */ |
|
20678 #include <ctype.h> |
|
20679 #include <stdlib.h> |
|
20680 #if ((' ' & 0x0FF) == 0x020) |
|
20681 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
20682 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
20683 #else |
|
20684 # define ISLOWER(c) \ |
|
20685 (('a' <= (c) && (c) <= 'i') \ |
|
20686 || ('j' <= (c) && (c) <= 'r') \ |
|
20687 || ('s' <= (c) && (c) <= 'z')) |
|
20688 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
20689 #endif |
|
20690 |
|
20691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
20692 int |
|
20693 main () |
|
20694 { |
|
20695 int i; |
|
20696 for (i = 0; i < 256; i++) |
|
20697 if (XOR (islower (i), ISLOWER (i)) |
|
20698 || toupper (i) != TOUPPER (i)) |
|
20699 return 2; |
|
20700 return 0; |
|
20701 } |
|
20702 _ACEOF |
|
20703 rm -f conftest$ac_exeext |
|
20704 if { (ac_try="$ac_link" |
|
20705 case "(($ac_try" in |
|
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20707 *) ac_try_echo=$ac_try;; |
|
20708 esac |
|
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20710 (eval "$ac_link") 2>&5 |
|
20711 ac_status=$? |
|
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
20714 { (case "(($ac_try" in |
|
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20716 *) ac_try_echo=$ac_try;; |
|
20717 esac |
|
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20719 (eval "$ac_try") 2>&5 |
|
20720 ac_status=$? |
|
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20722 (exit $ac_status); }; }; then |
|
20723 : |
|
20724 else |
|
20725 echo "$as_me: program exited with status $ac_status" >&5 |
|
20726 echo "$as_me: failed program was:" >&5 |
|
20727 sed 's/^/| /' conftest.$ac_ext >&5 |
|
20728 |
|
20729 ( exit $ac_status ) |
|
20730 ac_cv_header_stdc=no |
|
20731 fi |
|
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
20733 fi |
|
20734 |
|
20735 |
|
20736 fi |
|
20737 fi |
|
20738 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
20739 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
20740 if test $ac_cv_header_stdc = yes; then |
|
20741 |
|
20742 cat >>confdefs.h <<\_ACEOF |
|
20743 #define STDC_HEADERS 1 |
|
20744 _ACEOF |
|
20745 |
|
20746 fi |
|
20747 |
|
20748 |
|
20749 |
|
20750 |
|
20751 |
|
20752 |
|
20753 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h |
|
20754 do |
|
20755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
20756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
20757 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
20759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
20760 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20761 fi |
|
20762 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
20763 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
20764 echo "${ECHO_T}$ac_res" >&6; } |
|
20765 else |
|
20766 # Is the header compilable? |
|
20767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
20768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
20769 cat >conftest.$ac_ext <<_ACEOF |
|
20770 /* confdefs.h. */ |
|
20771 _ACEOF |
|
20772 cat confdefs.h >>conftest.$ac_ext |
|
20773 cat >>conftest.$ac_ext <<_ACEOF |
|
20774 /* end confdefs.h. */ |
|
20775 $ac_includes_default |
|
20776 #include <$ac_header> |
|
20777 _ACEOF |
|
20778 rm -f conftest.$ac_objext |
|
20779 if { (ac_try="$ac_compile" |
|
20780 case "(($ac_try" in |
|
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20782 *) ac_try_echo=$ac_try;; |
|
20783 esac |
|
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20785 (eval "$ac_compile") 2>conftest.er1 |
|
20786 ac_status=$? |
|
20787 grep -v '^ *+' conftest.er1 >conftest.err |
|
20788 rm -f conftest.er1 |
|
20789 cat conftest.err >&5 |
|
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20791 (exit $ac_status); } && { |
|
20792 test -z "$ac_c_werror_flag" || |
|
20793 test ! -s conftest.err |
|
20794 } && test -s conftest.$ac_objext; then |
|
20795 ac_header_compiler=yes |
|
20796 else |
|
20797 echo "$as_me: failed program was:" >&5 |
|
20798 sed 's/^/| /' conftest.$ac_ext >&5 |
|
20799 |
|
20800 ac_header_compiler=no |
|
20801 fi |
|
20802 |
|
20803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
20804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
20805 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
20806 |
|
20807 # Is the header present? |
|
20808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
20809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
20810 cat >conftest.$ac_ext <<_ACEOF |
|
20811 /* confdefs.h. */ |
|
20812 _ACEOF |
|
20813 cat confdefs.h >>conftest.$ac_ext |
|
20814 cat >>conftest.$ac_ext <<_ACEOF |
|
20815 /* end confdefs.h. */ |
|
20816 #include <$ac_header> |
|
20817 _ACEOF |
|
20818 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
20819 case "(($ac_try" in |
|
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20821 *) ac_try_echo=$ac_try;; |
|
20822 esac |
|
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
20825 ac_status=$? |
|
20826 grep -v '^ *+' conftest.er1 >conftest.err |
|
20827 rm -f conftest.er1 |
|
20828 cat conftest.err >&5 |
|
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20830 (exit $ac_status); } >/dev/null && { |
|
20831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
20832 test ! -s conftest.err |
|
20833 }; then |
|
20834 ac_header_preproc=yes |
|
20835 else |
|
20836 echo "$as_me: failed program was:" >&5 |
|
20837 sed 's/^/| /' conftest.$ac_ext >&5 |
|
20838 |
|
20839 ac_header_preproc=no |
|
20840 fi |
|
20841 |
|
20842 rm -f conftest.err conftest.$ac_ext |
|
20843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
20844 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
20845 |
|
20846 # So? What about this header? |
|
20847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
20848 yes:no: ) |
|
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
20850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
20852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
20853 ac_header_preproc=yes |
|
20854 ;; |
|
20855 no:yes:* ) |
|
20856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
20857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
20859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
20861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
20863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
20865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
20867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
20868 |
|
20869 ;; |
|
20870 esac |
|
20871 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
20873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
20874 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20875 else |
|
20876 eval "$as_ac_Header=\$ac_header_preproc" |
|
20877 fi |
|
20878 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
20879 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
20880 echo "${ECHO_T}$ac_res" >&6; } |
|
20881 |
|
20882 fi |
|
20883 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
20884 cat >>confdefs.h <<_ACEOF |
|
20885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
20886 _ACEOF |
|
20887 |
|
20888 fi |
|
20889 |
|
20890 done |
|
20891 |
|
20892 |
|
20893 # The files below are C++ header files. |
|
20894 pcre_have_type_traits="0" |
|
20895 pcre_have_bits_type_traits="0" |
|
20896 if test "x$enable_cpp" = "xyes" -a -n "$CXX" |
|
20897 then |
|
20898 ac_ext=cpp |
|
20899 ac_cpp='$CXXCPP $CPPFLAGS' |
|
20900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
20901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
20902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
20903 |
|
20904 |
|
20905 # Older versions of pcre defined pcrecpp::no_arg, but in new versions |
|
20906 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility, |
|
20907 # we want to make one an alias for the other. Different systems do |
|
20908 # this in different ways. Some systems, for instance, can do it via |
|
20909 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4). |
|
20910 OLD_LDFLAGS="$LDFLAGS" |
|
20911 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \ |
|
20912 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do |
|
20913 { echo "$as_me:$LINENO: checking for alias support in the linker" >&5 |
|
20914 echo $ECHO_N "checking for alias support in the linker... $ECHO_C" >&6; } |
|
20915 LDFLAGS="$OLD_LDFLAGS -Wl,$flag" |
|
20916 # We try to run the linker with this new ld flag. If the link fails, |
|
20917 # we give up and remove the new flag from LDFLAGS. |
|
20918 cat >conftest.$ac_ext <<_ACEOF |
|
20919 /* confdefs.h. */ |
|
20920 _ACEOF |
|
20921 cat confdefs.h >>conftest.$ac_ext |
|
20922 cat >>conftest.$ac_ext <<_ACEOF |
|
20923 /* end confdefs.h. */ |
|
20924 namespace pcrecpp { |
|
20925 class RE { static int no_arg; }; |
|
20926 int RE::no_arg; |
|
20927 } |
|
20928 int |
|
20929 main () |
|
20930 { |
|
20931 |
|
20932 ; |
|
20933 return 0; |
|
20934 } |
|
20935 _ACEOF |
|
20936 rm -f conftest.$ac_objext conftest$ac_exeext |
|
20937 if { (ac_try="$ac_link" |
|
20938 case "(($ac_try" in |
|
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
20940 *) ac_try_echo=$ac_try;; |
|
20941 esac |
|
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
20943 (eval "$ac_link") 2>conftest.er1 |
|
20944 ac_status=$? |
|
20945 grep -v '^ *+' conftest.er1 >conftest.err |
|
20946 rm -f conftest.er1 |
|
20947 cat conftest.err >&5 |
|
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
20949 (exit $ac_status); } && { |
|
20950 test -z "$ac_cxx_werror_flag" || |
|
20951 test ! -s conftest.err |
|
20952 } && test -s conftest$ac_exeext && |
|
20953 $as_test_x conftest$ac_exeext; then |
|
20954 { echo "$as_me:$LINENO: result: yes" >&5 |
|
20955 echo "${ECHO_T}yes" >&6; }; |
|
20956 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag"; |
|
20957 break; |
|
20958 else |
|
20959 echo "$as_me: failed program was:" >&5 |
|
20960 sed 's/^/| /' conftest.$ac_ext >&5 |
|
20961 |
|
20962 { echo "$as_me:$LINENO: result: no" >&5 |
|
20963 echo "${ECHO_T}no" >&6; } |
|
20964 fi |
|
20965 |
|
20966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
20967 conftest$ac_exeext conftest.$ac_ext |
|
20968 done |
|
20969 LDFLAGS="$OLD_LDFLAGS" |
|
20970 |
|
20971 # We could be more clever here, given we're doing AC_SUBST with this |
|
20972 # (eg set a var to be the name of the include file we want). But we're not |
|
20973 # so it's easy to change back to 'regular' autoconf vars if we needed to. |
|
20974 |
|
20975 |
|
20976 for ac_header in string |
|
20977 do |
|
20978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
20979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
20980 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
20981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
20982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
20983 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
20984 fi |
|
20985 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
20986 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
20987 echo "${ECHO_T}$ac_res" >&6; } |
|
20988 else |
|
20989 # Is the header compilable? |
|
20990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
20991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
20992 cat >conftest.$ac_ext <<_ACEOF |
|
20993 /* confdefs.h. */ |
|
20994 _ACEOF |
|
20995 cat confdefs.h >>conftest.$ac_ext |
|
20996 cat >>conftest.$ac_ext <<_ACEOF |
|
20997 /* end confdefs.h. */ |
|
20998 $ac_includes_default |
|
20999 #include <$ac_header> |
|
21000 _ACEOF |
|
21001 rm -f conftest.$ac_objext |
|
21002 if { (ac_try="$ac_compile" |
|
21003 case "(($ac_try" in |
|
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21005 *) ac_try_echo=$ac_try;; |
|
21006 esac |
|
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21008 (eval "$ac_compile") 2>conftest.er1 |
|
21009 ac_status=$? |
|
21010 grep -v '^ *+' conftest.er1 >conftest.err |
|
21011 rm -f conftest.er1 |
|
21012 cat conftest.err >&5 |
|
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21014 (exit $ac_status); } && { |
|
21015 test -z "$ac_cxx_werror_flag" || |
|
21016 test ! -s conftest.err |
|
21017 } && test -s conftest.$ac_objext; then |
|
21018 ac_header_compiler=yes |
|
21019 else |
|
21020 echo "$as_me: failed program was:" >&5 |
|
21021 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21022 |
|
21023 ac_header_compiler=no |
|
21024 fi |
|
21025 |
|
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
21028 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
21029 |
|
21030 # Is the header present? |
|
21031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
21032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
21033 cat >conftest.$ac_ext <<_ACEOF |
|
21034 /* confdefs.h. */ |
|
21035 _ACEOF |
|
21036 cat confdefs.h >>conftest.$ac_ext |
|
21037 cat >>conftest.$ac_ext <<_ACEOF |
|
21038 /* end confdefs.h. */ |
|
21039 #include <$ac_header> |
|
21040 _ACEOF |
|
21041 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
21042 case "(($ac_try" in |
|
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21044 *) ac_try_echo=$ac_try;; |
|
21045 esac |
|
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
21048 ac_status=$? |
|
21049 grep -v '^ *+' conftest.er1 >conftest.err |
|
21050 rm -f conftest.er1 |
|
21051 cat conftest.err >&5 |
|
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21053 (exit $ac_status); } >/dev/null && { |
|
21054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
21055 test ! -s conftest.err |
|
21056 }; then |
|
21057 ac_header_preproc=yes |
|
21058 else |
|
21059 echo "$as_me: failed program was:" >&5 |
|
21060 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21061 |
|
21062 ac_header_preproc=no |
|
21063 fi |
|
21064 |
|
21065 rm -f conftest.err conftest.$ac_ext |
|
21066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
21067 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
21068 |
|
21069 # So? What about this header? |
|
21070 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
21071 yes:no: ) |
|
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
21073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
21075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
21076 ac_header_preproc=yes |
|
21077 ;; |
|
21078 no:yes:* ) |
|
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
21080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
21082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
21084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
21086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
21088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
21089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
21090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
21091 |
|
21092 ;; |
|
21093 esac |
|
21094 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21097 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21098 else |
|
21099 eval "$as_ac_Header=\$ac_header_preproc" |
|
21100 fi |
|
21101 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21102 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21103 echo "${ECHO_T}$ac_res" >&6; } |
|
21104 |
|
21105 fi |
|
21106 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
21107 cat >>confdefs.h <<_ACEOF |
|
21108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
21109 _ACEOF |
|
21110 pcre_have_cpp_headers="1" |
|
21111 else |
|
21112 pcre_have_cpp_headers="0" |
|
21113 fi |
|
21114 |
|
21115 done |
|
21116 |
|
21117 |
|
21118 for ac_header in bits/type_traits.h |
|
21119 do |
|
21120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
21121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21122 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21125 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21126 fi |
|
21127 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21128 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21129 echo "${ECHO_T}$ac_res" >&6; } |
|
21130 else |
|
21131 # Is the header compilable? |
|
21132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
21133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
21134 cat >conftest.$ac_ext <<_ACEOF |
|
21135 /* confdefs.h. */ |
|
21136 _ACEOF |
|
21137 cat confdefs.h >>conftest.$ac_ext |
|
21138 cat >>conftest.$ac_ext <<_ACEOF |
|
21139 /* end confdefs.h. */ |
|
21140 $ac_includes_default |
|
21141 #include <$ac_header> |
|
21142 _ACEOF |
|
21143 rm -f conftest.$ac_objext |
|
21144 if { (ac_try="$ac_compile" |
|
21145 case "(($ac_try" in |
|
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21147 *) ac_try_echo=$ac_try;; |
|
21148 esac |
|
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21150 (eval "$ac_compile") 2>conftest.er1 |
|
21151 ac_status=$? |
|
21152 grep -v '^ *+' conftest.er1 >conftest.err |
|
21153 rm -f conftest.er1 |
|
21154 cat conftest.err >&5 |
|
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21156 (exit $ac_status); } && { |
|
21157 test -z "$ac_cxx_werror_flag" || |
|
21158 test ! -s conftest.err |
|
21159 } && test -s conftest.$ac_objext; then |
|
21160 ac_header_compiler=yes |
|
21161 else |
|
21162 echo "$as_me: failed program was:" >&5 |
|
21163 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21164 |
|
21165 ac_header_compiler=no |
|
21166 fi |
|
21167 |
|
21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
21170 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
21171 |
|
21172 # Is the header present? |
|
21173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
21174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
21175 cat >conftest.$ac_ext <<_ACEOF |
|
21176 /* confdefs.h. */ |
|
21177 _ACEOF |
|
21178 cat confdefs.h >>conftest.$ac_ext |
|
21179 cat >>conftest.$ac_ext <<_ACEOF |
|
21180 /* end confdefs.h. */ |
|
21181 #include <$ac_header> |
|
21182 _ACEOF |
|
21183 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
21184 case "(($ac_try" in |
|
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21186 *) ac_try_echo=$ac_try;; |
|
21187 esac |
|
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
21190 ac_status=$? |
|
21191 grep -v '^ *+' conftest.er1 >conftest.err |
|
21192 rm -f conftest.er1 |
|
21193 cat conftest.err >&5 |
|
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21195 (exit $ac_status); } >/dev/null && { |
|
21196 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
21197 test ! -s conftest.err |
|
21198 }; then |
|
21199 ac_header_preproc=yes |
|
21200 else |
|
21201 echo "$as_me: failed program was:" >&5 |
|
21202 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21203 |
|
21204 ac_header_preproc=no |
|
21205 fi |
|
21206 |
|
21207 rm -f conftest.err conftest.$ac_ext |
|
21208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
21209 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
21210 |
|
21211 # So? What about this header? |
|
21212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
21213 yes:no: ) |
|
21214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
21215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
21217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
21218 ac_header_preproc=yes |
|
21219 ;; |
|
21220 no:yes:* ) |
|
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
21222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
21224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
21226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
21228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
21230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
21232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
21233 |
|
21234 ;; |
|
21235 esac |
|
21236 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21239 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21240 else |
|
21241 eval "$as_ac_Header=\$ac_header_preproc" |
|
21242 fi |
|
21243 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21244 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21245 echo "${ECHO_T}$ac_res" >&6; } |
|
21246 |
|
21247 fi |
|
21248 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
21249 cat >>confdefs.h <<_ACEOF |
|
21250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
21251 _ACEOF |
|
21252 pcre_have_bits_type_traits="1" |
|
21253 else |
|
21254 pcre_have_bits_type_traits="0" |
|
21255 fi |
|
21256 |
|
21257 done |
|
21258 |
|
21259 |
|
21260 for ac_header in type_traits.h |
|
21261 do |
|
21262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
21263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21264 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21267 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21268 fi |
|
21269 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21270 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21271 echo "${ECHO_T}$ac_res" >&6; } |
|
21272 else |
|
21273 # Is the header compilable? |
|
21274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
21275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
21276 cat >conftest.$ac_ext <<_ACEOF |
|
21277 /* confdefs.h. */ |
|
21278 _ACEOF |
|
21279 cat confdefs.h >>conftest.$ac_ext |
|
21280 cat >>conftest.$ac_ext <<_ACEOF |
|
21281 /* end confdefs.h. */ |
|
21282 $ac_includes_default |
|
21283 #include <$ac_header> |
|
21284 _ACEOF |
|
21285 rm -f conftest.$ac_objext |
|
21286 if { (ac_try="$ac_compile" |
|
21287 case "(($ac_try" in |
|
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21289 *) ac_try_echo=$ac_try;; |
|
21290 esac |
|
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21292 (eval "$ac_compile") 2>conftest.er1 |
|
21293 ac_status=$? |
|
21294 grep -v '^ *+' conftest.er1 >conftest.err |
|
21295 rm -f conftest.er1 |
|
21296 cat conftest.err >&5 |
|
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21298 (exit $ac_status); } && { |
|
21299 test -z "$ac_cxx_werror_flag" || |
|
21300 test ! -s conftest.err |
|
21301 } && test -s conftest.$ac_objext; then |
|
21302 ac_header_compiler=yes |
|
21303 else |
|
21304 echo "$as_me: failed program was:" >&5 |
|
21305 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21306 |
|
21307 ac_header_compiler=no |
|
21308 fi |
|
21309 |
|
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
21312 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
21313 |
|
21314 # Is the header present? |
|
21315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
21316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
21317 cat >conftest.$ac_ext <<_ACEOF |
|
21318 /* confdefs.h. */ |
|
21319 _ACEOF |
|
21320 cat confdefs.h >>conftest.$ac_ext |
|
21321 cat >>conftest.$ac_ext <<_ACEOF |
|
21322 /* end confdefs.h. */ |
|
21323 #include <$ac_header> |
|
21324 _ACEOF |
|
21325 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
21326 case "(($ac_try" in |
|
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21328 *) ac_try_echo=$ac_try;; |
|
21329 esac |
|
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
21332 ac_status=$? |
|
21333 grep -v '^ *+' conftest.er1 >conftest.err |
|
21334 rm -f conftest.er1 |
|
21335 cat conftest.err >&5 |
|
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21337 (exit $ac_status); } >/dev/null && { |
|
21338 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
21339 test ! -s conftest.err |
|
21340 }; then |
|
21341 ac_header_preproc=yes |
|
21342 else |
|
21343 echo "$as_me: failed program was:" >&5 |
|
21344 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21345 |
|
21346 ac_header_preproc=no |
|
21347 fi |
|
21348 |
|
21349 rm -f conftest.err conftest.$ac_ext |
|
21350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
21351 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
21352 |
|
21353 # So? What about this header? |
|
21354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
21355 yes:no: ) |
|
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
21357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
21359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
21360 ac_header_preproc=yes |
|
21361 ;; |
|
21362 no:yes:* ) |
|
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
21364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
21366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
21368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
21370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
21372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
21374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
21375 |
|
21376 ;; |
|
21377 esac |
|
21378 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21381 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21382 else |
|
21383 eval "$as_ac_Header=\$ac_header_preproc" |
|
21384 fi |
|
21385 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21386 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21387 echo "${ECHO_T}$ac_res" >&6; } |
|
21388 |
|
21389 fi |
|
21390 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
21391 cat >>confdefs.h <<_ACEOF |
|
21392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
21393 _ACEOF |
|
21394 pcre_have_type_traits="1" |
|
21395 else |
|
21396 pcre_have_type_traits="0" |
|
21397 fi |
|
21398 |
|
21399 done |
|
21400 |
|
21401 |
|
21402 ac_ext=c |
|
21403 ac_cpp='$CPP $CPPFLAGS' |
|
21404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
21405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
21406 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
21407 |
|
21408 fi |
|
21409 # Using AC_SUBST eliminates the need to include config.h in a public .h file |
|
21410 |
|
21411 |
|
21412 |
|
21413 # Conditional compilation |
|
21414 if test "x$enable_cpp" = "xyes"; then |
|
21415 WITH_PCRE_CPP_TRUE= |
|
21416 WITH_PCRE_CPP_FALSE='#' |
|
21417 else |
|
21418 WITH_PCRE_CPP_TRUE='#' |
|
21419 WITH_PCRE_CPP_FALSE= |
|
21420 fi |
|
21421 |
|
21422 if test "x$enable_rebuild_chartables" = "xyes"; then |
|
21423 WITH_REBUILD_CHARTABLES_TRUE= |
|
21424 WITH_REBUILD_CHARTABLES_FALSE='#' |
|
21425 else |
|
21426 WITH_REBUILD_CHARTABLES_TRUE='#' |
|
21427 WITH_REBUILD_CHARTABLES_FALSE= |
|
21428 fi |
|
21429 |
|
21430 |
|
21431 # Checks for typedefs, structures, and compiler characteristics. |
|
21432 |
|
21433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
21434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
21435 if test "${ac_cv_c_const+set}" = set; then |
|
21436 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21437 else |
|
21438 cat >conftest.$ac_ext <<_ACEOF |
|
21439 /* confdefs.h. */ |
|
21440 _ACEOF |
|
21441 cat confdefs.h >>conftest.$ac_ext |
|
21442 cat >>conftest.$ac_ext <<_ACEOF |
|
21443 /* end confdefs.h. */ |
|
21444 |
|
21445 int |
|
21446 main () |
|
21447 { |
|
21448 /* FIXME: Include the comments suggested by Paul. */ |
|
21449 #ifndef __cplusplus |
|
21450 /* Ultrix mips cc rejects this. */ |
|
21451 typedef int charset[2]; |
|
21452 const charset cs; |
|
21453 /* SunOS 4.1.1 cc rejects this. */ |
|
21454 char const *const *pcpcc; |
|
21455 char **ppc; |
|
21456 /* NEC SVR4.0.2 mips cc rejects this. */ |
|
21457 struct point {int x, y;}; |
|
21458 static struct point const zero = {0,0}; |
|
21459 /* AIX XL C 1.02.0.0 rejects this. |
|
21460 It does not let you subtract one const X* pointer from another in |
|
21461 an arm of an if-expression whose if-part is not a constant |
|
21462 expression */ |
|
21463 const char *g = "string"; |
|
21464 pcpcc = &g + (g ? g-g : 0); |
|
21465 /* HPUX 7.0 cc rejects these. */ |
|
21466 ++pcpcc; |
|
21467 ppc = (char**) pcpcc; |
|
21468 pcpcc = (char const *const *) ppc; |
|
21469 { /* SCO 3.2v4 cc rejects this. */ |
|
21470 char *t; |
|
21471 char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
21472 |
|
21473 *t++ = 0; |
|
21474 if (s) return 0; |
|
21475 } |
|
21476 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
21477 int x[] = {25, 17}; |
|
21478 const int *foo = &x[0]; |
|
21479 ++foo; |
|
21480 } |
|
21481 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
21482 typedef const int *iptr; |
|
21483 iptr p = 0; |
|
21484 ++p; |
|
21485 } |
|
21486 { /* AIX XL C 1.02.0.0 rejects this saying |
|
21487 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
21488 struct s { int j; const int *ap[3]; }; |
|
21489 struct s *b; b->j = 5; |
|
21490 } |
|
21491 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
21492 const int foo = 10; |
|
21493 if (!foo) return 0; |
|
21494 } |
|
21495 return !cs[0] && !zero.x; |
|
21496 #endif |
|
21497 |
|
21498 ; |
|
21499 return 0; |
|
21500 } |
|
21501 _ACEOF |
|
21502 rm -f conftest.$ac_objext |
|
21503 if { (ac_try="$ac_compile" |
|
21504 case "(($ac_try" in |
|
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21506 *) ac_try_echo=$ac_try;; |
|
21507 esac |
|
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21509 (eval "$ac_compile") 2>conftest.er1 |
|
21510 ac_status=$? |
|
21511 grep -v '^ *+' conftest.er1 >conftest.err |
|
21512 rm -f conftest.er1 |
|
21513 cat conftest.err >&5 |
|
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21515 (exit $ac_status); } && { |
|
21516 test -z "$ac_c_werror_flag" || |
|
21517 test ! -s conftest.err |
|
21518 } && test -s conftest.$ac_objext; then |
|
21519 ac_cv_c_const=yes |
|
21520 else |
|
21521 echo "$as_me: failed program was:" >&5 |
|
21522 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21523 |
|
21524 ac_cv_c_const=no |
|
21525 fi |
|
21526 |
|
21527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21528 fi |
|
21529 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
21530 echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
21531 if test $ac_cv_c_const = no; then |
|
21532 |
|
21533 cat >>confdefs.h <<\_ACEOF |
|
21534 #define const |
|
21535 _ACEOF |
|
21536 |
|
21537 fi |
|
21538 |
|
21539 { echo "$as_me:$LINENO: checking for size_t" >&5 |
|
21540 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
|
21541 if test "${ac_cv_type_size_t+set}" = set; then |
|
21542 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21543 else |
|
21544 cat >conftest.$ac_ext <<_ACEOF |
|
21545 /* confdefs.h. */ |
|
21546 _ACEOF |
|
21547 cat confdefs.h >>conftest.$ac_ext |
|
21548 cat >>conftest.$ac_ext <<_ACEOF |
|
21549 /* end confdefs.h. */ |
|
21550 $ac_includes_default |
|
21551 typedef size_t ac__type_new_; |
|
21552 int |
|
21553 main () |
|
21554 { |
|
21555 if ((ac__type_new_ *) 0) |
|
21556 return 0; |
|
21557 if (sizeof (ac__type_new_)) |
|
21558 return 0; |
|
21559 ; |
|
21560 return 0; |
|
21561 } |
|
21562 _ACEOF |
|
21563 rm -f conftest.$ac_objext |
|
21564 if { (ac_try="$ac_compile" |
|
21565 case "(($ac_try" in |
|
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21567 *) ac_try_echo=$ac_try;; |
|
21568 esac |
|
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21570 (eval "$ac_compile") 2>conftest.er1 |
|
21571 ac_status=$? |
|
21572 grep -v '^ *+' conftest.er1 >conftest.err |
|
21573 rm -f conftest.er1 |
|
21574 cat conftest.err >&5 |
|
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21576 (exit $ac_status); } && { |
|
21577 test -z "$ac_c_werror_flag" || |
|
21578 test ! -s conftest.err |
|
21579 } && test -s conftest.$ac_objext; then |
|
21580 ac_cv_type_size_t=yes |
|
21581 else |
|
21582 echo "$as_me: failed program was:" >&5 |
|
21583 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21584 |
|
21585 ac_cv_type_size_t=no |
|
21586 fi |
|
21587 |
|
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21589 fi |
|
21590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
|
21591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
|
21592 if test $ac_cv_type_size_t = yes; then |
|
21593 : |
|
21594 else |
|
21595 |
|
21596 cat >>confdefs.h <<_ACEOF |
|
21597 #define size_t unsigned int |
|
21598 _ACEOF |
|
21599 |
|
21600 fi |
|
21601 |
|
21602 |
|
21603 pcre_have_strotolonglong=0 |
|
21604 |
|
21605 |
|
21606 |
|
21607 for ac_func in strtoq strtoll _strtoi64 |
|
21608 do |
|
21609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
21610 { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
21611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
21612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21613 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21614 else |
|
21615 cat >conftest.$ac_ext <<_ACEOF |
|
21616 /* confdefs.h. */ |
|
21617 _ACEOF |
|
21618 cat confdefs.h >>conftest.$ac_ext |
|
21619 cat >>conftest.$ac_ext <<_ACEOF |
|
21620 /* end confdefs.h. */ |
|
21621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
21622 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21623 #define $ac_func innocuous_$ac_func |
|
21624 |
|
21625 /* System header to define __stub macros and hopefully few prototypes, |
|
21626 which can conflict with char $ac_func (); below. |
|
21627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21628 <limits.h> exists even on freestanding compilers. */ |
|
21629 |
|
21630 #ifdef __STDC__ |
|
21631 # include <limits.h> |
|
21632 #else |
|
21633 # include <assert.h> |
|
21634 #endif |
|
21635 |
|
21636 #undef $ac_func |
|
21637 |
|
21638 /* Override any GCC internal prototype to avoid an error. |
|
21639 Use char because int might match the return type of a GCC |
|
21640 builtin and then its argument prototype would still apply. */ |
|
21641 #ifdef __cplusplus |
|
21642 extern "C" |
|
21643 #endif |
|
21644 char $ac_func (); |
|
21645 /* The GNU C library defines this for functions which it implements |
|
21646 to always fail with ENOSYS. Some functions are actually named |
|
21647 something starting with __ and the normal name is an alias. */ |
|
21648 #if defined __stub_$ac_func || defined __stub___$ac_func |
|
21649 choke me |
|
21650 #endif |
|
21651 |
|
21652 int |
|
21653 main () |
|
21654 { |
|
21655 return $ac_func (); |
|
21656 ; |
|
21657 return 0; |
|
21658 } |
|
21659 _ACEOF |
|
21660 rm -f conftest.$ac_objext conftest$ac_exeext |
|
21661 if { (ac_try="$ac_link" |
|
21662 case "(($ac_try" in |
|
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21664 *) ac_try_echo=$ac_try;; |
|
21665 esac |
|
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21667 (eval "$ac_link") 2>conftest.er1 |
|
21668 ac_status=$? |
|
21669 grep -v '^ *+' conftest.er1 >conftest.err |
|
21670 rm -f conftest.er1 |
|
21671 cat conftest.err >&5 |
|
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21673 (exit $ac_status); } && { |
|
21674 test -z "$ac_c_werror_flag" || |
|
21675 test ! -s conftest.err |
|
21676 } && test -s conftest$ac_exeext && |
|
21677 $as_test_x conftest$ac_exeext; then |
|
21678 eval "$as_ac_var=yes" |
|
21679 else |
|
21680 echo "$as_me: failed program was:" >&5 |
|
21681 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21682 |
|
21683 eval "$as_ac_var=no" |
|
21684 fi |
|
21685 |
|
21686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
21687 conftest$ac_exeext conftest.$ac_ext |
|
21688 fi |
|
21689 ac_res=`eval echo '${'$as_ac_var'}'` |
|
21690 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21691 echo "${ECHO_T}$ac_res" >&6; } |
|
21692 if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
21693 cat >>confdefs.h <<_ACEOF |
|
21694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
21695 _ACEOF |
|
21696 pcre_have_strotolonglong="1"; break |
|
21697 fi |
|
21698 done |
|
21699 |
|
21700 # If we can't convert a string to a long long, pretend we don't even |
|
21701 # have a long long. |
|
21702 if test $pcre_have_strotolonglong = "0"; then |
|
21703 pcre_have_long_long="0" |
|
21704 pcre_have_ulong_long="0" |
|
21705 else |
|
21706 { echo "$as_me:$LINENO: checking for long long" >&5 |
|
21707 echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
21708 if test "${ac_cv_type_long_long+set}" = set; then |
|
21709 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21710 else |
|
21711 cat >conftest.$ac_ext <<_ACEOF |
|
21712 /* confdefs.h. */ |
|
21713 _ACEOF |
|
21714 cat confdefs.h >>conftest.$ac_ext |
|
21715 cat >>conftest.$ac_ext <<_ACEOF |
|
21716 /* end confdefs.h. */ |
|
21717 $ac_includes_default |
|
21718 typedef long long ac__type_new_; |
|
21719 int |
|
21720 main () |
|
21721 { |
|
21722 if ((ac__type_new_ *) 0) |
|
21723 return 0; |
|
21724 if (sizeof (ac__type_new_)) |
|
21725 return 0; |
|
21726 ; |
|
21727 return 0; |
|
21728 } |
|
21729 _ACEOF |
|
21730 rm -f conftest.$ac_objext |
|
21731 if { (ac_try="$ac_compile" |
|
21732 case "(($ac_try" in |
|
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21734 *) ac_try_echo=$ac_try;; |
|
21735 esac |
|
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21737 (eval "$ac_compile") 2>conftest.er1 |
|
21738 ac_status=$? |
|
21739 grep -v '^ *+' conftest.er1 >conftest.err |
|
21740 rm -f conftest.er1 |
|
21741 cat conftest.err >&5 |
|
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21743 (exit $ac_status); } && { |
|
21744 test -z "$ac_c_werror_flag" || |
|
21745 test ! -s conftest.err |
|
21746 } && test -s conftest.$ac_objext; then |
|
21747 ac_cv_type_long_long=yes |
|
21748 else |
|
21749 echo "$as_me: failed program was:" >&5 |
|
21750 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21751 |
|
21752 ac_cv_type_long_long=no |
|
21753 fi |
|
21754 |
|
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21756 fi |
|
21757 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
21758 echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
21759 if test $ac_cv_type_long_long = yes; then |
|
21760 |
|
21761 cat >>confdefs.h <<_ACEOF |
|
21762 #define HAVE_LONG_LONG 1 |
|
21763 _ACEOF |
|
21764 |
|
21765 pcre_have_long_long="1" |
|
21766 else |
|
21767 pcre_have_long_long="0" |
|
21768 fi |
|
21769 |
|
21770 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
|
21771 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
|
21772 if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
|
21773 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21774 else |
|
21775 cat >conftest.$ac_ext <<_ACEOF |
|
21776 /* confdefs.h. */ |
|
21777 _ACEOF |
|
21778 cat confdefs.h >>conftest.$ac_ext |
|
21779 cat >>conftest.$ac_ext <<_ACEOF |
|
21780 /* end confdefs.h. */ |
|
21781 $ac_includes_default |
|
21782 typedef unsigned long long ac__type_new_; |
|
21783 int |
|
21784 main () |
|
21785 { |
|
21786 if ((ac__type_new_ *) 0) |
|
21787 return 0; |
|
21788 if (sizeof (ac__type_new_)) |
|
21789 return 0; |
|
21790 ; |
|
21791 return 0; |
|
21792 } |
|
21793 _ACEOF |
|
21794 rm -f conftest.$ac_objext |
|
21795 if { (ac_try="$ac_compile" |
|
21796 case "(($ac_try" in |
|
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21798 *) ac_try_echo=$ac_try;; |
|
21799 esac |
|
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21801 (eval "$ac_compile") 2>conftest.er1 |
|
21802 ac_status=$? |
|
21803 grep -v '^ *+' conftest.er1 >conftest.err |
|
21804 rm -f conftest.er1 |
|
21805 cat conftest.err >&5 |
|
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21807 (exit $ac_status); } && { |
|
21808 test -z "$ac_c_werror_flag" || |
|
21809 test ! -s conftest.err |
|
21810 } && test -s conftest.$ac_objext; then |
|
21811 ac_cv_type_unsigned_long_long=yes |
|
21812 else |
|
21813 echo "$as_me: failed program was:" >&5 |
|
21814 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21815 |
|
21816 ac_cv_type_unsigned_long_long=no |
|
21817 fi |
|
21818 |
|
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21820 fi |
|
21821 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
|
21822 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
|
21823 if test $ac_cv_type_unsigned_long_long = yes; then |
|
21824 |
|
21825 cat >>confdefs.h <<_ACEOF |
|
21826 #define HAVE_UNSIGNED_LONG_LONG 1 |
|
21827 _ACEOF |
|
21828 |
|
21829 pcre_have_ulong_long="1" |
|
21830 else |
|
21831 pcre_have_ulong_long="0" |
|
21832 fi |
|
21833 |
|
21834 fi |
|
21835 |
|
21836 |
|
21837 |
|
21838 # Checks for library functions. |
|
21839 |
|
21840 |
|
21841 |
|
21842 |
|
21843 for ac_func in bcopy memmove strerror |
|
21844 do |
|
21845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
21846 { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
21847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
21848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21849 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21850 else |
|
21851 cat >conftest.$ac_ext <<_ACEOF |
|
21852 /* confdefs.h. */ |
|
21853 _ACEOF |
|
21854 cat confdefs.h >>conftest.$ac_ext |
|
21855 cat >>conftest.$ac_ext <<_ACEOF |
|
21856 /* end confdefs.h. */ |
|
21857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
21858 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
21859 #define $ac_func innocuous_$ac_func |
|
21860 |
|
21861 /* System header to define __stub macros and hopefully few prototypes, |
|
21862 which can conflict with char $ac_func (); below. |
|
21863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
21864 <limits.h> exists even on freestanding compilers. */ |
|
21865 |
|
21866 #ifdef __STDC__ |
|
21867 # include <limits.h> |
|
21868 #else |
|
21869 # include <assert.h> |
|
21870 #endif |
|
21871 |
|
21872 #undef $ac_func |
|
21873 |
|
21874 /* Override any GCC internal prototype to avoid an error. |
|
21875 Use char because int might match the return type of a GCC |
|
21876 builtin and then its argument prototype would still apply. */ |
|
21877 #ifdef __cplusplus |
|
21878 extern "C" |
|
21879 #endif |
|
21880 char $ac_func (); |
|
21881 /* The GNU C library defines this for functions which it implements |
|
21882 to always fail with ENOSYS. Some functions are actually named |
|
21883 something starting with __ and the normal name is an alias. */ |
|
21884 #if defined __stub_$ac_func || defined __stub___$ac_func |
|
21885 choke me |
|
21886 #endif |
|
21887 |
|
21888 int |
|
21889 main () |
|
21890 { |
|
21891 return $ac_func (); |
|
21892 ; |
|
21893 return 0; |
|
21894 } |
|
21895 _ACEOF |
|
21896 rm -f conftest.$ac_objext conftest$ac_exeext |
|
21897 if { (ac_try="$ac_link" |
|
21898 case "(($ac_try" in |
|
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21900 *) ac_try_echo=$ac_try;; |
|
21901 esac |
|
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21903 (eval "$ac_link") 2>conftest.er1 |
|
21904 ac_status=$? |
|
21905 grep -v '^ *+' conftest.er1 >conftest.err |
|
21906 rm -f conftest.er1 |
|
21907 cat conftest.err >&5 |
|
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21909 (exit $ac_status); } && { |
|
21910 test -z "$ac_c_werror_flag" || |
|
21911 test ! -s conftest.err |
|
21912 } && test -s conftest$ac_exeext && |
|
21913 $as_test_x conftest$ac_exeext; then |
|
21914 eval "$as_ac_var=yes" |
|
21915 else |
|
21916 echo "$as_me: failed program was:" >&5 |
|
21917 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21918 |
|
21919 eval "$as_ac_var=no" |
|
21920 fi |
|
21921 |
|
21922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
21923 conftest$ac_exeext conftest.$ac_ext |
|
21924 fi |
|
21925 ac_res=`eval echo '${'$as_ac_var'}'` |
|
21926 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21927 echo "${ECHO_T}$ac_res" >&6; } |
|
21928 if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
21929 cat >>confdefs.h <<_ACEOF |
|
21930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
21931 _ACEOF |
|
21932 |
|
21933 fi |
|
21934 done |
|
21935 |
|
21936 |
|
21937 # Check for the availability of libz (aka zlib) |
|
21938 |
|
21939 |
|
21940 for ac_header in zlib.h |
|
21941 do |
|
21942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
21943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21944 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21947 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21948 fi |
|
21949 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21950 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21951 echo "${ECHO_T}$ac_res" >&6; } |
|
21952 else |
|
21953 # Is the header compilable? |
|
21954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
21955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
21956 cat >conftest.$ac_ext <<_ACEOF |
|
21957 /* confdefs.h. */ |
|
21958 _ACEOF |
|
21959 cat confdefs.h >>conftest.$ac_ext |
|
21960 cat >>conftest.$ac_ext <<_ACEOF |
|
21961 /* end confdefs.h. */ |
|
21962 $ac_includes_default |
|
21963 #include <$ac_header> |
|
21964 _ACEOF |
|
21965 rm -f conftest.$ac_objext |
|
21966 if { (ac_try="$ac_compile" |
|
21967 case "(($ac_try" in |
|
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21969 *) ac_try_echo=$ac_try;; |
|
21970 esac |
|
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21972 (eval "$ac_compile") 2>conftest.er1 |
|
21973 ac_status=$? |
|
21974 grep -v '^ *+' conftest.er1 >conftest.err |
|
21975 rm -f conftest.er1 |
|
21976 cat conftest.err >&5 |
|
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21978 (exit $ac_status); } && { |
|
21979 test -z "$ac_c_werror_flag" || |
|
21980 test ! -s conftest.err |
|
21981 } && test -s conftest.$ac_objext; then |
|
21982 ac_header_compiler=yes |
|
21983 else |
|
21984 echo "$as_me: failed program was:" >&5 |
|
21985 sed 's/^/| /' conftest.$ac_ext >&5 |
|
21986 |
|
21987 ac_header_compiler=no |
|
21988 fi |
|
21989 |
|
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
21992 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
21993 |
|
21994 # Is the header present? |
|
21995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
21996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
21997 cat >conftest.$ac_ext <<_ACEOF |
|
21998 /* confdefs.h. */ |
|
21999 _ACEOF |
|
22000 cat confdefs.h >>conftest.$ac_ext |
|
22001 cat >>conftest.$ac_ext <<_ACEOF |
|
22002 /* end confdefs.h. */ |
|
22003 #include <$ac_header> |
|
22004 _ACEOF |
|
22005 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
22006 case "(($ac_try" in |
|
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22008 *) ac_try_echo=$ac_try;; |
|
22009 esac |
|
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
22012 ac_status=$? |
|
22013 grep -v '^ *+' conftest.er1 >conftest.err |
|
22014 rm -f conftest.er1 |
|
22015 cat conftest.err >&5 |
|
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22017 (exit $ac_status); } >/dev/null && { |
|
22018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
22019 test ! -s conftest.err |
|
22020 }; then |
|
22021 ac_header_preproc=yes |
|
22022 else |
|
22023 echo "$as_me: failed program was:" >&5 |
|
22024 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22025 |
|
22026 ac_header_preproc=no |
|
22027 fi |
|
22028 |
|
22029 rm -f conftest.err conftest.$ac_ext |
|
22030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
22031 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
22032 |
|
22033 # So? What about this header? |
|
22034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
22035 yes:no: ) |
|
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
22037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
22039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
22040 ac_header_preproc=yes |
|
22041 ;; |
|
22042 no:yes:* ) |
|
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
22044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
22046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
22048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
22050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
22052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
22054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
22055 |
|
22056 ;; |
|
22057 esac |
|
22058 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22061 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22062 else |
|
22063 eval "$as_ac_Header=\$ac_header_preproc" |
|
22064 fi |
|
22065 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22066 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22067 echo "${ECHO_T}$ac_res" >&6; } |
|
22068 |
|
22069 fi |
|
22070 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
22071 cat >>confdefs.h <<_ACEOF |
|
22072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
22073 _ACEOF |
|
22074 HAVE_ZLIB_H=1 |
|
22075 fi |
|
22076 |
|
22077 done |
|
22078 |
|
22079 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 |
|
22080 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } |
|
22081 if test "${ac_cv_lib_z_gzopen+set}" = set; then |
|
22082 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22083 else |
|
22084 ac_check_lib_save_LIBS=$LIBS |
|
22085 LIBS="-lz $LIBS" |
|
22086 cat >conftest.$ac_ext <<_ACEOF |
|
22087 /* confdefs.h. */ |
|
22088 _ACEOF |
|
22089 cat confdefs.h >>conftest.$ac_ext |
|
22090 cat >>conftest.$ac_ext <<_ACEOF |
|
22091 /* end confdefs.h. */ |
|
22092 |
|
22093 /* Override any GCC internal prototype to avoid an error. |
|
22094 Use char because int might match the return type of a GCC |
|
22095 builtin and then its argument prototype would still apply. */ |
|
22096 #ifdef __cplusplus |
|
22097 extern "C" |
|
22098 #endif |
|
22099 char gzopen (); |
|
22100 int |
|
22101 main () |
|
22102 { |
|
22103 return gzopen (); |
|
22104 ; |
|
22105 return 0; |
|
22106 } |
|
22107 _ACEOF |
|
22108 rm -f conftest.$ac_objext conftest$ac_exeext |
|
22109 if { (ac_try="$ac_link" |
|
22110 case "(($ac_try" in |
|
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22112 *) ac_try_echo=$ac_try;; |
|
22113 esac |
|
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22115 (eval "$ac_link") 2>conftest.er1 |
|
22116 ac_status=$? |
|
22117 grep -v '^ *+' conftest.er1 >conftest.err |
|
22118 rm -f conftest.er1 |
|
22119 cat conftest.err >&5 |
|
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22121 (exit $ac_status); } && { |
|
22122 test -z "$ac_c_werror_flag" || |
|
22123 test ! -s conftest.err |
|
22124 } && test -s conftest$ac_exeext && |
|
22125 $as_test_x conftest$ac_exeext; then |
|
22126 ac_cv_lib_z_gzopen=yes |
|
22127 else |
|
22128 echo "$as_me: failed program was:" >&5 |
|
22129 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22130 |
|
22131 ac_cv_lib_z_gzopen=no |
|
22132 fi |
|
22133 |
|
22134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
22135 conftest$ac_exeext conftest.$ac_ext |
|
22136 LIBS=$ac_check_lib_save_LIBS |
|
22137 fi |
|
22138 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 |
|
22139 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } |
|
22140 if test $ac_cv_lib_z_gzopen = yes; then |
|
22141 HAVE_LIBZ=1 |
|
22142 fi |
|
22143 |
|
22144 |
|
22145 # Check for the availability of libbz2 |
|
22146 |
|
22147 |
|
22148 for ac_header in bzlib.h |
|
22149 do |
|
22150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
22151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22152 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22155 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22156 fi |
|
22157 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22158 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22159 echo "${ECHO_T}$ac_res" >&6; } |
|
22160 else |
|
22161 # Is the header compilable? |
|
22162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
22163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
22164 cat >conftest.$ac_ext <<_ACEOF |
|
22165 /* confdefs.h. */ |
|
22166 _ACEOF |
|
22167 cat confdefs.h >>conftest.$ac_ext |
|
22168 cat >>conftest.$ac_ext <<_ACEOF |
|
22169 /* end confdefs.h. */ |
|
22170 $ac_includes_default |
|
22171 #include <$ac_header> |
|
22172 _ACEOF |
|
22173 rm -f conftest.$ac_objext |
|
22174 if { (ac_try="$ac_compile" |
|
22175 case "(($ac_try" in |
|
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22177 *) ac_try_echo=$ac_try;; |
|
22178 esac |
|
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22180 (eval "$ac_compile") 2>conftest.er1 |
|
22181 ac_status=$? |
|
22182 grep -v '^ *+' conftest.er1 >conftest.err |
|
22183 rm -f conftest.er1 |
|
22184 cat conftest.err >&5 |
|
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22186 (exit $ac_status); } && { |
|
22187 test -z "$ac_c_werror_flag" || |
|
22188 test ! -s conftest.err |
|
22189 } && test -s conftest.$ac_objext; then |
|
22190 ac_header_compiler=yes |
|
22191 else |
|
22192 echo "$as_me: failed program was:" >&5 |
|
22193 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22194 |
|
22195 ac_header_compiler=no |
|
22196 fi |
|
22197 |
|
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
22200 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
22201 |
|
22202 # Is the header present? |
|
22203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
22204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
22205 cat >conftest.$ac_ext <<_ACEOF |
|
22206 /* confdefs.h. */ |
|
22207 _ACEOF |
|
22208 cat confdefs.h >>conftest.$ac_ext |
|
22209 cat >>conftest.$ac_ext <<_ACEOF |
|
22210 /* end confdefs.h. */ |
|
22211 #include <$ac_header> |
|
22212 _ACEOF |
|
22213 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
22214 case "(($ac_try" in |
|
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22216 *) ac_try_echo=$ac_try;; |
|
22217 esac |
|
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
22220 ac_status=$? |
|
22221 grep -v '^ *+' conftest.er1 >conftest.err |
|
22222 rm -f conftest.er1 |
|
22223 cat conftest.err >&5 |
|
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22225 (exit $ac_status); } >/dev/null && { |
|
22226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
22227 test ! -s conftest.err |
|
22228 }; then |
|
22229 ac_header_preproc=yes |
|
22230 else |
|
22231 echo "$as_me: failed program was:" >&5 |
|
22232 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22233 |
|
22234 ac_header_preproc=no |
|
22235 fi |
|
22236 |
|
22237 rm -f conftest.err conftest.$ac_ext |
|
22238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
22239 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
22240 |
|
22241 # So? What about this header? |
|
22242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
22243 yes:no: ) |
|
22244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
22245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
22247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
22248 ac_header_preproc=yes |
|
22249 ;; |
|
22250 no:yes:* ) |
|
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
22252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
22253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
22254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
22256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
22258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
22260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
22261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
22262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
22263 |
|
22264 ;; |
|
22265 esac |
|
22266 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22269 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22270 else |
|
22271 eval "$as_ac_Header=\$ac_header_preproc" |
|
22272 fi |
|
22273 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22274 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22275 echo "${ECHO_T}$ac_res" >&6; } |
|
22276 |
|
22277 fi |
|
22278 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
22279 cat >>confdefs.h <<_ACEOF |
|
22280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
22281 _ACEOF |
|
22282 HAVE_BZLIB_H=1 |
|
22283 fi |
|
22284 |
|
22285 done |
|
22286 |
|
22287 { echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5 |
|
22288 echo $ECHO_N "checking for BZ2_bzopen in -lbz2... $ECHO_C" >&6; } |
|
22289 if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then |
|
22290 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22291 else |
|
22292 ac_check_lib_save_LIBS=$LIBS |
|
22293 LIBS="-lbz2 $LIBS" |
|
22294 cat >conftest.$ac_ext <<_ACEOF |
|
22295 /* confdefs.h. */ |
|
22296 _ACEOF |
|
22297 cat confdefs.h >>conftest.$ac_ext |
|
22298 cat >>conftest.$ac_ext <<_ACEOF |
|
22299 /* end confdefs.h. */ |
|
22300 |
|
22301 /* Override any GCC internal prototype to avoid an error. |
|
22302 Use char because int might match the return type of a GCC |
|
22303 builtin and then its argument prototype would still apply. */ |
|
22304 #ifdef __cplusplus |
|
22305 extern "C" |
|
22306 #endif |
|
22307 char BZ2_bzopen (); |
|
22308 int |
|
22309 main () |
|
22310 { |
|
22311 return BZ2_bzopen (); |
|
22312 ; |
|
22313 return 0; |
|
22314 } |
|
22315 _ACEOF |
|
22316 rm -f conftest.$ac_objext conftest$ac_exeext |
|
22317 if { (ac_try="$ac_link" |
|
22318 case "(($ac_try" in |
|
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22320 *) ac_try_echo=$ac_try;; |
|
22321 esac |
|
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22323 (eval "$ac_link") 2>conftest.er1 |
|
22324 ac_status=$? |
|
22325 grep -v '^ *+' conftest.er1 >conftest.err |
|
22326 rm -f conftest.er1 |
|
22327 cat conftest.err >&5 |
|
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22329 (exit $ac_status); } && { |
|
22330 test -z "$ac_c_werror_flag" || |
|
22331 test ! -s conftest.err |
|
22332 } && test -s conftest$ac_exeext && |
|
22333 $as_test_x conftest$ac_exeext; then |
|
22334 ac_cv_lib_bz2_BZ2_bzopen=yes |
|
22335 else |
|
22336 echo "$as_me: failed program was:" >&5 |
|
22337 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22338 |
|
22339 ac_cv_lib_bz2_BZ2_bzopen=no |
|
22340 fi |
|
22341 |
|
22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
22343 conftest$ac_exeext conftest.$ac_ext |
|
22344 LIBS=$ac_check_lib_save_LIBS |
|
22345 fi |
|
22346 { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 |
|
22347 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzopen" >&6; } |
|
22348 if test $ac_cv_lib_bz2_BZ2_bzopen = yes; then |
|
22349 HAVE_LIBBZ2=1 |
|
22350 fi |
|
22351 |
|
22352 |
|
22353 # Check for the availabiity of libreadline |
|
22354 |
|
22355 |
|
22356 for ac_header in readline/readline.h |
|
22357 do |
|
22358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22360 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22363 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22364 fi |
|
22365 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22367 echo "${ECHO_T}$ac_res" >&6; } |
|
22368 else |
|
22369 # Is the header compilable? |
|
22370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
22371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
22372 cat >conftest.$ac_ext <<_ACEOF |
|
22373 /* confdefs.h. */ |
|
22374 _ACEOF |
|
22375 cat confdefs.h >>conftest.$ac_ext |
|
22376 cat >>conftest.$ac_ext <<_ACEOF |
|
22377 /* end confdefs.h. */ |
|
22378 $ac_includes_default |
|
22379 #include <$ac_header> |
|
22380 _ACEOF |
|
22381 rm -f conftest.$ac_objext |
|
22382 if { (ac_try="$ac_compile" |
|
22383 case "(($ac_try" in |
|
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22385 *) ac_try_echo=$ac_try;; |
|
22386 esac |
|
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22388 (eval "$ac_compile") 2>conftest.er1 |
|
22389 ac_status=$? |
|
22390 grep -v '^ *+' conftest.er1 >conftest.err |
|
22391 rm -f conftest.er1 |
|
22392 cat conftest.err >&5 |
|
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22394 (exit $ac_status); } && { |
|
22395 test -z "$ac_c_werror_flag" || |
|
22396 test ! -s conftest.err |
|
22397 } && test -s conftest.$ac_objext; then |
|
22398 ac_header_compiler=yes |
|
22399 else |
|
22400 echo "$as_me: failed program was:" >&5 |
|
22401 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22402 |
|
22403 ac_header_compiler=no |
|
22404 fi |
|
22405 |
|
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
22408 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
22409 |
|
22410 # Is the header present? |
|
22411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
22412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
22413 cat >conftest.$ac_ext <<_ACEOF |
|
22414 /* confdefs.h. */ |
|
22415 _ACEOF |
|
22416 cat confdefs.h >>conftest.$ac_ext |
|
22417 cat >>conftest.$ac_ext <<_ACEOF |
|
22418 /* end confdefs.h. */ |
|
22419 #include <$ac_header> |
|
22420 _ACEOF |
|
22421 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
22422 case "(($ac_try" in |
|
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22424 *) ac_try_echo=$ac_try;; |
|
22425 esac |
|
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
22428 ac_status=$? |
|
22429 grep -v '^ *+' conftest.er1 >conftest.err |
|
22430 rm -f conftest.er1 |
|
22431 cat conftest.err >&5 |
|
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22433 (exit $ac_status); } >/dev/null && { |
|
22434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
22435 test ! -s conftest.err |
|
22436 }; then |
|
22437 ac_header_preproc=yes |
|
22438 else |
|
22439 echo "$as_me: failed program was:" >&5 |
|
22440 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22441 |
|
22442 ac_header_preproc=no |
|
22443 fi |
|
22444 |
|
22445 rm -f conftest.err conftest.$ac_ext |
|
22446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
22447 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
22448 |
|
22449 # So? What about this header? |
|
22450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
22451 yes:no: ) |
|
22452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
22453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
22454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
22455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
22456 ac_header_preproc=yes |
|
22457 ;; |
|
22458 no:yes:* ) |
|
22459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
22460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
22461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
22462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
22464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
22466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
22467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
22469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
22470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
22471 |
|
22472 ;; |
|
22473 esac |
|
22474 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22477 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22478 else |
|
22479 eval "$as_ac_Header=\$ac_header_preproc" |
|
22480 fi |
|
22481 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22482 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22483 echo "${ECHO_T}$ac_res" >&6; } |
|
22484 |
|
22485 fi |
|
22486 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
22487 cat >>confdefs.h <<_ACEOF |
|
22488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
22489 _ACEOF |
|
22490 HAVE_READLINE_H=1 |
|
22491 fi |
|
22492 |
|
22493 done |
|
22494 |
|
22495 |
|
22496 for ac_header in readline/history.h |
|
22497 do |
|
22498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
22499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22500 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22503 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22504 fi |
|
22505 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22506 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22507 echo "${ECHO_T}$ac_res" >&6; } |
|
22508 else |
|
22509 # Is the header compilable? |
|
22510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
22511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
22512 cat >conftest.$ac_ext <<_ACEOF |
|
22513 /* confdefs.h. */ |
|
22514 _ACEOF |
|
22515 cat confdefs.h >>conftest.$ac_ext |
|
22516 cat >>conftest.$ac_ext <<_ACEOF |
|
22517 /* end confdefs.h. */ |
|
22518 $ac_includes_default |
|
22519 #include <$ac_header> |
|
22520 _ACEOF |
|
22521 rm -f conftest.$ac_objext |
|
22522 if { (ac_try="$ac_compile" |
|
22523 case "(($ac_try" in |
|
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22525 *) ac_try_echo=$ac_try;; |
|
22526 esac |
|
22527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22528 (eval "$ac_compile") 2>conftest.er1 |
|
22529 ac_status=$? |
|
22530 grep -v '^ *+' conftest.er1 >conftest.err |
|
22531 rm -f conftest.er1 |
|
22532 cat conftest.err >&5 |
|
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22534 (exit $ac_status); } && { |
|
22535 test -z "$ac_c_werror_flag" || |
|
22536 test ! -s conftest.err |
|
22537 } && test -s conftest.$ac_objext; then |
|
22538 ac_header_compiler=yes |
|
22539 else |
|
22540 echo "$as_me: failed program was:" >&5 |
|
22541 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22542 |
|
22543 ac_header_compiler=no |
|
22544 fi |
|
22545 |
|
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
22548 echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
22549 |
|
22550 # Is the header present? |
|
22551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
22552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
22553 cat >conftest.$ac_ext <<_ACEOF |
|
22554 /* confdefs.h. */ |
|
22555 _ACEOF |
|
22556 cat confdefs.h >>conftest.$ac_ext |
|
22557 cat >>conftest.$ac_ext <<_ACEOF |
|
22558 /* end confdefs.h. */ |
|
22559 #include <$ac_header> |
|
22560 _ACEOF |
|
22561 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
22562 case "(($ac_try" in |
|
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22564 *) ac_try_echo=$ac_try;; |
|
22565 esac |
|
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
22568 ac_status=$? |
|
22569 grep -v '^ *+' conftest.er1 >conftest.err |
|
22570 rm -f conftest.er1 |
|
22571 cat conftest.err >&5 |
|
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22573 (exit $ac_status); } >/dev/null && { |
|
22574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
22575 test ! -s conftest.err |
|
22576 }; then |
|
22577 ac_header_preproc=yes |
|
22578 else |
|
22579 echo "$as_me: failed program was:" >&5 |
|
22580 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22581 |
|
22582 ac_header_preproc=no |
|
22583 fi |
|
22584 |
|
22585 rm -f conftest.err conftest.$ac_ext |
|
22586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
22587 echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
22588 |
|
22589 # So? What about this header? |
|
22590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
22591 yes:no: ) |
|
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
22593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
22595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
22596 ac_header_preproc=yes |
|
22597 ;; |
|
22598 no:yes:* ) |
|
22599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
22600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
22601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
22602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
22603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
22604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
22605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
22606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
22607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
22608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
22609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
22610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
22611 |
|
22612 ;; |
|
22613 esac |
|
22614 { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
22615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
22616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
22617 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22618 else |
|
22619 eval "$as_ac_Header=\$ac_header_preproc" |
|
22620 fi |
|
22621 ac_res=`eval echo '${'$as_ac_Header'}'` |
|
22622 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
22623 echo "${ECHO_T}$ac_res" >&6; } |
|
22624 |
|
22625 fi |
|
22626 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
22627 cat >>confdefs.h <<_ACEOF |
|
22628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
22629 _ACEOF |
|
22630 HAVE_HISTORY_H=1 |
|
22631 fi |
|
22632 |
|
22633 done |
|
22634 |
|
22635 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
|
22636 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
|
22637 if test "${ac_cv_lib_readline_readline+set}" = set; then |
|
22638 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22639 else |
|
22640 ac_check_lib_save_LIBS=$LIBS |
|
22641 LIBS="-lreadline $LIBS" |
|
22642 cat >conftest.$ac_ext <<_ACEOF |
|
22643 /* confdefs.h. */ |
|
22644 _ACEOF |
|
22645 cat confdefs.h >>conftest.$ac_ext |
|
22646 cat >>conftest.$ac_ext <<_ACEOF |
|
22647 /* end confdefs.h. */ |
|
22648 |
|
22649 /* Override any GCC internal prototype to avoid an error. |
|
22650 Use char because int might match the return type of a GCC |
|
22651 builtin and then its argument prototype would still apply. */ |
|
22652 #ifdef __cplusplus |
|
22653 extern "C" |
|
22654 #endif |
|
22655 char readline (); |
|
22656 int |
|
22657 main () |
|
22658 { |
|
22659 return readline (); |
|
22660 ; |
|
22661 return 0; |
|
22662 } |
|
22663 _ACEOF |
|
22664 rm -f conftest.$ac_objext conftest$ac_exeext |
|
22665 if { (ac_try="$ac_link" |
|
22666 case "(($ac_try" in |
|
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22668 *) ac_try_echo=$ac_try;; |
|
22669 esac |
|
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22671 (eval "$ac_link") 2>conftest.er1 |
|
22672 ac_status=$? |
|
22673 grep -v '^ *+' conftest.er1 >conftest.err |
|
22674 rm -f conftest.er1 |
|
22675 cat conftest.err >&5 |
|
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22677 (exit $ac_status); } && { |
|
22678 test -z "$ac_c_werror_flag" || |
|
22679 test ! -s conftest.err |
|
22680 } && test -s conftest$ac_exeext && |
|
22681 $as_test_x conftest$ac_exeext; then |
|
22682 ac_cv_lib_readline_readline=yes |
|
22683 else |
|
22684 echo "$as_me: failed program was:" >&5 |
|
22685 sed 's/^/| /' conftest.$ac_ext >&5 |
|
22686 |
|
22687 ac_cv_lib_readline_readline=no |
|
22688 fi |
|
22689 |
|
22690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
22691 conftest$ac_exeext conftest.$ac_ext |
|
22692 LIBS=$ac_check_lib_save_LIBS |
|
22693 fi |
|
22694 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
|
22695 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
|
22696 if test $ac_cv_lib_readline_readline = yes; then |
|
22697 HAVE_LIB_READLINE=1 |
|
22698 fi |
|
22699 |
|
22700 |
|
22701 # This facilitates -ansi builds under Linux |
|
22702 |
|
22703 if test "x$enable_shared" = "xno" ; then |
|
22704 |
|
22705 cat >>confdefs.h <<\_ACEOF |
|
22706 #define PCRE_STATIC 1 |
|
22707 _ACEOF |
|
22708 |
|
22709 fi |
|
22710 |
|
22711 # Here is where pcre specific defines are handled |
|
22712 |
|
22713 if test "$enable_utf8" = "yes"; then |
|
22714 |
|
22715 cat >>confdefs.h <<\_ACEOF |
|
22716 #define SUPPORT_UTF8 |
|
22717 _ACEOF |
|
22718 |
|
22719 fi |
|
22720 |
|
22721 if test "$enable_unicode_properties" = "yes"; then |
|
22722 |
|
22723 cat >>confdefs.h <<\_ACEOF |
|
22724 #define SUPPORT_UCP |
|
22725 _ACEOF |
|
22726 |
|
22727 fi |
|
22728 |
|
22729 if test "$enable_stack_for_recursion" = "no"; then |
|
22730 |
|
22731 cat >>confdefs.h <<\_ACEOF |
|
22732 #define NO_RECURSE |
|
22733 _ACEOF |
|
22734 |
|
22735 fi |
|
22736 |
|
22737 if test "$enable_pcregrep_libz" = "yes"; then |
|
22738 |
|
22739 cat >>confdefs.h <<\_ACEOF |
|
22740 #define SUPPORT_LIBZ |
|
22741 _ACEOF |
|
22742 |
|
22743 fi |
|
22744 |
|
22745 if test "$enable_pcregrep_libbz2" = "yes"; then |
|
22746 |
|
22747 cat >>confdefs.h <<\_ACEOF |
|
22748 #define SUPPORT_LIBBZ2 |
|
22749 _ACEOF |
|
22750 |
|
22751 fi |
|
22752 |
|
22753 if test "$enable_pcretest_libreadline" = "yes"; then |
|
22754 |
|
22755 cat >>confdefs.h <<\_ACEOF |
|
22756 #define SUPPORT_LIBREADLINE |
|
22757 _ACEOF |
|
22758 |
|
22759 fi |
|
22760 |
|
22761 |
|
22762 cat >>confdefs.h <<_ACEOF |
|
22763 #define NEWLINE $ac_pcre_newline_value |
|
22764 _ACEOF |
|
22765 |
|
22766 |
|
22767 if test "$enable_bsr_anycrlf" = "yes"; then |
|
22768 |
|
22769 cat >>confdefs.h <<\_ACEOF |
|
22770 #define BSR_ANYCRLF |
|
22771 _ACEOF |
|
22772 |
|
22773 fi |
|
22774 |
|
22775 |
|
22776 cat >>confdefs.h <<_ACEOF |
|
22777 #define LINK_SIZE $with_link_size |
|
22778 _ACEOF |
|
22779 |
|
22780 |
|
22781 |
|
22782 cat >>confdefs.h <<_ACEOF |
|
22783 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold |
|
22784 _ACEOF |
|
22785 |
|
22786 |
|
22787 |
|
22788 cat >>confdefs.h <<_ACEOF |
|
22789 #define MATCH_LIMIT $with_match_limit |
|
22790 _ACEOF |
|
22791 |
|
22792 |
|
22793 |
|
22794 cat >>confdefs.h <<_ACEOF |
|
22795 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion |
|
22796 _ACEOF |
|
22797 |
|
22798 |
|
22799 |
|
22800 cat >>confdefs.h <<\_ACEOF |
|
22801 #define MAX_NAME_SIZE 32 |
|
22802 _ACEOF |
|
22803 |
|
22804 |
|
22805 |
|
22806 cat >>confdefs.h <<\_ACEOF |
|
22807 #define MAX_NAME_COUNT 10000 |
|
22808 _ACEOF |
|
22809 |
|
22810 |
|
22811 |
|
22812 |
|
22813 |
|
22814 if test "$enable_ebcdic" = "yes"; then |
|
22815 |
|
22816 cat >>confdefs.h <<_ACEOF |
|
22817 #define EBCDIC |
|
22818 _ACEOF |
|
22819 |
|
22820 fi |
|
22821 |
|
22822 # Platform specific issues |
|
22823 NO_UNDEFINED= |
|
22824 EXPORT_ALL_SYMBOLS= |
|
22825 case $host_os in |
|
22826 cygwin* | mingw* ) |
|
22827 if test X"$enable_shared" = Xyes; then |
|
22828 NO_UNDEFINED="-no-undefined" |
|
22829 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols" |
|
22830 fi |
|
22831 ;; |
|
22832 esac |
|
22833 |
|
22834 # The extra LDFLAGS for each particular library |
|
22835 # (Note: The libpcre*_version bits are m4 variables, assigned above) |
|
22836 |
|
22837 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \ |
|
22838 $NO_UNDEFINED -version-info 0:1:0" |
|
22839 |
|
22840 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \ |
|
22841 $NO_UNDEFINED -version-info 0:0:0" |
|
22842 |
|
22843 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \ |
|
22844 $NO_UNDEFINED -version-info 0:0:0 \ |
|
22845 $EXPORT_ALL_SYMBOLS" |
|
22846 |
|
22847 |
|
22848 |
|
22849 |
|
22850 |
|
22851 # When we run 'make distcheck', use these arguments. |
|
22852 DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties" |
|
22853 |
|
22854 |
|
22855 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is |
|
22856 # specified, the relevant library is available. If so, add it to LIBS. |
|
22857 |
|
22858 if test "$enable_pcregrep_libz" = "yes"; then |
|
22859 if test "$HAVE_ZLIB_H" != "1"; then |
|
22860 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found" |
|
22861 exit 1 |
|
22862 fi |
|
22863 if test "$HAVE_LIBZ" != "1"; then |
|
22864 echo "** Cannot --enable-pcregrep-libz because libz was not found" |
|
22865 exit 1 |
|
22866 fi |
|
22867 if test "$LIBS" = ""; then LIBS=-lz; else LIBS="$LIBS -lz"; fi |
|
22868 fi |
|
22869 |
|
22870 if test "$enable_pcregrep_libbz2" = "yes"; then |
|
22871 if test "$HAVE_BZLIB_H" != "1"; then |
|
22872 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found" |
|
22873 exit 1 |
|
22874 fi |
|
22875 if test "$HAVE_LIBBZ2" != "1"; then |
|
22876 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found" |
|
22877 exit 1 |
|
22878 fi |
|
22879 if test "$LIBS" = ""; then LIBS=-lbz2; else LIBS="$LIBS -lbz2"; fi |
|
22880 fi |
|
22881 |
|
22882 # Similarly for --enable-pcretest-readline |
|
22883 |
|
22884 if test "$enable_pcretest_libreadline" = "yes"; then |
|
22885 if test "$HAVE_READLINE_H" != "1"; then |
|
22886 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found." |
|
22887 exit 1 |
|
22888 fi |
|
22889 if test "$HAVE_HISTORY_H" != "1"; then |
|
22890 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found." |
|
22891 exit 1 |
|
22892 fi |
|
22893 if test "$LIBS" = ""; then LIBS=-lreadline; else LIBS="$LIBS -lreadline"; fi |
|
22894 fi |
|
22895 |
|
22896 # Produce these files, in addition to config.h. |
|
22897 ac_config_files="$ac_config_files Makefile libpcre.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h" |
|
22898 |
|
22899 |
|
22900 # Make the generated script files executable. |
|
22901 ac_config_commands="$ac_config_commands script-chmod" |
|
22902 |
|
22903 |
|
22904 # Make sure that pcre_chartables.c is removed in case the method for |
|
22905 # creating it was changed by reconfiguration. |
|
22906 ac_config_commands="$ac_config_commands delete-old-chartables" |
|
22907 |
|
22908 |
|
22909 cat >confcache <<\_ACEOF |
|
22910 # This file is a shell script that caches the results of configure |
|
22911 # tests run on this system so they can be shared between configure |
|
22912 # scripts and configure runs, see configure's option --config-cache. |
|
22913 # It is not useful on other systems. If it contains results you don't |
|
22914 # want to keep, you may remove or edit it. |
|
22915 # |
|
22916 # config.status only pays attention to the cache file if you give it |
|
22917 # the --recheck option to rerun configure. |
|
22918 # |
|
22919 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
22920 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
22921 # following values. |
|
22922 |
|
22923 _ACEOF |
|
22924 |
|
22925 # The following way of writing the cache mishandles newlines in values, |
|
22926 # but we know of no workaround that is simple, portable, and efficient. |
|
22927 # So, we kill variables containing newlines. |
|
22928 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
22929 # and sets the high bit in the cache file unless we assign to the vars. |
|
22930 ( |
|
22931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
22932 eval ac_val=\$$ac_var |
|
22933 case $ac_val in #( |
|
22934 *${as_nl}*) |
|
22935 case $ac_var in #( |
|
22936 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
22937 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
22938 esac |
|
22939 case $ac_var in #( |
|
22940 _ | IFS | as_nl) ;; #( |
|
22941 *) $as_unset $ac_var ;; |
|
22942 esac ;; |
|
22943 esac |
|
22944 done |
|
22945 |
|
22946 (set) 2>&1 | |
|
22947 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
22948 *${as_nl}ac_space=\ *) |
|
22949 # `set' does not quote correctly, so add quotes (double-quote |
|
22950 # substitution turns \\\\ into \\, and sed turns \\ into \). |
|
22951 sed -n \ |
|
22952 "s/'/'\\\\''/g; |
|
22953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
22954 ;; #( |
|
22955 *) |
|
22956 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
22957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
22958 ;; |
|
22959 esac | |
|
22960 sort |
|
22961 ) | |
|
22962 sed ' |
|
22963 /^ac_cv_env_/b end |
|
22964 t clear |
|
22965 :clear |
|
22966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
22967 t end |
|
22968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
22969 :end' >>confcache |
|
22970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
22971 if test -w "$cache_file"; then |
|
22972 test "x$cache_file" != "x/dev/null" && |
|
22973 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
|
22974 echo "$as_me: updating cache $cache_file" >&6;} |
|
22975 cat confcache >$cache_file |
|
22976 else |
|
22977 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
|
22978 echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
22979 fi |
|
22980 fi |
|
22981 rm -f confcache |
|
22982 |
|
22983 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
22984 # Let make expand exec_prefix. |
|
22985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
22986 |
|
22987 DEFS=-DHAVE_CONFIG_H |
|
22988 |
|
22989 ac_libobjs= |
|
22990 ac_ltlibobjs= |
|
22991 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
22992 # 1. Remove the extension, and $U if already installed. |
|
22993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
22994 ac_i=`echo "$ac_i" | sed "$ac_script"` |
|
22995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
22996 # will be set to the directory where LIBOBJS objects are built. |
|
22997 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
22998 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
|
22999 done |
|
23000 LIBOBJS=$ac_libobjs |
|
23001 |
|
23002 LTLIBOBJS=$ac_ltlibobjs |
|
23003 |
|
23004 |
|
23005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
23006 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
23007 Usually this means the macro was only invoked conditionally." >&5 |
|
23008 echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
23009 Usually this means the macro was only invoked conditionally." >&2;} |
|
23010 { (exit 1); exit 1; }; } |
|
23011 fi |
|
23012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
23013 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
23014 Usually this means the macro was only invoked conditionally." >&5 |
|
23015 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
23016 Usually this means the macro was only invoked conditionally." >&2;} |
|
23017 { (exit 1); exit 1; }; } |
|
23018 fi |
|
23019 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
23020 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
|
23021 Usually this means the macro was only invoked conditionally." >&5 |
|
23022 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
|
23023 Usually this means the macro was only invoked conditionally." >&2;} |
|
23024 { (exit 1); exit 1; }; } |
|
23025 fi |
|
23026 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then |
|
23027 { { echo "$as_me:$LINENO: error: conditional \"WITH_PCRE_CPP\" was never defined. |
|
23028 Usually this means the macro was only invoked conditionally." >&5 |
|
23029 echo "$as_me: error: conditional \"WITH_PCRE_CPP\" was never defined. |
|
23030 Usually this means the macro was only invoked conditionally." >&2;} |
|
23031 { (exit 1); exit 1; }; } |
|
23032 fi |
|
23033 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then |
|
23034 { { echo "$as_me:$LINENO: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined. |
|
23035 Usually this means the macro was only invoked conditionally." >&5 |
|
23036 echo "$as_me: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined. |
|
23037 Usually this means the macro was only invoked conditionally." >&2;} |
|
23038 { (exit 1); exit 1; }; } |
|
23039 fi |
|
23040 |
|
23041 : ${CONFIG_STATUS=./config.status} |
|
23042 ac_clean_files_save=$ac_clean_files |
|
23043 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
23044 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
23045 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
23046 cat >$CONFIG_STATUS <<_ACEOF |
|
23047 #! $SHELL |
|
23048 # Generated by $as_me. |
|
23049 # Run this file to recreate the current configuration. |
|
23050 # Compiler output produced by configure, useful for debugging |
|
23051 # configure, is in config.log if it exists. |
|
23052 |
|
23053 debug=false |
|
23054 ac_cs_recheck=false |
|
23055 ac_cs_silent=false |
|
23056 SHELL=\${CONFIG_SHELL-$SHELL} |
|
23057 _ACEOF |
|
23058 |
|
23059 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23060 ## --------------------- ## |
|
23061 ## M4sh Initialization. ## |
|
23062 ## --------------------- ## |
|
23063 |
|
23064 # Be more Bourne compatible |
|
23065 DUALCASE=1; export DUALCASE # for MKS sh |
|
23066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
23067 emulate sh |
|
23068 NULLCMD=: |
|
23069 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
23070 # is contrary to our usage. Disable this feature. |
|
23071 alias -g '${1+"$@"}'='"$@"' |
|
23072 setopt NO_GLOB_SUBST |
|
23073 else |
|
23074 case `(set -o) 2>/dev/null` in |
|
23075 *posix*) set -o posix ;; |
|
23076 esac |
|
23077 |
|
23078 fi |
|
23079 |
|
23080 |
|
23081 |
|
23082 |
|
23083 # PATH needs CR |
|
23084 # Avoid depending upon Character Ranges. |
|
23085 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
23086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
23087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
23088 as_cr_digits='0123456789' |
|
23089 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
23090 |
|
23091 # The user is always right. |
|
23092 if test "${PATH_SEPARATOR+set}" != set; then |
|
23093 echo "#! /bin/sh" >conf$$.sh |
|
23094 echo "exit 0" >>conf$$.sh |
|
23095 chmod +x conf$$.sh |
|
23096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
23097 PATH_SEPARATOR=';' |
|
23098 else |
|
23099 PATH_SEPARATOR=: |
|
23100 fi |
|
23101 rm -f conf$$.sh |
|
23102 fi |
|
23103 |
|
23104 # Support unset when possible. |
|
23105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
23106 as_unset=unset |
|
23107 else |
|
23108 as_unset=false |
|
23109 fi |
|
23110 |
|
23111 |
|
23112 # IFS |
|
23113 # We need space, tab and new line, in precisely that order. Quoting is |
|
23114 # there to prevent editors from complaining about space-tab. |
|
23115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
23116 # splitting by setting IFS to empty value.) |
|
23117 as_nl=' |
|
23118 ' |
|
23119 IFS=" "" $as_nl" |
|
23120 |
|
23121 # Find who we are. Look in the path if we contain no directory separator. |
|
23122 case $0 in |
|
23123 *[\\/]* ) as_myself=$0 ;; |
|
23124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
23125 for as_dir in $PATH |
|
23126 do |
|
23127 IFS=$as_save_IFS |
|
23128 test -z "$as_dir" && as_dir=. |
|
23129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
23130 done |
|
23131 IFS=$as_save_IFS |
|
23132 |
|
23133 ;; |
|
23134 esac |
|
23135 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
23136 # in which case we are not to be found in the path. |
|
23137 if test "x$as_myself" = x; then |
|
23138 as_myself=$0 |
|
23139 fi |
|
23140 if test ! -f "$as_myself"; then |
|
23141 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
23142 { (exit 1); exit 1; } |
|
23143 fi |
|
23144 |
|
23145 # Work around bugs in pre-3.0 UWIN ksh. |
|
23146 for as_var in ENV MAIL MAILPATH |
|
23147 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
23148 done |
|
23149 PS1='$ ' |
|
23150 PS2='> ' |
|
23151 PS4='+ ' |
|
23152 |
|
23153 # NLS nuisances. |
|
23154 for as_var in \ |
|
23155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
23156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
23157 LC_TELEPHONE LC_TIME |
|
23158 do |
|
23159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
23160 eval $as_var=C; export $as_var |
|
23161 else |
|
23162 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
23163 fi |
|
23164 done |
|
23165 |
|
23166 # Required to use basename. |
|
23167 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
23168 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
23169 as_expr=expr |
|
23170 else |
|
23171 as_expr=false |
|
23172 fi |
|
23173 |
|
23174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
23175 as_basename=basename |
|
23176 else |
|
23177 as_basename=false |
|
23178 fi |
|
23179 |
|
23180 |
|
23181 # Name of the executable. |
|
23182 as_me=`$as_basename -- "$0" || |
|
23183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
23184 X"$0" : 'X\(//\)$' \| \ |
|
23185 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
23186 echo X/"$0" | |
|
23187 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
23188 s//\1/ |
|
23189 q |
|
23190 } |
|
23191 /^X\/\(\/\/\)$/{ |
|
23192 s//\1/ |
|
23193 q |
|
23194 } |
|
23195 /^X\/\(\/\).*/{ |
|
23196 s//\1/ |
|
23197 q |
|
23198 } |
|
23199 s/.*/./; q'` |
|
23200 |
|
23201 # CDPATH. |
|
23202 $as_unset CDPATH |
|
23203 |
|
23204 |
|
23205 |
|
23206 as_lineno_1=$LINENO |
|
23207 as_lineno_2=$LINENO |
|
23208 test "x$as_lineno_1" != "x$as_lineno_2" && |
|
23209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
23210 |
|
23211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
23212 # uniformly replaced by the line number. The first 'sed' inserts a |
|
23213 # line-number line after each line using $LINENO; the second 'sed' |
|
23214 # does the real work. The second script uses 'N' to pair each |
|
23215 # line-number line with the line containing $LINENO, and appends |
|
23216 # trailing '-' during substitution so that $LINENO is not a special |
|
23217 # case at line end. |
|
23218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
23219 # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
23220 # E. McMahon (1931-1989) for sed's syntax. :-) |
|
23221 sed -n ' |
|
23222 p |
|
23223 /[$]LINENO/= |
|
23224 ' <$as_myself | |
|
23225 sed ' |
|
23226 s/[$]LINENO.*/&-/ |
|
23227 t lineno |
|
23228 b |
|
23229 :lineno |
|
23230 N |
|
23231 :loop |
|
23232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
23233 t loop |
|
23234 s/-\n.*// |
|
23235 ' >$as_me.lineno && |
|
23236 chmod +x "$as_me.lineno" || |
|
23237 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
23238 { (exit 1); exit 1; }; } |
|
23239 |
|
23240 # Don't try to exec as it changes $[0], causing all sort of problems |
|
23241 # (the dirname of $[0] is not the place where we might find the |
|
23242 # original and so on. Autoconf is especially sensitive to this). |
|
23243 . "./$as_me.lineno" |
|
23244 # Exit status is that of the last command. |
|
23245 exit |
|
23246 } |
|
23247 |
|
23248 |
|
23249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
23250 as_dirname=dirname |
|
23251 else |
|
23252 as_dirname=false |
|
23253 fi |
|
23254 |
|
23255 ECHO_C= ECHO_N= ECHO_T= |
|
23256 case `echo -n x` in |
|
23257 -n*) |
|
23258 case `echo 'x\c'` in |
|
23259 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
23260 *) ECHO_C='\c';; |
|
23261 esac;; |
|
23262 *) |
|
23263 ECHO_N='-n';; |
|
23264 esac |
|
23265 |
|
23266 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
23267 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
23268 as_expr=expr |
|
23269 else |
|
23270 as_expr=false |
|
23271 fi |
|
23272 |
|
23273 rm -f conf$$ conf$$.exe conf$$.file |
|
23274 if test -d conf$$.dir; then |
|
23275 rm -f conf$$.dir/conf$$.file |
|
23276 else |
|
23277 rm -f conf$$.dir |
|
23278 mkdir conf$$.dir |
|
23279 fi |
|
23280 echo >conf$$.file |
|
23281 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
23282 as_ln_s='ln -s' |
|
23283 # ... but there are two gotchas: |
|
23284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
23285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
23286 # In both cases, we have to default to `cp -p'. |
|
23287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
23288 as_ln_s='cp -p' |
|
23289 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
23290 as_ln_s=ln |
|
23291 else |
|
23292 as_ln_s='cp -p' |
|
23293 fi |
|
23294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
23295 rmdir conf$$.dir 2>/dev/null |
|
23296 |
|
23297 if mkdir -p . 2>/dev/null; then |
|
23298 as_mkdir_p=: |
|
23299 else |
|
23300 test -d ./-p && rmdir ./-p |
|
23301 as_mkdir_p=false |
|
23302 fi |
|
23303 |
|
23304 if test -x / >/dev/null 2>&1; then |
|
23305 as_test_x='test -x' |
|
23306 else |
|
23307 if ls -dL / >/dev/null 2>&1; then |
|
23308 as_ls_L_option=L |
|
23309 else |
|
23310 as_ls_L_option= |
|
23311 fi |
|
23312 as_test_x=' |
|
23313 eval sh -c '\'' |
|
23314 if test -d "$1"; then |
|
23315 test -d "$1/."; |
|
23316 else |
|
23317 case $1 in |
|
23318 -*)set "./$1";; |
|
23319 esac; |
|
23320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
23321 ???[sx]*):;;*)false;;esac;fi |
|
23322 '\'' sh |
|
23323 ' |
|
23324 fi |
|
23325 as_executable_p=$as_test_x |
|
23326 |
|
23327 # Sed expression to map a string onto a valid CPP name. |
|
23328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
23329 |
|
23330 # Sed expression to map a string onto a valid variable name. |
|
23331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
23332 |
|
23333 |
|
23334 exec 6>&1 |
|
23335 |
|
23336 # Save the log message, to keep $[0] and so on meaningful, and to |
|
23337 # report actual input values of CONFIG_FILES etc. instead of their |
|
23338 # values after options handling. |
|
23339 ac_log=" |
|
23340 This file was extended by PCRE $as_me 7.8, which was |
|
23341 generated by GNU Autoconf 2.61. Invocation command line was |
|
23342 |
|
23343 CONFIG_FILES = $CONFIG_FILES |
|
23344 CONFIG_HEADERS = $CONFIG_HEADERS |
|
23345 CONFIG_LINKS = $CONFIG_LINKS |
|
23346 CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
23347 $ $0 $@ |
|
23348 |
|
23349 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
23350 " |
|
23351 |
|
23352 _ACEOF |
|
23353 |
|
23354 cat >>$CONFIG_STATUS <<_ACEOF |
|
23355 # Files that config.status was made for. |
|
23356 config_files="$ac_config_files" |
|
23357 config_headers="$ac_config_headers" |
|
23358 config_commands="$ac_config_commands" |
|
23359 |
|
23360 _ACEOF |
|
23361 |
|
23362 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23363 ac_cs_usage="\ |
|
23364 \`$as_me' instantiates files from templates according to the |
|
23365 current configuration. |
|
23366 |
|
23367 Usage: $0 [OPTIONS] [FILE]... |
|
23368 |
|
23369 -h, --help print this help, then exit |
|
23370 -V, --version print version number and configuration settings, then exit |
|
23371 -q, --quiet do not print progress messages |
|
23372 -d, --debug don't remove temporary files |
|
23373 --recheck update $as_me by reconfiguring in the same conditions |
|
23374 --file=FILE[:TEMPLATE] |
|
23375 instantiate the configuration file FILE |
|
23376 --header=FILE[:TEMPLATE] |
|
23377 instantiate the configuration header FILE |
|
23378 |
|
23379 Configuration files: |
|
23380 $config_files |
|
23381 |
|
23382 Configuration headers: |
|
23383 $config_headers |
|
23384 |
|
23385 Configuration commands: |
|
23386 $config_commands |
|
23387 |
|
23388 Report bugs to <bug-autoconf@gnu.org>." |
|
23389 |
|
23390 _ACEOF |
|
23391 cat >>$CONFIG_STATUS <<_ACEOF |
|
23392 ac_cs_version="\\ |
|
23393 PCRE config.status 7.8 |
|
23394 configured by $0, generated by GNU Autoconf 2.61, |
|
23395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
23396 |
|
23397 Copyright (C) 2006 Free Software Foundation, Inc. |
|
23398 This config.status script is free software; the Free Software Foundation |
|
23399 gives unlimited permission to copy, distribute and modify it." |
|
23400 |
|
23401 ac_pwd='$ac_pwd' |
|
23402 srcdir='$srcdir' |
|
23403 INSTALL='$INSTALL' |
|
23404 MKDIR_P='$MKDIR_P' |
|
23405 _ACEOF |
|
23406 |
|
23407 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23408 # If no file are specified by the user, then we need to provide default |
|
23409 # value. By we need to know if files were specified by the user. |
|
23410 ac_need_defaults=: |
|
23411 while test $# != 0 |
|
23412 do |
|
23413 case $1 in |
|
23414 --*=*) |
|
23415 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
23416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
23417 ac_shift=: |
|
23418 ;; |
|
23419 *) |
|
23420 ac_option=$1 |
|
23421 ac_optarg=$2 |
|
23422 ac_shift=shift |
|
23423 ;; |
|
23424 esac |
|
23425 |
|
23426 case $ac_option in |
|
23427 # Handling of the options. |
|
23428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
23429 ac_cs_recheck=: ;; |
|
23430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
23431 echo "$ac_cs_version"; exit ;; |
|
23432 --debug | --debu | --deb | --de | --d | -d ) |
|
23433 debug=: ;; |
|
23434 --file | --fil | --fi | --f ) |
|
23435 $ac_shift |
|
23436 CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
23437 ac_need_defaults=false;; |
|
23438 --header | --heade | --head | --hea ) |
|
23439 $ac_shift |
|
23440 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
23441 ac_need_defaults=false;; |
|
23442 --he | --h) |
|
23443 # Conflict between --help and --header |
|
23444 { echo "$as_me: error: ambiguous option: $1 |
|
23445 Try \`$0 --help' for more information." >&2 |
|
23446 { (exit 1); exit 1; }; };; |
|
23447 --help | --hel | -h ) |
|
23448 echo "$ac_cs_usage"; exit ;; |
|
23449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
23450 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
23451 ac_cs_silent=: ;; |
|
23452 |
|
23453 # This is an error. |
|
23454 -*) { echo "$as_me: error: unrecognized option: $1 |
|
23455 Try \`$0 --help' for more information." >&2 |
|
23456 { (exit 1); exit 1; }; } ;; |
|
23457 |
|
23458 *) ac_config_targets="$ac_config_targets $1" |
|
23459 ac_need_defaults=false ;; |
|
23460 |
|
23461 esac |
|
23462 shift |
|
23463 done |
|
23464 |
|
23465 ac_configure_extra_args= |
|
23466 |
|
23467 if $ac_cs_silent; then |
|
23468 exec 6>/dev/null |
|
23469 ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
23470 fi |
|
23471 |
|
23472 _ACEOF |
|
23473 cat >>$CONFIG_STATUS <<_ACEOF |
|
23474 if \$ac_cs_recheck; then |
|
23475 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
23476 CONFIG_SHELL=$SHELL |
|
23477 export CONFIG_SHELL |
|
23478 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
23479 fi |
|
23480 |
|
23481 _ACEOF |
|
23482 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23483 exec 5>>config.log |
|
23484 { |
|
23485 echo |
|
23486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
23487 ## Running $as_me. ## |
|
23488 _ASBOX |
|
23489 echo "$ac_log" |
|
23490 } >&5 |
|
23491 |
|
23492 _ACEOF |
|
23493 cat >>$CONFIG_STATUS <<_ACEOF |
|
23494 # |
|
23495 # INIT-COMMANDS |
|
23496 # |
|
23497 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
23498 |
|
23499 _ACEOF |
|
23500 |
|
23501 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23502 |
|
23503 # Handling of arguments. |
|
23504 for ac_config_target in $ac_config_targets |
|
23505 do |
|
23506 case $ac_config_target in |
|
23507 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
23508 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
23509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
23510 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;; |
|
23511 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;; |
|
23512 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;; |
|
23513 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;; |
|
23514 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;; |
|
23515 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;; |
|
23516 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;; |
|
23517 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;; |
|
23518 |
|
23519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
23520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
23521 { (exit 1); exit 1; }; };; |
|
23522 esac |
|
23523 done |
|
23524 |
|
23525 |
|
23526 # If the user did not use the arguments to specify the items to instantiate, |
|
23527 # then the envvar interface is used. Set only those that are not. |
|
23528 # We use the long form for the default assignment because of an extremely |
|
23529 # bizarre bug on SunOS 4.1.3. |
|
23530 if $ac_need_defaults; then |
|
23531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
23532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
23533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
23534 fi |
|
23535 |
|
23536 # Have a temporary directory for convenience. Make it in the build tree |
|
23537 # simply because there is no reason against having it here, and in addition, |
|
23538 # creating and moving files from /tmp can sometimes cause problems. |
|
23539 # Hook for its removal unless debugging. |
|
23540 # Note that there is a small window in which the directory will not be cleaned: |
|
23541 # after its creation but before its name has been assigned to `$tmp'. |
|
23542 $debug || |
|
23543 { |
|
23544 tmp= |
|
23545 trap 'exit_status=$? |
|
23546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
23547 ' 0 |
|
23548 trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
23549 } |
|
23550 # Create a (secure) tmp directory for tmp files. |
|
23551 |
|
23552 { |
|
23553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
23554 test -n "$tmp" && test -d "$tmp" |
|
23555 } || |
|
23556 { |
|
23557 tmp=./conf$$-$RANDOM |
|
23558 (umask 077 && mkdir "$tmp") |
|
23559 } || |
|
23560 { |
|
23561 echo "$me: cannot create a temporary directory in ." >&2 |
|
23562 { (exit 1); exit 1; } |
|
23563 } |
|
23564 |
|
23565 # |
|
23566 # Set up the sed scripts for CONFIG_FILES section. |
|
23567 # |
|
23568 |
|
23569 # No need to generate the scripts if there are no CONFIG_FILES. |
|
23570 # This happens for instance when ./config.status config.h |
|
23571 if test -n "$CONFIG_FILES"; then |
|
23572 |
|
23573 _ACEOF |
|
23574 |
|
23575 |
|
23576 |
|
23577 ac_delim='%!_!# ' |
|
23578 for ac_last_try in false false false false false :; do |
|
23579 cat >conf$$subs.sed <<_ACEOF |
|
23580 SHELL!$SHELL$ac_delim |
|
23581 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
23582 PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
23583 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
23584 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
23585 PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
23586 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
23587 exec_prefix!$exec_prefix$ac_delim |
|
23588 prefix!$prefix$ac_delim |
|
23589 program_transform_name!$program_transform_name$ac_delim |
|
23590 bindir!$bindir$ac_delim |
|
23591 sbindir!$sbindir$ac_delim |
|
23592 libexecdir!$libexecdir$ac_delim |
|
23593 datarootdir!$datarootdir$ac_delim |
|
23594 datadir!$datadir$ac_delim |
|
23595 sysconfdir!$sysconfdir$ac_delim |
|
23596 sharedstatedir!$sharedstatedir$ac_delim |
|
23597 localstatedir!$localstatedir$ac_delim |
|
23598 includedir!$includedir$ac_delim |
|
23599 oldincludedir!$oldincludedir$ac_delim |
|
23600 docdir!$docdir$ac_delim |
|
23601 infodir!$infodir$ac_delim |
|
23602 htmldir!$htmldir$ac_delim |
|
23603 dvidir!$dvidir$ac_delim |
|
23604 pdfdir!$pdfdir$ac_delim |
|
23605 psdir!$psdir$ac_delim |
|
23606 libdir!$libdir$ac_delim |
|
23607 localedir!$localedir$ac_delim |
|
23608 mandir!$mandir$ac_delim |
|
23609 DEFS!$DEFS$ac_delim |
|
23610 ECHO_C!$ECHO_C$ac_delim |
|
23611 ECHO_N!$ECHO_N$ac_delim |
|
23612 ECHO_T!$ECHO_T$ac_delim |
|
23613 LIBS!$LIBS$ac_delim |
|
23614 build_alias!$build_alias$ac_delim |
|
23615 host_alias!$host_alias$ac_delim |
|
23616 target_alias!$target_alias$ac_delim |
|
23617 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
|
23618 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
|
23619 INSTALL_DATA!$INSTALL_DATA$ac_delim |
|
23620 am__isrc!$am__isrc$ac_delim |
|
23621 CYGPATH_W!$CYGPATH_W$ac_delim |
|
23622 PACKAGE!$PACKAGE$ac_delim |
|
23623 VERSION!$VERSION$ac_delim |
|
23624 ACLOCAL!$ACLOCAL$ac_delim |
|
23625 AUTOCONF!$AUTOCONF$ac_delim |
|
23626 AUTOMAKE!$AUTOMAKE$ac_delim |
|
23627 AUTOHEADER!$AUTOHEADER$ac_delim |
|
23628 MAKEINFO!$MAKEINFO$ac_delim |
|
23629 install_sh!$install_sh$ac_delim |
|
23630 STRIP!$STRIP$ac_delim |
|
23631 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
|
23632 mkdir_p!$mkdir_p$ac_delim |
|
23633 AWK!$AWK$ac_delim |
|
23634 SET_MAKE!$SET_MAKE$ac_delim |
|
23635 am__leading_dot!$am__leading_dot$ac_delim |
|
23636 AMTAR!$AMTAR$ac_delim |
|
23637 am__tar!$am__tar$ac_delim |
|
23638 am__untar!$am__untar$ac_delim |
|
23639 CC!$CC$ac_delim |
|
23640 CFLAGS!$CFLAGS$ac_delim |
|
23641 LDFLAGS!$LDFLAGS$ac_delim |
|
23642 CPPFLAGS!$CPPFLAGS$ac_delim |
|
23643 ac_ct_CC!$ac_ct_CC$ac_delim |
|
23644 EXEEXT!$EXEEXT$ac_delim |
|
23645 OBJEXT!$OBJEXT$ac_delim |
|
23646 DEPDIR!$DEPDIR$ac_delim |
|
23647 am__include!$am__include$ac_delim |
|
23648 am__quote!$am__quote$ac_delim |
|
23649 AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
|
23650 AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
|
23651 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
|
23652 CCDEPMODE!$CCDEPMODE$ac_delim |
|
23653 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
|
23654 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
|
23655 CXX!$CXX$ac_delim |
|
23656 CXXFLAGS!$CXXFLAGS$ac_delim |
|
23657 ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
23658 CXXDEPMODE!$CXXDEPMODE$ac_delim |
|
23659 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
|
23660 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
|
23661 build!$build$ac_delim |
|
23662 build_cpu!$build_cpu$ac_delim |
|
23663 build_vendor!$build_vendor$ac_delim |
|
23664 build_os!$build_os$ac_delim |
|
23665 host!$host$ac_delim |
|
23666 host_cpu!$host_cpu$ac_delim |
|
23667 host_vendor!$host_vendor$ac_delim |
|
23668 host_os!$host_os$ac_delim |
|
23669 SED!$SED$ac_delim |
|
23670 GREP!$GREP$ac_delim |
|
23671 EGREP!$EGREP$ac_delim |
|
23672 LN_S!$LN_S$ac_delim |
|
23673 ECHO!$ECHO$ac_delim |
|
23674 AR!$AR$ac_delim |
|
23675 RANLIB!$RANLIB$ac_delim |
|
23676 DSYMUTIL!$DSYMUTIL$ac_delim |
|
23677 _ACEOF |
|
23678 |
|
23679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
|
23680 break |
|
23681 elif $ac_last_try; then |
|
23682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
23683 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
23684 { (exit 1); exit 1; }; } |
|
23685 else |
|
23686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
23687 fi |
|
23688 done |
|
23689 |
|
23690 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
23691 if test -n "$ac_eof"; then |
|
23692 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
23693 ac_eof=`expr $ac_eof + 1` |
|
23694 fi |
|
23695 |
|
23696 cat >>$CONFIG_STATUS <<_ACEOF |
|
23697 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
23698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
23699 _ACEOF |
|
23700 sed ' |
|
23701 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
23702 s/^/s,@/; s/!/@,|#_!!_#|/ |
|
23703 :n |
|
23704 t n |
|
23705 s/'"$ac_delim"'$/,g/; t |
|
23706 s/$/\\/; p |
|
23707 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
23708 ' >>$CONFIG_STATUS <conf$$subs.sed |
|
23709 rm -f conf$$subs.sed |
|
23710 cat >>$CONFIG_STATUS <<_ACEOF |
|
23711 CEOF$ac_eof |
|
23712 _ACEOF |
|
23713 |
|
23714 |
|
23715 ac_delim='%!_!# ' |
|
23716 for ac_last_try in false false false false false :; do |
|
23717 cat >conf$$subs.sed <<_ACEOF |
|
23718 NMEDIT!$NMEDIT$ac_delim |
|
23719 DLLTOOL!$DLLTOOL$ac_delim |
|
23720 AS!$AS$ac_delim |
|
23721 OBJDUMP!$OBJDUMP$ac_delim |
|
23722 CPP!$CPP$ac_delim |
|
23723 CXXCPP!$CXXCPP$ac_delim |
|
23724 F77!$F77$ac_delim |
|
23725 FFLAGS!$FFLAGS$ac_delim |
|
23726 ac_ct_F77!$ac_ct_F77$ac_delim |
|
23727 LIBTOOL!$LIBTOOL$ac_delim |
|
23728 PCRE_MAJOR!$PCRE_MAJOR$ac_delim |
|
23729 PCRE_MINOR!$PCRE_MINOR$ac_delim |
|
23730 PCRE_PRERELEASE!$PCRE_PRERELEASE$ac_delim |
|
23731 PCRE_DATE!$PCRE_DATE$ac_delim |
|
23732 pcre_have_type_traits!$pcre_have_type_traits$ac_delim |
|
23733 pcre_have_bits_type_traits!$pcre_have_bits_type_traits$ac_delim |
|
23734 WITH_PCRE_CPP_TRUE!$WITH_PCRE_CPP_TRUE$ac_delim |
|
23735 WITH_PCRE_CPP_FALSE!$WITH_PCRE_CPP_FALSE$ac_delim |
|
23736 WITH_REBUILD_CHARTABLES_TRUE!$WITH_REBUILD_CHARTABLES_TRUE$ac_delim |
|
23737 WITH_REBUILD_CHARTABLES_FALSE!$WITH_REBUILD_CHARTABLES_FALSE$ac_delim |
|
23738 pcre_have_long_long!$pcre_have_long_long$ac_delim |
|
23739 pcre_have_ulong_long!$pcre_have_ulong_long$ac_delim |
|
23740 EXTRA_LIBPCRE_LDFLAGS!$EXTRA_LIBPCRE_LDFLAGS$ac_delim |
|
23741 EXTRA_LIBPCREPOSIX_LDFLAGS!$EXTRA_LIBPCREPOSIX_LDFLAGS$ac_delim |
|
23742 EXTRA_LIBPCRECPP_LDFLAGS!$EXTRA_LIBPCRECPP_LDFLAGS$ac_delim |
|
23743 DISTCHECK_CONFIGURE_FLAGS!$DISTCHECK_CONFIGURE_FLAGS$ac_delim |
|
23744 LIBOBJS!$LIBOBJS$ac_delim |
|
23745 LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
23746 _ACEOF |
|
23747 |
|
23748 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then |
|
23749 break |
|
23750 elif $ac_last_try; then |
|
23751 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
23752 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
23753 { (exit 1); exit 1; }; } |
|
23754 else |
|
23755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
23756 fi |
|
23757 done |
|
23758 |
|
23759 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
23760 if test -n "$ac_eof"; then |
|
23761 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
23762 ac_eof=`expr $ac_eof + 1` |
|
23763 fi |
|
23764 |
|
23765 cat >>$CONFIG_STATUS <<_ACEOF |
|
23766 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
23767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
23768 _ACEOF |
|
23769 sed ' |
|
23770 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
23771 s/^/s,@/; s/!/@,|#_!!_#|/ |
|
23772 :n |
|
23773 t n |
|
23774 s/'"$ac_delim"'$/,g/; t |
|
23775 s/$/\\/; p |
|
23776 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
23777 ' >>$CONFIG_STATUS <conf$$subs.sed |
|
23778 rm -f conf$$subs.sed |
|
23779 cat >>$CONFIG_STATUS <<_ACEOF |
|
23780 :end |
|
23781 s/|#_!!_#|//g |
|
23782 CEOF$ac_eof |
|
23783 _ACEOF |
|
23784 |
|
23785 |
|
23786 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
23787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
23788 # trailing colons and then remove the whole line if VPATH becomes empty |
|
23789 # (actually we leave an empty line to preserve line numbers). |
|
23790 if test "x$srcdir" = x.; then |
|
23791 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
23792 s/:*\$(srcdir):*/:/ |
|
23793 s/:*\${srcdir}:*/:/ |
|
23794 s/:*@srcdir@:*/:/ |
|
23795 s/^\([^=]*=[ ]*\):*/\1/ |
|
23796 s/:*$// |
|
23797 s/^[^=]*=[ ]*$// |
|
23798 }' |
|
23799 fi |
|
23800 |
|
23801 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23802 fi # test -n "$CONFIG_FILES" |
|
23803 |
|
23804 |
|
23805 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
|
23806 do |
|
23807 case $ac_tag in |
|
23808 :[FHLC]) ac_mode=$ac_tag; continue;; |
|
23809 esac |
|
23810 case $ac_mode$ac_tag in |
|
23811 :[FHL]*:*);; |
|
23812 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
23813 echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
23814 { (exit 1); exit 1; }; };; |
|
23815 :[FH]-) ac_tag=-:-;; |
|
23816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
23817 esac |
|
23818 ac_save_IFS=$IFS |
|
23819 IFS=: |
|
23820 set x $ac_tag |
|
23821 IFS=$ac_save_IFS |
|
23822 shift |
|
23823 ac_file=$1 |
|
23824 shift |
|
23825 |
|
23826 case $ac_mode in |
|
23827 :L) ac_source=$1;; |
|
23828 :[FH]) |
|
23829 ac_file_inputs= |
|
23830 for ac_f |
|
23831 do |
|
23832 case $ac_f in |
|
23833 -) ac_f="$tmp/stdin";; |
|
23834 *) # Look for the file first in the build tree, then in the source tree |
|
23835 # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
23836 # because $ac_f cannot contain `:'. |
|
23837 test -f "$ac_f" || |
|
23838 case $ac_f in |
|
23839 [\\/$]*) false;; |
|
23840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
23841 esac || |
|
23842 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
23843 echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
23844 { (exit 1); exit 1; }; };; |
|
23845 esac |
|
23846 ac_file_inputs="$ac_file_inputs $ac_f" |
|
23847 done |
|
23848 |
|
23849 # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
23850 # use $as_me), people would be surprised to read: |
|
23851 # /* config.h. Generated by config.status. */ |
|
23852 configure_input="Generated from "`IFS=: |
|
23853 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
23854 if test x"$ac_file" != x-; then |
|
23855 configure_input="$ac_file. $configure_input" |
|
23856 { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
23857 echo "$as_me: creating $ac_file" >&6;} |
|
23858 fi |
|
23859 |
|
23860 case $ac_tag in |
|
23861 *:-:* | *:-) cat >"$tmp/stdin";; |
|
23862 esac |
|
23863 ;; |
|
23864 esac |
|
23865 |
|
23866 ac_dir=`$as_dirname -- "$ac_file" || |
|
23867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23868 X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
23869 X"$ac_file" : 'X\(//\)$' \| \ |
|
23870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
23871 echo X"$ac_file" | |
|
23872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
23873 s//\1/ |
|
23874 q |
|
23875 } |
|
23876 /^X\(\/\/\)[^/].*/{ |
|
23877 s//\1/ |
|
23878 q |
|
23879 } |
|
23880 /^X\(\/\/\)$/{ |
|
23881 s//\1/ |
|
23882 q |
|
23883 } |
|
23884 /^X\(\/\).*/{ |
|
23885 s//\1/ |
|
23886 q |
|
23887 } |
|
23888 s/.*/./; q'` |
|
23889 { as_dir="$ac_dir" |
|
23890 case $as_dir in #( |
|
23891 -*) as_dir=./$as_dir;; |
|
23892 esac |
|
23893 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
23894 as_dirs= |
|
23895 while :; do |
|
23896 case $as_dir in #( |
|
23897 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
23898 *) as_qdir=$as_dir;; |
|
23899 esac |
|
23900 as_dirs="'$as_qdir' $as_dirs" |
|
23901 as_dir=`$as_dirname -- "$as_dir" || |
|
23902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
23903 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
23904 X"$as_dir" : 'X\(//\)$' \| \ |
|
23905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
23906 echo X"$as_dir" | |
|
23907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
23908 s//\1/ |
|
23909 q |
|
23910 } |
|
23911 /^X\(\/\/\)[^/].*/{ |
|
23912 s//\1/ |
|
23913 q |
|
23914 } |
|
23915 /^X\(\/\/\)$/{ |
|
23916 s//\1/ |
|
23917 q |
|
23918 } |
|
23919 /^X\(\/\).*/{ |
|
23920 s//\1/ |
|
23921 q |
|
23922 } |
|
23923 s/.*/./; q'` |
|
23924 test -d "$as_dir" && break |
|
23925 done |
|
23926 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
23927 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
23928 echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
23929 { (exit 1); exit 1; }; }; } |
|
23930 ac_builddir=. |
|
23931 |
|
23932 case "$ac_dir" in |
|
23933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
23934 *) |
|
23935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
23936 # A ".." for each directory in $ac_dir_suffix. |
|
23937 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
23938 case $ac_top_builddir_sub in |
|
23939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
23940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
23941 esac ;; |
|
23942 esac |
|
23943 ac_abs_top_builddir=$ac_pwd |
|
23944 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
23945 # for backward compatibility: |
|
23946 ac_top_builddir=$ac_top_build_prefix |
|
23947 |
|
23948 case $srcdir in |
|
23949 .) # We are building in place. |
|
23950 ac_srcdir=. |
|
23951 ac_top_srcdir=$ac_top_builddir_sub |
|
23952 ac_abs_top_srcdir=$ac_pwd ;; |
|
23953 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
23954 ac_srcdir=$srcdir$ac_dir_suffix; |
|
23955 ac_top_srcdir=$srcdir |
|
23956 ac_abs_top_srcdir=$srcdir ;; |
|
23957 *) # Relative name. |
|
23958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
23959 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
23960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
23961 esac |
|
23962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
23963 |
|
23964 |
|
23965 case $ac_mode in |
|
23966 :F) |
|
23967 # |
|
23968 # CONFIG_FILE |
|
23969 # |
|
23970 |
|
23971 case $INSTALL in |
|
23972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
23973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|
23974 esac |
|
23975 ac_MKDIR_P=$MKDIR_P |
|
23976 case $MKDIR_P in |
|
23977 [\\/$]* | ?:[\\/]* ) ;; |
|
23978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
|
23979 esac |
|
23980 _ACEOF |
|
23981 |
|
23982 cat >>$CONFIG_STATUS <<\_ACEOF |
|
23983 # If the template does not know about datarootdir, expand it. |
|
23984 # FIXME: This hack should be removed a few years after 2.60. |
|
23985 ac_datarootdir_hack=; ac_datarootdir_seen= |
|
23986 |
|
23987 case `sed -n '/datarootdir/ { |
|
23988 p |
|
23989 q |
|
23990 } |
|
23991 /@datadir@/p |
|
23992 /@docdir@/p |
|
23993 /@infodir@/p |
|
23994 /@localedir@/p |
|
23995 /@mandir@/p |
|
23996 ' $ac_file_inputs` in |
|
23997 *datarootdir*) ac_datarootdir_seen=yes;; |
|
23998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
23999 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
24000 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
24001 _ACEOF |
|
24002 cat >>$CONFIG_STATUS <<_ACEOF |
|
24003 ac_datarootdir_hack=' |
|
24004 s&@datadir@&$datadir&g |
|
24005 s&@docdir@&$docdir&g |
|
24006 s&@infodir@&$infodir&g |
|
24007 s&@localedir@&$localedir&g |
|
24008 s&@mandir@&$mandir&g |
|
24009 s&\\\${datarootdir}&$datarootdir&g' ;; |
|
24010 esac |
|
24011 _ACEOF |
|
24012 |
|
24013 # Neutralize VPATH when `$srcdir' = `.'. |
|
24014 # Shell code in configure.ac might set extrasub. |
|
24015 # FIXME: do we really want to maintain this feature? |
|
24016 cat >>$CONFIG_STATUS <<_ACEOF |
|
24017 sed "$ac_vpsub |
|
24018 $extrasub |
|
24019 _ACEOF |
|
24020 cat >>$CONFIG_STATUS <<\_ACEOF |
|
24021 :t |
|
24022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
24023 s&@configure_input@&$configure_input&;t t |
|
24024 s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
24025 s&@srcdir@&$ac_srcdir&;t t |
|
24026 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
24027 s&@top_srcdir@&$ac_top_srcdir&;t t |
|
24028 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
24029 s&@builddir@&$ac_builddir&;t t |
|
24030 s&@abs_builddir@&$ac_abs_builddir&;t t |
|
24031 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
24032 s&@INSTALL@&$ac_INSTALL&;t t |
|
24033 s&@MKDIR_P@&$ac_MKDIR_P&;t t |
|
24034 $ac_datarootdir_hack |
|
24035 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
|
24036 |
|
24037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
24038 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
24039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
24040 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
24041 which seems to be undefined. Please make sure it is defined." >&5 |
|
24042 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
24043 which seems to be undefined. Please make sure it is defined." >&2;} |
|
24044 |
|
24045 rm -f "$tmp/stdin" |
|
24046 case $ac_file in |
|
24047 -) cat "$tmp/out"; rm -f "$tmp/out";; |
|
24048 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
|
24049 esac |
|
24050 ;; |
|
24051 :H) |
|
24052 # |
|
24053 # CONFIG_HEADER |
|
24054 # |
|
24055 _ACEOF |
|
24056 |
|
24057 # Transform confdefs.h into a sed script `conftest.defines', that |
|
24058 # substitutes the proper values into config.h.in to produce config.h. |
|
24059 rm -f conftest.defines conftest.tail |
|
24060 # First, append a space to every undef/define line, to ease matching. |
|
24061 echo 's/$/ /' >conftest.defines |
|
24062 # Then, protect against being on the right side of a sed subst, or in |
|
24063 # an unquoted here document, in config.status. If some macros were |
|
24064 # called several times there might be several #defines for the same |
|
24065 # symbol, which is useless. But do not sort them, since the last |
|
24066 # AC_DEFINE must be honored. |
|
24067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
24068 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
24069 # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
24070 # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
24071 # just an empty string. |
|
24072 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
24073 ac_dB='\\)[ (].*,\\1define\\2' |
|
24074 ac_dC=' ' |
|
24075 ac_dD=' ,' |
|
24076 |
|
24077 uniq confdefs.h | |
|
24078 sed -n ' |
|
24079 t rset |
|
24080 :rset |
|
24081 s/^[ ]*#[ ]*define[ ][ ]*// |
|
24082 t ok |
|
24083 d |
|
24084 :ok |
|
24085 s/[\\&,]/\\&/g |
|
24086 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
24087 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
24088 ' >>conftest.defines |
|
24089 |
|
24090 # Remove the space that was appended to ease matching. |
|
24091 # Then replace #undef with comments. This is necessary, for |
|
24092 # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
24093 # on some systems where configure will not decide to define it. |
|
24094 # (The regexp can be short, since the line contains either #define or #undef.) |
|
24095 echo 's/ $// |
|
24096 s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
24097 |
|
24098 # Break up conftest.defines: |
|
24099 ac_max_sed_lines=50 |
|
24100 |
|
24101 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
24102 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
24103 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
24104 # et cetera. |
|
24105 ac_in='$ac_file_inputs' |
|
24106 ac_out='"$tmp/out1"' |
|
24107 ac_nxt='"$tmp/out2"' |
|
24108 |
|
24109 while : |
|
24110 do |
|
24111 # Write a here document: |
|
24112 cat >>$CONFIG_STATUS <<_ACEOF |
|
24113 # First, check the format of the line: |
|
24114 cat >"\$tmp/defines.sed" <<\\CEOF |
|
24115 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
24116 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
24117 b |
|
24118 :def |
|
24119 _ACEOF |
|
24120 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
|
24121 echo 'CEOF |
|
24122 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
|
24123 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
24124 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
24125 grep . conftest.tail >/dev/null || break |
|
24126 rm -f conftest.defines |
|
24127 mv conftest.tail conftest.defines |
|
24128 done |
|
24129 rm -f conftest.defines conftest.tail |
|
24130 |
|
24131 echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
24132 cat >>$CONFIG_STATUS <<\_ACEOF |
|
24133 if test x"$ac_file" != x-; then |
|
24134 echo "/* $configure_input */" >"$tmp/config.h" |
|
24135 cat "$ac_result" >>"$tmp/config.h" |
|
24136 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
|
24137 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
24138 echo "$as_me: $ac_file is unchanged" >&6;} |
|
24139 else |
|
24140 rm -f $ac_file |
|
24141 mv "$tmp/config.h" $ac_file |
|
24142 fi |
|
24143 else |
|
24144 echo "/* $configure_input */" |
|
24145 cat "$ac_result" |
|
24146 fi |
|
24147 rm -f "$tmp/out12" |
|
24148 # Compute $ac_file's index in $config_headers. |
|
24149 _am_arg=$ac_file |
|
24150 _am_stamp_count=1 |
|
24151 for _am_header in $config_headers :; do |
|
24152 case $_am_header in |
|
24153 $_am_arg | $_am_arg:* ) |
|
24154 break ;; |
|
24155 * ) |
|
24156 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
24157 esac |
|
24158 done |
|
24159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
|
24160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24161 X"$_am_arg" : 'X\(//\)[^/]' \| \ |
|
24162 X"$_am_arg" : 'X\(//\)$' \| \ |
|
24163 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
|
24164 echo X"$_am_arg" | |
|
24165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
24166 s//\1/ |
|
24167 q |
|
24168 } |
|
24169 /^X\(\/\/\)[^/].*/{ |
|
24170 s//\1/ |
|
24171 q |
|
24172 } |
|
24173 /^X\(\/\/\)$/{ |
|
24174 s//\1/ |
|
24175 q |
|
24176 } |
|
24177 /^X\(\/\).*/{ |
|
24178 s//\1/ |
|
24179 q |
|
24180 } |
|
24181 s/.*/./; q'`/stamp-h$_am_stamp_count |
|
24182 ;; |
|
24183 |
|
24184 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
|
24185 echo "$as_me: executing $ac_file commands" >&6;} |
|
24186 ;; |
|
24187 esac |
|
24188 |
|
24189 |
|
24190 case $ac_file$ac_mode in |
|
24191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
24192 # Strip MF so we end up with the name of the file. |
|
24193 mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
24194 # Check whether this is an Automake generated Makefile or not. |
|
24195 # We used to match only the files named `Makefile.in', but |
|
24196 # some people rename them; so instead we look at the file content. |
|
24197 # Grep'ing the first line is not enough: some people post-process |
|
24198 # each Makefile.in and add a new line on top of each file to say so. |
|
24199 # Grep'ing the whole file is not good either: AIX grep has a line |
|
24200 # limit of 2048, but all sed's we know have understand at least 4000. |
|
24201 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
|
24202 dirpart=`$as_dirname -- "$mf" || |
|
24203 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24204 X"$mf" : 'X\(//\)[^/]' \| \ |
|
24205 X"$mf" : 'X\(//\)$' \| \ |
|
24206 X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
|
24207 echo X"$mf" | |
|
24208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
24209 s//\1/ |
|
24210 q |
|
24211 } |
|
24212 /^X\(\/\/\)[^/].*/{ |
|
24213 s//\1/ |
|
24214 q |
|
24215 } |
|
24216 /^X\(\/\/\)$/{ |
|
24217 s//\1/ |
|
24218 q |
|
24219 } |
|
24220 /^X\(\/\).*/{ |
|
24221 s//\1/ |
|
24222 q |
|
24223 } |
|
24224 s/.*/./; q'` |
|
24225 else |
|
24226 continue |
|
24227 fi |
|
24228 # Extract the definition of DEPDIR, am__include, and am__quote |
|
24229 # from the Makefile without running `make'. |
|
24230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
24231 test -z "$DEPDIR" && continue |
|
24232 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
24233 test -z "am__include" && continue |
|
24234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
24235 # When using ansi2knr, U may be empty or an underscore; expand it |
|
24236 U=`sed -n 's/^U = //p' < "$mf"` |
|
24237 # Find all dependency output files, they are included files with |
|
24238 # $(DEPDIR) in their names. We invoke sed twice because it is the |
|
24239 # simplest approach to changing $(DEPDIR) to its actual value in the |
|
24240 # expansion. |
|
24241 for file in `sed -n " |
|
24242 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
24243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
24244 # Make sure the directory exists. |
|
24245 test -f "$dirpart/$file" && continue |
|
24246 fdir=`$as_dirname -- "$file" || |
|
24247 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24248 X"$file" : 'X\(//\)[^/]' \| \ |
|
24249 X"$file" : 'X\(//\)$' \| \ |
|
24250 X"$file" : 'X\(/\)' \| . 2>/dev/null || |
|
24251 echo X"$file" | |
|
24252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
24253 s//\1/ |
|
24254 q |
|
24255 } |
|
24256 /^X\(\/\/\)[^/].*/{ |
|
24257 s//\1/ |
|
24258 q |
|
24259 } |
|
24260 /^X\(\/\/\)$/{ |
|
24261 s//\1/ |
|
24262 q |
|
24263 } |
|
24264 /^X\(\/\).*/{ |
|
24265 s//\1/ |
|
24266 q |
|
24267 } |
|
24268 s/.*/./; q'` |
|
24269 { as_dir=$dirpart/$fdir |
|
24270 case $as_dir in #( |
|
24271 -*) as_dir=./$as_dir;; |
|
24272 esac |
|
24273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
24274 as_dirs= |
|
24275 while :; do |
|
24276 case $as_dir in #( |
|
24277 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
24278 *) as_qdir=$as_dir;; |
|
24279 esac |
|
24280 as_dirs="'$as_qdir' $as_dirs" |
|
24281 as_dir=`$as_dirname -- "$as_dir" || |
|
24282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
24283 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
24284 X"$as_dir" : 'X\(//\)$' \| \ |
|
24285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
24286 echo X"$as_dir" | |
|
24287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
24288 s//\1/ |
|
24289 q |
|
24290 } |
|
24291 /^X\(\/\/\)[^/].*/{ |
|
24292 s//\1/ |
|
24293 q |
|
24294 } |
|
24295 /^X\(\/\/\)$/{ |
|
24296 s//\1/ |
|
24297 q |
|
24298 } |
|
24299 /^X\(\/\).*/{ |
|
24300 s//\1/ |
|
24301 q |
|
24302 } |
|
24303 s/.*/./; q'` |
|
24304 test -d "$as_dir" && break |
|
24305 done |
|
24306 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
24307 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
24308 echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
24309 { (exit 1); exit 1; }; }; } |
|
24310 # echo "creating $dirpart/$file" |
|
24311 echo '# dummy' > "$dirpart/$file" |
|
24312 done |
|
24313 done |
|
24314 ;; |
|
24315 "script-chmod":C) chmod a+x pcre-config ;; |
|
24316 "delete-old-chartables":C) rm -f pcre_chartables.c ;; |
|
24317 |
|
24318 esac |
|
24319 done # for ac_tag |
|
24320 |
|
24321 |
|
24322 { (exit 0); exit 0; } |
|
24323 _ACEOF |
|
24324 chmod +x $CONFIG_STATUS |
|
24325 ac_clean_files=$ac_clean_files_save |
|
24326 |
|
24327 |
|
24328 # configure is writing to config.log, and then calls config.status. |
|
24329 # config.status does its own redirection, appending to config.log. |
|
24330 # Unfortunately, on DOS this fails, as config.log is still kept open |
|
24331 # by configure, so config.status won't be able to write to it; its |
|
24332 # output is simply discarded. So we exec the FD to /dev/null, |
|
24333 # effectively closing config.log, so it can be properly (re)opened and |
|
24334 # appended to by config.status. When coming back to configure, we |
|
24335 # need to make the FD available again. |
|
24336 if test "$no_create" != yes; then |
|
24337 ac_cs_success=: |
|
24338 ac_config_status_args= |
|
24339 test "$silent" = yes && |
|
24340 ac_config_status_args="$ac_config_status_args --quiet" |
|
24341 exec 5>/dev/null |
|
24342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
24343 exec 5>>config.log |
|
24344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
24345 # would make configure fail if this is the last instruction. |
|
24346 $ac_cs_success || { (exit 1); exit 1; } |
|
24347 fi |
|
24348 |
|
24349 |
|
24350 # Print out a nice little message after configure is run displaying your |
|
24351 # chosen options. |
|
24352 |
|
24353 cat <<EOF |
|
24354 |
|
24355 $PACKAGE-$VERSION configuration summary: |
|
24356 |
|
24357 Install prefix .................. : ${prefix} |
|
24358 C preprocessor .................. : ${CPP} |
|
24359 C compiler ...................... : ${CC} |
|
24360 C++ preprocessor ................ : ${CXXCPP} |
|
24361 C++ compiler .................... : ${CXX} |
|
24362 Linker .......................... : ${LD} |
|
24363 C preprocessor flags ............ : ${CPPFLAGS} |
|
24364 C compiler flags ................ : ${CFLAGS} |
|
24365 C++ compiler flags .............. : ${CXXFLAGS} |
|
24366 Linker flags .................... : ${LDFLAGS} |
|
24367 Extra libraries ................. : ${LIBS} |
|
24368 |
|
24369 Build C++ library ............... : ${enable_cpp} |
|
24370 Enable UTF-8 support ............ : ${enable_utf8} |
|
24371 Unicode properties .............. : ${enable_unicode_properties} |
|
24372 Newline char/sequence ........... : ${enable_newline} |
|
24373 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf} |
|
24374 EBCDIC coding ................... : ${enable_ebcdic} |
|
24375 Rebuild char tables ............. : ${enable_rebuild_chartables} |
|
24376 Use stack recursion ............. : ${enable_stack_for_recursion} |
|
24377 POSIX mem threshold ............. : ${with_posix_malloc_threshold} |
|
24378 Internal link size .............. : ${with_link_size} |
|
24379 Match limit ..................... : ${with_match_limit} |
|
24380 Match limit recursion ........... : ${with_match_limit_recursion} |
|
24381 Build shared libs ............... : ${enable_shared} |
|
24382 Build static libs ............... : ${enable_static} |
|
24383 Link pcregrep with libz ......... : ${enable_pcregrep_libz} |
|
24384 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2} |
|
24385 Link pcretest with libreadline .. : ${enable_pcretest_libreadline} |
|
24386 |
|
24387 EOF |
|
24388 |