Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8d138742 | 3 | # Generated by GNU Autoconf 2.63 for bdbobj 0.10. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
dd184caf | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
dd184caf | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
d9898ee8 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
8d138742 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
8d138742 CE |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
dd184caf | 56 | else |
8d138742 CE |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
dd184caf | 69 | fi |
8d138742 CE |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
dd184caf | 91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
dd184caf | 96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
8d138742 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
dd184caf | 119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
d9898ee8 | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf | 123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
d9898ee8 | 126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
8d138742 CE |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
d9898ee8 | 135 | |
136 | # Required to use basename. | |
dd184caf | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
dd184caf | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
dd184caf | 152 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 156 | $as_echo X/"$0" | |
dd184caf | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
d9898ee8 | 170 | |
dd184caf | 171 | # CDPATH. |
172 | $as_unset CDPATH | |
d9898ee8 | 173 | |
d9898ee8 | 174 | |
dd184caf | 175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
d9898ee8 | 180 | fi |
181 | ||
8d138742 | 182 | if test $as_have_required = yes && (eval ": |
dd184caf | 183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
d9898ee8 | 198 | |
dd184caf | 199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
d9898ee8 | 206 | |
dd184caf | 207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
d9898ee8 | 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
dd184caf | 247 | case $as_dir in |
d9898ee8 | 248 | /*) |
dd184caf | 249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
8d138742 | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
8d138742 | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
d9898ee8 | 349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
d9898ee8 | 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf | 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
8d138742 CE |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
dd184caf | 369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
8d138742 CE |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
dd184caf | 441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
dd184caf | 452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
d9898ee8 | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf | 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
d9898ee8 | 464 | sed ' |
dd184caf | 465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
d9898ee8 | 469 | N |
dd184caf | 470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 472 | t loop |
dd184caf | 473 | s/-\n.*// |
d9898ee8 | 474 | ' >$as_me.lineno && |
dd184caf | 475 | chmod +x "$as_me.lineno" || |
8d138742 | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 | 477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
d9898ee8 | 483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
dd184caf | 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
d9898ee8 | 503 | esac |
dd184caf | 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
8d138742 CE |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
d9898ee8 | 530 | as_ln_s='cp -p' |
8d138742 | 531 | fi |
d9898ee8 | 532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
dd184caf | 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
dd184caf | 545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
8d138742 | 556 | test -d "$1/."; |
dd184caf | 557 | else |
558 | case $1 in | |
8d138742 | 559 | -*)set "./$1";; |
dd184caf | 560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
d9898ee8 | 567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
d9898ee8 | 575 | |
576 | ||
577 | # Check that we are running under the correct shell. | |
578 | SHELL=${CONFIG_SHELL-/bin/sh} | |
579 | ||
8d138742 | 580 | case X$lt_ECHO in |
d9898ee8 | 581 | X*--fallback-echo) |
582 | # Remove one level of quotation (which was required for Make). | |
8d138742 | 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
d9898ee8 | 584 | ;; |
585 | esac | |
586 | ||
8d138742 | 587 | ECHO=${lt_ECHO-echo} |
d9898ee8 | 588 | if test "X$1" = X--no-reexec; then |
589 | # Discard the --no-reexec flag, and continue. | |
590 | shift | |
591 | elif test "X$1" = X--fallback-echo; then | |
592 | # Avoid inline document here, it may be left over | |
593 | : | |
8d138742 CE |
594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
595 | # Yippee, $ECHO works! | |
d9898ee8 | 596 | : |
597 | else | |
598 | # Restart under the correct shell. | |
599 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
600 | fi | |
601 | ||
602 | if test "X$1" = X--fallback-echo; then | |
603 | # used as fallback echo | |
604 | shift | |
8d138742 | 605 | cat <<_LT_EOF |
d9898ee8 | 606 | $* |
8d138742 | 607 | _LT_EOF |
d9898ee8 | 608 | exit 0 |
609 | fi | |
610 | ||
611 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
612 | # if CDPATH is set. | |
613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
614 | ||
8d138742 CE |
615 | if test -z "$lt_ECHO"; then |
616 | if test "X${echo_test_string+set}" != Xset; then | |
617 | # find a string as large as possible, as long as the shell can cope with it | |
618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
622 | then | |
623 | break | |
624 | fi | |
625 | done | |
626 | fi | |
d9898ee8 | 627 | |
8d138742 CE |
628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
630 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
631 | : | |
632 | else | |
633 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
634 | # backslashes. This makes it impossible to quote backslashes using | |
635 | # echo "$something" | sed 's/\\/\\\\/g' | |
636 | # | |
637 | # So, first we look for a working echo in the user's PATH. | |
d9898ee8 | 638 | |
8d138742 CE |
639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
640 | for dir in $PATH /usr/ucb; do | |
641 | IFS="$lt_save_ifs" | |
642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
645 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
646 | ECHO="$dir/echo" | |
647 | break | |
648 | fi | |
649 | done | |
d9898ee8 | 650 | IFS="$lt_save_ifs" |
d9898ee8 | 651 | |
8d138742 CE |
652 | if test "X$ECHO" = Xecho; then |
653 | # We didn't find a better echo, so look for alternatives. | |
654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
656 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
657 | # This shell has a builtin print -r that does the trick. | |
658 | ECHO='print -r' | |
659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
660 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
661 | # If we have ksh, try running configure again with it. | |
662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
663 | export ORIGINAL_CONFIG_SHELL | |
664 | CONFIG_SHELL=/bin/ksh | |
665 | export CONFIG_SHELL | |
666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
d9898ee8 | 667 | else |
8d138742 CE |
668 | # Try using printf. |
669 | ECHO='printf %s\n' | |
670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
672 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
673 | # Cool, printf works | |
674 | : | |
675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
676 | test "X$echo_testing_string" = 'X\t' && | |
677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
678 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
680 | export CONFIG_SHELL | |
681 | SHELL="$CONFIG_SHELL" | |
682 | export SHELL | |
683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
685 | test "X$echo_testing_string" = 'X\t' && | |
686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
687 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
689 | else | |
690 | # maybe with a smaller string... | |
691 | prev=: | |
d9898ee8 | 692 | |
8d138742 CE |
693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
695 | then | |
696 | break | |
697 | fi | |
698 | prev="$cmd" | |
699 | done | |
d9898ee8 | 700 | |
8d138742 CE |
701 | if test "$prev" != 'sed 50q "$0"'; then |
702 | echo_test_string=`eval $prev` | |
703 | export echo_test_string | |
704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
705 | else | |
706 | # Oops. We lost completely, so just stick with echo. | |
707 | ECHO=echo | |
708 | fi | |
709 | fi | |
d9898ee8 | 710 | fi |
711 | fi | |
712 | fi | |
713 | fi | |
d9898ee8 | 714 | |
715 | # Copy echo and quote the copy suitably for passing to libtool from | |
716 | # the Makefile, instead of quoting the original, which is used later. | |
8d138742 CE |
717 | lt_ECHO=$ECHO |
718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
d9898ee8 | 720 | fi |
721 | ||
722 | ||
723 | ||
724 | ||
dd184caf | 725 | exec 7<&0 </dev/null 6>&1 |
726 | ||
d9898ee8 | 727 | # Name of the host. |
728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
729 | # so uname gets run too. | |
730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
731 | ||
d9898ee8 | 732 | # |
733 | # Initializations. | |
734 | # | |
735 | ac_default_prefix=/usr/local | |
dd184caf | 736 | ac_clean_files= |
d9898ee8 | 737 | ac_config_libobj_dir=. |
dd184caf | 738 | LIBOBJS= |
d9898ee8 | 739 | cross_compiling=no |
740 | subdirs= | |
741 | MFLAGS= | |
742 | MAKEFLAGS= | |
743 | SHELL=${CONFIG_SHELL-/bin/sh} | |
744 | ||
d9898ee8 | 745 | # Identity of this package. |
746 | PACKAGE_NAME='bdbobj' | |
747 | PACKAGE_TARNAME='bdbobj' | |
748 | PACKAGE_VERSION='0.10' | |
749 | PACKAGE_STRING='bdbobj 0.10' | |
750 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
751 | ||
752 | ac_unique_file="bdbobj.h" | |
753 | # Factoring default headers for most tests. | |
754 | ac_includes_default="\ | |
755 | #include <stdio.h> | |
dd184caf | 756 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 757 | # include <sys/types.h> |
758 | #endif | |
dd184caf | 759 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 760 | # include <sys/stat.h> |
761 | #endif | |
dd184caf | 762 | #ifdef STDC_HEADERS |
d9898ee8 | 763 | # include <stdlib.h> |
764 | # include <stddef.h> | |
765 | #else | |
dd184caf | 766 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 767 | # include <stdlib.h> |
768 | # endif | |
769 | #endif | |
dd184caf | 770 | #ifdef HAVE_STRING_H |
771 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 772 | # include <memory.h> |
773 | # endif | |
774 | # include <string.h> | |
775 | #endif | |
dd184caf | 776 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 777 | # include <strings.h> |
778 | #endif | |
dd184caf | 779 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 780 | # include <inttypes.h> |
d9898ee8 | 781 | #endif |
dd184caf | 782 | #ifdef HAVE_STDINT_H |
783 | # include <stdint.h> | |
784 | #endif | |
785 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 786 | # include <unistd.h> |
787 | #endif" | |
788 | ||
8d138742 CE |
789 | ac_subst_vars='am__EXEEXT_FALSE |
790 | am__EXEEXT_TRUE | |
791 | LTLIBOBJS | |
792 | LIBOBJS | |
793 | FOUND_DB_FALSE | |
794 | FOUND_DB_TRUE | |
795 | LIBDB | |
796 | CXXCPP | |
797 | OTOOL64 | |
798 | OTOOL | |
799 | LIPO | |
800 | NMEDIT | |
801 | DSYMUTIL | |
802 | lt_ECHO | |
803 | RANLIB | |
804 | AR | |
805 | OBJDUMP | |
806 | LN_S | |
807 | NM | |
808 | ac_ct_DUMPBIN | |
809 | DUMPBIN | |
810 | LD | |
811 | FGREP | |
812 | SED | |
813 | host_os | |
814 | host_vendor | |
815 | host_cpu | |
816 | host | |
817 | build_os | |
818 | build_vendor | |
819 | build_cpu | |
820 | build | |
821 | LIBTOOL | |
822 | am__fastdepCXX_FALSE | |
823 | am__fastdepCXX_TRUE | |
824 | CXXDEPMODE | |
825 | ac_ct_CXX | |
826 | CXXFLAGS | |
827 | CXX | |
828 | EGREP | |
829 | GREP | |
830 | CPP | |
831 | am__fastdepCC_FALSE | |
832 | am__fastdepCC_TRUE | |
833 | CCDEPMODE | |
834 | AMDEPBACKSLASH | |
835 | AMDEP_FALSE | |
836 | AMDEP_TRUE | |
837 | am__quote | |
838 | am__include | |
839 | DEPDIR | |
840 | OBJEXT | |
841 | EXEEXT | |
842 | ac_ct_CC | |
843 | CPPFLAGS | |
844 | LDFLAGS | |
845 | CFLAGS | |
846 | CC | |
847 | am__untar | |
848 | am__tar | |
849 | AMTAR | |
850 | am__leading_dot | |
851 | SET_MAKE | |
852 | AWK | |
853 | mkdir_p | |
854 | MKDIR_P | |
855 | INSTALL_STRIP_PROGRAM | |
856 | STRIP | |
857 | install_sh | |
858 | MAKEINFO | |
859 | AUTOHEADER | |
860 | AUTOMAKE | |
861 | AUTOCONF | |
862 | ACLOCAL | |
863 | VERSION | |
864 | PACKAGE | |
865 | CYGPATH_W | |
866 | am__isrc | |
867 | INSTALL_DATA | |
868 | INSTALL_SCRIPT | |
869 | INSTALL_PROGRAM | |
870 | target_alias | |
871 | host_alias | |
dd184caf | 872 | build_alias |
8d138742 CE |
873 | LIBS |
874 | ECHO_T | |
875 | ECHO_N | |
876 | ECHO_C | |
877 | DEFS | |
878 | mandir | |
879 | localedir | |
880 | libdir | |
881 | psdir | |
882 | pdfdir | |
883 | dvidir | |
884 | htmldir | |
885 | infodir | |
886 | docdir | |
887 | oldincludedir | |
888 | includedir | |
889 | localstatedir | |
890 | sharedstatedir | |
891 | sysconfdir | |
892 | datadir | |
893 | datarootdir | |
894 | libexecdir | |
895 | sbindir | |
896 | bindir | |
897 | program_transform_name | |
898 | prefix | |
899 | exec_prefix | |
900 | PACKAGE_BUGREPORT | |
901 | PACKAGE_STRING | |
902 | PACKAGE_VERSION | |
903 | PACKAGE_TARNAME | |
904 | PACKAGE_NAME | |
905 | PATH_SEPARATOR | |
906 | SHELL' | |
907 | ac_subst_files='' | |
908 | ac_user_opts=' | |
909 | enable_option_checking | |
910 | enable_dependency_tracking | |
911 | enable_shared | |
912 | enable_static | |
913 | with_pic | |
914 | enable_fast_install | |
915 | with_gnu_ld | |
916 | enable_libtool_lock | |
917 | ' | |
918 | ac_precious_vars='build_alias | |
dd184caf | 919 | host_alias |
920 | target_alias | |
dd184caf | 921 | CC |
922 | CFLAGS | |
923 | LDFLAGS | |
8d138742 | 924 | LIBS |
dd184caf | 925 | CPPFLAGS |
926 | CPP | |
927 | CXX | |
928 | CXXFLAGS | |
929 | CCC | |
8d138742 | 930 | CXXCPP' |
dd184caf | 931 | |
d9898ee8 | 932 | |
933 | # Initialize some variables set by options. | |
934 | ac_init_help= | |
935 | ac_init_version=false | |
8d138742 CE |
936 | ac_unrecognized_opts= |
937 | ac_unrecognized_sep= | |
d9898ee8 | 938 | # The variables have the same names as the options, with |
939 | # dashes changed to underlines. | |
940 | cache_file=/dev/null | |
941 | exec_prefix=NONE | |
942 | no_create= | |
943 | no_recursion= | |
944 | prefix=NONE | |
945 | program_prefix=NONE | |
946 | program_suffix=NONE | |
947 | program_transform_name=s,x,x, | |
948 | silent= | |
949 | site= | |
950 | srcdir= | |
951 | verbose= | |
952 | x_includes=NONE | |
953 | x_libraries=NONE | |
954 | ||
955 | # Installation directory options. | |
956 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
957 | # and all the variables that are supposed to be based on exec_prefix | |
958 | # by default will actually change. | |
959 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 960 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 961 | bindir='${exec_prefix}/bin' |
962 | sbindir='${exec_prefix}/sbin' | |
963 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 964 | datarootdir='${prefix}/share' |
965 | datadir='${datarootdir}' | |
d9898ee8 | 966 | sysconfdir='${prefix}/etc' |
967 | sharedstatedir='${prefix}/com' | |
968 | localstatedir='${prefix}/var' | |
d9898ee8 | 969 | includedir='${prefix}/include' |
970 | oldincludedir='/usr/include' | |
dd184caf | 971 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
972 | infodir='${datarootdir}/info' | |
973 | htmldir='${docdir}' | |
974 | dvidir='${docdir}' | |
975 | pdfdir='${docdir}' | |
976 | psdir='${docdir}' | |
977 | libdir='${exec_prefix}/lib' | |
978 | localedir='${datarootdir}/locale' | |
979 | mandir='${datarootdir}/man' | |
d9898ee8 | 980 | |
981 | ac_prev= | |
dd184caf | 982 | ac_dashdash= |
d9898ee8 | 983 | for ac_option |
984 | do | |
985 | # If the previous option needs an argument, assign it. | |
986 | if test -n "$ac_prev"; then | |
dd184caf | 987 | eval $ac_prev=\$ac_option |
d9898ee8 | 988 | ac_prev= |
989 | continue | |
990 | fi | |
991 | ||
dd184caf | 992 | case $ac_option in |
993 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
994 | *) ac_optarg=yes ;; | |
995 | esac | |
d9898ee8 | 996 | |
997 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
998 | ||
dd184caf | 999 | case $ac_dashdash$ac_option in |
1000 | --) | |
1001 | ac_dashdash=yes ;; | |
d9898ee8 | 1002 | |
1003 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1004 | ac_prev=bindir ;; | |
1005 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1006 | bindir=$ac_optarg ;; | |
1007 | ||
1008 | -build | --build | --buil | --bui | --bu) | |
1009 | ac_prev=build_alias ;; | |
1010 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1011 | build_alias=$ac_optarg ;; | |
1012 | ||
1013 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1014 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1015 | ac_prev=cache_file ;; | |
1016 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1017 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1018 | cache_file=$ac_optarg ;; | |
1019 | ||
1020 | --config-cache | -C) | |
1021 | cache_file=config.cache ;; | |
1022 | ||
dd184caf | 1023 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1024 | ac_prev=datadir ;; |
dd184caf | 1025 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1026 | datadir=$ac_optarg ;; |
1027 | ||
dd184caf | 1028 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1029 | | --dataroo | --dataro | --datar) | |
1030 | ac_prev=datarootdir ;; | |
1031 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1032 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1033 | datarootdir=$ac_optarg ;; | |
1034 | ||
d9898ee8 | 1035 | -disable-* | --disable-*) |
8d138742 | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1037 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1039 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1040 | { (exit 1); exit 1; }; } |
8d138742 CE |
1041 | ac_useropt_orig=$ac_useropt |
1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1043 | case $ac_user_opts in | |
1044 | *" | |
1045 | "enable_$ac_useropt" | |
1046 | "*) ;; | |
1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1048 | ac_unrecognized_sep=', ';; | |
1049 | esac | |
1050 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1051 | |
1052 | -docdir | --docdir | --docdi | --doc | --do) | |
1053 | ac_prev=docdir ;; | |
1054 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1055 | docdir=$ac_optarg ;; | |
1056 | ||
1057 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1058 | ac_prev=dvidir ;; | |
1059 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1060 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1061 | |
1062 | -enable-* | --enable-*) | |
8d138742 | 1063 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1064 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1066 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1067 | { (exit 1); exit 1; }; } |
8d138742 CE |
1068 | ac_useropt_orig=$ac_useropt |
1069 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1070 | case $ac_user_opts in | |
1071 | *" | |
1072 | "enable_$ac_useropt" | |
1073 | "*) ;; | |
1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1075 | ac_unrecognized_sep=', ';; | |
1076 | esac | |
1077 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1078 | |
1079 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1080 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1081 | | --exec | --exe | --ex) | |
1082 | ac_prev=exec_prefix ;; | |
1083 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1084 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1085 | | --exec=* | --exe=* | --ex=*) | |
1086 | exec_prefix=$ac_optarg ;; | |
1087 | ||
1088 | -gas | --gas | --ga | --g) | |
1089 | # Obsolete; use --with-gas. | |
1090 | with_gas=yes ;; | |
1091 | ||
1092 | -help | --help | --hel | --he | -h) | |
1093 | ac_init_help=long ;; | |
1094 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1095 | ac_init_help=recursive ;; | |
1096 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1097 | ac_init_help=short ;; | |
1098 | ||
1099 | -host | --host | --hos | --ho) | |
1100 | ac_prev=host_alias ;; | |
1101 | -host=* | --host=* | --hos=* | --ho=*) | |
1102 | host_alias=$ac_optarg ;; | |
1103 | ||
dd184caf | 1104 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1105 | ac_prev=htmldir ;; | |
1106 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1107 | | --ht=*) | |
1108 | htmldir=$ac_optarg ;; | |
1109 | ||
d9898ee8 | 1110 | -includedir | --includedir | --includedi | --included | --include \ |
1111 | | --includ | --inclu | --incl | --inc) | |
1112 | ac_prev=includedir ;; | |
1113 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1114 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1115 | includedir=$ac_optarg ;; | |
1116 | ||
1117 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1118 | ac_prev=infodir ;; | |
1119 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1120 | infodir=$ac_optarg ;; | |
1121 | ||
1122 | -libdir | --libdir | --libdi | --libd) | |
1123 | ac_prev=libdir ;; | |
1124 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1125 | libdir=$ac_optarg ;; | |
1126 | ||
1127 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1128 | | --libexe | --libex | --libe) | |
1129 | ac_prev=libexecdir ;; | |
1130 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1131 | | --libexe=* | --libex=* | --libe=*) | |
1132 | libexecdir=$ac_optarg ;; | |
1133 | ||
dd184caf | 1134 | -localedir | --localedir | --localedi | --localed | --locale) |
1135 | ac_prev=localedir ;; | |
1136 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1137 | localedir=$ac_optarg ;; | |
1138 | ||
d9898ee8 | 1139 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1140 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1141 | ac_prev=localstatedir ;; |
1142 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1143 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1144 | localstatedir=$ac_optarg ;; |
1145 | ||
1146 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1147 | ac_prev=mandir ;; | |
1148 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1149 | mandir=$ac_optarg ;; | |
1150 | ||
1151 | -nfp | --nfp | --nf) | |
1152 | # Obsolete; use --without-fp. | |
1153 | with_fp=no ;; | |
1154 | ||
1155 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1156 | | --no-cr | --no-c | -n) | |
1157 | no_create=yes ;; | |
1158 | ||
1159 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1160 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1161 | no_recursion=yes ;; | |
1162 | ||
1163 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1164 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1165 | | --oldin | --oldi | --old | --ol | --o) | |
1166 | ac_prev=oldincludedir ;; | |
1167 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1168 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1169 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1170 | oldincludedir=$ac_optarg ;; | |
1171 | ||
1172 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1173 | ac_prev=prefix ;; | |
1174 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1175 | prefix=$ac_optarg ;; | |
1176 | ||
1177 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1178 | | --program-pre | --program-pr | --program-p) | |
1179 | ac_prev=program_prefix ;; | |
1180 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1181 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1182 | program_prefix=$ac_optarg ;; | |
1183 | ||
1184 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1185 | | --program-suf | --program-su | --program-s) | |
1186 | ac_prev=program_suffix ;; | |
1187 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1188 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1189 | program_suffix=$ac_optarg ;; | |
1190 | ||
1191 | -program-transform-name | --program-transform-name \ | |
1192 | | --program-transform-nam | --program-transform-na \ | |
1193 | | --program-transform-n | --program-transform- \ | |
1194 | | --program-transform | --program-transfor \ | |
1195 | | --program-transfo | --program-transf \ | |
1196 | | --program-trans | --program-tran \ | |
1197 | | --progr-tra | --program-tr | --program-t) | |
1198 | ac_prev=program_transform_name ;; | |
1199 | -program-transform-name=* | --program-transform-name=* \ | |
1200 | | --program-transform-nam=* | --program-transform-na=* \ | |
1201 | | --program-transform-n=* | --program-transform-=* \ | |
1202 | | --program-transform=* | --program-transfor=* \ | |
1203 | | --program-transfo=* | --program-transf=* \ | |
1204 | | --program-trans=* | --program-tran=* \ | |
1205 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1206 | program_transform_name=$ac_optarg ;; | |
1207 | ||
dd184caf | 1208 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1209 | ac_prev=pdfdir ;; | |
1210 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1211 | pdfdir=$ac_optarg ;; | |
1212 | ||
1213 | -psdir | --psdir | --psdi | --psd | --ps) | |
1214 | ac_prev=psdir ;; | |
1215 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1216 | psdir=$ac_optarg ;; | |
1217 | ||
d9898ee8 | 1218 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1219 | | -silent | --silent | --silen | --sile | --sil) | |
1220 | silent=yes ;; | |
1221 | ||
1222 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1223 | ac_prev=sbindir ;; | |
1224 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1225 | | --sbi=* | --sb=*) | |
1226 | sbindir=$ac_optarg ;; | |
1227 | ||
1228 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1229 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1230 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1231 | | --sha | --sh) | |
1232 | ac_prev=sharedstatedir ;; | |
1233 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1234 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1235 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1236 | | --sha=* | --sh=*) | |
1237 | sharedstatedir=$ac_optarg ;; | |
1238 | ||
1239 | -site | --site | --sit) | |
1240 | ac_prev=site ;; | |
1241 | -site=* | --site=* | --sit=*) | |
1242 | site=$ac_optarg ;; | |
1243 | ||
1244 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1245 | ac_prev=srcdir ;; | |
1246 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1247 | srcdir=$ac_optarg ;; | |
1248 | ||
1249 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1250 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1251 | ac_prev=sysconfdir ;; | |
1252 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1253 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1254 | sysconfdir=$ac_optarg ;; | |
1255 | ||
1256 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1257 | ac_prev=target_alias ;; | |
1258 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1259 | target_alias=$ac_optarg ;; | |
1260 | ||
1261 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1262 | verbose=yes ;; | |
1263 | ||
1264 | -version | --version | --versio | --versi | --vers | -V) | |
1265 | ac_init_version=: ;; | |
1266 | ||
1267 | -with-* | --with-*) | |
8d138742 | 1268 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1269 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1270 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1271 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1272 | { (exit 1); exit 1; }; } |
8d138742 CE |
1273 | ac_useropt_orig=$ac_useropt |
1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 | case $ac_user_opts in | |
1276 | *" | |
1277 | "with_$ac_useropt" | |
1278 | "*) ;; | |
1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1280 | ac_unrecognized_sep=', ';; | |
1281 | esac | |
1282 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1283 | |
1284 | -without-* | --without-*) | |
8d138742 | 1285 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1286 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1287 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1288 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1289 | { (exit 1); exit 1; }; } |
8d138742 CE |
1290 | ac_useropt_orig=$ac_useropt |
1291 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1292 | case $ac_user_opts in | |
1293 | *" | |
1294 | "with_$ac_useropt" | |
1295 | "*) ;; | |
1296 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1297 | ac_unrecognized_sep=', ';; | |
1298 | esac | |
1299 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1300 | |
1301 | --x) | |
1302 | # Obsolete; use --with-x. | |
1303 | with_x=yes ;; | |
1304 | ||
1305 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1306 | | --x-incl | --x-inc | --x-in | --x-i) | |
1307 | ac_prev=x_includes ;; | |
1308 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1309 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1310 | x_includes=$ac_optarg ;; | |
1311 | ||
1312 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1313 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1314 | ac_prev=x_libraries ;; | |
1315 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1316 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1317 | x_libraries=$ac_optarg ;; | |
1318 | ||
8d138742 | 1319 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1320 | Try \`$0 --help' for more information." >&2 |
1321 | { (exit 1); exit 1; }; } | |
1322 | ;; | |
1323 | ||
1324 | *=*) | |
1325 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1326 | # Reject names that are not valid shell variable names. | |
1327 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1328 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1329 | { (exit 1); exit 1; }; } |
dd184caf | 1330 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1331 | export $ac_envvar ;; |
1332 | ||
1333 | *) | |
1334 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1335 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1336 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1337 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1338 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1339 | ;; | |
1340 | ||
1341 | esac | |
1342 | done | |
1343 | ||
1344 | if test -n "$ac_prev"; then | |
1345 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1346 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1347 | { (exit 1); exit 1; }; } |
1348 | fi | |
1349 | ||
8d138742 CE |
1350 | if test -n "$ac_unrecognized_opts"; then |
1351 | case $enable_option_checking in | |
1352 | no) ;; | |
1353 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1354 | { (exit 1); exit 1; }; } ;; | |
1355 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1356 | esac | |
1357 | fi | |
1358 | ||
1359 | # Check all directory arguments for consistency. | |
dd184caf | 1360 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1361 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1362 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1363 | libdir localedir mandir | |
d9898ee8 | 1364 | do |
dd184caf | 1365 | eval ac_val=\$$ac_var |
8d138742 CE |
1366 | # Remove trailing slashes. |
1367 | case $ac_val in | |
1368 | */ ) | |
1369 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1370 | eval $ac_var=\$ac_val;; | |
1371 | esac | |
1372 | # Be sure to have absolute directory names. | |
d9898ee8 | 1373 | case $ac_val in |
dd184caf | 1374 | [\\/$]* | ?:[\\/]* ) continue;; |
1375 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1376 | esac |
8d138742 | 1377 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1378 | { (exit 1); exit 1; }; } |
d9898ee8 | 1379 | done |
1380 | ||
1381 | # There might be people who depend on the old broken behavior: `$host' | |
1382 | # used to hold the argument of --host etc. | |
1383 | # FIXME: To remove some day. | |
1384 | build=$build_alias | |
1385 | host=$host_alias | |
1386 | target=$target_alias | |
1387 | ||
1388 | # FIXME: To remove some day. | |
1389 | if test "x$host_alias" != x; then | |
1390 | if test "x$build_alias" = x; then | |
1391 | cross_compiling=maybe | |
8d138742 | 1392 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1393 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1394 | elif test "x$build_alias" != "x$host_alias"; then | |
1395 | cross_compiling=yes | |
1396 | fi | |
1397 | fi | |
1398 | ||
1399 | ac_tool_prefix= | |
1400 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1401 | ||
1402 | test "$silent" = yes && exec 6>/dev/null | |
1403 | ||
1404 | ||
dd184caf | 1405 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1406 | ac_ls_di=`ls -di .` && | |
1407 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1408 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1409 | { (exit 1); exit 1; }; } |
1410 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1411 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1412 | { (exit 1); exit 1; }; } |
1413 | ||
1414 | ||
d9898ee8 | 1415 | # Find the source files, if location was not specified. |
1416 | if test -z "$srcdir"; then | |
1417 | ac_srcdir_defaulted=yes | |
dd184caf | 1418 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1419 | ac_confdir=`$as_dirname -- "$as_myself" || |
1420 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1421 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1422 | X"$as_myself" : 'X\(//\)$' \| \ | |
1423 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1424 | $as_echo X"$as_myself" | | |
dd184caf | 1425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1426 | s//\1/ | |
1427 | q | |
1428 | } | |
1429 | /^X\(\/\/\)[^/].*/{ | |
1430 | s//\1/ | |
1431 | q | |
1432 | } | |
1433 | /^X\(\/\/\)$/{ | |
1434 | s//\1/ | |
1435 | q | |
1436 | } | |
1437 | /^X\(\/\).*/{ | |
1438 | s//\1/ | |
1439 | q | |
1440 | } | |
1441 | s/.*/./; q'` | |
d9898ee8 | 1442 | srcdir=$ac_confdir |
dd184caf | 1443 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1444 | srcdir=.. |
1445 | fi | |
1446 | else | |
1447 | ac_srcdir_defaulted=no | |
1448 | fi | |
dd184caf | 1449 | if test ! -r "$srcdir/$ac_unique_file"; then |
1450 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1451 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1452 | { (exit 1); exit 1; }; } |
d9898ee8 | 1453 | fi |
dd184caf | 1454 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1455 | ac_abs_confdir=`( | |
8d138742 | 1456 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1457 | { (exit 1); exit 1; }; } |
dd184caf | 1458 | pwd)` |
1459 | # When building in place, set srcdir=. | |
1460 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1461 | srcdir=. | |
1462 | fi | |
1463 | # Remove unnecessary trailing slashes from srcdir. | |
1464 | # Double slashes in file names in object file debugging info | |
1465 | # mess up M-x gdb in Emacs. | |
1466 | case $srcdir in | |
1467 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1468 | esac | |
1469 | for ac_var in $ac_precious_vars; do | |
1470 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1471 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1472 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1473 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1474 | done | |
d9898ee8 | 1475 | |
1476 | # | |
1477 | # Report the --help message. | |
1478 | # | |
1479 | if test "$ac_init_help" = "long"; then | |
1480 | # Omit some internal or obsolete options to make the list less imposing. | |
1481 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1482 | cat <<_ACEOF | |
1483 | \`configure' configures bdbobj 0.10 to adapt to many kinds of systems. | |
1484 | ||
1485 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1486 | ||
1487 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1488 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1489 | ||
1490 | Defaults for the options are specified in brackets. | |
1491 | ||
1492 | Configuration: | |
1493 | -h, --help display this help and exit | |
1494 | --help=short display options specific to this package | |
1495 | --help=recursive display the short help of all the included packages | |
1496 | -V, --version display version information and exit | |
1497 | -q, --quiet, --silent do not print \`checking...' messages | |
1498 | --cache-file=FILE cache test results in FILE [disabled] | |
1499 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1500 | -n, --no-create do not create output files | |
1501 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1502 | ||
d9898ee8 | 1503 | Installation directories: |
1504 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1505 | [$ac_default_prefix] |
d9898ee8 | 1506 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1507 | [PREFIX] |
d9898ee8 | 1508 | |
1509 | By default, \`make install' will install all the files in | |
1510 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1511 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1512 | for instance \`--prefix=\$HOME'. | |
1513 | ||
1514 | For better control, use the options below. | |
1515 | ||
1516 | Fine tuning of the installation directories: | |
8d138742 CE |
1517 | --bindir=DIR user executables [EPREFIX/bin] |
1518 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1519 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1520 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1521 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1522 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1523 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1524 | --includedir=DIR C header files [PREFIX/include] | |
1525 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1526 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1527 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1528 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1529 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1530 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1531 | --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj] | |
1532 | --htmldir=DIR html documentation [DOCDIR] | |
1533 | --dvidir=DIR dvi documentation [DOCDIR] | |
1534 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1535 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1536 | _ACEOF |
1537 | ||
1538 | cat <<\_ACEOF | |
1539 | ||
1540 | Program names: | |
1541 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1542 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1543 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1544 | ||
1545 | System types: | |
1546 | --build=BUILD configure for building on BUILD [guessed] | |
1547 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1548 | _ACEOF | |
1549 | fi | |
1550 | ||
1551 | if test -n "$ac_init_help"; then | |
1552 | case $ac_init_help in | |
1553 | short | recursive ) echo "Configuration of bdbobj 0.10:";; | |
1554 | esac | |
1555 | cat <<\_ACEOF | |
1556 | ||
1557 | Optional Features: | |
8d138742 | 1558 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1559 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1560 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1561 | --disable-dependency-tracking speeds up one-time build | |
1562 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1563 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1564 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1565 | --enable-fast-install[=PKGS] |
1566 | optimize for fast installation [default=yes] | |
1567 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1568 | ||
1569 | Optional Packages: | |
1570 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1571 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1572 | --with-pic try to use only PIC/non-PIC objects [default=use |
1573 | both] | |
8d138742 | 1574 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d9898ee8 | 1575 | |
1576 | Some influential environment variables: | |
1577 | CC C compiler command | |
1578 | CFLAGS C compiler flags | |
1579 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1580 | nonstandard directory <lib dir> | |
dd184caf | 1581 | LIBS libraries to pass to the linker, e.g. -l<library> |
1582 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1583 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1584 | CPP C preprocessor |
1585 | CXX C++ compiler command | |
1586 | CXXFLAGS C++ compiler flags | |
1587 | CXXCPP C++ preprocessor | |
d9898ee8 | 1588 | |
1589 | Use these variables to override the choices made by `configure' or to help | |
1590 | it to find libraries and programs with nonstandard names/locations. | |
1591 | ||
1592 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1593 | _ACEOF | |
dd184caf | 1594 | ac_status=$? |
d9898ee8 | 1595 | fi |
1596 | ||
1597 | if test "$ac_init_help" = "recursive"; then | |
1598 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1599 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1600 | test -d "$ac_dir" || |
1601 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1602 | continue | |
d9898ee8 | 1603 | ac_builddir=. |
1604 | ||
dd184caf | 1605 | case "$ac_dir" in |
1606 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1607 | *) | |
8d138742 | 1608 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1609 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1610 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1611 | case $ac_top_builddir_sub in |
1612 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1613 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1614 | esac ;; | |
1615 | esac | |
1616 | ac_abs_top_builddir=$ac_pwd | |
1617 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1618 | # for backward compatibility: | |
1619 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1620 | |
1621 | case $srcdir in | |
dd184caf | 1622 | .) # We are building in place. |
d9898ee8 | 1623 | ac_srcdir=. |
dd184caf | 1624 | ac_top_srcdir=$ac_top_builddir_sub |
1625 | ac_abs_top_srcdir=$ac_pwd ;; | |
1626 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1627 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1628 | ac_top_srcdir=$srcdir |
1629 | ac_abs_top_srcdir=$srcdir ;; | |
1630 | *) # Relative name. | |
1631 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1632 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1633 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1634 | esac |
dd184caf | 1635 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1636 | ||
1637 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1638 | # Check for guested configure. | |
1639 | if test -f "$ac_srcdir/configure.gnu"; then | |
1640 | echo && | |
1641 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1642 | elif test -f "$ac_srcdir/configure"; then | |
1643 | echo && | |
1644 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1645 | else |
8d138742 | 1646 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1647 | fi || ac_status=$? |
1648 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1649 | done |
1650 | fi | |
1651 | ||
dd184caf | 1652 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1653 | if $ac_init_version; then |
1654 | cat <<\_ACEOF | |
1655 | bdbobj configure 0.10 | |
8d138742 | 1656 | generated by GNU Autoconf 2.63 |
d9898ee8 | 1657 | |
dd184caf | 1658 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1659 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1660 | This configure script is free software; the Free Software Foundation |
1661 | gives unlimited permission to copy, distribute and modify it. | |
1662 | _ACEOF | |
dd184caf | 1663 | exit |
d9898ee8 | 1664 | fi |
dd184caf | 1665 | cat >config.log <<_ACEOF |
d9898ee8 | 1666 | This file contains any messages produced by compilers while |
1667 | running configure, to aid debugging if configure makes a mistake. | |
1668 | ||
1669 | It was created by bdbobj $as_me 0.10, which was | |
8d138742 | 1670 | generated by GNU Autoconf 2.63. Invocation command line was |
d9898ee8 | 1671 | |
1672 | $ $0 $@ | |
1673 | ||
1674 | _ACEOF | |
dd184caf | 1675 | exec 5>>config.log |
d9898ee8 | 1676 | { |
1677 | cat <<_ASUNAME | |
1678 | ## --------- ## | |
1679 | ## Platform. ## | |
1680 | ## --------- ## | |
1681 | ||
1682 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1683 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1684 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1685 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1686 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1687 | ||
1688 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1689 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1690 | ||
1691 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1692 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1693 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1694 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1695 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1696 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1697 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1698 | ||
1699 | _ASUNAME | |
1700 | ||
1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1702 | for as_dir in $PATH | |
1703 | do | |
1704 | IFS=$as_save_IFS | |
1705 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1706 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1707 | done |
dd184caf | 1708 | IFS=$as_save_IFS |
d9898ee8 | 1709 | |
1710 | } >&5 | |
1711 | ||
1712 | cat >&5 <<_ACEOF | |
1713 | ||
1714 | ||
1715 | ## ----------- ## | |
1716 | ## Core tests. ## | |
1717 | ## ----------- ## | |
1718 | ||
1719 | _ACEOF | |
1720 | ||
1721 | ||
1722 | # Keep a trace of the command line. | |
1723 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1724 | # Strip out --silent because we don't want to record it for future runs. | |
1725 | # Also quote any args containing shell meta-characters. | |
1726 | # Make two passes to allow for proper duplicate-argument suppression. | |
1727 | ac_configure_args= | |
1728 | ac_configure_args0= | |
1729 | ac_configure_args1= | |
d9898ee8 | 1730 | ac_must_keep_next=false |
1731 | for ac_pass in 1 2 | |
1732 | do | |
1733 | for ac_arg | |
1734 | do | |
1735 | case $ac_arg in | |
1736 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1738 | | -silent | --silent | --silen | --sile | --sil) | |
1739 | continue ;; | |
dd184caf | 1740 | *\'*) |
8d138742 | 1741 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1742 | esac |
1743 | case $ac_pass in | |
1744 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1745 | 2) | |
1746 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1747 | if test $ac_must_keep_next = true; then | |
1748 | ac_must_keep_next=false # Got value, back to normal. | |
1749 | else | |
1750 | case $ac_arg in | |
1751 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1752 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1753 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1754 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1755 | case "$ac_configure_args0 " in | |
1756 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1757 | esac | |
1758 | ;; | |
1759 | -* ) ac_must_keep_next=true ;; | |
1760 | esac | |
1761 | fi | |
dd184caf | 1762 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1763 | ;; |
1764 | esac | |
1765 | done | |
1766 | done | |
1767 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1768 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1769 | ||
1770 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1771 | # config.log. We remove comments because anyway the quotes in there | |
1772 | # would cause problems or look ugly. | |
dd184caf | 1773 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1774 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1775 | trap 'exit_status=$? |
1776 | # Save into config.log some information that might help in debugging. | |
1777 | { | |
1778 | echo | |
1779 | ||
1780 | cat <<\_ASBOX | |
1781 | ## ---------------- ## | |
1782 | ## Cache variables. ## | |
1783 | ## ---------------- ## | |
1784 | _ASBOX | |
1785 | echo | |
1786 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1787 | ( |
1788 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1789 | eval ac_val=\$$ac_var | |
1790 | case $ac_val in #( | |
1791 | *${as_nl}*) | |
1792 | case $ac_var in #( | |
8d138742 CE |
1793 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1794 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1795 | esac |
1796 | case $ac_var in #( | |
1797 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1798 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1799 | *) $as_unset $ac_var ;; |
1800 | esac ;; | |
1801 | esac | |
1802 | done | |
d9898ee8 | 1803 | (set) 2>&1 | |
dd184caf | 1804 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1805 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1806 | sed -n \ |
dd184caf | 1807 | "s/'\''/'\''\\\\'\'''\''/g; |
1808 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1809 | ;; #( | |
d9898ee8 | 1810 | *) |
dd184caf | 1811 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1812 | ;; |
dd184caf | 1813 | esac | |
1814 | sort | |
1815 | ) | |
d9898ee8 | 1816 | echo |
1817 | ||
1818 | cat <<\_ASBOX | |
1819 | ## ----------------- ## | |
1820 | ## Output variables. ## | |
1821 | ## ----------------- ## | |
1822 | _ASBOX | |
1823 | echo | |
1824 | for ac_var in $ac_subst_vars | |
1825 | do | |
dd184caf | 1826 | eval ac_val=\$$ac_var |
1827 | case $ac_val in | |
8d138742 | 1828 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1829 | esac |
8d138742 | 1830 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1831 | done | sort |
1832 | echo | |
1833 | ||
1834 | if test -n "$ac_subst_files"; then | |
1835 | cat <<\_ASBOX | |
dd184caf | 1836 | ## ------------------- ## |
1837 | ## File substitutions. ## | |
1838 | ## ------------------- ## | |
d9898ee8 | 1839 | _ASBOX |
1840 | echo | |
1841 | for ac_var in $ac_subst_files | |
1842 | do | |
dd184caf | 1843 | eval ac_val=\$$ac_var |
1844 | case $ac_val in | |
8d138742 | 1845 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1846 | esac |
8d138742 | 1847 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1848 | done | sort |
1849 | echo | |
1850 | fi | |
1851 | ||
1852 | if test -s confdefs.h; then | |
1853 | cat <<\_ASBOX | |
1854 | ## ----------- ## | |
1855 | ## confdefs.h. ## | |
1856 | ## ----------- ## | |
1857 | _ASBOX | |
1858 | echo | |
dd184caf | 1859 | cat confdefs.h |
d9898ee8 | 1860 | echo |
1861 | fi | |
1862 | test "$ac_signal" != 0 && | |
8d138742 CE |
1863 | $as_echo "$as_me: caught signal $ac_signal" |
1864 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1865 | } >&5 |
dd184caf | 1866 | rm -f core *.core core.conftest.* && |
1867 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 1868 | exit $exit_status |
dd184caf | 1869 | ' 0 |
d9898ee8 | 1870 | for ac_signal in 1 2 13 15; do |
1871 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1872 | done | |
1873 | ac_signal=0 | |
1874 | ||
1875 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 1876 | rm -f -r conftest* confdefs.h |
d9898ee8 | 1877 | |
1878 | # Predefined preprocessor variables. | |
1879 | ||
1880 | cat >>confdefs.h <<_ACEOF | |
1881 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1882 | _ACEOF | |
1883 | ||
1884 | ||
1885 | cat >>confdefs.h <<_ACEOF | |
1886 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1887 | _ACEOF | |
1888 | ||
1889 | ||
1890 | cat >>confdefs.h <<_ACEOF | |
1891 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1892 | _ACEOF | |
1893 | ||
1894 | ||
1895 | cat >>confdefs.h <<_ACEOF | |
1896 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1897 | _ACEOF | |
1898 | ||
1899 | ||
1900 | cat >>confdefs.h <<_ACEOF | |
1901 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1902 | _ACEOF | |
1903 | ||
1904 | ||
1905 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
1906 | # Prefer an explicitly selected file to automatically selected ones. |
1907 | ac_site_file1=NONE | |
1908 | ac_site_file2=NONE | |
dd184caf | 1909 | if test -n "$CONFIG_SITE"; then |
8d138742 | 1910 | ac_site_file1=$CONFIG_SITE |
dd184caf | 1911 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
1912 | ac_site_file1=$prefix/share/config.site |
1913 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 1914 | else |
8d138742 CE |
1915 | ac_site_file1=$ac_default_prefix/share/config.site |
1916 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 1917 | fi |
8d138742 | 1918 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 1919 | do |
8d138742 | 1920 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 1921 | if test -r "$ac_site_file"; then |
8d138742 CE |
1922 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1923 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 1924 | sed 's/^/| /' "$ac_site_file" >&5 |
1925 | . "$ac_site_file" | |
1926 | fi | |
1927 | done | |
1928 | ||
1929 | if test -r "$cache_file"; then | |
1930 | # Some versions of bash will fail to source /dev/null (special | |
1931 | # files actually), so we avoid doing that. | |
1932 | if test -f "$cache_file"; then | |
8d138742 CE |
1933 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1934 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 1935 | case $cache_file in |
dd184caf | 1936 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1937 | *) . "./$cache_file";; | |
d9898ee8 | 1938 | esac |
1939 | fi | |
1940 | else | |
8d138742 CE |
1941 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1942 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 1943 | >$cache_file |
1944 | fi | |
1945 | ||
1946 | # Check that the precious variables saved in the cache have kept the same | |
1947 | # value. | |
1948 | ac_cache_corrupted=false | |
dd184caf | 1949 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 1950 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1951 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 1952 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1953 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 1954 | case $ac_old_set,$ac_new_set in |
1955 | set,) | |
8d138742 CE |
1956 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1957 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 1958 | ac_cache_corrupted=: ;; |
1959 | ,set) | |
8d138742 CE |
1960 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1961 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 1962 | ac_cache_corrupted=: ;; |
1963 | ,);; | |
1964 | *) | |
1965 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
1966 | # differences in whitespace do not lead to failure. |
1967 | ac_old_val_w=`echo x $ac_old_val` | |
1968 | ac_new_val_w=`echo x $ac_new_val` | |
1969 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1970 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1971 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1972 | ac_cache_corrupted=: | |
1973 | else | |
1974 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1975 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1976 | eval $ac_var=\$ac_old_val | |
1977 | fi | |
1978 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1979 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1980 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1981 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 1982 | fi;; |
1983 | esac | |
1984 | # Pass precious variables to config.status. | |
1985 | if test "$ac_new_set" = set; then | |
1986 | case $ac_new_val in | |
8d138742 | 1987 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1988 | *) ac_arg=$ac_var=$ac_new_val ;; |
1989 | esac | |
1990 | case " $ac_configure_args " in | |
1991 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1992 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1993 | esac | |
1994 | fi | |
1995 | done | |
1996 | if $ac_cache_corrupted; then | |
8d138742 CE |
1997 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1999 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2000 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2001 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2002 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 2003 | { (exit 1); exit 1; }; } |
2004 | fi | |
2005 | ||
d9898ee8 | 2006 | |
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
dd184caf | 2030 | ac_ext=c |
2031 | ac_cpp='$CPP $CPPFLAGS' | |
2032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2035 | |
2036 | ||
2037 | ||
2038 | >confdefs.h # Kill PACKAGE_ macros | |
2039 | ||
2040 | ||
8d138742 | 2041 | am__api_version='1.11' |
dd184caf | 2042 | |
d9898ee8 | 2043 | ac_aux_dir= |
dd184caf | 2044 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2045 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2046 | ac_aux_dir=$ac_dir |
2047 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2048 | break | |
dd184caf | 2049 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2050 | ac_aux_dir=$ac_dir |
2051 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2052 | break | |
dd184caf | 2053 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2054 | ac_aux_dir=$ac_dir |
2055 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2056 | break | |
2057 | fi | |
2058 | done | |
2059 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2060 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2061 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2062 | { (exit 1); exit 1; }; } |
2063 | fi | |
dd184caf | 2064 | |
2065 | # These three variables are undocumented and unsupported, | |
2066 | # and are intended to be withdrawn in a future Autoconf release. | |
2067 | # They can cause serious problems if a builder's source tree is in a directory | |
2068 | # whose full name contains unusual characters. | |
2069 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2070 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2071 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2072 | ||
d9898ee8 | 2073 | |
2074 | # Find a good install program. We prefer a C program (faster), | |
2075 | # so one script is as good as another. But avoid the broken or | |
2076 | # incompatible versions: | |
2077 | # SysV /etc/install, /usr/sbin/install | |
2078 | # SunOS /usr/etc/install | |
2079 | # IRIX /sbin/install | |
2080 | # AIX /bin/install | |
2081 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2082 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2083 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2084 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2085 | # OS/2's system install, which has a completely different semantic | |
2086 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2087 | # Reject install programs that cannot install multiple files. |
2088 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2089 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2090 | if test -z "$INSTALL"; then |
2091 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2092 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2093 | else |
2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2095 | for as_dir in $PATH | |
2096 | do | |
2097 | IFS=$as_save_IFS | |
2098 | test -z "$as_dir" && as_dir=. | |
2099 | # Account for people who put trailing slashes in PATH elements. | |
2100 | case $as_dir/ in | |
2101 | ./ | .// | /cC/* | \ | |
2102 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2103 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2104 | /usr/ucb/* ) ;; | |
2105 | *) | |
2106 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2107 | # Don't use installbsd from OSF since it installs stuff as root | |
2108 | # by default. | |
2109 | for ac_prog in ginstall scoinst install; do | |
2110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2111 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2112 | if test $ac_prog = install && |
2113 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2114 | # AIX install. It has an incompatible calling convention. | |
2115 | : | |
2116 | elif test $ac_prog = install && | |
2117 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2118 | # program-specific install script used by HP pwplus--don't use. | |
2119 | : | |
2120 | else | |
8d138742 CE |
2121 | rm -rf conftest.one conftest.two conftest.dir |
2122 | echo one > conftest.one | |
2123 | echo two > conftest.two | |
2124 | mkdir conftest.dir | |
2125 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2126 | test -s conftest.one && test -s conftest.two && | |
2127 | test -s conftest.dir/conftest.one && | |
2128 | test -s conftest.dir/conftest.two | |
2129 | then | |
2130 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2131 | break 3 | |
2132 | fi | |
d9898ee8 | 2133 | fi |
2134 | fi | |
2135 | done | |
2136 | done | |
2137 | ;; | |
2138 | esac | |
8d138742 | 2139 | |
d9898ee8 | 2140 | done |
dd184caf | 2141 | IFS=$as_save_IFS |
d9898ee8 | 2142 | |
8d138742 | 2143 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2144 | |
2145 | fi | |
2146 | if test "${ac_cv_path_install+set}" = set; then | |
2147 | INSTALL=$ac_cv_path_install | |
2148 | else | |
dd184caf | 2149 | # As a last resort, use the slow shell script. Don't cache a |
2150 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2151 | # break other packages using the cache if that directory is |
dd184caf | 2152 | # removed, or if the value is a relative name. |
d9898ee8 | 2153 | INSTALL=$ac_install_sh |
2154 | fi | |
2155 | fi | |
8d138742 CE |
2156 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2157 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2158 | |
2159 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2160 | # It thinks the first close brace ends the variable substitution. | |
2161 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2162 | ||
2163 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2164 | ||
2165 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2166 | ||
8d138742 CE |
2167 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2168 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2169 | # Just in case |
2170 | sleep 1 | |
2171 | echo timestamp > conftest.file | |
8d138742 CE |
2172 | # Reject unsafe characters in $srcdir or the absolute working directory |
2173 | # name. Accept space and tab only in the latter. | |
2174 | am_lf=' | |
2175 | ' | |
2176 | case `pwd` in | |
2177 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2178 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2179 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2180 | { (exit 1); exit 1; }; };; | |
2181 | esac | |
2182 | case $srcdir in | |
2183 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2184 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2185 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2186 | { (exit 1); exit 1; }; };; | |
2187 | esac | |
2188 | ||
d9898ee8 | 2189 | # Do `set' in a subshell so we don't clobber the current shell's |
2190 | # arguments. Must try -L first in case configure is actually a | |
2191 | # symlink; some systems play weird games with the mod time of symlinks | |
2192 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2193 | # directory). | |
2194 | if ( | |
8d138742 | 2195 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2196 | if test "$*" = "X"; then |
2197 | # -L didn't work. | |
8d138742 | 2198 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2199 | fi |
2200 | rm -f conftest.file | |
2201 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2202 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2203 | ||
2204 | # If neither matched, then we have a broken ls. This can happen | |
2205 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2206 | # broken ls alias from the environment. This has actually | |
2207 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2208 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2209 | alias in your environment" >&5 |
8d138742 | 2210 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2211 | alias in your environment" >&2;} |
2212 | { (exit 1); exit 1; }; } | |
2213 | fi | |
2214 | ||
2215 | test "$2" = conftest.file | |
2216 | ) | |
2217 | then | |
2218 | # Ok. | |
2219 | : | |
2220 | else | |
8d138742 | 2221 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2222 | Check your system clock" >&5 |
8d138742 | 2223 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2224 | Check your system clock" >&2;} |
2225 | { (exit 1); exit 1; }; } | |
2226 | fi | |
8d138742 CE |
2227 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2228 | $as_echo "yes" >&6; } | |
d9898ee8 | 2229 | test "$program_prefix" != NONE && |
dd184caf | 2230 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2231 | # Use a double $ so make ignores it. |
2232 | test "$program_suffix" != NONE && | |
dd184caf | 2233 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2234 | # Double any \ or $. |
d9898ee8 | 2235 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2236 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2237 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2238 | |
2239 | # expand $ac_aux_dir to an absolute path | |
2240 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2241 | ||
8d138742 CE |
2242 | if test x"${MISSING+set}" != xset; then |
2243 | case $am_aux_dir in | |
2244 | *\ * | *\ *) | |
2245 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2246 | *) | |
2247 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2248 | esac | |
2249 | fi | |
d9898ee8 | 2250 | # Use eval to expand $SHELL |
2251 | if eval "$MISSING --run true"; then | |
2252 | am_missing_run="$MISSING --run " | |
2253 | else | |
2254 | am_missing_run= | |
8d138742 CE |
2255 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2256 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2257 | fi | |
2258 | ||
2259 | if test x"${install_sh}" != xset; then | |
2260 | case $am_aux_dir in | |
2261 | *\ * | *\ *) | |
2262 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2263 | *) | |
2264 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2265 | esac | |
2266 | fi | |
2267 | ||
2268 | # Installed binaries are usually stripped using `strip' when the user | |
2269 | # run `make install-strip'. However `strip' might not be the right | |
2270 | # tool to use in cross-compilation environments, therefore Automake | |
2271 | # will honor the `STRIP' environment variable to overrule this program. | |
2272 | if test "$cross_compiling" != no; then | |
2273 | if test -n "$ac_tool_prefix"; then | |
2274 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2275 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2276 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2277 | $as_echo_n "checking for $ac_word... " >&6; } | |
2278 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2279 | $as_echo_n "(cached) " >&6 | |
2280 | else | |
2281 | if test -n "$STRIP"; then | |
2282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2283 | else | |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2291 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2292 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2293 | break 2 | |
2294 | fi | |
2295 | done | |
2296 | done | |
2297 | IFS=$as_save_IFS | |
2298 | ||
2299 | fi | |
2300 | fi | |
2301 | STRIP=$ac_cv_prog_STRIP | |
2302 | if test -n "$STRIP"; then | |
2303 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2304 | $as_echo "$STRIP" >&6; } | |
2305 | else | |
2306 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2307 | $as_echo "no" >&6; } | |
2308 | fi | |
2309 | ||
2310 | ||
2311 | fi | |
2312 | if test -z "$ac_cv_prog_STRIP"; then | |
2313 | ac_ct_STRIP=$STRIP | |
2314 | # Extract the first word of "strip", so it can be a program name with args. | |
2315 | set dummy strip; ac_word=$2 | |
2316 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2317 | $as_echo_n "checking for $ac_word... " >&6; } | |
2318 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2319 | $as_echo_n "(cached) " >&6 | |
2320 | else | |
2321 | if test -n "$ac_ct_STRIP"; then | |
2322 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2323 | else | |
2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2325 | for as_dir in $PATH | |
2326 | do | |
2327 | IFS=$as_save_IFS | |
2328 | test -z "$as_dir" && as_dir=. | |
2329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2331 | ac_cv_prog_ac_ct_STRIP="strip" | |
2332 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2333 | break 2 | |
2334 | fi | |
2335 | done | |
2336 | done | |
2337 | IFS=$as_save_IFS | |
2338 | ||
2339 | fi | |
2340 | fi | |
2341 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2342 | if test -n "$ac_ct_STRIP"; then | |
2343 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2344 | $as_echo "$ac_ct_STRIP" >&6; } | |
2345 | else | |
2346 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2347 | $as_echo "no" >&6; } | |
2348 | fi | |
2349 | ||
2350 | if test "x$ac_ct_STRIP" = x; then | |
2351 | STRIP=":" | |
2352 | else | |
2353 | case $cross_compiling:$ac_tool_warned in | |
2354 | yes:) | |
2355 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2357 | ac_tool_warned=yes ;; | |
2358 | esac | |
2359 | STRIP=$ac_ct_STRIP | |
2360 | fi | |
2361 | else | |
2362 | STRIP="$ac_cv_prog_STRIP" | |
2363 | fi | |
2364 | ||
d9898ee8 | 2365 | fi |
8d138742 | 2366 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2367 | |
8d138742 CE |
2368 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2369 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2370 | if test -z "$MKDIR_P"; then |
2371 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2372 | $as_echo_n "(cached) " >&6 |
dd184caf | 2373 | else |
2374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2375 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2376 | do | |
2377 | IFS=$as_save_IFS | |
2378 | test -z "$as_dir" && as_dir=. | |
2379 | for ac_prog in mkdir gmkdir; do | |
2380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2381 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2382 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2383 | 'mkdir (GNU coreutils) '* | \ | |
2384 | 'mkdir (coreutils) '* | \ | |
2385 | 'mkdir (fileutils) '4.1*) | |
2386 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2387 | break 3;; | |
2388 | esac | |
2389 | done | |
2390 | done | |
2391 | done | |
2392 | IFS=$as_save_IFS | |
2393 | ||
2394 | fi | |
2395 | ||
2396 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2397 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2398 | else |
dd184caf | 2399 | # As a last resort, use the slow shell script. Don't cache a |
2400 | # value for MKDIR_P within a source directory, because that will | |
2401 | # break other packages using the cache if that directory is | |
2402 | # removed, or if the value is a relative name. | |
2403 | test -d ./--version && rmdir ./--version | |
2404 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2405 | fi |
2406 | fi | |
8d138742 CE |
2407 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2408 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2409 | |
2410 | mkdir_p="$MKDIR_P" | |
2411 | case $mkdir_p in | |
2412 | [\\/$]* | ?:[\\/]*) ;; | |
2413 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2414 | esac | |
d9898ee8 | 2415 | |
2416 | for ac_prog in gawk mawk nawk awk | |
2417 | do | |
2418 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2419 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2420 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2421 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2422 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2423 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2424 | else |
2425 | if test -n "$AWK"; then | |
2426 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2427 | else | |
2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2429 | for as_dir in $PATH | |
2430 | do | |
2431 | IFS=$as_save_IFS | |
2432 | test -z "$as_dir" && as_dir=. | |
2433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2435 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2436 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2437 | break 2 |
2438 | fi | |
2439 | done | |
2440 | done | |
dd184caf | 2441 | IFS=$as_save_IFS |
d9898ee8 | 2442 | |
2443 | fi | |
2444 | fi | |
2445 | AWK=$ac_cv_prog_AWK | |
2446 | if test -n "$AWK"; then | |
8d138742 CE |
2447 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2448 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2449 | else |
8d138742 CE |
2450 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2451 | $as_echo "no" >&6; } | |
d9898ee8 | 2452 | fi |
2453 | ||
dd184caf | 2454 | |
d9898ee8 | 2455 | test -n "$AWK" && break |
2456 | done | |
2457 | ||
8d138742 CE |
2458 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2459 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2460 | set x ${MAKE-make} | |
2461 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2462 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2463 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2464 | else |
2465 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2466 | SHELL = /bin/sh |
d9898ee8 | 2467 | all: |
dd184caf | 2468 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2469 | _ACEOF |
2470 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2471 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2472 | *@@@%%%=?*=@@@%%%*) | |
2473 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2474 | *) | |
2475 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2476 | esac | |
d9898ee8 | 2477 | rm -f conftest.make |
2478 | fi | |
dd184caf | 2479 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2480 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2481 | $as_echo "yes" >&6; } | |
d9898ee8 | 2482 | SET_MAKE= |
2483 | else | |
8d138742 CE |
2484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2485 | $as_echo "no" >&6; } | |
d9898ee8 | 2486 | SET_MAKE="MAKE=${MAKE-make}" |
2487 | fi | |
2488 | ||
2489 | rm -rf .tst 2>/dev/null | |
2490 | mkdir .tst 2>/dev/null | |
2491 | if test -d .tst; then | |
2492 | am__leading_dot=. | |
2493 | else | |
2494 | am__leading_dot=_ | |
2495 | fi | |
2496 | rmdir .tst 2>/dev/null | |
2497 | ||
dd184caf | 2498 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2499 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2500 | # is not polluted with repeated "-I." | |
2501 | am__isrc=' -I$(srcdir)' | |
2502 | # test to see if srcdir already configured | |
2503 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2504 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2505 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2506 | { (exit 1); exit 1; }; } |
dd184caf | 2507 | fi |
d9898ee8 | 2508 | fi |
2509 | ||
2510 | # test whether we have cygpath | |
2511 | if test -z "$CYGPATH_W"; then | |
2512 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2513 | CYGPATH_W='cygpath -w' | |
2514 | else | |
2515 | CYGPATH_W=echo | |
2516 | fi | |
2517 | fi | |
2518 | ||
2519 | ||
2520 | # Define the identity of the package. | |
2521 | PACKAGE='bdbobj' | |
2522 | VERSION='0.10' | |
2523 | ||
2524 | ||
2525 | # Some tools Automake needs. | |
2526 | ||
2527 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2528 | ||
2529 | ||
2530 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2531 | ||
2532 | ||
2533 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2534 | ||
2535 | ||
2536 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2537 | ||
2538 | ||
2539 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2540 | ||
8d138742 CE |
2541 | # We need awk for the "check" target. The system "awk" is bad on |
2542 | # some platforms. | |
2543 | # Always define AMTAR for backward compatibility. | |
d9898ee8 | 2544 | |
8d138742 CE |
2545 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2546 | ||
2547 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2548 | ||
2549 | ||
2550 | ||
2551 | ||
2552 | ||
2553 | ac_config_headers="$ac_config_headers config.h" | |
2554 | ||
2555 | ||
2556 | DEPDIR="${am__leading_dot}deps" | |
2557 | ||
2558 | ac_config_commands="$ac_config_commands depfiles" | |
2559 | ||
2560 | ||
2561 | am_make=${MAKE-make} | |
2562 | cat > confinc << 'END' | |
2563 | am__doit: | |
2564 | @echo this is the am__doit target | |
2565 | .PHONY: am__doit | |
2566 | END | |
2567 | # If we don't find an include directive, just comment out the code. | |
2568 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2569 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
2570 | am__include="#" | |
2571 | am__quote= | |
2572 | _am_result=none | |
2573 | # First try GNU make style include. | |
2574 | echo "include confinc" > confmf | |
2575 | # Ignore all kinds of additional output from `make'. | |
2576 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2577 | *the\ am__doit\ target*) | |
2578 | am__include=include | |
2579 | am__quote= | |
2580 | _am_result=GNU | |
2581 | ;; | |
2582 | esac | |
2583 | # Now try BSD make style include. | |
2584 | if test "$am__include" = "#"; then | |
2585 | echo '.include "confinc"' > confmf | |
2586 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2587 | *the\ am__doit\ target*) | |
2588 | am__include=.include | |
2589 | am__quote="\"" | |
2590 | _am_result=BSD | |
2591 | ;; | |
2592 | esac | |
2593 | fi | |
2594 | ||
2595 | ||
2596 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2597 | $as_echo "$_am_result" >&6; } | |
2598 | rm -f confinc confmf | |
2599 | ||
2600 | # Check whether --enable-dependency-tracking was given. | |
2601 | if test "${enable_dependency_tracking+set}" = set; then | |
2602 | enableval=$enable_dependency_tracking; | |
2603 | fi | |
2604 | ||
2605 | if test "x$enable_dependency_tracking" != xno; then | |
2606 | am_depcomp="$ac_aux_dir/depcomp" | |
2607 | AMDEPBACKSLASH='\' | |
2608 | fi | |
2609 | if test "x$enable_dependency_tracking" != xno; then | |
2610 | AMDEP_TRUE= | |
2611 | AMDEP_FALSE='#' | |
d9898ee8 | 2612 | else |
8d138742 CE |
2613 | AMDEP_TRUE='#' |
2614 | AMDEP_FALSE= | |
2615 | fi | |
2616 | ||
2617 | ||
2618 | ac_ext=c | |
2619 | ac_cpp='$CPP $CPPFLAGS' | |
2620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2623 | if test -n "$ac_tool_prefix"; then | |
2624 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2625 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2626 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2627 | $as_echo_n "checking for $ac_word... " >&6; } | |
2628 | if test "${ac_cv_prog_CC+set}" = set; then | |
2629 | $as_echo_n "(cached) " >&6 | |
2630 | else | |
2631 | if test -n "$CC"; then | |
2632 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d9898ee8 | 2633 | else |
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
2637 | IFS=$as_save_IFS | |
2638 | test -z "$as_dir" && as_dir=. | |
2639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
2641 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2642 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 2643 | break 2 |
2644 | fi | |
2645 | done | |
2646 | done | |
dd184caf | 2647 | IFS=$as_save_IFS |
d9898ee8 | 2648 | |
2649 | fi | |
2650 | fi | |
8d138742 CE |
2651 | CC=$ac_cv_prog_CC |
2652 | if test -n "$CC"; then | |
2653 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2654 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2655 | else |
8d138742 CE |
2656 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2657 | $as_echo "no" >&6; } | |
d9898ee8 | 2658 | fi |
2659 | ||
dd184caf | 2660 | |
d9898ee8 | 2661 | fi |
8d138742 CE |
2662 | if test -z "$ac_cv_prog_CC"; then |
2663 | ac_ct_CC=$CC | |
2664 | # Extract the first word of "gcc", so it can be a program name with args. | |
2665 | set dummy gcc; ac_word=$2 | |
2666 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2667 | $as_echo_n "checking for $ac_word... " >&6; } | |
2668 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2669 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 2670 | else |
8d138742 CE |
2671 | if test -n "$ac_ct_CC"; then |
2672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d9898ee8 | 2673 | else |
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2675 | for as_dir in $PATH | |
2676 | do | |
2677 | IFS=$as_save_IFS | |
2678 | test -z "$as_dir" && as_dir=. | |
2679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
2681 | ac_cv_prog_ac_ct_CC="gcc" |
2682 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 2683 | break 2 |
2684 | fi | |
2685 | done | |
2686 | done | |
dd184caf | 2687 | IFS=$as_save_IFS |
d9898ee8 | 2688 | |
d9898ee8 | 2689 | fi |
2690 | fi | |
8d138742 CE |
2691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2692 | if test -n "$ac_ct_CC"; then | |
2693 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2694 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2695 | else |
8d138742 CE |
2696 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2697 | $as_echo "no" >&6; } | |
d9898ee8 | 2698 | fi |
2699 | ||
8d138742 CE |
2700 | if test "x$ac_ct_CC" = x; then |
2701 | CC="" | |
dd184caf | 2702 | else |
2703 | case $cross_compiling:$ac_tool_warned in | |
2704 | yes:) | |
8d138742 CE |
2705 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2706 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2707 | ac_tool_warned=yes ;; |
2708 | esac | |
8d138742 | 2709 | CC=$ac_ct_CC |
dd184caf | 2710 | fi |
d9898ee8 | 2711 | else |
8d138742 | 2712 | CC="$ac_cv_prog_CC" |
d9898ee8 | 2713 | fi |
2714 | ||
2715 | if test -z "$CC"; then | |
dd184caf | 2716 | if test -n "$ac_tool_prefix"; then |
2717 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2718 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2719 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2720 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2721 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2722 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2723 | else |
2724 | if test -n "$CC"; then | |
2725 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2726 | else | |
2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2728 | for as_dir in $PATH | |
2729 | do | |
2730 | IFS=$as_save_IFS | |
2731 | test -z "$as_dir" && as_dir=. | |
2732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2734 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2735 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2736 | break 2 |
2737 | fi | |
2738 | done | |
2739 | done | |
dd184caf | 2740 | IFS=$as_save_IFS |
d9898ee8 | 2741 | |
2742 | fi | |
2743 | fi | |
2744 | CC=$ac_cv_prog_CC | |
2745 | if test -n "$CC"; then | |
8d138742 CE |
2746 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2747 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2748 | else |
8d138742 CE |
2749 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2750 | $as_echo "no" >&6; } | |
d9898ee8 | 2751 | fi |
2752 | ||
d9898ee8 | 2753 | |
dd184caf | 2754 | fi |
d9898ee8 | 2755 | fi |
2756 | if test -z "$CC"; then | |
2757 | # Extract the first word of "cc", so it can be a program name with args. | |
2758 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2759 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2761 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2762 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2763 | else |
2764 | if test -n "$CC"; then | |
2765 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2766 | else | |
2767 | ac_prog_rejected=no | |
2768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2769 | for as_dir in $PATH | |
2770 | do | |
2771 | IFS=$as_save_IFS | |
2772 | test -z "$as_dir" && as_dir=. | |
2773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2775 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2776 | ac_prog_rejected=yes | |
2777 | continue | |
2778 | fi | |
2779 | ac_cv_prog_CC="cc" | |
8d138742 | 2780 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2781 | break 2 |
2782 | fi | |
2783 | done | |
2784 | done | |
dd184caf | 2785 | IFS=$as_save_IFS |
d9898ee8 | 2786 | |
2787 | if test $ac_prog_rejected = yes; then | |
2788 | # We found a bogon in the path, so make sure we never use it. | |
2789 | set dummy $ac_cv_prog_CC | |
2790 | shift | |
2791 | if test $# != 0; then | |
2792 | # We chose a different compiler from the bogus one. | |
2793 | # However, it has the same basename, so the bogon will be chosen | |
2794 | # first if we set CC to just the basename; use the full file name. | |
2795 | shift | |
2796 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2797 | fi | |
2798 | fi | |
2799 | fi | |
2800 | fi | |
2801 | CC=$ac_cv_prog_CC | |
2802 | if test -n "$CC"; then | |
8d138742 CE |
2803 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2804 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2805 | else |
8d138742 CE |
2806 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2807 | $as_echo "no" >&6; } | |
d9898ee8 | 2808 | fi |
2809 | ||
dd184caf | 2810 | |
d9898ee8 | 2811 | fi |
2812 | if test -z "$CC"; then | |
2813 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2814 | for ac_prog in cl.exe |
d9898ee8 | 2815 | do |
2816 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2817 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2818 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2819 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2820 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2821 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2822 | else |
2823 | if test -n "$CC"; then | |
2824 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2825 | else | |
2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2827 | for as_dir in $PATH | |
2828 | do | |
2829 | IFS=$as_save_IFS | |
2830 | test -z "$as_dir" && as_dir=. | |
2831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2833 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2834 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2835 | break 2 |
2836 | fi | |
2837 | done | |
2838 | done | |
dd184caf | 2839 | IFS=$as_save_IFS |
d9898ee8 | 2840 | |
2841 | fi | |
2842 | fi | |
2843 | CC=$ac_cv_prog_CC | |
2844 | if test -n "$CC"; then | |
8d138742 CE |
2845 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2846 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2847 | else |
8d138742 CE |
2848 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2849 | $as_echo "no" >&6; } | |
d9898ee8 | 2850 | fi |
2851 | ||
dd184caf | 2852 | |
d9898ee8 | 2853 | test -n "$CC" && break |
2854 | done | |
2855 | fi | |
2856 | if test -z "$CC"; then | |
2857 | ac_ct_CC=$CC | |
dd184caf | 2858 | for ac_prog in cl.exe |
d9898ee8 | 2859 | do |
2860 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2861 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2862 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2863 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2865 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2866 | else |
2867 | if test -n "$ac_ct_CC"; then | |
2868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2869 | else | |
2870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2871 | for as_dir in $PATH | |
2872 | do | |
2873 | IFS=$as_save_IFS | |
2874 | test -z "$as_dir" && as_dir=. | |
2875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2877 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 2878 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2879 | break 2 |
2880 | fi | |
2881 | done | |
2882 | done | |
dd184caf | 2883 | IFS=$as_save_IFS |
d9898ee8 | 2884 | |
2885 | fi | |
2886 | fi | |
2887 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2888 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2889 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2890 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2891 | else |
8d138742 CE |
2892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2893 | $as_echo "no" >&6; } | |
d9898ee8 | 2894 | fi |
2895 | ||
dd184caf | 2896 | |
d9898ee8 | 2897 | test -n "$ac_ct_CC" && break |
2898 | done | |
2899 | ||
dd184caf | 2900 | if test "x$ac_ct_CC" = x; then |
2901 | CC="" | |
2902 | else | |
2903 | case $cross_compiling:$ac_tool_warned in | |
2904 | yes:) | |
8d138742 CE |
2905 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2907 | ac_tool_warned=yes ;; |
2908 | esac | |
2909 | CC=$ac_ct_CC | |
2910 | fi | |
d9898ee8 | 2911 | fi |
2912 | ||
2913 | fi | |
2914 | ||
2915 | ||
8d138742 CE |
2916 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2918 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 2919 | See \`config.log' for more details." >&5 |
8d138742 | 2920 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 2921 | See \`config.log' for more details." >&2;} |
8d138742 | 2922 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 2923 | |
2924 | # Provide some information about the compiler. | |
8d138742 CE |
2925 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2926 | set X $ac_compile | |
2927 | ac_compiler=$2 | |
dd184caf | 2928 | { (ac_try="$ac_compiler --version >&5" |
2929 | case "(($ac_try" in | |
2930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2931 | *) ac_try_echo=$ac_try;; | |
2932 | esac | |
8d138742 CE |
2933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2934 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2935 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 2936 | ac_status=$? |
8d138742 | 2937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2938 | (exit $ac_status); } |
dd184caf | 2939 | { (ac_try="$ac_compiler -v >&5" |
2940 | case "(($ac_try" in | |
2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2942 | *) ac_try_echo=$ac_try;; | |
2943 | esac | |
8d138742 CE |
2944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2945 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2946 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 2947 | ac_status=$? |
8d138742 | 2948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2949 | (exit $ac_status); } |
dd184caf | 2950 | { (ac_try="$ac_compiler -V >&5" |
2951 | case "(($ac_try" in | |
2952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2953 | *) ac_try_echo=$ac_try;; | |
2954 | esac | |
8d138742 CE |
2955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2956 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2957 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 2958 | ac_status=$? |
8d138742 | 2959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2960 | (exit $ac_status); } |
2961 | ||
2962 | cat >conftest.$ac_ext <<_ACEOF | |
2963 | /* confdefs.h. */ | |
2964 | _ACEOF | |
2965 | cat confdefs.h >>conftest.$ac_ext | |
2966 | cat >>conftest.$ac_ext <<_ACEOF | |
2967 | /* end confdefs.h. */ | |
2968 | ||
2969 | int | |
2970 | main () | |
2971 | { | |
2972 | ||
2973 | ; | |
2974 | return 0; | |
2975 | } | |
2976 | _ACEOF | |
2977 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 2978 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 2979 | # Try to create an executable without -o first, disregard a.out. |
2980 | # It will help us diagnose broken compilers, and finding out an intuition | |
2981 | # of exeext. | |
8d138742 CE |
2982 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2983 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2984 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2985 | ||
2986 | # The possible output files: | |
2987 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2988 | ||
dd184caf | 2989 | ac_rmfiles= |
2990 | for ac_file in $ac_files | |
2991 | do | |
2992 | case $ac_file in | |
8d138742 | 2993 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 2994 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2995 | esac | |
2996 | done | |
2997 | rm -f $ac_rmfiles | |
2998 | ||
2999 | if { (ac_try="$ac_link_default" | |
3000 | case "(($ac_try" in | |
3001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3002 | *) ac_try_echo=$ac_try;; | |
3003 | esac | |
8d138742 CE |
3004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3005 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3006 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3007 | ac_status=$? |
8d138742 | 3008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3009 | (exit $ac_status); }; then |
dd184caf | 3010 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3011 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3012 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3013 | # so that the user can short-circuit this test for compilers unknown to | |
3014 | # Autoconf. | |
3015 | for ac_file in $ac_files '' | |
d9898ee8 | 3016 | do |
3017 | test -f "$ac_file" || continue | |
3018 | case $ac_file in | |
8d138742 | 3019 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3020 | ;; |
3021 | [ab].out ) | |
3022 | # We found the default executable, but exeext='' is most | |
3023 | # certainly right. | |
3024 | break;; | |
3025 | *.* ) | |
dd184caf | 3026 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3027 | then :; else | |
3028 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3029 | fi | |
3030 | # We set ac_cv_exeext here because the later test for it is not | |
3031 | # safe: cross compilers may not add the suffix if given an `-o' | |
3032 | # argument, so we may need to know it at that point already. | |
3033 | # Even if this section looks crufty: it has the advantage of | |
3034 | # actually working. | |
d9898ee8 | 3035 | break;; |
3036 | * ) | |
3037 | break;; | |
3038 | esac | |
3039 | done | |
dd184caf | 3040 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3041 | ||
d9898ee8 | 3042 | else |
dd184caf | 3043 | ac_file='' |
3044 | fi | |
3045 | ||
8d138742 CE |
3046 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3047 | $as_echo "$ac_file" >&6; } | |
dd184caf | 3048 | if test -z "$ac_file"; then |
8d138742 | 3049 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3050 | sed 's/^/| /' conftest.$ac_ext >&5 |
3051 | ||
8d138742 CE |
3052 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3054 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 3055 | See \`config.log' for more details." >&5 |
8d138742 | 3056 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 3057 | See \`config.log' for more details." >&2;} |
8d138742 | 3058 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 3059 | fi |
3060 | ||
3061 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3062 | |
dd184caf | 3063 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3064 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3065 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3066 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 3067 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3068 | # If not cross compiling, check that we can run a simple program. | |
3069 | if test "$cross_compiling" != yes; then | |
3070 | if { ac_try='./$ac_file' | |
dd184caf | 3071 | { (case "(($ac_try" in |
3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3073 | *) ac_try_echo=$ac_try;; | |
3074 | esac | |
8d138742 CE |
3075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3076 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3077 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3078 | ac_status=$? |
8d138742 | 3079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3080 | (exit $ac_status); }; }; then |
3081 | cross_compiling=no | |
3082 | else | |
3083 | if test "$cross_compiling" = maybe; then | |
3084 | cross_compiling=yes | |
3085 | else | |
8d138742 CE |
3086 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3088 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3089 | If you meant to cross compile, use \`--host'. |
3090 | See \`config.log' for more details." >&5 | |
8d138742 | 3091 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3092 | If you meant to cross compile, use \`--host'. |
3093 | See \`config.log' for more details." >&2;} | |
8d138742 | 3094 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3095 | fi |
3096 | fi | |
3097 | fi | |
8d138742 CE |
3098 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3099 | $as_echo "yes" >&6; } | |
d9898ee8 | 3100 | |
8d138742 | 3101 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3102 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3103 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3104 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3105 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3106 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3107 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3108 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3109 | |
8d138742 CE |
3110 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3111 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3112 | if { (ac_try="$ac_link" |
3113 | case "(($ac_try" in | |
3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3115 | *) ac_try_echo=$ac_try;; | |
3116 | esac | |
8d138742 CE |
3117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3118 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3119 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3120 | ac_status=$? |
8d138742 | 3121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3122 | (exit $ac_status); }; then |
3123 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3124 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3125 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3126 | # `rm'. | |
3127 | for ac_file in conftest.exe conftest conftest.*; do | |
3128 | test -f "$ac_file" || continue | |
3129 | case $ac_file in | |
8d138742 | 3130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3131 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3132 | break;; |
3133 | * ) break;; | |
3134 | esac | |
3135 | done | |
3136 | else | |
8d138742 CE |
3137 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3139 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3140 | See \`config.log' for more details." >&5 |
8d138742 | 3141 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3142 | See \`config.log' for more details." >&2;} |
8d138742 | 3143 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3144 | fi |
3145 | ||
3146 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3147 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3148 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3149 | |
3150 | rm -f conftest.$ac_ext | |
3151 | EXEEXT=$ac_cv_exeext | |
3152 | ac_exeext=$EXEEXT | |
8d138742 CE |
3153 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3154 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3155 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3156 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3157 | else |
3158 | cat >conftest.$ac_ext <<_ACEOF | |
3159 | /* confdefs.h. */ | |
3160 | _ACEOF | |
3161 | cat confdefs.h >>conftest.$ac_ext | |
3162 | cat >>conftest.$ac_ext <<_ACEOF | |
3163 | /* end confdefs.h. */ | |
3164 | ||
3165 | int | |
3166 | main () | |
3167 | { | |
3168 | ||
3169 | ; | |
3170 | return 0; | |
3171 | } | |
3172 | _ACEOF | |
3173 | rm -f conftest.o conftest.obj | |
dd184caf | 3174 | if { (ac_try="$ac_compile" |
3175 | case "(($ac_try" in | |
3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3177 | *) ac_try_echo=$ac_try;; | |
3178 | esac | |
8d138742 CE |
3179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3180 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3181 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3182 | ac_status=$? |
8d138742 | 3183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3184 | (exit $ac_status); }; then |
dd184caf | 3185 | for ac_file in conftest.o conftest.obj conftest.*; do |
3186 | test -f "$ac_file" || continue; | |
d9898ee8 | 3187 | case $ac_file in |
8d138742 | 3188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3189 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3190 | break;; | |
3191 | esac | |
3192 | done | |
3193 | else | |
8d138742 | 3194 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3195 | sed 's/^/| /' conftest.$ac_ext >&5 |
3196 | ||
8d138742 CE |
3197 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3199 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3200 | See \`config.log' for more details." >&5 |
8d138742 | 3201 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3202 | See \`config.log' for more details." >&2;} |
8d138742 | 3203 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3204 | fi |
3205 | ||
3206 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3207 | fi | |
8d138742 CE |
3208 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3209 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3210 | OBJEXT=$ac_cv_objext |
3211 | ac_objext=$OBJEXT | |
8d138742 CE |
3212 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3213 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3214 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3215 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3216 | else |
3217 | cat >conftest.$ac_ext <<_ACEOF | |
3218 | /* confdefs.h. */ | |
3219 | _ACEOF | |
3220 | cat confdefs.h >>conftest.$ac_ext | |
3221 | cat >>conftest.$ac_ext <<_ACEOF | |
3222 | /* end confdefs.h. */ | |
3223 | ||
3224 | int | |
3225 | main () | |
3226 | { | |
3227 | #ifndef __GNUC__ | |
3228 | choke me | |
3229 | #endif | |
3230 | ||
3231 | ; | |
3232 | return 0; | |
3233 | } | |
3234 | _ACEOF | |
3235 | rm -f conftest.$ac_objext | |
dd184caf | 3236 | if { (ac_try="$ac_compile" |
3237 | case "(($ac_try" in | |
3238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3239 | *) ac_try_echo=$ac_try;; | |
3240 | esac | |
8d138742 CE |
3241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3242 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3243 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3244 | ac_status=$? |
3245 | grep -v '^ *+' conftest.er1 >conftest.err | |
3246 | rm -f conftest.er1 | |
3247 | cat conftest.err >&5 | |
8d138742 | 3248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3249 | (exit $ac_status); } && { |
3250 | test -z "$ac_c_werror_flag" || | |
3251 | test ! -s conftest.err | |
3252 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3253 | ac_compiler_gnu=yes |
3254 | else | |
8d138742 | 3255 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
3257 | ||
dd184caf | 3258 | ac_compiler_gnu=no |
d9898ee8 | 3259 | fi |
dd184caf | 3260 | |
3261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3262 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3263 | ||
3264 | fi | |
8d138742 CE |
3265 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3266 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3267 | if test $ac_compiler_gnu = yes; then | |
3268 | GCC=yes | |
3269 | else | |
3270 | GCC= | |
3271 | fi | |
d9898ee8 | 3272 | ac_test_CFLAGS=${CFLAGS+set} |
3273 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3274 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3275 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3276 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3277 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3278 | else |
dd184caf | 3279 | ac_save_c_werror_flag=$ac_c_werror_flag |
3280 | ac_c_werror_flag=yes | |
3281 | ac_cv_prog_cc_g=no | |
3282 | CFLAGS="-g" | |
3283 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3284 | /* confdefs.h. */ |
3285 | _ACEOF | |
3286 | cat confdefs.h >>conftest.$ac_ext | |
3287 | cat >>conftest.$ac_ext <<_ACEOF | |
3288 | /* end confdefs.h. */ | |
3289 | ||
3290 | int | |
3291 | main () | |
3292 | { | |
3293 | ||
3294 | ; | |
3295 | return 0; | |
3296 | } | |
3297 | _ACEOF | |
3298 | rm -f conftest.$ac_objext | |
dd184caf | 3299 | if { (ac_try="$ac_compile" |
3300 | case "(($ac_try" in | |
3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3302 | *) ac_try_echo=$ac_try;; | |
3303 | esac | |
8d138742 CE |
3304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3305 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3306 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3307 | ac_status=$? |
3308 | grep -v '^ *+' conftest.er1 >conftest.err | |
3309 | rm -f conftest.er1 | |
3310 | cat conftest.err >&5 | |
8d138742 | 3311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3312 | (exit $ac_status); } && { |
3313 | test -z "$ac_c_werror_flag" || | |
3314 | test ! -s conftest.err | |
3315 | } && test -s conftest.$ac_objext; then | |
3316 | ac_cv_prog_cc_g=yes | |
3317 | else | |
8d138742 | 3318 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
3320 | ||
3321 | CFLAGS="" | |
3322 | cat >conftest.$ac_ext <<_ACEOF | |
3323 | /* confdefs.h. */ | |
3324 | _ACEOF | |
3325 | cat confdefs.h >>conftest.$ac_ext | |
3326 | cat >>conftest.$ac_ext <<_ACEOF | |
3327 | /* end confdefs.h. */ | |
3328 | ||
3329 | int | |
3330 | main () | |
3331 | { | |
3332 | ||
3333 | ; | |
3334 | return 0; | |
3335 | } | |
3336 | _ACEOF | |
3337 | rm -f conftest.$ac_objext | |
3338 | if { (ac_try="$ac_compile" | |
3339 | case "(($ac_try" in | |
3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3341 | *) ac_try_echo=$ac_try;; | |
3342 | esac | |
8d138742 CE |
3343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3344 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3345 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3346 | ac_status=$? |
dd184caf | 3347 | grep -v '^ *+' conftest.er1 >conftest.err |
3348 | rm -f conftest.er1 | |
3349 | cat conftest.err >&5 | |
8d138742 | 3350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3351 | (exit $ac_status); } && { |
3352 | test -z "$ac_c_werror_flag" || | |
3353 | test ! -s conftest.err | |
3354 | } && test -s conftest.$ac_objext; then | |
3355 | : | |
3356 | else | |
8d138742 | 3357 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
3359 | ||
3360 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3361 | CFLAGS="-g" | |
3362 | cat >conftest.$ac_ext <<_ACEOF | |
3363 | /* confdefs.h. */ | |
3364 | _ACEOF | |
3365 | cat confdefs.h >>conftest.$ac_ext | |
3366 | cat >>conftest.$ac_ext <<_ACEOF | |
3367 | /* end confdefs.h. */ | |
3368 | ||
3369 | int | |
3370 | main () | |
3371 | { | |
3372 | ||
3373 | ; | |
3374 | return 0; | |
3375 | } | |
3376 | _ACEOF | |
3377 | rm -f conftest.$ac_objext | |
3378 | if { (ac_try="$ac_compile" | |
3379 | case "(($ac_try" in | |
3380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3381 | *) ac_try_echo=$ac_try;; | |
3382 | esac | |
8d138742 CE |
3383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3384 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3385 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3386 | ac_status=$? |
dd184caf | 3387 | grep -v '^ *+' conftest.er1 >conftest.err |
3388 | rm -f conftest.er1 | |
3389 | cat conftest.err >&5 | |
8d138742 | 3390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3391 | (exit $ac_status); } && { |
3392 | test -z "$ac_c_werror_flag" || | |
3393 | test ! -s conftest.err | |
3394 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3395 | ac_cv_prog_cc_g=yes |
3396 | else | |
8d138742 | 3397 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
3399 | ||
dd184caf | 3400 | |
3401 | fi | |
3402 | ||
3403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3404 | fi | |
3405 | ||
3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3407 | fi |
dd184caf | 3408 | |
3409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3410 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3411 | fi |
8d138742 CE |
3412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3413 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3414 | if test "$ac_test_CFLAGS" = set; then |
3415 | CFLAGS=$ac_save_CFLAGS | |
3416 | elif test $ac_cv_prog_cc_g = yes; then | |
3417 | if test "$GCC" = yes; then | |
3418 | CFLAGS="-g -O2" | |
3419 | else | |
3420 | CFLAGS="-g" | |
3421 | fi | |
3422 | else | |
3423 | if test "$GCC" = yes; then | |
3424 | CFLAGS="-O2" | |
3425 | else | |
3426 | CFLAGS= | |
3427 | fi | |
3428 | fi | |
8d138742 CE |
3429 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3430 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3431 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3432 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3433 | else |
dd184caf | 3434 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3435 | ac_save_CC=$CC |
3436 | cat >conftest.$ac_ext <<_ACEOF | |
3437 | /* confdefs.h. */ | |
3438 | _ACEOF | |
3439 | cat confdefs.h >>conftest.$ac_ext | |
3440 | cat >>conftest.$ac_ext <<_ACEOF | |
3441 | /* end confdefs.h. */ | |
3442 | #include <stdarg.h> | |
3443 | #include <stdio.h> | |
3444 | #include <sys/types.h> | |
3445 | #include <sys/stat.h> | |
3446 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3447 | struct buf { int x; }; | |
3448 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3449 | static char *e (p, i) | |
3450 | char **p; | |
3451 | int i; | |
3452 | { | |
3453 | return p[i]; | |
3454 | } | |
3455 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3456 | { | |
3457 | char *s; | |
3458 | va_list v; | |
3459 | va_start (v,p); | |
3460 | s = g (p, va_arg (v,int)); | |
3461 | va_end (v); | |
3462 | return s; | |
3463 | } | |
3464 | ||
3465 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3466 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3467 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3468 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3469 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3470 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3471 | that's true only with -std. */ |
d9898ee8 | 3472 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3473 | ||
dd184caf | 3474 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3475 | inside strings and character constants. */ | |
3476 | #define FOO(x) 'x' | |
3477 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3478 | ||
d9898ee8 | 3479 | int test (int i, double x); |
3480 | struct s1 {int (*f) (int a);}; | |
3481 | struct s2 {int (*f) (double a);}; | |
3482 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3483 | int argc; | |
3484 | char **argv; | |
3485 | int | |
3486 | main () | |
3487 | { | |
3488 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3489 | ; | |
3490 | return 0; | |
3491 | } | |
3492 | _ACEOF | |
dd184caf | 3493 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3494 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3495 | do |
3496 | CC="$ac_save_CC $ac_arg" | |
3497 | rm -f conftest.$ac_objext | |
dd184caf | 3498 | if { (ac_try="$ac_compile" |
3499 | case "(($ac_try" in | |
3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3501 | *) ac_try_echo=$ac_try;; | |
3502 | esac | |
8d138742 CE |
3503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3504 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3505 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3506 | ac_status=$? |
3507 | grep -v '^ *+' conftest.er1 >conftest.err | |
3508 | rm -f conftest.er1 | |
3509 | cat conftest.err >&5 | |
8d138742 | 3510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3511 | (exit $ac_status); } && { |
3512 | test -z "$ac_c_werror_flag" || | |
3513 | test ! -s conftest.err | |
3514 | } && test -s conftest.$ac_objext; then | |
3515 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3516 | else |
8d138742 | 3517 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
3519 | ||
dd184caf | 3520 | |
d9898ee8 | 3521 | fi |
dd184caf | 3522 | |
3523 | rm -f core conftest.err conftest.$ac_objext | |
3524 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3525 | done |
dd184caf | 3526 | rm -f conftest.$ac_ext |
d9898ee8 | 3527 | CC=$ac_save_CC |
3528 | ||
3529 | fi | |
dd184caf | 3530 | # AC_CACHE_VAL |
3531 | case "x$ac_cv_prog_cc_c89" in | |
3532 | x) | |
8d138742 CE |
3533 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3534 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3535 | xno) |
8d138742 CE |
3536 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3537 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3538 | *) |
dd184caf | 3539 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3540 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3541 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3542 | esac |
3543 | ||
d9898ee8 | 3544 | |
d9898ee8 | 3545 | ac_ext=c |
3546 | ac_cpp='$CPP $CPPFLAGS' | |
3547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 3550 | |
d9898ee8 | 3551 | depcc="$CC" am_compiler_list= |
3552 | ||
8d138742 CE |
3553 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3554 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3555 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3556 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3557 | else |
3558 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3559 | # We make a subdir and do the tests there. Otherwise we can end up | |
3560 | # making bogus files that we don't know about and never remove. For | |
3561 | # instance it was reported that on HP-UX the gcc test will end up | |
3562 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3563 | # in D'. | |
3564 | mkdir conftest.dir | |
3565 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3566 | # using a relative directory. | |
3567 | cp "$am_depcomp" conftest.dir | |
3568 | cd conftest.dir | |
3569 | # We will build objects and dependencies in a subdirectory because | |
3570 | # it helps to detect inapplicable dependency modes. For instance | |
3571 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3572 | # side effect of compilation, but ICC will put the dependencies in | |
3573 | # the current directory while Tru64 will put them in the object | |
3574 | # directory. | |
3575 | mkdir sub | |
3576 | ||
3577 | am_cv_CC_dependencies_compiler_type=none | |
3578 | if test "$am_compiler_list" = ""; then | |
3579 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3580 | fi | |
8d138742 CE |
3581 | am__universal=false |
3582 | case " $depcc " in #( | |
3583 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3584 | esac | |
3585 | ||
d9898ee8 | 3586 | for depmode in $am_compiler_list; do |
3587 | # Setup a source with many dependencies, because some compilers | |
3588 | # like to wrap large dependency lists on column 80 (with \), and | |
3589 | # we should not choose a depcomp mode which is confused by this. | |
3590 | # | |
3591 | # We need to recreate these files for each test, as the compiler may | |
3592 | # overwrite some of them when testing with obscure command lines. | |
3593 | # This happens at least with the AIX C compiler. | |
3594 | : > sub/conftest.c | |
3595 | for i in 1 2 3 4 5 6; do | |
3596 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3597 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3598 | # Solaris 8's {/usr,}/bin/sh. | |
3599 | touch sub/conftst$i.h | |
3600 | done | |
3601 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3602 | ||
8d138742 CE |
3603 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3604 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3605 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3606 | # versions had trouble with output in subdirs | |
3607 | am__obj=sub/conftest.${OBJEXT-o} | |
3608 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3609 | case $depmode in |
8d138742 CE |
3610 | gcc) |
3611 | # This depmode causes a compiler race in universal mode. | |
3612 | test "$am__universal" = false || continue | |
3613 | ;; | |
d9898ee8 | 3614 | nosideeffect) |
3615 | # after this tag, mechanisms are not by side-effect, so they'll | |
3616 | # only be used when explicitly requested | |
3617 | if test "x$enable_dependency_tracking" = xyes; then | |
3618 | continue | |
3619 | else | |
3620 | break | |
3621 | fi | |
3622 | ;; | |
8d138742 CE |
3623 | msvisualcpp | msvcmsys) |
3624 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3625 | # not run yet. These depmodes are late enough in the game, and | |
3626 | # so weak that their functioning should not be impacted. | |
3627 | am__obj=conftest.${OBJEXT-o} | |
3628 | am__minus_obj= | |
3629 | ;; | |
d9898ee8 | 3630 | none) break ;; |
3631 | esac | |
d9898ee8 | 3632 | if depmode=$depmode \ |
8d138742 | 3633 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3634 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3635 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3636 | >/dev/null 2>conftest.err && |
dd184caf | 3637 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3638 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3639 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3640 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3641 | # icc doesn't choke on unknown options, it will just issue warnings | |
3642 | # or remarks (even with -Werror). So we grep stderr for any message | |
3643 | # that says an option was ignored or not supported. | |
3644 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3645 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3646 | # The diagnosis changed in icc 8.0: | |
3647 | # icc: Command line remark: option '-MP' not supported | |
3648 | if (grep 'ignoring option' conftest.err || | |
3649 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3650 | am_cv_CC_dependencies_compiler_type=$depmode | |
3651 | break | |
3652 | fi | |
3653 | fi | |
3654 | done | |
3655 | ||
3656 | cd .. | |
3657 | rm -rf conftest.dir | |
3658 | else | |
3659 | am_cv_CC_dependencies_compiler_type=none | |
3660 | fi | |
3661 | ||
3662 | fi | |
8d138742 CE |
3663 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3664 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3665 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3666 | ||
dd184caf | 3667 | if |
d9898ee8 | 3668 | test "x$enable_dependency_tracking" != xno \ |
3669 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3670 | am__fastdepCC_TRUE= | |
3671 | am__fastdepCC_FALSE='#' | |
3672 | else | |
3673 | am__fastdepCC_TRUE='#' | |
3674 | am__fastdepCC_FALSE= | |
3675 | fi | |
3676 | ||
3677 | ||
3678 | ||
3679 | ac_ext=c | |
3680 | ac_cpp='$CPP $CPPFLAGS' | |
3681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8d138742 CE |
3684 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3685 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d9898ee8 | 3686 | # On Suns, sometimes $CPP names a directory. |
3687 | if test -n "$CPP" && test -d "$CPP"; then | |
3688 | CPP= | |
3689 | fi | |
3690 | if test -z "$CPP"; then | |
3691 | if test "${ac_cv_prog_CPP+set}" = set; then | |
8d138742 | 3692 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3693 | else |
3694 | # Double quotes because CPP needs to be expanded | |
3695 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3696 | do | |
3697 | ac_preproc_ok=false | |
3698 | for ac_c_preproc_warn_flag in '' yes | |
3699 | do | |
3700 | # Use a header file that comes with gcc, so configuring glibc | |
3701 | # with a fresh cross-compiler works. | |
3702 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3703 | # <limits.h> exists even on freestanding compilers. | |
3704 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3705 | # not just through cpp. "Syntax error" is here to catch this case. | |
3706 | cat >conftest.$ac_ext <<_ACEOF | |
3707 | /* confdefs.h. */ | |
3708 | _ACEOF | |
3709 | cat confdefs.h >>conftest.$ac_ext | |
3710 | cat >>conftest.$ac_ext <<_ACEOF | |
3711 | /* end confdefs.h. */ | |
3712 | #ifdef __STDC__ | |
3713 | # include <limits.h> | |
3714 | #else | |
3715 | # include <assert.h> | |
3716 | #endif | |
3717 | Syntax error | |
3718 | _ACEOF | |
dd184caf | 3719 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3720 | case "(($ac_try" in | |
3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3722 | *) ac_try_echo=$ac_try;; | |
3723 | esac | |
8d138742 CE |
3724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3725 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3727 | ac_status=$? |
3728 | grep -v '^ *+' conftest.er1 >conftest.err | |
3729 | rm -f conftest.er1 | |
3730 | cat conftest.err >&5 | |
8d138742 | 3731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3732 | (exit $ac_status); } >/dev/null && { |
3733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3734 | test ! -s conftest.err | |
3735 | }; then | |
d9898ee8 | 3736 | : |
3737 | else | |
8d138742 | 3738 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3739 | sed 's/^/| /' conftest.$ac_ext >&5 |
3740 | ||
3741 | # Broken: fails on valid input. | |
3742 | continue | |
3743 | fi | |
dd184caf | 3744 | |
d9898ee8 | 3745 | rm -f conftest.err conftest.$ac_ext |
3746 | ||
dd184caf | 3747 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3748 | # can be detected and how. |
3749 | cat >conftest.$ac_ext <<_ACEOF | |
3750 | /* confdefs.h. */ | |
3751 | _ACEOF | |
3752 | cat confdefs.h >>conftest.$ac_ext | |
3753 | cat >>conftest.$ac_ext <<_ACEOF | |
3754 | /* end confdefs.h. */ | |
3755 | #include <ac_nonexistent.h> | |
3756 | _ACEOF | |
dd184caf | 3757 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3758 | case "(($ac_try" in | |
3759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3760 | *) ac_try_echo=$ac_try;; | |
3761 | esac | |
8d138742 CE |
3762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3763 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3765 | ac_status=$? |
3766 | grep -v '^ *+' conftest.er1 >conftest.err | |
3767 | rm -f conftest.er1 | |
3768 | cat conftest.err >&5 | |
8d138742 | 3769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3770 | (exit $ac_status); } >/dev/null && { |
3771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3772 | test ! -s conftest.err | |
3773 | }; then | |
d9898ee8 | 3774 | # Broken: success on invalid input. |
3775 | continue | |
3776 | else | |
8d138742 | 3777 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3778 | sed 's/^/| /' conftest.$ac_ext >&5 |
3779 | ||
3780 | # Passes both tests. | |
3781 | ac_preproc_ok=: | |
3782 | break | |
3783 | fi | |
dd184caf | 3784 | |
d9898ee8 | 3785 | rm -f conftest.err conftest.$ac_ext |
3786 | ||
3787 | done | |
3788 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3789 | rm -f conftest.err conftest.$ac_ext | |
3790 | if $ac_preproc_ok; then | |
3791 | break | |
3792 | fi | |
3793 | ||
3794 | done | |
3795 | ac_cv_prog_CPP=$CPP | |
3796 | ||
3797 | fi | |
3798 | CPP=$ac_cv_prog_CPP | |
3799 | else | |
3800 | ac_cv_prog_CPP=$CPP | |
3801 | fi | |
8d138742 CE |
3802 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3803 | $as_echo "$CPP" >&6; } | |
d9898ee8 | 3804 | ac_preproc_ok=false |
3805 | for ac_c_preproc_warn_flag in '' yes | |
3806 | do | |
3807 | # Use a header file that comes with gcc, so configuring glibc | |
3808 | # with a fresh cross-compiler works. | |
3809 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3810 | # <limits.h> exists even on freestanding compilers. | |
3811 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3812 | # not just through cpp. "Syntax error" is here to catch this case. | |
3813 | cat >conftest.$ac_ext <<_ACEOF | |
3814 | /* confdefs.h. */ | |
3815 | _ACEOF | |
3816 | cat confdefs.h >>conftest.$ac_ext | |
3817 | cat >>conftest.$ac_ext <<_ACEOF | |
3818 | /* end confdefs.h. */ | |
3819 | #ifdef __STDC__ | |
3820 | # include <limits.h> | |
3821 | #else | |
3822 | # include <assert.h> | |
3823 | #endif | |
3824 | Syntax error | |
3825 | _ACEOF | |
dd184caf | 3826 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3827 | case "(($ac_try" in | |
3828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3829 | *) ac_try_echo=$ac_try;; | |
3830 | esac | |
8d138742 CE |
3831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3832 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3833 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3834 | ac_status=$? |
3835 | grep -v '^ *+' conftest.er1 >conftest.err | |
3836 | rm -f conftest.er1 | |
3837 | cat conftest.err >&5 | |
8d138742 | 3838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3839 | (exit $ac_status); } >/dev/null && { |
3840 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3841 | test ! -s conftest.err | |
3842 | }; then | |
d9898ee8 | 3843 | : |
3844 | else | |
8d138742 | 3845 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3846 | sed 's/^/| /' conftest.$ac_ext >&5 |
3847 | ||
3848 | # Broken: fails on valid input. | |
3849 | continue | |
3850 | fi | |
dd184caf | 3851 | |
d9898ee8 | 3852 | rm -f conftest.err conftest.$ac_ext |
3853 | ||
dd184caf | 3854 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3855 | # can be detected and how. |
3856 | cat >conftest.$ac_ext <<_ACEOF | |
3857 | /* confdefs.h. */ | |
3858 | _ACEOF | |
3859 | cat confdefs.h >>conftest.$ac_ext | |
3860 | cat >>conftest.$ac_ext <<_ACEOF | |
3861 | /* end confdefs.h. */ | |
3862 | #include <ac_nonexistent.h> | |
3863 | _ACEOF | |
dd184caf | 3864 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3865 | case "(($ac_try" in | |
3866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3867 | *) ac_try_echo=$ac_try;; | |
3868 | esac | |
8d138742 CE |
3869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3870 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3872 | ac_status=$? |
3873 | grep -v '^ *+' conftest.er1 >conftest.err | |
3874 | rm -f conftest.er1 | |
3875 | cat conftest.err >&5 | |
8d138742 | 3876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3877 | (exit $ac_status); } >/dev/null && { |
3878 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3879 | test ! -s conftest.err | |
3880 | }; then | |
d9898ee8 | 3881 | # Broken: success on invalid input. |
3882 | continue | |
3883 | else | |
8d138742 | 3884 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3885 | sed 's/^/| /' conftest.$ac_ext >&5 |
3886 | ||
3887 | # Passes both tests. | |
3888 | ac_preproc_ok=: | |
3889 | break | |
3890 | fi | |
dd184caf | 3891 | |
d9898ee8 | 3892 | rm -f conftest.err conftest.$ac_ext |
3893 | ||
3894 | done | |
3895 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3896 | rm -f conftest.err conftest.$ac_ext | |
3897 | if $ac_preproc_ok; then | |
3898 | : | |
3899 | else | |
8d138742 CE |
3900 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3902 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d9898ee8 | 3903 | See \`config.log' for more details." >&5 |
8d138742 | 3904 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d9898ee8 | 3905 | See \`config.log' for more details." >&2;} |
8d138742 | 3906 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3907 | fi |
3908 | ||
3909 | ac_ext=c | |
3910 | ac_cpp='$CPP $CPPFLAGS' | |
3911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3914 | ||
3915 | ||
8d138742 CE |
3916 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3917 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
dd184caf | 3918 | if test "${ac_cv_path_GREP+set}" = set; then |
8d138742 | 3919 | $as_echo_n "(cached) " >&6 |
dd184caf | 3920 | else |
8d138742 | 3921 | if test -z "$GREP"; then |
dd184caf | 3922 | ac_path_GREP_found=false |
8d138742 CE |
3923 | # Loop through the user's path and test for each of PROGNAME-LIST |
3924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 3925 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3926 | do | |
3927 | IFS=$as_save_IFS | |
3928 | test -z "$as_dir" && as_dir=. | |
3929 | for ac_prog in grep ggrep; do | |
8d138742 CE |
3930 | for ac_exec_ext in '' $ac_executable_extensions; do |
3931 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3932 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3933 | # Check for GNU ac_path_GREP and select it if it is found. | |
dd184caf | 3934 | # Check for GNU $ac_path_GREP |
3935 | case `"$ac_path_GREP" --version 2>&1` in | |
3936 | *GNU*) | |
3937 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3938 | *) | |
3939 | ac_count=0 | |
8d138742 | 3940 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 3941 | while : |
3942 | do | |
3943 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3944 | mv "conftest.tmp" "conftest.in" | |
3945 | cp "conftest.in" "conftest.nl" | |
8d138742 | 3946 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 3947 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3948 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3949 | ac_count=`expr $ac_count + 1` | |
3950 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3951 | # Best one so far, save it but keep looking for a better one | |
3952 | ac_cv_path_GREP="$ac_path_GREP" | |
3953 | ac_path_GREP_max=$ac_count | |
3954 | fi | |
3955 | # 10*(2^10) chars as input seems more than enough | |
3956 | test $ac_count -gt 10 && break | |
3957 | done | |
3958 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3959 | esac | |
3960 | ||
8d138742 CE |
3961 | $ac_path_GREP_found && break 3 |
3962 | done | |
dd184caf | 3963 | done |
3964 | done | |
dd184caf | 3965 | IFS=$as_save_IFS |
8d138742 CE |
3966 | if test -z "$ac_cv_path_GREP"; then |
3967 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3968 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 3969 | { (exit 1); exit 1; }; } |
8d138742 | 3970 | fi |
dd184caf | 3971 | else |
3972 | ac_cv_path_GREP=$GREP | |
3973 | fi | |
3974 | ||
dd184caf | 3975 | fi |
8d138742 CE |
3976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3977 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 3978 | GREP="$ac_cv_path_GREP" |
3979 | ||
3980 | ||
8d138742 CE |
3981 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3982 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 3983 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 3984 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3985 | else |
dd184caf | 3986 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3987 | then ac_cv_path_EGREP="$GREP -E" | |
3988 | else | |
8d138742 | 3989 | if test -z "$EGREP"; then |
dd184caf | 3990 | ac_path_EGREP_found=false |
8d138742 CE |
3991 | # Loop through the user's path and test for each of PROGNAME-LIST |
3992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 3993 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3994 | do | |
3995 | IFS=$as_save_IFS | |
3996 | test -z "$as_dir" && as_dir=. | |
3997 | for ac_prog in egrep; do | |
8d138742 CE |
3998 | for ac_exec_ext in '' $ac_executable_extensions; do |
3999 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4000 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4001 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 4002 | # Check for GNU $ac_path_EGREP |
4003 | case `"$ac_path_EGREP" --version 2>&1` in | |
4004 | *GNU*) | |
4005 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4006 | *) | |
4007 | ac_count=0 | |
8d138742 | 4008 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4009 | while : |
4010 | do | |
4011 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4012 | mv "conftest.tmp" "conftest.in" | |
4013 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4014 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4015 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4016 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4017 | ac_count=`expr $ac_count + 1` | |
4018 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4019 | # Best one so far, save it but keep looking for a better one | |
4020 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4021 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4022 | fi |
dd184caf | 4023 | # 10*(2^10) chars as input seems more than enough |
4024 | test $ac_count -gt 10 && break | |
4025 | done | |
4026 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4027 | esac | |
4028 | ||
8d138742 CE |
4029 | $ac_path_EGREP_found && break 3 |
4030 | done | |
dd184caf | 4031 | done |
4032 | done | |
dd184caf | 4033 | IFS=$as_save_IFS |
8d138742 CE |
4034 | if test -z "$ac_cv_path_EGREP"; then |
4035 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4036 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 4037 | { (exit 1); exit 1; }; } |
8d138742 | 4038 | fi |
dd184caf | 4039 | else |
4040 | ac_cv_path_EGREP=$EGREP | |
4041 | fi | |
4042 | ||
dd184caf | 4043 | fi |
d9898ee8 | 4044 | fi |
8d138742 CE |
4045 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4046 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
dd184caf | 4047 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 | 4048 | |
4049 | ||
8d138742 CE |
4050 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4051 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d9898ee8 | 4052 | if test "${ac_cv_header_stdc+set}" = set; then |
8d138742 | 4053 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4054 | else |
4055 | cat >conftest.$ac_ext <<_ACEOF | |
4056 | /* confdefs.h. */ | |
4057 | _ACEOF | |
4058 | cat confdefs.h >>conftest.$ac_ext | |
4059 | cat >>conftest.$ac_ext <<_ACEOF | |
4060 | /* end confdefs.h. */ | |
4061 | #include <stdlib.h> | |
4062 | #include <stdarg.h> | |
4063 | #include <string.h> | |
4064 | #include <float.h> | |
4065 | ||
4066 | int | |
4067 | main () | |
4068 | { | |
4069 | ||
4070 | ; | |
4071 | return 0; | |
4072 | } | |
4073 | _ACEOF | |
4074 | rm -f conftest.$ac_objext | |
dd184caf | 4075 | if { (ac_try="$ac_compile" |
4076 | case "(($ac_try" in | |
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4078 | *) ac_try_echo=$ac_try;; | |
4079 | esac | |
8d138742 CE |
4080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4081 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4082 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4083 | ac_status=$? |
4084 | grep -v '^ *+' conftest.er1 >conftest.err | |
4085 | rm -f conftest.er1 | |
4086 | cat conftest.err >&5 | |
8d138742 | 4087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4088 | (exit $ac_status); } && { |
4089 | test -z "$ac_c_werror_flag" || | |
4090 | test ! -s conftest.err | |
4091 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4092 | ac_cv_header_stdc=yes |
4093 | else | |
8d138742 | 4094 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
4096 | ||
dd184caf | 4097 | ac_cv_header_stdc=no |
d9898ee8 | 4098 | fi |
dd184caf | 4099 | |
4100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 4101 | |
4102 | if test $ac_cv_header_stdc = yes; then | |
4103 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4104 | cat >conftest.$ac_ext <<_ACEOF | |
4105 | /* confdefs.h. */ | |
4106 | _ACEOF | |
4107 | cat confdefs.h >>conftest.$ac_ext | |
4108 | cat >>conftest.$ac_ext <<_ACEOF | |
4109 | /* end confdefs.h. */ | |
4110 | #include <string.h> | |
4111 | ||
4112 | _ACEOF | |
4113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4114 | $EGREP "memchr" >/dev/null 2>&1; then | |
4115 | : | |
4116 | else | |
4117 | ac_cv_header_stdc=no | |
4118 | fi | |
4119 | rm -f conftest* | |
4120 | ||
4121 | fi | |
4122 | ||
4123 | if test $ac_cv_header_stdc = yes; then | |
4124 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4125 | cat >conftest.$ac_ext <<_ACEOF | |
4126 | /* confdefs.h. */ | |
4127 | _ACEOF | |
4128 | cat confdefs.h >>conftest.$ac_ext | |
4129 | cat >>conftest.$ac_ext <<_ACEOF | |
4130 | /* end confdefs.h. */ | |
4131 | #include <stdlib.h> | |
4132 | ||
4133 | _ACEOF | |
4134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4135 | $EGREP "free" >/dev/null 2>&1; then | |
4136 | : | |
4137 | else | |
4138 | ac_cv_header_stdc=no | |
4139 | fi | |
4140 | rm -f conftest* | |
4141 | ||
4142 | fi | |
4143 | ||
4144 | if test $ac_cv_header_stdc = yes; then | |
4145 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4146 | if test "$cross_compiling" = yes; then | |
4147 | : | |
4148 | else | |
4149 | cat >conftest.$ac_ext <<_ACEOF | |
4150 | /* confdefs.h. */ | |
4151 | _ACEOF | |
4152 | cat confdefs.h >>conftest.$ac_ext | |
4153 | cat >>conftest.$ac_ext <<_ACEOF | |
4154 | /* end confdefs.h. */ | |
4155 | #include <ctype.h> | |
dd184caf | 4156 | #include <stdlib.h> |
d9898ee8 | 4157 | #if ((' ' & 0x0FF) == 0x020) |
4158 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4159 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4160 | #else | |
4161 | # define ISLOWER(c) \ | |
4162 | (('a' <= (c) && (c) <= 'i') \ | |
4163 | || ('j' <= (c) && (c) <= 'r') \ | |
4164 | || ('s' <= (c) && (c) <= 'z')) | |
4165 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4166 | #endif | |
4167 | ||
4168 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4169 | int | |
4170 | main () | |
4171 | { | |
4172 | int i; | |
4173 | for (i = 0; i < 256; i++) | |
4174 | if (XOR (islower (i), ISLOWER (i)) | |
4175 | || toupper (i) != TOUPPER (i)) | |
dd184caf | 4176 | return 2; |
4177 | return 0; | |
d9898ee8 | 4178 | } |
4179 | _ACEOF | |
4180 | rm -f conftest$ac_exeext | |
dd184caf | 4181 | if { (ac_try="$ac_link" |
4182 | case "(($ac_try" in | |
4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4184 | *) ac_try_echo=$ac_try;; | |
4185 | esac | |
8d138742 CE |
4186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4187 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4188 | (eval "$ac_link") 2>&5 |
d9898ee8 | 4189 | ac_status=$? |
8d138742 | 4190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 4191 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf | 4192 | { (case "(($ac_try" in |
4193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4194 | *) ac_try_echo=$ac_try;; | |
4195 | esac | |
8d138742 CE |
4196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4197 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4198 | (eval "$ac_try") 2>&5 |
d9898ee8 | 4199 | ac_status=$? |
8d138742 | 4200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 4201 | (exit $ac_status); }; }; then |
4202 | : | |
4203 | else | |
8d138742 CE |
4204 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4205 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
4207 | ||
4208 | ( exit $ac_status ) | |
4209 | ac_cv_header_stdc=no | |
4210 | fi | |
8d138742 | 4211 | rm -rf conftest.dSYM |
dd184caf | 4212 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4213 | fi |
dd184caf | 4214 | |
4215 | ||
d9898ee8 | 4216 | fi |
4217 | fi | |
8d138742 CE |
4218 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4219 | $as_echo "$ac_cv_header_stdc" >&6; } | |
d9898ee8 | 4220 | if test $ac_cv_header_stdc = yes; then |
4221 | ||
4222 | cat >>confdefs.h <<\_ACEOF | |
4223 | #define STDC_HEADERS 1 | |
4224 | _ACEOF | |
4225 | ||
4226 | fi | |
4227 | ||
4228 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4229 | ||
4230 | ||
4231 | ||
4232 | ||
4233 | ||
4234 | ||
4235 | ||
4236 | ||
4237 | ||
4238 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4239 | inttypes.h stdint.h unistd.h | |
4240 | do | |
8d138742 CE |
4241 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4242 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4243 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 4244 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 4245 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4246 | else |
4247 | cat >conftest.$ac_ext <<_ACEOF | |
4248 | /* confdefs.h. */ | |
4249 | _ACEOF | |
4250 | cat confdefs.h >>conftest.$ac_ext | |
4251 | cat >>conftest.$ac_ext <<_ACEOF | |
4252 | /* end confdefs.h. */ | |
4253 | $ac_includes_default | |
4254 | ||
4255 | #include <$ac_header> | |
4256 | _ACEOF | |
4257 | rm -f conftest.$ac_objext | |
dd184caf | 4258 | if { (ac_try="$ac_compile" |
4259 | case "(($ac_try" in | |
4260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4261 | *) ac_try_echo=$ac_try;; | |
4262 | esac | |
8d138742 CE |
4263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4264 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4265 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4266 | ac_status=$? |
4267 | grep -v '^ *+' conftest.er1 >conftest.err | |
4268 | rm -f conftest.er1 | |
4269 | cat conftest.err >&5 | |
8d138742 | 4270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4271 | (exit $ac_status); } && { |
4272 | test -z "$ac_c_werror_flag" || | |
4273 | test ! -s conftest.err | |
4274 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4275 | eval "$as_ac_Header=yes" |
4276 | else | |
8d138742 | 4277 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4278 | sed 's/^/| /' conftest.$ac_ext >&5 |
4279 | ||
dd184caf | 4280 | eval "$as_ac_Header=no" |
d9898ee8 | 4281 | fi |
dd184caf | 4282 | |
4283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 4284 | fi |
8d138742 CE |
4285 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4286 | $as_echo "$as_val"'` | |
4287 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4288 | $as_echo "$ac_res" >&6; } | |
4289 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4290 | $as_echo "$as_val"'` | |
4291 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 4292 | cat >>confdefs.h <<_ACEOF |
8d138742 | 4293 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 4294 | _ACEOF |
4295 | ||
4296 | fi | |
4297 | ||
4298 | done | |
4299 | ||
4300 | ||
8d138742 CE |
4301 | |
4302 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4303 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4304 | $as_echo_n "checking for minix/config.h... " >&6; } | |
d9898ee8 | 4305 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
8d138742 | 4306 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4307 | fi |
8d138742 CE |
4308 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4309 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
d9898ee8 | 4310 | else |
4311 | # Is the header compilable? | |
8d138742 CE |
4312 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4313 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
d9898ee8 | 4314 | cat >conftest.$ac_ext <<_ACEOF |
4315 | /* confdefs.h. */ | |
4316 | _ACEOF | |
4317 | cat confdefs.h >>conftest.$ac_ext | |
4318 | cat >>conftest.$ac_ext <<_ACEOF | |
4319 | /* end confdefs.h. */ | |
4320 | $ac_includes_default | |
4321 | #include <minix/config.h> | |
4322 | _ACEOF | |
4323 | rm -f conftest.$ac_objext | |
dd184caf | 4324 | if { (ac_try="$ac_compile" |
4325 | case "(($ac_try" in | |
4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4327 | *) ac_try_echo=$ac_try;; | |
4328 | esac | |
8d138742 CE |
4329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4330 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4331 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4332 | ac_status=$? |
4333 | grep -v '^ *+' conftest.er1 >conftest.err | |
4334 | rm -f conftest.er1 | |
4335 | cat conftest.err >&5 | |
8d138742 | 4336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4337 | (exit $ac_status); } && { |
4338 | test -z "$ac_c_werror_flag" || | |
4339 | test ! -s conftest.err | |
4340 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4341 | ac_header_compiler=yes |
4342 | else | |
8d138742 | 4343 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
4345 | ||
dd184caf | 4346 | ac_header_compiler=no |
d9898ee8 | 4347 | fi |
dd184caf | 4348 | |
4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
4350 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4351 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 4352 | |
4353 | # Is the header present? | |
8d138742 CE |
4354 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4355 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
d9898ee8 | 4356 | cat >conftest.$ac_ext <<_ACEOF |
4357 | /* confdefs.h. */ | |
4358 | _ACEOF | |
4359 | cat confdefs.h >>conftest.$ac_ext | |
4360 | cat >>conftest.$ac_ext <<_ACEOF | |
4361 | /* end confdefs.h. */ | |
4362 | #include <minix/config.h> | |
4363 | _ACEOF | |
dd184caf | 4364 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4365 | case "(($ac_try" in | |
4366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4367 | *) ac_try_echo=$ac_try;; | |
4368 | esac | |
8d138742 CE |
4369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4370 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 4372 | ac_status=$? |
4373 | grep -v '^ *+' conftest.er1 >conftest.err | |
4374 | rm -f conftest.er1 | |
4375 | cat conftest.err >&5 | |
8d138742 | 4376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4377 | (exit $ac_status); } >/dev/null && { |
4378 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4379 | test ! -s conftest.err | |
4380 | }; then | |
d9898ee8 | 4381 | ac_header_preproc=yes |
4382 | else | |
8d138742 | 4383 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4384 | sed 's/^/| /' conftest.$ac_ext >&5 |
4385 | ||
4386 | ac_header_preproc=no | |
4387 | fi | |
dd184caf | 4388 | |
d9898ee8 | 4389 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
4390 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4391 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 4392 | |
4393 | # So? What about this header? | |
4394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4395 | yes:no: ) | |
8d138742 CE |
4396 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4397 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4398 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4399 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 4400 | ac_header_preproc=yes |
4401 | ;; | |
4402 | no:yes:* ) | |
8d138742 CE |
4403 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4404 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4405 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4406 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4407 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4408 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4409 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4410 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4411 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4412 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4413 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4414 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 4415 | ( cat <<\_ASBOX |
d9898ee8 | 4416 | ## -------------------------------------------------- ## |
4417 | ## Report this to courier-users@lists.sourceforge.net ## | |
4418 | ## -------------------------------------------------- ## | |
4419 | _ASBOX | |
dd184caf | 4420 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 4421 | ;; |
4422 | esac | |
8d138742 CE |
4423 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4424 | $as_echo_n "checking for minix/config.h... " >&6; } | |
d9898ee8 | 4425 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
8d138742 | 4426 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4427 | else |
4428 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4429 | fi | |
8d138742 CE |
4430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4431 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
d9898ee8 | 4432 | |
4433 | fi | |
8d138742 | 4434 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
d9898ee8 | 4435 | MINIX=yes |
4436 | else | |
4437 | MINIX= | |
4438 | fi | |
4439 | ||
4440 | ||
8d138742 | 4441 | if test "$MINIX" = yes; then |
d9898ee8 | 4442 | |
4443 | cat >>confdefs.h <<\_ACEOF | |
4444 | #define _POSIX_SOURCE 1 | |
4445 | _ACEOF | |
4446 | ||
4447 | ||
4448 | cat >>confdefs.h <<\_ACEOF | |
4449 | #define _POSIX_1_SOURCE 2 | |
4450 | _ACEOF | |
4451 | ||
4452 | ||
4453 | cat >>confdefs.h <<\_ACEOF | |
4454 | #define _MINIX 1 | |
4455 | _ACEOF | |
4456 | ||
d9898ee8 | 4457 | fi |
d9898ee8 | 4458 | |
dd184caf | 4459 | |
d9898ee8 | 4460 | |
8d138742 CE |
4461 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4462 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4463 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4464 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4465 | else |
8d138742 CE |
4466 | cat >conftest.$ac_ext <<_ACEOF |
4467 | /* confdefs.h. */ | |
4468 | _ACEOF | |
4469 | cat confdefs.h >>conftest.$ac_ext | |
4470 | cat >>conftest.$ac_ext <<_ACEOF | |
4471 | /* end confdefs.h. */ | |
4472 | ||
4473 | # define __EXTENSIONS__ 1 | |
4474 | $ac_includes_default | |
4475 | int | |
4476 | main () | |
4477 | { | |
4478 | ||
4479 | ; | |
4480 | return 0; | |
4481 | } | |
4482 | _ACEOF | |
4483 | rm -f conftest.$ac_objext | |
4484 | if { (ac_try="$ac_compile" | |
4485 | case "(($ac_try" in | |
4486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4487 | *) ac_try_echo=$ac_try;; | |
4488 | esac | |
4489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4490 | $as_echo "$ac_try_echo") >&5 | |
4491 | (eval "$ac_compile") 2>conftest.er1 | |
4492 | ac_status=$? | |
4493 | grep -v '^ *+' conftest.er1 >conftest.err | |
4494 | rm -f conftest.er1 | |
4495 | cat conftest.err >&5 | |
4496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4497 | (exit $ac_status); } && { | |
4498 | test -z "$ac_c_werror_flag" || | |
4499 | test ! -s conftest.err | |
4500 | } && test -s conftest.$ac_objext; then | |
4501 | ac_cv_safe_to_define___extensions__=yes | |
4502 | else | |
4503 | $as_echo "$as_me: failed program was:" >&5 | |
4504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4505 | ||
4506 | ac_cv_safe_to_define___extensions__=no | |
4507 | fi | |
4508 | ||
4509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4510 | fi | |
4511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4512 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4513 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4514 | cat >>confdefs.h <<\_ACEOF | |
4515 | #define __EXTENSIONS__ 1 | |
4516 | _ACEOF | |
4517 | ||
4518 | cat >>confdefs.h <<\_ACEOF | |
4519 | #define _ALL_SOURCE 1 | |
4520 | _ACEOF | |
4521 | ||
4522 | cat >>confdefs.h <<\_ACEOF | |
4523 | #define _GNU_SOURCE 1 | |
4524 | _ACEOF | |
4525 | ||
4526 | cat >>confdefs.h <<\_ACEOF | |
4527 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4528 | _ACEOF | |
4529 | ||
4530 | cat >>confdefs.h <<\_ACEOF | |
4531 | #define _TANDEM_SOURCE 1 | |
4532 | _ACEOF | |
4533 | ||
4534 | ||
4535 | ac_ext=c | |
4536 | ac_cpp='$CPP $CPPFLAGS' | |
4537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4540 | if test -n "$ac_tool_prefix"; then | |
4541 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4542 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4543 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4544 | $as_echo_n "checking for $ac_word... " >&6; } | |
4545 | if test "${ac_cv_prog_CC+set}" = set; then | |
4546 | $as_echo_n "(cached) " >&6 | |
4547 | else | |
4548 | if test -n "$CC"; then | |
4549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d9898ee8 | 4550 | else |
4551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4552 | for as_dir in $PATH | |
4553 | do | |
4554 | IFS=$as_save_IFS | |
4555 | test -z "$as_dir" && as_dir=. | |
4556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 4557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
4558 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4559 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 4560 | break 2 |
4561 | fi | |
4562 | done | |
4563 | done | |
dd184caf | 4564 | IFS=$as_save_IFS |
d9898ee8 | 4565 | |
4566 | fi | |
4567 | fi | |
8d138742 CE |
4568 | CC=$ac_cv_prog_CC |
4569 | if test -n "$CC"; then | |
4570 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4571 | $as_echo "$CC" >&6; } | |
d9898ee8 | 4572 | else |
8d138742 CE |
4573 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4574 | $as_echo "no" >&6; } | |
d9898ee8 | 4575 | fi |
4576 | ||
dd184caf | 4577 | |
d9898ee8 | 4578 | fi |
8d138742 CE |
4579 | if test -z "$ac_cv_prog_CC"; then |
4580 | ac_ct_CC=$CC | |
4581 | # Extract the first word of "gcc", so it can be a program name with args. | |
4582 | set dummy gcc; ac_word=$2 | |
4583 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4584 | $as_echo_n "checking for $ac_word... " >&6; } | |
4585 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4586 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4587 | else |
8d138742 CE |
4588 | if test -n "$ac_ct_CC"; then |
4589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d9898ee8 | 4590 | else |
4591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4592 | for as_dir in $PATH | |
4593 | do | |
4594 | IFS=$as_save_IFS | |
4595 | test -z "$as_dir" && as_dir=. | |
4596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 4597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
4598 | ac_cv_prog_ac_ct_CC="gcc" |
4599 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 4600 | break 2 |
4601 | fi | |
4602 | done | |
4603 | done | |
dd184caf | 4604 | IFS=$as_save_IFS |
d9898ee8 | 4605 | |
4606 | fi | |
4607 | fi | |
8d138742 CE |
4608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4609 | if test -n "$ac_ct_CC"; then | |
4610 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4611 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 4612 | else |
8d138742 CE |
4613 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4614 | $as_echo "no" >&6; } | |
d9898ee8 | 4615 | fi |
4616 | ||
8d138742 CE |
4617 | if test "x$ac_ct_CC" = x; then |
4618 | CC="" | |
dd184caf | 4619 | else |
4620 | case $cross_compiling:$ac_tool_warned in | |
4621 | yes:) | |
8d138742 CE |
4622 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4623 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 4624 | ac_tool_warned=yes ;; |
4625 | esac | |
8d138742 | 4626 | CC=$ac_ct_CC |
dd184caf | 4627 | fi |
8d138742 CE |
4628 | else |
4629 | CC="$ac_cv_prog_CC" | |
d9898ee8 | 4630 | fi |
4631 | ||
8d138742 CE |
4632 | if test -z "$CC"; then |
4633 | if test -n "$ac_tool_prefix"; then | |
4634 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4635 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4636 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4637 | $as_echo_n "checking for $ac_word... " >&6; } | |
4638 | if test "${ac_cv_prog_CC+set}" = set; then | |
4639 | $as_echo_n "(cached) " >&6 | |
4640 | else | |
4641 | if test -n "$CC"; then | |
4642 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4643 | else | |
4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4645 | for as_dir in $PATH | |
4646 | do | |
4647 | IFS=$as_save_IFS | |
4648 | test -z "$as_dir" && as_dir=. | |
4649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4651 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4652 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4653 | break 2 | |
dd184caf | 4654 | fi |
8d138742 CE |
4655 | done |
4656 | done | |
4657 | IFS=$as_save_IFS | |
d9898ee8 | 4658 | |
8d138742 CE |
4659 | fi |
4660 | fi | |
4661 | CC=$ac_cv_prog_CC | |
4662 | if test -n "$CC"; then | |
4663 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4664 | $as_echo "$CC" >&6; } | |
d9898ee8 | 4665 | else |
8d138742 CE |
4666 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4667 | $as_echo "no" >&6; } | |
4668 | fi | |
d9898ee8 | 4669 | |
d9898ee8 | 4670 | |
8d138742 CE |
4671 | fi |
4672 | fi | |
4673 | if test -z "$CC"; then | |
4674 | # Extract the first word of "cc", so it can be a program name with args. | |
4675 | set dummy cc; ac_word=$2 | |
4676 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4677 | $as_echo_n "checking for $ac_word... " >&6; } | |
4678 | if test "${ac_cv_prog_CC+set}" = set; then | |
4679 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4680 | else |
8d138742 CE |
4681 | if test -n "$CC"; then |
4682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4683 | else | |
4684 | ac_prog_rejected=no | |
4685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4686 | for as_dir in $PATH | |
4687 | do | |
4688 | IFS=$as_save_IFS | |
4689 | test -z "$as_dir" && as_dir=. | |
4690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4692 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4693 | ac_prog_rejected=yes | |
4694 | continue | |
4695 | fi | |
4696 | ac_cv_prog_CC="cc" | |
4697 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4698 | break 2 | |
4699 | fi | |
4700 | done | |
4701 | done | |
4702 | IFS=$as_save_IFS | |
d9898ee8 | 4703 | |
8d138742 CE |
4704 | if test $ac_prog_rejected = yes; then |
4705 | # We found a bogon in the path, so make sure we never use it. | |
4706 | set dummy $ac_cv_prog_CC | |
4707 | shift | |
4708 | if test $# != 0; then | |
4709 | # We chose a different compiler from the bogus one. | |
4710 | # However, it has the same basename, so the bogon will be chosen | |
4711 | # first if we set CC to just the basename; use the full file name. | |
4712 | shift | |
4713 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4714 | fi | |
4715 | fi | |
4716 | fi | |
4717 | fi | |
4718 | CC=$ac_cv_prog_CC | |
4719 | if test -n "$CC"; then | |
4720 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4721 | $as_echo "$CC" >&6; } | |
4722 | else | |
4723 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4724 | $as_echo "no" >&6; } | |
d9898ee8 | 4725 | fi |
dd184caf | 4726 | |
d9898ee8 | 4727 | |
4728 | fi | |
8d138742 CE |
4729 | if test -z "$CC"; then |
4730 | if test -n "$ac_tool_prefix"; then | |
4731 | for ac_prog in cl.exe | |
4732 | do | |
4733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4735 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4736 | $as_echo_n "checking for $ac_word... " >&6; } | |
4737 | if test "${ac_cv_prog_CC+set}" = set; then | |
4738 | $as_echo_n "(cached) " >&6 | |
4739 | else | |
4740 | if test -n "$CC"; then | |
4741 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4742 | else | |
4743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4744 | for as_dir in $PATH | |
4745 | do | |
4746 | IFS=$as_save_IFS | |
4747 | test -z "$as_dir" && as_dir=. | |
4748 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4750 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4751 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4752 | break 2 | |
4753 | fi | |
4754 | done | |
4755 | done | |
4756 | IFS=$as_save_IFS | |
4757 | ||
4758 | fi | |
4759 | fi | |
4760 | CC=$ac_cv_prog_CC | |
4761 | if test -n "$CC"; then | |
4762 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4763 | $as_echo "$CC" >&6; } | |
4764 | else | |
4765 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4766 | $as_echo "no" >&6; } | |
4767 | fi | |
4768 | ||
4769 | ||
4770 | test -n "$CC" && break | |
4771 | done | |
4772 | fi | |
4773 | if test -z "$CC"; then | |
4774 | ac_ct_CC=$CC | |
4775 | for ac_prog in cl.exe | |
4776 | do | |
4777 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4778 | set dummy $ac_prog; ac_word=$2 | |
4779 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4780 | $as_echo_n "checking for $ac_word... " >&6; } | |
4781 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4782 | $as_echo_n "(cached) " >&6 | |
4783 | else | |
4784 | if test -n "$ac_ct_CC"; then | |
4785 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4786 | else | |
4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4788 | for as_dir in $PATH | |
4789 | do | |
4790 | IFS=$as_save_IFS | |
4791 | test -z "$as_dir" && as_dir=. | |
4792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4794 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4795 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4796 | break 2 | |
4797 | fi | |
4798 | done | |
4799 | done | |
4800 | IFS=$as_save_IFS | |
4801 | ||
4802 | fi | |
4803 | fi | |
4804 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4805 | if test -n "$ac_ct_CC"; then | |
4806 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4807 | $as_echo "$ac_ct_CC" >&6; } | |
4808 | else | |
4809 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4810 | $as_echo "no" >&6; } | |
4811 | fi | |
4812 | ||
4813 | ||
4814 | test -n "$ac_ct_CC" && break | |
4815 | done | |
4816 | ||
4817 | if test "x$ac_ct_CC" = x; then | |
4818 | CC="" | |
4819 | else | |
4820 | case $cross_compiling:$ac_tool_warned in | |
4821 | yes:) | |
4822 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4824 | ac_tool_warned=yes ;; | |
4825 | esac | |
4826 | CC=$ac_ct_CC | |
4827 | fi | |
4828 | fi | |
4829 | ||
4830 | fi | |
4831 | ||
4832 | ||
4833 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4835 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4836 | See \`config.log' for more details." >&5 | |
4837 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4838 | See \`config.log' for more details." >&2;} | |
4839 | { (exit 1); exit 1; }; }; } | |
4840 | ||
4841 | # Provide some information about the compiler. | |
4842 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
4843 | set X $ac_compile | |
4844 | ac_compiler=$2 | |
4845 | { (ac_try="$ac_compiler --version >&5" | |
4846 | case "(($ac_try" in | |
4847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4848 | *) ac_try_echo=$ac_try;; | |
4849 | esac | |
4850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4851 | $as_echo "$ac_try_echo") >&5 | |
4852 | (eval "$ac_compiler --version >&5") 2>&5 | |
4853 | ac_status=$? | |
4854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4855 | (exit $ac_status); } | |
4856 | { (ac_try="$ac_compiler -v >&5" | |
4857 | case "(($ac_try" in | |
4858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4859 | *) ac_try_echo=$ac_try;; | |
4860 | esac | |
4861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4862 | $as_echo "$ac_try_echo") >&5 | |
4863 | (eval "$ac_compiler -v >&5") 2>&5 | |
4864 | ac_status=$? | |
4865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4866 | (exit $ac_status); } | |
4867 | { (ac_try="$ac_compiler -V >&5" | |
4868 | case "(($ac_try" in | |
4869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4870 | *) ac_try_echo=$ac_try;; | |
4871 | esac | |
4872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4873 | $as_echo "$ac_try_echo") >&5 | |
4874 | (eval "$ac_compiler -V >&5") 2>&5 | |
4875 | ac_status=$? | |
4876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4877 | (exit $ac_status); } | |
4878 | ||
4879 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4880 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4881 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4882 | $as_echo_n "(cached) " >&6 | |
4883 | else | |
4884 | cat >conftest.$ac_ext <<_ACEOF | |
4885 | /* confdefs.h. */ | |
4886 | _ACEOF | |
4887 | cat confdefs.h >>conftest.$ac_ext | |
4888 | cat >>conftest.$ac_ext <<_ACEOF | |
4889 | /* end confdefs.h. */ | |
4890 | ||
4891 | int | |
4892 | main () | |
4893 | { | |
4894 | #ifndef __GNUC__ | |
4895 | choke me | |
4896 | #endif | |
4897 | ||
4898 | ; | |
4899 | return 0; | |
4900 | } | |
4901 | _ACEOF | |
4902 | rm -f conftest.$ac_objext | |
4903 | if { (ac_try="$ac_compile" | |
4904 | case "(($ac_try" in | |
4905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4906 | *) ac_try_echo=$ac_try;; | |
4907 | esac | |
4908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4909 | $as_echo "$ac_try_echo") >&5 | |
4910 | (eval "$ac_compile") 2>conftest.er1 | |
4911 | ac_status=$? | |
4912 | grep -v '^ *+' conftest.er1 >conftest.err | |
4913 | rm -f conftest.er1 | |
4914 | cat conftest.err >&5 | |
4915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4916 | (exit $ac_status); } && { | |
4917 | test -z "$ac_c_werror_flag" || | |
4918 | test ! -s conftest.err | |
4919 | } && test -s conftest.$ac_objext; then | |
4920 | ac_compiler_gnu=yes | |
4921 | else | |
4922 | $as_echo "$as_me: failed program was:" >&5 | |
4923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4924 | ||
4925 | ac_compiler_gnu=no | |
4926 | fi | |
4927 | ||
4928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4929 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4930 | ||
4931 | fi | |
4932 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4933 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4934 | if test $ac_compiler_gnu = yes; then | |
4935 | GCC=yes | |
4936 | else | |
4937 | GCC= | |
4938 | fi | |
4939 | ac_test_CFLAGS=${CFLAGS+set} | |
4940 | ac_save_CFLAGS=$CFLAGS | |
4941 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4942 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4943 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4944 | $as_echo_n "(cached) " >&6 | |
4945 | else | |
4946 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4947 | ac_c_werror_flag=yes | |
4948 | ac_cv_prog_cc_g=no | |
4949 | CFLAGS="-g" | |
dd184caf | 4950 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 4951 | /* confdefs.h. */ |
4952 | _ACEOF | |
4953 | cat confdefs.h >>conftest.$ac_ext | |
4954 | cat >>conftest.$ac_ext <<_ACEOF | |
4955 | /* end confdefs.h. */ | |
4956 | ||
4957 | int | |
4958 | main () | |
4959 | { | |
4960 | ||
4961 | ; | |
4962 | return 0; | |
4963 | } | |
4964 | _ACEOF | |
4965 | rm -f conftest.$ac_objext | |
dd184caf | 4966 | if { (ac_try="$ac_compile" |
4967 | case "(($ac_try" in | |
4968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4969 | *) ac_try_echo=$ac_try;; | |
4970 | esac | |
8d138742 CE |
4971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4972 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4973 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4974 | ac_status=$? |
4975 | grep -v '^ *+' conftest.er1 >conftest.err | |
4976 | rm -f conftest.er1 | |
4977 | cat conftest.err >&5 | |
8d138742 | 4978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4979 | (exit $ac_status); } && { |
8d138742 | 4980 | test -z "$ac_c_werror_flag" || |
dd184caf | 4981 | test ! -s conftest.err |
4982 | } && test -s conftest.$ac_objext; then | |
8d138742 | 4983 | ac_cv_prog_cc_g=yes |
d9898ee8 | 4984 | else |
8d138742 | 4985 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4986 | sed 's/^/| /' conftest.$ac_ext >&5 |
4987 | ||
8d138742 | 4988 | CFLAGS="" |
dd184caf | 4989 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 4990 | /* confdefs.h. */ |
4991 | _ACEOF | |
4992 | cat confdefs.h >>conftest.$ac_ext | |
4993 | cat >>conftest.$ac_ext <<_ACEOF | |
4994 | /* end confdefs.h. */ | |
dd184caf | 4995 | |
d9898ee8 | 4996 | int |
4997 | main () | |
4998 | { | |
dd184caf | 4999 | |
d9898ee8 | 5000 | ; |
5001 | return 0; | |
5002 | } | |
5003 | _ACEOF | |
5004 | rm -f conftest.$ac_objext | |
dd184caf | 5005 | if { (ac_try="$ac_compile" |
5006 | case "(($ac_try" in | |
5007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5008 | *) ac_try_echo=$ac_try;; | |
5009 | esac | |
8d138742 CE |
5010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5011 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 5012 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 5013 | ac_status=$? |
5014 | grep -v '^ *+' conftest.er1 >conftest.err | |
5015 | rm -f conftest.er1 | |
5016 | cat conftest.err >&5 | |
8d138742 | 5017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 5018 | (exit $ac_status); } && { |
8d138742 | 5019 | test -z "$ac_c_werror_flag" || |
dd184caf | 5020 | test ! -s conftest.err |
5021 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 5022 | : |
5023 | else | |
8d138742 | 5024 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 5025 | sed 's/^/| /' conftest.$ac_ext >&5 |
5026 | ||
8d138742 CE |
5027 | ac_c_werror_flag=$ac_save_c_werror_flag |
5028 | CFLAGS="-g" | |
dd184caf | 5029 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 5030 | /* confdefs.h. */ |
5031 | _ACEOF | |
5032 | cat confdefs.h >>conftest.$ac_ext | |
5033 | cat >>conftest.$ac_ext <<_ACEOF | |
5034 | /* end confdefs.h. */ | |
dd184caf | 5035 | |
d9898ee8 | 5036 | int |
5037 | main () | |
5038 | { | |
dd184caf | 5039 | |
d9898ee8 | 5040 | ; |
5041 | return 0; | |
5042 | } | |
5043 | _ACEOF | |
5044 | rm -f conftest.$ac_objext | |
dd184caf | 5045 | if { (ac_try="$ac_compile" |
5046 | case "(($ac_try" in | |
5047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5048 | *) ac_try_echo=$ac_try;; | |
5049 | esac | |
8d138742 CE |
5050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5051 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 5052 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 5053 | ac_status=$? |
5054 | grep -v '^ *+' conftest.er1 >conftest.err | |
5055 | rm -f conftest.er1 | |
5056 | cat conftest.err >&5 | |
8d138742 | 5057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 5058 | (exit $ac_status); } && { |
8d138742 | 5059 | test -z "$ac_c_werror_flag" || |
dd184caf | 5060 | test ! -s conftest.err |
5061 | } && test -s conftest.$ac_objext; then | |
8d138742 | 5062 | ac_cv_prog_cc_g=yes |
d9898ee8 | 5063 | else |
8d138742 | 5064 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 5065 | sed 's/^/| /' conftest.$ac_ext >&5 |
5066 | ||
dd184caf | 5067 | |
d9898ee8 | 5068 | fi |
dd184caf | 5069 | |
5070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5071 | fi | |
5072 | ||
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 5074 | fi |
5075 | ||
dd184caf | 5076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 | 5077 | ac_c_werror_flag=$ac_save_c_werror_flag |
dd184caf | 5078 | fi |
8d138742 CE |
5079 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
5080 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5081 | if test "$ac_test_CFLAGS" = set; then | |
5082 | CFLAGS=$ac_save_CFLAGS | |
5083 | elif test $ac_cv_prog_cc_g = yes; then | |
5084 | if test "$GCC" = yes; then | |
5085 | CFLAGS="-g -O2" | |
dd184caf | 5086 | else |
8d138742 | 5087 | CFLAGS="-g" |
dd184caf | 5088 | fi |
5089 | else | |
8d138742 CE |
5090 | if test "$GCC" = yes; then |
5091 | CFLAGS="-O2" | |
dd184caf | 5092 | else |
8d138742 | 5093 | CFLAGS= |
dd184caf | 5094 | fi |
5095 | fi | |
8d138742 CE |
5096 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
5097 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5098 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
5099 | $as_echo_n "(cached) " >&6 | |
5100 | else | |
5101 | ac_cv_prog_cc_c89=no | |
5102 | ac_save_CC=$CC | |
5103 | cat >conftest.$ac_ext <<_ACEOF | |
5104 | /* confdefs.h. */ | |
5105 | _ACEOF | |
5106 | cat confdefs.h >>conftest.$ac_ext | |
5107 | cat >>conftest.$ac_ext <<_ACEOF | |
5108 | /* end confdefs.h. */ | |
5109 | #include <stdarg.h> | |
5110 | #include <stdio.h> | |
5111 | #include <sys/types.h> | |
5112 | #include <sys/stat.h> | |
5113 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5114 | struct buf { int x; }; | |
5115 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5116 | static char *e (p, i) | |
5117 | char **p; | |
5118 | int i; | |
5119 | { | |
5120 | return p[i]; | |
5121 | } | |
5122 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5123 | { | |
5124 | char *s; | |
5125 | va_list v; | |
5126 | va_start (v,p); | |
5127 | s = g (p, va_arg (v,int)); | |
5128 | va_end (v); | |
5129 | return s; | |
5130 | } | |
d9898ee8 | 5131 | |
8d138742 CE |
5132 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5133 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5134 | These don't provoke an error unfortunately, instead are silently treated | |
5135 | as 'x'. The following induces an error, until -std is added to get | |
5136 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5137 | array size at least. It's necessary to write '\x00'==0 to get something | |
5138 | that's true only with -std. */ | |
5139 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
d9898ee8 | 5140 | |
8d138742 CE |
5141 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5142 | inside strings and character constants. */ | |
5143 | #define FOO(x) 'x' | |
5144 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5145 | ||
5146 | int test (int i, double x); | |
5147 | struct s1 {int (*f) (int a);}; | |
5148 | struct s2 {int (*f) (double a);}; | |
5149 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5150 | int argc; | |
5151 | char **argv; | |
5152 | int | |
5153 | main () | |
5154 | { | |
5155 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5156 | ; | |
5157 | return 0; | |
5158 | } | |
5159 | _ACEOF | |
5160 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5161 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5162 | do | |
5163 | CC="$ac_save_CC $ac_arg" | |
5164 | rm -f conftest.$ac_objext | |
5165 | if { (ac_try="$ac_compile" | |
5166 | case "(($ac_try" in | |
5167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5168 | *) ac_try_echo=$ac_try;; | |
5169 | esac | |
5170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5171 | $as_echo "$ac_try_echo") >&5 | |
5172 | (eval "$ac_compile") 2>conftest.er1 | |
5173 | ac_status=$? | |
5174 | grep -v '^ *+' conftest.er1 >conftest.err | |
5175 | rm -f conftest.er1 | |
5176 | cat conftest.err >&5 | |
5177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5178 | (exit $ac_status); } && { | |
5179 | test -z "$ac_c_werror_flag" || | |
5180 | test ! -s conftest.err | |
5181 | } && test -s conftest.$ac_objext; then | |
5182 | ac_cv_prog_cc_c89=$ac_arg | |
5183 | else | |
5184 | $as_echo "$as_me: failed program was:" >&5 | |
5185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5186 | ||
5187 | ||
5188 | fi | |
5189 | ||
5190 | rm -f core conftest.err conftest.$ac_objext | |
5191 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5192 | done | |
5193 | rm -f conftest.$ac_ext | |
5194 | CC=$ac_save_CC | |
5195 | ||
5196 | fi | |
5197 | # AC_CACHE_VAL | |
5198 | case "x$ac_cv_prog_cc_c89" in | |
5199 | x) | |
5200 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
5201 | $as_echo "none needed" >&6; } ;; | |
5202 | xno) | |
5203 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
5204 | $as_echo "unsupported" >&6; } ;; | |
5205 | *) | |
5206 | CC="$CC $ac_cv_prog_cc_c89" | |
5207 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
5208 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5209 | esac | |
5210 | ||
5211 | ||
5212 | ac_ext=c | |
5213 | ac_cpp='$CPP $CPPFLAGS' | |
5214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5217 | ||
5218 | depcc="$CC" am_compiler_list= | |
5219 | ||
5220 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
5221 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5222 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
5223 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5224 | else |
5225 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5226 | # We make a subdir and do the tests there. Otherwise we can end up | |
5227 | # making bogus files that we don't know about and never remove. For | |
5228 | # instance it was reported that on HP-UX the gcc test will end up | |
5229 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5230 | # in D'. | |
5231 | mkdir conftest.dir | |
5232 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5233 | # using a relative directory. | |
5234 | cp "$am_depcomp" conftest.dir | |
5235 | cd conftest.dir | |
5236 | # We will build objects and dependencies in a subdirectory because | |
5237 | # it helps to detect inapplicable dependency modes. For instance | |
5238 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5239 | # side effect of compilation, but ICC will put the dependencies in | |
5240 | # the current directory while Tru64 will put them in the object | |
5241 | # directory. | |
5242 | mkdir sub | |
5243 | ||
8d138742 | 5244 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5245 | if test "$am_compiler_list" = ""; then |
5246 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5247 | fi | |
8d138742 CE |
5248 | am__universal=false |
5249 | case " $depcc " in #( | |
5250 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5251 | esac | |
5252 | ||
d9898ee8 | 5253 | for depmode in $am_compiler_list; do |
5254 | # Setup a source with many dependencies, because some compilers | |
5255 | # like to wrap large dependency lists on column 80 (with \), and | |
5256 | # we should not choose a depcomp mode which is confused by this. | |
5257 | # | |
5258 | # We need to recreate these files for each test, as the compiler may | |
5259 | # overwrite some of them when testing with obscure command lines. | |
5260 | # This happens at least with the AIX C compiler. | |
5261 | : > sub/conftest.c | |
5262 | for i in 1 2 3 4 5 6; do | |
5263 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5264 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5265 | # Solaris 8's {/usr,}/bin/sh. | |
5266 | touch sub/conftst$i.h | |
5267 | done | |
5268 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5269 | ||
8d138742 CE |
5270 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5271 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5272 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5273 | # versions had trouble with output in subdirs | |
5274 | am__obj=sub/conftest.${OBJEXT-o} | |
5275 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 5276 | case $depmode in |
8d138742 CE |
5277 | gcc) |
5278 | # This depmode causes a compiler race in universal mode. | |
5279 | test "$am__universal" = false || continue | |
5280 | ;; | |
d9898ee8 | 5281 | nosideeffect) |
5282 | # after this tag, mechanisms are not by side-effect, so they'll | |
5283 | # only be used when explicitly requested | |
5284 | if test "x$enable_dependency_tracking" = xyes; then | |
5285 | continue | |
5286 | else | |
5287 | break | |
5288 | fi | |
5289 | ;; | |
8d138742 CE |
5290 | msvisualcpp | msvcmsys) |
5291 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5292 | # not run yet. These depmodes are late enough in the game, and | |
5293 | # so weak that their functioning should not be impacted. | |
5294 | am__obj=conftest.${OBJEXT-o} | |
5295 | am__minus_obj= | |
5296 | ;; | |
d9898ee8 | 5297 | none) break ;; |
5298 | esac | |
d9898ee8 | 5299 | if depmode=$depmode \ |
8d138742 | 5300 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 5301 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 5302 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 5303 | >/dev/null 2>conftest.err && |
dd184caf | 5304 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5305 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 5306 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5307 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5308 | # icc doesn't choke on unknown options, it will just issue warnings | |
5309 | # or remarks (even with -Werror). So we grep stderr for any message | |
5310 | # that says an option was ignored or not supported. | |
5311 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5312 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5313 | # The diagnosis changed in icc 8.0: | |
5314 | # icc: Command line remark: option '-MP' not supported | |
5315 | if (grep 'ignoring option' conftest.err || | |
5316 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8d138742 | 5317 | am_cv_CC_dependencies_compiler_type=$depmode |
d9898ee8 | 5318 | break |
5319 | fi | |
5320 | fi | |
5321 | done | |
5322 | ||
5323 | cd .. | |
5324 | rm -rf conftest.dir | |
5325 | else | |
8d138742 | 5326 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5327 | fi |
5328 | ||
5329 | fi | |
8d138742 CE |
5330 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5331 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5332 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
d9898ee8 | 5333 | |
dd184caf | 5334 | if |
d9898ee8 | 5335 | test "x$enable_dependency_tracking" != xno \ |
8d138742 CE |
5336 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
5337 | am__fastdepCC_TRUE= | |
5338 | am__fastdepCC_FALSE='#' | |
d9898ee8 | 5339 | else |
8d138742 CE |
5340 | am__fastdepCC_TRUE='#' |
5341 | am__fastdepCC_FALSE= | |
d9898ee8 | 5342 | fi |
5343 | ||
5344 | ||
8d138742 CE |
5345 | for ac_prog in gawk mawk nawk awk |
5346 | do | |
5347 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5348 | set dummy $ac_prog; ac_word=$2 | |
5349 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5350 | $as_echo_n "checking for $ac_word... " >&6; } | |
5351 | if test "${ac_cv_prog_AWK+set}" = set; then | |
5352 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5353 | else |
8d138742 CE |
5354 | if test -n "$AWK"; then |
5355 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5356 | else | |
5357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5358 | for as_dir in $PATH | |
5359 | do | |
5360 | IFS=$as_save_IFS | |
5361 | test -z "$as_dir" && as_dir=. | |
5362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5364 | ac_cv_prog_AWK="$ac_prog" | |
5365 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5366 | break 2 | |
5367 | fi | |
5368 | done | |
5369 | done | |
5370 | IFS=$as_save_IFS | |
d9898ee8 | 5371 | |
8d138742 CE |
5372 | fi |
5373 | fi | |
5374 | AWK=$ac_cv_prog_AWK | |
5375 | if test -n "$AWK"; then | |
5376 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
5377 | $as_echo "$AWK" >&6; } | |
5378 | else | |
5379 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5380 | $as_echo "no" >&6; } | |
5381 | fi | |
5382 | ||
5383 | ||
5384 | test -n "$AWK" && break | |
5385 | done | |
5386 | ||
5387 | ac_ext=cpp | |
5388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5392 | if test -z "$CXX"; then | |
5393 | if test -n "$CCC"; then | |
5394 | CXX=$CCC | |
dd184caf | 5395 | else |
8d138742 CE |
5396 | if test -n "$ac_tool_prefix"; then |
5397 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5398 | do | |
5399 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5400 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5401 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5402 | $as_echo_n "checking for $ac_word... " >&6; } | |
5403 | if test "${ac_cv_prog_CXX+set}" = set; then | |
5404 | $as_echo_n "(cached) " >&6 | |
5405 | else | |
5406 | if test -n "$CXX"; then | |
5407 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5408 | else | |
5409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5410 | for as_dir in $PATH | |
5411 | do | |
5412 | IFS=$as_save_IFS | |
5413 | test -z "$as_dir" && as_dir=. | |
5414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5416 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5418 | break 2 | |
dd184caf | 5419 | fi |
8d138742 CE |
5420 | done |
5421 | done | |
5422 | IFS=$as_save_IFS | |
5423 | ||
5424 | fi | |
5425 | fi | |
5426 | CXX=$ac_cv_prog_CXX | |
5427 | if test -n "$CXX"; then | |
5428 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 | |
5429 | $as_echo "$CXX" >&6; } | |
d9898ee8 | 5430 | else |
8d138742 CE |
5431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5432 | $as_echo "no" >&6; } | |
5433 | fi | |
d9898ee8 | 5434 | |
dd184caf | 5435 | |
8d138742 CE |
5436 | test -n "$CXX" && break |
5437 | done | |
d9898ee8 | 5438 | fi |
8d138742 CE |
5439 | if test -z "$CXX"; then |
5440 | ac_ct_CXX=$CXX | |
5441 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5442 | do | |
5443 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5444 | set dummy $ac_prog; ac_word=$2 | |
5445 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5446 | $as_echo_n "checking for $ac_word... " >&6; } | |
5447 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
5448 | $as_echo_n "(cached) " >&6 | |
5449 | else | |
5450 | if test -n "$ac_ct_CXX"; then | |
5451 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5452 | else | |
5453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5454 | for as_dir in $PATH | |
5455 | do | |
5456 | IFS=$as_save_IFS | |
5457 | test -z "$as_dir" && as_dir=. | |
5458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5460 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5461 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5462 | break 2 | |
5463 | fi | |
5464 | done | |
5465 | done | |
5466 | IFS=$as_save_IFS | |
dd184caf | 5467 | |
d9898ee8 | 5468 | fi |
d9898ee8 | 5469 | fi |
8d138742 CE |
5470 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5471 | if test -n "$ac_ct_CXX"; then | |
5472 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
5473 | $as_echo "$ac_ct_CXX" >&6; } | |
5474 | else | |
5475 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5476 | $as_echo "no" >&6; } | |
dd184caf | 5477 | fi |
d9898ee8 | 5478 | |
dd184caf | 5479 | |
8d138742 CE |
5480 | test -n "$ac_ct_CXX" && break |
5481 | done | |
d9898ee8 | 5482 | |
8d138742 CE |
5483 | if test "x$ac_ct_CXX" = x; then |
5484 | CXX="g++" | |
5485 | else | |
5486 | case $cross_compiling:$ac_tool_warned in | |
5487 | yes:) | |
5488 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5489 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5490 | ac_tool_warned=yes ;; | |
5491 | esac | |
5492 | CXX=$ac_ct_CXX | |
5493 | fi | |
dd184caf | 5494 | fi |
5495 | ||
8d138742 | 5496 | fi |
dd184caf | 5497 | fi |
8d138742 CE |
5498 | # Provide some information about the compiler. |
5499 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
5500 | set X $ac_compile | |
5501 | ac_compiler=$2 | |
5502 | { (ac_try="$ac_compiler --version >&5" | |
5503 | case "(($ac_try" in | |
5504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5505 | *) ac_try_echo=$ac_try;; | |
5506 | esac | |
5507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5508 | $as_echo "$ac_try_echo") >&5 | |
5509 | (eval "$ac_compiler --version >&5") 2>&5 | |
5510 | ac_status=$? | |
5511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5512 | (exit $ac_status); } | |
5513 | { (ac_try="$ac_compiler -v >&5" | |
5514 | case "(($ac_try" in | |
5515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5516 | *) ac_try_echo=$ac_try;; | |
5517 | esac | |
5518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5519 | $as_echo "$ac_try_echo") >&5 | |
5520 | (eval "$ac_compiler -v >&5") 2>&5 | |
5521 | ac_status=$? | |
5522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5523 | (exit $ac_status); } | |
5524 | { (ac_try="$ac_compiler -V >&5" | |
5525 | case "(($ac_try" in | |
5526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5527 | *) ac_try_echo=$ac_try;; | |
5528 | esac | |
5529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5530 | $as_echo "$ac_try_echo") >&5 | |
5531 | (eval "$ac_compiler -V >&5") 2>&5 | |
5532 | ac_status=$? | |
5533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5534 | (exit $ac_status); } | |
dd184caf | 5535 | |
8d138742 CE |
5536 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5537 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
5538 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
5539 | $as_echo_n "(cached) " >&6 | |
5540 | else | |
5541 | cat >conftest.$ac_ext <<_ACEOF | |
5542 | /* confdefs.h. */ | |
5543 | _ACEOF | |
5544 | cat confdefs.h >>conftest.$ac_ext | |
5545 | cat >>conftest.$ac_ext <<_ACEOF | |
5546 | /* end confdefs.h. */ | |
d9898ee8 | 5547 | |
8d138742 CE |
5548 | int |
5549 | main () | |
5550 | { | |
5551 | #ifndef __GNUC__ | |
5552 | choke me | |
5553 | #endif | |
d9898ee8 | 5554 | |
8d138742 CE |
5555 | ; |
5556 | return 0; | |
5557 | } | |
5558 | _ACEOF | |
5559 | rm -f conftest.$ac_objext | |
5560 | if { (ac_try="$ac_compile" | |
5561 | case "(($ac_try" in | |
5562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5563 | *) ac_try_echo=$ac_try;; | |
5564 | esac | |
5565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5566 | $as_echo "$ac_try_echo") >&5 | |
5567 | (eval "$ac_compile") 2>conftest.er1 | |
5568 | ac_status=$? | |
5569 | grep -v '^ *+' conftest.er1 >conftest.err | |
5570 | rm -f conftest.er1 | |
5571 | cat conftest.err >&5 | |
5572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5573 | (exit $ac_status); } && { | |
5574 | test -z "$ac_cxx_werror_flag" || | |
5575 | test ! -s conftest.err | |
5576 | } && test -s conftest.$ac_objext; then | |
5577 | ac_compiler_gnu=yes | |
d9898ee8 | 5578 | else |
8d138742 CE |
5579 | $as_echo "$as_me: failed program was:" >&5 |
5580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 5581 | |
8d138742 | 5582 | ac_compiler_gnu=no |
d9898ee8 | 5583 | fi |
dd184caf | 5584 | |
8d138742 CE |
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5586 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
dd184caf | 5587 | |
dd184caf | 5588 | fi |
8d138742 CE |
5589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5590 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5591 | if test $ac_compiler_gnu = yes; then | |
5592 | GXX=yes | |
5593 | else | |
5594 | GXX= | |
d9898ee8 | 5595 | fi |
8d138742 CE |
5596 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5597 | ac_save_CXXFLAGS=$CXXFLAGS | |
5598 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
5599 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5600 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
5601 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5602 | else |
8d138742 CE |
5603 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5604 | ac_cxx_werror_flag=yes | |
5605 | ac_cv_prog_cxx_g=no | |
5606 | CXXFLAGS="-g" | |
5607 | cat >conftest.$ac_ext <<_ACEOF | |
5608 | /* confdefs.h. */ | |
5609 | _ACEOF | |
5610 | cat confdefs.h >>conftest.$ac_ext | |
5611 | cat >>conftest.$ac_ext <<_ACEOF | |
5612 | /* end confdefs.h. */ | |
d9898ee8 | 5613 | |
8d138742 CE |
5614 | int |
5615 | main () | |
5616 | { | |
d9898ee8 | 5617 | |
8d138742 CE |
5618 | ; |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5622 | rm -f conftest.$ac_objext | |
5623 | if { (ac_try="$ac_compile" | |
5624 | case "(($ac_try" in | |
5625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5626 | *) ac_try_echo=$ac_try;; | |
5627 | esac | |
5628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5629 | $as_echo "$ac_try_echo") >&5 | |
5630 | (eval "$ac_compile") 2>conftest.er1 | |
5631 | ac_status=$? | |
5632 | grep -v '^ *+' conftest.er1 >conftest.err | |
5633 | rm -f conftest.er1 | |
5634 | cat conftest.err >&5 | |
5635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5636 | (exit $ac_status); } && { | |
5637 | test -z "$ac_cxx_werror_flag" || | |
5638 | test ! -s conftest.err | |
5639 | } && test -s conftest.$ac_objext; then | |
5640 | ac_cv_prog_cxx_g=yes | |
5641 | else | |
5642 | $as_echo "$as_me: failed program was:" >&5 | |
5643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 5644 | |
8d138742 CE |
5645 | CXXFLAGS="" |
5646 | cat >conftest.$ac_ext <<_ACEOF | |
5647 | /* confdefs.h. */ | |
5648 | _ACEOF | |
5649 | cat confdefs.h >>conftest.$ac_ext | |
5650 | cat >>conftest.$ac_ext <<_ACEOF | |
5651 | /* end confdefs.h. */ | |
d9898ee8 | 5652 | |
8d138742 CE |
5653 | int |
5654 | main () | |
5655 | { | |
d9898ee8 | 5656 | |
8d138742 CE |
5657 | ; |
5658 | return 0; | |
5659 | } | |
5660 | _ACEOF | |
5661 | rm -f conftest.$ac_objext | |
5662 | if { (ac_try="$ac_compile" | |
5663 | case "(($ac_try" in | |
5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5665 | *) ac_try_echo=$ac_try;; | |
5666 | esac | |
5667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5668 | $as_echo "$ac_try_echo") >&5 | |
5669 | (eval "$ac_compile") 2>conftest.er1 | |
5670 | ac_status=$? | |
5671 | grep -v '^ *+' conftest.er1 >conftest.err | |
5672 | rm -f conftest.er1 | |
5673 | cat conftest.err >&5 | |
5674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5675 | (exit $ac_status); } && { | |
5676 | test -z "$ac_cxx_werror_flag" || | |
5677 | test ! -s conftest.err | |
5678 | } && test -s conftest.$ac_objext; then | |
5679 | : | |
d9898ee8 | 5680 | else |
8d138742 CE |
5681 | $as_echo "$as_me: failed program was:" >&5 |
5682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd184caf | 5683 | |
8d138742 CE |
5684 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5685 | CXXFLAGS="-g" | |
5686 | cat >conftest.$ac_ext <<_ACEOF | |
5687 | /* confdefs.h. */ | |
5688 | _ACEOF | |
5689 | cat confdefs.h >>conftest.$ac_ext | |
5690 | cat >>conftest.$ac_ext <<_ACEOF | |
5691 | /* end confdefs.h. */ | |
5692 | ||
5693 | int | |
5694 | main () | |
5695 | { | |
5696 | ||
5697 | ; | |
5698 | return 0; | |
5699 | } | |
5700 | _ACEOF | |
5701 | rm -f conftest.$ac_objext | |
5702 | if { (ac_try="$ac_compile" | |
5703 | case "(($ac_try" in | |
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5705 | *) ac_try_echo=$ac_try;; | |
5706 | esac | |
5707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5708 | $as_echo "$ac_try_echo") >&5 | |
5709 | (eval "$ac_compile") 2>conftest.er1 | |
5710 | ac_status=$? | |
5711 | grep -v '^ *+' conftest.er1 >conftest.err | |
5712 | rm -f conftest.er1 | |
5713 | cat conftest.err >&5 | |
5714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5715 | (exit $ac_status); } && { | |
5716 | test -z "$ac_cxx_werror_flag" || | |
5717 | test ! -s conftest.err | |
5718 | } && test -s conftest.$ac_objext; then | |
5719 | ac_cv_prog_cxx_g=yes | |
d9898ee8 | 5720 | else |
8d138742 CE |
5721 | $as_echo "$as_me: failed program was:" >&5 |
5722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5723 | ||
5724 | ||
d9898ee8 | 5725 | fi |
8d138742 CE |
5726 | |
5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 5728 | fi |
8d138742 CE |
5729 | |
5730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 5731 | fi |
5732 | ||
8d138742 CE |
5733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5734 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
d9898ee8 | 5735 | fi |
8d138742 CE |
5736 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5737 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5738 | if test "$ac_test_CXXFLAGS" = set; then | |
5739 | CXXFLAGS=$ac_save_CXXFLAGS | |
5740 | elif test $ac_cv_prog_cxx_g = yes; then | |
5741 | if test "$GXX" = yes; then | |
5742 | CXXFLAGS="-g -O2" | |
5743 | else | |
5744 | CXXFLAGS="-g" | |
5745 | fi | |
d9898ee8 | 5746 | else |
8d138742 CE |
5747 | if test "$GXX" = yes; then |
5748 | CXXFLAGS="-O2" | |
5749 | else | |
5750 | CXXFLAGS= | |
5751 | fi | |
d9898ee8 | 5752 | fi |
8d138742 CE |
5753 | ac_ext=c |
5754 | ac_cpp='$CPP $CPPFLAGS' | |
5755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 5758 | |
8d138742 | 5759 | depcc="$CXX" am_compiler_list= |
d9898ee8 | 5760 | |
8d138742 CE |
5761 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5762 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5763 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
5764 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5765 | else |
8d138742 CE |
5766 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5767 | # We make a subdir and do the tests there. Otherwise we can end up | |
5768 | # making bogus files that we don't know about and never remove. For | |
5769 | # instance it was reported that on HP-UX the gcc test will end up | |
5770 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5771 | # in D'. | |
5772 | mkdir conftest.dir | |
5773 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5774 | # using a relative directory. | |
5775 | cp "$am_depcomp" conftest.dir | |
5776 | cd conftest.dir | |
5777 | # We will build objects and dependencies in a subdirectory because | |
5778 | # it helps to detect inapplicable dependency modes. For instance | |
5779 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5780 | # side effect of compilation, but ICC will put the dependencies in | |
5781 | # the current directory while Tru64 will put them in the object | |
5782 | # directory. | |
5783 | mkdir sub | |
d9898ee8 | 5784 | |
8d138742 CE |
5785 | am_cv_CXX_dependencies_compiler_type=none |
5786 | if test "$am_compiler_list" = ""; then | |
5787 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
d9898ee8 | 5788 | fi |
8d138742 CE |
5789 | am__universal=false |
5790 | case " $depcc " in #( | |
5791 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5792 | esac | |
5793 | ||
5794 | for depmode in $am_compiler_list; do | |
5795 | # Setup a source with many dependencies, because some compilers | |
5796 | # like to wrap large dependency lists on column 80 (with \), and | |
5797 | # we should not choose a depcomp mode which is confused by this. | |
5798 | # | |
5799 | # We need to recreate these files for each test, as the compiler may | |
5800 | # overwrite some of them when testing with obscure command lines. | |
5801 | # This happens at least with the AIX C compiler. | |
5802 | : > sub/conftest.c | |
5803 | for i in 1 2 3 4 5 6; do | |
5804 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5805 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5806 | # Solaris 8's {/usr,}/bin/sh. | |
5807 | touch sub/conftst$i.h | |
d9898ee8 | 5808 | done |
8d138742 | 5809 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
d9898ee8 | 5810 | |
8d138742 CE |
5811 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5812 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5813 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5814 | # versions had trouble with output in subdirs | |
5815 | am__obj=sub/conftest.${OBJEXT-o} | |
5816 | am__minus_obj="-o $am__obj" | |
5817 | case $depmode in | |
5818 | gcc) | |
5819 | # This depmode causes a compiler race in universal mode. | |
5820 | test "$am__universal" = false || continue | |
5821 | ;; | |
5822 | nosideeffect) | |
5823 | # after this tag, mechanisms are not by side-effect, so they'll | |
5824 | # only be used when explicitly requested | |
5825 | if test "x$enable_dependency_tracking" = xyes; then | |
5826 | continue | |
5827 | else | |
5828 | break | |
5829 | fi | |
5830 | ;; | |
5831 | msvisualcpp | msvcmsys) | |
5832 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5833 | # not run yet. These depmodes are late enough in the game, and | |
5834 | # so weak that their functioning should not be impacted. | |
5835 | am__obj=conftest.${OBJEXT-o} | |
5836 | am__minus_obj= | |
5837 | ;; | |
5838 | none) break ;; | |
5839 | esac | |
5840 | if depmode=$depmode \ | |
5841 | source=sub/conftest.c object=$am__obj \ | |
5842 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5843 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5844 | >/dev/null 2>conftest.err && | |
5845 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5846 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5847 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5848 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5849 | # icc doesn't choke on unknown options, it will just issue warnings | |
5850 | # or remarks (even with -Werror). So we grep stderr for any message | |
5851 | # that says an option was ignored or not supported. | |
5852 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5853 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5854 | # The diagnosis changed in icc 8.0: | |
5855 | # icc: Command line remark: option '-MP' not supported | |
5856 | if (grep 'ignoring option' conftest.err || | |
5857 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5858 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5859 | break | |
5860 | fi | |
5861 | fi | |
5862 | done | |
d9898ee8 | 5863 | |
8d138742 CE |
5864 | cd .. |
5865 | rm -rf conftest.dir | |
d9898ee8 | 5866 | else |
8d138742 CE |
5867 | am_cv_CXX_dependencies_compiler_type=none |
5868 | fi | |
d9898ee8 | 5869 | |
8d138742 CE |
5870 | fi |
5871 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5872 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5873 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d9898ee8 | 5874 | |
8d138742 CE |
5875 | if |
5876 | test "x$enable_dependency_tracking" != xno \ | |
5877 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5878 | am__fastdepCXX_TRUE= | |
5879 | am__fastdepCXX_FALSE='#' | |
5880 | else | |
5881 | am__fastdepCXX_TRUE='#' | |
5882 | am__fastdepCXX_FALSE= | |
5883 | fi | |
d9898ee8 | 5884 | |
d9898ee8 | 5885 | |
8d138742 CE |
5886 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
5887 | $as_echo_n "checking for library containing strerror... " >&6; } | |
5888 | if test "${ac_cv_search_strerror+set}" = set; then | |
5889 | $as_echo_n "(cached) " >&6 | |
5890 | else | |
5891 | ac_func_search_save_LIBS=$LIBS | |
5892 | cat >conftest.$ac_ext <<_ACEOF | |
5893 | /* confdefs.h. */ | |
5894 | _ACEOF | |
5895 | cat confdefs.h >>conftest.$ac_ext | |
5896 | cat >>conftest.$ac_ext <<_ACEOF | |
5897 | /* end confdefs.h. */ | |
d9898ee8 | 5898 | |
8d138742 CE |
5899 | /* Override any GCC internal prototype to avoid an error. |
5900 | Use char because int might match the return type of a GCC | |
5901 | builtin and then its argument prototype would still apply. */ | |
5902 | #ifdef __cplusplus | |
5903 | extern "C" | |
5904 | #endif | |
5905 | char strerror (); | |
5906 | int | |
5907 | main () | |
5908 | { | |
5909 | return strerror (); | |
5910 | ; | |
5911 | return 0; | |
5912 | } | |
5913 | _ACEOF | |
5914 | for ac_lib in '' cposix; do | |
5915 | if test -z "$ac_lib"; then | |
5916 | ac_res="none required" | |
ac40fd9e | 5917 | else |
8d138742 CE |
5918 | ac_res=-l$ac_lib |
5919 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
ac40fd9e | 5920 | fi |
8d138742 CE |
5921 | rm -f conftest.$ac_objext conftest$ac_exeext |
5922 | if { (ac_try="$ac_link" | |
5923 | case "(($ac_try" in | |
5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5925 | *) ac_try_echo=$ac_try;; | |
5926 | esac | |
5927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5928 | $as_echo "$ac_try_echo") >&5 | |
5929 | (eval "$ac_link") 2>conftest.er1 | |
5930 | ac_status=$? | |
5931 | grep -v '^ *+' conftest.er1 >conftest.err | |
5932 | rm -f conftest.er1 | |
5933 | cat conftest.err >&5 | |
5934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5935 | (exit $ac_status); } && { | |
5936 | test -z "$ac_c_werror_flag" || | |
5937 | test ! -s conftest.err | |
5938 | } && test -s conftest$ac_exeext && { | |
5939 | test "$cross_compiling" = yes || | |
5940 | $as_test_x conftest$ac_exeext | |
5941 | }; then | |
5942 | ac_cv_search_strerror=$ac_res | |
5943 | else | |
5944 | $as_echo "$as_me: failed program was:" >&5 | |
5945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 5946 | |
d9898ee8 | 5947 | |
8d138742 | 5948 | fi |
d9898ee8 | 5949 | |
8d138742 CE |
5950 | rm -rf conftest.dSYM |
5951 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5952 | conftest$ac_exeext | |
5953 | if test "${ac_cv_search_strerror+set}" = set; then | |
5954 | break | |
5955 | fi | |
5956 | done | |
5957 | if test "${ac_cv_search_strerror+set}" = set; then | |
5958 | : | |
5959 | else | |
5960 | ac_cv_search_strerror=no | |
5961 | fi | |
5962 | rm conftest.$ac_ext | |
5963 | LIBS=$ac_func_search_save_LIBS | |
5964 | fi | |
5965 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
5966 | $as_echo "$ac_cv_search_strerror" >&6; } | |
5967 | ac_res=$ac_cv_search_strerror | |
5968 | if test "$ac_res" != no; then | |
5969 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d9898ee8 | 5970 | |
8d138742 | 5971 | fi |
d9898ee8 | 5972 | |
8d138742 CE |
5973 | case `pwd` in |
5974 | *\ * | *\ *) | |
5975 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5976 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5977 | esac | |
d9898ee8 | 5978 | |
d9898ee8 | 5979 | |
d9898ee8 | 5980 | |
8d138742 CE |
5981 | macro_version='2.2.6' |
5982 | macro_revision='1.3012' | |
d9898ee8 | 5983 | |
d9898ee8 | 5984 | |
d9898ee8 | 5985 | |
d9898ee8 | 5986 | |
d9898ee8 | 5987 | |
ac40fd9e | 5988 | |
d9898ee8 | 5989 | |
d9898ee8 | 5990 | |
d9898ee8 | 5991 | |
d9898ee8 | 5992 | |
5993 | ||
5994 | ||
5995 | ||
8d138742 | 5996 | ltmain="$ac_aux_dir/ltmain.sh" |
d9898ee8 | 5997 | |
8d138742 CE |
5998 | # Make sure we can run config.sub. |
5999 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
6000 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
6001 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
6002 | { (exit 1); exit 1; }; } | |
d9898ee8 | 6003 | |
8d138742 CE |
6004 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
6005 | $as_echo_n "checking build system type... " >&6; } | |
6006 | if test "${ac_cv_build+set}" = set; then | |
6007 | $as_echo_n "(cached) " >&6 | |
6008 | else | |
6009 | ac_build_alias=$build_alias | |
6010 | test "x$ac_build_alias" = x && | |
6011 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
6012 | test "x$ac_build_alias" = x && | |
6013 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
6014 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
6015 | { (exit 1); exit 1; }; } | |
6016 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
6017 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
6018 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
6019 | { (exit 1); exit 1; }; } | |
d9898ee8 | 6020 | |
dd184caf | 6021 | fi |
8d138742 CE |
6022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
6023 | $as_echo "$ac_cv_build" >&6; } | |
6024 | case $ac_cv_build in | |
6025 | *-*-*) ;; | |
6026 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
6027 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
6028 | { (exit 1); exit 1; }; };; | |
6029 | esac | |
6030 | build=$ac_cv_build | |
6031 | ac_save_IFS=$IFS; IFS='-' | |
6032 | set x $ac_cv_build | |
6033 | shift | |
6034 | build_cpu=$1 | |
6035 | build_vendor=$2 | |
6036 | shift; shift | |
6037 | # Remember, the first character of IFS is used to create $*, | |
6038 | # except with old shells: | |
6039 | build_os=$* | |
6040 | IFS=$ac_save_IFS | |
6041 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
d9898ee8 | 6042 | |
d9898ee8 | 6043 | |
8d138742 CE |
6044 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
6045 | $as_echo_n "checking host system type... " >&6; } | |
6046 | if test "${ac_cv_host+set}" = set; then | |
6047 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6048 | else |
8d138742 CE |
6049 | if test "x$host_alias" = x; then |
6050 | ac_cv_host=$ac_cv_build | |
6051 | else | |
6052 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
6053 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
6054 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
6055 | { (exit 1); exit 1; }; } | |
6056 | fi | |
d9898ee8 | 6057 | |
8d138742 CE |
6058 | fi |
6059 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
6060 | $as_echo "$ac_cv_host" >&6; } | |
6061 | case $ac_cv_host in | |
6062 | *-*-*) ;; | |
6063 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
6064 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
6065 | { (exit 1); exit 1; }; };; | |
6066 | esac | |
6067 | host=$ac_cv_host | |
6068 | ac_save_IFS=$IFS; IFS='-' | |
6069 | set x $ac_cv_host | |
6070 | shift | |
6071 | host_cpu=$1 | |
6072 | host_vendor=$2 | |
6073 | shift; shift | |
6074 | # Remember, the first character of IFS is used to create $*, | |
6075 | # except with old shells: | |
6076 | host_os=$* | |
6077 | IFS=$ac_save_IFS | |
6078 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
d9898ee8 | 6079 | |
d9898ee8 | 6080 | |
8d138742 CE |
6081 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
6082 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6083 | if test "${ac_cv_path_SED+set}" = set; then | |
6084 | $as_echo_n "(cached) " >&6 | |
6085 | else | |
6086 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6087 | for ac_i in 1 2 3 4 5 6 7; do | |
6088 | ac_script="$ac_script$as_nl$ac_script" | |
6089 | done | |
6090 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6091 | $as_unset ac_script || ac_script= | |
6092 | if test -z "$SED"; then | |
6093 | ac_path_SED_found=false | |
6094 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6096 | for as_dir in $PATH | |
6097 | do | |
6098 | IFS=$as_save_IFS | |
6099 | test -z "$as_dir" && as_dir=. | |
6100 | for ac_prog in sed gsed; do | |
6101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6102 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6103 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6104 | # Check for GNU ac_path_SED and select it if it is found. | |
6105 | # Check for GNU $ac_path_SED | |
6106 | case `"$ac_path_SED" --version 2>&1` in | |
6107 | *GNU*) | |
6108 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6109 | *) | |
6110 | ac_count=0 | |
6111 | $as_echo_n 0123456789 >"conftest.in" | |
6112 | while : | |
6113 | do | |
6114 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6115 | mv "conftest.tmp" "conftest.in" | |
6116 | cp "conftest.in" "conftest.nl" | |
6117 | $as_echo '' >> "conftest.nl" | |
6118 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6119 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6120 | ac_count=`expr $ac_count + 1` | |
6121 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6122 | # Best one so far, save it but keep looking for a better one | |
6123 | ac_cv_path_SED="$ac_path_SED" | |
6124 | ac_path_SED_max=$ac_count | |
6125 | fi | |
6126 | # 10*(2^10) chars as input seems more than enough | |
6127 | test $ac_count -gt 10 && break | |
6128 | done | |
6129 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
dd184caf | 6130 | esac |
8d138742 CE |
6131 | |
6132 | $ac_path_SED_found && break 3 | |
6133 | done | |
6134 | done | |
6135 | done | |
6136 | IFS=$as_save_IFS | |
6137 | if test -z "$ac_cv_path_SED"; then | |
6138 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
6139 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
6140 | { (exit 1); exit 1; }; } | |
6141 | fi | |
d9898ee8 | 6142 | else |
8d138742 CE |
6143 | ac_cv_path_SED=$SED |
6144 | fi | |
d9898ee8 | 6145 | |
d9898ee8 | 6146 | fi |
8d138742 CE |
6147 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
6148 | $as_echo "$ac_cv_path_SED" >&6; } | |
6149 | SED="$ac_cv_path_SED" | |
6150 | rm -f conftest.sed | |
dd184caf | 6151 | |
8d138742 CE |
6152 | test -z "$SED" && SED=sed |
6153 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 6154 | |
d9898ee8 | 6155 | |
6156 | ||
d9898ee8 | 6157 | |
d9898ee8 | 6158 | |
6159 | ||
6160 | ||
8d138742 CE |
6161 | |
6162 | ||
6163 | ||
6164 | ||
6165 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
6166 | $as_echo_n "checking for fgrep... " >&6; } | |
6167 | if test "${ac_cv_path_FGREP+set}" = set; then | |
6168 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6169 | else |
8d138742 CE |
6170 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6171 | then ac_cv_path_FGREP="$GREP -F" | |
6172 | else | |
6173 | if test -z "$FGREP"; then | |
6174 | ac_path_FGREP_found=false | |
6175 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6177 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6178 | do | |
6179 | IFS=$as_save_IFS | |
6180 | test -z "$as_dir" && as_dir=. | |
6181 | for ac_prog in fgrep; do | |
6182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6183 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6184 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6185 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6186 | # Check for GNU $ac_path_FGREP | |
6187 | case `"$ac_path_FGREP" --version 2>&1` in | |
6188 | *GNU*) | |
6189 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6190 | *) | |
6191 | ac_count=0 | |
6192 | $as_echo_n 0123456789 >"conftest.in" | |
6193 | while : | |
6194 | do | |
6195 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6196 | mv "conftest.tmp" "conftest.in" | |
6197 | cp "conftest.in" "conftest.nl" | |
6198 | $as_echo 'FGREP' >> "conftest.nl" | |
6199 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6200 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6201 | ac_count=`expr $ac_count + 1` | |
6202 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6203 | # Best one so far, save it but keep looking for a better one | |
6204 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6205 | ac_path_FGREP_max=$ac_count | |
6206 | fi | |
6207 | # 10*(2^10) chars as input seems more than enough | |
6208 | test $ac_count -gt 10 && break | |
6209 | done | |
6210 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
dd184caf | 6211 | esac |
8d138742 CE |
6212 | |
6213 | $ac_path_FGREP_found && break 3 | |
6214 | done | |
6215 | done | |
6216 | done | |
6217 | IFS=$as_save_IFS | |
6218 | if test -z "$ac_cv_path_FGREP"; then | |
6219 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
6220 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
6221 | { (exit 1); exit 1; }; } | |
6222 | fi | |
d9898ee8 | 6223 | else |
8d138742 CE |
6224 | ac_cv_path_FGREP=$FGREP |
6225 | fi | |
d9898ee8 | 6226 | |
8d138742 | 6227 | fi |
d9898ee8 | 6228 | fi |
8d138742 CE |
6229 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
6230 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6231 | FGREP="$ac_cv_path_FGREP" | |
dd184caf | 6232 | |
d9898ee8 | 6233 | |
8d138742 | 6234 | test -z "$GREP" && GREP=grep |
d9898ee8 | 6235 | |
dd184caf | 6236 | |
d9898ee8 | 6237 | |
d9898ee8 | 6238 | |
d9898ee8 | 6239 | |
d9898ee8 | 6240 | |
d9898ee8 | 6241 | |
6242 | ||
6243 | ||
d9898ee8 | 6244 | |
dd184caf | 6245 | |
d9898ee8 | 6246 | |
d9898ee8 | 6247 | |
dd184caf | 6248 | |
d9898ee8 | 6249 | |
d9898ee8 | 6250 | |
d9898ee8 | 6251 | |
8d138742 CE |
6252 | |
6253 | ||
6254 | # Check whether --with-gnu-ld was given. | |
6255 | if test "${with_gnu_ld+set}" = set; then | |
6256 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
d9898ee8 | 6257 | else |
8d138742 | 6258 | with_gnu_ld=no |
d9898ee8 | 6259 | fi |
d9898ee8 | 6260 | |
8d138742 CE |
6261 | ac_prog=ld |
6262 | if test "$GCC" = yes; then | |
6263 | # Check if gcc -print-prog-name=ld gives a path. | |
6264 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
6265 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6266 | case $host in | |
6267 | *-*-mingw*) | |
6268 | # gcc leaves a trailing carriage return which upsets mingw | |
6269 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6270 | *) | |
6271 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6272 | esac | |
6273 | case $ac_prog in | |
6274 | # Accept absolute paths. | |
6275 | [\\/]* | ?:[\\/]*) | |
6276 | re_direlt='/[^/][^/]*/\.\./' | |
6277 | # Canonicalize the pathname of ld | |
6278 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6279 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6280 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6281 | done | |
6282 | test -z "$LD" && LD="$ac_prog" | |
6283 | ;; | |
6284 | "") | |
6285 | # If it fails, then pretend we aren't using GCC. | |
6286 | ac_prog=ld | |
6287 | ;; | |
6288 | *) | |
6289 | # If it is relative, then search for the first ld in PATH. | |
6290 | with_gnu_ld=unknown | |
6291 | ;; | |
6292 | esac | |
6293 | elif test "$with_gnu_ld" = yes; then | |
6294 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
6295 | $as_echo_n "checking for GNU ld... " >&6; } | |
6296 | else | |
6297 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
6298 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d9898ee8 | 6299 | fi |
8d138742 CE |
6300 | if test "${lt_cv_path_LD+set}" = set; then |
6301 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6302 | else |
8d138742 CE |
6303 | if test -z "$LD"; then |
6304 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6305 | for ac_dir in $PATH; do | |
6306 | IFS="$lt_save_ifs" | |
6307 | test -z "$ac_dir" && ac_dir=. | |
6308 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6309 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6310 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6311 | # but apparently some variants of GNU ld only accept -v. | |
6312 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6313 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6314 | *GNU* | *'with BFD'*) | |
6315 | test "$with_gnu_ld" != no && break | |
6316 | ;; | |
6317 | *) | |
6318 | test "$with_gnu_ld" != yes && break | |
6319 | ;; | |
6320 | esac | |
6321 | fi | |
6322 | done | |
6323 | IFS="$lt_save_ifs" | |
6324 | else | |
6325 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6326 | fi | |
d9898ee8 | 6327 | fi |
dd184caf | 6328 | |
8d138742 CE |
6329 | LD="$lt_cv_path_LD" |
6330 | if test -n "$LD"; then | |
6331 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
6332 | $as_echo "$LD" >&6; } | |
d9898ee8 | 6333 | else |
8d138742 CE |
6334 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6335 | $as_echo "no" >&6; } | |
6336 | fi | |
6337 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
6338 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d9898ee8 | 6339 | { (exit 1); exit 1; }; } |
8d138742 CE |
6340 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
6341 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6342 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
6343 | $as_echo_n "(cached) " >&6 | |
6344 | else | |
6345 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6346 | case `$LD -v 2>&1 </dev/null` in | |
6347 | *GNU* | *'with BFD'*) | |
6348 | lt_cv_prog_gnu_ld=yes | |
6349 | ;; | |
6350 | *) | |
6351 | lt_cv_prog_gnu_ld=no | |
6352 | ;; | |
6353 | esac | |
d9898ee8 | 6354 | fi |
8d138742 CE |
6355 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
6356 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6357 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d9898ee8 | 6358 | |
d9898ee8 | 6359 | |
d9898ee8 | 6360 | |
6361 | ||
8d138742 CE |
6362 | |
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6368 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6369 | if test "${lt_cv_path_NM+set}" = set; then | |
6370 | $as_echo_n "(cached) " >&6 | |
6371 | else | |
6372 | if test -n "$NM"; then | |
6373 | # Let the user override the test. | |
6374 | lt_cv_path_NM="$NM" | |
6375 | else | |
6376 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6377 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6378 | lt_nm_to_check="$lt_nm_to_check nm" | |
6379 | fi | |
6380 | for lt_tmp_nm in $lt_nm_to_check; do | |
6381 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6382 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6383 | IFS="$lt_save_ifs" | |
6384 | test -z "$ac_dir" && ac_dir=. | |
6385 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6386 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6387 | # Check to see if the nm accepts a BSD-compat flag. | |
6388 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6389 | # nm: unknown option "B" ignored | |
6390 | # Tru64's nm complains that /dev/null is an invalid object file | |
6391 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6392 | */dev/null* | *'Invalid file or object type'*) | |
6393 | lt_cv_path_NM="$tmp_nm -B" | |
6394 | break | |
6395 | ;; | |
6396 | *) | |
6397 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6398 | */dev/null*) | |
6399 | lt_cv_path_NM="$tmp_nm -p" | |
6400 | break | |
6401 | ;; | |
6402 | *) | |
6403 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6404 | continue # so that we can try to find one that supports BSD flags | |
6405 | ;; | |
6406 | esac | |
6407 | ;; | |
6408 | esac | |
6409 | fi | |
6410 | done | |
6411 | IFS="$lt_save_ifs" | |
6412 | done | |
6413 | : ${lt_cv_path_NM=no} | |
6414 | fi | |
6415 | fi | |
6416 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
6417 | $as_echo "$lt_cv_path_NM" >&6; } | |
6418 | if test "$lt_cv_path_NM" != "no"; then | |
6419 | NM="$lt_cv_path_NM" | |
6420 | else | |
6421 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6422 | if test -n "$ac_tool_prefix"; then | |
6423 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
d9898ee8 | 6424 | do |
6425 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6426 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
6427 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6428 | $as_echo_n "checking for $ac_word... " >&6; } | |
6429 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
6430 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6431 | else |
8d138742 CE |
6432 | if test -n "$DUMPBIN"; then |
6433 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d9898ee8 | 6434 | else |
6435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6436 | for as_dir in $PATH | |
6437 | do | |
6438 | IFS=$as_save_IFS | |
6439 | test -z "$as_dir" && as_dir=. | |
6440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6442 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6443 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6444 | break 2 |
6445 | fi | |
6446 | done | |
6447 | done | |
dd184caf | 6448 | IFS=$as_save_IFS |
d9898ee8 | 6449 | |
6450 | fi | |
6451 | fi | |
8d138742 CE |
6452 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6453 | if test -n "$DUMPBIN"; then | |
6454 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
6455 | $as_echo "$DUMPBIN" >&6; } | |
d9898ee8 | 6456 | else |
8d138742 CE |
6457 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6458 | $as_echo "no" >&6; } | |
d9898ee8 | 6459 | fi |
6460 | ||
dd184caf | 6461 | |
8d138742 | 6462 | test -n "$DUMPBIN" && break |
d9898ee8 | 6463 | done |
6464 | fi | |
8d138742 CE |
6465 | if test -z "$DUMPBIN"; then |
6466 | ac_ct_DUMPBIN=$DUMPBIN | |
6467 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
d9898ee8 | 6468 | do |
6469 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6470 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
6471 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6472 | $as_echo_n "checking for $ac_word... " >&6; } | |
6473 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
6474 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6475 | else |
8d138742 CE |
6476 | if test -n "$ac_ct_DUMPBIN"; then |
6477 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
d9898ee8 | 6478 | else |
6479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6480 | for as_dir in $PATH | |
6481 | do | |
6482 | IFS=$as_save_IFS | |
6483 | test -z "$as_dir" && as_dir=. | |
6484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6486 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6488 | break 2 |
6489 | fi | |
6490 | done | |
6491 | done | |
dd184caf | 6492 | IFS=$as_save_IFS |
d9898ee8 | 6493 | |
6494 | fi | |
6495 | fi | |
8d138742 CE |
6496 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6497 | if test -n "$ac_ct_DUMPBIN"; then | |
6498 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
6499 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d9898ee8 | 6500 | else |
8d138742 CE |
6501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6502 | $as_echo "no" >&6; } | |
d9898ee8 | 6503 | fi |
6504 | ||
dd184caf | 6505 | |
8d138742 | 6506 | test -n "$ac_ct_DUMPBIN" && break |
d9898ee8 | 6507 | done |
6508 | ||
8d138742 CE |
6509 | if test "x$ac_ct_DUMPBIN" = x; then |
6510 | DUMPBIN=":" | |
dd184caf | 6511 | else |
6512 | case $cross_compiling:$ac_tool_warned in | |
6513 | yes:) | |
8d138742 CE |
6514 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6515 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6516 | ac_tool_warned=yes ;; |
6517 | esac | |
8d138742 | 6518 | DUMPBIN=$ac_ct_DUMPBIN |
dd184caf | 6519 | fi |
d9898ee8 | 6520 | fi |
6521 | ||
6522 | ||
8d138742 CE |
6523 | if test "$DUMPBIN" != ":"; then |
6524 | NM="$DUMPBIN" | |
6525 | fi | |
d9898ee8 | 6526 | fi |
8d138742 | 6527 | test -z "$NM" && NM=nm |
dd184caf | 6528 | |
d9898ee8 | 6529 | |
d9898ee8 | 6530 | |
d9898ee8 | 6531 | |
dd184caf | 6532 | |
d9898ee8 | 6533 | |
8d138742 CE |
6534 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
6535 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6536 | if test "${lt_cv_nm_interface+set}" = set; then | |
6537 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6538 | else |
8d138742 CE |
6539 | lt_cv_nm_interface="BSD nm" |
6540 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6541 | (eval echo "\"\$as_me:6541: $ac_compile\"" >&5) | |
6542 | (eval "$ac_compile" 2>conftest.err) | |
6543 | cat conftest.err >&5 | |
6544 | (eval echo "\"\$as_me:6544: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6545 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6546 | cat conftest.err >&5 | |
6547 | (eval echo "\"\$as_me:6547: output\"" >&5) | |
6548 | cat conftest.out >&5 | |
6549 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6550 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 6551 | fi |
8d138742 | 6552 | rm -f conftest* |
d9898ee8 | 6553 | fi |
8d138742 CE |
6554 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
6555 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d9898ee8 | 6556 | |
8d138742 CE |
6557 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
6558 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6559 | LN_S=$as_ln_s | |
6560 | if test "$LN_S" = "ln -s"; then | |
6561 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6562 | $as_echo "yes" >&6; } | |
6563 | else | |
6564 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
6565 | $as_echo "no, using $LN_S" >&6; } | |
6566 | fi | |
d9898ee8 | 6567 | |
6568 | # find the maximum length of command line arguments | |
8d138742 CE |
6569 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6570 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d9898ee8 | 6571 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
8d138742 | 6572 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6573 | else |
6574 | i=0 | |
6575 | teststring="ABCD" | |
6576 | ||
6577 | case $build_os in | |
6578 | msdosdjgpp*) | |
6579 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6580 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6581 | # during glob expansion). Even if it were fixed, the result of this | |
6582 | # check would be larger than it should be. | |
6583 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6584 | ;; | |
6585 | ||
6586 | gnu*) | |
6587 | # Under GNU Hurd, this test is not required because there is | |
6588 | # no limit to the length of command line arguments. | |
6589 | # Libtool will interpret -1 as no limit whatsoever | |
6590 | lt_cv_sys_max_cmd_len=-1; | |
6591 | ;; | |
6592 | ||
8d138742 | 6593 | cygwin* | mingw* | cegcc*) |
d9898ee8 | 6594 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6595 | # about 5 minutes as the teststring grows exponentially. | |
6596 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6597 | # you end up with a "frozen" computer, even though with patience | |
6598 | # the test eventually succeeds (with a max line length of 256k). | |
6599 | # Instead, let's just punt: use the minimum linelength reported by | |
6600 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6601 | lt_cv_sys_max_cmd_len=8192; | |
6602 | ;; | |
6603 | ||
6604 | amigaos*) | |
6605 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6606 | # So we just punt and use a minimum line length of 8192. | |
6607 | lt_cv_sys_max_cmd_len=8192; | |
6608 | ;; | |
6609 | ||
6610 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6611 | # This has been around since 386BSD, at least. Likely further. | |
6612 | if test -x /sbin/sysctl; then | |
6613 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6614 | elif test -x /usr/sbin/sysctl; then | |
6615 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6616 | else | |
6617 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6618 | fi | |
6619 | # And add a safety zone | |
6620 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6621 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6622 | ;; | |
6623 | ||
6624 | interix*) | |
6625 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6626 | lt_cv_sys_max_cmd_len=196608 | |
6627 | ;; | |
6628 | ||
6629 | osf*) | |
6630 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6631 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6632 | # nice to cause kernel panics so lets avoid the loop below. | |
6633 | # First set a reasonable default. | |
6634 | lt_cv_sys_max_cmd_len=16384 | |
6635 | # | |
6636 | if test -x /sbin/sysconfig; then | |
6637 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6638 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6639 | esac | |
6640 | fi | |
6641 | ;; | |
6642 | sco3.2v5*) | |
6643 | lt_cv_sys_max_cmd_len=102400 | |
6644 | ;; | |
6645 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6646 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6647 | if test -n "$kargmax"; then | |
8d138742 | 6648 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
d9898ee8 | 6649 | else |
6650 | lt_cv_sys_max_cmd_len=32768 | |
6651 | fi | |
6652 | ;; | |
6653 | *) | |
ac40fd9e | 6654 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6655 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
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 | else | |
8d138742 CE |
6659 | # Make teststring a little bigger before we do anything with it. |
6660 | # a 1K string should be a reasonable start. | |
6661 | for i in 1 2 3 4 5 6 7 8 ; do | |
6662 | teststring=$teststring$teststring | |
6663 | done | |
ac40fd9e | 6664 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
8d138742 CE |
6665 | # If test is not a shell built-in, we'll probably end up computing a |
6666 | # maximum length that is only half of the actual maximum length, but | |
6667 | # we can't tell. | |
6668 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6669 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
ac40fd9e | 6670 | test $i != 17 # 1/2 MB should be enough |
6671 | do | |
6672 | i=`expr $i + 1` | |
6673 | teststring=$teststring$teststring | |
6674 | done | |
8d138742 CE |
6675 | # Only check the string length outside the loop. |
6676 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
ac40fd9e | 6677 | teststring= |
8d138742 CE |
6678 | # Add a significant safety factor because C++ compilers can tack on |
6679 | # massive amounts of additional arguments before passing them to the | |
6680 | # linker. It appears as though 1/2 is a usable value. | |
ac40fd9e | 6681 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6682 | fi | |
d9898ee8 | 6683 | ;; |
6684 | esac | |
6685 | ||
6686 | fi | |
6687 | ||
6688 | if test -n $lt_cv_sys_max_cmd_len ; then | |
8d138742 CE |
6689 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6690 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
d9898ee8 | 6691 | else |
8d138742 CE |
6692 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
6693 | $as_echo "none" >&6; } | |
d9898ee8 | 6694 | fi |
8d138742 | 6695 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 6696 | |
6697 | ||
6698 | ||
6699 | ||
ac40fd9e | 6700 | |
d9898ee8 | 6701 | |
8d138742 CE |
6702 | : ${CP="cp -f"} |
6703 | : ${MV="mv -f"} | |
6704 | : ${RM="rm -f"} | |
d9898ee8 | 6705 | |
8d138742 CE |
6706 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
6707 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6708 | # Try some XSI features | |
6709 | xsi_shell=no | |
6710 | ( _lt_dummy="a/b/c" | |
6711 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6712 | = c,a/b,, \ | |
6713 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6714 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6715 | && xsi_shell=yes | |
6716 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
6717 | $as_echo "$xsi_shell" >&6; } | |
d9898ee8 | 6718 | |
d9898ee8 | 6719 | |
8d138742 CE |
6720 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
6721 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6722 | lt_shell_append=no | |
6723 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6724 | >/dev/null 2>&1 \ | |
6725 | && lt_shell_append=yes | |
6726 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
6727 | $as_echo "$lt_shell_append" >&6; } | |
d9898ee8 | 6728 | |
d9898ee8 | 6729 | |
8d138742 CE |
6730 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6731 | lt_unset=unset | |
6732 | else | |
6733 | lt_unset=false | |
6734 | fi | |
d9898ee8 | 6735 | |
d9898ee8 | 6736 | |
d9898ee8 | 6737 | |
d9898ee8 | 6738 | |
d9898ee8 | 6739 | |
8d138742 CE |
6740 | # test EBCDIC or ASCII |
6741 | case `echo X|tr X '\101'` in | |
6742 | A) # ASCII based system | |
6743 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6744 | lt_SP2NL='tr \040 \012' | |
6745 | lt_NL2SP='tr \015\012 \040\040' | |
6746 | ;; | |
6747 | *) # EBCDIC based system | |
6748 | lt_SP2NL='tr \100 \n' | |
6749 | lt_NL2SP='tr \r\n \100\100' | |
6750 | ;; | |
6751 | esac | |
d9898ee8 | 6752 | |
d9898ee8 | 6753 | |
d9898ee8 | 6754 | |
d9898ee8 | 6755 | |
d9898ee8 | 6756 | |
d9898ee8 | 6757 | |
d9898ee8 | 6758 | |
d9898ee8 | 6759 | |
d9898ee8 | 6760 | |
8d138742 CE |
6761 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
6762 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6763 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
6764 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6765 | else |
8d138742 | 6766 | lt_cv_ld_reload_flag='-r' |
d9898ee8 | 6767 | fi |
8d138742 CE |
6768 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
6769 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6770 | reload_flag=$lt_cv_ld_reload_flag | |
6771 | case $reload_flag in | |
6772 | "" | " "*) ;; | |
6773 | *) reload_flag=" $reload_flag" ;; | |
6774 | esac | |
6775 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
d9898ee8 | 6776 | case $host_os in |
8d138742 CE |
6777 | darwin*) |
6778 | if test "$GCC" = yes; then | |
6779 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6780 | else | |
6781 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6782 | fi | |
6783 | ;; | |
d9898ee8 | 6784 | esac |
6785 | ||
d9898ee8 | 6786 | |
d9898ee8 | 6787 | |
d9898ee8 | 6788 | |
d9898ee8 | 6789 | |
d9898ee8 | 6790 | |
d9898ee8 | 6791 | |
8d138742 | 6792 | |
d9898ee8 | 6793 | |
6794 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
6795 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6796 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6797 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6798 | $as_echo_n "checking for $ac_word... " >&6; } | |
6799 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
6800 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6801 | else |
8d138742 CE |
6802 | if test -n "$OBJDUMP"; then |
6803 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6804 | else |
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6806 | for as_dir in $PATH | |
6807 | do | |
6808 | IFS=$as_save_IFS | |
6809 | test -z "$as_dir" && as_dir=. | |
6810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6812 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6813 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6814 | break 2 |
6815 | fi | |
6816 | done | |
6817 | done | |
dd184caf | 6818 | IFS=$as_save_IFS |
d9898ee8 | 6819 | |
6820 | fi | |
6821 | fi | |
8d138742 CE |
6822 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6823 | if test -n "$OBJDUMP"; then | |
6824 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
6825 | $as_echo "$OBJDUMP" >&6; } | |
d9898ee8 | 6826 | else |
8d138742 CE |
6827 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6828 | $as_echo "no" >&6; } | |
d9898ee8 | 6829 | fi |
6830 | ||
dd184caf | 6831 | |
d9898ee8 | 6832 | fi |
8d138742 CE |
6833 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6834 | ac_ct_OBJDUMP=$OBJDUMP | |
6835 | # Extract the first word of "objdump", so it can be a program name with args. | |
6836 | set dummy objdump; ac_word=$2 | |
6837 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6838 | $as_echo_n "checking for $ac_word... " >&6; } | |
6839 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
6840 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6841 | else |
8d138742 CE |
6842 | if test -n "$ac_ct_OBJDUMP"; then |
6843 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6844 | else |
6845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6846 | for as_dir in $PATH | |
6847 | do | |
6848 | IFS=$as_save_IFS | |
6849 | test -z "$as_dir" && as_dir=. | |
6850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6852 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6853 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6854 | break 2 |
6855 | fi | |
6856 | done | |
6857 | done | |
dd184caf | 6858 | IFS=$as_save_IFS |
d9898ee8 | 6859 | |
d9898ee8 | 6860 | fi |
6861 | fi | |
8d138742 CE |
6862 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6863 | if test -n "$ac_ct_OBJDUMP"; then | |
6864 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
6865 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d9898ee8 | 6866 | else |
8d138742 CE |
6867 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6868 | $as_echo "no" >&6; } | |
d9898ee8 | 6869 | fi |
6870 | ||
8d138742 CE |
6871 | if test "x$ac_ct_OBJDUMP" = x; then |
6872 | OBJDUMP="false" | |
dd184caf | 6873 | else |
6874 | case $cross_compiling:$ac_tool_warned in | |
6875 | yes:) | |
8d138742 CE |
6876 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6878 | ac_tool_warned=yes ;; |
6879 | esac | |
8d138742 | 6880 | OBJDUMP=$ac_ct_OBJDUMP |
dd184caf | 6881 | fi |
d9898ee8 | 6882 | else |
8d138742 | 6883 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 6884 | fi |
6885 | ||
8d138742 CE |
6886 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6887 | ||
6888 | ||
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
6897 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6898 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6899 | $as_echo_n "(cached) " >&6 | |
6900 | else | |
6901 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6902 | lt_cv_file_magic_test_file= | |
6903 | lt_cv_deplibs_check_method='unknown' | |
6904 | # Need to set the preceding variable on all platforms that support | |
6905 | # interlibrary dependencies. | |
6906 | # 'none' -- dependencies not supported. | |
6907 | # `unknown' -- same as none, but documents that we really don't know. | |
6908 | # 'pass_all' -- all dependencies passed with no checks. | |
6909 | # 'test_compile' -- check by making test program. | |
6910 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6911 | # which responds to the $file_magic_cmd with a given extended regex. | |
6912 | # If you have `file' or equivalent on your system and you're not sure | |
6913 | # whether `pass_all' will *always* work, you probably want this one. | |
6914 | ||
6915 | case $host_os in | |
6916 | aix[4-9]*) | |
6917 | lt_cv_deplibs_check_method=pass_all | |
6918 | ;; | |
6919 | ||
6920 | beos*) | |
6921 | lt_cv_deplibs_check_method=pass_all | |
6922 | ;; | |
6923 | ||
6924 | bsdi[45]*) | |
6925 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6926 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6927 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6928 | ;; | |
6929 | ||
6930 | cygwin*) | |
6931 | # func_win32_libid is a shell function defined in ltmain.sh | |
6932 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6933 | lt_cv_file_magic_cmd='func_win32_libid' | |
6934 | ;; | |
6935 | ||
6936 | mingw* | pw32*) | |
6937 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6938 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6939 | # unless we find 'file', for example because we are cross-compiling. | |
6940 | if ( file / ) >/dev/null 2>&1; then | |
6941 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6942 | lt_cv_file_magic_cmd='func_win32_libid' | |
6943 | else | |
6944 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6945 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6946 | fi | |
6947 | ;; | |
6948 | ||
6949 | cegcc) | |
6950 | # use the weaker test based on 'objdump'. See mingw*. | |
6951 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6952 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6953 | ;; | |
6954 | ||
6955 | darwin* | rhapsody*) | |
6956 | lt_cv_deplibs_check_method=pass_all | |
6957 | ;; | |
6958 | ||
6959 | freebsd* | dragonfly*) | |
6960 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6961 | case $host_cpu in | |
6962 | i*86 ) | |
6963 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6964 | # Let's accept both of them until this is cleared up. | |
6965 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6966 | lt_cv_file_magic_cmd=/usr/bin/file | |
6967 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6968 | ;; | |
6969 | esac | |
6970 | else | |
6971 | lt_cv_deplibs_check_method=pass_all | |
6972 | fi | |
6973 | ;; | |
6974 | ||
6975 | gnu*) | |
6976 | lt_cv_deplibs_check_method=pass_all | |
6977 | ;; | |
6978 | ||
6979 | hpux10.20* | hpux11*) | |
6980 | lt_cv_file_magic_cmd=/usr/bin/file | |
6981 | case $host_cpu in | |
6982 | ia64*) | |
6983 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6984 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6985 | ;; | |
6986 | hppa*64*) | |
6987 | 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]' | |
6988 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6989 | ;; | |
6990 | *) | |
6991 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6992 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6993 | ;; | |
6994 | esac | |
6995 | ;; | |
6996 | ||
6997 | interix[3-9]*) | |
6998 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6999 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7000 | ;; | |
7001 | ||
7002 | irix5* | irix6* | nonstopux*) | |
7003 | case $LD in | |
7004 | *-32|*"-32 ") libmagic=32-bit;; | |
7005 | *-n32|*"-n32 ") libmagic=N32;; | |
7006 | *-64|*"-64 ") libmagic=64-bit;; | |
7007 | *) libmagic=never-match;; | |
7008 | esac | |
7009 | lt_cv_deplibs_check_method=pass_all | |
7010 | ;; | |
7011 | ||
7012 | # This must be Linux ELF. | |
7013 | linux* | k*bsd*-gnu) | |
7014 | lt_cv_deplibs_check_method=pass_all | |
7015 | ;; | |
7016 | ||
7017 | netbsd*) | |
7018 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7019 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7020 | else | |
7021 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7022 | fi | |
7023 | ;; | |
7024 | ||
7025 | newos6*) | |
7026 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7027 | lt_cv_file_magic_cmd=/usr/bin/file | |
7028 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7029 | ;; | |
7030 | ||
7031 | *nto* | *qnx*) | |
7032 | lt_cv_deplibs_check_method=pass_all | |
7033 | ;; | |
7034 | ||
7035 | openbsd*) | |
7036 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7037 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7038 | else | |
7039 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7040 | fi | |
7041 | ;; | |
7042 | ||
7043 | osf3* | osf4* | osf5*) | |
7044 | lt_cv_deplibs_check_method=pass_all | |
7045 | ;; | |
7046 | ||
7047 | rdos*) | |
7048 | lt_cv_deplibs_check_method=pass_all | |
7049 | ;; | |
7050 | ||
7051 | solaris*) | |
7052 | lt_cv_deplibs_check_method=pass_all | |
7053 | ;; | |
7054 | ||
7055 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
7056 | lt_cv_deplibs_check_method=pass_all | |
7057 | ;; | |
7058 | ||
7059 | sysv4 | sysv4.3*) | |
7060 | case $host_vendor in | |
7061 | motorola) | |
7062 | 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]' | |
7063 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7064 | ;; | |
7065 | ncr) | |
7066 | lt_cv_deplibs_check_method=pass_all | |
7067 | ;; | |
7068 | sequent) | |
7069 | lt_cv_file_magic_cmd='/bin/file' | |
7070 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7071 | ;; | |
7072 | sni) | |
7073 | lt_cv_file_magic_cmd='/bin/file' | |
7074 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7075 | lt_cv_file_magic_test_file=/lib/libc.so | |
7076 | ;; | |
7077 | siemens) | |
7078 | lt_cv_deplibs_check_method=pass_all | |
7079 | ;; | |
7080 | pc) | |
7081 | lt_cv_deplibs_check_method=pass_all | |
7082 | ;; | |
7083 | esac | |
7084 | ;; | |
7085 | ||
7086 | tpf*) | |
7087 | lt_cv_deplibs_check_method=pass_all | |
7088 | ;; | |
7089 | esac | |
7090 | ||
7091 | fi | |
7092 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
7093 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7094 | file_magic_cmd=$lt_cv_file_magic_cmd | |
7095 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7096 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | if test -n "$ac_tool_prefix"; then | |
7110 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7111 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7112 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7113 | $as_echo_n "checking for $ac_word... " >&6; } | |
7114 | if test "${ac_cv_prog_AR+set}" = set; then | |
7115 | $as_echo_n "(cached) " >&6 | |
7116 | else | |
7117 | if test -n "$AR"; then | |
7118 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7119 | else | |
7120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 7121 | for as_dir in $PATH |
7122 | do | |
7123 | IFS=$as_save_IFS | |
7124 | test -z "$as_dir" && as_dir=. | |
7125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 7126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
7127 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
7128 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 7129 | break 2 |
7130 | fi | |
7131 | done | |
7132 | done | |
dd184caf | 7133 | IFS=$as_save_IFS |
d9898ee8 | 7134 | |
7135 | fi | |
7136 | fi | |
8d138742 CE |
7137 | AR=$ac_cv_prog_AR |
7138 | if test -n "$AR"; then | |
7139 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
7140 | $as_echo "$AR" >&6; } | |
d9898ee8 | 7141 | else |
8d138742 CE |
7142 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7143 | $as_echo "no" >&6; } | |
d9898ee8 | 7144 | fi |
7145 | ||
dd184caf | 7146 | |
d9898ee8 | 7147 | fi |
8d138742 CE |
7148 | if test -z "$ac_cv_prog_AR"; then |
7149 | ac_ct_AR=$AR | |
7150 | # Extract the first word of "ar", so it can be a program name with args. | |
7151 | set dummy ar; ac_word=$2 | |
7152 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7153 | $as_echo_n "checking for $ac_word... " >&6; } | |
7154 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7155 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7156 | else |
8d138742 CE |
7157 | if test -n "$ac_ct_AR"; then |
7158 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 7159 | else |
7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7161 | for as_dir in $PATH | |
7162 | do | |
7163 | IFS=$as_save_IFS | |
7164 | test -z "$as_dir" && as_dir=. | |
7165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 7166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
7167 | ac_cv_prog_ac_ct_AR="ar" |
7168 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 7169 | break 2 |
7170 | fi | |
7171 | done | |
7172 | done | |
dd184caf | 7173 | IFS=$as_save_IFS |
d9898ee8 | 7174 | |
d9898ee8 | 7175 | fi |
7176 | fi | |
8d138742 CE |
7177 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7178 | if test -n "$ac_ct_AR"; then | |
7179 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7180 | $as_echo "$ac_ct_AR" >&6; } | |
d9898ee8 | 7181 | else |
8d138742 CE |
7182 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7183 | $as_echo "no" >&6; } | |
d9898ee8 | 7184 | fi |
7185 | ||
8d138742 CE |
7186 | if test "x$ac_ct_AR" = x; then |
7187 | AR="false" | |
dd184caf | 7188 | else |
7189 | case $cross_compiling:$ac_tool_warned in | |
7190 | yes:) | |
8d138742 CE |
7191 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
7192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 7193 | ac_tool_warned=yes ;; |
7194 | esac | |
8d138742 | 7195 | AR=$ac_ct_AR |
dd184caf | 7196 | fi |
d9898ee8 | 7197 | else |
8d138742 | 7198 | AR="$ac_cv_prog_AR" |
d9898ee8 | 7199 | fi |
7200 | ||
8d138742 CE |
7201 | test -z "$AR" && AR=ar |
7202 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | if test -n "$ac_tool_prefix"; then | |
7215 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7216 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7217 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7218 | $as_echo_n "checking for $ac_word... " >&6; } | |
7219 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
7220 | $as_echo_n "(cached) " >&6 | |
7221 | else | |
d9898ee8 | 7222 | if test -n "$STRIP"; then |
7223 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7224 | else | |
7225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7226 | for as_dir in $PATH | |
7227 | do | |
7228 | IFS=$as_save_IFS | |
7229 | test -z "$as_dir" && as_dir=. | |
7230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 7231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 7232 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
8d138742 | 7233 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7234 | break 2 |
7235 | fi | |
7236 | done | |
7237 | done | |
dd184caf | 7238 | IFS=$as_save_IFS |
d9898ee8 | 7239 | |
7240 | fi | |
7241 | fi | |
7242 | STRIP=$ac_cv_prog_STRIP | |
7243 | if test -n "$STRIP"; then | |
8d138742 CE |
7244 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
7245 | $as_echo "$STRIP" >&6; } | |
d9898ee8 | 7246 | else |
8d138742 CE |
7247 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7248 | $as_echo "no" >&6; } | |
d9898ee8 | 7249 | fi |
7250 | ||
dd184caf | 7251 | |
d9898ee8 | 7252 | fi |
7253 | if test -z "$ac_cv_prog_STRIP"; then | |
7254 | ac_ct_STRIP=$STRIP | |
7255 | # Extract the first word of "strip", so it can be a program name with args. | |
7256 | set dummy strip; ac_word=$2 | |
8d138742 CE |
7257 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7258 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 7259 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
8d138742 | 7260 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7261 | else |
7262 | if test -n "$ac_ct_STRIP"; then | |
7263 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7264 | else | |
7265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7266 | for as_dir in $PATH | |
7267 | do | |
7268 | IFS=$as_save_IFS | |
7269 | test -z "$as_dir" && as_dir=. | |
7270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 7271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 7272 | ac_cv_prog_ac_ct_STRIP="strip" |
8d138742 | 7273 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7274 | break 2 |
7275 | fi | |
7276 | done | |
7277 | done | |
dd184caf | 7278 | IFS=$as_save_IFS |
d9898ee8 | 7279 | |
d9898ee8 | 7280 | fi |
7281 | fi | |
7282 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7283 | if test -n "$ac_ct_STRIP"; then | |
8d138742 CE |
7284 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
7285 | $as_echo "$ac_ct_STRIP" >&6; } | |
d9898ee8 | 7286 | else |
8d138742 CE |
7287 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7288 | $as_echo "no" >&6; } | |
d9898ee8 | 7289 | fi |
7290 | ||
dd184caf | 7291 | if test "x$ac_ct_STRIP" = x; then |
7292 | STRIP=":" | |
7293 | else | |
7294 | case $cross_compiling:$ac_tool_warned in | |
7295 | yes:) | |
8d138742 CE |
7296 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
7297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 7298 | ac_tool_warned=yes ;; |
7299 | esac | |
7300 | STRIP=$ac_ct_STRIP | |
7301 | fi | |
d9898ee8 | 7302 | else |
7303 | STRIP="$ac_cv_prog_STRIP" | |
7304 | fi | |
7305 | ||
8d138742 | 7306 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 7307 | |
d9898ee8 | 7308 | |
8d138742 CE |
7309 | |
7310 | ||
7311 | ||
7312 | ||
7313 | if test -n "$ac_tool_prefix"; then | |
7314 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7316 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7317 | $as_echo_n "checking for $ac_word... " >&6; } | |
7318 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7319 | $as_echo_n "(cached) " >&6 | |
7320 | else | |
7321 | if test -n "$RANLIB"; then | |
7322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7323 | else | |
7324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7325 | for as_dir in $PATH | |
7326 | do | |
7327 | IFS=$as_save_IFS | |
7328 | test -z "$as_dir" && as_dir=. | |
7329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7331 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7332 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7333 | break 2 | |
7334 | fi | |
7335 | done | |
7336 | done | |
7337 | IFS=$as_save_IFS | |
7338 | ||
7339 | fi | |
7340 | fi | |
7341 | RANLIB=$ac_cv_prog_RANLIB | |
7342 | if test -n "$RANLIB"; then | |
7343 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7344 | $as_echo "$RANLIB" >&6; } | |
7345 | else | |
7346 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7347 | $as_echo "no" >&6; } | |
7348 | fi | |
7349 | ||
7350 | ||
7351 | fi | |
7352 | if test -z "$ac_cv_prog_RANLIB"; then | |
7353 | ac_ct_RANLIB=$RANLIB | |
7354 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7355 | set dummy ranlib; ac_word=$2 | |
7356 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7357 | $as_echo_n "checking for $ac_word... " >&6; } | |
7358 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7359 | $as_echo_n "(cached) " >&6 | |
7360 | else | |
7361 | if test -n "$ac_ct_RANLIB"; then | |
7362 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7363 | else | |
7364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7365 | for as_dir in $PATH | |
7366 | do | |
7367 | IFS=$as_save_IFS | |
7368 | test -z "$as_dir" && as_dir=. | |
7369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7371 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7372 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7373 | break 2 | |
7374 | fi | |
7375 | done | |
7376 | done | |
7377 | IFS=$as_save_IFS | |
7378 | ||
7379 | fi | |
7380 | fi | |
7381 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7382 | if test -n "$ac_ct_RANLIB"; then | |
7383 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7384 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7385 | else | |
7386 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7387 | $as_echo "no" >&6; } | |
7388 | fi | |
7389 | ||
7390 | if test "x$ac_ct_RANLIB" = x; then | |
7391 | RANLIB=":" | |
7392 | else | |
7393 | case $cross_compiling:$ac_tool_warned in | |
7394 | yes:) | |
7395 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7397 | ac_tool_warned=yes ;; | |
7398 | esac | |
7399 | RANLIB=$ac_ct_RANLIB | |
7400 | fi | |
7401 | else | |
7402 | RANLIB="$ac_cv_prog_RANLIB" | |
7403 | fi | |
7404 | ||
d9898ee8 | 7405 | test -z "$RANLIB" && RANLIB=: |
8d138742 CE |
7406 | |
7407 | ||
7408 | ||
7409 | ||
7410 | ||
d9898ee8 | 7411 | |
7412 | # Determine commands to create old-style static archives. | |
ac40fd9e | 7413 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d9898ee8 | 7414 | old_postinstall_cmds='chmod 644 $oldlib' |
7415 | old_postuninstall_cmds= | |
7416 | ||
7417 | if test -n "$RANLIB"; then | |
7418 | case $host_os in | |
7419 | openbsd*) | |
7420 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7421 | ;; | |
7422 | *) | |
7423 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7424 | ;; | |
7425 | esac | |
7426 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7427 | fi | |
7428 | ||
d9898ee8 | 7429 | |
7430 | ||
d9898ee8 | 7431 | |
d9898ee8 | 7432 | |
d9898ee8 | 7433 | |
d9898ee8 | 7434 | |
d9898ee8 | 7435 | |
d9898ee8 | 7436 | |
d9898ee8 | 7437 | |
d9898ee8 | 7438 | |
d9898ee8 | 7439 | |
d9898ee8 | 7440 | |
d9898ee8 | 7441 | |
d9898ee8 | 7442 | |
d9898ee8 | 7443 | |
7444 | ||
dd184caf | 7445 | |
d9898ee8 | 7446 | |
d9898ee8 | 7447 | |
7448 | ||
d9898ee8 | 7449 | |
d9898ee8 | 7450 | |
d9898ee8 | 7451 | |
8d138742 CE |
7452 | |
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
d9898ee8 | 7460 | |
7461 | ||
7462 | # If no C compiler was specified, use CC. | |
7463 | LTCC=${LTCC-"$CC"} | |
7464 | ||
7465 | # If no C compiler flags were specified, use CFLAGS. | |
7466 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7467 | ||
7468 | # Allow CC to be a program name with arguments. | |
7469 | compiler=$CC | |
7470 | ||
7471 | ||
8d138742 CE |
7472 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7473 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
7474 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7475 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
7476 | $as_echo_n "(cached) " >&6 | |
7477 | else | |
d9898ee8 | 7478 | |
8d138742 CE |
7479 | # These are sane defaults that work on at least a few old systems. |
7480 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d9898ee8 | 7481 | |
8d138742 CE |
7482 | # Character class describing NM global symbol codes. |
7483 | symcode='[BCDEGRST]' | |
d9898ee8 | 7484 | |
8d138742 CE |
7485 | # Regexp to match symbols that can be accessed directly from C. |
7486 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d9898ee8 | 7487 | |
8d138742 CE |
7488 | # Define system-specific variables. |
7489 | case $host_os in | |
7490 | aix*) | |
7491 | symcode='[BCDT]' | |
7492 | ;; | |
7493 | cygwin* | mingw* | pw32* | cegcc*) | |
7494 | symcode='[ABCDGISTW]' | |
7495 | ;; | |
7496 | hpux*) | |
7497 | if test "$host_cpu" = ia64; then | |
7498 | symcode='[ABCDEGRST]' | |
7499 | fi | |
7500 | ;; | |
7501 | irix* | nonstopux*) | |
7502 | symcode='[BCDEGRST]' | |
7503 | ;; | |
7504 | osf*) | |
7505 | symcode='[BCDEGQRST]' | |
7506 | ;; | |
7507 | solaris*) | |
7508 | symcode='[BDRT]' | |
7509 | ;; | |
7510 | sco3.2v5*) | |
7511 | symcode='[DT]' | |
7512 | ;; | |
7513 | sysv4.2uw2*) | |
7514 | symcode='[DT]' | |
7515 | ;; | |
7516 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7517 | symcode='[ABDT]' | |
7518 | ;; | |
7519 | sysv4) | |
7520 | symcode='[DFNSTU]' | |
7521 | ;; | |
7522 | esac | |
d9898ee8 | 7523 | |
8d138742 CE |
7524 | # If we're using GNU nm, then use its standard symbol codes. |
7525 | case `$NM -V 2>&1` in | |
7526 | *GNU* | *'with BFD'*) | |
7527 | symcode='[ABCDGIRSTW]' ;; | |
7528 | esac | |
d9898ee8 | 7529 | |
8d138742 CE |
7530 | # Transform an extracted symbol line into a proper C declaration. |
7531 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7532 | # so use this general approach. | |
7533 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 7534 | |
8d138742 CE |
7535 | # Transform an extracted symbol line into symbol name and symbol address |
7536 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7537 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
d9898ee8 | 7538 | |
8d138742 CE |
7539 | # Handle CRLF in mingw tool chain |
7540 | opt_cr= | |
7541 | case $build_os in | |
7542 | mingw*) | |
7543 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7544 | ;; | |
7545 | esac | |
d9898ee8 | 7546 | |
8d138742 CE |
7547 | # Try without a prefix underscore, then with it. |
7548 | for ac_symprfx in "" "_"; do | |
d9898ee8 | 7549 | |
8d138742 CE |
7550 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7551 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d9898ee8 | 7552 | |
8d138742 CE |
7553 | # Write the raw and C identifiers. |
7554 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7555 | # Fake it for dumpbin and say T for any non-static function | |
7556 | # and D for any global variable. | |
7557 | # Also find C++ and __fastcall symbols from MSVC++, | |
7558 | # which start with @ or ?. | |
7559 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7560 | " {last_section=section; section=\$ 3};"\ | |
7561 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7562 | " \$ 0!~/External *\|/{next};"\ | |
7563 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7564 | " {if(hide[section]) next};"\ | |
7565 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7566 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7567 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7568 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7569 | " ' prfx=^$ac_symprfx" | |
7570 | else | |
7571 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7572 | fi | |
d9898ee8 | 7573 | |
8d138742 CE |
7574 | # Check to see that the pipe works correctly. |
7575 | pipe_works=no | |
d9898ee8 | 7576 | |
8d138742 CE |
7577 | rm -f conftest* |
7578 | cat > conftest.$ac_ext <<_LT_EOF | |
7579 | #ifdef __cplusplus | |
7580 | extern "C" { | |
7581 | #endif | |
7582 | char nm_test_var; | |
7583 | void nm_test_func(void); | |
7584 | void nm_test_func(void){} | |
7585 | #ifdef __cplusplus | |
7586 | } | |
7587 | #endif | |
7588 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7589 | _LT_EOF | |
d9898ee8 | 7590 | |
8d138742 CE |
7591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7592 | (eval $ac_compile) 2>&5 | |
7593 | ac_status=$? | |
7594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7595 | (exit $ac_status); }; then | |
7596 | # Now try to grab the symbols. | |
7597 | nlist=conftest.nm | |
7598 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
7599 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
7600 | ac_status=$? | |
7601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7602 | (exit $ac_status); } && test -s "$nlist"; then | |
7603 | # Try sorting and uniquifying the output. | |
7604 | if sort "$nlist" | uniq > "$nlist"T; then | |
7605 | mv -f "$nlist"T "$nlist" | |
7606 | else | |
7607 | rm -f "$nlist"T | |
d9898ee8 | 7608 | fi |
d9898ee8 | 7609 | |
8d138742 CE |
7610 | # Make sure that we snagged all the symbols we need. |
7611 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7612 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7613 | cat <<_LT_EOF > conftest.$ac_ext | |
7614 | #ifdef __cplusplus | |
7615 | extern "C" { | |
7616 | #endif | |
d9898ee8 | 7617 | |
8d138742 CE |
7618 | _LT_EOF |
7619 | # Now generate the symbol file. | |
7620 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 7621 | |
8d138742 | 7622 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 7623 | |
8d138742 CE |
7624 | /* The mapping between symbol names and symbols. */ |
7625 | const struct { | |
7626 | const char *name; | |
7627 | void *address; | |
7628 | } | |
7629 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7630 | { | |
7631 | { "@PROGRAM@", (void *) 0 }, | |
7632 | _LT_EOF | |
7633 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7634 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7635 | {0, (void *) 0} | |
7636 | }; | |
d9898ee8 | 7637 | |
8d138742 CE |
7638 | /* This works around a problem in FreeBSD linker */ |
7639 | #ifdef FREEBSD_WORKAROUND | |
7640 | static const void *lt_preloaded_setup() { | |
7641 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7642 | } | |
7643 | #endif | |
d9898ee8 | 7644 | |
8d138742 CE |
7645 | #ifdef __cplusplus |
7646 | } | |
7647 | #endif | |
7648 | _LT_EOF | |
7649 | # Now try linking the two files. | |
7650 | mv conftest.$ac_objext conftstm.$ac_objext | |
7651 | lt_save_LIBS="$LIBS" | |
7652 | lt_save_CFLAGS="$CFLAGS" | |
7653 | LIBS="conftstm.$ac_objext" | |
7654 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7656 | (eval $ac_link) 2>&5 | |
7657 | ac_status=$? | |
7658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7659 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
7660 | pipe_works=yes | |
7661 | fi | |
7662 | LIBS="$lt_save_LIBS" | |
7663 | CFLAGS="$lt_save_CFLAGS" | |
7664 | else | |
7665 | echo "cannot find nm_test_func in $nlist" >&5 | |
7666 | fi | |
7667 | else | |
7668 | echo "cannot find nm_test_var in $nlist" >&5 | |
d9898ee8 | 7669 | fi |
8d138742 CE |
7670 | else |
7671 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7672 | fi | |
7673 | else | |
7674 | echo "$progname: failed program was:" >&5 | |
7675 | cat conftest.$ac_ext >&5 | |
7676 | fi | |
7677 | rm -rf conftest* conftst* | |
d9898ee8 | 7678 | |
8d138742 CE |
7679 | # Do not use the global_symbol_pipe unless it works. |
7680 | if test "$pipe_works" = yes; then | |
7681 | break | |
d9898ee8 | 7682 | else |
8d138742 CE |
7683 | lt_cv_sys_global_symbol_pipe= |
7684 | fi | |
7685 | done | |
d9898ee8 | 7686 | |
8d138742 | 7687 | fi |
d9898ee8 | 7688 | |
8d138742 CE |
7689 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7690 | lt_cv_sys_global_symbol_to_cdecl= | |
7691 | fi | |
7692 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7693 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
7694 | $as_echo "failed" >&6; } | |
7695 | else | |
7696 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
7697 | $as_echo "ok" >&6; } | |
7698 | fi | |
d9898ee8 | 7699 | |
d9898ee8 | 7700 | |
d9898ee8 | 7701 | |
d9898ee8 | 7702 | |
d9898ee8 | 7703 | |
ac40fd9e | 7704 | |
d9898ee8 | 7705 | |
d9898ee8 | 7706 | |
d9898ee8 | 7707 | |
d9898ee8 | 7708 | |
d9898ee8 | 7709 | |
d9898ee8 | 7710 | |
d9898ee8 | 7711 | |
d9898ee8 | 7712 | |
d9898ee8 | 7713 | |
d9898ee8 | 7714 | |
d9898ee8 | 7715 | |
d9898ee8 | 7716 | |
d9898ee8 | 7717 | |
d9898ee8 | 7718 | |
d9898ee8 | 7719 | |
d9898ee8 | 7720 | |
8d138742 CE |
7721 | # Check whether --enable-libtool-lock was given. |
7722 | if test "${enable_libtool_lock+set}" = set; then | |
7723 | enableval=$enable_libtool_lock; | |
d9898ee8 | 7724 | fi |
7725 | ||
8d138742 | 7726 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
d9898ee8 | 7727 | |
8d138742 CE |
7728 | # Some flags need to be propagated to the compiler or linker for good |
7729 | # libtool support. | |
7730 | case $host in | |
7731 | ia64-*-hpux*) | |
7732 | # Find out which ABI we are using. | |
7733 | echo 'int i;' > conftest.$ac_ext | |
7734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7735 | (eval $ac_compile) 2>&5 | |
7736 | ac_status=$? | |
7737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7738 | (exit $ac_status); }; then | |
7739 | case `/usr/bin/file conftest.$ac_objext` in | |
7740 | *ELF-32*) | |
7741 | HPUX_IA64_MODE="32" | |
7742 | ;; | |
7743 | *ELF-64*) | |
7744 | HPUX_IA64_MODE="64" | |
7745 | ;; | |
7746 | esac | |
7747 | fi | |
7748 | rm -rf conftest* | |
7749 | ;; | |
7750 | *-*-irix6*) | |
7751 | # Find out which ABI we are using. | |
7752 | echo '#line 7752 "configure"' > conftest.$ac_ext | |
7753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7754 | (eval $ac_compile) 2>&5 | |
7755 | ac_status=$? | |
7756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7757 | (exit $ac_status); }; then | |
7758 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7759 | case `/usr/bin/file conftest.$ac_objext` in | |
7760 | *32-bit*) | |
7761 | LD="${LD-ld} -melf32bsmip" | |
7762 | ;; | |
7763 | *N32*) | |
7764 | LD="${LD-ld} -melf32bmipn32" | |
7765 | ;; | |
7766 | *64-bit*) | |
7767 | LD="${LD-ld} -melf64bmip" | |
7768 | ;; | |
7769 | esac | |
7770 | else | |
7771 | case `/usr/bin/file conftest.$ac_objext` in | |
7772 | *32-bit*) | |
7773 | LD="${LD-ld} -32" | |
7774 | ;; | |
7775 | *N32*) | |
7776 | LD="${LD-ld} -n32" | |
7777 | ;; | |
7778 | *64-bit*) | |
7779 | LD="${LD-ld} -64" | |
7780 | ;; | |
7781 | esac | |
7782 | fi | |
7783 | fi | |
7784 | rm -rf conftest* | |
7785 | ;; | |
d9898ee8 | 7786 | |
8d138742 CE |
7787 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7788 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7789 | # Find out which ABI we are using. | |
7790 | echo 'int i;' > conftest.$ac_ext | |
7791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7792 | (eval $ac_compile) 2>&5 | |
7793 | ac_status=$? | |
7794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7795 | (exit $ac_status); }; then | |
7796 | case `/usr/bin/file conftest.o` in | |
7797 | *32-bit*) | |
7798 | case $host in | |
7799 | x86_64-*kfreebsd*-gnu) | |
7800 | LD="${LD-ld} -m elf_i386_fbsd" | |
7801 | ;; | |
7802 | x86_64-*linux*) | |
7803 | LD="${LD-ld} -m elf_i386" | |
7804 | ;; | |
7805 | ppc64-*linux*|powerpc64-*linux*) | |
7806 | LD="${LD-ld} -m elf32ppclinux" | |
7807 | ;; | |
7808 | s390x-*linux*) | |
7809 | LD="${LD-ld} -m elf_s390" | |
7810 | ;; | |
7811 | sparc64-*linux*) | |
7812 | LD="${LD-ld} -m elf32_sparc" | |
7813 | ;; | |
7814 | esac | |
7815 | ;; | |
7816 | *64-bit*) | |
7817 | case $host in | |
7818 | x86_64-*kfreebsd*-gnu) | |
7819 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7820 | ;; | |
7821 | x86_64-*linux*) | |
7822 | LD="${LD-ld} -m elf_x86_64" | |
7823 | ;; | |
7824 | ppc*-*linux*|powerpc*-*linux*) | |
7825 | LD="${LD-ld} -m elf64ppc" | |
7826 | ;; | |
7827 | s390*-*linux*|s390*-*tpf*) | |
7828 | LD="${LD-ld} -m elf64_s390" | |
7829 | ;; | |
7830 | sparc*-*linux*) | |
7831 | LD="${LD-ld} -m elf64_sparc" | |
7832 | ;; | |
7833 | esac | |
7834 | ;; | |
7835 | esac | |
d9898ee8 | 7836 | fi |
8d138742 CE |
7837 | rm -rf conftest* |
7838 | ;; | |
7839 | ||
7840 | *-*-sco3.2v5*) | |
7841 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7842 | SAVE_CFLAGS="$CFLAGS" | |
7843 | CFLAGS="$CFLAGS -belf" | |
7844 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
7845 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7846 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
7847 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7848 | else |
8d138742 CE |
7849 | ac_ext=c |
7850 | ac_cpp='$CPP $CPPFLAGS' | |
7851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7854 | |
8d138742 CE |
7855 | cat >conftest.$ac_ext <<_ACEOF |
7856 | /* confdefs.h. */ | |
7857 | _ACEOF | |
7858 | cat confdefs.h >>conftest.$ac_ext | |
7859 | cat >>conftest.$ac_ext <<_ACEOF | |
7860 | /* end confdefs.h. */ | |
d9898ee8 | 7861 | |
8d138742 CE |
7862 | int |
7863 | main () | |
7864 | { | |
d9898ee8 | 7865 | |
8d138742 CE |
7866 | ; |
7867 | return 0; | |
7868 | } | |
7869 | _ACEOF | |
7870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7871 | if { (ac_try="$ac_link" | |
7872 | case "(($ac_try" in | |
7873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7874 | *) ac_try_echo=$ac_try;; | |
7875 | esac | |
7876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7877 | $as_echo "$ac_try_echo") >&5 | |
7878 | (eval "$ac_link") 2>conftest.er1 | |
7879 | ac_status=$? | |
7880 | grep -v '^ *+' conftest.er1 >conftest.err | |
7881 | rm -f conftest.er1 | |
7882 | cat conftest.err >&5 | |
7883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7884 | (exit $ac_status); } && { | |
7885 | test -z "$ac_c_werror_flag" || | |
7886 | test ! -s conftest.err | |
7887 | } && test -s conftest$ac_exeext && { | |
7888 | test "$cross_compiling" = yes || | |
7889 | $as_test_x conftest$ac_exeext | |
7890 | }; then | |
7891 | lt_cv_cc_needs_belf=yes | |
7892 | else | |
7893 | $as_echo "$as_me: failed program was:" >&5 | |
7894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7895 | |
8d138742 CE |
7896 | lt_cv_cc_needs_belf=no |
7897 | fi | |
d9898ee8 | 7898 | |
8d138742 CE |
7899 | rm -rf conftest.dSYM |
7900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7901 | conftest$ac_exeext conftest.$ac_ext | |
7902 | ac_ext=c | |
7903 | ac_cpp='$CPP $CPPFLAGS' | |
7904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7907 | ||
7908 | fi | |
7909 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
7910 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7911 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7912 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7913 | CFLAGS="$SAVE_CFLAGS" | |
7914 | fi | |
7915 | ;; | |
7916 | sparc*-*solaris*) | |
7917 | # Find out which ABI we are using. | |
7918 | echo 'int i;' > conftest.$ac_ext | |
7919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7920 | (eval $ac_compile) 2>&5 | |
7921 | ac_status=$? | |
7922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7923 | (exit $ac_status); }; then | |
7924 | case `/usr/bin/file conftest.o` in | |
7925 | *64-bit*) | |
7926 | case $lt_cv_prog_gnu_ld in | |
7927 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7928 | *) | |
7929 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7930 | LD="${LD-ld} -64" | |
7931 | fi | |
7932 | ;; | |
7933 | esac | |
7934 | ;; | |
d9898ee8 | 7935 | esac |
8d138742 CE |
7936 | fi |
7937 | rm -rf conftest* | |
7938 | ;; | |
7939 | esac | |
d9898ee8 | 7940 | |
8d138742 | 7941 | need_locks="$enable_libtool_lock" |
d9898ee8 | 7942 | |
d9898ee8 | 7943 | |
8d138742 CE |
7944 | case $host_os in |
7945 | rhapsody* | darwin*) | |
7946 | if test -n "$ac_tool_prefix"; then | |
7947 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7948 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7949 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7950 | $as_echo_n "checking for $ac_word... " >&6; } | |
7951 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
7952 | $as_echo_n "(cached) " >&6 | |
7953 | else | |
7954 | if test -n "$DSYMUTIL"; then | |
7955 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7956 | else | |
7957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7958 | for as_dir in $PATH | |
7959 | do | |
7960 | IFS=$as_save_IFS | |
7961 | test -z "$as_dir" && as_dir=. | |
7962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7964 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7965 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7966 | break 2 | |
7967 | fi | |
7968 | done | |
7969 | done | |
7970 | IFS=$as_save_IFS | |
d9898ee8 | 7971 | |
8d138742 CE |
7972 | fi |
7973 | fi | |
7974 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7975 | if test -n "$DSYMUTIL"; then | |
7976 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
7977 | $as_echo "$DSYMUTIL" >&6; } | |
7978 | else | |
7979 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7980 | $as_echo "no" >&6; } | |
7981 | fi | |
d9898ee8 | 7982 | |
d9898ee8 | 7983 | |
8d138742 CE |
7984 | fi |
7985 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7986 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7987 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7988 | set dummy dsymutil; ac_word=$2 | |
7989 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7990 | $as_echo_n "checking for $ac_word... " >&6; } | |
7991 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
7992 | $as_echo_n "(cached) " >&6 | |
7993 | else | |
7994 | if test -n "$ac_ct_DSYMUTIL"; then | |
7995 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7996 | else | |
7997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7998 | for as_dir in $PATH | |
7999 | do | |
8000 | IFS=$as_save_IFS | |
8001 | test -z "$as_dir" && as_dir=. | |
8002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8004 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8005 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8006 | break 2 | |
8007 | fi | |
8008 | done | |
8009 | done | |
8010 | IFS=$as_save_IFS | |
d9898ee8 | 8011 | |
8d138742 CE |
8012 | fi |
8013 | fi | |
8014 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8015 | if test -n "$ac_ct_DSYMUTIL"; then | |
8016 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
8017 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8018 | else | |
8019 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8020 | $as_echo "no" >&6; } | |
8021 | fi | |
d9898ee8 | 8022 | |
8d138742 CE |
8023 | if test "x$ac_ct_DSYMUTIL" = x; then |
8024 | DSYMUTIL=":" | |
8025 | else | |
8026 | case $cross_compiling:$ac_tool_warned in | |
8027 | yes:) | |
8028 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8029 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8030 | ac_tool_warned=yes ;; | |
8031 | esac | |
8032 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8033 | fi | |
8034 | else | |
8035 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8036 | fi | |
d9898ee8 | 8037 | |
8d138742 CE |
8038 | if test -n "$ac_tool_prefix"; then |
8039 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8040 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8041 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8042 | $as_echo_n "checking for $ac_word... " >&6; } | |
8043 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
8044 | $as_echo_n "(cached) " >&6 | |
8045 | else | |
8046 | if test -n "$NMEDIT"; then | |
8047 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8048 | else | |
8049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8050 | for as_dir in $PATH | |
8051 | do | |
8052 | IFS=$as_save_IFS | |
8053 | test -z "$as_dir" && as_dir=. | |
8054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8056 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8057 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8058 | break 2 | |
8059 | fi | |
8060 | done | |
8061 | done | |
8062 | IFS=$as_save_IFS | |
d9898ee8 | 8063 | |
8d138742 CE |
8064 | fi |
8065 | fi | |
8066 | NMEDIT=$ac_cv_prog_NMEDIT | |
8067 | if test -n "$NMEDIT"; then | |
8068 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
8069 | $as_echo "$NMEDIT" >&6; } | |
8070 | else | |
8071 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8072 | $as_echo "no" >&6; } | |
8073 | fi | |
d9898ee8 | 8074 | |
d9898ee8 | 8075 | |
8d138742 CE |
8076 | fi |
8077 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8078 | ac_ct_NMEDIT=$NMEDIT | |
8079 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8080 | set dummy nmedit; ac_word=$2 | |
8081 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8082 | $as_echo_n "checking for $ac_word... " >&6; } | |
8083 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
8084 | $as_echo_n "(cached) " >&6 | |
8085 | else | |
8086 | if test -n "$ac_ct_NMEDIT"; then | |
8087 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8088 | else | |
8089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8090 | for as_dir in $PATH | |
8091 | do | |
8092 | IFS=$as_save_IFS | |
8093 | test -z "$as_dir" && as_dir=. | |
8094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8096 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8097 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8098 | break 2 | |
8099 | fi | |
8100 | done | |
8101 | done | |
8102 | IFS=$as_save_IFS | |
d9898ee8 | 8103 | |
8d138742 CE |
8104 | fi |
8105 | fi | |
8106 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8107 | if test -n "$ac_ct_NMEDIT"; then | |
8108 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
8109 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
8110 | else | |
8111 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8112 | $as_echo "no" >&6; } | |
8113 | fi | |
d9898ee8 | 8114 | |
8d138742 CE |
8115 | if test "x$ac_ct_NMEDIT" = x; then |
8116 | NMEDIT=":" | |
8117 | else | |
8118 | case $cross_compiling:$ac_tool_warned in | |
8119 | yes:) | |
8120 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8121 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8122 | ac_tool_warned=yes ;; | |
8123 | esac | |
8124 | NMEDIT=$ac_ct_NMEDIT | |
8125 | fi | |
8126 | else | |
8127 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8128 | fi | |
d9898ee8 | 8129 | |
8d138742 CE |
8130 | if test -n "$ac_tool_prefix"; then |
8131 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8132 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8133 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8134 | $as_echo_n "checking for $ac_word... " >&6; } | |
8135 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
8136 | $as_echo_n "(cached) " >&6 | |
8137 | else | |
8138 | if test -n "$LIPO"; then | |
8139 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8140 | else | |
8141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8142 | for as_dir in $PATH | |
8143 | do | |
8144 | IFS=$as_save_IFS | |
8145 | test -z "$as_dir" && as_dir=. | |
8146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8148 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8149 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8150 | break 2 | |
8151 | fi | |
8152 | done | |
8153 | done | |
8154 | IFS=$as_save_IFS | |
d9898ee8 | 8155 | |
8d138742 CE |
8156 | fi |
8157 | fi | |
8158 | LIPO=$ac_cv_prog_LIPO | |
8159 | if test -n "$LIPO"; then | |
8160 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
8161 | $as_echo "$LIPO" >&6; } | |
8162 | else | |
8163 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8164 | $as_echo "no" >&6; } | |
8165 | fi | |
d9898ee8 | 8166 | |
d9898ee8 | 8167 | |
8d138742 CE |
8168 | fi |
8169 | if test -z "$ac_cv_prog_LIPO"; then | |
8170 | ac_ct_LIPO=$LIPO | |
8171 | # Extract the first word of "lipo", so it can be a program name with args. | |
8172 | set dummy lipo; ac_word=$2 | |
8173 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8174 | $as_echo_n "checking for $ac_word... " >&6; } | |
8175 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
8176 | $as_echo_n "(cached) " >&6 | |
8177 | else | |
8178 | if test -n "$ac_ct_LIPO"; then | |
8179 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8180 | else | |
8181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8182 | for as_dir in $PATH | |
8183 | do | |
8184 | IFS=$as_save_IFS | |
8185 | test -z "$as_dir" && as_dir=. | |
8186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8188 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8189 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8190 | break 2 | |
8191 | fi | |
8192 | done | |
8193 | done | |
8194 | IFS=$as_save_IFS | |
d9898ee8 | 8195 | |
8d138742 CE |
8196 | fi |
8197 | fi | |
8198 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8199 | if test -n "$ac_ct_LIPO"; then | |
8200 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
8201 | $as_echo "$ac_ct_LIPO" >&6; } | |
8202 | else | |
8203 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8204 | $as_echo "no" >&6; } | |
8205 | fi | |
d9898ee8 | 8206 | |
8d138742 CE |
8207 | if test "x$ac_ct_LIPO" = x; then |
8208 | LIPO=":" | |
d9898ee8 | 8209 | else |
8d138742 CE |
8210 | case $cross_compiling:$ac_tool_warned in |
8211 | yes:) | |
8212 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8213 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8214 | ac_tool_warned=yes ;; | |
8215 | esac | |
8216 | LIPO=$ac_ct_LIPO | |
8217 | fi | |
8218 | else | |
8219 | LIPO="$ac_cv_prog_LIPO" | |
8220 | fi | |
d9898ee8 | 8221 | |
8d138742 CE |
8222 | if test -n "$ac_tool_prefix"; then |
8223 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8224 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8225 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8226 | $as_echo_n "checking for $ac_word... " >&6; } | |
8227 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
8228 | $as_echo_n "(cached) " >&6 | |
8229 | else | |
8230 | if test -n "$OTOOL"; then | |
8231 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8232 | else | |
8233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8234 | for as_dir in $PATH | |
8235 | do | |
8236 | IFS=$as_save_IFS | |
8237 | test -z "$as_dir" && as_dir=. | |
8238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8240 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8241 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8242 | break 2 | |
8243 | fi | |
8244 | done | |
8245 | done | |
8246 | IFS=$as_save_IFS | |
d9898ee8 | 8247 | |
8d138742 CE |
8248 | fi |
8249 | fi | |
8250 | OTOOL=$ac_cv_prog_OTOOL | |
8251 | if test -n "$OTOOL"; then | |
8252 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
8253 | $as_echo "$OTOOL" >&6; } | |
8254 | else | |
8255 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8256 | $as_echo "no" >&6; } | |
8257 | fi | |
d9898ee8 | 8258 | |
d9898ee8 | 8259 | |
8d138742 CE |
8260 | fi |
8261 | if test -z "$ac_cv_prog_OTOOL"; then | |
8262 | ac_ct_OTOOL=$OTOOL | |
8263 | # Extract the first word of "otool", so it can be a program name with args. | |
8264 | set dummy otool; ac_word=$2 | |
8265 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8266 | $as_echo_n "checking for $ac_word... " >&6; } | |
8267 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
8268 | $as_echo_n "(cached) " >&6 | |
8269 | else | |
8270 | if test -n "$ac_ct_OTOOL"; then | |
8271 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8272 | else | |
8273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8274 | for as_dir in $PATH | |
8275 | do | |
8276 | IFS=$as_save_IFS | |
8277 | test -z "$as_dir" && as_dir=. | |
8278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8280 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8281 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8282 | break 2 | |
8283 | fi | |
8284 | done | |
8285 | done | |
8286 | IFS=$as_save_IFS | |
d9898ee8 | 8287 | |
8d138742 CE |
8288 | fi |
8289 | fi | |
8290 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8291 | if test -n "$ac_ct_OTOOL"; then | |
8292 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
8293 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8294 | else | |
8295 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8296 | $as_echo "no" >&6; } | |
8297 | fi | |
8298 | ||
8299 | if test "x$ac_ct_OTOOL" = x; then | |
8300 | OTOOL=":" | |
8301 | else | |
8302 | case $cross_compiling:$ac_tool_warned in | |
8303 | yes:) | |
8304 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8305 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8306 | ac_tool_warned=yes ;; | |
8307 | esac | |
8308 | OTOOL=$ac_ct_OTOOL | |
8309 | fi | |
8310 | else | |
8311 | OTOOL="$ac_cv_prog_OTOOL" | |
8312 | fi | |
8313 | ||
8314 | if test -n "$ac_tool_prefix"; then | |
8315 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8316 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8317 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8318 | $as_echo_n "checking for $ac_word... " >&6; } | |
8319 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
8320 | $as_echo_n "(cached) " >&6 | |
8321 | else | |
8322 | if test -n "$OTOOL64"; then | |
8323 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8324 | else | |
8325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8326 | for as_dir in $PATH | |
8327 | do | |
8328 | IFS=$as_save_IFS | |
8329 | test -z "$as_dir" && as_dir=. | |
8330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8332 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8333 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8334 | break 2 | |
8335 | fi | |
8336 | done | |
8337 | done | |
8338 | IFS=$as_save_IFS | |
8339 | ||
8340 | fi | |
8341 | fi | |
8342 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8343 | if test -n "$OTOOL64"; then | |
8344 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
8345 | $as_echo "$OTOOL64" >&6; } | |
8346 | else | |
8347 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8348 | $as_echo "no" >&6; } | |
8349 | fi | |
8350 | ||
8351 | ||
8352 | fi | |
8353 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8354 | ac_ct_OTOOL64=$OTOOL64 | |
8355 | # Extract the first word of "otool64", so it can be a program name with args. | |
8356 | set dummy otool64; ac_word=$2 | |
8357 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8358 | $as_echo_n "checking for $ac_word... " >&6; } | |
8359 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
8360 | $as_echo_n "(cached) " >&6 | |
8361 | else | |
8362 | if test -n "$ac_ct_OTOOL64"; then | |
8363 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8364 | else | |
8365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8366 | for as_dir in $PATH | |
8367 | do | |
8368 | IFS=$as_save_IFS | |
8369 | test -z "$as_dir" && as_dir=. | |
8370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8372 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8373 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8374 | break 2 | |
8375 | fi | |
8376 | done | |
8377 | done | |
8378 | IFS=$as_save_IFS | |
8379 | ||
8380 | fi | |
8381 | fi | |
8382 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8383 | if test -n "$ac_ct_OTOOL64"; then | |
8384 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
8385 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8386 | else | |
8387 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8388 | $as_echo "no" >&6; } | |
8389 | fi | |
8390 | ||
8391 | if test "x$ac_ct_OTOOL64" = x; then | |
8392 | OTOOL64=":" | |
8393 | else | |
8394 | case $cross_compiling:$ac_tool_warned in | |
8395 | yes:) | |
8396 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8398 | ac_tool_warned=yes ;; | |
8399 | esac | |
8400 | OTOOL64=$ac_ct_OTOOL64 | |
8401 | fi | |
8402 | else | |
8403 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8404 | fi | |
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
8433 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8434 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8435 | $as_echo_n "(cached) " >&6 | |
8436 | else | |
8437 | lt_cv_apple_cc_single_mod=no | |
8438 | if test -z "${LT_MULTI_MODULE}"; then | |
8439 | # By default we will add the -single_module flag. You can override | |
8440 | # by either setting the environment variable LT_MULTI_MODULE | |
8441 | # non-empty at configure time, or by adding -multi_module to the | |
8442 | # link flags. | |
8443 | rm -rf libconftest.dylib* | |
8444 | echo "int foo(void){return 1;}" > conftest.c | |
8445 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8446 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8447 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8448 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8449 | _lt_result=$? | |
8450 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8451 | lt_cv_apple_cc_single_mod=yes | |
d9898ee8 | 8452 | else |
8d138742 | 8453 | cat conftest.err >&5 |
d9898ee8 | 8454 | fi |
8d138742 CE |
8455 | rm -rf libconftest.dylib* |
8456 | rm -f conftest.* | |
d9898ee8 | 8457 | fi |
8d138742 CE |
8458 | fi |
8459 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
8460 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8461 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
8462 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8463 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
8464 | $as_echo_n "(cached) " >&6 | |
8465 | else | |
8466 | lt_cv_ld_exported_symbols_list=no | |
8467 | save_LDFLAGS=$LDFLAGS | |
8468 | echo "_main" > conftest.sym | |
8469 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8470 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 8471 | /* confdefs.h. */ |
8472 | _ACEOF | |
8473 | cat confdefs.h >>conftest.$ac_ext | |
8474 | cat >>conftest.$ac_ext <<_ACEOF | |
8475 | /* end confdefs.h. */ | |
8476 | ||
8477 | int | |
8478 | main () | |
8479 | { | |
8480 | ||
8481 | ; | |
8482 | return 0; | |
8483 | } | |
8484 | _ACEOF | |
8485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 8486 | if { (ac_try="$ac_link" |
8487 | case "(($ac_try" in | |
8488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8489 | *) ac_try_echo=$ac_try;; | |
8490 | esac | |
8d138742 CE |
8491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8492 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 8493 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 8494 | ac_status=$? |
8495 | grep -v '^ *+' conftest.er1 >conftest.err | |
8496 | rm -f conftest.er1 | |
8497 | cat conftest.err >&5 | |
8d138742 | 8498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 8499 | (exit $ac_status); } && { |
8500 | test -z "$ac_c_werror_flag" || | |
8501 | test ! -s conftest.err | |
8d138742 CE |
8502 | } && test -s conftest$ac_exeext && { |
8503 | test "$cross_compiling" = yes || | |
8504 | $as_test_x conftest$ac_exeext | |
8505 | }; then | |
8506 | lt_cv_ld_exported_symbols_list=yes | |
d9898ee8 | 8507 | else |
8d138742 | 8508 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 8509 | sed 's/^/| /' conftest.$ac_ext >&5 |
8510 | ||
8d138742 | 8511 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 8512 | fi |
dd184caf | 8513 | |
8d138742 | 8514 | rm -rf conftest.dSYM |
dd184caf | 8515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 8516 | conftest$ac_exeext conftest.$ac_ext |
8d138742 | 8517 | LDFLAGS="$save_LDFLAGS" |
d9898ee8 | 8518 | |
8d138742 CE |
8519 | fi |
8520 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8521 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8522 | case $host_os in | |
8523 | rhapsody* | darwin1.[012]) | |
8524 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8525 | darwin1.*) | |
8526 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8527 | darwin*) # darwin 5.x on | |
8528 | # if running on 10.5 or later, the deployment target defaults | |
8529 | # to the OS version, if on x86, and 10.4, the deployment | |
8530 | # target defaults to 10.4. Don't you love it? | |
8531 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8532 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8533 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8534 | 10.[012]*) | |
8535 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8536 | 10.*) | |
8537 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8538 | esac | |
8539 | ;; | |
8540 | esac | |
8541 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8542 | _lt_dar_single_mod='$single_module' | |
8543 | fi | |
8544 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8545 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8546 | else | |
8547 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8548 | fi | |
8549 | if test "$DSYMUTIL" != ":"; then | |
8550 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8551 | else | |
8552 | _lt_dsymutil= | |
8553 | fi | |
8554 | ;; | |
8555 | esac | |
8556 | ||
8557 | ||
8558 | for ac_header in dlfcn.h | |
8559 | do | |
8560 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8561 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8562 | $as_echo_n "checking for $ac_header... " >&6; } | |
8563 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8564 | $as_echo_n "(cached) " >&6 | |
8565 | else | |
8566 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 8567 | /* confdefs.h. */ |
8568 | _ACEOF | |
8569 | cat confdefs.h >>conftest.$ac_ext | |
8570 | cat >>conftest.$ac_ext <<_ACEOF | |
8571 | /* end confdefs.h. */ | |
8d138742 | 8572 | $ac_includes_default |
d9898ee8 | 8573 | |
8d138742 | 8574 | #include <$ac_header> |
d9898ee8 | 8575 | _ACEOF |
8d138742 CE |
8576 | rm -f conftest.$ac_objext |
8577 | if { (ac_try="$ac_compile" | |
dd184caf | 8578 | case "(($ac_try" in |
8579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8580 | *) ac_try_echo=$ac_try;; | |
8581 | esac | |
8d138742 CE |
8582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8583 | $as_echo "$ac_try_echo") >&5 | |
8584 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 8585 | ac_status=$? |
8586 | grep -v '^ *+' conftest.er1 >conftest.err | |
8587 | rm -f conftest.er1 | |
8588 | cat conftest.err >&5 | |
8d138742 | 8589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 8590 | (exit $ac_status); } && { |
8591 | test -z "$ac_c_werror_flag" || | |
8592 | test ! -s conftest.err | |
8d138742 CE |
8593 | } && test -s conftest.$ac_objext; then |
8594 | eval "$as_ac_Header=yes" | |
d9898ee8 | 8595 | else |
8d138742 | 8596 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
8598 | ||
8d138742 CE |
8599 | eval "$as_ac_Header=no" |
8600 | fi | |
dd184caf | 8601 | |
8d138742 | 8602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 8603 | fi |
8d138742 CE |
8604 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8605 | $as_echo "$as_val"'` | |
8606 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8607 | $as_echo "$ac_res" >&6; } | |
8608 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8609 | $as_echo "$as_val"'` | |
8610 | if test "x$as_val" = x""yes; then | |
8611 | cat >>confdefs.h <<_ACEOF | |
8612 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8613 | _ACEOF | |
dd184caf | 8614 | |
8d138742 | 8615 | fi |
d9898ee8 | 8616 | |
8d138742 | 8617 | done |
d9898ee8 | 8618 | |
d9898ee8 | 8619 | |
d9898ee8 | 8620 | |
8d138742 CE |
8621 | ac_ext=cpp |
8622 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8623 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8624 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8625 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8626 | if test -z "$CXX"; then | |
8627 | if test -n "$CCC"; then | |
8628 | CXX=$CCC | |
8629 | else | |
8630 | if test -n "$ac_tool_prefix"; then | |
8631 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
8632 | do | |
8633 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
8634 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8635 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8636 | $as_echo_n "checking for $ac_word... " >&6; } | |
8637 | if test "${ac_cv_prog_CXX+set}" = set; then | |
8638 | $as_echo_n "(cached) " >&6 | |
8639 | else | |
8640 | if test -n "$CXX"; then | |
8641 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8642 | else | |
8643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8644 | for as_dir in $PATH | |
8645 | do | |
8646 | IFS=$as_save_IFS | |
8647 | test -z "$as_dir" && as_dir=. | |
8648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8650 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
8651 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8652 | break 2 | |
8653 | fi | |
8654 | done | |
8655 | done | |
8656 | IFS=$as_save_IFS | |
d9898ee8 | 8657 | |
8d138742 CE |
8658 | fi |
8659 | fi | |
8660 | CXX=$ac_cv_prog_CXX | |
8661 | if test -n "$CXX"; then | |
8662 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 | |
8663 | $as_echo "$CXX" >&6; } | |
8664 | else | |
8665 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8666 | $as_echo "no" >&6; } | |
8667 | fi | |
d9898ee8 | 8668 | |
d9898ee8 | 8669 | |
8d138742 CE |
8670 | test -n "$CXX" && break |
8671 | done | |
8672 | fi | |
8673 | if test -z "$CXX"; then | |
8674 | ac_ct_CXX=$CXX | |
8675 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
8676 | do | |
8677 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8678 | set dummy $ac_prog; ac_word=$2 | |
8679 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
8681 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
8682 | $as_echo_n "(cached) " >&6 | |
8683 | else | |
8684 | if test -n "$ac_ct_CXX"; then | |
8685 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
8686 | else | |
8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
8692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8694 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
8695 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8696 | break 2 | |
8697 | fi | |
8698 | done | |
8699 | done | |
8700 | IFS=$as_save_IFS | |
d9898ee8 | 8701 | |
8d138742 CE |
8702 | fi |
8703 | fi | |
8704 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
8705 | if test -n "$ac_ct_CXX"; then | |
8706 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
8707 | $as_echo "$ac_ct_CXX" >&6; } | |
8708 | else | |
8709 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8710 | $as_echo "no" >&6; } | |
8711 | fi | |
d9898ee8 | 8712 | |
d9898ee8 | 8713 | |
8d138742 CE |
8714 | test -n "$ac_ct_CXX" && break |
8715 | done | |
d9898ee8 | 8716 | |
8d138742 CE |
8717 | if test "x$ac_ct_CXX" = x; then |
8718 | CXX="g++" | |
8719 | else | |
8720 | case $cross_compiling:$ac_tool_warned in | |
8721 | yes:) | |
8722 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8723 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8724 | ac_tool_warned=yes ;; | |
8725 | esac | |
8726 | CXX=$ac_ct_CXX | |
8727 | fi | |
8728 | fi | |
d9898ee8 | 8729 | |
8d138742 CE |
8730 | fi |
8731 | fi | |
8732 | # Provide some information about the compiler. | |
8733 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
8734 | set X $ac_compile | |
8735 | ac_compiler=$2 | |
8736 | { (ac_try="$ac_compiler --version >&5" | |
8737 | case "(($ac_try" in | |
8738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8739 | *) ac_try_echo=$ac_try;; | |
8740 | esac | |
8741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8742 | $as_echo "$ac_try_echo") >&5 | |
8743 | (eval "$ac_compiler --version >&5") 2>&5 | |
8744 | ac_status=$? | |
8745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8746 | (exit $ac_status); } | |
8747 | { (ac_try="$ac_compiler -v >&5" | |
8748 | case "(($ac_try" in | |
8749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8750 | *) ac_try_echo=$ac_try;; | |
8751 | esac | |
8752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8753 | $as_echo "$ac_try_echo") >&5 | |
8754 | (eval "$ac_compiler -v >&5") 2>&5 | |
8755 | ac_status=$? | |
8756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8757 | (exit $ac_status); } | |
8758 | { (ac_try="$ac_compiler -V >&5" | |
8759 | case "(($ac_try" in | |
8760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8761 | *) ac_try_echo=$ac_try;; | |
8762 | esac | |
8763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8764 | $as_echo "$ac_try_echo") >&5 | |
8765 | (eval "$ac_compiler -V >&5") 2>&5 | |
8766 | ac_status=$? | |
8767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8768 | (exit $ac_status); } | |
d9898ee8 | 8769 | |
8d138742 CE |
8770 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
8771 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
8772 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
8773 | $as_echo_n "(cached) " >&6 | |
8774 | else | |
8775 | cat >conftest.$ac_ext <<_ACEOF | |
8776 | /* confdefs.h. */ | |
8777 | _ACEOF | |
8778 | cat confdefs.h >>conftest.$ac_ext | |
8779 | cat >>conftest.$ac_ext <<_ACEOF | |
8780 | /* end confdefs.h. */ | |
d9898ee8 | 8781 | |
8d138742 CE |
8782 | int |
8783 | main () | |
8784 | { | |
8785 | #ifndef __GNUC__ | |
8786 | choke me | |
8787 | #endif | |
d9898ee8 | 8788 | |
8d138742 CE |
8789 | ; |
8790 | return 0; | |
8791 | } | |
8792 | _ACEOF | |
8793 | rm -f conftest.$ac_objext | |
8794 | if { (ac_try="$ac_compile" | |
8795 | case "(($ac_try" in | |
8796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8797 | *) ac_try_echo=$ac_try;; | |
8798 | esac | |
8799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8800 | $as_echo "$ac_try_echo") >&5 | |
8801 | (eval "$ac_compile") 2>conftest.er1 | |
8802 | ac_status=$? | |
8803 | grep -v '^ *+' conftest.er1 >conftest.err | |
8804 | rm -f conftest.er1 | |
8805 | cat conftest.err >&5 | |
8806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8807 | (exit $ac_status); } && { | |
8808 | test -z "$ac_cxx_werror_flag" || | |
8809 | test ! -s conftest.err | |
8810 | } && test -s conftest.$ac_objext; then | |
8811 | ac_compiler_gnu=yes | |
8812 | else | |
8813 | $as_echo "$as_me: failed program was:" >&5 | |
8814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8815 | |
8d138742 CE |
8816 | ac_compiler_gnu=no |
8817 | fi | |
d9898ee8 | 8818 | |
8d138742 CE |
8819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8820 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
d9898ee8 | 8821 | |
8d138742 CE |
8822 | fi |
8823 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
8824 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
8825 | if test $ac_compiler_gnu = yes; then | |
8826 | GXX=yes | |
8827 | else | |
8828 | GXX= | |
8829 | fi | |
8830 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
8831 | ac_save_CXXFLAGS=$CXXFLAGS | |
8832 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
8833 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
8834 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
8835 | $as_echo_n "(cached) " >&6 | |
8836 | else | |
8837 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
8838 | ac_cxx_werror_flag=yes | |
8839 | ac_cv_prog_cxx_g=no | |
8840 | CXXFLAGS="-g" | |
8841 | cat >conftest.$ac_ext <<_ACEOF | |
8842 | /* confdefs.h. */ | |
8843 | _ACEOF | |
8844 | cat confdefs.h >>conftest.$ac_ext | |
8845 | cat >>conftest.$ac_ext <<_ACEOF | |
8846 | /* end confdefs.h. */ | |
d9898ee8 | 8847 | |
8d138742 CE |
8848 | int |
8849 | main () | |
8850 | { | |
d9898ee8 | 8851 | |
8d138742 CE |
8852 | ; |
8853 | return 0; | |
8854 | } | |
8855 | _ACEOF | |
8856 | rm -f conftest.$ac_objext | |
8857 | if { (ac_try="$ac_compile" | |
8858 | case "(($ac_try" in | |
8859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8860 | *) ac_try_echo=$ac_try;; | |
8861 | esac | |
8862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8863 | $as_echo "$ac_try_echo") >&5 | |
8864 | (eval "$ac_compile") 2>conftest.er1 | |
8865 | ac_status=$? | |
8866 | grep -v '^ *+' conftest.er1 >conftest.err | |
8867 | rm -f conftest.er1 | |
8868 | cat conftest.err >&5 | |
8869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8870 | (exit $ac_status); } && { | |
8871 | test -z "$ac_cxx_werror_flag" || | |
8872 | test ! -s conftest.err | |
8873 | } && test -s conftest.$ac_objext; then | |
8874 | ac_cv_prog_cxx_g=yes | |
8875 | else | |
8876 | $as_echo "$as_me: failed program was:" >&5 | |
8877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8878 | |
8d138742 CE |
8879 | CXXFLAGS="" |
8880 | cat >conftest.$ac_ext <<_ACEOF | |
8881 | /* confdefs.h. */ | |
8882 | _ACEOF | |
8883 | cat confdefs.h >>conftest.$ac_ext | |
8884 | cat >>conftest.$ac_ext <<_ACEOF | |
8885 | /* end confdefs.h. */ | |
d9898ee8 | 8886 | |
8d138742 CE |
8887 | int |
8888 | main () | |
8889 | { | |
d9898ee8 | 8890 | |
8d138742 CE |
8891 | ; |
8892 | return 0; | |
8893 | } | |
8894 | _ACEOF | |
8895 | rm -f conftest.$ac_objext | |
8896 | if { (ac_try="$ac_compile" | |
8897 | case "(($ac_try" in | |
8898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8899 | *) ac_try_echo=$ac_try;; | |
8900 | esac | |
8901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8902 | $as_echo "$ac_try_echo") >&5 | |
8903 | (eval "$ac_compile") 2>conftest.er1 | |
8904 | ac_status=$? | |
8905 | grep -v '^ *+' conftest.er1 >conftest.err | |
8906 | rm -f conftest.er1 | |
8907 | cat conftest.err >&5 | |
8908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8909 | (exit $ac_status); } && { | |
8910 | test -z "$ac_cxx_werror_flag" || | |
8911 | test ! -s conftest.err | |
8912 | } && test -s conftest.$ac_objext; then | |
8913 | : | |
8914 | else | |
8915 | $as_echo "$as_me: failed program was:" >&5 | |
8916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8917 | |
8d138742 CE |
8918 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
8919 | CXXFLAGS="-g" | |
8920 | cat >conftest.$ac_ext <<_ACEOF | |
8921 | /* confdefs.h. */ | |
8922 | _ACEOF | |
8923 | cat confdefs.h >>conftest.$ac_ext | |
8924 | cat >>conftest.$ac_ext <<_ACEOF | |
8925 | /* end confdefs.h. */ | |
d9898ee8 | 8926 | |
8d138742 CE |
8927 | int |
8928 | main () | |
8929 | { | |
d9898ee8 | 8930 | |
8d138742 CE |
8931 | ; |
8932 | return 0; | |
8933 | } | |
8934 | _ACEOF | |
8935 | rm -f conftest.$ac_objext | |
8936 | if { (ac_try="$ac_compile" | |
8937 | case "(($ac_try" in | |
8938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8939 | *) ac_try_echo=$ac_try;; | |
8940 | esac | |
8941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8942 | $as_echo "$ac_try_echo") >&5 | |
8943 | (eval "$ac_compile") 2>conftest.er1 | |
8944 | ac_status=$? | |
8945 | grep -v '^ *+' conftest.er1 >conftest.err | |
8946 | rm -f conftest.er1 | |
8947 | cat conftest.err >&5 | |
8948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8949 | (exit $ac_status); } && { | |
8950 | test -z "$ac_cxx_werror_flag" || | |
8951 | test ! -s conftest.err | |
8952 | } && test -s conftest.$ac_objext; then | |
8953 | ac_cv_prog_cxx_g=yes | |
8954 | else | |
8955 | $as_echo "$as_me: failed program was:" >&5 | |
8956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8957 | |
d9898ee8 | 8958 | |
8d138742 | 8959 | fi |
d9898ee8 | 8960 | |
8d138742 CE |
8961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8962 | fi | |
d9898ee8 | 8963 | |
8d138742 CE |
8964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8965 | fi | |
d9898ee8 | 8966 | |
8d138742 CE |
8967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8968 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
8969 | fi | |
8970 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
8971 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
8972 | if test "$ac_test_CXXFLAGS" = set; then | |
8973 | CXXFLAGS=$ac_save_CXXFLAGS | |
8974 | elif test $ac_cv_prog_cxx_g = yes; then | |
8975 | if test "$GXX" = yes; then | |
8976 | CXXFLAGS="-g -O2" | |
8977 | else | |
8978 | CXXFLAGS="-g" | |
8979 | fi | |
8980 | else | |
8981 | if test "$GXX" = yes; then | |
8982 | CXXFLAGS="-O2" | |
8983 | else | |
8984 | CXXFLAGS= | |
8985 | fi | |
8986 | fi | |
8987 | ac_ext=c | |
8988 | ac_cpp='$CPP $CPPFLAGS' | |
8989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8992 | |
8d138742 | 8993 | depcc="$CXX" am_compiler_list= |
d9898ee8 | 8994 | |
8d138742 CE |
8995 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
8996 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
8997 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
8998 | $as_echo_n "(cached) " >&6 | |
8999 | else | |
9000 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
9001 | # We make a subdir and do the tests there. Otherwise we can end up | |
9002 | # making bogus files that we don't know about and never remove. For | |
9003 | # instance it was reported that on HP-UX the gcc test will end up | |
9004 | # making a dummy file named `D' -- because `-MD' means `put the output | |
9005 | # in D'. | |
9006 | mkdir conftest.dir | |
9007 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
9008 | # using a relative directory. | |
9009 | cp "$am_depcomp" conftest.dir | |
9010 | cd conftest.dir | |
9011 | # We will build objects and dependencies in a subdirectory because | |
9012 | # it helps to detect inapplicable dependency modes. For instance | |
9013 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
9014 | # side effect of compilation, but ICC will put the dependencies in | |
9015 | # the current directory while Tru64 will put them in the object | |
9016 | # directory. | |
9017 | mkdir sub | |
d9898ee8 | 9018 | |
8d138742 CE |
9019 | am_cv_CXX_dependencies_compiler_type=none |
9020 | if test "$am_compiler_list" = ""; then | |
9021 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
9022 | fi | |
9023 | am__universal=false | |
9024 | case " $depcc " in #( | |
9025 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
9026 | esac | |
d9898ee8 | 9027 | |
8d138742 CE |
9028 | for depmode in $am_compiler_list; do |
9029 | # Setup a source with many dependencies, because some compilers | |
9030 | # like to wrap large dependency lists on column 80 (with \), and | |
9031 | # we should not choose a depcomp mode which is confused by this. | |
9032 | # | |
9033 | # We need to recreate these files for each test, as the compiler may | |
9034 | # overwrite some of them when testing with obscure command lines. | |
9035 | # This happens at least with the AIX C compiler. | |
9036 | : > sub/conftest.c | |
9037 | for i in 1 2 3 4 5 6; do | |
9038 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
9039 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
9040 | # Solaris 8's {/usr,}/bin/sh. | |
9041 | touch sub/conftst$i.h | |
9042 | done | |
9043 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9044 | ||
9045 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
9046 | # mode. It turns out that the SunPro C++ compiler does not properly | |
9047 | # handle `-M -o', and we need to detect this. Also, some Intel | |
9048 | # versions had trouble with output in subdirs | |
9049 | am__obj=sub/conftest.${OBJEXT-o} | |
9050 | am__minus_obj="-o $am__obj" | |
9051 | case $depmode in | |
9052 | gcc) | |
9053 | # This depmode causes a compiler race in universal mode. | |
9054 | test "$am__universal" = false || continue | |
9055 | ;; | |
9056 | nosideeffect) | |
9057 | # after this tag, mechanisms are not by side-effect, so they'll | |
9058 | # only be used when explicitly requested | |
9059 | if test "x$enable_dependency_tracking" = xyes; then | |
9060 | continue | |
d9898ee8 | 9061 | else |
8d138742 | 9062 | break |
d9898ee8 | 9063 | fi |
9064 | ;; | |
8d138742 CE |
9065 | msvisualcpp | msvcmsys) |
9066 | # This compiler won't grok `-c -o', but also, the minuso test has | |
9067 | # not run yet. These depmodes are late enough in the game, and | |
9068 | # so weak that their functioning should not be impacted. | |
9069 | am__obj=conftest.${OBJEXT-o} | |
9070 | am__minus_obj= | |
d9898ee8 | 9071 | ;; |
8d138742 | 9072 | none) break ;; |
d9898ee8 | 9073 | esac |
8d138742 CE |
9074 | if depmode=$depmode \ |
9075 | source=sub/conftest.c object=$am__obj \ | |
9076 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
9077 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
9078 | >/dev/null 2>conftest.err && | |
9079 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
9080 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
9081 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
9082 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
9083 | # icc doesn't choke on unknown options, it will just issue warnings | |
9084 | # or remarks (even with -Werror). So we grep stderr for any message | |
9085 | # that says an option was ignored or not supported. | |
9086 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
9087 | # icc: Command line warning: ignoring option '-M'; no argument required | |
9088 | # The diagnosis changed in icc 8.0: | |
9089 | # icc: Command line remark: option '-MP' not supported | |
9090 | if (grep 'ignoring option' conftest.err || | |
9091 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
9092 | am_cv_CXX_dependencies_compiler_type=$depmode | |
9093 | break | |
9094 | fi | |
9095 | fi | |
9096 | done | |
d9898ee8 | 9097 | |
8d138742 CE |
9098 | cd .. |
9099 | rm -rf conftest.dir | |
9100 | else | |
9101 | am_cv_CXX_dependencies_compiler_type=none | |
9102 | fi | |
d9898ee8 | 9103 | |
8d138742 CE |
9104 | fi |
9105 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
9106 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
9107 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d9898ee8 | 9108 | |
8d138742 CE |
9109 | if |
9110 | test "x$enable_dependency_tracking" != xno \ | |
9111 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
9112 | am__fastdepCXX_TRUE= | |
9113 | am__fastdepCXX_FALSE='#' | |
9114 | else | |
9115 | am__fastdepCXX_TRUE='#' | |
9116 | am__fastdepCXX_FALSE= | |
9117 | fi | |
d9898ee8 | 9118 | |
ac40fd9e | 9119 | |
8d138742 CE |
9120 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9121 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
9122 | (test "X$CXX" != "Xg++"))) ; then | |
9123 | ac_ext=cpp | |
9124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9128 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
9129 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
9130 | if test -z "$CXXCPP"; then | |
9131 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
9132 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 9133 | else |
8d138742 CE |
9134 | # Double quotes because CXXCPP needs to be expanded |
9135 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
9136 | do | |
9137 | ac_preproc_ok=false | |
9138 | for ac_cxx_preproc_warn_flag in '' yes | |
9139 | do | |
9140 | # Use a header file that comes with gcc, so configuring glibc | |
9141 | # with a fresh cross-compiler works. | |
9142 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9143 | # <limits.h> exists even on freestanding compilers. | |
9144 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9145 | # not just through cpp. "Syntax error" is here to catch this case. | |
9146 | cat >conftest.$ac_ext <<_ACEOF | |
9147 | /* confdefs.h. */ | |
9148 | _ACEOF | |
9149 | cat confdefs.h >>conftest.$ac_ext | |
9150 | cat >>conftest.$ac_ext <<_ACEOF | |
9151 | /* end confdefs.h. */ | |
9152 | #ifdef __STDC__ | |
9153 | # include <limits.h> | |
9154 | #else | |
9155 | # include <assert.h> | |
9156 | #endif | |
9157 | Syntax error | |
9158 | _ACEOF | |
9159 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9160 | case "(($ac_try" in | |
9161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9162 | *) ac_try_echo=$ac_try;; | |
9163 | esac | |
9164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9165 | $as_echo "$ac_try_echo") >&5 | |
9166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9167 | ac_status=$? | |
9168 | grep -v '^ *+' conftest.er1 >conftest.err | |
9169 | rm -f conftest.er1 | |
9170 | cat conftest.err >&5 | |
9171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9172 | (exit $ac_status); } >/dev/null && { | |
9173 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
9174 | test ! -s conftest.err | |
9175 | }; then | |
9176 | : | |
9177 | else | |
9178 | $as_echo "$as_me: failed program was:" >&5 | |
9179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9180 | |
8d138742 CE |
9181 | # Broken: fails on valid input. |
9182 | continue | |
9183 | fi | |
d9898ee8 | 9184 | |
8d138742 | 9185 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 9186 | |
8d138742 CE |
9187 | # OK, works on sane cases. Now check whether nonexistent headers |
9188 | # can be detected and how. | |
9189 | cat >conftest.$ac_ext <<_ACEOF | |
9190 | /* confdefs.h. */ | |
9191 | _ACEOF | |
9192 | cat confdefs.h >>conftest.$ac_ext | |
9193 | cat >>conftest.$ac_ext <<_ACEOF | |
9194 | /* end confdefs.h. */ | |
9195 | #include <ac_nonexistent.h> | |
9196 | _ACEOF | |
9197 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9198 | case "(($ac_try" in | |
9199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9200 | *) ac_try_echo=$ac_try;; | |
9201 | esac | |
9202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9203 | $as_echo "$ac_try_echo") >&5 | |
9204 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9205 | ac_status=$? | |
9206 | grep -v '^ *+' conftest.er1 >conftest.err | |
9207 | rm -f conftest.er1 | |
9208 | cat conftest.err >&5 | |
9209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9210 | (exit $ac_status); } >/dev/null && { | |
9211 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
9212 | test ! -s conftest.err | |
9213 | }; then | |
9214 | # Broken: success on invalid input. | |
9215 | continue | |
9216 | else | |
9217 | $as_echo "$as_me: failed program was:" >&5 | |
9218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9219 | |
8d138742 CE |
9220 | # Passes both tests. |
9221 | ac_preproc_ok=: | |
9222 | break | |
9223 | fi | |
d9898ee8 | 9224 | |
8d138742 | 9225 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 9226 | |
8d138742 CE |
9227 | done |
9228 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9229 | rm -f conftest.err conftest.$ac_ext | |
9230 | if $ac_preproc_ok; then | |
9231 | break | |
9232 | fi | |
d9898ee8 | 9233 | |
8d138742 CE |
9234 | done |
9235 | ac_cv_prog_CXXCPP=$CXXCPP | |
d9898ee8 | 9236 | |
8d138742 CE |
9237 | fi |
9238 | CXXCPP=$ac_cv_prog_CXXCPP | |
9239 | else | |
9240 | ac_cv_prog_CXXCPP=$CXXCPP | |
9241 | fi | |
9242 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
9243 | $as_echo "$CXXCPP" >&6; } | |
9244 | ac_preproc_ok=false | |
9245 | for ac_cxx_preproc_warn_flag in '' yes | |
9246 | do | |
9247 | # Use a header file that comes with gcc, so configuring glibc | |
9248 | # with a fresh cross-compiler works. | |
9249 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9250 | # <limits.h> exists even on freestanding compilers. | |
9251 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9252 | # not just through cpp. "Syntax error" is here to catch this case. | |
9253 | cat >conftest.$ac_ext <<_ACEOF | |
9254 | /* confdefs.h. */ | |
9255 | _ACEOF | |
9256 | cat confdefs.h >>conftest.$ac_ext | |
9257 | cat >>conftest.$ac_ext <<_ACEOF | |
9258 | /* end confdefs.h. */ | |
9259 | #ifdef __STDC__ | |
9260 | # include <limits.h> | |
9261 | #else | |
9262 | # include <assert.h> | |
9263 | #endif | |
9264 | Syntax error | |
9265 | _ACEOF | |
9266 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9267 | case "(($ac_try" in | |
9268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9269 | *) ac_try_echo=$ac_try;; | |
9270 | esac | |
9271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9272 | $as_echo "$ac_try_echo") >&5 | |
9273 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9274 | ac_status=$? | |
9275 | grep -v '^ *+' conftest.er1 >conftest.err | |
9276 | rm -f conftest.er1 | |
9277 | cat conftest.err >&5 | |
9278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9279 | (exit $ac_status); } >/dev/null && { | |
9280 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
9281 | test ! -s conftest.err | |
9282 | }; then | |
9283 | : | |
9284 | else | |
9285 | $as_echo "$as_me: failed program was:" >&5 | |
9286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9287 | |
8d138742 CE |
9288 | # Broken: fails on valid input. |
9289 | continue | |
9290 | fi | |
d9898ee8 | 9291 | |
8d138742 | 9292 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 9293 | |
8d138742 CE |
9294 | # OK, works on sane cases. Now check whether nonexistent headers |
9295 | # can be detected and how. | |
9296 | cat >conftest.$ac_ext <<_ACEOF | |
9297 | /* confdefs.h. */ | |
9298 | _ACEOF | |
9299 | cat confdefs.h >>conftest.$ac_ext | |
9300 | cat >>conftest.$ac_ext <<_ACEOF | |
9301 | /* end confdefs.h. */ | |
9302 | #include <ac_nonexistent.h> | |
9303 | _ACEOF | |
9304 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9305 | case "(($ac_try" in | |
9306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9307 | *) ac_try_echo=$ac_try;; | |
9308 | esac | |
9309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9310 | $as_echo "$ac_try_echo") >&5 | |
9311 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9312 | ac_status=$? | |
9313 | grep -v '^ *+' conftest.er1 >conftest.err | |
9314 | rm -f conftest.er1 | |
9315 | cat conftest.err >&5 | |
9316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9317 | (exit $ac_status); } >/dev/null && { | |
9318 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
9319 | test ! -s conftest.err | |
9320 | }; then | |
9321 | # Broken: success on invalid input. | |
9322 | continue | |
9323 | else | |
9324 | $as_echo "$as_me: failed program was:" >&5 | |
9325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac40fd9e | 9326 | |
8d138742 CE |
9327 | # Passes both tests. |
9328 | ac_preproc_ok=: | |
9329 | break | |
9330 | fi | |
d9898ee8 | 9331 | |
8d138742 | 9332 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 9333 | |
8d138742 CE |
9334 | done |
9335 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9336 | rm -f conftest.err conftest.$ac_ext | |
9337 | if $ac_preproc_ok; then | |
9338 | : | |
9339 | else | |
9340 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
9341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9342 | _lt_caught_CXX_error=yes; } | |
9343 | fi | |
d9898ee8 | 9344 | |
8d138742 CE |
9345 | ac_ext=c |
9346 | ac_cpp='$CPP $CPPFLAGS' | |
9347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 9350 | |
8d138742 CE |
9351 | else |
9352 | _lt_caught_CXX_error=yes | |
9353 | fi | |
d9898ee8 | 9354 | |
d9898ee8 | 9355 | |
d9898ee8 | 9356 | |
d9898ee8 | 9357 | |
d9898ee8 | 9358 | |
8d138742 | 9359 | # Set options |
d9898ee8 | 9360 | |
d9898ee8 | 9361 | |
d9898ee8 | 9362 | |
8d138742 | 9363 | enable_dlopen=no |
d9898ee8 | 9364 | |
d9898ee8 | 9365 | |
8d138742 | 9366 | enable_win32_dll=no |
d9898ee8 | 9367 | |
ac40fd9e | 9368 | |
8d138742 CE |
9369 | # Check whether --enable-shared was given. |
9370 | if test "${enable_shared+set}" = set; then | |
9371 | enableval=$enable_shared; p=${PACKAGE-default} | |
9372 | case $enableval in | |
9373 | yes) enable_shared=yes ;; | |
9374 | no) enable_shared=no ;; | |
9375 | *) | |
9376 | enable_shared=no | |
9377 | # Look at the argument we got. We use all the common list separators. | |
9378 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9379 | for pkg in $enableval; do | |
9380 | IFS="$lt_save_ifs" | |
9381 | if test "X$pkg" = "X$p"; then | |
9382 | enable_shared=yes | |
9383 | fi | |
9384 | done | |
9385 | IFS="$lt_save_ifs" | |
9386 | ;; | |
9387 | esac | |
9388 | else | |
9389 | enable_shared=yes | |
9390 | fi | |
d9898ee8 | 9391 | |
d9898ee8 | 9392 | |
d9898ee8 | 9393 | |
d9898ee8 | 9394 | |
d9898ee8 | 9395 | |
d9898ee8 | 9396 | |
d9898ee8 | 9397 | |
d9898ee8 | 9398 | |
d9898ee8 | 9399 | |
8d138742 CE |
9400 | # Check whether --enable-static was given. |
9401 | if test "${enable_static+set}" = set; then | |
9402 | enableval=$enable_static; p=${PACKAGE-default} | |
9403 | case $enableval in | |
9404 | yes) enable_static=yes ;; | |
9405 | no) enable_static=no ;; | |
9406 | *) | |
9407 | enable_static=no | |
9408 | # Look at the argument we got. We use all the common list separators. | |
9409 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9410 | for pkg in $enableval; do | |
9411 | IFS="$lt_save_ifs" | |
9412 | if test "X$pkg" = "X$p"; then | |
9413 | enable_static=yes | |
9414 | fi | |
9415 | done | |
9416 | IFS="$lt_save_ifs" | |
9417 | ;; | |
9418 | esac | |
d9898ee8 | 9419 | else |
8d138742 | 9420 | enable_static=yes |
d9898ee8 | 9421 | fi |
d9898ee8 | 9422 | |
d9898ee8 | 9423 | |
d9898ee8 | 9424 | |
d9898ee8 | 9425 | |
d9898ee8 | 9426 | |
d9898ee8 | 9427 | |
d9898ee8 | 9428 | |
d9898ee8 | 9429 | |
d9898ee8 | 9430 | |
dd184caf | 9431 | |
8d138742 CE |
9432 | # Check whether --with-pic was given. |
9433 | if test "${with_pic+set}" = set; then | |
9434 | withval=$with_pic; pic_mode="$withval" | |
d9898ee8 | 9435 | else |
8d138742 CE |
9436 | pic_mode=default |
9437 | fi | |
d9898ee8 | 9438 | |
d9898ee8 | 9439 | |
8d138742 | 9440 | test -z "$pic_mode" && pic_mode=default |
d9898ee8 | 9441 | |
d9898ee8 | 9442 | |
d9898ee8 | 9443 | |
d9898ee8 | 9444 | |
d9898ee8 | 9445 | |
d9898ee8 | 9446 | |
d9898ee8 | 9447 | |
8d138742 CE |
9448 | # Check whether --enable-fast-install was given. |
9449 | if test "${enable_fast_install+set}" = set; then | |
9450 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9451 | case $enableval in | |
9452 | yes) enable_fast_install=yes ;; | |
9453 | no) enable_fast_install=no ;; | |
9454 | *) | |
9455 | enable_fast_install=no | |
9456 | # Look at the argument we got. We use all the common list separators. | |
9457 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9458 | for pkg in $enableval; do | |
9459 | IFS="$lt_save_ifs" | |
9460 | if test "X$pkg" = "X$p"; then | |
9461 | enable_fast_install=yes | |
9462 | fi | |
9463 | done | |
9464 | IFS="$lt_save_ifs" | |
9465 | ;; | |
9466 | esac | |
d9898ee8 | 9467 | else |
8d138742 | 9468 | enable_fast_install=yes |
d9898ee8 | 9469 | fi |
dd184caf | 9470 | |
d9898ee8 | 9471 | |
d9898ee8 | 9472 | |
dd184caf | 9473 | |
d9898ee8 | 9474 | |
d9898ee8 | 9475 | |
d9898ee8 | 9476 | |
d9898ee8 | 9477 | |
d9898ee8 | 9478 | |
d9898ee8 | 9479 | |
dd184caf | 9480 | |
8d138742 CE |
9481 | # This can be used to rebuild libtool when needed |
9482 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 9483 | |
8d138742 CE |
9484 | # Always use our own libtool. |
9485 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 9486 | |
dd184caf | 9487 | |
d9898ee8 | 9488 | |
d9898ee8 | 9489 | |
dd184caf | 9490 | |
d9898ee8 | 9491 | |
d9898ee8 | 9492 | |
dd184caf | 9493 | |
d9898ee8 | 9494 | |
9495 | ||
d9898ee8 | 9496 | |
9497 | ||
d9898ee8 | 9498 | |
9499 | ||
d9898ee8 | 9500 | |
9501 | ||
d9898ee8 | 9502 | |
9503 | ||
d9898ee8 | 9504 | |
d9898ee8 | 9505 | |
d9898ee8 | 9506 | |
d9898ee8 | 9507 | |
d9898ee8 | 9508 | |
d9898ee8 | 9509 | |
d9898ee8 | 9510 | |
8d138742 CE |
9511 | test -z "$LN_S" && LN_S="ln -s" |
9512 | ||
9513 | ||
d9898ee8 | 9514 | |
d9898ee8 | 9515 | |
d9898ee8 | 9516 | |
d9898ee8 | 9517 | |
d9898ee8 | 9518 | |
d9898ee8 | 9519 | |
d9898ee8 | 9520 | |
d9898ee8 | 9521 | |
9522 | ||
8d138742 CE |
9523 | |
9524 | ||
9525 | ||
9526 | if test -n "${ZSH_VERSION+set}" ; then | |
9527 | setopt NO_GLOB_SUBST | |
d9898ee8 | 9528 | fi |
d9898ee8 | 9529 | |
8d138742 CE |
9530 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
9531 | $as_echo_n "checking for objdir... " >&6; } | |
9532 | if test "${lt_cv_objdir+set}" = set; then | |
9533 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 9534 | else |
8d138742 CE |
9535 | rm -f .libs 2>/dev/null |
9536 | mkdir .libs 2>/dev/null | |
9537 | if test -d .libs; then | |
9538 | lt_cv_objdir=.libs | |
d9898ee8 | 9539 | else |
8d138742 CE |
9540 | # MS-DOS does not allow filenames that begin with a dot. |
9541 | lt_cv_objdir=_libs | |
9542 | fi | |
9543 | rmdir .libs 2>/dev/null | |
9544 | fi | |
9545 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
9546 | $as_echo "$lt_cv_objdir" >&6; } | |
9547 | objdir=$lt_cv_objdir | |
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | cat >>confdefs.h <<_ACEOF | |
9554 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9555 | _ACEOF | |
d9898ee8 | 9556 | |
d9898ee8 | 9557 | |
d9898ee8 | 9558 | |
d9898ee8 | 9559 | |
d9898ee8 | 9560 | |
d9898ee8 | 9561 | |
d9898ee8 | 9562 | |
d9898ee8 | 9563 | |
d9898ee8 | 9564 | |
9565 | ||
d9898ee8 | 9566 | |
d9898ee8 | 9567 | |
d9898ee8 | 9568 | |
d9898ee8 | 9569 | |
9570 | ||
d9898ee8 | 9571 | |
d9898ee8 | 9572 | |
d9898ee8 | 9573 | case $host_os in |
9574 | aix3*) | |
8d138742 CE |
9575 | # AIX sometimes has problems with the GCC collect2 program. For some |
9576 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9577 | # vanish in a puff of smoke. | |
9578 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9579 | COLLECT_NAMES= | |
9580 | export COLLECT_NAMES | |
d9898ee8 | 9581 | fi |
9582 | ;; | |
d9898ee8 | 9583 | esac |
d9898ee8 | 9584 | |
8d138742 CE |
9585 | # Sed substitution that helps us do robust quoting. It backslashifies |
9586 | # metacharacters that are still active within double-quoted strings. | |
9587 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d9898ee8 | 9588 | |
8d138742 CE |
9589 | # Same as above, but do not quote variable references. |
9590 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d9898ee8 | 9591 | |
8d138742 CE |
9592 | # Sed substitution to delay expansion of an escaped shell variable in a |
9593 | # double_quote_subst'ed string. | |
9594 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d9898ee8 | 9595 | |
8d138742 CE |
9596 | # Sed substitution to delay expansion of an escaped single quote. |
9597 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d9898ee8 | 9598 | |
8d138742 CE |
9599 | # Sed substitution to avoid accidental globbing in evaled expressions |
9600 | no_glob_subst='s/\*/\\\*/g' | |
d9898ee8 | 9601 | |
8d138742 CE |
9602 | # Global variables: |
9603 | ofile=libtool | |
9604 | can_build_shared=yes | |
d9898ee8 | 9605 | |
8d138742 CE |
9606 | # All known linkers require a `.a' archive for static linking (except MSVC, |
9607 | # which needs '.lib'). | |
9608 | libext=a | |
d9898ee8 | 9609 | |
8d138742 | 9610 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 9611 | |
8d138742 CE |
9612 | old_CC="$CC" |
9613 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 9614 | |
8d138742 CE |
9615 | # Set sane defaults for various variables |
9616 | test -z "$CC" && CC=cc | |
9617 | test -z "$LTCC" && LTCC=$CC | |
9618 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9619 | test -z "$LD" && LD=ld | |
9620 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 9621 | |
8d138742 CE |
9622 | for cc_temp in $compiler""; do |
9623 | case $cc_temp in | |
9624 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9625 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9626 | \-*) ;; | |
9627 | *) break;; | |
9628 | esac | |
9629 | done | |
9630 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d9898ee8 | 9631 | |
d9898ee8 | 9632 | |
8d138742 CE |
9633 | # Only perform the check for file, if the check method requires it |
9634 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9635 | case $deplibs_check_method in | |
9636 | file_magic*) | |
9637 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9638 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
9639 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9640 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
9641 | $as_echo_n "(cached) " >&6 | |
9642 | else | |
9643 | case $MAGIC_CMD in | |
9644 | [\\/*] | ?:[\\/]*) | |
9645 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9646 | ;; | |
9647 | *) | |
9648 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9649 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9650 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9651 | for ac_dir in $ac_dummy; do | |
9652 | IFS="$lt_save_ifs" | |
9653 | test -z "$ac_dir" && ac_dir=. | |
9654 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9655 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9656 | if test -n "$file_magic_test_file"; then | |
9657 | case $deplibs_check_method in | |
9658 | "file_magic "*) | |
9659 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9660 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9661 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9662 | $EGREP "$file_magic_regex" > /dev/null; then | |
9663 | : | |
9664 | else | |
9665 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9666 | |
8d138742 CE |
9667 | *** Warning: the command libtool uses to detect shared libraries, |
9668 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9669 | *** The result is that libtool may fail to recognize shared libraries | |
9670 | *** as such. This will affect the creation of libtool libraries that | |
9671 | *** depend on shared libraries, but programs linked with such libtool | |
9672 | *** libraries will work regardless of this problem. Nevertheless, you | |
9673 | *** may want to report the problem to your system manager and/or to | |
9674 | *** bug-libtool@gnu.org | |
d9898ee8 | 9675 | |
8d138742 CE |
9676 | _LT_EOF |
9677 | fi ;; | |
9678 | esac | |
9679 | fi | |
9680 | break | |
9681 | fi | |
9682 | done | |
9683 | IFS="$lt_save_ifs" | |
9684 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9685 | ;; | |
9686 | esac | |
9687 | fi | |
d9898ee8 | 9688 | |
8d138742 CE |
9689 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9690 | if test -n "$MAGIC_CMD"; then | |
9691 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
9692 | $as_echo "$MAGIC_CMD" >&6; } | |
9693 | else | |
9694 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9695 | $as_echo "no" >&6; } | |
9696 | fi | |
d9898ee8 | 9697 | |
d9898ee8 | 9698 | |
d9898ee8 | 9699 | |
d9898ee8 | 9700 | |
d9898ee8 | 9701 | |
8d138742 CE |
9702 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9703 | if test -n "$ac_tool_prefix"; then | |
9704 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
9705 | $as_echo_n "checking for file... " >&6; } | |
9706 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
9707 | $as_echo_n "(cached) " >&6 | |
9708 | else | |
9709 | case $MAGIC_CMD in | |
9710 | [\\/*] | ?:[\\/]*) | |
9711 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9712 | ;; | |
9713 | *) | |
9714 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9715 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9716 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9717 | for ac_dir in $ac_dummy; do | |
9718 | IFS="$lt_save_ifs" | |
9719 | test -z "$ac_dir" && ac_dir=. | |
9720 | if test -f $ac_dir/file; then | |
9721 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9722 | if test -n "$file_magic_test_file"; then | |
9723 | case $deplibs_check_method in | |
9724 | "file_magic "*) | |
9725 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9726 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9727 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9728 | $EGREP "$file_magic_regex" > /dev/null; then | |
9729 | : | |
9730 | else | |
9731 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9732 | |
8d138742 CE |
9733 | *** Warning: the command libtool uses to detect shared libraries, |
9734 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9735 | *** The result is that libtool may fail to recognize shared libraries | |
9736 | *** as such. This will affect the creation of libtool libraries that | |
9737 | *** depend on shared libraries, but programs linked with such libtool | |
9738 | *** libraries will work regardless of this problem. Nevertheless, you | |
9739 | *** may want to report the problem to your system manager and/or to | |
9740 | *** bug-libtool@gnu.org | |
d9898ee8 | 9741 | |
8d138742 CE |
9742 | _LT_EOF |
9743 | fi ;; | |
9744 | esac | |
9745 | fi | |
9746 | break | |
9747 | fi | |
9748 | done | |
9749 | IFS="$lt_save_ifs" | |
9750 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9751 | ;; | |
9752 | esac | |
9753 | fi | |
d9898ee8 | 9754 | |
8d138742 CE |
9755 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9756 | if test -n "$MAGIC_CMD"; then | |
9757 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
9758 | $as_echo "$MAGIC_CMD" >&6; } | |
9759 | else | |
9760 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9761 | $as_echo "no" >&6; } | |
9762 | fi | |
d9898ee8 | 9763 | |
d9898ee8 | 9764 | |
8d138742 CE |
9765 | else |
9766 | MAGIC_CMD=: | |
9767 | fi | |
9768 | fi | |
d9898ee8 | 9769 | |
8d138742 CE |
9770 | fi |
9771 | ;; | |
9772 | esac | |
d9898ee8 | 9773 | |
8d138742 | 9774 | # Use C for the default configuration in the libtool script |
d9898ee8 | 9775 | |
8d138742 CE |
9776 | lt_save_CC="$CC" |
9777 | ac_ext=c | |
9778 | ac_cpp='$CPP $CPPFLAGS' | |
9779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 9782 | |
d9898ee8 | 9783 | |
8d138742 CE |
9784 | # Source file extension for C test sources. |
9785 | ac_ext=c | |
d9898ee8 | 9786 | |
8d138742 CE |
9787 | # Object file extension for compiled C test sources. |
9788 | objext=o | |
9789 | objext=$objext | |
d9898ee8 | 9790 | |
8d138742 CE |
9791 | # Code to be used in simple compile tests |
9792 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 9793 | |
8d138742 CE |
9794 | # Code to be used in simple link tests |
9795 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 9796 | |
d9898ee8 | 9797 | |
d9898ee8 | 9798 | |
d9898ee8 | 9799 | |
d9898ee8 | 9800 | |
d9898ee8 | 9801 | |
d9898ee8 | 9802 | |
8d138742 CE |
9803 | # If no C compiler was specified, use CC. |
9804 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 9805 | |
8d138742 CE |
9806 | # If no C compiler flags were specified, use CFLAGS. |
9807 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 9808 | |
8d138742 CE |
9809 | # Allow CC to be a program name with arguments. |
9810 | compiler=$CC | |
d9898ee8 | 9811 | |
8d138742 CE |
9812 | # Save the default compiler, since it gets overwritten when the other |
9813 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9814 | compiler_DEFAULT=$CC | |
d9898ee8 | 9815 | |
8d138742 CE |
9816 | # save warnings/boilerplate of simple test code |
9817 | ac_outfile=conftest.$ac_objext | |
9818 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9819 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9820 | _lt_compiler_boilerplate=`cat conftest.err` | |
9821 | $RM conftest* | |
d9898ee8 | 9822 | |
8d138742 CE |
9823 | ac_outfile=conftest.$ac_objext |
9824 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9825 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9826 | _lt_linker_boilerplate=`cat conftest.err` | |
9827 | $RM -r conftest* | |
d9898ee8 | 9828 | |
d9898ee8 | 9829 | |
8d138742 | 9830 | if test -n "$compiler"; then |
d9898ee8 | 9831 | |
8d138742 | 9832 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 9833 | |
8d138742 CE |
9834 | if test "$GCC" = yes; then |
9835 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d9898ee8 | 9836 | |
8d138742 CE |
9837 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9838 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9839 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
9840 | $as_echo_n "(cached) " >&6 | |
9841 | else | |
9842 | lt_cv_prog_compiler_rtti_exceptions=no | |
9843 | ac_outfile=conftest.$ac_objext | |
9844 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9845 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9846 | # Insert the option either (1) after the last *FLAGS variable, or | |
9847 | # (2) before a word containing "conftest.", or (3) at the end. | |
9848 | # Note that $ac_compile itself does not contain backslashes and begins | |
9849 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9850 | # The option is referenced via a variable to avoid confusing sed. | |
9851 | lt_compile=`echo "$ac_compile" | $SED \ | |
9852 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9853 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9854 | -e 's:$: $lt_compiler_flag:'` | |
9855 | (eval echo "\"\$as_me:9855: $lt_compile\"" >&5) | |
9856 | (eval "$lt_compile" 2>conftest.err) | |
9857 | ac_status=$? | |
9858 | cat conftest.err >&5 | |
9859 | echo "$as_me:9859: \$? = $ac_status" >&5 | |
9860 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9861 | # The compiler can only warn and ignore the option if not recognized | |
9862 | # So say no if there are warnings other than the usual output. | |
9863 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9864 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9865 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9866 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9867 | fi | |
9868 | fi | |
9869 | $RM conftest* | |
d9898ee8 | 9870 | |
8d138742 CE |
9871 | fi |
9872 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9873 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 9874 | |
8d138742 CE |
9875 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9876 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9877 | else | |
9878 | : | |
9879 | fi | |
d9898ee8 | 9880 | |
8d138742 | 9881 | fi |
d9898ee8 | 9882 | |
d9898ee8 | 9883 | |
d9898ee8 | 9884 | |
d9898ee8 | 9885 | |
d9898ee8 | 9886 | |
d9898ee8 | 9887 | |
8d138742 CE |
9888 | lt_prog_compiler_wl= |
9889 | lt_prog_compiler_pic= | |
9890 | lt_prog_compiler_static= | |
d9898ee8 | 9891 | |
8d138742 CE |
9892 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
9893 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 9894 | |
8d138742 CE |
9895 | if test "$GCC" = yes; then |
9896 | lt_prog_compiler_wl='-Wl,' | |
9897 | lt_prog_compiler_static='-static' | |
d9898ee8 | 9898 | |
8d138742 CE |
9899 | case $host_os in |
9900 | aix*) | |
9901 | # All AIX code is PIC. | |
9902 | if test "$host_cpu" = ia64; then | |
9903 | # AIX 5 now supports IA64 processor | |
9904 | lt_prog_compiler_static='-Bstatic' | |
9905 | fi | |
9906 | ;; | |
d9898ee8 | 9907 | |
8d138742 CE |
9908 | amigaos*) |
9909 | case $host_cpu in | |
9910 | powerpc) | |
9911 | # see comment about AmigaOS4 .so support | |
9912 | lt_prog_compiler_pic='-fPIC' | |
9913 | ;; | |
9914 | m68k) | |
9915 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9916 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9917 | # like `-m68040'. | |
9918 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9919 | ;; | |
9920 | esac | |
9921 | ;; | |
d9898ee8 | 9922 | |
8d138742 CE |
9923 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9924 | # PIC is the default for these OSes. | |
9925 | ;; | |
d9898ee8 | 9926 | |
8d138742 CE |
9927 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9928 | # This hack is so that the source file can tell whether it is being | |
9929 | # built for inclusion in a dll (and should export symbols for example). | |
9930 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9931 | # (--disable-auto-import) libraries | |
9932 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9933 | ;; | |
d9898ee8 | 9934 | |
8d138742 CE |
9935 | darwin* | rhapsody*) |
9936 | # PIC is the default on this platform | |
9937 | # Common symbols not allowed in MH_DYLIB files | |
9938 | lt_prog_compiler_pic='-fno-common' | |
9939 | ;; | |
d9898ee8 | 9940 | |
8d138742 CE |
9941 | hpux*) |
9942 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9943 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9944 | # sets the default TLS model and affects inlining. | |
9945 | case $host_cpu in | |
9946 | hppa*64*) | |
9947 | # +Z the default | |
9948 | ;; | |
9949 | *) | |
9950 | lt_prog_compiler_pic='-fPIC' | |
9951 | ;; | |
9952 | esac | |
9953 | ;; | |
d9898ee8 | 9954 | |
8d138742 CE |
9955 | interix[3-9]*) |
9956 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9957 | # Instead, we relocate shared libraries at runtime. | |
9958 | ;; | |
d9898ee8 | 9959 | |
8d138742 CE |
9960 | msdosdjgpp*) |
9961 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9962 | # on systems that don't support them. | |
9963 | lt_prog_compiler_can_build_shared=no | |
9964 | enable_shared=no | |
9965 | ;; | |
d9898ee8 | 9966 | |
8d138742 CE |
9967 | *nto* | *qnx*) |
9968 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9969 | # it will coredump. | |
9970 | lt_prog_compiler_pic='-fPIC -shared' | |
9971 | ;; | |
d9898ee8 | 9972 | |
8d138742 CE |
9973 | sysv4*MP*) |
9974 | if test -d /usr/nec; then | |
9975 | lt_prog_compiler_pic=-Kconform_pic | |
9976 | fi | |
9977 | ;; | |
d9898ee8 | 9978 | |
8d138742 CE |
9979 | *) |
9980 | lt_prog_compiler_pic='-fPIC' | |
9981 | ;; | |
9982 | esac | |
9983 | else | |
9984 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9985 | case $host_os in | |
9986 | aix*) | |
9987 | lt_prog_compiler_wl='-Wl,' | |
9988 | if test "$host_cpu" = ia64; then | |
9989 | # AIX 5 now supports IA64 processor | |
9990 | lt_prog_compiler_static='-Bstatic' | |
9991 | else | |
9992 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9993 | fi | |
9994 | ;; | |
d9898ee8 | 9995 | |
8d138742 CE |
9996 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9997 | # This hack is so that the source file can tell whether it is being | |
9998 | # built for inclusion in a dll (and should export symbols for example). | |
9999 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10000 | ;; | |
d9898ee8 | 10001 | |
8d138742 CE |
10002 | hpux9* | hpux10* | hpux11*) |
10003 | lt_prog_compiler_wl='-Wl,' | |
10004 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10005 | # not for PA HP-UX. | |
10006 | case $host_cpu in | |
10007 | hppa*64*|ia64*) | |
10008 | # +Z the default | |
10009 | ;; | |
10010 | *) | |
10011 | lt_prog_compiler_pic='+Z' | |
10012 | ;; | |
10013 | esac | |
10014 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
10015 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
10016 | ;; | |
d9898ee8 | 10017 | |
8d138742 CE |
10018 | irix5* | irix6* | nonstopux*) |
10019 | lt_prog_compiler_wl='-Wl,' | |
10020 | # PIC (with -KPIC) is the default. | |
10021 | lt_prog_compiler_static='-non_shared' | |
10022 | ;; | |
d9898ee8 | 10023 | |
8d138742 CE |
10024 | linux* | k*bsd*-gnu) |
10025 | case $cc_basename in | |
10026 | # old Intel for x86_64 which still supported -KPIC. | |
10027 | ecc*) | |
10028 | lt_prog_compiler_wl='-Wl,' | |
10029 | lt_prog_compiler_pic='-KPIC' | |
10030 | lt_prog_compiler_static='-static' | |
10031 | ;; | |
10032 | # icc used to be incompatible with GCC. | |
10033 | # ICC 10 doesn't accept -KPIC any more. | |
10034 | icc* | ifort*) | |
10035 | lt_prog_compiler_wl='-Wl,' | |
10036 | lt_prog_compiler_pic='-fPIC' | |
10037 | lt_prog_compiler_static='-static' | |
10038 | ;; | |
10039 | # Lahey Fortran 8.1. | |
10040 | lf95*) | |
10041 | lt_prog_compiler_wl='-Wl,' | |
10042 | lt_prog_compiler_pic='--shared' | |
10043 | lt_prog_compiler_static='--static' | |
10044 | ;; | |
10045 | pgcc* | pgf77* | pgf90* | pgf95*) | |
10046 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
10047 | # which looks to be a dead project) | |
10048 | lt_prog_compiler_wl='-Wl,' | |
10049 | lt_prog_compiler_pic='-fpic' | |
10050 | lt_prog_compiler_static='-Bstatic' | |
10051 | ;; | |
10052 | ccc*) | |
10053 | lt_prog_compiler_wl='-Wl,' | |
10054 | # All Alpha code is PIC. | |
10055 | lt_prog_compiler_static='-non_shared' | |
10056 | ;; | |
10057 | xl*) | |
10058 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
10059 | lt_prog_compiler_wl='-Wl,' | |
10060 | lt_prog_compiler_pic='-qpic' | |
10061 | lt_prog_compiler_static='-qstaticlink' | |
10062 | ;; | |
10063 | *) | |
10064 | case `$CC -V 2>&1 | sed 5q` in | |
10065 | *Sun\ C*) | |
10066 | # Sun C 5.9 | |
10067 | lt_prog_compiler_pic='-KPIC' | |
10068 | lt_prog_compiler_static='-Bstatic' | |
10069 | lt_prog_compiler_wl='-Wl,' | |
10070 | ;; | |
10071 | *Sun\ F*) | |
10072 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
10073 | lt_prog_compiler_pic='-KPIC' | |
10074 | lt_prog_compiler_static='-Bstatic' | |
10075 | lt_prog_compiler_wl='' | |
10076 | ;; | |
10077 | esac | |
10078 | ;; | |
10079 | esac | |
10080 | ;; | |
d9898ee8 | 10081 | |
8d138742 CE |
10082 | newsos6) |
10083 | lt_prog_compiler_pic='-KPIC' | |
10084 | lt_prog_compiler_static='-Bstatic' | |
10085 | ;; | |
d9898ee8 | 10086 | |
8d138742 CE |
10087 | *nto* | *qnx*) |
10088 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10089 | # it will coredump. | |
10090 | lt_prog_compiler_pic='-fPIC -shared' | |
10091 | ;; | |
d9898ee8 | 10092 | |
8d138742 CE |
10093 | osf3* | osf4* | osf5*) |
10094 | lt_prog_compiler_wl='-Wl,' | |
10095 | # All OSF/1 code is PIC. | |
10096 | lt_prog_compiler_static='-non_shared' | |
10097 | ;; | |
d9898ee8 | 10098 | |
8d138742 CE |
10099 | rdos*) |
10100 | lt_prog_compiler_static='-non_shared' | |
10101 | ;; | |
d9898ee8 | 10102 | |
8d138742 CE |
10103 | solaris*) |
10104 | lt_prog_compiler_pic='-KPIC' | |
10105 | lt_prog_compiler_static='-Bstatic' | |
10106 | case $cc_basename in | |
10107 | f77* | f90* | f95*) | |
10108 | lt_prog_compiler_wl='-Qoption ld ';; | |
10109 | *) | |
10110 | lt_prog_compiler_wl='-Wl,';; | |
10111 | esac | |
10112 | ;; | |
d9898ee8 | 10113 | |
8d138742 CE |
10114 | sunos4*) |
10115 | lt_prog_compiler_wl='-Qoption ld ' | |
10116 | lt_prog_compiler_pic='-PIC' | |
10117 | lt_prog_compiler_static='-Bstatic' | |
10118 | ;; | |
d9898ee8 | 10119 | |
8d138742 CE |
10120 | sysv4 | sysv4.2uw2* | sysv4.3*) |
10121 | lt_prog_compiler_wl='-Wl,' | |
10122 | lt_prog_compiler_pic='-KPIC' | |
10123 | lt_prog_compiler_static='-Bstatic' | |
10124 | ;; | |
d9898ee8 | 10125 | |
8d138742 CE |
10126 | sysv4*MP*) |
10127 | if test -d /usr/nec ;then | |
10128 | lt_prog_compiler_pic='-Kconform_pic' | |
10129 | lt_prog_compiler_static='-Bstatic' | |
10130 | fi | |
10131 | ;; | |
d9898ee8 | 10132 | |
8d138742 CE |
10133 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
10134 | lt_prog_compiler_wl='-Wl,' | |
10135 | lt_prog_compiler_pic='-KPIC' | |
10136 | lt_prog_compiler_static='-Bstatic' | |
10137 | ;; | |
d9898ee8 | 10138 | |
8d138742 CE |
10139 | unicos*) |
10140 | lt_prog_compiler_wl='-Wl,' | |
10141 | lt_prog_compiler_can_build_shared=no | |
10142 | ;; | |
d9898ee8 | 10143 | |
8d138742 CE |
10144 | uts4*) |
10145 | lt_prog_compiler_pic='-pic' | |
10146 | lt_prog_compiler_static='-Bstatic' | |
10147 | ;; | |
d9898ee8 | 10148 | |
8d138742 CE |
10149 | *) |
10150 | lt_prog_compiler_can_build_shared=no | |
10151 | ;; | |
10152 | esac | |
10153 | fi | |
d9898ee8 | 10154 | |
8d138742 CE |
10155 | case $host_os in |
10156 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10157 | *djgpp*) | |
10158 | lt_prog_compiler_pic= | |
10159 | ;; | |
10160 | *) | |
10161 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10162 | ;; | |
10163 | esac | |
10164 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
10165 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d9898ee8 | 10166 | |
d9898ee8 | 10167 | |
d9898ee8 | 10168 | |
d9898ee8 | 10169 | |
d9898ee8 | 10170 | |
d9898ee8 | 10171 | |
8d138742 CE |
10172 | # |
10173 | # Check to make sure the PIC flag actually works. | |
10174 | # | |
10175 | if test -n "$lt_prog_compiler_pic"; then | |
10176 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
10177 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
10178 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
10179 | $as_echo_n "(cached) " >&6 | |
10180 | else | |
10181 | lt_cv_prog_compiler_pic_works=no | |
10182 | ac_outfile=conftest.$ac_objext | |
10183 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10184 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10185 | # Insert the option either (1) after the last *FLAGS variable, or | |
10186 | # (2) before a word containing "conftest.", or (3) at the end. | |
10187 | # Note that $ac_compile itself does not contain backslashes and begins | |
10188 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10189 | # The option is referenced via a variable to avoid confusing sed. | |
10190 | lt_compile=`echo "$ac_compile" | $SED \ | |
10191 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10192 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10193 | -e 's:$: $lt_compiler_flag:'` | |
10194 | (eval echo "\"\$as_me:10194: $lt_compile\"" >&5) | |
10195 | (eval "$lt_compile" 2>conftest.err) | |
10196 | ac_status=$? | |
10197 | cat conftest.err >&5 | |
10198 | echo "$as_me:10198: \$? = $ac_status" >&5 | |
10199 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10200 | # The compiler can only warn and ignore the option if not recognized | |
10201 | # So say no if there are warnings other than the usual output. | |
10202 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
10203 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10204 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10205 | lt_cv_prog_compiler_pic_works=yes | |
10206 | fi | |
10207 | fi | |
10208 | $RM conftest* | |
d9898ee8 | 10209 | |
8d138742 CE |
10210 | fi |
10211 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10212 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d9898ee8 | 10213 | |
8d138742 CE |
10214 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
10215 | case $lt_prog_compiler_pic in | |
10216 | "" | " "*) ;; | |
10217 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10218 | esac | |
10219 | else | |
10220 | lt_prog_compiler_pic= | |
10221 | lt_prog_compiler_can_build_shared=no | |
10222 | fi | |
d9898ee8 | 10223 | |
8d138742 | 10224 | fi |
d9898ee8 | 10225 | |
10226 | ||
d9898ee8 | 10227 | |
d9898ee8 | 10228 | |
d9898ee8 | 10229 | |
d9898ee8 | 10230 | |
8d138742 CE |
10231 | # |
10232 | # Check to make sure the static flag actually works. | |
10233 | # | |
10234 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10235 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10236 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10237 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
10238 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 10239 | else |
8d138742 CE |
10240 | lt_cv_prog_compiler_static_works=no |
10241 | save_LDFLAGS="$LDFLAGS" | |
10242 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10243 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10244 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10245 | # The linker can only warn and ignore the option if not recognized | |
10246 | # So say no if there are warnings | |
10247 | if test -s conftest.err; then | |
10248 | # Append any errors to the config.log. | |
10249 | cat conftest.err 1>&5 | |
10250 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
10251 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10252 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10253 | lt_cv_prog_compiler_static_works=yes | |
10254 | fi | |
10255 | else | |
10256 | lt_cv_prog_compiler_static_works=yes | |
10257 | fi | |
10258 | fi | |
10259 | $RM -r conftest* | |
10260 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 10261 | |
8d138742 CE |
10262 | fi |
10263 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
10264 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d9898ee8 | 10265 | |
8d138742 CE |
10266 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
10267 | : | |
10268 | else | |
10269 | lt_prog_compiler_static= | |
10270 | fi | |
d9898ee8 | 10271 | |
10272 | ||
dd184caf | 10273 | |
d9898ee8 | 10274 | |
d9898ee8 | 10275 | |
d9898ee8 | 10276 | |
d9898ee8 | 10277 | |
8d138742 CE |
10278 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10279 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10280 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
10281 | $as_echo_n "(cached) " >&6 | |
10282 | else | |
10283 | lt_cv_prog_compiler_c_o=no | |
10284 | $RM -r conftest 2>/dev/null | |
10285 | mkdir conftest | |
10286 | cd conftest | |
10287 | mkdir out | |
10288 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 10289 | |
8d138742 CE |
10290 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10291 | # Insert the option either (1) after the last *FLAGS variable, or | |
10292 | # (2) before a word containing "conftest.", or (3) at the end. | |
10293 | # Note that $ac_compile itself does not contain backslashes and begins | |
10294 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10295 | lt_compile=`echo "$ac_compile" | $SED \ | |
10296 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10297 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10298 | -e 's:$: $lt_compiler_flag:'` | |
10299 | (eval echo "\"\$as_me:10299: $lt_compile\"" >&5) | |
10300 | (eval "$lt_compile" 2>out/conftest.err) | |
10301 | ac_status=$? | |
10302 | cat out/conftest.err >&5 | |
10303 | echo "$as_me:10303: \$? = $ac_status" >&5 | |
10304 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10305 | then | |
10306 | # The compiler can only warn and ignore the option if not recognized | |
10307 | # So say no if there are warnings | |
10308 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
10309 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10310 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10311 | lt_cv_prog_compiler_c_o=yes | |
10312 | fi | |
10313 | fi | |
10314 | chmod u+w . 2>&5 | |
10315 | $RM conftest* | |
10316 | # SGI C++ compiler will create directory out/ii_files/ for | |
10317 | # template instantiation | |
10318 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10319 | $RM out/* && rmdir out | |
10320 | cd .. | |
10321 | $RM -r conftest | |
10322 | $RM conftest* | |
d9898ee8 | 10323 | |
8d138742 CE |
10324 | fi |
10325 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
10326 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 10327 | |
d9898ee8 | 10328 | |
10329 | ||
10330 | ||
10331 | ||
d9898ee8 | 10332 | |
8d138742 CE |
10333 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10334 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10335 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
10336 | $as_echo_n "(cached) " >&6 | |
10337 | else | |
10338 | lt_cv_prog_compiler_c_o=no | |
10339 | $RM -r conftest 2>/dev/null | |
10340 | mkdir conftest | |
10341 | cd conftest | |
10342 | mkdir out | |
10343 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 10344 | |
8d138742 CE |
10345 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10346 | # Insert the option either (1) after the last *FLAGS variable, or | |
10347 | # (2) before a word containing "conftest.", or (3) at the end. | |
10348 | # Note that $ac_compile itself does not contain backslashes and begins | |
10349 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10350 | lt_compile=`echo "$ac_compile" | $SED \ | |
10351 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10352 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10353 | -e 's:$: $lt_compiler_flag:'` | |
10354 | (eval echo "\"\$as_me:10354: $lt_compile\"" >&5) | |
10355 | (eval "$lt_compile" 2>out/conftest.err) | |
10356 | ac_status=$? | |
10357 | cat out/conftest.err >&5 | |
10358 | echo "$as_me:10358: \$? = $ac_status" >&5 | |
10359 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10360 | then | |
10361 | # The compiler can only warn and ignore the option if not recognized | |
10362 | # So say no if there are warnings | |
10363 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
10364 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10365 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10366 | lt_cv_prog_compiler_c_o=yes | |
10367 | fi | |
10368 | fi | |
10369 | chmod u+w . 2>&5 | |
10370 | $RM conftest* | |
10371 | # SGI C++ compiler will create directory out/ii_files/ for | |
10372 | # template instantiation | |
10373 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10374 | $RM out/* && rmdir out | |
10375 | cd .. | |
10376 | $RM -r conftest | |
10377 | $RM conftest* | |
d9898ee8 | 10378 | |
8d138742 CE |
10379 | fi |
10380 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
10381 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 10382 | |
d9898ee8 | 10383 | |
d9898ee8 | 10384 | |
d9898ee8 | 10385 | |
8d138742 CE |
10386 | hard_links="nottested" |
10387 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10388 | # do not overwrite the value of need_locks provided by the user | |
10389 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
10390 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10391 | hard_links=yes | |
10392 | $RM conftest* | |
10393 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10394 | touch conftest.a | |
10395 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10396 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10397 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
10398 | $as_echo "$hard_links" >&6; } | |
10399 | if test "$hard_links" = no; then | |
10400 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10401 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10402 | need_locks=warn | |
10403 | fi | |
10404 | else | |
10405 | need_locks=no | |
10406 | fi | |
d9898ee8 | 10407 | |
d9898ee8 | 10408 | |
d9898ee8 | 10409 | |
10410 | ||
d9898ee8 | 10411 | |
d9898ee8 | 10412 | |
8d138742 CE |
10413 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10414 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 10415 | |
8d138742 CE |
10416 | runpath_var= |
10417 | allow_undefined_flag= | |
10418 | always_export_symbols=no | |
10419 | archive_cmds= | |
10420 | archive_expsym_cmds= | |
10421 | compiler_needs_object=no | |
10422 | enable_shared_with_static_runtimes=no | |
10423 | export_dynamic_flag_spec= | |
10424 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10425 | hardcode_automatic=no | |
10426 | hardcode_direct=no | |
10427 | hardcode_direct_absolute=no | |
10428 | hardcode_libdir_flag_spec= | |
10429 | hardcode_libdir_flag_spec_ld= | |
10430 | hardcode_libdir_separator= | |
10431 | hardcode_minus_L=no | |
10432 | hardcode_shlibpath_var=unsupported | |
10433 | inherit_rpath=no | |
10434 | link_all_deplibs=unknown | |
10435 | module_cmds= | |
10436 | module_expsym_cmds= | |
10437 | old_archive_from_new_cmds= | |
10438 | old_archive_from_expsyms_cmds= | |
10439 | thread_safe_flag_spec= | |
10440 | whole_archive_flag_spec= | |
10441 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10442 | # included in the symbol list | |
10443 | include_expsyms= | |
10444 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10445 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10446 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10447 | # as well as any symbol that contains `d'. | |
10448 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10449 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10450 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10451 | # the symbol is explicitly referenced. Since portable code cannot | |
10452 | # rely on this symbol name, it's probably fine to never include it in | |
10453 | # preloaded symbol tables. | |
10454 | # Exclude shared library initialization/finalization symbols. | |
10455 | extract_expsyms_cmds= | |
dd184caf | 10456 | |
8d138742 CE |
10457 | case $host_os in |
10458 | cygwin* | mingw* | pw32* | cegcc*) | |
10459 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10460 | # When not using gcc, we currently assume that we are using | |
10461 | # Microsoft Visual C++. | |
10462 | if test "$GCC" != yes; then | |
10463 | with_gnu_ld=no | |
10464 | fi | |
d9898ee8 | 10465 | ;; |
8d138742 CE |
10466 | interix*) |
10467 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10468 | with_gnu_ld=yes | |
10469 | ;; | |
10470 | openbsd*) | |
10471 | with_gnu_ld=no | |
d9898ee8 | 10472 | ;; |
10473 | esac | |
d9898ee8 | 10474 | |
8d138742 | 10475 | ld_shlibs=yes |
d9898ee8 | 10476 | if test "$with_gnu_ld" = yes; then |
d9898ee8 | 10477 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d9898ee8 | 10478 | wlarc='${wl}' |
10479 | ||
8d138742 CE |
10480 | # Set some defaults for GNU ld with shared library support. These |
10481 | # are reset later if shared libraries are not supported. Putting them | |
10482 | # here allows them to be overridden if necessary. | |
10483 | runpath_var=LD_RUN_PATH | |
10484 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10485 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
d9898ee8 | 10486 | # ancient GNU ld didn't support --whole-archive et. al. |
8d138742 CE |
10487 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
10488 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
d9898ee8 | 10489 | else |
8d138742 | 10490 | whole_archive_flag_spec= |
d9898ee8 | 10491 | fi |
8d138742 CE |
10492 | supports_anon_versioning=no |
10493 | case `$LD -v 2>&1` in | |
10494 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10495 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10496 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10497 | *\ 2.11.*) ;; # other 2.11 versions | |
10498 | *) supports_anon_versioning=yes ;; | |
10499 | esac | |
10500 | ||
10501 | # See if GNU ld supports shared libraries. | |
10502 | case $host_os in | |
10503 | aix[3-9]*) | |
10504 | # On AIX/PPC, the GNU linker is very broken | |
10505 | if test "$host_cpu" != ia64; then | |
10506 | ld_shlibs=no | |
10507 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 10508 | |
8d138742 CE |
10509 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
10510 | *** to be unable to reliably create shared libraries on AIX. | |
10511 | *** Therefore, libtool is disabling shared libraries support. If you | |
10512 | *** really care for shared libraries, you may want to modify your PATH | |
10513 | *** so that a non-GNU linker is found, and then restart. | |
d9898ee8 | 10514 | |
8d138742 CE |
10515 | _LT_EOF |
10516 | fi | |
10517 | ;; | |
d9898ee8 | 10518 | |
8d138742 CE |
10519 | amigaos*) |
10520 | case $host_cpu in | |
10521 | powerpc) | |
10522 | # see comment about AmigaOS4 .so support | |
10523 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10524 | archive_expsym_cmds='' | |
10525 | ;; | |
10526 | m68k) | |
10527 | 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)' | |
10528 | hardcode_libdir_flag_spec='-L$libdir' | |
10529 | hardcode_minus_L=yes | |
10530 | ;; | |
d9898ee8 | 10531 | esac |
8d138742 | 10532 | ;; |
d9898ee8 | 10533 | |
8d138742 CE |
10534 | beos*) |
10535 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10536 | allow_undefined_flag=unsupported | |
10537 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10538 | # support --undefined. This deserves some investigation. FIXME | |
10539 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10540 | else | |
10541 | ld_shlibs=no | |
10542 | fi | |
10543 | ;; | |
d9898ee8 | 10544 | |
8d138742 CE |
10545 | cygwin* | mingw* | pw32* | cegcc*) |
10546 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10547 | # as there is no search path for DLLs. | |
10548 | hardcode_libdir_flag_spec='-L$libdir' | |
10549 | allow_undefined_flag=unsupported | |
10550 | always_export_symbols=no | |
10551 | enable_shared_with_static_runtimes=yes | |
10552 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d9898ee8 | 10553 | |
8d138742 CE |
10554 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
10555 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10556 | # If the export-symbols file already is a .def file (1st line | |
10557 | # is EXPORTS), use it as is; otherwise, prepend... | |
10558 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10559 | cp $export_symbols $output_objdir/$soname.def; | |
d9898ee8 | 10560 | else |
8d138742 CE |
10561 | echo EXPORTS > $output_objdir/$soname.def; |
10562 | cat $export_symbols >> $output_objdir/$soname.def; | |
10563 | fi~ | |
10564 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
d9898ee8 | 10565 | else |
8d138742 | 10566 | ld_shlibs=no |
d9898ee8 | 10567 | fi |
8d138742 | 10568 | ;; |
d9898ee8 | 10569 | |
8d138742 CE |
10570 | interix[3-9]*) |
10571 | hardcode_direct=no | |
10572 | hardcode_shlibpath_var=no | |
10573 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10574 | export_dynamic_flag_spec='${wl}-E' | |
10575 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10576 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10577 | # default) and relocated if they conflict, which is a slow very memory | |
10578 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10579 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10580 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10581 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10582 | 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' | |
10583 | ;; | |
10584 | ||
10585 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
10586 | tmp_diet=no | |
10587 | if test "$host_os" = linux-dietlibc; then | |
10588 | case $cc_basename in | |
10589 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10590 | esac | |
10591 | fi | |
10592 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10593 | && test "$tmp_diet" = no | |
10594 | then | |
10595 | tmp_addflag= | |
10596 | tmp_sharedflag='-shared' | |
10597 | case $cc_basename,$host_cpu in | |
10598 | pgcc*) # Portland Group C compiler | |
10599 | 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' | |
10600 | tmp_addflag=' $pic_flag' | |
10601 | ;; | |
10602 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
10603 | 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' | |
10604 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10605 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10606 | tmp_addflag=' -i_dynamic' ;; | |
10607 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10608 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10609 | ifc* | ifort*) # Intel Fortran compiler | |
10610 | tmp_addflag=' -nofor_main' ;; | |
10611 | lf95*) # Lahey Fortran 8.1 | |
10612 | whole_archive_flag_spec= | |
10613 | tmp_sharedflag='--shared' ;; | |
10614 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10615 | tmp_sharedflag='-qmkshrobj' | |
10616 | tmp_addflag= ;; | |
10617 | esac | |
10618 | case `$CC -V 2>&1 | sed 5q` in | |
10619 | *Sun\ C*) # Sun C 5.9 | |
10620 | 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' | |
10621 | compiler_needs_object=yes | |
10622 | tmp_sharedflag='-G' ;; | |
10623 | *Sun\ F*) # Sun Fortran 8.3 | |
10624 | tmp_sharedflag='-G' ;; | |
10625 | esac | |
10626 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10627 | ||
10628 | if test "x$supports_anon_versioning" = xyes; then | |
10629 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10630 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10631 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10632 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10633 | fi | |
10634 | ||
10635 | case $cc_basename in | |
10636 | xlf*) | |
10637 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10638 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10639 | hardcode_libdir_flag_spec= | |
10640 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10641 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10642 | if test "x$supports_anon_versioning" = xyes; then | |
10643 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10644 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10645 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10646 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10647 | fi | |
10648 | ;; | |
10649 | esac | |
10650 | else | |
10651 | ld_shlibs=no | |
10652 | fi | |
10653 | ;; | |
10654 | ||
10655 | netbsd*) | |
10656 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10657 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10658 | wlarc= | |
10659 | else | |
10660 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10661 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10662 | fi | |
10663 | ;; | |
10664 | ||
10665 | solaris*) | |
10666 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10667 | ld_shlibs=no | |
10668 | cat <<_LT_EOF 1>&2 | |
10669 | ||
10670 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10671 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10672 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10673 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10674 | *** your PATH or compiler configuration so that the native linker is | |
10675 | *** used, and then restart. | |
10676 | ||
10677 | _LT_EOF | |
10678 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10679 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10680 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10681 | else | |
10682 | ld_shlibs=no | |
10683 | fi | |
10684 | ;; | |
10685 | ||
10686 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10687 | case `$LD -v 2>&1` in | |
10688 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10689 | ld_shlibs=no | |
10690 | cat <<_LT_EOF 1>&2 | |
10691 | ||
10692 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10693 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10694 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10695 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10696 | *** your PATH or compiler configuration so that the native linker is | |
10697 | *** used, and then restart. | |
10698 | ||
10699 | _LT_EOF | |
10700 | ;; | |
10701 | *) | |
10702 | # For security reasons, it is highly recommended that you always | |
10703 | # use absolute paths for naming shared libraries, and exclude the | |
10704 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10705 | # requires that you compile everything twice, which is a pain. | |
10706 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10707 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10708 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10709 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10710 | else | |
10711 | ld_shlibs=no | |
10712 | fi | |
10713 | ;; | |
10714 | esac | |
10715 | ;; | |
10716 | ||
10717 | sunos4*) | |
10718 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10719 | wlarc= | |
10720 | hardcode_direct=yes | |
10721 | hardcode_shlibpath_var=no | |
10722 | ;; | |
10723 | ||
10724 | *) | |
10725 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10726 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10727 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10728 | else | |
10729 | ld_shlibs=no | |
10730 | fi | |
10731 | ;; | |
10732 | esac | |
10733 | ||
10734 | if test "$ld_shlibs" = no; then | |
10735 | runpath_var= | |
10736 | hardcode_libdir_flag_spec= | |
10737 | export_dynamic_flag_spec= | |
10738 | whole_archive_flag_spec= | |
10739 | fi | |
10740 | else | |
10741 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10742 | case $host_os in | |
10743 | aix3*) | |
10744 | allow_undefined_flag=unsupported | |
10745 | always_export_symbols=yes | |
10746 | 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' | |
10747 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10748 | # are no directories specified by -L. | |
10749 | hardcode_minus_L=yes | |
10750 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10751 | # Neither direct hardcoding nor static linking is supported with a | |
10752 | # broken collect2. | |
10753 | hardcode_direct=unsupported | |
10754 | fi | |
10755 | ;; | |
10756 | ||
10757 | aix[4-9]*) | |
10758 | if test "$host_cpu" = ia64; then | |
10759 | # On IA64, the linker does run time linking by default, so we don't | |
10760 | # have to do anything special. | |
10761 | aix_use_runtimelinking=no | |
10762 | exp_sym_flag='-Bexport' | |
10763 | no_entry_flag="" | |
10764 | else | |
10765 | # If we're using GNU nm, then we don't want the "-C" option. | |
10766 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10767 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10768 | 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' | |
10769 | else | |
10770 | 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' | |
10771 | fi | |
10772 | aix_use_runtimelinking=no | |
10773 | ||
10774 | # Test if we are trying to use run time linking or normal | |
10775 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10776 | # need to do runtime linking. | |
10777 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10778 | for ld_flag in $LDFLAGS; do | |
10779 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10780 | aix_use_runtimelinking=yes | |
10781 | break | |
10782 | fi | |
10783 | done | |
10784 | ;; | |
10785 | esac | |
10786 | ||
10787 | exp_sym_flag='-bexport' | |
10788 | no_entry_flag='-bnoentry' | |
10789 | fi | |
10790 | ||
10791 | # When large executables or shared objects are built, AIX ld can | |
10792 | # have problems creating the table of contents. If linking a library | |
10793 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10794 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10795 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10796 | ||
10797 | archive_cmds='' | |
10798 | hardcode_direct=yes | |
10799 | hardcode_direct_absolute=yes | |
10800 | hardcode_libdir_separator=':' | |
10801 | link_all_deplibs=yes | |
10802 | file_list_spec='${wl}-f,' | |
10803 | ||
10804 | if test "$GCC" = yes; then | |
10805 | case $host_os in aix4.[012]|aix4.[012].*) | |
10806 | # We only want to do this on AIX 4.2 and lower, the check | |
10807 | # below for broken collect2 doesn't work under 4.3+ | |
10808 | collect2name=`${CC} -print-prog-name=collect2` | |
10809 | if test -f "$collect2name" && | |
10810 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10811 | then | |
10812 | # We have reworked collect2 | |
10813 | : | |
10814 | else | |
10815 | # We have old collect2 | |
10816 | hardcode_direct=unsupported | |
10817 | # It fails to find uninstalled libraries when the uninstalled | |
10818 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10819 | # to unsupported forces relinking | |
10820 | hardcode_minus_L=yes | |
10821 | hardcode_libdir_flag_spec='-L$libdir' | |
10822 | hardcode_libdir_separator= | |
10823 | fi | |
10824 | ;; | |
10825 | esac | |
10826 | shared_flag='-shared' | |
10827 | if test "$aix_use_runtimelinking" = yes; then | |
10828 | shared_flag="$shared_flag "'${wl}-G' | |
10829 | fi | |
10830 | else | |
10831 | # not using gcc | |
10832 | if test "$host_cpu" = ia64; then | |
10833 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10834 | # chokes on -Wl,-G. The following line is correct: | |
10835 | shared_flag='-G' | |
10836 | else | |
10837 | if test "$aix_use_runtimelinking" = yes; then | |
10838 | shared_flag='${wl}-G' | |
10839 | else | |
10840 | shared_flag='${wl}-bM:SRE' | |
10841 | fi | |
10842 | fi | |
10843 | fi | |
10844 | ||
10845 | export_dynamic_flag_spec='${wl}-bexpall' | |
10846 | # It seems that -bexpall does not export symbols beginning with | |
10847 | # underscore (_), so it is better to generate a list of symbols to export. | |
10848 | always_export_symbols=yes | |
10849 | if test "$aix_use_runtimelinking" = yes; then | |
10850 | # Warning - without using the other runtime loading flags (-brtl), | |
10851 | # -berok will link without error, but may produce a broken library. | |
10852 | allow_undefined_flag='-berok' | |
10853 | # Determine the default libpath from the value encoded in an | |
10854 | # empty executable. | |
10855 | cat >conftest.$ac_ext <<_ACEOF | |
10856 | /* confdefs.h. */ | |
10857 | _ACEOF | |
10858 | cat confdefs.h >>conftest.$ac_ext | |
10859 | cat >>conftest.$ac_ext <<_ACEOF | |
10860 | /* end confdefs.h. */ | |
d9898ee8 | 10861 | |
10862 | int | |
10863 | main () | |
10864 | { | |
10865 | ||
10866 | ; | |
10867 | return 0; | |
10868 | } | |
10869 | _ACEOF | |
10870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 10871 | if { (ac_try="$ac_link" |
10872 | case "(($ac_try" in | |
10873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10874 | *) ac_try_echo=$ac_try;; | |
10875 | esac | |
8d138742 CE |
10876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10877 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 10878 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 10879 | ac_status=$? |
10880 | grep -v '^ *+' conftest.er1 >conftest.err | |
10881 | rm -f conftest.er1 | |
10882 | cat conftest.err >&5 | |
8d138742 | 10883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 10884 | (exit $ac_status); } && { |
8d138742 | 10885 | test -z "$ac_c_werror_flag" || |
dd184caf | 10886 | test ! -s conftest.err |
8d138742 CE |
10887 | } && test -s conftest$ac_exeext && { |
10888 | test "$cross_compiling" = yes || | |
10889 | $as_test_x conftest$ac_exeext | |
10890 | }; then | |
d9898ee8 | 10891 | |
ac40fd9e | 10892 | lt_aix_libpath_sed=' |
10893 | /Import File Strings/,/^$/ { | |
10894 | /^0/ { | |
10895 | s/^0 *\(.*\)$/\1/ | |
10896 | p | |
10897 | } | |
10898 | }' | |
10899 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d9898ee8 | 10900 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e | 10901 | if test -z "$aix_libpath"; then |
10902 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10903 | fi | |
d9898ee8 | 10904 | else |
8d138742 | 10905 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 10906 | sed 's/^/| /' conftest.$ac_ext >&5 |
10907 | ||
dd184caf | 10908 | |
d9898ee8 | 10909 | fi |
dd184caf | 10910 | |
8d138742 | 10911 | rm -rf conftest.dSYM |
dd184caf | 10912 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 10913 | conftest$ac_exeext conftest.$ac_ext |
10914 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10915 | ||
8d138742 CE |
10916 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10917 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
d9898ee8 | 10918 | else |
8d138742 CE |
10919 | if test "$host_cpu" = ia64; then |
10920 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10921 | allow_undefined_flag="-z nodefs" | |
10922 | 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" | |
10923 | else | |
10924 | # Determine the default libpath from the value encoded in an | |
10925 | # empty executable. | |
10926 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 10927 | /* confdefs.h. */ |
10928 | _ACEOF | |
10929 | cat confdefs.h >>conftest.$ac_ext | |
10930 | cat >>conftest.$ac_ext <<_ACEOF | |
10931 | /* end confdefs.h. */ | |
10932 | ||
10933 | int | |
10934 | main () | |
10935 | { | |
10936 | ||
10937 | ; | |
10938 | return 0; | |
10939 | } | |
10940 | _ACEOF | |
10941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 10942 | if { (ac_try="$ac_link" |
10943 | case "(($ac_try" in | |
10944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10945 | *) ac_try_echo=$ac_try;; | |
10946 | esac | |
8d138742 CE |
10947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10948 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 10949 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 10950 | ac_status=$? |
10951 | grep -v '^ *+' conftest.er1 >conftest.err | |
10952 | rm -f conftest.er1 | |
10953 | cat conftest.err >&5 | |
8d138742 | 10954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 10955 | (exit $ac_status); } && { |
8d138742 | 10956 | test -z "$ac_c_werror_flag" || |
dd184caf | 10957 | test ! -s conftest.err |
8d138742 CE |
10958 | } && test -s conftest$ac_exeext && { |
10959 | test "$cross_compiling" = yes || | |
10960 | $as_test_x conftest$ac_exeext | |
10961 | }; then | |
d9898ee8 | 10962 | |
ac40fd9e | 10963 | lt_aix_libpath_sed=' |
10964 | /Import File Strings/,/^$/ { | |
10965 | /^0/ { | |
10966 | s/^0 *\(.*\)$/\1/ | |
10967 | p | |
10968 | } | |
10969 | }' | |
10970 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d9898ee8 | 10971 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e | 10972 | if test -z "$aix_libpath"; then |
10973 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10974 | fi | |
d9898ee8 | 10975 | else |
8d138742 | 10976 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 10977 | sed 's/^/| /' conftest.$ac_ext >&5 |
10978 | ||
dd184caf | 10979 | |
d9898ee8 | 10980 | fi |
dd184caf | 10981 | |
8d138742 | 10982 | rm -rf conftest.dSYM |
dd184caf | 10983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 10984 | conftest$ac_exeext conftest.$ac_ext |
10985 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10986 | ||
8d138742 CE |
10987 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10988 | # Warning - without using the other run time loading flags, | |
10989 | # -berok will link without error, but may produce a broken library. | |
10990 | no_undefined_flag=' ${wl}-bernotok' | |
10991 | allow_undefined_flag=' ${wl}-berok' | |
10992 | # Exported symbols can be pulled into shared objects from archives | |
10993 | whole_archive_flag_spec='$convenience' | |
10994 | archive_cmds_need_lc=yes | |
10995 | # This is similar to how AIX traditionally builds its shared libraries. | |
10996 | 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' | |
10997 | fi | |
d9898ee8 | 10998 | fi |
8d138742 | 10999 | ;; |
d9898ee8 | 11000 | |
8d138742 CE |
11001 | amigaos*) |
11002 | case $host_cpu in | |
11003 | powerpc) | |
11004 | # see comment about AmigaOS4 .so support | |
11005 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11006 | archive_expsym_cmds='' | |
11007 | ;; | |
11008 | m68k) | |
11009 | 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)' | |
11010 | hardcode_libdir_flag_spec='-L$libdir' | |
11011 | hardcode_minus_L=yes | |
11012 | ;; | |
11013 | esac | |
11014 | ;; | |
d9898ee8 | 11015 | |
8d138742 CE |
11016 | bsdi[45]*) |
11017 | export_dynamic_flag_spec=-rdynamic | |
11018 | ;; | |
d9898ee8 | 11019 | |
8d138742 CE |
11020 | cygwin* | mingw* | pw32* | cegcc*) |
11021 | # When not using gcc, we currently assume that we are using | |
11022 | # Microsoft Visual C++. | |
11023 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11024 | # no search path for DLLs. | |
11025 | hardcode_libdir_flag_spec=' ' | |
11026 | allow_undefined_flag=unsupported | |
11027 | # Tell ltmain to make .lib files, not .a files. | |
11028 | libext=lib | |
11029 | # Tell ltmain to make .dll files, not .so files. | |
11030 | shrext_cmds=".dll" | |
11031 | # FIXME: Setting linknames here is a bad hack. | |
11032 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11033 | # The linker will automatically build a .lib file if we build a DLL. | |
11034 | old_archive_from_new_cmds='true' | |
11035 | # FIXME: Should let the user specify the lib program. | |
11036 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11037 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11038 | enable_shared_with_static_runtimes=yes | |
11039 | ;; | |
11040 | ||
11041 | darwin* | rhapsody*) | |
11042 | ||
11043 | ||
11044 | archive_cmds_need_lc=no | |
11045 | hardcode_direct=no | |
11046 | hardcode_automatic=yes | |
11047 | hardcode_shlibpath_var=unsupported | |
11048 | whole_archive_flag_spec='' | |
11049 | link_all_deplibs=yes | |
11050 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
11051 | case $cc_basename in | |
11052 | ifort*) _lt_dar_can_shared=yes ;; | |
11053 | *) _lt_dar_can_shared=$GCC ;; | |
11054 | esac | |
11055 | if test "$_lt_dar_can_shared" = "yes"; then | |
11056 | output_verbose_link_cmd=echo | |
11057 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11058 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11059 | 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}" | |
11060 | 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}" | |
11061 | ||
11062 | else | |
11063 | ld_shlibs=no | |
11064 | fi | |
d9898ee8 | 11065 | |
d9898ee8 | 11066 | ;; |
8d138742 CE |
11067 | |
11068 | dgux*) | |
11069 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11070 | hardcode_libdir_flag_spec='-L$libdir' | |
11071 | hardcode_shlibpath_var=no | |
d9898ee8 | 11072 | ;; |
8d138742 CE |
11073 | |
11074 | freebsd1*) | |
11075 | ld_shlibs=no | |
11076 | ;; | |
11077 | ||
11078 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11079 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11080 | # does not break anything, and helps significantly (at the cost of a little | |
11081 | # extra space). | |
11082 | freebsd2.2*) | |
11083 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11084 | hardcode_libdir_flag_spec='-R$libdir' | |
11085 | hardcode_direct=yes | |
11086 | hardcode_shlibpath_var=no | |
11087 | ;; | |
11088 | ||
11089 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11090 | freebsd2*) | |
11091 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11092 | hardcode_direct=yes | |
11093 | hardcode_minus_L=yes | |
11094 | hardcode_shlibpath_var=no | |
11095 | ;; | |
11096 | ||
11097 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11098 | freebsd* | dragonfly*) | |
11099 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11100 | hardcode_libdir_flag_spec='-R$libdir' | |
11101 | hardcode_direct=yes | |
11102 | hardcode_shlibpath_var=no | |
11103 | ;; | |
11104 | ||
11105 | hpux9*) | |
11106 | if test "$GCC" = yes; then | |
11107 | 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' | |
d9898ee8 | 11108 | else |
8d138742 | 11109 | 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' |
d9898ee8 | 11110 | fi |
8d138742 CE |
11111 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
11112 | hardcode_libdir_separator=: | |
11113 | hardcode_direct=yes | |
d9898ee8 | 11114 | |
8d138742 CE |
11115 | # hardcode_minus_L: Not really in the search PATH, |
11116 | # but as the default location of the library. | |
11117 | hardcode_minus_L=yes | |
11118 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 11119 | ;; |
8d138742 CE |
11120 | |
11121 | hpux10*) | |
11122 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
11123 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11124 | else | |
11125 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11126 | fi | |
11127 | if test "$with_gnu_ld" = no; then | |
11128 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11129 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11130 | hardcode_libdir_separator=: | |
11131 | hardcode_direct=yes | |
11132 | hardcode_direct_absolute=yes | |
11133 | export_dynamic_flag_spec='${wl}-E' | |
11134 | # hardcode_minus_L: Not really in the search PATH, | |
11135 | # but as the default location of the library. | |
11136 | hardcode_minus_L=yes | |
11137 | fi | |
d9898ee8 | 11138 | ;; |
d9898ee8 | 11139 | |
8d138742 CE |
11140 | hpux11*) |
11141 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
d9898ee8 | 11142 | case $host_cpu in |
11143 | hppa*64*) | |
8d138742 | 11144 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 11145 | ;; |
11146 | ia64*) | |
8d138742 | 11147 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 11148 | ;; |
11149 | *) | |
8d138742 | 11150 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 11151 | ;; |
11152 | esac | |
8d138742 CE |
11153 | else |
11154 | case $host_cpu in | |
11155 | hppa*64*) | |
11156 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 11157 | ;; |
8d138742 CE |
11158 | ia64*) |
11159 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11160 | ;; | |
11161 | *) | |
11162 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 11163 | ;; |
11164 | esac | |
8d138742 CE |
11165 | fi |
11166 | if test "$with_gnu_ld" = no; then | |
11167 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11168 | hardcode_libdir_separator=: | |
d9898ee8 | 11169 | |
8d138742 CE |
11170 | case $host_cpu in |
11171 | hppa*64*|ia64*) | |
11172 | hardcode_direct=no | |
11173 | hardcode_shlibpath_var=no | |
11174 | ;; | |
11175 | *) | |
11176 | hardcode_direct=yes | |
11177 | hardcode_direct_absolute=yes | |
11178 | export_dynamic_flag_spec='${wl}-E' | |
11179 | ||
11180 | # hardcode_minus_L: Not really in the search PATH, | |
11181 | # but as the default location of the library. | |
11182 | hardcode_minus_L=yes | |
ac40fd9e | 11183 | ;; |
11184 | esac | |
ac40fd9e | 11185 | fi |
8d138742 | 11186 | ;; |
d9898ee8 | 11187 | |
8d138742 CE |
11188 | irix5* | irix6* | nonstopux*) |
11189 | if test "$GCC" = yes; then | |
11190 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11191 | # Try to use the -exported_symbol ld option, if it does not | |
11192 | # work, assume that -exports_file does not work either and | |
11193 | # implicitly export all symbols. | |
11194 | save_LDFLAGS="$LDFLAGS" | |
11195 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11196 | cat >conftest.$ac_ext <<_ACEOF | |
11197 | int foo(void) {} | |
11198 | _ACEOF | |
11199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11200 | if { (ac_try="$ac_link" | |
11201 | case "(($ac_try" in | |
11202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11203 | *) ac_try_echo=$ac_try;; | |
11204 | esac | |
11205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11206 | $as_echo "$ac_try_echo") >&5 | |
11207 | (eval "$ac_link") 2>conftest.er1 | |
11208 | ac_status=$? | |
11209 | grep -v '^ *+' conftest.er1 >conftest.err | |
11210 | rm -f conftest.er1 | |
11211 | cat conftest.err >&5 | |
11212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11213 | (exit $ac_status); } && { | |
11214 | test -z "$ac_c_werror_flag" || | |
11215 | test ! -s conftest.err | |
11216 | } && test -s conftest$ac_exeext && { | |
11217 | test "$cross_compiling" = yes || | |
11218 | $as_test_x conftest$ac_exeext | |
11219 | }; then | |
11220 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
d9898ee8 | 11221 | |
8d138742 CE |
11222 | else |
11223 | $as_echo "$as_me: failed program was:" >&5 | |
11224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11225 | |
d9898ee8 | 11226 | |
8d138742 | 11227 | fi |
d9898ee8 | 11228 | |
8d138742 CE |
11229 | rm -rf conftest.dSYM |
11230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11231 | conftest$ac_exeext conftest.$ac_ext | |
11232 | LDFLAGS="$save_LDFLAGS" | |
11233 | else | |
11234 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11235 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
11236 | fi | |
11237 | archive_cmds_need_lc='no' | |
11238 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11239 | hardcode_libdir_separator=: | |
11240 | inherit_rpath=yes | |
11241 | link_all_deplibs=yes | |
11242 | ;; | |
d9898ee8 | 11243 | |
8d138742 CE |
11244 | netbsd*) |
11245 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11246 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11247 | else | |
11248 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11249 | fi | |
11250 | hardcode_libdir_flag_spec='-R$libdir' | |
11251 | hardcode_direct=yes | |
11252 | hardcode_shlibpath_var=no | |
11253 | ;; | |
d9898ee8 | 11254 | |
8d138742 CE |
11255 | newsos6) |
11256 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11257 | hardcode_direct=yes | |
11258 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11259 | hardcode_libdir_separator=: | |
11260 | hardcode_shlibpath_var=no | |
11261 | ;; | |
d9898ee8 | 11262 | |
8d138742 CE |
11263 | *nto* | *qnx*) |
11264 | ;; | |
d9898ee8 | 11265 | |
8d138742 CE |
11266 | openbsd*) |
11267 | if test -f /usr/libexec/ld.so; then | |
11268 | hardcode_direct=yes | |
11269 | hardcode_shlibpath_var=no | |
11270 | hardcode_direct_absolute=yes | |
11271 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11272 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11273 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11274 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11275 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 11276 | else |
ac40fd9e | 11277 | case $host_os in |
8d138742 CE |
11278 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
11279 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11280 | hardcode_libdir_flag_spec='-R$libdir' | |
11281 | ;; | |
11282 | *) | |
11283 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11284 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11285 | ;; | |
ac40fd9e | 11286 | esac |
d9898ee8 | 11287 | fi |
8d138742 CE |
11288 | else |
11289 | ld_shlibs=no | |
11290 | fi | |
11291 | ;; | |
d9898ee8 | 11292 | |
8d138742 CE |
11293 | os2*) |
11294 | hardcode_libdir_flag_spec='-L$libdir' | |
11295 | hardcode_minus_L=yes | |
11296 | allow_undefined_flag=unsupported | |
11297 | 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' | |
11298 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11299 | ;; | |
d9898ee8 | 11300 | |
8d138742 CE |
11301 | osf3*) |
11302 | if test "$GCC" = yes; then | |
11303 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11304 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11305 | else | |
11306 | allow_undefined_flag=' -expect_unresolved \*' | |
11307 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11308 | fi | |
11309 | archive_cmds_need_lc='no' | |
11310 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11311 | hardcode_libdir_separator=: | |
11312 | ;; | |
d9898ee8 | 11313 | |
8d138742 CE |
11314 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
11315 | if test "$GCC" = yes; then | |
11316 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11317 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11318 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11319 | else | |
11320 | allow_undefined_flag=' -expect_unresolved \*' | |
11321 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11322 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
11323 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d9898ee8 | 11324 | |
8d138742 CE |
11325 | # Both c and cxx compiler support -rpath directly |
11326 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11327 | fi | |
11328 | archive_cmds_need_lc='no' | |
11329 | hardcode_libdir_separator=: | |
11330 | ;; | |
d9898ee8 | 11331 | |
8d138742 CE |
11332 | solaris*) |
11333 | no_undefined_flag=' -z defs' | |
11334 | if test "$GCC" = yes; then | |
11335 | wlarc='${wl}' | |
11336 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11337 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11338 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11339 | else | |
11340 | case `$CC -V 2>&1` in | |
11341 | *"Compilers 5.0"*) | |
11342 | wlarc='' | |
11343 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11344 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11345 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11346 | ;; | |
11347 | *) | |
11348 | wlarc='${wl}' | |
11349 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11350 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11351 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
d9898ee8 | 11352 | ;; |
11353 | esac | |
8d138742 CE |
11354 | fi |
11355 | hardcode_libdir_flag_spec='-R$libdir' | |
11356 | hardcode_shlibpath_var=no | |
11357 | case $host_os in | |
11358 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11359 | *) | |
11360 | # The compiler driver will combine and reorder linker options, | |
11361 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11362 | # but is careful enough not to reorder. | |
11363 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11364 | if test "$GCC" = yes; then | |
11365 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11366 | else | |
11367 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11368 | fi | |
d9898ee8 | 11369 | ;; |
8d138742 CE |
11370 | esac |
11371 | link_all_deplibs=yes | |
11372 | ;; | |
11373 | ||
11374 | sunos4*) | |
11375 | if test "x$host_vendor" = xsequent; then | |
11376 | # Use $CC to link under sequent, because it throws in some extra .o | |
11377 | # files that make .init and .fini sections work. | |
11378 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11379 | else | |
11380 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11381 | fi | |
11382 | hardcode_libdir_flag_spec='-L$libdir' | |
11383 | hardcode_direct=yes | |
11384 | hardcode_minus_L=yes | |
11385 | hardcode_shlibpath_var=no | |
11386 | ;; | |
11387 | ||
11388 | sysv4) | |
11389 | case $host_vendor in | |
11390 | sni) | |
11391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11392 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 11393 | ;; |
8d138742 CE |
11394 | siemens) |
11395 | ## LD is ld it makes a PLAMLIB | |
11396 | ## CC just makes a GrossModule. | |
11397 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11398 | reload_cmds='$CC -r -o $output$reload_objs' | |
11399 | hardcode_direct=no | |
11400 | ;; | |
11401 | motorola) | |
11402 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11403 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
d9898ee8 | 11404 | ;; |
8d138742 CE |
11405 | esac |
11406 | runpath_var='LD_RUN_PATH' | |
11407 | hardcode_shlibpath_var=no | |
11408 | ;; | |
d9898ee8 | 11409 | |
8d138742 CE |
11410 | sysv4.3*) |
11411 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11412 | hardcode_shlibpath_var=no | |
11413 | export_dynamic_flag_spec='-Bexport' | |
11414 | ;; | |
d9898ee8 | 11415 | |
8d138742 CE |
11416 | sysv4*MP*) |
11417 | if test -d /usr/nec; then | |
11418 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11419 | hardcode_shlibpath_var=no | |
11420 | runpath_var=LD_RUN_PATH | |
11421 | hardcode_runpath_var=yes | |
11422 | ld_shlibs=yes | |
11423 | fi | |
11424 | ;; | |
d9898ee8 | 11425 | |
8d138742 CE |
11426 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11427 | no_undefined_flag='${wl}-z,text' | |
11428 | archive_cmds_need_lc=no | |
11429 | hardcode_shlibpath_var=no | |
11430 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 11431 | |
8d138742 CE |
11432 | if test "$GCC" = yes; then |
11433 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11434 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11435 | else | |
11436 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11437 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11438 | fi | |
11439 | ;; | |
11440 | ||
11441 | sysv5* | sco3.2v5* | sco5v6*) | |
11442 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11443 | # link with -lc, and that would cause any symbols used from libc to | |
11444 | # always be unresolved, which means just about no library would | |
11445 | # ever link correctly. If we're not using GNU ld we use -z text | |
11446 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11447 | # as -z defs. | |
11448 | no_undefined_flag='${wl}-z,text' | |
11449 | allow_undefined_flag='${wl}-z,nodefs' | |
11450 | archive_cmds_need_lc=no | |
11451 | hardcode_shlibpath_var=no | |
11452 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11453 | hardcode_libdir_separator=':' | |
11454 | link_all_deplibs=yes | |
11455 | export_dynamic_flag_spec='${wl}-Bexport' | |
11456 | runpath_var='LD_RUN_PATH' | |
11457 | ||
11458 | if test "$GCC" = yes; then | |
11459 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11460 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11461 | else | |
11462 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11463 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11464 | fi | |
11465 | ;; | |
11466 | ||
11467 | uts4*) | |
11468 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11469 | hardcode_libdir_flag_spec='-L$libdir' | |
11470 | hardcode_shlibpath_var=no | |
11471 | ;; | |
11472 | ||
11473 | *) | |
11474 | ld_shlibs=no | |
11475 | ;; | |
11476 | esac | |
11477 | ||
11478 | if test x$host_vendor = xsni; then | |
11479 | case $host in | |
11480 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11481 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11482 | ;; | |
11483 | esac | |
11484 | fi | |
11485 | fi | |
11486 | ||
11487 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
11488 | $as_echo "$ld_shlibs" >&6; } | |
11489 | test "$ld_shlibs" = no && can_build_shared=no | |
11490 | ||
11491 | with_gnu_ld=$with_gnu_ld | |
d9898ee8 | 11492 | |
d9898ee8 | 11493 | |
d9898ee8 | 11494 | |
d9898ee8 | 11495 | |
d9898ee8 | 11496 | |
d9898ee8 | 11497 | |
11498 | ||
d9898ee8 | 11499 | |
d9898ee8 | 11500 | |
d9898ee8 | 11501 | |
11502 | ||
d9898ee8 | 11503 | |
d9898ee8 | 11504 | |
d9898ee8 | 11505 | |
d9898ee8 | 11506 | |
11507 | # | |
11508 | # Do we need to explicitly link libc? | |
11509 | # | |
8d138742 | 11510 | case "x$archive_cmds_need_lc" in |
d9898ee8 | 11511 | x|xyes) |
11512 | # Assume -lc should be added | |
8d138742 | 11513 | archive_cmds_need_lc=yes |
d9898ee8 | 11514 | |
11515 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8d138742 | 11516 | case $archive_cmds in |
d9898ee8 | 11517 | *'~'*) |
11518 | # FIXME: we may have to deal with multi-command sequences. | |
11519 | ;; | |
11520 | '$CC '*) | |
11521 | # Test whether the compiler implicitly links with -lc since on some | |
11522 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11523 | # to ld, don't add -lc before -lgcc. | |
8d138742 CE |
11524 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11525 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11526 | $RM conftest* | |
ac40fd9e | 11527 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 11528 | |
11529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11530 | (eval $ac_compile) 2>&5 | |
11531 | ac_status=$? | |
8d138742 | 11532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 11533 | (exit $ac_status); } 2>conftest.err; then |
11534 | soname=conftest | |
11535 | lib=conftest | |
11536 | libobjs=conftest.$ac_objext | |
11537 | deplibs= | |
8d138742 CE |
11538 | wl=$lt_prog_compiler_wl |
11539 | pic_flag=$lt_prog_compiler_pic | |
d9898ee8 | 11540 | compiler_flags=-v |
11541 | linker_flags=-v | |
11542 | verstring= | |
11543 | output_objdir=. | |
11544 | libname=conftest | |
8d138742 CE |
11545 | lt_save_allow_undefined_flag=$allow_undefined_flag |
11546 | allow_undefined_flag= | |
11547 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
11548 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
d9898ee8 | 11549 | ac_status=$? |
8d138742 | 11550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 11551 | (exit $ac_status); } |
11552 | then | |
8d138742 | 11553 | archive_cmds_need_lc=no |
d9898ee8 | 11554 | else |
8d138742 | 11555 | archive_cmds_need_lc=yes |
d9898ee8 | 11556 | fi |
8d138742 | 11557 | allow_undefined_flag=$lt_save_allow_undefined_flag |
d9898ee8 | 11558 | else |
11559 | cat conftest.err 1>&5 | |
11560 | fi | |
8d138742 CE |
11561 | $RM conftest* |
11562 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
11563 | $as_echo "$archive_cmds_need_lc" >&6; } | |
d9898ee8 | 11564 | ;; |
11565 | esac | |
11566 | fi | |
11567 | ;; | |
11568 | esac | |
11569 | ||
ac40fd9e | 11570 | |
d9898ee8 | 11571 | |
d9898ee8 | 11572 | |
d9898ee8 | 11573 | |
d9898ee8 | 11574 | |
d9898ee8 | 11575 | |
d9898ee8 | 11576 | |
d9898ee8 | 11577 | |
d9898ee8 | 11578 | |
d9898ee8 | 11579 | |
d9898ee8 | 11580 | |
d9898ee8 | 11581 | |
d9898ee8 | 11582 | |
ac40fd9e | 11583 | |
d9898ee8 | 11584 | |
d9898ee8 | 11585 | |
d9898ee8 | 11586 | |
d9898ee8 | 11587 | |
d9898ee8 | 11588 | |
d9898ee8 | 11589 | |
d9898ee8 | 11590 | |
8d138742 CE |
11591 | |
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
11727 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11728 | ||
11729 | if test "$GCC" = yes; then | |
d9898ee8 | 11730 | case $host_os in |
8d138742 CE |
11731 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
11732 | *) lt_awk_arg="/^libraries:/" ;; | |
d9898ee8 | 11733 | esac |
8d138742 CE |
11734 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11735 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
11736 | # if the path contains ";" then we assume it to be the separator | |
11737 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11738 | # assumed that no part of a normal pathname contains ";" but that should | |
11739 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11740 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
11741 | else | |
11742 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11743 | fi | |
11744 | # Ok, now we have the path, separated by spaces, we can step through it | |
11745 | # and add multilib dir if necessary. | |
11746 | lt_tmp_lt_search_path_spec= | |
11747 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11748 | for lt_sys_path in $lt_search_path_spec; do | |
11749 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11750 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11751 | else | |
11752 | test -d "$lt_sys_path" && \ | |
11753 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11754 | fi | |
11755 | done | |
11756 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
11757 | BEGIN {RS=" "; FS="/|\n";} { | |
11758 | lt_foo=""; | |
11759 | lt_count=0; | |
11760 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11761 | if ($lt_i != "" && $lt_i != ".") { | |
11762 | if ($lt_i == "..") { | |
11763 | lt_count++; | |
11764 | } else { | |
11765 | if (lt_count == 0) { | |
11766 | lt_foo="/" $lt_i lt_foo; | |
11767 | } else { | |
11768 | lt_count--; | |
11769 | } | |
11770 | } | |
11771 | } | |
11772 | } | |
11773 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11774 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11775 | }'` | |
11776 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
11777 | else | |
11778 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11779 | fi | |
11780 | library_names_spec= | |
11781 | libname_spec='lib$name' | |
11782 | soname_spec= | |
11783 | shrext_cmds=".so" | |
11784 | postinstall_cmds= | |
11785 | postuninstall_cmds= | |
11786 | finish_cmds= | |
11787 | finish_eval= | |
11788 | shlibpath_var= | |
11789 | shlibpath_overrides_runpath=unknown | |
11790 | version_type=none | |
11791 | dynamic_linker="$host_os ld.so" | |
11792 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11793 | need_lib_prefix=unknown | |
11794 | hardcode_into_libs=no | |
d9898ee8 | 11795 | |
8d138742 CE |
11796 | # when you set need_version to no, make sure it does not cause -set_version |
11797 | # flags to be left without arguments | |
11798 | need_version=unknown | |
11799 | ||
11800 | case $host_os in | |
11801 | aix3*) | |
11802 | version_type=linux | |
11803 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11804 | shlibpath_var=LIBPATH | |
11805 | ||
11806 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11807 | soname_spec='${libname}${release}${shared_ext}$major' | |
d9898ee8 | 11808 | ;; |
11809 | ||
8d138742 | 11810 | aix[4-9]*) |
d9898ee8 | 11811 | version_type=linux |
11812 | need_lib_prefix=no | |
11813 | need_version=no | |
d9898ee8 | 11814 | hardcode_into_libs=yes |
8d138742 CE |
11815 | if test "$host_cpu" = ia64; then |
11816 | # AIX 5 supports IA64 | |
11817 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11818 | shlibpath_var=LD_LIBRARY_PATH | |
11819 | else | |
11820 | # With GCC up to 2.95.x, collect2 would create an import file | |
11821 | # for dependence libraries. The import file would start with | |
11822 | # the line `#! .'. This would cause the generated library to | |
11823 | # depend on `.', always an invalid library. This was fixed in | |
11824 | # development snapshots of GCC prior to 3.0. | |
11825 | case $host_os in | |
11826 | aix4 | aix4.[01] | aix4.[01].*) | |
11827 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11828 | echo ' yes ' | |
11829 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11830 | : | |
11831 | else | |
11832 | can_build_shared=no | |
11833 | fi | |
11834 | ;; | |
11835 | esac | |
11836 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11837 | # soname into executable. Probably we can add versioning support to | |
11838 | # collect2, so additional links can be useful in future. | |
11839 | if test "$aix_use_runtimelinking" = yes; then | |
11840 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11841 | # instead of lib<name>.a to let people know that these are not | |
11842 | # typical AIX shared libraries. | |
11843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11844 | else | |
11845 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11846 | # and later when we are not doing run time linking. | |
11847 | library_names_spec='${libname}${release}.a $libname.a' | |
11848 | soname_spec='${libname}${release}${shared_ext}$major' | |
11849 | fi | |
11850 | shlibpath_var=LIBPATH | |
d9898ee8 | 11851 | fi |
d9898ee8 | 11852 | ;; |
11853 | ||
8d138742 CE |
11854 | amigaos*) |
11855 | case $host_cpu in | |
11856 | powerpc) | |
11857 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11858 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11860 | ;; | |
11861 | m68k) | |
11862 | library_names_spec='$libname.ixlibrary $libname.a' | |
11863 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11864 | 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' | |
11865 | ;; | |
11866 | esac | |
d9898ee8 | 11867 | ;; |
11868 | ||
8d138742 CE |
11869 | beos*) |
11870 | library_names_spec='${libname}${shared_ext}' | |
11871 | dynamic_linker="$host_os ld.so" | |
11872 | shlibpath_var=LIBRARY_PATH | |
d9898ee8 | 11873 | ;; |
11874 | ||
8d138742 | 11875 | bsdi[45]*) |
d9898ee8 | 11876 | version_type=linux |
d9898ee8 | 11877 | need_version=no |
11878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11879 | soname_spec='${libname}${release}${shared_ext}$major' | |
8d138742 | 11880 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
d9898ee8 | 11881 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11882 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11883 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11884 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11885 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11886 | # libtool to hard-code these into programs | |
d9898ee8 | 11887 | ;; |
11888 | ||
8d138742 CE |
11889 | cygwin* | mingw* | pw32* | cegcc*) |
11890 | version_type=windows | |
d9898ee8 | 11891 | shrext_cmds=".dll" |
d9898ee8 | 11892 | need_version=no |
d9898ee8 | 11893 | need_lib_prefix=no |
d9898ee8 | 11894 | |
8d138742 CE |
11895 | case $GCC,$host_os in |
11896 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11897 | library_names_spec='$libname.dll.a' | |
11898 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11899 | postinstall_cmds='base_file=`basename \${file}`~ | |
11900 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11901 | dldir=$destdir/`dirname \$dlpath`~ | |
11902 | test -d \$dldir || mkdir -p \$dldir~ | |
11903 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11904 | chmod a+x \$dldir/$dlname~ | |
11905 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11906 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11907 | fi' | |
11908 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11909 | dlpath=$dir/\$dldll~ | |
11910 | $RM \$dlpath' | |
11911 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11912 | |
8d138742 CE |
11913 | case $host_os in |
11914 | cygwin*) | |
11915 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11916 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11917 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
d9898ee8 | 11918 | ;; |
8d138742 CE |
11919 | mingw* | cegcc*) |
11920 | # MinGW DLLs use traditional 'lib' prefix | |
11921 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11922 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11923 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11924 | # It is most probably a Windows format PATH printed by | |
11925 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11926 | # path with ; separators, and with drive letters. We can handle the | |
11927 | # drive letters (cygwin fileutils understands them), so leave them, | |
11928 | # especially as we might pass files found there to a mingw objdump, | |
11929 | # which wouldn't understand a cygwinified path. Ahh. | |
11930 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11931 | else | |
11932 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11933 | fi | |
d9898ee8 | 11934 | ;; |
8d138742 CE |
11935 | pw32*) |
11936 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11937 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d9898ee8 | 11938 | ;; |
8d138742 CE |
11939 | esac |
11940 | ;; | |
d9898ee8 | 11941 | |
8d138742 CE |
11942 | *) |
11943 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11944 | ;; | |
11945 | esac | |
11946 | dynamic_linker='Win32 ld.exe' | |
11947 | # FIXME: first we should search . and the directory the executable is in | |
11948 | shlibpath_var=PATH | |
d9898ee8 | 11949 | ;; |
11950 | ||
8d138742 CE |
11951 | darwin* | rhapsody*) |
11952 | dynamic_linker="$host_os dyld" | |
11953 | version_type=darwin | |
d9898ee8 | 11954 | need_lib_prefix=no |
11955 | need_version=no | |
8d138742 CE |
11956 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
11957 | soname_spec='${libname}${release}${major}$shared_ext' | |
11958 | shlibpath_overrides_runpath=yes | |
11959 | shlibpath_var=DYLD_LIBRARY_PATH | |
11960 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11961 | ||
11962 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11963 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
d9898ee8 | 11964 | ;; |
11965 | ||
8d138742 | 11966 | dgux*) |
d9898ee8 | 11967 | version_type=linux |
8d138742 CE |
11968 | need_lib_prefix=no |
11969 | need_version=no | |
11970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
d9898ee8 | 11971 | soname_spec='${libname}${release}${shared_ext}$major' |
11972 | shlibpath_var=LD_LIBRARY_PATH | |
11973 | ;; | |
11974 | ||
8d138742 | 11975 | freebsd1*) |
d9898ee8 | 11976 | dynamic_linker=no |
11977 | ;; | |
d9898ee8 | 11978 | |
8d138742 CE |
11979 | freebsd* | dragonfly*) |
11980 | # DragonFly does not have aout. When/if they implement a new | |
11981 | # versioning mechanism, adjust this. | |
11982 | if test -x /usr/bin/objformat; then | |
11983 | objformat=`/usr/bin/objformat` | |
d9898ee8 | 11984 | else |
8d138742 CE |
11985 | case $host_os in |
11986 | freebsd[123]*) objformat=aout ;; | |
11987 | *) objformat=elf ;; | |
11988 | esac | |
d9898ee8 | 11989 | fi |
8d138742 CE |
11990 | version_type=freebsd-$objformat |
11991 | case $version_type in | |
11992 | freebsd-elf*) | |
11993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11994 | need_version=no | |
11995 | need_lib_prefix=no | |
d9898ee8 | 11996 | ;; |
8d138742 CE |
11997 | freebsd-*) |
11998 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11999 | need_version=yes | |
d9898ee8 | 12000 | ;; |
8d138742 CE |
12001 | esac |
12002 | shlibpath_var=LD_LIBRARY_PATH | |
12003 | case $host_os in | |
12004 | freebsd2*) | |
12005 | shlibpath_overrides_runpath=yes | |
12006 | ;; | |
12007 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12008 | shlibpath_overrides_runpath=yes | |
12009 | hardcode_into_libs=yes | |
12010 | ;; | |
12011 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12012 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12013 | shlibpath_overrides_runpath=no | |
12014 | hardcode_into_libs=yes | |
12015 | ;; | |
12016 | *) # from 4.6 on, and DragonFly | |
12017 | shlibpath_overrides_runpath=yes | |
12018 | hardcode_into_libs=yes | |
d9898ee8 | 12019 | ;; |
12020 | esac | |
8d138742 | 12021 | ;; |
d9898ee8 | 12022 | |
8d138742 CE |
12023 | gnu*) |
12024 | version_type=linux | |
12025 | need_lib_prefix=no | |
12026 | need_version=no | |
12027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12028 | soname_spec='${libname}${release}${shared_ext}$major' | |
12029 | shlibpath_var=LD_LIBRARY_PATH | |
12030 | hardcode_into_libs=yes | |
12031 | ;; | |
d9898ee8 | 12032 | |
8d138742 CE |
12033 | hpux9* | hpux10* | hpux11*) |
12034 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12035 | # link against other versions. | |
12036 | version_type=sunos | |
12037 | need_lib_prefix=no | |
12038 | need_version=no | |
12039 | case $host_cpu in | |
12040 | ia64*) | |
12041 | shrext_cmds='.so' | |
12042 | hardcode_into_libs=yes | |
12043 | dynamic_linker="$host_os dld.so" | |
12044 | shlibpath_var=LD_LIBRARY_PATH | |
12045 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12047 | soname_spec='${libname}${release}${shared_ext}$major' | |
12048 | if test "X$HPUX_IA64_MODE" = X32; then | |
12049 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12050 | else | |
12051 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12052 | fi | |
12053 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12054 | ;; | |
12055 | hppa*64*) | |
12056 | shrext_cmds='.sl' | |
12057 | hardcode_into_libs=yes | |
12058 | dynamic_linker="$host_os dld.sl" | |
12059 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12060 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12062 | soname_spec='${libname}${release}${shared_ext}$major' | |
12063 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12064 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12065 | ;; | |
12066 | *) | |
12067 | shrext_cmds='.sl' | |
12068 | dynamic_linker="$host_os dld.sl" | |
12069 | shlibpath_var=SHLIB_PATH | |
12070 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12072 | soname_spec='${libname}${release}${shared_ext}$major' | |
12073 | ;; | |
12074 | esac | |
12075 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12076 | postinstall_cmds='chmod 555 $lib' | |
12077 | ;; | |
d9898ee8 | 12078 | |
8d138742 CE |
12079 | interix[3-9]*) |
12080 | version_type=linux | |
12081 | need_lib_prefix=no | |
12082 | need_version=no | |
12083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12084 | soname_spec='${libname}${release}${shared_ext}$major' | |
12085 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12086 | shlibpath_var=LD_LIBRARY_PATH | |
12087 | shlibpath_overrides_runpath=no | |
12088 | hardcode_into_libs=yes | |
12089 | ;; | |
d9898ee8 | 12090 | |
8d138742 CE |
12091 | irix5* | irix6* | nonstopux*) |
12092 | case $host_os in | |
12093 | nonstopux*) version_type=nonstopux ;; | |
12094 | *) | |
12095 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12096 | version_type=linux | |
12097 | else | |
12098 | version_type=irix | |
12099 | fi ;; | |
12100 | esac | |
12101 | need_lib_prefix=no | |
12102 | need_version=no | |
12103 | soname_spec='${libname}${release}${shared_ext}$major' | |
12104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12105 | case $host_os in | |
12106 | irix5* | nonstopux*) | |
12107 | libsuff= shlibsuff= | |
12108 | ;; | |
12109 | *) | |
12110 | case $LD in # libtool.m4 will add one of these switches to LD | |
12111 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12112 | libsuff= shlibsuff= libmagic=32-bit;; | |
12113 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12114 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12115 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12116 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12117 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12118 | esac | |
12119 | ;; | |
12120 | esac | |
12121 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12122 | shlibpath_overrides_runpath=no | |
12123 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12124 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12125 | hardcode_into_libs=yes | |
12126 | ;; | |
d9898ee8 | 12127 | |
8d138742 CE |
12128 | # No shared lib support for Linux oldld, aout, or coff. |
12129 | linux*oldld* | linux*aout* | linux*coff*) | |
12130 | dynamic_linker=no | |
12131 | ;; | |
d9898ee8 | 12132 | |
8d138742 CE |
12133 | # This must be Linux ELF. |
12134 | linux* | k*bsd*-gnu) | |
12135 | version_type=linux | |
12136 | need_lib_prefix=no | |
12137 | need_version=no | |
12138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12139 | soname_spec='${libname}${release}${shared_ext}$major' | |
12140 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12141 | shlibpath_var=LD_LIBRARY_PATH | |
12142 | shlibpath_overrides_runpath=no | |
12143 | # Some binutils ld are patched to set DT_RUNPATH | |
12144 | save_LDFLAGS=$LDFLAGS | |
12145 | save_libdir=$libdir | |
12146 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12147 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12148 | cat >conftest.$ac_ext <<_ACEOF | |
12149 | /* confdefs.h. */ | |
12150 | _ACEOF | |
12151 | cat confdefs.h >>conftest.$ac_ext | |
12152 | cat >>conftest.$ac_ext <<_ACEOF | |
12153 | /* end confdefs.h. */ | |
d9898ee8 | 12154 | |
8d138742 CE |
12155 | int |
12156 | main () | |
12157 | { | |
d9898ee8 | 12158 | |
8d138742 CE |
12159 | ; |
12160 | return 0; | |
12161 | } | |
12162 | _ACEOF | |
12163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12164 | if { (ac_try="$ac_link" | |
12165 | case "(($ac_try" in | |
12166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12167 | *) ac_try_echo=$ac_try;; | |
12168 | esac | |
12169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12170 | $as_echo "$ac_try_echo") >&5 | |
12171 | (eval "$ac_link") 2>conftest.er1 | |
12172 | ac_status=$? | |
12173 | grep -v '^ *+' conftest.er1 >conftest.err | |
12174 | rm -f conftest.er1 | |
12175 | cat conftest.err >&5 | |
12176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); } && { | |
12178 | test -z "$ac_c_werror_flag" || | |
12179 | test ! -s conftest.err | |
12180 | } && test -s conftest$ac_exeext && { | |
12181 | test "$cross_compiling" = yes || | |
12182 | $as_test_x conftest$ac_exeext | |
12183 | }; then | |
12184 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
12185 | shlibpath_overrides_runpath=yes | |
12186 | fi | |
d9898ee8 | 12187 | |
8d138742 CE |
12188 | else |
12189 | $as_echo "$as_me: failed program was:" >&5 | |
12190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12191 | |
d9898ee8 | 12192 | |
8d138742 | 12193 | fi |
d9898ee8 | 12194 | |
8d138742 CE |
12195 | rm -rf conftest.dSYM |
12196 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12197 | conftest$ac_exeext conftest.$ac_ext | |
12198 | LDFLAGS=$save_LDFLAGS | |
12199 | libdir=$save_libdir | |
d9898ee8 | 12200 | |
8d138742 CE |
12201 | # This implies no fast_install, which is unacceptable. |
12202 | # Some rework will be needed to allow for fast_install | |
12203 | # before this can be enabled. | |
12204 | hardcode_into_libs=yes | |
d9898ee8 | 12205 | |
8d138742 CE |
12206 | # Add ABI-specific directories to the system library path. |
12207 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 12208 | |
8d138742 CE |
12209 | # Append ld.so.conf contents to the search path |
12210 | if test -f /etc/ld.so.conf; then | |
12211 | 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' ' '` | |
12212 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
12213 | fi | |
d9898ee8 | 12214 | |
8d138742 CE |
12215 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12216 | # powerpc, because MkLinux only supported shared libraries with the | |
12217 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12218 | # most powerpc-linux boxes support dynamic linking these days and | |
12219 | # people can always --disable-shared, the test was removed, and we | |
12220 | # assume the GNU/Linux dynamic linker is in use. | |
12221 | dynamic_linker='GNU/Linux ld.so' | |
12222 | ;; | |
d9898ee8 | 12223 | |
8d138742 CE |
12224 | netbsd*) |
12225 | version_type=sunos | |
12226 | need_lib_prefix=no | |
12227 | need_version=no | |
12228 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12230 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12231 | dynamic_linker='NetBSD (a.out) ld.so' | |
12232 | else | |
12233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12234 | soname_spec='${libname}${release}${shared_ext}$major' | |
12235 | dynamic_linker='NetBSD ld.elf_so' | |
12236 | fi | |
12237 | shlibpath_var=LD_LIBRARY_PATH | |
12238 | shlibpath_overrides_runpath=yes | |
12239 | hardcode_into_libs=yes | |
12240 | ;; | |
d9898ee8 | 12241 | |
8d138742 CE |
12242 | newsos6) |
12243 | version_type=linux | |
12244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12245 | shlibpath_var=LD_LIBRARY_PATH | |
12246 | shlibpath_overrides_runpath=yes | |
12247 | ;; | |
d9898ee8 | 12248 | |
8d138742 CE |
12249 | *nto* | *qnx*) |
12250 | version_type=qnx | |
12251 | need_lib_prefix=no | |
12252 | need_version=no | |
12253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12254 | soname_spec='${libname}${release}${shared_ext}$major' | |
12255 | shlibpath_var=LD_LIBRARY_PATH | |
12256 | shlibpath_overrides_runpath=no | |
12257 | hardcode_into_libs=yes | |
12258 | dynamic_linker='ldqnx.so' | |
12259 | ;; | |
d9898ee8 | 12260 | |
8d138742 CE |
12261 | openbsd*) |
12262 | version_type=sunos | |
12263 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12264 | need_lib_prefix=no | |
12265 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12266 | case $host_os in | |
12267 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12268 | *) need_version=no ;; | |
12269 | esac | |
12270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12271 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12272 | shlibpath_var=LD_LIBRARY_PATH | |
12273 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12274 | case $host_os in | |
12275 | openbsd2.[89] | openbsd2.[89].*) | |
12276 | shlibpath_overrides_runpath=no | |
12277 | ;; | |
12278 | *) | |
12279 | shlibpath_overrides_runpath=yes | |
12280 | ;; | |
12281 | esac | |
12282 | else | |
12283 | shlibpath_overrides_runpath=yes | |
12284 | fi | |
12285 | ;; | |
d9898ee8 | 12286 | |
8d138742 CE |
12287 | os2*) |
12288 | libname_spec='$name' | |
12289 | shrext_cmds=".dll" | |
12290 | need_lib_prefix=no | |
12291 | library_names_spec='$libname${shared_ext} $libname.a' | |
12292 | dynamic_linker='OS/2 ld.exe' | |
12293 | shlibpath_var=LIBPATH | |
12294 | ;; | |
d9898ee8 | 12295 | |
8d138742 CE |
12296 | osf3* | osf4* | osf5*) |
12297 | version_type=osf | |
12298 | need_lib_prefix=no | |
12299 | need_version=no | |
12300 | soname_spec='${libname}${release}${shared_ext}$major' | |
12301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12302 | shlibpath_var=LD_LIBRARY_PATH | |
12303 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12304 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12305 | ;; | |
d9898ee8 | 12306 | |
8d138742 CE |
12307 | rdos*) |
12308 | dynamic_linker=no | |
12309 | ;; | |
d9898ee8 | 12310 | |
8d138742 CE |
12311 | solaris*) |
12312 | version_type=linux | |
12313 | need_lib_prefix=no | |
12314 | need_version=no | |
12315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12316 | soname_spec='${libname}${release}${shared_ext}$major' | |
12317 | shlibpath_var=LD_LIBRARY_PATH | |
12318 | shlibpath_overrides_runpath=yes | |
12319 | hardcode_into_libs=yes | |
12320 | # ldd complains unless libraries are executable | |
12321 | postinstall_cmds='chmod +x $lib' | |
12322 | ;; | |
d9898ee8 | 12323 | |
8d138742 CE |
12324 | sunos4*) |
12325 | version_type=sunos | |
12326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12327 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12328 | shlibpath_var=LD_LIBRARY_PATH | |
12329 | shlibpath_overrides_runpath=yes | |
12330 | if test "$with_gnu_ld" = yes; then | |
12331 | need_lib_prefix=no | |
12332 | fi | |
12333 | need_version=yes | |
12334 | ;; | |
d9898ee8 | 12335 | |
8d138742 CE |
12336 | sysv4 | sysv4.3*) |
12337 | version_type=linux | |
12338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12339 | soname_spec='${libname}${release}${shared_ext}$major' | |
12340 | shlibpath_var=LD_LIBRARY_PATH | |
12341 | case $host_vendor in | |
12342 | sni) | |
12343 | shlibpath_overrides_runpath=no | |
12344 | need_lib_prefix=no | |
12345 | runpath_var=LD_RUN_PATH | |
12346 | ;; | |
12347 | siemens) | |
12348 | need_lib_prefix=no | |
12349 | ;; | |
12350 | motorola) | |
12351 | need_lib_prefix=no | |
12352 | need_version=no | |
12353 | shlibpath_overrides_runpath=no | |
12354 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12355 | ;; | |
12356 | esac | |
12357 | ;; | |
d9898ee8 | 12358 | |
8d138742 CE |
12359 | sysv4*MP*) |
12360 | if test -d /usr/nec ;then | |
12361 | version_type=linux | |
12362 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12363 | soname_spec='$libname${shared_ext}.$major' | |
12364 | shlibpath_var=LD_LIBRARY_PATH | |
12365 | fi | |
12366 | ;; | |
d9898ee8 | 12367 | |
8d138742 CE |
12368 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12369 | version_type=freebsd-elf | |
12370 | need_lib_prefix=no | |
12371 | need_version=no | |
12372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12373 | soname_spec='${libname}${release}${shared_ext}$major' | |
12374 | shlibpath_var=LD_LIBRARY_PATH | |
12375 | shlibpath_overrides_runpath=yes | |
12376 | hardcode_into_libs=yes | |
12377 | if test "$with_gnu_ld" = yes; then | |
12378 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12379 | else | |
12380 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12381 | case $host_os in | |
12382 | sco3.2v5*) | |
12383 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12384 | ;; | |
12385 | esac | |
12386 | fi | |
12387 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12388 | ;; | |
d9898ee8 | 12389 | |
8d138742 CE |
12390 | tpf*) |
12391 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12392 | version_type=linux | |
12393 | need_lib_prefix=no | |
12394 | need_version=no | |
12395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12396 | shlibpath_var=LD_LIBRARY_PATH | |
12397 | shlibpath_overrides_runpath=no | |
12398 | hardcode_into_libs=yes | |
12399 | ;; | |
d9898ee8 | 12400 | |
8d138742 CE |
12401 | uts4*) |
12402 | version_type=linux | |
12403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12404 | soname_spec='${libname}${release}${shared_ext}$major' | |
12405 | shlibpath_var=LD_LIBRARY_PATH | |
12406 | ;; | |
d9898ee8 | 12407 | |
8d138742 CE |
12408 | *) |
12409 | dynamic_linker=no | |
12410 | ;; | |
12411 | esac | |
12412 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12413 | $as_echo "$dynamic_linker" >&6; } | |
12414 | test "$dynamic_linker" = no && can_build_shared=no | |
d9898ee8 | 12415 | |
8d138742 CE |
12416 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12417 | if test "$GCC" = yes; then | |
12418 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12419 | fi | |
d9898ee8 | 12420 | |
8d138742 CE |
12421 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12422 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12423 | fi | |
12424 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12425 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12426 | fi | |
d9898ee8 | 12427 | |
d9898ee8 | 12428 | |
d9898ee8 | 12429 | |
d9898ee8 | 12430 | |
d9898ee8 | 12431 | |
d9898ee8 | 12432 | |
d9898ee8 | 12433 | |
d9898ee8 | 12434 | |
d9898ee8 | 12435 | |
d9898ee8 | 12436 | |
d9898ee8 | 12437 | |
d9898ee8 | 12438 | |
d9898ee8 | 12439 | |
d9898ee8 | 12440 | |
d9898ee8 | 12441 | |
d9898ee8 | 12442 | |
d9898ee8 | 12443 | |
d9898ee8 | 12444 | |
d9898ee8 | 12445 | |
d9898ee8 | 12446 | |
d9898ee8 | 12447 | |
12448 | ||
d9898ee8 | 12449 | |
12450 | ||
d9898ee8 | 12451 | |
d9898ee8 | 12452 | |
d9898ee8 | 12453 | |
d9898ee8 | 12454 | |
d9898ee8 | 12455 | |
d9898ee8 | 12456 | |
d9898ee8 | 12457 | |
d9898ee8 | 12458 | |
d9898ee8 | 12459 | |
d9898ee8 | 12460 | |
12461 | ||
d9898ee8 | 12462 | |
d9898ee8 | 12463 | |
12464 | ||
d9898ee8 | 12465 | |
12466 | ||
d9898ee8 | 12467 | |
d9898ee8 | 12468 | |
d9898ee8 | 12469 | |
d9898ee8 | 12470 | |
d9898ee8 | 12471 | |
d9898ee8 | 12472 | |
d9898ee8 | 12473 | |
d9898ee8 | 12474 | |
d9898ee8 | 12475 | |
d9898ee8 | 12476 | |
d9898ee8 | 12477 | |
d9898ee8 | 12478 | |
d9898ee8 | 12479 | |
d9898ee8 | 12480 | |
d9898ee8 | 12481 | |
d9898ee8 | 12482 | |
d9898ee8 | 12483 | |
d9898ee8 | 12484 | |
d9898ee8 | 12485 | |
d9898ee8 | 12486 | |
d9898ee8 | 12487 | |
d9898ee8 | 12488 | |
d9898ee8 | 12489 | |
d9898ee8 | 12490 | |
ac40fd9e | 12491 | |
d9898ee8 | 12492 | |
d9898ee8 | 12493 | |
d9898ee8 | 12494 | |
d9898ee8 | 12495 | |
d9898ee8 | 12496 | |
d9898ee8 | 12497 | |
d9898ee8 | 12498 | |
d9898ee8 | 12499 | |
d9898ee8 | 12500 | |
d9898ee8 | 12501 | |
d9898ee8 | 12502 | |
d9898ee8 | 12503 | |
d9898ee8 | 12504 | |
d9898ee8 | 12505 | |
d9898ee8 | 12506 | |
d9898ee8 | 12507 | |
d9898ee8 | 12508 | |
12509 | ||
d9898ee8 | 12510 | |
d9898ee8 | 12511 | |
d9898ee8 | 12512 | |
12513 | ||
8d138742 CE |
12514 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12515 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12516 | hardcode_action= | |
12517 | if test -n "$hardcode_libdir_flag_spec" || | |
12518 | test -n "$runpath_var" || | |
12519 | test "X$hardcode_automatic" = "Xyes" ; then | |
12520 | ||
12521 | # We can hardcode non-existent directories. | |
12522 | if test "$hardcode_direct" != no && | |
12523 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12524 | # have to relink, otherwise we might link with an installed library | |
12525 | # when we should be linking with a yet-to-be-installed one | |
12526 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12527 | test "$hardcode_minus_L" != no; then | |
12528 | # Linking always hardcodes the temporary library directory. | |
12529 | hardcode_action=relink | |
12530 | else | |
12531 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12532 | hardcode_action=immediate | |
d9898ee8 | 12533 | fi |
12534 | else | |
8d138742 CE |
12535 | # We cannot hardcode anything, or else we can only hardcode existing |
12536 | # directories. | |
12537 | hardcode_action=unsupported | |
d9898ee8 | 12538 | fi |
8d138742 CE |
12539 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
12540 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 12541 | |
8d138742 CE |
12542 | if test "$hardcode_action" = relink || |
12543 | test "$inherit_rpath" = yes; then | |
12544 | # Fast installation is not supported | |
12545 | enable_fast_install=no | |
12546 | elif test "$shlibpath_overrides_runpath" = yes || | |
12547 | test "$enable_shared" = no; then | |
12548 | # Fast installation is not necessary | |
12549 | enable_fast_install=needless | |
12550 | fi | |
d9898ee8 | 12551 | |
d9898ee8 | 12552 | |
d9898ee8 | 12553 | |
d9898ee8 | 12554 | |
d9898ee8 | 12555 | |
d9898ee8 | 12556 | |
8d138742 CE |
12557 | if test "x$enable_dlopen" != xyes; then |
12558 | enable_dlopen=unknown | |
12559 | enable_dlopen_self=unknown | |
12560 | enable_dlopen_self_static=unknown | |
12561 | else | |
12562 | lt_cv_dlopen=no | |
12563 | lt_cv_dlopen_libs= | |
d9898ee8 | 12564 | |
8d138742 CE |
12565 | case $host_os in |
12566 | beos*) | |
12567 | lt_cv_dlopen="load_add_on" | |
12568 | lt_cv_dlopen_libs= | |
12569 | lt_cv_dlopen_self=yes | |
12570 | ;; | |
d9898ee8 | 12571 | |
8d138742 CE |
12572 | mingw* | pw32* | cegcc*) |
12573 | lt_cv_dlopen="LoadLibrary" | |
12574 | lt_cv_dlopen_libs= | |
12575 | ;; | |
d9898ee8 | 12576 | |
8d138742 CE |
12577 | cygwin*) |
12578 | lt_cv_dlopen="dlopen" | |
12579 | lt_cv_dlopen_libs= | |
12580 | ;; | |
12581 | ||
12582 | darwin*) | |
12583 | # if libdl is installed we need to link against it | |
12584 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
12585 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12586 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12587 | $as_echo_n "(cached) " >&6 | |
12588 | else | |
12589 | ac_check_lib_save_LIBS=$LIBS | |
12590 | LIBS="-ldl $LIBS" | |
12591 | cat >conftest.$ac_ext <<_ACEOF | |
12592 | /* confdefs.h. */ | |
12593 | _ACEOF | |
12594 | cat confdefs.h >>conftest.$ac_ext | |
12595 | cat >>conftest.$ac_ext <<_ACEOF | |
12596 | /* end confdefs.h. */ | |
d9898ee8 | 12597 | |
8d138742 CE |
12598 | /* Override any GCC internal prototype to avoid an error. |
12599 | Use char because int might match the return type of a GCC | |
12600 | builtin and then its argument prototype would still apply. */ | |
12601 | #ifdef __cplusplus | |
12602 | extern "C" | |
12603 | #endif | |
12604 | char dlopen (); | |
12605 | int | |
12606 | main () | |
12607 | { | |
12608 | return dlopen (); | |
12609 | ; | |
12610 | return 0; | |
12611 | } | |
12612 | _ACEOF | |
12613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12614 | if { (ac_try="$ac_link" | |
12615 | case "(($ac_try" in | |
12616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12617 | *) ac_try_echo=$ac_try;; | |
12618 | esac | |
12619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12620 | $as_echo "$ac_try_echo") >&5 | |
12621 | (eval "$ac_link") 2>conftest.er1 | |
12622 | ac_status=$? | |
12623 | grep -v '^ *+' conftest.er1 >conftest.err | |
12624 | rm -f conftest.er1 | |
12625 | cat conftest.err >&5 | |
12626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); } && { | |
12628 | test -z "$ac_c_werror_flag" || | |
12629 | test ! -s conftest.err | |
12630 | } && test -s conftest$ac_exeext && { | |
12631 | test "$cross_compiling" = yes || | |
12632 | $as_test_x conftest$ac_exeext | |
12633 | }; then | |
12634 | ac_cv_lib_dl_dlopen=yes | |
12635 | else | |
12636 | $as_echo "$as_me: failed program was:" >&5 | |
12637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12638 | |
8d138742 CE |
12639 | ac_cv_lib_dl_dlopen=no |
12640 | fi | |
d9898ee8 | 12641 | |
8d138742 CE |
12642 | rm -rf conftest.dSYM |
12643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12644 | conftest$ac_exeext conftest.$ac_ext | |
12645 | LIBS=$ac_check_lib_save_LIBS | |
12646 | fi | |
12647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12648 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12649 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
12650 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12651 | else | |
d9898ee8 | 12652 | |
8d138742 CE |
12653 | lt_cv_dlopen="dyld" |
12654 | lt_cv_dlopen_libs= | |
12655 | lt_cv_dlopen_self=yes | |
d9898ee8 | 12656 | |
8d138742 | 12657 | fi |
d9898ee8 | 12658 | |
8d138742 | 12659 | ;; |
d9898ee8 | 12660 | |
8d138742 CE |
12661 | *) |
12662 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
12663 | $as_echo_n "checking for shl_load... " >&6; } | |
12664 | if test "${ac_cv_func_shl_load+set}" = set; then | |
12665 | $as_echo_n "(cached) " >&6 | |
12666 | else | |
12667 | cat >conftest.$ac_ext <<_ACEOF | |
12668 | /* confdefs.h. */ | |
12669 | _ACEOF | |
12670 | cat confdefs.h >>conftest.$ac_ext | |
12671 | cat >>conftest.$ac_ext <<_ACEOF | |
12672 | /* end confdefs.h. */ | |
12673 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
12674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12675 | #define shl_load innocuous_shl_load | |
d9898ee8 | 12676 | |
8d138742 CE |
12677 | /* System header to define __stub macros and hopefully few prototypes, |
12678 | which can conflict with char shl_load (); below. | |
12679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12680 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 12681 | |
8d138742 CE |
12682 | #ifdef __STDC__ |
12683 | # include <limits.h> | |
12684 | #else | |
12685 | # include <assert.h> | |
12686 | #endif | |
d9898ee8 | 12687 | |
8d138742 | 12688 | #undef shl_load |
d9898ee8 | 12689 | |
8d138742 CE |
12690 | /* Override any GCC internal prototype to avoid an error. |
12691 | Use char because int might match the return type of a GCC | |
12692 | builtin and then its argument prototype would still apply. */ | |
12693 | #ifdef __cplusplus | |
12694 | extern "C" | |
12695 | #endif | |
12696 | char shl_load (); | |
12697 | /* The GNU C library defines this for functions which it implements | |
12698 | to always fail with ENOSYS. Some functions are actually named | |
12699 | something starting with __ and the normal name is an alias. */ | |
12700 | #if defined __stub_shl_load || defined __stub___shl_load | |
12701 | choke me | |
12702 | #endif | |
d9898ee8 | 12703 | |
8d138742 CE |
12704 | int |
12705 | main () | |
12706 | { | |
12707 | return shl_load (); | |
12708 | ; | |
12709 | return 0; | |
12710 | } | |
12711 | _ACEOF | |
12712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12713 | if { (ac_try="$ac_link" | |
12714 | case "(($ac_try" in | |
12715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12716 | *) ac_try_echo=$ac_try;; | |
12717 | esac | |
12718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12719 | $as_echo "$ac_try_echo") >&5 | |
12720 | (eval "$ac_link") 2>conftest.er1 | |
12721 | ac_status=$? | |
12722 | grep -v '^ *+' conftest.er1 >conftest.err | |
12723 | rm -f conftest.er1 | |
12724 | cat conftest.err >&5 | |
12725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); } && { | |
12727 | test -z "$ac_c_werror_flag" || | |
12728 | test ! -s conftest.err | |
12729 | } && test -s conftest$ac_exeext && { | |
12730 | test "$cross_compiling" = yes || | |
12731 | $as_test_x conftest$ac_exeext | |
12732 | }; then | |
12733 | ac_cv_func_shl_load=yes | |
12734 | else | |
12735 | $as_echo "$as_me: failed program was:" >&5 | |
12736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12737 | |
8d138742 CE |
12738 | ac_cv_func_shl_load=no |
12739 | fi | |
d9898ee8 | 12740 | |
8d138742 CE |
12741 | rm -rf conftest.dSYM |
12742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12743 | conftest$ac_exeext conftest.$ac_ext | |
12744 | fi | |
12745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
12746 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
12747 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
12748 | lt_cv_dlopen="shl_load" | |
12749 | else | |
12750 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
12751 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12752 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
12753 | $as_echo_n "(cached) " >&6 | |
12754 | else | |
12755 | ac_check_lib_save_LIBS=$LIBS | |
12756 | LIBS="-ldld $LIBS" | |
12757 | cat >conftest.$ac_ext <<_ACEOF | |
12758 | /* confdefs.h. */ | |
12759 | _ACEOF | |
12760 | cat confdefs.h >>conftest.$ac_ext | |
12761 | cat >>conftest.$ac_ext <<_ACEOF | |
12762 | /* end confdefs.h. */ | |
d9898ee8 | 12763 | |
8d138742 CE |
12764 | /* Override any GCC internal prototype to avoid an error. |
12765 | Use char because int might match the return type of a GCC | |
12766 | builtin and then its argument prototype would still apply. */ | |
12767 | #ifdef __cplusplus | |
12768 | extern "C" | |
12769 | #endif | |
12770 | char shl_load (); | |
12771 | int | |
12772 | main () | |
12773 | { | |
12774 | return shl_load (); | |
12775 | ; | |
12776 | return 0; | |
12777 | } | |
12778 | _ACEOF | |
12779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12780 | if { (ac_try="$ac_link" | |
12781 | case "(($ac_try" in | |
12782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12783 | *) ac_try_echo=$ac_try;; | |
12784 | esac | |
12785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12786 | $as_echo "$ac_try_echo") >&5 | |
12787 | (eval "$ac_link") 2>conftest.er1 | |
12788 | ac_status=$? | |
12789 | grep -v '^ *+' conftest.er1 >conftest.err | |
12790 | rm -f conftest.er1 | |
12791 | cat conftest.err >&5 | |
12792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12793 | (exit $ac_status); } && { | |
12794 | test -z "$ac_c_werror_flag" || | |
12795 | test ! -s conftest.err | |
12796 | } && test -s conftest$ac_exeext && { | |
12797 | test "$cross_compiling" = yes || | |
12798 | $as_test_x conftest$ac_exeext | |
12799 | }; then | |
12800 | ac_cv_lib_dld_shl_load=yes | |
12801 | else | |
12802 | $as_echo "$as_me: failed program was:" >&5 | |
12803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12804 | |
8d138742 CE |
12805 | ac_cv_lib_dld_shl_load=no |
12806 | fi | |
d9898ee8 | 12807 | |
8d138742 CE |
12808 | rm -rf conftest.dSYM |
12809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12810 | conftest$ac_exeext conftest.$ac_ext | |
12811 | LIBS=$ac_check_lib_save_LIBS | |
12812 | fi | |
12813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
12814 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12815 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
12816 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12817 | else | |
12818 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
12819 | $as_echo_n "checking for dlopen... " >&6; } | |
12820 | if test "${ac_cv_func_dlopen+set}" = set; then | |
12821 | $as_echo_n "(cached) " >&6 | |
12822 | else | |
12823 | cat >conftest.$ac_ext <<_ACEOF | |
12824 | /* confdefs.h. */ | |
12825 | _ACEOF | |
12826 | cat confdefs.h >>conftest.$ac_ext | |
12827 | cat >>conftest.$ac_ext <<_ACEOF | |
12828 | /* end confdefs.h. */ | |
12829 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
12830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12831 | #define dlopen innocuous_dlopen | |
d9898ee8 | 12832 | |
8d138742 CE |
12833 | /* System header to define __stub macros and hopefully few prototypes, |
12834 | which can conflict with char dlopen (); below. | |
12835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12836 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 12837 | |
8d138742 CE |
12838 | #ifdef __STDC__ |
12839 | # include <limits.h> | |
12840 | #else | |
12841 | # include <assert.h> | |
12842 | #endif | |
d9898ee8 | 12843 | |
8d138742 | 12844 | #undef dlopen |
d9898ee8 | 12845 | |
8d138742 CE |
12846 | /* Override any GCC internal prototype to avoid an error. |
12847 | Use char because int might match the return type of a GCC | |
12848 | builtin and then its argument prototype would still apply. */ | |
12849 | #ifdef __cplusplus | |
12850 | extern "C" | |
12851 | #endif | |
12852 | char dlopen (); | |
12853 | /* The GNU C library defines this for functions which it implements | |
12854 | to always fail with ENOSYS. Some functions are actually named | |
12855 | something starting with __ and the normal name is an alias. */ | |
12856 | #if defined __stub_dlopen || defined __stub___dlopen | |
12857 | choke me | |
12858 | #endif | |
d9898ee8 | 12859 | |
8d138742 CE |
12860 | int |
12861 | main () | |
12862 | { | |
12863 | return dlopen (); | |
12864 | ; | |
12865 | return 0; | |
12866 | } | |
d9898ee8 | 12867 | _ACEOF |
12868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 12869 | if { (ac_try="$ac_link" |
12870 | case "(($ac_try" in | |
12871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12872 | *) ac_try_echo=$ac_try;; | |
12873 | esac | |
8d138742 CE |
12874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12875 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12876 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 12877 | ac_status=$? |
12878 | grep -v '^ *+' conftest.er1 >conftest.err | |
12879 | rm -f conftest.er1 | |
12880 | cat conftest.err >&5 | |
8d138742 | 12881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12882 | (exit $ac_status); } && { |
8d138742 | 12883 | test -z "$ac_c_werror_flag" || |
dd184caf | 12884 | test ! -s conftest.err |
8d138742 CE |
12885 | } && test -s conftest$ac_exeext && { |
12886 | test "$cross_compiling" = yes || | |
12887 | $as_test_x conftest$ac_exeext | |
12888 | }; then | |
12889 | ac_cv_func_dlopen=yes | |
12890 | else | |
12891 | $as_echo "$as_me: failed program was:" >&5 | |
12892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12893 | |
8d138742 CE |
12894 | ac_cv_func_dlopen=no |
12895 | fi | |
12896 | ||
12897 | rm -rf conftest.dSYM | |
12898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12899 | conftest$ac_exeext conftest.$ac_ext | |
ac40fd9e | 12900 | fi |
8d138742 CE |
12901 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
12902 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
12903 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
12904 | lt_cv_dlopen="dlopen" | |
d9898ee8 | 12905 | else |
8d138742 CE |
12906 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12907 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12908 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12909 | $as_echo_n "(cached) " >&6 | |
12910 | else | |
12911 | ac_check_lib_save_LIBS=$LIBS | |
12912 | LIBS="-ldl $LIBS" | |
12913 | cat >conftest.$ac_ext <<_ACEOF | |
12914 | /* confdefs.h. */ | |
12915 | _ACEOF | |
12916 | cat confdefs.h >>conftest.$ac_ext | |
12917 | cat >>conftest.$ac_ext <<_ACEOF | |
12918 | /* end confdefs.h. */ | |
d9898ee8 | 12919 | |
8d138742 CE |
12920 | /* Override any GCC internal prototype to avoid an error. |
12921 | Use char because int might match the return type of a GCC | |
12922 | builtin and then its argument prototype would still apply. */ | |
12923 | #ifdef __cplusplus | |
12924 | extern "C" | |
12925 | #endif | |
12926 | char dlopen (); | |
12927 | int | |
12928 | main () | |
12929 | { | |
12930 | return dlopen (); | |
12931 | ; | |
12932 | return 0; | |
12933 | } | |
12934 | _ACEOF | |
12935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12936 | if { (ac_try="$ac_link" | |
12937 | case "(($ac_try" in | |
12938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12939 | *) ac_try_echo=$ac_try;; | |
12940 | esac | |
12941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12942 | $as_echo "$ac_try_echo") >&5 | |
12943 | (eval "$ac_link") 2>conftest.er1 | |
12944 | ac_status=$? | |
12945 | grep -v '^ *+' conftest.er1 >conftest.err | |
12946 | rm -f conftest.er1 | |
12947 | cat conftest.err >&5 | |
12948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12949 | (exit $ac_status); } && { | |
12950 | test -z "$ac_c_werror_flag" || | |
12951 | test ! -s conftest.err | |
12952 | } && test -s conftest$ac_exeext && { | |
12953 | test "$cross_compiling" = yes || | |
12954 | $as_test_x conftest$ac_exeext | |
12955 | }; then | |
12956 | ac_cv_lib_dl_dlopen=yes | |
12957 | else | |
12958 | $as_echo "$as_me: failed program was:" >&5 | |
12959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd184caf | 12960 | |
8d138742 | 12961 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 12962 | fi |
dd184caf | 12963 | |
8d138742 | 12964 | rm -rf conftest.dSYM |
dd184caf | 12965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 12966 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
12967 | LIBS=$ac_check_lib_save_LIBS |
12968 | fi | |
12969 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12970 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12971 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
12972 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12973 | else | |
12974 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
12975 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12976 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
12977 | $as_echo_n "(cached) " >&6 | |
12978 | else | |
12979 | ac_check_lib_save_LIBS=$LIBS | |
12980 | LIBS="-lsvld $LIBS" | |
12981 | cat >conftest.$ac_ext <<_ACEOF | |
12982 | /* confdefs.h. */ | |
12983 | _ACEOF | |
12984 | cat confdefs.h >>conftest.$ac_ext | |
12985 | cat >>conftest.$ac_ext <<_ACEOF | |
12986 | /* end confdefs.h. */ | |
d9898ee8 | 12987 | |
8d138742 CE |
12988 | /* Override any GCC internal prototype to avoid an error. |
12989 | Use char because int might match the return type of a GCC | |
12990 | builtin and then its argument prototype would still apply. */ | |
12991 | #ifdef __cplusplus | |
12992 | extern "C" | |
12993 | #endif | |
12994 | char dlopen (); | |
12995 | int | |
12996 | main () | |
12997 | { | |
12998 | return dlopen (); | |
12999 | ; | |
13000 | return 0; | |
13001 | } | |
13002 | _ACEOF | |
13003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13004 | if { (ac_try="$ac_link" | |
13005 | case "(($ac_try" in | |
13006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13007 | *) ac_try_echo=$ac_try;; | |
13008 | esac | |
13009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13010 | $as_echo "$ac_try_echo") >&5 | |
13011 | (eval "$ac_link") 2>conftest.er1 | |
13012 | ac_status=$? | |
13013 | grep -v '^ *+' conftest.er1 >conftest.err | |
13014 | rm -f conftest.er1 | |
13015 | cat conftest.err >&5 | |
13016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13017 | (exit $ac_status); } && { | |
13018 | test -z "$ac_c_werror_flag" || | |
13019 | test ! -s conftest.err | |
13020 | } && test -s conftest$ac_exeext && { | |
13021 | test "$cross_compiling" = yes || | |
13022 | $as_test_x conftest$ac_exeext | |
13023 | }; then | |
13024 | ac_cv_lib_svld_dlopen=yes | |
13025 | else | |
13026 | $as_echo "$as_me: failed program was:" >&5 | |
13027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13028 | ||
13029 | ac_cv_lib_svld_dlopen=no | |
13030 | fi | |
13031 | ||
13032 | rm -rf conftest.dSYM | |
13033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13034 | conftest$ac_exeext conftest.$ac_ext | |
13035 | LIBS=$ac_check_lib_save_LIBS | |
13036 | fi | |
13037 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
13038 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
13039 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
13040 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
13041 | else | |
13042 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
13043 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
13044 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
13045 | $as_echo_n "(cached) " >&6 | |
13046 | else | |
13047 | ac_check_lib_save_LIBS=$LIBS | |
13048 | LIBS="-ldld $LIBS" | |
13049 | cat >conftest.$ac_ext <<_ACEOF | |
13050 | /* confdefs.h. */ | |
13051 | _ACEOF | |
13052 | cat confdefs.h >>conftest.$ac_ext | |
13053 | cat >>conftest.$ac_ext <<_ACEOF | |
13054 | /* end confdefs.h. */ | |
d9898ee8 | 13055 | |
8d138742 CE |
13056 | /* Override any GCC internal prototype to avoid an error. |
13057 | Use char because int might match the return type of a GCC | |
13058 | builtin and then its argument prototype would still apply. */ | |
13059 | #ifdef __cplusplus | |
13060 | extern "C" | |
13061 | #endif | |
13062 | char dld_link (); | |
13063 | int | |
13064 | main () | |
13065 | { | |
13066 | return dld_link (); | |
13067 | ; | |
13068 | return 0; | |
13069 | } | |
d9898ee8 | 13070 | _ACEOF |
13071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 13072 | if { (ac_try="$ac_link" |
13073 | case "(($ac_try" in | |
13074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13075 | *) ac_try_echo=$ac_try;; | |
13076 | esac | |
8d138742 CE |
13077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13078 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 13079 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 13080 | ac_status=$? |
13081 | grep -v '^ *+' conftest.er1 >conftest.err | |
13082 | rm -f conftest.er1 | |
13083 | cat conftest.err >&5 | |
8d138742 | 13084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 13085 | (exit $ac_status); } && { |
8d138742 | 13086 | test -z "$ac_c_werror_flag" || |
dd184caf | 13087 | test ! -s conftest.err |
8d138742 CE |
13088 | } && test -s conftest$ac_exeext && { |
13089 | test "$cross_compiling" = yes || | |
13090 | $as_test_x conftest$ac_exeext | |
13091 | }; then | |
13092 | ac_cv_lib_dld_dld_link=yes | |
d9898ee8 | 13093 | else |
8d138742 | 13094 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 13095 | sed 's/^/| /' conftest.$ac_ext >&5 |
13096 | ||
8d138742 | 13097 | ac_cv_lib_dld_dld_link=no |
d9898ee8 | 13098 | fi |
dd184caf | 13099 | |
8d138742 | 13100 | rm -rf conftest.dSYM |
dd184caf | 13101 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 13102 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
13103 | LIBS=$ac_check_lib_save_LIBS |
13104 | fi | |
13105 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
13106 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
13107 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
13108 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
13109 | fi | |
d9898ee8 | 13110 | |
d9898ee8 | 13111 | |
8d138742 | 13112 | fi |
d9898ee8 | 13113 | |
d9898ee8 | 13114 | |
8d138742 | 13115 | fi |
d9898ee8 | 13116 | |
d9898ee8 | 13117 | |
8d138742 | 13118 | fi |
d9898ee8 | 13119 | |
d9898ee8 | 13120 | |
8d138742 | 13121 | fi |
d9898ee8 | 13122 | |
d9898ee8 | 13123 | |
8d138742 | 13124 | fi |
d9898ee8 | 13125 | |
8d138742 CE |
13126 | ;; |
13127 | esac | |
d9898ee8 | 13128 | |
8d138742 CE |
13129 | if test "x$lt_cv_dlopen" != xno; then |
13130 | enable_dlopen=yes | |
13131 | else | |
13132 | enable_dlopen=no | |
13133 | fi | |
d9898ee8 | 13134 | |
8d138742 CE |
13135 | case $lt_cv_dlopen in |
13136 | dlopen) | |
13137 | save_CPPFLAGS="$CPPFLAGS" | |
13138 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 13139 | |
8d138742 CE |
13140 | save_LDFLAGS="$LDFLAGS" |
13141 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 13142 | |
8d138742 CE |
13143 | save_LIBS="$LIBS" |
13144 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 13145 | |
8d138742 CE |
13146 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
13147 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
13148 | if test "${lt_cv_dlopen_self+set}" = set; then | |
13149 | $as_echo_n "(cached) " >&6 | |
13150 | else | |
13151 | if test "$cross_compiling" = yes; then : | |
13152 | lt_cv_dlopen_self=cross | |
13153 | else | |
13154 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13155 | lt_status=$lt_dlunknown | |
13156 | cat > conftest.$ac_ext <<_LT_EOF | |
13157 | #line 13157 "configure" | |
13158 | #include "confdefs.h" | |
d9898ee8 | 13159 | |
8d138742 CE |
13160 | #if HAVE_DLFCN_H |
13161 | #include <dlfcn.h> | |
13162 | #endif | |
d9898ee8 | 13163 | |
8d138742 | 13164 | #include <stdio.h> |
d9898ee8 | 13165 | |
8d138742 CE |
13166 | #ifdef RTLD_GLOBAL |
13167 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13168 | #else | |
13169 | # ifdef DL_GLOBAL | |
13170 | # define LT_DLGLOBAL DL_GLOBAL | |
13171 | # else | |
13172 | # define LT_DLGLOBAL 0 | |
13173 | # endif | |
13174 | #endif | |
d9898ee8 | 13175 | |
8d138742 CE |
13176 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13177 | find out it does not work in some platform. */ | |
13178 | #ifndef LT_DLLAZY_OR_NOW | |
13179 | # ifdef RTLD_LAZY | |
13180 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13181 | # else | |
13182 | # ifdef DL_LAZY | |
13183 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13184 | # else | |
13185 | # ifdef RTLD_NOW | |
13186 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13187 | # else | |
13188 | # ifdef DL_NOW | |
13189 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13190 | # else | |
13191 | # define LT_DLLAZY_OR_NOW 0 | |
13192 | # endif | |
13193 | # endif | |
13194 | # endif | |
13195 | # endif | |
13196 | #endif | |
d9898ee8 | 13197 | |
8d138742 CE |
13198 | void fnord() { int i=42;} |
13199 | int main () | |
13200 | { | |
13201 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13202 | int status = $lt_dlunknown; | |
d9898ee8 | 13203 | |
8d138742 CE |
13204 | if (self) |
13205 | { | |
13206 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13207 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13208 | /* dlclose (self); */ | |
13209 | } | |
13210 | else | |
13211 | puts (dlerror ()); | |
d9898ee8 | 13212 | |
8d138742 CE |
13213 | return status; |
13214 | } | |
13215 | _LT_EOF | |
13216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13217 | (eval $ac_link) 2>&5 | |
d9898ee8 | 13218 | ac_status=$? |
8d138742 CE |
13219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13220 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13221 | (./conftest; exit; ) >&5 2>/dev/null | |
13222 | lt_status=$? | |
13223 | case x$lt_status in | |
13224 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13225 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13226 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
d9898ee8 | 13227 | esac |
8d138742 CE |
13228 | else : |
13229 | # compilation failed | |
13230 | lt_cv_dlopen_self=no | |
d9898ee8 | 13231 | fi |
8d138742 CE |
13232 | fi |
13233 | rm -fr conftest* | |
d9898ee8 | 13234 | |
ac40fd9e | 13235 | |
8d138742 CE |
13236 | fi |
13237 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
13238 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 13239 | |
8d138742 CE |
13240 | if test "x$lt_cv_dlopen_self" = xyes; then |
13241 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
13242 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
13243 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
13244 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
13245 | $as_echo_n "(cached) " >&6 | |
13246 | else | |
13247 | if test "$cross_compiling" = yes; then : | |
13248 | lt_cv_dlopen_self_static=cross | |
13249 | else | |
13250 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13251 | lt_status=$lt_dlunknown | |
13252 | cat > conftest.$ac_ext <<_LT_EOF | |
13253 | #line 13253 "configure" | |
13254 | #include "confdefs.h" | |
d9898ee8 | 13255 | |
8d138742 CE |
13256 | #if HAVE_DLFCN_H |
13257 | #include <dlfcn.h> | |
13258 | #endif | |
d9898ee8 | 13259 | |
8d138742 | 13260 | #include <stdio.h> |
d9898ee8 | 13261 | |
8d138742 CE |
13262 | #ifdef RTLD_GLOBAL |
13263 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13264 | #else | |
13265 | # ifdef DL_GLOBAL | |
13266 | # define LT_DLGLOBAL DL_GLOBAL | |
13267 | # else | |
13268 | # define LT_DLGLOBAL 0 | |
13269 | # endif | |
13270 | #endif | |
13271 | ||
13272 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13273 | find out it does not work in some platform. */ | |
13274 | #ifndef LT_DLLAZY_OR_NOW | |
13275 | # ifdef RTLD_LAZY | |
13276 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13277 | # else | |
13278 | # ifdef DL_LAZY | |
13279 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13280 | # else | |
13281 | # ifdef RTLD_NOW | |
13282 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13283 | # else | |
13284 | # ifdef DL_NOW | |
13285 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13286 | # else | |
13287 | # define LT_DLLAZY_OR_NOW 0 | |
13288 | # endif | |
13289 | # endif | |
13290 | # endif | |
13291 | # endif | |
13292 | #endif | |
13293 | ||
13294 | void fnord() { int i=42;} | |
13295 | int main () | |
13296 | { | |
13297 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13298 | int status = $lt_dlunknown; | |
13299 | ||
13300 | if (self) | |
13301 | { | |
13302 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13303 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13304 | /* dlclose (self); */ | |
13305 | } | |
d9898ee8 | 13306 | else |
8d138742 CE |
13307 | puts (dlerror ()); |
13308 | ||
13309 | return status; | |
13310 | } | |
13311 | _LT_EOF | |
13312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13313 | (eval $ac_link) 2>&5 | |
13314 | ac_status=$? | |
13315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13317 | (./conftest; exit; ) >&5 2>/dev/null | |
13318 | lt_status=$? | |
13319 | case x$lt_status in | |
13320 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13321 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13322 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
d9898ee8 | 13323 | esac |
8d138742 CE |
13324 | else : |
13325 | # compilation failed | |
13326 | lt_cv_dlopen_self_static=no | |
13327 | fi | |
13328 | fi | |
13329 | rm -fr conftest* | |
13330 | ||
13331 | ||
13332 | fi | |
13333 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
13334 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
d9898ee8 | 13335 | fi |
d9898ee8 | 13336 | |
8d138742 CE |
13337 | CPPFLAGS="$save_CPPFLAGS" |
13338 | LDFLAGS="$save_LDFLAGS" | |
13339 | LIBS="$save_LIBS" | |
13340 | ;; | |
13341 | esac | |
d9898ee8 | 13342 | |
8d138742 CE |
13343 | case $lt_cv_dlopen_self in |
13344 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13345 | *) enable_dlopen_self=unknown ;; | |
13346 | esac | |
d9898ee8 | 13347 | |
8d138742 CE |
13348 | case $lt_cv_dlopen_self_static in |
13349 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13350 | *) enable_dlopen_self_static=unknown ;; | |
13351 | esac | |
13352 | fi | |
d9898ee8 | 13353 | |
d9898ee8 | 13354 | |
d9898ee8 | 13355 | |
d9898ee8 | 13356 | |
d9898ee8 | 13357 | |
ac40fd9e | 13358 | |
d9898ee8 | 13359 | |
d9898ee8 | 13360 | |
d9898ee8 | 13361 | |
d9898ee8 | 13362 | |
d9898ee8 | 13363 | |
8d138742 CE |
13364 | |
13365 | ||
13366 | ||
13367 | ||
13368 | ||
13369 | ||
13370 | striplib= | |
13371 | old_striplib= | |
13372 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
13373 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13374 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13375 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13376 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13377 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13378 | $as_echo "yes" >&6; } | |
13379 | else | |
13380 | # FIXME - insert some real tests, host_os isn't really good enough | |
13381 | case $host_os in | |
13382 | darwin*) | |
13383 | if test -n "$STRIP" ; then | |
13384 | striplib="$STRIP -x" | |
13385 | old_striplib="$STRIP -S" | |
13386 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13387 | $as_echo "yes" >&6; } | |
d9898ee8 | 13388 | else |
8d138742 CE |
13389 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13390 | $as_echo "no" >&6; } | |
d9898ee8 | 13391 | fi |
d9898ee8 | 13392 | ;; |
8d138742 CE |
13393 | *) |
13394 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13395 | $as_echo "no" >&6; } | |
d9898ee8 | 13396 | ;; |
13397 | esac | |
8d138742 | 13398 | fi |
d9898ee8 | 13399 | |
d9898ee8 | 13400 | |
8d138742 CE |
13401 | |
13402 | ||
13403 | ||
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | # Report which library types will actually be built | |
13412 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13413 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13414 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13415 | $as_echo "$can_build_shared" >&6; } | |
13416 | ||
13417 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13418 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13419 | test "$can_build_shared" = "no" && enable_shared=no | |
13420 | ||
13421 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13422 | # are all built from PIC. | |
d9898ee8 | 13423 | case $host_os in |
8d138742 CE |
13424 | aix3*) |
13425 | test "$enable_shared" = yes && enable_static=no | |
13426 | if test -n "$RANLIB"; then | |
13427 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13428 | postinstall_cmds='$RANLIB $lib' | |
13429 | fi | |
13430 | ;; | |
13431 | ||
13432 | aix[4-9]*) | |
13433 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13434 | test "$enable_shared" = yes && enable_static=no | |
13435 | fi | |
d9898ee8 | 13436 | ;; |
13437 | esac | |
8d138742 CE |
13438 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13439 | $as_echo "$enable_shared" >&6; } | |
d9898ee8 | 13440 | |
8d138742 CE |
13441 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13442 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13443 | # Make sure either enable_shared or enable_static is yes. | |
13444 | test "$enable_shared" = yes || enable_static=yes | |
13445 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13446 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 13447 | |
d9898ee8 | 13448 | |
d9898ee8 | 13449 | |
d9898ee8 | 13450 | |
8d138742 CE |
13451 | fi |
13452 | ac_ext=c | |
13453 | ac_cpp='$CPP $CPPFLAGS' | |
13454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 13457 | |
8d138742 | 13458 | CC="$lt_save_CC" |
d9898ee8 | 13459 | |
d9898ee8 | 13460 | |
8d138742 CE |
13461 | ac_ext=cpp |
13462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
d9898ee8 | 13466 | |
8d138742 CE |
13467 | archive_cmds_need_lc_CXX=no |
13468 | allow_undefined_flag_CXX= | |
13469 | always_export_symbols_CXX=no | |
13470 | archive_expsym_cmds_CXX= | |
13471 | compiler_needs_object_CXX=no | |
13472 | export_dynamic_flag_spec_CXX= | |
13473 | hardcode_direct_CXX=no | |
13474 | hardcode_direct_absolute_CXX=no | |
13475 | hardcode_libdir_flag_spec_CXX= | |
13476 | hardcode_libdir_flag_spec_ld_CXX= | |
13477 | hardcode_libdir_separator_CXX= | |
13478 | hardcode_minus_L_CXX=no | |
13479 | hardcode_shlibpath_var_CXX=unsupported | |
13480 | hardcode_automatic_CXX=no | |
13481 | inherit_rpath_CXX=no | |
13482 | module_cmds_CXX= | |
13483 | module_expsym_cmds_CXX= | |
13484 | link_all_deplibs_CXX=unknown | |
13485 | old_archive_cmds_CXX=$old_archive_cmds | |
13486 | no_undefined_flag_CXX= | |
13487 | whole_archive_flag_spec_CXX= | |
13488 | enable_shared_with_static_runtimes_CXX=no | |
d9898ee8 | 13489 | |
8d138742 CE |
13490 | # Source file extension for C++ test sources. |
13491 | ac_ext=cpp | |
d9898ee8 | 13492 | |
8d138742 CE |
13493 | # Object file extension for compiled C++ test sources. |
13494 | objext=o | |
13495 | objext_CXX=$objext | |
ac40fd9e | 13496 | |
8d138742 CE |
13497 | # No sense in running all these tests if we already determined that |
13498 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13499 | # are currently assumed to apply to all compilers on this platform, | |
13500 | # and will be corrupted by setting them based on a non-working compiler. | |
13501 | if test "$_lt_caught_CXX_error" != yes; then | |
13502 | # Code to be used in simple compile tests | |
13503 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 13504 | |
8d138742 CE |
13505 | # Code to be used in simple link tests |
13506 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
d9898ee8 | 13507 | |
8d138742 | 13508 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
d9898ee8 | 13509 | |
d9898ee8 | 13510 | |
8d138742 CE |
13511 | |
13512 | ||
13513 | ||
13514 | ||
13515 | # If no C compiler was specified, use CC. | |
13516 | LTCC=${LTCC-"$CC"} | |
13517 | ||
13518 | # If no C compiler flags were specified, use CFLAGS. | |
13519 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13520 | ||
13521 | # Allow CC to be a program name with arguments. | |
13522 | compiler=$CC | |
13523 | ||
13524 | ||
13525 | # save warnings/boilerplate of simple test code | |
13526 | ac_outfile=conftest.$ac_objext | |
13527 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13528 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13529 | _lt_compiler_boilerplate=`cat conftest.err` | |
13530 | $RM conftest* | |
13531 | ||
13532 | ac_outfile=conftest.$ac_objext | |
13533 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13534 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13535 | _lt_linker_boilerplate=`cat conftest.err` | |
13536 | $RM -r conftest* | |
13537 | ||
13538 | ||
13539 | # Allow CC to be a program name with arguments. | |
13540 | lt_save_CC=$CC | |
13541 | lt_save_LD=$LD | |
13542 | lt_save_GCC=$GCC | |
13543 | GCC=$GXX | |
13544 | lt_save_with_gnu_ld=$with_gnu_ld | |
13545 | lt_save_path_LD=$lt_cv_path_LD | |
13546 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13547 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
d9898ee8 | 13548 | else |
8d138742 | 13549 | $as_unset lt_cv_prog_gnu_ld |
d9898ee8 | 13550 | fi |
8d138742 CE |
13551 | if test -n "${lt_cv_path_LDCXX+set}"; then |
13552 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
13553 | else | |
13554 | $as_unset lt_cv_path_LD | |
13555 | fi | |
13556 | test -z "${LDCXX+set}" || LD=$LDCXX | |
13557 | CC=${CXX-"c++"} | |
13558 | compiler=$CC | |
13559 | compiler_CXX=$CC | |
13560 | for cc_temp in $compiler""; do | |
13561 | case $cc_temp in | |
13562 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13563 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13564 | \-*) ;; | |
13565 | *) break;; | |
13566 | esac | |
13567 | done | |
13568 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d9898ee8 | 13569 | |
d9898ee8 | 13570 | |
8d138742 CE |
13571 | if test -n "$compiler"; then |
13572 | # We don't want -fno-exception when compiling C++ code, so set the | |
13573 | # no_builtin_flag separately | |
13574 | if test "$GXX" = yes; then | |
13575 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
13576 | else | |
13577 | lt_prog_compiler_no_builtin_flag_CXX= | |
13578 | fi | |
d9898ee8 | 13579 | |
8d138742 CE |
13580 | if test "$GXX" = yes; then |
13581 | # Set up default GNU C++ configuration | |
d9898ee8 | 13582 | |
d9898ee8 | 13583 | |
d9898ee8 | 13584 | |
8d138742 CE |
13585 | # Check whether --with-gnu-ld was given. |
13586 | if test "${with_gnu_ld+set}" = set; then | |
13587 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
13588 | else | |
13589 | with_gnu_ld=no | |
d9898ee8 | 13590 | fi |
13591 | ||
8d138742 CE |
13592 | ac_prog=ld |
13593 | if test "$GCC" = yes; then | |
13594 | # Check if gcc -print-prog-name=ld gives a path. | |
13595 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
13596 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13597 | case $host in | |
13598 | *-*-mingw*) | |
13599 | # gcc leaves a trailing carriage return which upsets mingw | |
13600 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13601 | *) | |
13602 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13603 | esac | |
13604 | case $ac_prog in | |
13605 | # Accept absolute paths. | |
13606 | [\\/]* | ?:[\\/]*) | |
13607 | re_direlt='/[^/][^/]*/\.\./' | |
13608 | # Canonicalize the pathname of ld | |
13609 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13610 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13611 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13612 | done | |
13613 | test -z "$LD" && LD="$ac_prog" | |
d9898ee8 | 13614 | ;; |
8d138742 CE |
13615 | "") |
13616 | # If it fails, then pretend we aren't using GCC. | |
13617 | ac_prog=ld | |
13618 | ;; | |
13619 | *) | |
13620 | # If it is relative, then search for the first ld in PATH. | |
13621 | with_gnu_ld=unknown | |
d9898ee8 | 13622 | ;; |
13623 | esac | |
8d138742 CE |
13624 | elif test "$with_gnu_ld" = yes; then |
13625 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
13626 | $as_echo_n "checking for GNU ld... " >&6; } | |
13627 | else | |
13628 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
13629 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
13630 | fi | |
13631 | if test "${lt_cv_path_LD+set}" = set; then | |
13632 | $as_echo_n "(cached) " >&6 | |
13633 | else | |
13634 | if test -z "$LD"; then | |
13635 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13636 | for ac_dir in $PATH; do | |
13637 | IFS="$lt_save_ifs" | |
13638 | test -z "$ac_dir" && ac_dir=. | |
13639 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13640 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13641 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13642 | # but apparently some variants of GNU ld only accept -v. | |
13643 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13644 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13645 | *GNU* | *'with BFD'*) | |
13646 | test "$with_gnu_ld" != no && break | |
13647 | ;; | |
13648 | *) | |
13649 | test "$with_gnu_ld" != yes && break | |
13650 | ;; | |
13651 | esac | |
13652 | fi | |
13653 | done | |
13654 | IFS="$lt_save_ifs" | |
13655 | else | |
13656 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
13657 | fi | |
13658 | fi | |
d9898ee8 | 13659 | |
8d138742 CE |
13660 | LD="$lt_cv_path_LD" |
13661 | if test -n "$LD"; then | |
13662 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
13663 | $as_echo "$LD" >&6; } | |
13664 | else | |
13665 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13666 | $as_echo "no" >&6; } | |
13667 | fi | |
13668 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
13669 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
13670 | { (exit 1); exit 1; }; } | |
13671 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
13672 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
13673 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
13674 | $as_echo_n "(cached) " >&6 | |
13675 | else | |
13676 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13677 | case `$LD -v 2>&1 </dev/null` in | |
13678 | *GNU* | *'with BFD'*) | |
13679 | lt_cv_prog_gnu_ld=yes | |
13680 | ;; | |
13681 | *) | |
13682 | lt_cv_prog_gnu_ld=no | |
13683 | ;; | |
13684 | esac | |
13685 | fi | |
13686 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
13687 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13688 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d9898ee8 | 13689 | |
d9898ee8 | 13690 | |
d9898ee8 | 13691 | |
d9898ee8 | 13692 | |
d9898ee8 | 13693 | |
d9898ee8 | 13694 | |
d9898ee8 | 13695 | |
8d138742 CE |
13696 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
13697 | # archiving commands below assume that GNU ld is being used. | |
13698 | if test "$with_gnu_ld" = yes; then | |
13699 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13700 | 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' | |
d9898ee8 | 13701 | |
8d138742 CE |
13702 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13703 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
d9898ee8 | 13704 | |
8d138742 CE |
13705 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13706 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13707 | # investigate it a little bit more. (MM) | |
13708 | wlarc='${wl}' | |
d9898ee8 | 13709 | |
8d138742 CE |
13710 | # ancient GNU ld didn't support --whole-archive et. al. |
13711 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13712 | $GREP 'no-whole-archive' > /dev/null; then | |
13713 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13714 | else | |
13715 | whole_archive_flag_spec_CXX= | |
13716 | fi | |
13717 | else | |
13718 | with_gnu_ld=no | |
13719 | wlarc= | |
13720 | ||
13721 | # A generic and very simple default shared library creation | |
13722 | # command for GNU C++ for the case where it uses the native | |
13723 | # linker, instead of GNU ld. If possible, this setting should | |
13724 | # overridden to take advantage of the native linker features on | |
13725 | # the platform it is being used on. | |
13726 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13727 | fi | |
d9898ee8 | 13728 | |
8d138742 CE |
13729 | # Commands to make compiler produce verbose output that lists |
13730 | # what "hidden" libraries, object files and flags are used when | |
13731 | # linking a shared library. | |
13732 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
d9898ee8 | 13733 | |
8d138742 CE |
13734 | else |
13735 | GXX=no | |
13736 | with_gnu_ld=no | |
13737 | wlarc= | |
13738 | fi | |
d9898ee8 | 13739 | |
8d138742 CE |
13740 | # PORTME: fill in a description of your system's C++ link characteristics |
13741 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13742 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13743 | ld_shlibs_CXX=yes | |
13744 | case $host_os in | |
13745 | aix3*) | |
13746 | # FIXME: insert proper C++ library support | |
13747 | ld_shlibs_CXX=no | |
13748 | ;; | |
13749 | aix[4-9]*) | |
13750 | if test "$host_cpu" = ia64; then | |
13751 | # On IA64, the linker does run time linking by default, so we don't | |
13752 | # have to do anything special. | |
13753 | aix_use_runtimelinking=no | |
13754 | exp_sym_flag='-Bexport' | |
13755 | no_entry_flag="" | |
13756 | else | |
13757 | aix_use_runtimelinking=no | |
13758 | ||
13759 | # Test if we are trying to use run time linking or normal | |
13760 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13761 | # need to do runtime linking. | |
13762 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13763 | for ld_flag in $LDFLAGS; do | |
13764 | case $ld_flag in | |
13765 | *-brtl*) | |
13766 | aix_use_runtimelinking=yes | |
13767 | break | |
13768 | ;; | |
13769 | esac | |
13770 | done | |
13771 | ;; | |
13772 | esac | |
d9898ee8 | 13773 | |
8d138742 CE |
13774 | exp_sym_flag='-bexport' |
13775 | no_entry_flag='-bnoentry' | |
13776 | fi | |
d9898ee8 | 13777 | |
8d138742 CE |
13778 | # When large executables or shared objects are built, AIX ld can |
13779 | # have problems creating the table of contents. If linking a library | |
13780 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13781 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13782 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13783 | ||
13784 | archive_cmds_CXX='' | |
13785 | hardcode_direct_CXX=yes | |
13786 | hardcode_direct_absolute_CXX=yes | |
13787 | hardcode_libdir_separator_CXX=':' | |
13788 | link_all_deplibs_CXX=yes | |
13789 | file_list_spec_CXX='${wl}-f,' | |
13790 | ||
13791 | if test "$GXX" = yes; then | |
13792 | case $host_os in aix4.[012]|aix4.[012].*) | |
13793 | # We only want to do this on AIX 4.2 and lower, the check | |
13794 | # below for broken collect2 doesn't work under 4.3+ | |
13795 | collect2name=`${CC} -print-prog-name=collect2` | |
13796 | if test -f "$collect2name" && | |
13797 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13798 | then | |
13799 | # We have reworked collect2 | |
13800 | : | |
13801 | else | |
13802 | # We have old collect2 | |
13803 | hardcode_direct_CXX=unsupported | |
13804 | # It fails to find uninstalled libraries when the uninstalled | |
13805 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13806 | # to unsupported forces relinking | |
13807 | hardcode_minus_L_CXX=yes | |
13808 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13809 | hardcode_libdir_separator_CXX= | |
13810 | fi | |
13811 | esac | |
13812 | shared_flag='-shared' | |
13813 | if test "$aix_use_runtimelinking" = yes; then | |
13814 | shared_flag="$shared_flag "'${wl}-G' | |
13815 | fi | |
13816 | else | |
13817 | # not using gcc | |
13818 | if test "$host_cpu" = ia64; then | |
13819 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13820 | # chokes on -Wl,-G. The following line is correct: | |
13821 | shared_flag='-G' | |
13822 | else | |
13823 | if test "$aix_use_runtimelinking" = yes; then | |
13824 | shared_flag='${wl}-G' | |
13825 | else | |
13826 | shared_flag='${wl}-bM:SRE' | |
13827 | fi | |
13828 | fi | |
13829 | fi | |
d9898ee8 | 13830 | |
8d138742 CE |
13831 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
13832 | # It seems that -bexpall does not export symbols beginning with | |
13833 | # underscore (_), so it is better to generate a list of symbols to | |
13834 | # export. | |
13835 | always_export_symbols_CXX=yes | |
13836 | if test "$aix_use_runtimelinking" = yes; then | |
13837 | # Warning - without using the other runtime loading flags (-brtl), | |
13838 | # -berok will link without error, but may produce a broken library. | |
13839 | allow_undefined_flag_CXX='-berok' | |
13840 | # Determine the default libpath from the value encoded in an empty | |
13841 | # executable. | |
13842 | cat >conftest.$ac_ext <<_ACEOF | |
13843 | /* confdefs.h. */ | |
13844 | _ACEOF | |
13845 | cat confdefs.h >>conftest.$ac_ext | |
13846 | cat >>conftest.$ac_ext <<_ACEOF | |
13847 | /* end confdefs.h. */ | |
d9898ee8 | 13848 | |
8d138742 CE |
13849 | int |
13850 | main () | |
13851 | { | |
d9898ee8 | 13852 | |
8d138742 CE |
13853 | ; |
13854 | return 0; | |
13855 | } | |
13856 | _ACEOF | |
13857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13858 | if { (ac_try="$ac_link" | |
13859 | case "(($ac_try" in | |
13860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13861 | *) ac_try_echo=$ac_try;; | |
13862 | esac | |
13863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13864 | $as_echo "$ac_try_echo") >&5 | |
13865 | (eval "$ac_link") 2>conftest.er1 | |
13866 | ac_status=$? | |
13867 | grep -v '^ *+' conftest.er1 >conftest.err | |
13868 | rm -f conftest.er1 | |
13869 | cat conftest.err >&5 | |
13870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13871 | (exit $ac_status); } && { | |
13872 | test -z "$ac_cxx_werror_flag" || | |
13873 | test ! -s conftest.err | |
13874 | } && test -s conftest$ac_exeext && { | |
13875 | test "$cross_compiling" = yes || | |
13876 | $as_test_x conftest$ac_exeext | |
13877 | }; then | |
d9898ee8 | 13878 | |
8d138742 CE |
13879 | lt_aix_libpath_sed=' |
13880 | /Import File Strings/,/^$/ { | |
13881 | /^0/ { | |
13882 | s/^0 *\(.*\)$/\1/ | |
13883 | p | |
13884 | } | |
13885 | }' | |
13886 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13887 | # Check for a 64-bit object if we didn't find anything. | |
13888 | if test -z "$aix_libpath"; then | |
13889 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13890 | fi | |
13891 | else | |
13892 | $as_echo "$as_me: failed program was:" >&5 | |
13893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13894 | |
d9898ee8 | 13895 | |
8d138742 | 13896 | fi |
d9898ee8 | 13897 | |
8d138742 CE |
13898 | rm -rf conftest.dSYM |
13899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13900 | conftest$ac_exeext conftest.$ac_ext | |
13901 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13902 | ||
13903 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13904 | ||
13905 | 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13906 | else | |
13907 | if test "$host_cpu" = ia64; then | |
13908 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13909 | allow_undefined_flag_CXX="-z nodefs" | |
13910 | 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" | |
13911 | else | |
13912 | # Determine the default libpath from the value encoded in an | |
13913 | # empty executable. | |
13914 | cat >conftest.$ac_ext <<_ACEOF | |
13915 | /* confdefs.h. */ | |
13916 | _ACEOF | |
13917 | cat confdefs.h >>conftest.$ac_ext | |
13918 | cat >>conftest.$ac_ext <<_ACEOF | |
13919 | /* end confdefs.h. */ | |
d9898ee8 | 13920 | |
8d138742 CE |
13921 | int |
13922 | main () | |
13923 | { | |
d9898ee8 | 13924 | |
8d138742 CE |
13925 | ; |
13926 | return 0; | |
13927 | } | |
13928 | _ACEOF | |
13929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13930 | if { (ac_try="$ac_link" | |
13931 | case "(($ac_try" in | |
13932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13933 | *) ac_try_echo=$ac_try;; | |
13934 | esac | |
13935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13936 | $as_echo "$ac_try_echo") >&5 | |
13937 | (eval "$ac_link") 2>conftest.er1 | |
13938 | ac_status=$? | |
13939 | grep -v '^ *+' conftest.er1 >conftest.err | |
13940 | rm -f conftest.er1 | |
13941 | cat conftest.err >&5 | |
13942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13943 | (exit $ac_status); } && { | |
13944 | test -z "$ac_cxx_werror_flag" || | |
13945 | test ! -s conftest.err | |
13946 | } && test -s conftest$ac_exeext && { | |
13947 | test "$cross_compiling" = yes || | |
13948 | $as_test_x conftest$ac_exeext | |
13949 | }; then | |
d9898ee8 | 13950 | |
8d138742 CE |
13951 | lt_aix_libpath_sed=' |
13952 | /Import File Strings/,/^$/ { | |
13953 | /^0/ { | |
13954 | s/^0 *\(.*\)$/\1/ | |
13955 | p | |
13956 | } | |
13957 | }' | |
13958 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13959 | # Check for a 64-bit object if we didn't find anything. | |
13960 | if test -z "$aix_libpath"; then | |
13961 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13962 | fi | |
13963 | else | |
13964 | $as_echo "$as_me: failed program was:" >&5 | |
13965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13966 | |
d9898ee8 | 13967 | |
8d138742 | 13968 | fi |
d9898ee8 | 13969 | |
8d138742 CE |
13970 | rm -rf conftest.dSYM |
13971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13972 | conftest$ac_exeext conftest.$ac_ext | |
13973 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 13974 | |
8d138742 CE |
13975 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13976 | # Warning - without using the other run time loading flags, | |
13977 | # -berok will link without error, but may produce a broken library. | |
13978 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13979 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13980 | # Exported symbols can be pulled into shared objects from archives | |
13981 | whole_archive_flag_spec_CXX='$convenience' | |
13982 | archive_cmds_need_lc_CXX=yes | |
13983 | # This is similar to how AIX traditionally builds its shared | |
13984 | # libraries. | |
13985 | 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' | |
13986 | fi | |
13987 | fi | |
13988 | ;; | |
d9898ee8 | 13989 | |
8d138742 CE |
13990 | beos*) |
13991 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13992 | allow_undefined_flag_CXX=unsupported | |
13993 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13994 | # support --undefined. This deserves some investigation. FIXME | |
13995 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13996 | else | |
13997 | ld_shlibs_CXX=no | |
13998 | fi | |
13999 | ;; | |
d9898ee8 | 14000 | |
8d138742 CE |
14001 | chorus*) |
14002 | case $cc_basename in | |
14003 | *) | |
14004 | # FIXME: insert proper C++ library support | |
14005 | ld_shlibs_CXX=no | |
14006 | ;; | |
14007 | esac | |
14008 | ;; | |
d9898ee8 | 14009 | |
8d138742 CE |
14010 | cygwin* | mingw* | pw32* | cegcc*) |
14011 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
14012 | # as there is no search path for DLLs. | |
14013 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
14014 | allow_undefined_flag_CXX=unsupported | |
14015 | always_export_symbols_CXX=no | |
14016 | enable_shared_with_static_runtimes_CXX=yes | |
14017 | ||
14018 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14019 | 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' | |
14020 | # If the export-symbols file already is a .def file (1st line | |
14021 | # is EXPORTS), use it as is; otherwise, prepend... | |
14022 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14023 | cp $export_symbols $output_objdir/$soname.def; | |
14024 | else | |
14025 | echo EXPORTS > $output_objdir/$soname.def; | |
14026 | cat $export_symbols >> $output_objdir/$soname.def; | |
14027 | fi~ | |
14028 | $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' | |
14029 | else | |
14030 | ld_shlibs_CXX=no | |
14031 | fi | |
14032 | ;; | |
14033 | darwin* | rhapsody*) | |
d9898ee8 | 14034 | |
d9898ee8 | 14035 | |
8d138742 CE |
14036 | archive_cmds_need_lc_CXX=no |
14037 | hardcode_direct_CXX=no | |
14038 | hardcode_automatic_CXX=yes | |
14039 | hardcode_shlibpath_var_CXX=unsupported | |
14040 | whole_archive_flag_spec_CXX='' | |
14041 | link_all_deplibs_CXX=yes | |
14042 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
14043 | case $cc_basename in | |
14044 | ifort*) _lt_dar_can_shared=yes ;; | |
14045 | *) _lt_dar_can_shared=$GCC ;; | |
14046 | esac | |
14047 | if test "$_lt_dar_can_shared" = "yes"; then | |
14048 | output_verbose_link_cmd=echo | |
14049 | 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}" | |
14050 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14051 | 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}" | |
14052 | 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}" | |
14053 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
14054 | 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}" | |
14055 | 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}" | |
14056 | fi | |
d9898ee8 | 14057 | |
8d138742 CE |
14058 | else |
14059 | ld_shlibs_CXX=no | |
14060 | fi | |
d9898ee8 | 14061 | |
8d138742 | 14062 | ;; |
d9898ee8 | 14063 | |
8d138742 CE |
14064 | dgux*) |
14065 | case $cc_basename in | |
14066 | ec++*) | |
14067 | # FIXME: insert proper C++ library support | |
14068 | ld_shlibs_CXX=no | |
14069 | ;; | |
14070 | ghcx*) | |
14071 | # Green Hills C++ Compiler | |
14072 | # FIXME: insert proper C++ library support | |
14073 | ld_shlibs_CXX=no | |
14074 | ;; | |
14075 | *) | |
14076 | # FIXME: insert proper C++ library support | |
14077 | ld_shlibs_CXX=no | |
14078 | ;; | |
14079 | esac | |
14080 | ;; | |
d9898ee8 | 14081 | |
8d138742 CE |
14082 | freebsd[12]*) |
14083 | # C++ shared libraries reported to be fairly broken before | |
14084 | # switch to ELF | |
14085 | ld_shlibs_CXX=no | |
14086 | ;; | |
d9898ee8 | 14087 | |
8d138742 CE |
14088 | freebsd-elf*) |
14089 | archive_cmds_need_lc_CXX=no | |
14090 | ;; | |
d9898ee8 | 14091 | |
8d138742 CE |
14092 | freebsd* | dragonfly*) |
14093 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
14094 | # conventions | |
14095 | ld_shlibs_CXX=yes | |
14096 | ;; | |
d9898ee8 | 14097 | |
8d138742 CE |
14098 | gnu*) |
14099 | ;; | |
d9898ee8 | 14100 | |
8d138742 CE |
14101 | hpux9*) |
14102 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
14103 | hardcode_libdir_separator_CXX=: | |
14104 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14105 | hardcode_direct_CXX=yes | |
14106 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14107 | # but as the default | |
14108 | # location of the library. | |
14109 | ||
14110 | case $cc_basename in | |
14111 | CC*) | |
14112 | # FIXME: insert proper C++ library support | |
14113 | ld_shlibs_CXX=no | |
14114 | ;; | |
14115 | aCC*) | |
14116 | 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' | |
14117 | # Commands to make compiler produce verbose output that lists | |
14118 | # what "hidden" libraries, object files and flags are used when | |
14119 | # linking a shared library. | |
14120 | # | |
14121 | # There doesn't appear to be a way to prevent this compiler from | |
14122 | # explicitly linking system object files so we need to strip them | |
14123 | # from the output so that they don't get included in the library | |
14124 | # dependencies. | |
14125 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
14126 | ;; | |
14127 | *) | |
14128 | if test "$GXX" = yes; then | |
14129 | 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' | |
14130 | else | |
14131 | # FIXME: insert proper C++ library support | |
14132 | ld_shlibs_CXX=no | |
14133 | fi | |
14134 | ;; | |
14135 | esac | |
14136 | ;; | |
d9898ee8 | 14137 | |
8d138742 CE |
14138 | hpux10*|hpux11*) |
14139 | if test $with_gnu_ld = no; then | |
14140 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
14141 | hardcode_libdir_separator_CXX=: | |
d9898ee8 | 14142 | |
8d138742 CE |
14143 | case $host_cpu in |
14144 | hppa*64*|ia64*) | |
14145 | ;; | |
14146 | *) | |
14147 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14148 | ;; | |
14149 | esac | |
14150 | fi | |
14151 | case $host_cpu in | |
14152 | hppa*64*|ia64*) | |
14153 | hardcode_direct_CXX=no | |
14154 | hardcode_shlibpath_var_CXX=no | |
14155 | ;; | |
14156 | *) | |
14157 | hardcode_direct_CXX=yes | |
14158 | hardcode_direct_absolute_CXX=yes | |
14159 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14160 | # but as the default | |
14161 | # location of the library. | |
14162 | ;; | |
14163 | esac | |
d9898ee8 | 14164 | |
8d138742 CE |
14165 | case $cc_basename in |
14166 | CC*) | |
14167 | # FIXME: insert proper C++ library support | |
14168 | ld_shlibs_CXX=no | |
14169 | ;; | |
14170 | aCC*) | |
14171 | case $host_cpu in | |
14172 | hppa*64*) | |
14173 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14174 | ;; | |
14175 | ia64*) | |
14176 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14177 | ;; | |
14178 | *) | |
14179 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14180 | ;; | |
14181 | esac | |
14182 | # Commands to make compiler produce verbose output that lists | |
14183 | # what "hidden" libraries, object files and flags are used when | |
14184 | # linking a shared library. | |
14185 | # | |
14186 | # There doesn't appear to be a way to prevent this compiler from | |
14187 | # explicitly linking system object files so we need to strip them | |
14188 | # from the output so that they don't get included in the library | |
14189 | # dependencies. | |
14190 | 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 "X$list" | $Xsed' | |
14191 | ;; | |
14192 | *) | |
14193 | if test "$GXX" = yes; then | |
14194 | if test $with_gnu_ld = no; then | |
14195 | case $host_cpu in | |
14196 | hppa*64*) | |
14197 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14198 | ;; | |
14199 | ia64*) | |
14200 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14201 | ;; | |
14202 | *) | |
14203 | 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' | |
14204 | ;; | |
14205 | esac | |
14206 | fi | |
14207 | else | |
14208 | # FIXME: insert proper C++ library support | |
14209 | ld_shlibs_CXX=no | |
14210 | fi | |
14211 | ;; | |
14212 | esac | |
14213 | ;; | |
d9898ee8 | 14214 | |
8d138742 CE |
14215 | interix[3-9]*) |
14216 | hardcode_direct_CXX=no | |
14217 | hardcode_shlibpath_var_CXX=no | |
14218 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14219 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14220 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14221 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14222 | # default) and relocated if they conflict, which is a slow very memory | |
14223 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14224 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14225 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14226 | 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' | |
14227 | 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' | |
14228 | ;; | |
14229 | irix5* | irix6*) | |
14230 | case $cc_basename in | |
14231 | CC*) | |
14232 | # SGI C++ | |
14233 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
14234 | ||
14235 | # Archives containing C++ object files must be created using | |
14236 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
14237 | # necessary to make sure instantiated templates are included | |
14238 | # in the archive. | |
14239 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
14240 | ;; | |
14241 | *) | |
14242 | if test "$GXX" = yes; then | |
14243 | if test "$with_gnu_ld" = no; then | |
14244 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14245 | else | |
14246 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
14247 | fi | |
14248 | fi | |
14249 | link_all_deplibs_CXX=yes | |
14250 | ;; | |
14251 | esac | |
14252 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14253 | hardcode_libdir_separator_CXX=: | |
14254 | inherit_rpath_CXX=yes | |
14255 | ;; | |
d9898ee8 | 14256 | |
8d138742 CE |
14257 | linux* | k*bsd*-gnu) |
14258 | case $cc_basename in | |
14259 | KCC*) | |
14260 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14261 | ||
14262 | # KCC will only create a shared library if the output file | |
14263 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14264 | # to its proper name (with version) after linking. | |
14265 | 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' | |
14266 | 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' | |
14267 | # Commands to make compiler produce verbose output that lists | |
14268 | # what "hidden" libraries, object files and flags are used when | |
14269 | # linking a shared library. | |
14270 | # | |
14271 | # There doesn't appear to be a way to prevent this compiler from | |
14272 | # explicitly linking system object files so we need to strip them | |
14273 | # from the output so that they don't get included in the library | |
14274 | # dependencies. | |
14275 | 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 "X$list" | $Xsed' | |
14276 | ||
14277 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14278 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14279 | ||
14280 | # Archives containing C++ object files must be created using | |
14281 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
14282 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
14283 | ;; | |
14284 | icpc* | ecpc* ) | |
14285 | # Intel C++ | |
14286 | with_gnu_ld=yes | |
14287 | # version 8.0 and above of icpc choke on multiply defined symbols | |
14288 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
14289 | # earlier do not add the objects themselves. | |
14290 | case `$CC -V 2>&1` in | |
14291 | *"Version 7."*) | |
14292 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14293 | 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' | |
14294 | ;; | |
14295 | *) # Version 8.0 or newer | |
14296 | tmp_idyn= | |
14297 | case $host_cpu in | |
14298 | ia64*) tmp_idyn=' -i_dynamic';; | |
14299 | esac | |
14300 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14301 | 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' | |
14302 | ;; | |
14303 | esac | |
14304 | archive_cmds_need_lc_CXX=no | |
14305 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14306 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14307 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14308 | ;; | |
14309 | pgCC* | pgcpp*) | |
14310 | # Portland Group C++ compiler | |
14311 | case `$CC -V` in | |
14312 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
14313 | prelink_cmds_CXX='tpldir=Template.dir~ | |
14314 | rm -rf $tpldir~ | |
14315 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
14316 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
14317 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
14318 | rm -rf $tpldir~ | |
14319 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
14320 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
14321 | $RANLIB $oldlib' | |
14322 | archive_cmds_CXX='tpldir=Template.dir~ | |
14323 | rm -rf $tpldir~ | |
14324 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14325 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
14326 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
14327 | rm -rf $tpldir~ | |
14328 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14329 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
14330 | ;; | |
14331 | *) # Version 6 will use weak symbols | |
14332 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
14333 | 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' | |
14334 | ;; | |
14335 | esac | |
d9898ee8 | 14336 | |
8d138742 CE |
14337 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
14338 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14339 | 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' | |
14340 | ;; | |
14341 | cxx*) | |
14342 | # Compaq C++ | |
14343 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14344 | 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' | |
d9898ee8 | 14345 | |
8d138742 CE |
14346 | runpath_var=LD_RUN_PATH |
14347 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14348 | hardcode_libdir_separator_CXX=: | |
d9898ee8 | 14349 | |
8d138742 CE |
14350 | # Commands to make compiler produce verbose output that lists |
14351 | # what "hidden" libraries, object files and flags are used when | |
14352 | # linking a shared library. | |
14353 | # | |
14354 | # There doesn't appear to be a way to prevent this compiler from | |
14355 | # explicitly linking system object files so we need to strip them | |
14356 | # from the output so that they don't get included in the library | |
14357 | # dependencies. | |
14358 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
14359 | ;; | |
14360 | xl*) | |
14361 | # IBM XL 8.0 on PPC, with GNU ld | |
14362 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14363 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14364 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14365 | if test "x$supports_anon_versioning" = xyes; then | |
14366 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
14367 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14368 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14369 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14370 | fi | |
14371 | ;; | |
14372 | *) | |
14373 | case `$CC -V 2>&1 | sed 5q` in | |
14374 | *Sun\ C*) | |
14375 | # Sun C++ 5.9 | |
14376 | no_undefined_flag_CXX=' -zdefs' | |
14377 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14378 | 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' | |
14379 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14380 | 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' | |
14381 | compiler_needs_object_CXX=yes | |
14382 | ||
14383 | # Not sure whether something based on | |
14384 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14385 | # would be better. | |
14386 | output_verbose_link_cmd='echo' | |
14387 | ||
14388 | # Archives containing C++ object files must be created using | |
14389 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14390 | # necessary to make sure instantiated templates are included | |
14391 | # in the archive. | |
14392 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14393 | ;; | |
14394 | esac | |
14395 | ;; | |
14396 | esac | |
14397 | ;; | |
d9898ee8 | 14398 | |
8d138742 CE |
14399 | lynxos*) |
14400 | # FIXME: insert proper C++ library support | |
14401 | ld_shlibs_CXX=no | |
14402 | ;; | |
d9898ee8 | 14403 | |
8d138742 CE |
14404 | m88k*) |
14405 | # FIXME: insert proper C++ library support | |
14406 | ld_shlibs_CXX=no | |
14407 | ;; | |
d9898ee8 | 14408 | |
8d138742 CE |
14409 | mvs*) |
14410 | case $cc_basename in | |
14411 | cxx*) | |
14412 | # FIXME: insert proper C++ library support | |
14413 | ld_shlibs_CXX=no | |
14414 | ;; | |
14415 | *) | |
14416 | # FIXME: insert proper C++ library support | |
14417 | ld_shlibs_CXX=no | |
14418 | ;; | |
14419 | esac | |
14420 | ;; | |
d9898ee8 | 14421 | |
8d138742 CE |
14422 | netbsd*) |
14423 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14424 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14425 | wlarc= | |
14426 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14427 | hardcode_direct_CXX=yes | |
14428 | hardcode_shlibpath_var_CXX=no | |
14429 | fi | |
14430 | # Workaround some broken pre-1.5 toolchains | |
14431 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
14432 | ;; | |
d9898ee8 | 14433 | |
8d138742 CE |
14434 | *nto* | *qnx*) |
14435 | ld_shlibs_CXX=yes | |
14436 | ;; | |
d9898ee8 | 14437 | |
8d138742 CE |
14438 | openbsd2*) |
14439 | # C++ shared libraries are fairly broken | |
14440 | ld_shlibs_CXX=no | |
14441 | ;; | |
d9898ee8 | 14442 | |
8d138742 CE |
14443 | openbsd*) |
14444 | if test -f /usr/libexec/ld.so; then | |
14445 | hardcode_direct_CXX=yes | |
14446 | hardcode_shlibpath_var_CXX=no | |
14447 | hardcode_direct_absolute_CXX=yes | |
14448 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
14449 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14450 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14451 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
14452 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14453 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14454 | fi | |
14455 | output_verbose_link_cmd=echo | |
14456 | else | |
14457 | ld_shlibs_CXX=no | |
14458 | fi | |
14459 | ;; | |
d9898ee8 | 14460 | |
8d138742 CE |
14461 | osf3* | osf4* | osf5*) |
14462 | case $cc_basename in | |
14463 | KCC*) | |
14464 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14465 | ||
14466 | # KCC will only create a shared library if the output file | |
14467 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14468 | # to its proper name (with version) after linking. | |
14469 | 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' | |
14470 | ||
14471 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14472 | hardcode_libdir_separator_CXX=: | |
14473 | ||
14474 | # Archives containing C++ object files must be created using | |
14475 | # the KAI C++ compiler. | |
14476 | case $host in | |
14477 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14478 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14479 | esac | |
14480 | ;; | |
14481 | RCC*) | |
14482 | # Rational C++ 2.4.1 | |
14483 | # FIXME: insert proper C++ library support | |
14484 | ld_shlibs_CXX=no | |
14485 | ;; | |
14486 | cxx*) | |
14487 | case $host in | |
14488 | osf3*) | |
14489 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
14490 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
14491 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14492 | ;; | |
14493 | *) | |
14494 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
14495 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
14496 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
14497 | echo "-hidden">> $lib.exp~ | |
14498 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
14499 | $RM $lib.exp' | |
14500 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14501 | ;; | |
14502 | esac | |
d9898ee8 | 14503 | |
8d138742 | 14504 | hardcode_libdir_separator_CXX=: |
d9898ee8 | 14505 | |
8d138742 CE |
14506 | # Commands to make compiler produce verbose output that lists |
14507 | # what "hidden" libraries, object files and flags are used when | |
14508 | # linking a shared library. | |
14509 | # | |
14510 | # There doesn't appear to be a way to prevent this compiler from | |
14511 | # explicitly linking system object files so we need to strip them | |
14512 | # from the output so that they don't get included in the library | |
14513 | # dependencies. | |
14514 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
14515 | ;; | |
14516 | *) | |
14517 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14518 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
14519 | case $host in | |
14520 | osf3*) | |
14521 | 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14522 | ;; | |
14523 | *) | |
14524 | 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14525 | ;; | |
14526 | esac | |
14527 | ||
14528 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14529 | hardcode_libdir_separator_CXX=: | |
14530 | ||
14531 | # Commands to make compiler produce verbose output that lists | |
14532 | # what "hidden" libraries, object files and flags are used when | |
14533 | # linking a shared library. | |
14534 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
14535 | ||
14536 | else | |
14537 | # FIXME: insert proper C++ library support | |
14538 | ld_shlibs_CXX=no | |
14539 | fi | |
14540 | ;; | |
14541 | esac | |
14542 | ;; | |
d9898ee8 | 14543 | |
8d138742 CE |
14544 | psos*) |
14545 | # FIXME: insert proper C++ library support | |
14546 | ld_shlibs_CXX=no | |
14547 | ;; | |
d9898ee8 | 14548 | |
8d138742 CE |
14549 | sunos4*) |
14550 | case $cc_basename in | |
14551 | CC*) | |
14552 | # Sun C++ 4.x | |
14553 | # FIXME: insert proper C++ library support | |
14554 | ld_shlibs_CXX=no | |
14555 | ;; | |
14556 | lcc*) | |
14557 | # Lucid | |
14558 | # FIXME: insert proper C++ library support | |
14559 | ld_shlibs_CXX=no | |
14560 | ;; | |
14561 | *) | |
14562 | # FIXME: insert proper C++ library support | |
14563 | ld_shlibs_CXX=no | |
14564 | ;; | |
14565 | esac | |
14566 | ;; | |
d9898ee8 | 14567 | |
8d138742 CE |
14568 | solaris*) |
14569 | case $cc_basename in | |
14570 | CC*) | |
14571 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14572 | archive_cmds_need_lc_CXX=yes | |
14573 | no_undefined_flag_CXX=' -zdefs' | |
14574 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14575 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14576 | $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' | |
14577 | ||
14578 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14579 | hardcode_shlibpath_var_CXX=no | |
14580 | case $host_os in | |
14581 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14582 | *) | |
14583 | # The compiler driver will combine and reorder linker options, | |
14584 | # but understands `-z linker_flag'. | |
14585 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14586 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14587 | ;; | |
14588 | esac | |
14589 | link_all_deplibs_CXX=yes | |
d9898ee8 | 14590 | |
8d138742 | 14591 | output_verbose_link_cmd='echo' |
d9898ee8 | 14592 | |
8d138742 CE |
14593 | # Archives containing C++ object files must be created using |
14594 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14595 | # necessary to make sure instantiated templates are included | |
14596 | # in the archive. | |
14597 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14598 | ;; | |
14599 | gcx*) | |
14600 | # Green Hills C++ Compiler | |
14601 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
d9898ee8 | 14602 | |
8d138742 CE |
14603 | # The C++ compiler must be used to create the archive. |
14604 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14605 | ;; | |
14606 | *) | |
14607 | # GNU C++ compiler with Solaris linker | |
14608 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14609 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
14610 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
14611 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14612 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14613 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14614 | ||
14615 | # Commands to make compiler produce verbose output that lists | |
14616 | # what "hidden" libraries, object files and flags are used when | |
14617 | # linking a shared library. | |
14618 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
14619 | else | |
14620 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
14621 | # platform. | |
14622 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14623 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14624 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14625 | ||
14626 | # Commands to make compiler produce verbose output that lists | |
14627 | # what "hidden" libraries, object files and flags are used when | |
14628 | # linking a shared library. | |
14629 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
14630 | fi | |
14631 | ||
14632 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
14633 | case $host_os in | |
14634 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14635 | *) | |
14636 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14637 | ;; | |
14638 | esac | |
14639 | fi | |
14640 | ;; | |
14641 | esac | |
14642 | ;; | |
d9898ee8 | 14643 | |
8d138742 CE |
14644 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
14645 | no_undefined_flag_CXX='${wl}-z,text' | |
14646 | archive_cmds_need_lc_CXX=no | |
14647 | hardcode_shlibpath_var_CXX=no | |
14648 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 14649 | |
8d138742 CE |
14650 | case $cc_basename in |
14651 | CC*) | |
14652 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14653 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14654 | ;; | |
14655 | *) | |
14656 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14657 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14658 | ;; | |
14659 | esac | |
14660 | ;; | |
d9898ee8 | 14661 | |
8d138742 CE |
14662 | sysv5* | sco3.2v5* | sco5v6*) |
14663 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14664 | # link with -lc, and that would cause any symbols used from libc to | |
14665 | # always be unresolved, which means just about no library would | |
14666 | # ever link correctly. If we're not using GNU ld we use -z text | |
14667 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14668 | # as -z defs. | |
14669 | no_undefined_flag_CXX='${wl}-z,text' | |
14670 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
14671 | archive_cmds_need_lc_CXX=no | |
14672 | hardcode_shlibpath_var_CXX=no | |
14673 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
14674 | hardcode_libdir_separator_CXX=':' | |
14675 | link_all_deplibs_CXX=yes | |
14676 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
14677 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 14678 | |
8d138742 CE |
14679 | case $cc_basename in |
14680 | CC*) | |
14681 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14682 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14683 | ;; | |
14684 | *) | |
14685 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14686 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14687 | ;; | |
14688 | esac | |
14689 | ;; | |
d9898ee8 | 14690 | |
8d138742 CE |
14691 | tandem*) |
14692 | case $cc_basename in | |
14693 | NCC*) | |
14694 | # NonStop-UX NCC 3.20 | |
14695 | # FIXME: insert proper C++ library support | |
14696 | ld_shlibs_CXX=no | |
14697 | ;; | |
14698 | *) | |
14699 | # FIXME: insert proper C++ library support | |
14700 | ld_shlibs_CXX=no | |
14701 | ;; | |
14702 | esac | |
14703 | ;; | |
d9898ee8 | 14704 | |
8d138742 CE |
14705 | vxworks*) |
14706 | # FIXME: insert proper C++ library support | |
14707 | ld_shlibs_CXX=no | |
14708 | ;; | |
d9898ee8 | 14709 | |
8d138742 CE |
14710 | *) |
14711 | # FIXME: insert proper C++ library support | |
14712 | ld_shlibs_CXX=no | |
14713 | ;; | |
14714 | esac | |
d9898ee8 | 14715 | |
8d138742 CE |
14716 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
14717 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14718 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
d9898ee8 | 14719 | |
8d138742 CE |
14720 | GCC_CXX="$GXX" |
14721 | LD_CXX="$LD" | |
d9898ee8 | 14722 | |
8d138742 CE |
14723 | ## CAVEAT EMPTOR: |
14724 | ## There is no encapsulation within the following macros, do not change | |
14725 | ## the running order or otherwise move them around unless you know exactly | |
14726 | ## what you are doing... | |
14727 | # Dependencies to place before and after the object being linked: | |
14728 | predep_objects_CXX= | |
14729 | postdep_objects_CXX= | |
14730 | predeps_CXX= | |
14731 | postdeps_CXX= | |
14732 | compiler_lib_search_path_CXX= | |
d9898ee8 | 14733 | |
8d138742 CE |
14734 | cat > conftest.$ac_ext <<_LT_EOF |
14735 | class Foo | |
14736 | { | |
14737 | public: | |
14738 | Foo (void) { a = 0; } | |
14739 | private: | |
14740 | int a; | |
14741 | }; | |
14742 | _LT_EOF | |
d9898ee8 | 14743 | |
8d138742 CE |
14744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14745 | (eval $ac_compile) 2>&5 | |
14746 | ac_status=$? | |
14747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14748 | (exit $ac_status); }; then | |
14749 | # Parse the compiler output and extract the necessary | |
14750 | # objects, libraries and library flags. | |
d9898ee8 | 14751 | |
8d138742 CE |
14752 | # Sentinel used to keep track of whether or not we are before |
14753 | # the conftest object file. | |
14754 | pre_test_object_deps_done=no | |
d9898ee8 | 14755 | |
8d138742 CE |
14756 | for p in `eval "$output_verbose_link_cmd"`; do |
14757 | case $p in | |
d9898ee8 | 14758 | |
8d138742 CE |
14759 | -L* | -R* | -l*) |
14760 | # Some compilers place space between "-{L,R}" and the path. | |
14761 | # Remove the space. | |
14762 | if test $p = "-L" || | |
14763 | test $p = "-R"; then | |
14764 | prev=$p | |
14765 | continue | |
14766 | else | |
14767 | prev= | |
14768 | fi | |
d9898ee8 | 14769 | |
8d138742 CE |
14770 | if test "$pre_test_object_deps_done" = no; then |
14771 | case $p in | |
14772 | -L* | -R*) | |
14773 | # Internal compiler library paths should come after those | |
14774 | # provided the user. The postdeps already come after the | |
14775 | # user supplied libs so there is no need to process them. | |
14776 | if test -z "$compiler_lib_search_path_CXX"; then | |
14777 | compiler_lib_search_path_CXX="${prev}${p}" | |
14778 | else | |
14779 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14780 | fi | |
14781 | ;; | |
14782 | # The "-l" case would never come before the object being | |
14783 | # linked, so don't bother handling this case. | |
14784 | esac | |
14785 | else | |
14786 | if test -z "$postdeps_CXX"; then | |
14787 | postdeps_CXX="${prev}${p}" | |
14788 | else | |
14789 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14790 | fi | |
14791 | fi | |
14792 | ;; | |
d9898ee8 | 14793 | |
8d138742 CE |
14794 | *.$objext) |
14795 | # This assumes that the test object file only shows up | |
14796 | # once in the compiler output. | |
14797 | if test "$p" = "conftest.$objext"; then | |
14798 | pre_test_object_deps_done=yes | |
14799 | continue | |
14800 | fi | |
d9898ee8 | 14801 | |
8d138742 CE |
14802 | if test "$pre_test_object_deps_done" = no; then |
14803 | if test -z "$predep_objects_CXX"; then | |
14804 | predep_objects_CXX="$p" | |
14805 | else | |
14806 | predep_objects_CXX="$predep_objects_CXX $p" | |
14807 | fi | |
14808 | else | |
14809 | if test -z "$postdep_objects_CXX"; then | |
14810 | postdep_objects_CXX="$p" | |
14811 | else | |
14812 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14813 | fi | |
14814 | fi | |
14815 | ;; | |
d9898ee8 | 14816 | |
8d138742 | 14817 | *) ;; # Ignore the rest. |
d9898ee8 | 14818 | |
8d138742 CE |
14819 | esac |
14820 | done | |
d9898ee8 | 14821 | |
8d138742 CE |
14822 | # Clean up. |
14823 | rm -f a.out a.exe | |
14824 | else | |
14825 | echo "libtool.m4: error: problem compiling CXX test program" | |
14826 | fi | |
d9898ee8 | 14827 | |
8d138742 | 14828 | $RM -f confest.$objext |
d9898ee8 | 14829 | |
8d138742 CE |
14830 | # PORTME: override above test on systems where it is broken |
14831 | case $host_os in | |
14832 | interix[3-9]*) | |
14833 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14834 | # hack all around it, let's just trust "g++" to DTRT. | |
14835 | predep_objects_CXX= | |
14836 | postdep_objects_CXX= | |
14837 | postdeps_CXX= | |
14838 | ;; | |
d9898ee8 | 14839 | |
8d138742 CE |
14840 | linux*) |
14841 | case `$CC -V 2>&1 | sed 5q` in | |
14842 | *Sun\ C*) | |
14843 | # Sun C++ 5.9 | |
d9898ee8 | 14844 | |
8d138742 CE |
14845 | # The more standards-conforming stlport4 library is |
14846 | # incompatible with the Cstd library. Avoid specifying | |
14847 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14848 | # -library=stlport4 depends on it. | |
14849 | case " $CXX $CXXFLAGS " in | |
14850 | *" -library=stlport4 "*) | |
14851 | solaris_use_stlport4=yes | |
14852 | ;; | |
14853 | esac | |
d9898ee8 | 14854 | |
8d138742 CE |
14855 | if test "$solaris_use_stlport4" != yes; then |
14856 | postdeps_CXX='-library=Cstd -library=Crun' | |
14857 | fi | |
14858 | ;; | |
14859 | esac | |
14860 | ;; | |
d9898ee8 | 14861 | |
8d138742 CE |
14862 | solaris*) |
14863 | case $cc_basename in | |
14864 | CC*) | |
14865 | # The more standards-conforming stlport4 library is | |
14866 | # incompatible with the Cstd library. Avoid specifying | |
14867 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14868 | # -library=stlport4 depends on it. | |
14869 | case " $CXX $CXXFLAGS " in | |
14870 | *" -library=stlport4 "*) | |
14871 | solaris_use_stlport4=yes | |
14872 | ;; | |
14873 | esac | |
d9898ee8 | 14874 | |
8d138742 CE |
14875 | # Adding this requires a known-good setup of shared libraries for |
14876 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14877 | # archive will be linked into the output, leading to subtle bugs. | |
14878 | if test "$solaris_use_stlport4" != yes; then | |
14879 | postdeps_CXX='-library=Cstd -library=Crun' | |
14880 | fi | |
14881 | ;; | |
14882 | esac | |
14883 | ;; | |
14884 | esac | |
d9898ee8 | 14885 | |
14886 | ||
8d138742 CE |
14887 | case " $postdeps_CXX " in |
14888 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14889 | esac | |
14890 | compiler_lib_search_dirs_CXX= | |
14891 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14892 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
d9898ee8 | 14893 | fi |
14894 | ||
14895 | ||
d9898ee8 | 14896 | |
d9898ee8 | 14897 | |
d9898ee8 | 14898 | |
d9898ee8 | 14899 | |
14900 | ||
d9898ee8 | 14901 | |
d9898ee8 | 14902 | |
d9898ee8 | 14903 | |
d9898ee8 | 14904 | |
d9898ee8 | 14905 | |
d9898ee8 | 14906 | |
d9898ee8 | 14907 | |
d9898ee8 | 14908 | |
14909 | ||
d9898ee8 | 14910 | |
d9898ee8 | 14911 | |
14912 | ||
d9898ee8 | 14913 | |
14914 | ||
d9898ee8 | 14915 | |
d9898ee8 | 14916 | |
14917 | ||
d9898ee8 | 14918 | |
d9898ee8 | 14919 | |
14920 | ||
d9898ee8 | 14921 | |
d9898ee8 | 14922 | |
d9898ee8 | 14923 | |
d9898ee8 | 14924 | |
8d138742 CE |
14925 | lt_prog_compiler_wl_CXX= |
14926 | lt_prog_compiler_pic_CXX= | |
14927 | lt_prog_compiler_static_CXX= | |
d9898ee8 | 14928 | |
8d138742 CE |
14929 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14930 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 14931 | |
8d138742 CE |
14932 | # C++ specific cases for pic, static, wl, etc. |
14933 | if test "$GXX" = yes; then | |
14934 | lt_prog_compiler_wl_CXX='-Wl,' | |
14935 | lt_prog_compiler_static_CXX='-static' | |
d9898ee8 | 14936 | |
14937 | case $host_os in | |
8d138742 | 14938 | aix*) |
d9898ee8 | 14939 | # All AIX code is PIC. |
14940 | if test "$host_cpu" = ia64; then | |
14941 | # AIX 5 now supports IA64 processor | |
8d138742 | 14942 | lt_prog_compiler_static_CXX='-Bstatic' |
d9898ee8 | 14943 | fi |
14944 | ;; | |
14945 | ||
14946 | amigaos*) | |
8d138742 CE |
14947 | case $host_cpu in |
14948 | powerpc) | |
14949 | # see comment about AmigaOS4 .so support | |
14950 | lt_prog_compiler_pic_CXX='-fPIC' | |
14951 | ;; | |
14952 | m68k) | |
14953 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14954 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14955 | # like `-m68040'. | |
14956 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14957 | ;; | |
14958 | esac | |
d9898ee8 | 14959 | ;; |
14960 | ||
ac40fd9e | 14961 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 | 14962 | # PIC is the default for these OSes. |
14963 | ;; | |
8d138742 | 14964 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
d9898ee8 | 14965 | # This hack is so that the source file can tell whether it is being |
14966 | # built for inclusion in a dll (and should export symbols for example). | |
ac40fd9e | 14967 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
14968 | # (--disable-auto-import) libraries | |
8d138742 | 14969 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
d9898ee8 | 14970 | ;; |
d9898ee8 | 14971 | darwin* | rhapsody*) |
14972 | # PIC is the default on this platform | |
14973 | # Common symbols not allowed in MH_DYLIB files | |
8d138742 CE |
14974 | lt_prog_compiler_pic_CXX='-fno-common' |
14975 | ;; | |
14976 | *djgpp*) | |
14977 | # DJGPP does not support shared libraries at all | |
14978 | lt_prog_compiler_pic_CXX= | |
d9898ee8 | 14979 | ;; |
ac40fd9e | 14980 | interix[3-9]*) |
d9898ee8 | 14981 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14982 | # Instead, we relocate shared libraries at runtime. | |
14983 | ;; | |
d9898ee8 | 14984 | sysv4*MP*) |
14985 | if test -d /usr/nec; then | |
8d138742 | 14986 | lt_prog_compiler_pic_CXX=-Kconform_pic |
d9898ee8 | 14987 | fi |
14988 | ;; | |
d9898ee8 | 14989 | hpux*) |
8d138742 CE |
14990 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
14991 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14992 | # sets the default TLS model and affects inlining. | |
d9898ee8 | 14993 | case $host_cpu in |
8d138742 | 14994 | hppa*64*) |
d9898ee8 | 14995 | ;; |
14996 | *) | |
8d138742 | 14997 | lt_prog_compiler_pic_CXX='-fPIC' |
d9898ee8 | 14998 | ;; |
14999 | esac | |
15000 | ;; | |
8d138742 CE |
15001 | *qnx* | *nto*) |
15002 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15003 | # it will coredump. | |
15004 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15005 | ;; | |
d9898ee8 | 15006 | *) |
8d138742 | 15007 | lt_prog_compiler_pic_CXX='-fPIC' |
d9898ee8 | 15008 | ;; |
15009 | esac | |
15010 | else | |
d9898ee8 | 15011 | case $host_os in |
8d138742 CE |
15012 | aix[4-9]*) |
15013 | # All AIX code is PIC. | |
15014 | if test "$host_cpu" = ia64; then | |
15015 | # AIX 5 now supports IA64 processor | |
15016 | lt_prog_compiler_static_CXX='-Bstatic' | |
15017 | else | |
15018 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
15019 | fi | |
d9898ee8 | 15020 | ;; |
8d138742 CE |
15021 | chorus*) |
15022 | case $cc_basename in | |
15023 | cxch68*) | |
15024 | # Green Hills C++ Compiler | |
15025 | # _LT_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" | |
15026 | ;; | |
15027 | esac | |
d9898ee8 | 15028 | ;; |
8d138742 CE |
15029 | dgux*) |
15030 | case $cc_basename in | |
15031 | ec++*) | |
15032 | lt_prog_compiler_pic_CXX='-KPIC' | |
15033 | ;; | |
15034 | ghcx*) | |
15035 | # Green Hills C++ Compiler | |
15036 | lt_prog_compiler_pic_CXX='-pic' | |
15037 | ;; | |
15038 | *) | |
15039 | ;; | |
15040 | esac | |
15041 | ;; | |
15042 | freebsd* | dragonfly*) | |
15043 | # FreeBSD uses GNU C++ | |
15044 | ;; | |
15045 | hpux9* | hpux10* | hpux11*) | |
15046 | case $cc_basename in | |
15047 | CC*) | |
15048 | lt_prog_compiler_wl_CXX='-Wl,' | |
15049 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
15050 | if test "$host_cpu" != ia64; then | |
15051 | lt_prog_compiler_pic_CXX='+Z' | |
15052 | fi | |
15053 | ;; | |
15054 | aCC*) | |
15055 | lt_prog_compiler_wl_CXX='-Wl,' | |
15056 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
15057 | case $host_cpu in | |
15058 | hppa*64*|ia64*) | |
15059 | # +Z the default | |
15060 | ;; | |
15061 | *) | |
15062 | lt_prog_compiler_pic_CXX='+Z' | |
15063 | ;; | |
15064 | esac | |
15065 | ;; | |
15066 | *) | |
15067 | ;; | |
15068 | esac | |
15069 | ;; | |
15070 | interix*) | |
15071 | # This is c89, which is MS Visual C++ (no shared libs) | |
15072 | # Anyone wants to do a port? | |
15073 | ;; | |
15074 | irix5* | irix6* | nonstopux*) | |
15075 | case $cc_basename in | |
15076 | CC*) | |
15077 | lt_prog_compiler_wl_CXX='-Wl,' | |
15078 | lt_prog_compiler_static_CXX='-non_shared' | |
15079 | # CC pic flag -KPIC is the default. | |
15080 | ;; | |
15081 | *) | |
15082 | ;; | |
15083 | esac | |
15084 | ;; | |
15085 | linux* | k*bsd*-gnu) | |
15086 | case $cc_basename in | |
15087 | KCC*) | |
15088 | # KAI C++ Compiler | |
15089 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15090 | lt_prog_compiler_pic_CXX='-fPIC' | |
15091 | ;; | |
15092 | ecpc* ) | |
15093 | # old Intel C++ for x86_64 which still supported -KPIC. | |
15094 | lt_prog_compiler_wl_CXX='-Wl,' | |
15095 | lt_prog_compiler_pic_CXX='-KPIC' | |
15096 | lt_prog_compiler_static_CXX='-static' | |
15097 | ;; | |
15098 | icpc* ) | |
15099 | # Intel C++, used to be incompatible with GCC. | |
15100 | # ICC 10 doesn't accept -KPIC any more. | |
15101 | lt_prog_compiler_wl_CXX='-Wl,' | |
15102 | lt_prog_compiler_pic_CXX='-fPIC' | |
15103 | lt_prog_compiler_static_CXX='-static' | |
15104 | ;; | |
15105 | pgCC* | pgcpp*) | |
15106 | # Portland Group C++ compiler | |
15107 | lt_prog_compiler_wl_CXX='-Wl,' | |
15108 | lt_prog_compiler_pic_CXX='-fpic' | |
15109 | lt_prog_compiler_static_CXX='-Bstatic' | |
15110 | ;; | |
15111 | cxx*) | |
15112 | # Compaq C++ | |
15113 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15114 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15115 | lt_prog_compiler_pic_CXX= | |
15116 | lt_prog_compiler_static_CXX='-non_shared' | |
15117 | ;; | |
15118 | xlc* | xlC*) | |
15119 | # IBM XL 8.0 on PPC | |
15120 | lt_prog_compiler_wl_CXX='-Wl,' | |
15121 | lt_prog_compiler_pic_CXX='-qpic' | |
15122 | lt_prog_compiler_static_CXX='-qstaticlink' | |
15123 | ;; | |
15124 | *) | |
15125 | case `$CC -V 2>&1 | sed 5q` in | |
15126 | *Sun\ C*) | |
15127 | # Sun C++ 5.9 | |
15128 | lt_prog_compiler_pic_CXX='-KPIC' | |
15129 | lt_prog_compiler_static_CXX='-Bstatic' | |
15130 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15131 | ;; | |
15132 | esac | |
15133 | ;; | |
15134 | esac | |
15135 | ;; | |
15136 | lynxos*) | |
15137 | ;; | |
15138 | m88k*) | |
15139 | ;; | |
15140 | mvs*) | |
15141 | case $cc_basename in | |
15142 | cxx*) | |
15143 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
15144 | ;; | |
15145 | *) | |
15146 | ;; | |
15147 | esac | |
15148 | ;; | |
15149 | netbsd*) | |
15150 | ;; | |
15151 | *qnx* | *nto*) | |
15152 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15153 | # it will coredump. | |
15154 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
d9898ee8 | 15155 | ;; |
8d138742 CE |
15156 | osf3* | osf4* | osf5*) |
15157 | case $cc_basename in | |
15158 | KCC*) | |
15159 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15160 | ;; | |
15161 | RCC*) | |
15162 | # Rational C++ 2.4.1 | |
15163 | lt_prog_compiler_pic_CXX='-pic' | |
15164 | ;; | |
15165 | cxx*) | |
15166 | # Digital/Compaq C++ | |
15167 | lt_prog_compiler_wl_CXX='-Wl,' | |
15168 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15169 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15170 | lt_prog_compiler_pic_CXX= | |
15171 | lt_prog_compiler_static_CXX='-non_shared' | |
15172 | ;; | |
15173 | *) | |
15174 | ;; | |
15175 | esac | |
15176 | ;; | |
15177 | psos*) | |
15178 | ;; | |
15179 | solaris*) | |
15180 | case $cc_basename in | |
15181 | CC*) | |
15182 | # Sun C++ 4.2, 5.x and Centerline C++ | |
15183 | lt_prog_compiler_pic_CXX='-KPIC' | |
15184 | lt_prog_compiler_static_CXX='-Bstatic' | |
15185 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15186 | ;; | |
15187 | gcx*) | |
15188 | # Green Hills C++ Compiler | |
15189 | lt_prog_compiler_pic_CXX='-PIC' | |
15190 | ;; | |
15191 | *) | |
15192 | ;; | |
15193 | esac | |
15194 | ;; | |
15195 | sunos4*) | |
15196 | case $cc_basename in | |
15197 | CC*) | |
15198 | # Sun C++ 4.x | |
15199 | lt_prog_compiler_pic_CXX='-pic' | |
15200 | lt_prog_compiler_static_CXX='-Bstatic' | |
15201 | ;; | |
15202 | lcc*) | |
15203 | # Lucid | |
15204 | lt_prog_compiler_pic_CXX='-pic' | |
15205 | ;; | |
15206 | *) | |
15207 | ;; | |
15208 | esac | |
15209 | ;; | |
15210 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15211 | case $cc_basename in | |
15212 | CC*) | |
15213 | lt_prog_compiler_wl_CXX='-Wl,' | |
15214 | lt_prog_compiler_pic_CXX='-KPIC' | |
15215 | lt_prog_compiler_static_CXX='-Bstatic' | |
15216 | ;; | |
ac40fd9e | 15217 | esac |
15218 | ;; | |
8d138742 CE |
15219 | tandem*) |
15220 | case $cc_basename in | |
15221 | NCC*) | |
15222 | # NonStop-UX NCC 3.20 | |
15223 | lt_prog_compiler_pic_CXX='-KPIC' | |
15224 | ;; | |
15225 | *) | |
15226 | ;; | |
15227 | esac | |
15228 | ;; | |
15229 | vxworks*) | |
15230 | ;; | |
d9898ee8 | 15231 | *) |
8d138742 CE |
15232 | lt_prog_compiler_can_build_shared_CXX=no |
15233 | ;; | |
d9898ee8 | 15234 | esac |
15235 | fi | |
15236 | ||
8d138742 CE |
15237 | case $host_os in |
15238 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15239 | *djgpp*) | |
15240 | lt_prog_compiler_pic_CXX= | |
15241 | ;; | |
15242 | *) | |
15243 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
15244 | ;; | |
15245 | esac | |
15246 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
15247 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
15248 | ||
15249 | ||
d9898ee8 | 15250 | |
15251 | # | |
15252 | # Check to make sure the PIC flag actually works. | |
15253 | # | |
8d138742 CE |
15254 | if test -n "$lt_prog_compiler_pic_CXX"; then |
15255 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
15256 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
15257 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then | |
15258 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 15259 | else |
8d138742 CE |
15260 | lt_cv_prog_compiler_pic_works_CXX=no |
15261 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 15262 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8d138742 | 15263 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
d9898ee8 | 15264 | # Insert the option either (1) after the last *FLAGS variable, or |
15265 | # (2) before a word containing "conftest.", or (3) at the end. | |
15266 | # Note that $ac_compile itself does not contain backslashes and begins | |
15267 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15268 | # The option is referenced via a variable to avoid confusing sed. | |
15269 | lt_compile=`echo "$ac_compile" | $SED \ | |
15270 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15271 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15272 | -e 's:$: $lt_compiler_flag:'` | |
8d138742 | 15273 | (eval echo "\"\$as_me:15273: $lt_compile\"" >&5) |
d9898ee8 | 15274 | (eval "$lt_compile" 2>conftest.err) |
15275 | ac_status=$? | |
15276 | cat conftest.err >&5 | |
8d138742 | 15277 | echo "$as_me:15277: \$? = $ac_status" >&5 |
d9898ee8 | 15278 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15279 | # The compiler can only warn and ignore the option if not recognized | |
15280 | # So say no if there are warnings other than the usual output. | |
8d138742 | 15281 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
d9898ee8 | 15282 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15283 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 15284 | lt_cv_prog_compiler_pic_works_CXX=yes |
d9898ee8 | 15285 | fi |
15286 | fi | |
8d138742 | 15287 | $RM conftest* |
d9898ee8 | 15288 | |
15289 | fi | |
8d138742 CE |
15290 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
15291 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
d9898ee8 | 15292 | |
8d138742 CE |
15293 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
15294 | case $lt_prog_compiler_pic_CXX in | |
d9898ee8 | 15295 | "" | " "*) ;; |
8d138742 | 15296 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
d9898ee8 | 15297 | esac |
15298 | else | |
8d138742 CE |
15299 | lt_prog_compiler_pic_CXX= |
15300 | lt_prog_compiler_can_build_shared_CXX=no | |
d9898ee8 | 15301 | fi |
15302 | ||
15303 | fi | |
8d138742 CE |
15304 | |
15305 | ||
d9898ee8 | 15306 | |
15307 | # | |
15308 | # Check to make sure the static flag actually works. | |
15309 | # | |
8d138742 CE |
15310 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
15311 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15312 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
15313 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then | |
15314 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 15315 | else |
8d138742 | 15316 | lt_cv_prog_compiler_static_works_CXX=no |
d9898ee8 | 15317 | save_LDFLAGS="$LDFLAGS" |
15318 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
ac40fd9e | 15319 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 | 15320 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
15321 | # The linker can only warn and ignore the option if not recognized | |
15322 | # So say no if there are warnings | |
15323 | if test -s conftest.err; then | |
15324 | # Append any errors to the config.log. | |
15325 | cat conftest.err 1>&5 | |
8d138742 | 15326 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
d9898ee8 | 15327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15328 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 15329 | lt_cv_prog_compiler_static_works_CXX=yes |
d9898ee8 | 15330 | fi |
15331 | else | |
8d138742 | 15332 | lt_cv_prog_compiler_static_works_CXX=yes |
d9898ee8 | 15333 | fi |
15334 | fi | |
8d138742 | 15335 | $RM -r conftest* |
d9898ee8 | 15336 | LDFLAGS="$save_LDFLAGS" |
15337 | ||
15338 | fi | |
8d138742 CE |
15339 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
15340 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
d9898ee8 | 15341 | |
8d138742 | 15342 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
d9898ee8 | 15343 | : |
15344 | else | |
8d138742 | 15345 | lt_prog_compiler_static_CXX= |
d9898ee8 | 15346 | fi |
15347 | ||
15348 | ||
8d138742 CE |
15349 | |
15350 | ||
15351 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15352 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15353 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
15354 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 15355 | else |
8d138742 CE |
15356 | lt_cv_prog_compiler_c_o_CXX=no |
15357 | $RM -r conftest 2>/dev/null | |
d9898ee8 | 15358 | mkdir conftest |
15359 | cd conftest | |
15360 | mkdir out | |
ac40fd9e | 15361 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 15362 | |
15363 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15364 | # Insert the option either (1) after the last *FLAGS variable, or | |
15365 | # (2) before a word containing "conftest.", or (3) at the end. | |
15366 | # Note that $ac_compile itself does not contain backslashes and begins | |
15367 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15368 | lt_compile=`echo "$ac_compile" | $SED \ | |
15369 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15370 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15371 | -e 's:$: $lt_compiler_flag:'` | |
8d138742 | 15372 | (eval echo "\"\$as_me:15372: $lt_compile\"" >&5) |
d9898ee8 | 15373 | (eval "$lt_compile" 2>out/conftest.err) |
15374 | ac_status=$? | |
15375 | cat out/conftest.err >&5 | |
8d138742 | 15376 | echo "$as_me:15376: \$? = $ac_status" >&5 |
d9898ee8 | 15377 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15378 | then | |
15379 | # The compiler can only warn and ignore the option if not recognized | |
15380 | # So say no if there are warnings | |
8d138742 | 15381 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
d9898ee8 | 15382 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15383 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8d138742 | 15384 | lt_cv_prog_compiler_c_o_CXX=yes |
d9898ee8 | 15385 | fi |
15386 | fi | |
15387 | chmod u+w . 2>&5 | |
8d138742 | 15388 | $RM conftest* |
d9898ee8 | 15389 | # SGI C++ compiler will create directory out/ii_files/ for |
15390 | # template instantiation | |
8d138742 CE |
15391 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
15392 | $RM out/* && rmdir out | |
d9898ee8 | 15393 | cd .. |
8d138742 CE |
15394 | $RM -r conftest |
15395 | $RM conftest* | |
d9898ee8 | 15396 | |
d9898ee8 | 15397 | fi |
8d138742 CE |
15398 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
15399 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
d9898ee8 | 15400 | |
d9898ee8 | 15401 | |
d9898ee8 | 15402 | |
8d138742 CE |
15403 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
15404 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15405 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
15406 | $as_echo_n "(cached) " >&6 | |
15407 | else | |
15408 | lt_cv_prog_compiler_c_o_CXX=no | |
15409 | $RM -r conftest 2>/dev/null | |
15410 | mkdir conftest | |
15411 | cd conftest | |
15412 | mkdir out | |
15413 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 15414 | |
8d138742 CE |
15415 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
15416 | # Insert the option either (1) after the last *FLAGS variable, or | |
15417 | # (2) before a word containing "conftest.", or (3) at the end. | |
15418 | # Note that $ac_compile itself does not contain backslashes and begins | |
15419 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15420 | lt_compile=`echo "$ac_compile" | $SED \ | |
15421 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15423 | -e 's:$: $lt_compiler_flag:'` | |
15424 | (eval echo "\"\$as_me:15424: $lt_compile\"" >&5) | |
15425 | (eval "$lt_compile" 2>out/conftest.err) | |
15426 | ac_status=$? | |
15427 | cat out/conftest.err >&5 | |
15428 | echo "$as_me:15428: \$? = $ac_status" >&5 | |
15429 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15430 | then | |
15431 | # The compiler can only warn and ignore the option if not recognized | |
15432 | # So say no if there are warnings | |
15433 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
15434 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15435 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15436 | lt_cv_prog_compiler_c_o_CXX=yes | |
15437 | fi | |
15438 | fi | |
15439 | chmod u+w . 2>&5 | |
15440 | $RM conftest* | |
15441 | # SGI C++ compiler will create directory out/ii_files/ for | |
15442 | # template instantiation | |
15443 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15444 | $RM out/* && rmdir out | |
15445 | cd .. | |
15446 | $RM -r conftest | |
15447 | $RM conftest* | |
d9898ee8 | 15448 | |
8d138742 CE |
15449 | fi |
15450 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15451 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
d9898ee8 | 15452 | |
d9898ee8 | 15453 | |
d9898ee8 | 15454 | |
d9898ee8 | 15455 | |
8d138742 CE |
15456 | hard_links="nottested" |
15457 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
15458 | # do not overwrite the value of need_locks provided by the user | |
15459 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15460 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
15461 | hard_links=yes | |
15462 | $RM conftest* | |
15463 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15464 | touch conftest.a | |
15465 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15466 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15467 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15468 | $as_echo "$hard_links" >&6; } | |
15469 | if test "$hard_links" = no; then | |
15470 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
15471 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
15472 | need_locks=warn | |
15473 | fi | |
15474 | else | |
15475 | need_locks=no | |
15476 | fi | |
d9898ee8 | 15477 | |
d9898ee8 | 15478 | |
d9898ee8 | 15479 | |
8d138742 CE |
15480 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
15481 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 15482 | |
8d138742 CE |
15483 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
15484 | case $host_os in | |
15485 | aix[4-9]*) | |
15486 | # If we're using GNU nm, then we don't want the "-C" option. | |
15487 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
15488 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
15489 | 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' | |
15490 | else | |
15491 | 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' | |
d9898ee8 | 15492 | fi |
8d138742 CE |
15493 | ;; |
15494 | pw32*) | |
15495 | export_symbols_cmds_CXX="$ltdll_cmds" | |
15496 | ;; | |
15497 | cygwin* | mingw* | cegcc*) | |
15498 | 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' | |
15499 | ;; | |
15500 | *) | |
15501 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15502 | ;; | |
15503 | esac | |
15504 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
d9898ee8 | 15505 | |
8d138742 CE |
15506 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
15507 | $as_echo "$ld_shlibs_CXX" >&6; } | |
15508 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
d9898ee8 | 15509 | |
8d138742 | 15510 | with_gnu_ld_CXX=$with_gnu_ld |
d9898ee8 | 15511 | |
d9898ee8 | 15512 | |
d9898ee8 | 15513 | |
d9898ee8 | 15514 | |
d9898ee8 | 15515 | |
d9898ee8 | 15516 | |
8d138742 CE |
15517 | # |
15518 | # Do we need to explicitly link libc? | |
15519 | # | |
15520 | case "x$archive_cmds_need_lc_CXX" in | |
15521 | x|xyes) | |
15522 | # Assume -lc should be added | |
15523 | archive_cmds_need_lc_CXX=yes | |
d9898ee8 | 15524 | |
8d138742 CE |
15525 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15526 | case $archive_cmds_CXX in | |
15527 | *'~'*) | |
15528 | # FIXME: we may have to deal with multi-command sequences. | |
15529 | ;; | |
15530 | '$CC '*) | |
15531 | # Test whether the compiler implicitly links with -lc since on some | |
15532 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15533 | # to ld, don't add -lc before -lgcc. | |
15534 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
15535 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
15536 | $RM conftest* | |
15537 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15538 | ||
15539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15540 | (eval $ac_compile) 2>&5 | |
d9898ee8 | 15541 | ac_status=$? |
8d138742 CE |
15542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15543 | (exit $ac_status); } 2>conftest.err; then | |
15544 | soname=conftest | |
15545 | lib=conftest | |
15546 | libobjs=conftest.$ac_objext | |
15547 | deplibs= | |
15548 | wl=$lt_prog_compiler_wl_CXX | |
15549 | pic_flag=$lt_prog_compiler_pic_CXX | |
15550 | compiler_flags=-v | |
15551 | linker_flags=-v | |
15552 | verstring= | |
15553 | output_objdir=. | |
15554 | libname=conftest | |
15555 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15556 | allow_undefined_flag_CXX= | |
15557 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
15558 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15559 | ac_status=$? | |
15560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15561 | (exit $ac_status); } | |
15562 | then | |
15563 | archive_cmds_need_lc_CXX=no | |
15564 | else | |
15565 | archive_cmds_need_lc_CXX=yes | |
15566 | fi | |
15567 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15568 | else | |
15569 | cat conftest.err 1>&5 | |
15570 | fi | |
15571 | $RM conftest* | |
15572 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
15573 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
15574 | ;; | |
15575 | esac | |
15576 | fi | |
15577 | ;; | |
15578 | esac | |
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
d9898ee8 | 15589 | |
d9898ee8 | 15590 | |
dd184caf | 15591 | |
dd184caf | 15592 | |
d9898ee8 | 15593 | |
d9898ee8 | 15594 | |
d9898ee8 | 15595 | |
d9898ee8 | 15596 | |
d9898ee8 | 15597 | |
dd184caf | 15598 | |
dd184caf | 15599 | |
d9898ee8 | 15600 | |
d9898ee8 | 15601 | |
d9898ee8 | 15602 | |
d9898ee8 | 15603 | |
d9898ee8 | 15604 | |
d9898ee8 | 15605 | |
d9898ee8 | 15606 | |
d9898ee8 | 15607 | |
d9898ee8 | 15608 | |
d9898ee8 | 15609 | |
d9898ee8 | 15610 | |
d9898ee8 | 15611 | |
d9898ee8 | 15612 | |
d9898ee8 | 15613 | |
d9898ee8 | 15614 | |
d9898ee8 | 15615 | |
d9898ee8 | 15616 | |
d9898ee8 | 15617 | |
d9898ee8 | 15618 | |
d9898ee8 | 15619 | |
d9898ee8 | 15620 | |
d9898ee8 | 15621 | |
d9898ee8 | 15622 | |
d9898ee8 | 15623 | |
d9898ee8 | 15624 | |
d9898ee8 | 15625 | |
d9898ee8 | 15626 | |
d9898ee8 | 15627 | |
d9898ee8 | 15628 | |
d9898ee8 | 15629 | |
d9898ee8 | 15630 | |
d9898ee8 | 15631 | |
d9898ee8 | 15632 | |
d9898ee8 | 15633 | |
d9898ee8 | 15634 | |
d9898ee8 | 15635 | |
d9898ee8 | 15636 | |
d9898ee8 | 15637 | |
d9898ee8 | 15638 | |
d9898ee8 | 15639 | |
d9898ee8 | 15640 | |
d9898ee8 | 15641 | |
8d138742 CE |
15642 | |
15643 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
15644 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15645 | ||
d9898ee8 | 15646 | library_names_spec= |
15647 | libname_spec='lib$name' | |
15648 | soname_spec= | |
15649 | shrext_cmds=".so" | |
15650 | postinstall_cmds= | |
15651 | postuninstall_cmds= | |
15652 | finish_cmds= | |
15653 | finish_eval= | |
15654 | shlibpath_var= | |
15655 | shlibpath_overrides_runpath=unknown | |
15656 | version_type=none | |
15657 | dynamic_linker="$host_os ld.so" | |
15658 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 15659 | need_lib_prefix=unknown |
15660 | hardcode_into_libs=no | |
15661 | ||
15662 | # when you set need_version to no, make sure it does not cause -set_version | |
15663 | # flags to be left without arguments | |
15664 | need_version=unknown | |
15665 | ||
15666 | case $host_os in | |
15667 | aix3*) | |
15668 | version_type=linux | |
15669 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15670 | shlibpath_var=LIBPATH | |
15671 | ||
15672 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15673 | soname_spec='${libname}${release}${shared_ext}$major' | |
15674 | ;; | |
15675 | ||
8d138742 | 15676 | aix[4-9]*) |
d9898ee8 | 15677 | version_type=linux |
15678 | need_lib_prefix=no | |
15679 | need_version=no | |
15680 | hardcode_into_libs=yes | |
15681 | if test "$host_cpu" = ia64; then | |
15682 | # AIX 5 supports IA64 | |
15683 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15684 | shlibpath_var=LD_LIBRARY_PATH | |
15685 | else | |
15686 | # With GCC up to 2.95.x, collect2 would create an import file | |
15687 | # for dependence libraries. The import file would start with | |
15688 | # the line `#! .'. This would cause the generated library to | |
15689 | # depend on `.', always an invalid library. This was fixed in | |
15690 | # development snapshots of GCC prior to 3.0. | |
15691 | case $host_os in | |
15692 | aix4 | aix4.[01] | aix4.[01].*) | |
15693 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15694 | echo ' yes ' | |
8d138742 | 15695 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 15696 | : |
15697 | else | |
15698 | can_build_shared=no | |
15699 | fi | |
15700 | ;; | |
15701 | esac | |
15702 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15703 | # soname into executable. Probably we can add versioning support to | |
15704 | # collect2, so additional links can be useful in future. | |
15705 | if test "$aix_use_runtimelinking" = yes; then | |
15706 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15707 | # instead of lib<name>.a to let people know that these are not | |
15708 | # typical AIX shared libraries. | |
15709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15710 | else | |
15711 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15712 | # and later when we are not doing run time linking. | |
15713 | library_names_spec='${libname}${release}.a $libname.a' | |
15714 | soname_spec='${libname}${release}${shared_ext}$major' | |
15715 | fi | |
15716 | shlibpath_var=LIBPATH | |
15717 | fi | |
15718 | ;; | |
15719 | ||
15720 | amigaos*) | |
8d138742 CE |
15721 | case $host_cpu in |
15722 | powerpc) | |
15723 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15724 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15726 | ;; | |
15727 | m68k) | |
15728 | library_names_spec='$libname.ixlibrary $libname.a' | |
15729 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15730 | 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' | |
15731 | ;; | |
15732 | esac | |
d9898ee8 | 15733 | ;; |
15734 | ||
15735 | beos*) | |
15736 | library_names_spec='${libname}${shared_ext}' | |
15737 | dynamic_linker="$host_os ld.so" | |
15738 | shlibpath_var=LIBRARY_PATH | |
15739 | ;; | |
15740 | ||
15741 | bsdi[45]*) | |
15742 | version_type=linux | |
15743 | need_version=no | |
15744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15745 | soname_spec='${libname}${release}${shared_ext}$major' | |
15746 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15747 | shlibpath_var=LD_LIBRARY_PATH | |
15748 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15749 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15750 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15751 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15752 | # libtool to hard-code these into programs | |
15753 | ;; | |
15754 | ||
8d138742 | 15755 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 15756 | version_type=windows |
15757 | shrext_cmds=".dll" | |
15758 | need_version=no | |
15759 | need_lib_prefix=no | |
15760 | ||
15761 | case $GCC,$host_os in | |
8d138742 | 15762 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
d9898ee8 | 15763 | library_names_spec='$libname.dll.a' |
15764 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15765 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 15766 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 15767 | dldir=$destdir/`dirname \$dlpath`~ |
15768 | test -d \$dldir || mkdir -p \$dldir~ | |
15769 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
15770 | chmod a+x \$dldir/$dlname~ |
15771 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15772 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15773 | fi' | |
d9898ee8 | 15774 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15775 | dlpath=$dir/\$dldll~ | |
8d138742 | 15776 | $RM \$dlpath' |
d9898ee8 | 15777 | shlibpath_overrides_runpath=yes |
15778 | ||
15779 | case $host_os in | |
15780 | cygwin*) | |
15781 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15782 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15783 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
15784 | ;; | |
8d138742 | 15785 | mingw* | cegcc*) |
d9898ee8 | 15786 | # MinGW DLLs use traditional 'lib' prefix |
15787 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8d138742 CE |
15788 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15789 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
d9898ee8 | 15790 | # It is most probably a Windows format PATH printed by |
15791 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
15792 | # path with ; separators, and with drive letters. We can handle the | |
15793 | # drive letters (cygwin fileutils understands them), so leave them, | |
15794 | # especially as we might pass files found there to a mingw objdump, | |
15795 | # which wouldn't understand a cygwinified path. Ahh. | |
8d138742 | 15796 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 | 15797 | else |
8d138742 | 15798 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 | 15799 | fi |
15800 | ;; | |
15801 | pw32*) | |
15802 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15803 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15804 | ;; | |
15805 | esac | |
15806 | ;; | |
15807 | ||
15808 | *) | |
15809 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15810 | ;; | |
15811 | esac | |
15812 | dynamic_linker='Win32 ld.exe' | |
15813 | # FIXME: first we should search . and the directory the executable is in | |
15814 | shlibpath_var=PATH | |
15815 | ;; | |
15816 | ||
15817 | darwin* | rhapsody*) | |
15818 | dynamic_linker="$host_os dyld" | |
15819 | version_type=darwin | |
15820 | need_lib_prefix=no | |
15821 | need_version=no | |
8d138742 | 15822 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 15823 | soname_spec='${libname}${release}${major}$shared_ext' |
15824 | shlibpath_overrides_runpath=yes | |
15825 | shlibpath_var=DYLD_LIBRARY_PATH | |
15826 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 15827 | |
d9898ee8 | 15828 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15829 | ;; | |
15830 | ||
15831 | dgux*) | |
15832 | version_type=linux | |
15833 | need_lib_prefix=no | |
15834 | need_version=no | |
15835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15836 | soname_spec='${libname}${release}${shared_ext}$major' | |
15837 | shlibpath_var=LD_LIBRARY_PATH | |
15838 | ;; | |
15839 | ||
15840 | freebsd1*) | |
15841 | dynamic_linker=no | |
15842 | ;; | |
15843 | ||
d9898ee8 | 15844 | freebsd* | dragonfly*) |
15845 | # DragonFly does not have aout. When/if they implement a new | |
15846 | # versioning mechanism, adjust this. | |
15847 | if test -x /usr/bin/objformat; then | |
15848 | objformat=`/usr/bin/objformat` | |
15849 | else | |
15850 | case $host_os in | |
15851 | freebsd[123]*) objformat=aout ;; | |
15852 | *) objformat=elf ;; | |
15853 | esac | |
15854 | fi | |
15855 | version_type=freebsd-$objformat | |
15856 | case $version_type in | |
15857 | freebsd-elf*) | |
15858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15859 | need_version=no | |
15860 | need_lib_prefix=no | |
15861 | ;; | |
15862 | freebsd-*) | |
15863 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15864 | need_version=yes | |
15865 | ;; | |
15866 | esac | |
15867 | shlibpath_var=LD_LIBRARY_PATH | |
15868 | case $host_os in | |
15869 | freebsd2*) | |
15870 | shlibpath_overrides_runpath=yes | |
15871 | ;; | |
15872 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15873 | shlibpath_overrides_runpath=yes | |
15874 | hardcode_into_libs=yes | |
15875 | ;; | |
15876 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15877 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15878 | shlibpath_overrides_runpath=no | |
15879 | hardcode_into_libs=yes | |
15880 | ;; | |
ac40fd9e | 15881 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 15882 | shlibpath_overrides_runpath=yes |
15883 | hardcode_into_libs=yes | |
15884 | ;; | |
15885 | esac | |
15886 | ;; | |
15887 | ||
15888 | gnu*) | |
15889 | version_type=linux | |
15890 | need_lib_prefix=no | |
15891 | need_version=no | |
15892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15893 | soname_spec='${libname}${release}${shared_ext}$major' | |
15894 | shlibpath_var=LD_LIBRARY_PATH | |
15895 | hardcode_into_libs=yes | |
15896 | ;; | |
15897 | ||
15898 | hpux9* | hpux10* | hpux11*) | |
15899 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15900 | # link against other versions. | |
15901 | version_type=sunos | |
15902 | need_lib_prefix=no | |
15903 | need_version=no | |
15904 | case $host_cpu in | |
15905 | ia64*) | |
15906 | shrext_cmds='.so' | |
15907 | hardcode_into_libs=yes | |
15908 | dynamic_linker="$host_os dld.so" | |
15909 | shlibpath_var=LD_LIBRARY_PATH | |
15910 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15912 | soname_spec='${libname}${release}${shared_ext}$major' | |
15913 | if test "X$HPUX_IA64_MODE" = X32; then | |
15914 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15915 | else | |
15916 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15917 | fi | |
15918 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15919 | ;; | |
8d138742 CE |
15920 | hppa*64*) |
15921 | shrext_cmds='.sl' | |
15922 | hardcode_into_libs=yes | |
15923 | dynamic_linker="$host_os dld.sl" | |
15924 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15925 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15927 | soname_spec='${libname}${release}${shared_ext}$major' | |
15928 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15929 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15930 | ;; | |
15931 | *) | |
d9898ee8 | 15932 | shrext_cmds='.sl' |
15933 | dynamic_linker="$host_os dld.sl" | |
15934 | shlibpath_var=SHLIB_PATH | |
15935 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15937 | soname_spec='${libname}${release}${shared_ext}$major' | |
15938 | ;; | |
15939 | esac | |
15940 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15941 | postinstall_cmds='chmod 555 $lib' | |
15942 | ;; | |
15943 | ||
ac40fd9e | 15944 | interix[3-9]*) |
d9898ee8 | 15945 | version_type=linux |
15946 | need_lib_prefix=no | |
15947 | need_version=no | |
15948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15949 | soname_spec='${libname}${release}${shared_ext}$major' | |
15950 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15951 | shlibpath_var=LD_LIBRARY_PATH | |
15952 | shlibpath_overrides_runpath=no | |
15953 | hardcode_into_libs=yes | |
15954 | ;; | |
15955 | ||
15956 | irix5* | irix6* | nonstopux*) | |
15957 | case $host_os in | |
15958 | nonstopux*) version_type=nonstopux ;; | |
15959 | *) | |
15960 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15961 | version_type=linux | |
15962 | else | |
15963 | version_type=irix | |
15964 | fi ;; | |
15965 | esac | |
15966 | need_lib_prefix=no | |
15967 | need_version=no | |
15968 | soname_spec='${libname}${release}${shared_ext}$major' | |
15969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15970 | case $host_os in | |
15971 | irix5* | nonstopux*) | |
15972 | libsuff= shlibsuff= | |
15973 | ;; | |
15974 | *) | |
15975 | case $LD in # libtool.m4 will add one of these switches to LD | |
15976 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15977 | libsuff= shlibsuff= libmagic=32-bit;; | |
15978 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15979 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15980 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15981 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15982 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15983 | esac | |
15984 | ;; | |
15985 | esac | |
15986 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15987 | shlibpath_overrides_runpath=no | |
15988 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15989 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15990 | hardcode_into_libs=yes | |
15991 | ;; | |
15992 | ||
15993 | # No shared lib support for Linux oldld, aout, or coff. | |
15994 | linux*oldld* | linux*aout* | linux*coff*) | |
15995 | dynamic_linker=no | |
15996 | ;; | |
15997 | ||
15998 | # This must be Linux ELF. | |
ac40fd9e | 15999 | linux* | k*bsd*-gnu) |
d9898ee8 | 16000 | version_type=linux |
16001 | need_lib_prefix=no | |
16002 | need_version=no | |
16003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16004 | soname_spec='${libname}${release}${shared_ext}$major' | |
16005 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
16006 | shlibpath_var=LD_LIBRARY_PATH | |
16007 | shlibpath_overrides_runpath=no | |
8d138742 CE |
16008 | # Some binutils ld are patched to set DT_RUNPATH |
16009 | save_LDFLAGS=$LDFLAGS | |
16010 | save_libdir=$libdir | |
16011 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
16012 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
16013 | cat >conftest.$ac_ext <<_ACEOF | |
16014 | /* confdefs.h. */ | |
16015 | _ACEOF | |
16016 | cat confdefs.h >>conftest.$ac_ext | |
16017 | cat >>conftest.$ac_ext <<_ACEOF | |
16018 | /* end confdefs.h. */ | |
16019 | ||
16020 | int | |
16021 | main () | |
16022 | { | |
16023 | ||
16024 | ; | |
16025 | return 0; | |
16026 | } | |
16027 | _ACEOF | |
16028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16029 | if { (ac_try="$ac_link" | |
16030 | case "(($ac_try" in | |
16031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16032 | *) ac_try_echo=$ac_try;; | |
16033 | esac | |
16034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16035 | $as_echo "$ac_try_echo") >&5 | |
16036 | (eval "$ac_link") 2>conftest.er1 | |
16037 | ac_status=$? | |
16038 | grep -v '^ *+' conftest.er1 >conftest.err | |
16039 | rm -f conftest.er1 | |
16040 | cat conftest.err >&5 | |
16041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16042 | (exit $ac_status); } && { | |
16043 | test -z "$ac_cxx_werror_flag" || | |
16044 | test ! -s conftest.err | |
16045 | } && test -s conftest$ac_exeext && { | |
16046 | test "$cross_compiling" = yes || | |
16047 | $as_test_x conftest$ac_exeext | |
16048 | }; then | |
16049 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
16050 | shlibpath_overrides_runpath=yes | |
16051 | fi | |
16052 | ||
16053 | else | |
16054 | $as_echo "$as_me: failed program was:" >&5 | |
16055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16056 | ||
16057 | ||
16058 | fi | |
16059 | ||
16060 | rm -rf conftest.dSYM | |
16061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16062 | conftest$ac_exeext conftest.$ac_ext | |
16063 | LDFLAGS=$save_LDFLAGS | |
16064 | libdir=$save_libdir | |
16065 | ||
d9898ee8 | 16066 | # This implies no fast_install, which is unacceptable. |
16067 | # Some rework will be needed to allow for fast_install | |
16068 | # before this can be enabled. | |
16069 | hardcode_into_libs=yes | |
8d138742 CE |
16070 | |
16071 | # Add ABI-specific directories to the system library path. | |
16072 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 16073 | |
16074 | # Append ld.so.conf contents to the search path | |
16075 | if test -f /etc/ld.so.conf; then | |
8d138742 | 16076 | 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' ' '` |
ac40fd9e | 16077 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 16078 | fi |
16079 | ||
16080 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
16081 | # powerpc, because MkLinux only supported shared libraries with the | |
16082 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16083 | # most powerpc-linux boxes support dynamic linking these days and | |
16084 | # people can always --disable-shared, the test was removed, and we | |
16085 | # assume the GNU/Linux dynamic linker is in use. | |
16086 | dynamic_linker='GNU/Linux ld.so' | |
16087 | ;; | |
16088 | ||
d9898ee8 | 16089 | netbsd*) |
16090 | version_type=sunos | |
16091 | need_lib_prefix=no | |
16092 | need_version=no | |
8d138742 | 16093 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 16094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16096 | dynamic_linker='NetBSD (a.out) ld.so' | |
16097 | else | |
16098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
16099 | soname_spec='${libname}${release}${shared_ext}$major' | |
16100 | dynamic_linker='NetBSD ld.elf_so' | |
16101 | fi | |
16102 | shlibpath_var=LD_LIBRARY_PATH | |
16103 | shlibpath_overrides_runpath=yes | |
16104 | hardcode_into_libs=yes | |
16105 | ;; | |
16106 | ||
16107 | newsos6) | |
16108 | version_type=linux | |
16109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16110 | shlibpath_var=LD_LIBRARY_PATH | |
16111 | shlibpath_overrides_runpath=yes | |
16112 | ;; | |
16113 | ||
8d138742 CE |
16114 | *nto* | *qnx*) |
16115 | version_type=qnx | |
d9898ee8 | 16116 | need_lib_prefix=no |
16117 | need_version=no | |
16118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16119 | soname_spec='${libname}${release}${shared_ext}$major' | |
16120 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
16121 | shlibpath_overrides_runpath=no |
16122 | hardcode_into_libs=yes | |
16123 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 16124 | ;; |
16125 | ||
16126 | openbsd*) | |
16127 | version_type=sunos | |
16128 | sys_lib_dlsearch_path_spec="/usr/lib" | |
16129 | need_lib_prefix=no | |
16130 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
16131 | case $host_os in | |
8d138742 CE |
16132 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
16133 | *) need_version=no ;; | |
d9898ee8 | 16134 | esac |
16135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16136 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16137 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 16138 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 16139 | case $host_os in |
16140 | openbsd2.[89] | openbsd2.[89].*) | |
16141 | shlibpath_overrides_runpath=no | |
16142 | ;; | |
16143 | *) | |
16144 | shlibpath_overrides_runpath=yes | |
16145 | ;; | |
16146 | esac | |
16147 | else | |
16148 | shlibpath_overrides_runpath=yes | |
16149 | fi | |
16150 | ;; | |
16151 | ||
16152 | os2*) | |
16153 | libname_spec='$name' | |
16154 | shrext_cmds=".dll" | |
16155 | need_lib_prefix=no | |
16156 | library_names_spec='$libname${shared_ext} $libname.a' | |
16157 | dynamic_linker='OS/2 ld.exe' | |
16158 | shlibpath_var=LIBPATH | |
16159 | ;; | |
16160 | ||
16161 | osf3* | osf4* | osf5*) | |
16162 | version_type=osf | |
16163 | need_lib_prefix=no | |
16164 | need_version=no | |
16165 | soname_spec='${libname}${release}${shared_ext}$major' | |
16166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16167 | shlibpath_var=LD_LIBRARY_PATH | |
16168 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
16169 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
16170 | ;; | |
16171 | ||
ac40fd9e | 16172 | rdos*) |
16173 | dynamic_linker=no | |
16174 | ;; | |
16175 | ||
d9898ee8 | 16176 | solaris*) |
16177 | version_type=linux | |
16178 | need_lib_prefix=no | |
16179 | need_version=no | |
16180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16181 | soname_spec='${libname}${release}${shared_ext}$major' | |
16182 | shlibpath_var=LD_LIBRARY_PATH | |
16183 | shlibpath_overrides_runpath=yes | |
16184 | hardcode_into_libs=yes | |
16185 | # ldd complains unless libraries are executable | |
16186 | postinstall_cmds='chmod +x $lib' | |
16187 | ;; | |
16188 | ||
16189 | sunos4*) | |
16190 | version_type=sunos | |
16191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16192 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16193 | shlibpath_var=LD_LIBRARY_PATH | |
16194 | shlibpath_overrides_runpath=yes | |
16195 | if test "$with_gnu_ld" = yes; then | |
16196 | need_lib_prefix=no | |
16197 | fi | |
16198 | need_version=yes | |
16199 | ;; | |
16200 | ||
16201 | sysv4 | sysv4.3*) | |
16202 | version_type=linux | |
16203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16204 | soname_spec='${libname}${release}${shared_ext}$major' | |
16205 | shlibpath_var=LD_LIBRARY_PATH | |
16206 | case $host_vendor in | |
16207 | sni) | |
16208 | shlibpath_overrides_runpath=no | |
16209 | need_lib_prefix=no | |
d9898ee8 | 16210 | runpath_var=LD_RUN_PATH |
16211 | ;; | |
16212 | siemens) | |
16213 | need_lib_prefix=no | |
16214 | ;; | |
16215 | motorola) | |
16216 | need_lib_prefix=no | |
16217 | need_version=no | |
16218 | shlibpath_overrides_runpath=no | |
16219 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16220 | ;; | |
16221 | esac | |
16222 | ;; | |
16223 | ||
16224 | sysv4*MP*) | |
16225 | if test -d /usr/nec ;then | |
16226 | version_type=linux | |
16227 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16228 | soname_spec='$libname${shared_ext}.$major' | |
16229 | shlibpath_var=LD_LIBRARY_PATH | |
16230 | fi | |
16231 | ;; | |
16232 | ||
16233 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16234 | version_type=freebsd-elf | |
16235 | need_lib_prefix=no | |
16236 | need_version=no | |
16237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16238 | soname_spec='${libname}${release}${shared_ext}$major' | |
16239 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 16240 | shlibpath_overrides_runpath=yes |
d9898ee8 | 16241 | hardcode_into_libs=yes |
16242 | if test "$with_gnu_ld" = yes; then | |
16243 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 16244 | else |
16245 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 16246 | case $host_os in |
16247 | sco3.2v5*) | |
16248 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16249 | ;; | |
16250 | esac | |
16251 | fi | |
16252 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16253 | ;; | |
16254 | ||
8d138742 CE |
16255 | tpf*) |
16256 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16257 | version_type=linux | |
16258 | need_lib_prefix=no | |
16259 | need_version=no | |
16260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16261 | shlibpath_var=LD_LIBRARY_PATH | |
16262 | shlibpath_overrides_runpath=no | |
16263 | hardcode_into_libs=yes | |
16264 | ;; | |
16265 | ||
d9898ee8 | 16266 | uts4*) |
16267 | version_type=linux | |
16268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16269 | soname_spec='${libname}${release}${shared_ext}$major' | |
16270 | shlibpath_var=LD_LIBRARY_PATH | |
16271 | ;; | |
16272 | ||
16273 | *) | |
16274 | dynamic_linker=no | |
16275 | ;; | |
16276 | esac | |
8d138742 CE |
16277 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16278 | $as_echo "$dynamic_linker" >&6; } | |
d9898ee8 | 16279 | test "$dynamic_linker" = no && can_build_shared=no |
16280 | ||
16281 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16282 | if test "$GCC" = yes; then | |
16283 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16284 | fi | |
16285 | ||
8d138742 CE |
16286 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16287 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
d9898ee8 | 16288 | fi |
8d138742 CE |
16289 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
16290 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
d9898ee8 | 16291 | fi |
16292 | ||
16293 | ||
d9898ee8 | 16294 | |
d9898ee8 | 16295 | |
d9898ee8 | 16296 | |
d9898ee8 | 16297 | |
d9898ee8 | 16298 | |
d9898ee8 | 16299 | |
d9898ee8 | 16300 | |
d9898ee8 | 16301 | |
d9898ee8 | 16302 | |
d9898ee8 | 16303 | |
d9898ee8 | 16304 | |
d9898ee8 | 16305 | |
d9898ee8 | 16306 | |
d9898ee8 | 16307 | |
d9898ee8 | 16308 | |
d9898ee8 | 16309 | |
d9898ee8 | 16310 | |
d9898ee8 | 16311 | |
d9898ee8 | 16312 | |
d9898ee8 | 16313 | |
d9898ee8 | 16314 | |
d9898ee8 | 16315 | |
d9898ee8 | 16316 | |
d9898ee8 | 16317 | |
d9898ee8 | 16318 | |
d9898ee8 | 16319 | |
d9898ee8 | 16320 | |
d9898ee8 | 16321 | |
d9898ee8 | 16322 | |
d9898ee8 | 16323 | |
d9898ee8 | 16324 | |
d9898ee8 | 16325 | |
d9898ee8 | 16326 | |
d9898ee8 | 16327 | |
8d138742 CE |
16328 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16329 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
16330 | hardcode_action_CXX= | |
16331 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16332 | test -n "$runpath_var_CXX" || | |
16333 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
d9898ee8 | 16334 | |
8d138742 CE |
16335 | # We can hardcode non-existent directories. |
16336 | if test "$hardcode_direct_CXX" != no && | |
16337 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16338 | # have to relink, otherwise we might link with an installed library | |
16339 | # when we should be linking with a yet-to-be-installed one | |
16340 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
16341 | test "$hardcode_minus_L_CXX" != no; then | |
16342 | # Linking always hardcodes the temporary library directory. | |
16343 | hardcode_action_CXX=relink | |
16344 | else | |
16345 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16346 | hardcode_action_CXX=immediate | |
16347 | fi | |
16348 | else | |
16349 | # We cannot hardcode anything, or else we can only hardcode existing | |
16350 | # directories. | |
16351 | hardcode_action_CXX=unsupported | |
16352 | fi | |
16353 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
16354 | $as_echo "$hardcode_action_CXX" >&6; } | |
d9898ee8 | 16355 | |
8d138742 CE |
16356 | if test "$hardcode_action_CXX" = relink || |
16357 | test "$inherit_rpath_CXX" = yes; then | |
16358 | # Fast installation is not supported | |
16359 | enable_fast_install=no | |
16360 | elif test "$shlibpath_overrides_runpath" = yes || | |
16361 | test "$enable_shared" = no; then | |
16362 | # Fast installation is not necessary | |
16363 | enable_fast_install=needless | |
16364 | fi | |
d9898ee8 | 16365 | |
d9898ee8 | 16366 | |
d9898ee8 | 16367 | |
d9898ee8 | 16368 | |
d9898ee8 | 16369 | |
d9898ee8 | 16370 | |
d9898ee8 | 16371 | |
8d138742 | 16372 | fi # test -n "$compiler" |
d9898ee8 | 16373 | |
8d138742 CE |
16374 | CC=$lt_save_CC |
16375 | LDCXX=$LD | |
16376 | LD=$lt_save_LD | |
16377 | GCC=$lt_save_GCC | |
16378 | with_gnu_ld=$lt_save_with_gnu_ld | |
16379 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16380 | lt_cv_path_LD=$lt_save_path_LD | |
16381 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16382 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
16383 | fi # test "$_lt_caught_CXX_error" != yes | |
d9898ee8 | 16384 | |
8d138742 CE |
16385 | ac_ext=c |
16386 | ac_cpp='$CPP $CPPFLAGS' | |
16387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 16390 | |
d9898ee8 | 16391 | |
d9898ee8 | 16392 | |
d9898ee8 | 16393 | |
d9898ee8 | 16394 | |
d9898ee8 | 16395 | |
d9898ee8 | 16396 | |
d9898ee8 | 16397 | |
d9898ee8 | 16398 | |
d9898ee8 | 16399 | |
d9898ee8 | 16400 | |
d9898ee8 | 16401 | |
d9898ee8 | 16402 | |
8d138742 CE |
16403 | ac_config_commands="$ac_config_commands libtool" |
16404 | ||
16405 | ||
16406 | ||
16407 | ||
16408 | # Only expand once: | |
16409 | ||
16410 | ||
16411 | ||
16412 | ||
16413 | saveLIBS="$LIBS" | |
16414 | { $as_echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5 | |
16415 | $as_echo_n "checking for dbopen in -ldb... " >&6; } | |
16416 | if test "${ac_cv_lib_db_dbopen+set}" = set; then | |
16417 | $as_echo_n "(cached) " >&6 | |
16418 | else | |
16419 | ac_check_lib_save_LIBS=$LIBS | |
16420 | LIBS="-ldb $LIBS" | |
16421 | cat >conftest.$ac_ext <<_ACEOF | |
16422 | /* confdefs.h. */ | |
16423 | _ACEOF | |
16424 | cat confdefs.h >>conftest.$ac_ext | |
16425 | cat >>conftest.$ac_ext <<_ACEOF | |
16426 | /* end confdefs.h. */ | |
16427 | ||
16428 | /* Override any GCC internal prototype to avoid an error. | |
16429 | Use char because int might match the return type of a GCC | |
16430 | builtin and then its argument prototype would still apply. */ | |
16431 | #ifdef __cplusplus | |
16432 | extern "C" | |
16433 | #endif | |
16434 | char dbopen (); | |
16435 | int | |
16436 | main () | |
16437 | { | |
16438 | return dbopen (); | |
16439 | ; | |
16440 | return 0; | |
16441 | } | |
16442 | _ACEOF | |
16443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16444 | if { (ac_try="$ac_link" | |
16445 | case "(($ac_try" in | |
16446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16447 | *) ac_try_echo=$ac_try;; | |
16448 | esac | |
16449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16450 | $as_echo "$ac_try_echo") >&5 | |
16451 | (eval "$ac_link") 2>conftest.er1 | |
16452 | ac_status=$? | |
16453 | grep -v '^ *+' conftest.er1 >conftest.err | |
16454 | rm -f conftest.er1 | |
16455 | cat conftest.err >&5 | |
16456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16457 | (exit $ac_status); } && { | |
16458 | test -z "$ac_c_werror_flag" || | |
16459 | test ! -s conftest.err | |
16460 | } && test -s conftest$ac_exeext && { | |
16461 | test "$cross_compiling" = yes || | |
16462 | $as_test_x conftest$ac_exeext | |
16463 | }; then | |
16464 | ac_cv_lib_db_dbopen=yes | |
16465 | else | |
16466 | $as_echo "$as_me: failed program was:" >&5 | |
16467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16468 | ||
16469 | ac_cv_lib_db_dbopen=no | |
16470 | fi | |
d9898ee8 | 16471 | |
8d138742 CE |
16472 | rm -rf conftest.dSYM |
16473 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16474 | conftest$ac_exeext conftest.$ac_ext | |
16475 | LIBS=$ac_check_lib_save_LIBS | |
16476 | fi | |
16477 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5 | |
16478 | $as_echo "$ac_cv_lib_db_dbopen" >&6; } | |
16479 | if test "x$ac_cv_lib_db_dbopen" = x""yes; then | |
16480 | LIBDB=-ldb ; LIBS="-ldb $LIBS" | |
16481 | else | |
16482 | { $as_echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 | |
16483 | $as_echo_n "checking for db_open in -ldb... " >&6; } | |
16484 | if test "${ac_cv_lib_db_db_open+set}" = set; then | |
16485 | $as_echo_n "(cached) " >&6 | |
16486 | else | |
16487 | ac_check_lib_save_LIBS=$LIBS | |
16488 | LIBS="-ldb $LIBS" | |
16489 | cat >conftest.$ac_ext <<_ACEOF | |
16490 | /* confdefs.h. */ | |
16491 | _ACEOF | |
16492 | cat confdefs.h >>conftest.$ac_ext | |
16493 | cat >>conftest.$ac_ext <<_ACEOF | |
16494 | /* end confdefs.h. */ | |
d9898ee8 | 16495 | |
8d138742 CE |
16496 | /* Override any GCC internal prototype to avoid an error. |
16497 | Use char because int might match the return type of a GCC | |
16498 | builtin and then its argument prototype would still apply. */ | |
16499 | #ifdef __cplusplus | |
16500 | extern "C" | |
16501 | #endif | |
16502 | char db_open (); | |
16503 | int | |
16504 | main () | |
16505 | { | |
16506 | return db_open (); | |
16507 | ; | |
16508 | return 0; | |
16509 | } | |
16510 | _ACEOF | |
16511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16512 | if { (ac_try="$ac_link" | |
16513 | case "(($ac_try" in | |
16514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16515 | *) ac_try_echo=$ac_try;; | |
16516 | esac | |
16517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16518 | $as_echo "$ac_try_echo") >&5 | |
16519 | (eval "$ac_link") 2>conftest.er1 | |
16520 | ac_status=$? | |
16521 | grep -v '^ *+' conftest.er1 >conftest.err | |
16522 | rm -f conftest.er1 | |
16523 | cat conftest.err >&5 | |
16524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16525 | (exit $ac_status); } && { | |
16526 | test -z "$ac_c_werror_flag" || | |
16527 | test ! -s conftest.err | |
16528 | } && test -s conftest$ac_exeext && { | |
16529 | test "$cross_compiling" = yes || | |
16530 | $as_test_x conftest$ac_exeext | |
16531 | }; then | |
16532 | ac_cv_lib_db_db_open=yes | |
16533 | else | |
16534 | $as_echo "$as_me: failed program was:" >&5 | |
16535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16536 | |
8d138742 CE |
16537 | ac_cv_lib_db_db_open=no |
16538 | fi | |
d9898ee8 | 16539 | |
8d138742 CE |
16540 | rm -rf conftest.dSYM |
16541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16542 | conftest$ac_exeext conftest.$ac_ext | |
16543 | LIBS=$ac_check_lib_save_LIBS | |
16544 | fi | |
16545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 | |
16546 | $as_echo "$ac_cv_lib_db_db_open" >&6; } | |
16547 | if test "x$ac_cv_lib_db_db_open" = x""yes; then | |
16548 | LIBDB=-ldb ; LIBS="-ldb $LIBS" | |
16549 | else | |
16550 | { $as_echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5 | |
16551 | $as_echo_n "checking for db_env_create in -ldb... " >&6; } | |
16552 | if test "${ac_cv_lib_db_db_env_create+set}" = set; then | |
16553 | $as_echo_n "(cached) " >&6 | |
16554 | else | |
16555 | ac_check_lib_save_LIBS=$LIBS | |
16556 | LIBS="-ldb $LIBS" | |
16557 | cat >conftest.$ac_ext <<_ACEOF | |
16558 | /* confdefs.h. */ | |
16559 | _ACEOF | |
16560 | cat confdefs.h >>conftest.$ac_ext | |
16561 | cat >>conftest.$ac_ext <<_ACEOF | |
16562 | /* end confdefs.h. */ | |
d9898ee8 | 16563 | |
8d138742 CE |
16564 | /* Override any GCC internal prototype to avoid an error. |
16565 | Use char because int might match the return type of a GCC | |
16566 | builtin and then its argument prototype would still apply. */ | |
16567 | #ifdef __cplusplus | |
16568 | extern "C" | |
16569 | #endif | |
16570 | char db_env_create (); | |
16571 | int | |
16572 | main () | |
16573 | { | |
16574 | return db_env_create (); | |
16575 | ; | |
16576 | return 0; | |
16577 | } | |
16578 | _ACEOF | |
16579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16580 | if { (ac_try="$ac_link" | |
16581 | case "(($ac_try" in | |
16582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16583 | *) ac_try_echo=$ac_try;; | |
16584 | esac | |
16585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16586 | $as_echo "$ac_try_echo") >&5 | |
16587 | (eval "$ac_link") 2>conftest.er1 | |
16588 | ac_status=$? | |
16589 | grep -v '^ *+' conftest.er1 >conftest.err | |
16590 | rm -f conftest.er1 | |
16591 | cat conftest.err >&5 | |
16592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16593 | (exit $ac_status); } && { | |
16594 | test -z "$ac_c_werror_flag" || | |
16595 | test ! -s conftest.err | |
16596 | } && test -s conftest$ac_exeext && { | |
16597 | test "$cross_compiling" = yes || | |
16598 | $as_test_x conftest$ac_exeext | |
16599 | }; then | |
16600 | ac_cv_lib_db_db_env_create=yes | |
16601 | else | |
16602 | $as_echo "$as_me: failed program was:" >&5 | |
16603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16604 | |
8d138742 CE |
16605 | ac_cv_lib_db_db_env_create=no |
16606 | fi | |
d9898ee8 | 16607 | |
8d138742 CE |
16608 | rm -rf conftest.dSYM |
16609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16610 | conftest$ac_exeext conftest.$ac_ext | |
16611 | LIBS=$ac_check_lib_save_LIBS | |
16612 | fi | |
16613 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5 | |
16614 | $as_echo "$ac_cv_lib_db_db_env_create" >&6; } | |
16615 | if test "x$ac_cv_lib_db_db_env_create" = x""yes; then | |
16616 | LIBDB=-ldb; LIBS="-ldb $LIBS" | |
16617 | fi | |
d9898ee8 | 16618 | |
d9898ee8 | 16619 | |
8d138742 | 16620 | fi |
d9898ee8 | 16621 | |
8d138742 | 16622 | fi |
d9898ee8 | 16623 | |
d9898ee8 | 16624 | |
8d138742 CE |
16625 | FOUND_DB=0 |
16626 | { $as_echo "$as_me:$LINENO: checking for dbopen" >&5 | |
16627 | $as_echo_n "checking for dbopen... " >&6; } | |
16628 | if test "${ac_cv_func_dbopen+set}" = set; then | |
16629 | $as_echo_n "(cached) " >&6 | |
16630 | else | |
16631 | cat >conftest.$ac_ext <<_ACEOF | |
16632 | /* confdefs.h. */ | |
16633 | _ACEOF | |
16634 | cat confdefs.h >>conftest.$ac_ext | |
16635 | cat >>conftest.$ac_ext <<_ACEOF | |
16636 | /* end confdefs.h. */ | |
16637 | /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen. | |
16638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16639 | #define dbopen innocuous_dbopen | |
d9898ee8 | 16640 | |
8d138742 CE |
16641 | /* System header to define __stub macros and hopefully few prototypes, |
16642 | which can conflict with char dbopen (); below. | |
16643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16644 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 16645 | |
8d138742 CE |
16646 | #ifdef __STDC__ |
16647 | # include <limits.h> | |
16648 | #else | |
16649 | # include <assert.h> | |
16650 | #endif | |
d9898ee8 | 16651 | |
8d138742 | 16652 | #undef dbopen |
d9898ee8 | 16653 | |
8d138742 CE |
16654 | /* Override any GCC internal prototype to avoid an error. |
16655 | Use char because int might match the return type of a GCC | |
16656 | builtin and then its argument prototype would still apply. */ | |
16657 | #ifdef __cplusplus | |
16658 | extern "C" | |
16659 | #endif | |
16660 | char dbopen (); | |
16661 | /* The GNU C library defines this for functions which it implements | |
16662 | to always fail with ENOSYS. Some functions are actually named | |
16663 | something starting with __ and the normal name is an alias. */ | |
16664 | #if defined __stub_dbopen || defined __stub___dbopen | |
16665 | choke me | |
16666 | #endif | |
d9898ee8 | 16667 | |
8d138742 CE |
16668 | int |
16669 | main () | |
16670 | { | |
16671 | return dbopen (); | |
16672 | ; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
16676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16677 | if { (ac_try="$ac_link" | |
16678 | case "(($ac_try" in | |
16679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16680 | *) ac_try_echo=$ac_try;; | |
16681 | esac | |
16682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16683 | $as_echo "$ac_try_echo") >&5 | |
16684 | (eval "$ac_link") 2>conftest.er1 | |
16685 | ac_status=$? | |
16686 | grep -v '^ *+' conftest.er1 >conftest.err | |
16687 | rm -f conftest.er1 | |
16688 | cat conftest.err >&5 | |
16689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16690 | (exit $ac_status); } && { | |
16691 | test -z "$ac_c_werror_flag" || | |
16692 | test ! -s conftest.err | |
16693 | } && test -s conftest$ac_exeext && { | |
16694 | test "$cross_compiling" = yes || | |
16695 | $as_test_x conftest$ac_exeext | |
16696 | }; then | |
16697 | ac_cv_func_dbopen=yes | |
16698 | else | |
16699 | $as_echo "$as_me: failed program was:" >&5 | |
16700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16701 | |
8d138742 CE |
16702 | ac_cv_func_dbopen=no |
16703 | fi | |
d9898ee8 | 16704 | |
8d138742 CE |
16705 | rm -rf conftest.dSYM |
16706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16707 | conftest$ac_exeext conftest.$ac_ext | |
16708 | fi | |
16709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5 | |
16710 | $as_echo "$ac_cv_func_dbopen" >&6; } | |
16711 | if test "x$ac_cv_func_dbopen" = x""yes; then | |
16712 | FOUND_DB=1 | |
16713 | fi | |
d9898ee8 | 16714 | |
8d138742 CE |
16715 | { $as_echo "$as_me:$LINENO: checking for db_open" >&5 |
16716 | $as_echo_n "checking for db_open... " >&6; } | |
16717 | if test "${ac_cv_func_db_open+set}" = set; then | |
16718 | $as_echo_n "(cached) " >&6 | |
16719 | else | |
16720 | cat >conftest.$ac_ext <<_ACEOF | |
16721 | /* confdefs.h. */ | |
16722 | _ACEOF | |
16723 | cat confdefs.h >>conftest.$ac_ext | |
16724 | cat >>conftest.$ac_ext <<_ACEOF | |
16725 | /* end confdefs.h. */ | |
16726 | /* Define db_open to an innocuous variant, in case <limits.h> declares db_open. | |
16727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16728 | #define db_open innocuous_db_open | |
d9898ee8 | 16729 | |
8d138742 CE |
16730 | /* System header to define __stub macros and hopefully few prototypes, |
16731 | which can conflict with char db_open (); below. | |
16732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16733 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 16734 | |
8d138742 CE |
16735 | #ifdef __STDC__ |
16736 | # include <limits.h> | |
16737 | #else | |
16738 | # include <assert.h> | |
16739 | #endif | |
d9898ee8 | 16740 | |
8d138742 | 16741 | #undef db_open |
d9898ee8 | 16742 | |
8d138742 CE |
16743 | /* Override any GCC internal prototype to avoid an error. |
16744 | Use char because int might match the return type of a GCC | |
16745 | builtin and then its argument prototype would still apply. */ | |
16746 | #ifdef __cplusplus | |
16747 | extern "C" | |
16748 | #endif | |
16749 | char db_open (); | |
16750 | /* The GNU C library defines this for functions which it implements | |
16751 | to always fail with ENOSYS. Some functions are actually named | |
16752 | something starting with __ and the normal name is an alias. */ | |
16753 | #if defined __stub_db_open || defined __stub___db_open | |
16754 | choke me | |
16755 | #endif | |
d9898ee8 | 16756 | |
8d138742 CE |
16757 | int |
16758 | main () | |
16759 | { | |
16760 | return db_open (); | |
16761 | ; | |
16762 | return 0; | |
16763 | } | |
16764 | _ACEOF | |
16765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16766 | if { (ac_try="$ac_link" | |
16767 | case "(($ac_try" in | |
16768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16769 | *) ac_try_echo=$ac_try;; | |
16770 | esac | |
16771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16772 | $as_echo "$ac_try_echo") >&5 | |
16773 | (eval "$ac_link") 2>conftest.er1 | |
16774 | ac_status=$? | |
16775 | grep -v '^ *+' conftest.er1 >conftest.err | |
16776 | rm -f conftest.er1 | |
16777 | cat conftest.err >&5 | |
16778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16779 | (exit $ac_status); } && { | |
16780 | test -z "$ac_c_werror_flag" || | |
16781 | test ! -s conftest.err | |
16782 | } && test -s conftest$ac_exeext && { | |
16783 | test "$cross_compiling" = yes || | |
16784 | $as_test_x conftest$ac_exeext | |
16785 | }; then | |
16786 | ac_cv_func_db_open=yes | |
16787 | else | |
16788 | $as_echo "$as_me: failed program was:" >&5 | |
16789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16790 | |
8d138742 CE |
16791 | ac_cv_func_db_open=no |
16792 | fi | |
d9898ee8 | 16793 | |
8d138742 CE |
16794 | rm -rf conftest.dSYM |
16795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16796 | conftest$ac_exeext conftest.$ac_ext | |
16797 | fi | |
16798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5 | |
16799 | $as_echo "$ac_cv_func_db_open" >&6; } | |
16800 | if test "x$ac_cv_func_db_open" = x""yes; then | |
16801 | FOUND_DB=1 | |
16802 | fi | |
d9898ee8 | 16803 | |
8d138742 CE |
16804 | { $as_echo "$as_me:$LINENO: checking for db_env_create" >&5 |
16805 | $as_echo_n "checking for db_env_create... " >&6; } | |
16806 | if test "${ac_cv_func_db_env_create+set}" = set; then | |
16807 | $as_echo_n "(cached) " >&6 | |
16808 | else | |
16809 | cat >conftest.$ac_ext <<_ACEOF | |
16810 | /* confdefs.h. */ | |
16811 | _ACEOF | |
16812 | cat confdefs.h >>conftest.$ac_ext | |
16813 | cat >>conftest.$ac_ext <<_ACEOF | |
16814 | /* end confdefs.h. */ | |
16815 | /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create. | |
16816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16817 | #define db_env_create innocuous_db_env_create | |
d9898ee8 | 16818 | |
8d138742 CE |
16819 | /* System header to define __stub macros and hopefully few prototypes, |
16820 | which can conflict with char db_env_create (); below. | |
16821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16822 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 16823 | |
8d138742 CE |
16824 | #ifdef __STDC__ |
16825 | # include <limits.h> | |
16826 | #else | |
16827 | # include <assert.h> | |
16828 | #endif | |
d9898ee8 | 16829 | |
8d138742 | 16830 | #undef db_env_create |
d9898ee8 | 16831 | |
8d138742 CE |
16832 | /* Override any GCC internal prototype to avoid an error. |
16833 | Use char because int might match the return type of a GCC | |
16834 | builtin and then its argument prototype would still apply. */ | |
16835 | #ifdef __cplusplus | |
16836 | extern "C" | |
16837 | #endif | |
16838 | char db_env_create (); | |
16839 | /* The GNU C library defines this for functions which it implements | |
16840 | to always fail with ENOSYS. Some functions are actually named | |
16841 | something starting with __ and the normal name is an alias. */ | |
16842 | #if defined __stub_db_env_create || defined __stub___db_env_create | |
16843 | choke me | |
16844 | #endif | |
d9898ee8 | 16845 | |
8d138742 CE |
16846 | int |
16847 | main () | |
16848 | { | |
16849 | return db_env_create (); | |
16850 | ; | |
16851 | return 0; | |
16852 | } | |
16853 | _ACEOF | |
16854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16855 | if { (ac_try="$ac_link" | |
16856 | case "(($ac_try" in | |
16857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16858 | *) ac_try_echo=$ac_try;; | |
16859 | esac | |
16860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16861 | $as_echo "$ac_try_echo") >&5 | |
16862 | (eval "$ac_link") 2>conftest.er1 | |
16863 | ac_status=$? | |
16864 | grep -v '^ *+' conftest.er1 >conftest.err | |
16865 | rm -f conftest.er1 | |
16866 | cat conftest.err >&5 | |
16867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16868 | (exit $ac_status); } && { | |
16869 | test -z "$ac_c_werror_flag" || | |
16870 | test ! -s conftest.err | |
16871 | } && test -s conftest$ac_exeext && { | |
16872 | test "$cross_compiling" = yes || | |
16873 | $as_test_x conftest$ac_exeext | |
16874 | }; then | |
16875 | ac_cv_func_db_env_create=yes | |
16876 | else | |
16877 | $as_echo "$as_me: failed program was:" >&5 | |
16878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16879 | |
8d138742 CE |
16880 | ac_cv_func_db_env_create=no |
16881 | fi | |
d9898ee8 | 16882 | |
8d138742 CE |
16883 | rm -rf conftest.dSYM |
16884 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16885 | conftest$ac_exeext conftest.$ac_ext | |
16886 | fi | |
16887 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5 | |
16888 | $as_echo "$ac_cv_func_db_env_create" >&6; } | |
16889 | if test "x$ac_cv_func_db_env_create" = x""yes; then | |
16890 | FOUND_DB=1 | |
16891 | fi | |
d9898ee8 | 16892 | |
d9898ee8 | 16893 | |
8d138742 | 16894 | LIBS="$saveLIBS" |
d9898ee8 | 16895 | |
d9898ee8 | 16896 | |
16897 | ||
8d138742 CE |
16898 | if test "$FOUND_DB" != 0; then |
16899 | FOUND_DB_TRUE= | |
16900 | FOUND_DB_FALSE='#' | |
d9898ee8 | 16901 | else |
8d138742 CE |
16902 | FOUND_DB_TRUE='#' |
16903 | FOUND_DB_FALSE= | |
d9898ee8 | 16904 | fi |
16905 | ||
16906 | ||
d9898ee8 | 16907 | |
d9898ee8 | 16908 | |
d9898ee8 | 16909 | |
d9898ee8 | 16910 | |
8d138742 CE |
16911 | for ac_header in limits.h fcntl.h unistd.h |
16912 | do | |
16913 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16916 | $as_echo_n "checking for $ac_header... " >&6; } | |
16917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16918 | $as_echo_n "(cached) " >&6 | |
16919 | fi | |
16920 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16921 | $as_echo "$as_val"'` | |
16922 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16923 | $as_echo "$ac_res" >&6; } | |
16924 | else | |
16925 | # Is the header compilable? | |
16926 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16927 | $as_echo_n "checking $ac_header usability... " >&6; } | |
16928 | cat >conftest.$ac_ext <<_ACEOF | |
16929 | /* confdefs.h. */ | |
16930 | _ACEOF | |
16931 | cat confdefs.h >>conftest.$ac_ext | |
16932 | cat >>conftest.$ac_ext <<_ACEOF | |
16933 | /* end confdefs.h. */ | |
16934 | $ac_includes_default | |
16935 | #include <$ac_header> | |
16936 | _ACEOF | |
16937 | rm -f conftest.$ac_objext | |
16938 | if { (ac_try="$ac_compile" | |
16939 | case "(($ac_try" in | |
16940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16941 | *) ac_try_echo=$ac_try;; | |
16942 | esac | |
16943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16944 | $as_echo "$ac_try_echo") >&5 | |
16945 | (eval "$ac_compile") 2>conftest.er1 | |
16946 | ac_status=$? | |
16947 | grep -v '^ *+' conftest.er1 >conftest.err | |
16948 | rm -f conftest.er1 | |
16949 | cat conftest.err >&5 | |
16950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16951 | (exit $ac_status); } && { | |
16952 | test -z "$ac_c_werror_flag" || | |
16953 | test ! -s conftest.err | |
16954 | } && test -s conftest.$ac_objext; then | |
16955 | ac_header_compiler=yes | |
16956 | else | |
16957 | $as_echo "$as_me: failed program was:" >&5 | |
16958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16959 | |
8d138742 CE |
16960 | ac_header_compiler=no |
16961 | fi | |
d9898ee8 | 16962 | |
8d138742 CE |
16963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16964 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16965 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 16966 | |
8d138742 CE |
16967 | # Is the header present? |
16968 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16969 | $as_echo_n "checking $ac_header presence... " >&6; } | |
16970 | cat >conftest.$ac_ext <<_ACEOF | |
16971 | /* confdefs.h. */ | |
16972 | _ACEOF | |
16973 | cat confdefs.h >>conftest.$ac_ext | |
16974 | cat >>conftest.$ac_ext <<_ACEOF | |
16975 | /* end confdefs.h. */ | |
16976 | #include <$ac_header> | |
16977 | _ACEOF | |
16978 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16979 | case "(($ac_try" in | |
16980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16981 | *) ac_try_echo=$ac_try;; | |
16982 | esac | |
16983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16984 | $as_echo "$ac_try_echo") >&5 | |
16985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16986 | ac_status=$? | |
16987 | grep -v '^ *+' conftest.er1 >conftest.err | |
16988 | rm -f conftest.er1 | |
16989 | cat conftest.err >&5 | |
16990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16991 | (exit $ac_status); } >/dev/null && { | |
16992 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16993 | test ! -s conftest.err | |
16994 | }; then | |
16995 | ac_header_preproc=yes | |
16996 | else | |
16997 | $as_echo "$as_me: failed program was:" >&5 | |
16998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 16999 | |
8d138742 CE |
17000 | ac_header_preproc=no |
17001 | fi | |
d9898ee8 | 17002 | |
8d138742 CE |
17003 | rm -f conftest.err conftest.$ac_ext |
17004 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17005 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 17006 | |
8d138742 CE |
17007 | # So? What about this header? |
17008 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17009 | yes:no: ) | |
17010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17011 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17013 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17014 | ac_header_preproc=yes | |
17015 | ;; | |
17016 | no:yes:* ) | |
17017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17018 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17020 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17022 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17024 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17026 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17028 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17029 | ( cat <<\_ASBOX | |
17030 | ## -------------------------------------------------- ## | |
17031 | ## Report this to courier-users@lists.sourceforge.net ## | |
17032 | ## -------------------------------------------------- ## | |
17033 | _ASBOX | |
17034 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
17035 | ;; | |
17036 | esac | |
17037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17038 | $as_echo_n "checking for $ac_header... " >&6; } | |
17039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17040 | $as_echo_n "(cached) " >&6 | |
17041 | else | |
17042 | eval "$as_ac_Header=\$ac_header_preproc" | |
17043 | fi | |
17044 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17045 | $as_echo "$as_val"'` | |
17046 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17047 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 17048 | |
8d138742 CE |
17049 | fi |
17050 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17051 | $as_echo "$as_val"'` | |
17052 | if test "x$as_val" = x""yes; then | |
17053 | cat >>confdefs.h <<_ACEOF | |
17054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17055 | _ACEOF | |
d9898ee8 | 17056 | |
8d138742 | 17057 | fi |
d9898ee8 | 17058 | |
8d138742 | 17059 | done |
d9898ee8 | 17060 | |
d9898ee8 | 17061 | |
8d138742 CE |
17062 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
17063 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
17064 | if test "${ac_cv_c_const+set}" = set; then | |
17065 | $as_echo_n "(cached) " >&6 | |
17066 | else | |
17067 | cat >conftest.$ac_ext <<_ACEOF | |
17068 | /* confdefs.h. */ | |
17069 | _ACEOF | |
17070 | cat confdefs.h >>conftest.$ac_ext | |
17071 | cat >>conftest.$ac_ext <<_ACEOF | |
17072 | /* end confdefs.h. */ | |
d9898ee8 | 17073 | |
8d138742 CE |
17074 | int |
17075 | main () | |
17076 | { | |
17077 | /* FIXME: Include the comments suggested by Paul. */ | |
17078 | #ifndef __cplusplus | |
17079 | /* Ultrix mips cc rejects this. */ | |
17080 | typedef int charset[2]; | |
17081 | const charset cs; | |
17082 | /* SunOS 4.1.1 cc rejects this. */ | |
17083 | char const *const *pcpcc; | |
17084 | char **ppc; | |
17085 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17086 | struct point {int x, y;}; | |
17087 | static struct point const zero = {0,0}; | |
17088 | /* AIX XL C 1.02.0.0 rejects this. | |
17089 | It does not let you subtract one const X* pointer from another in | |
17090 | an arm of an if-expression whose if-part is not a constant | |
17091 | expression */ | |
17092 | const char *g = "string"; | |
17093 | pcpcc = &g + (g ? g-g : 0); | |
17094 | /* HPUX 7.0 cc rejects these. */ | |
17095 | ++pcpcc; | |
17096 | ppc = (char**) pcpcc; | |
17097 | pcpcc = (char const *const *) ppc; | |
17098 | { /* SCO 3.2v4 cc rejects this. */ | |
17099 | char *t; | |
17100 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
d9898ee8 | 17101 | |
8d138742 CE |
17102 | *t++ = 0; |
17103 | if (s) return 0; | |
17104 | } | |
17105 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17106 | int x[] = {25, 17}; | |
17107 | const int *foo = &x[0]; | |
17108 | ++foo; | |
17109 | } | |
17110 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17111 | typedef const int *iptr; | |
17112 | iptr p = 0; | |
17113 | ++p; | |
17114 | } | |
17115 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17116 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17117 | struct s { int j; const int *ap[3]; }; | |
17118 | struct s *b; b->j = 5; | |
17119 | } | |
17120 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17121 | const int foo = 10; | |
17122 | if (!foo) return 0; | |
17123 | } | |
17124 | return !cs[0] && !zero.x; | |
17125 | #endif | |
d9898ee8 | 17126 | |
8d138742 CE |
17127 | ; |
17128 | return 0; | |
17129 | } | |
17130 | _ACEOF | |
17131 | rm -f conftest.$ac_objext | |
17132 | if { (ac_try="$ac_compile" | |
17133 | case "(($ac_try" in | |
17134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17135 | *) ac_try_echo=$ac_try;; | |
17136 | esac | |
17137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17138 | $as_echo "$ac_try_echo") >&5 | |
17139 | (eval "$ac_compile") 2>conftest.er1 | |
17140 | ac_status=$? | |
17141 | grep -v '^ *+' conftest.er1 >conftest.err | |
17142 | rm -f conftest.er1 | |
17143 | cat conftest.err >&5 | |
17144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17145 | (exit $ac_status); } && { | |
17146 | test -z "$ac_c_werror_flag" || | |
17147 | test ! -s conftest.err | |
17148 | } && test -s conftest.$ac_objext; then | |
17149 | ac_cv_c_const=yes | |
17150 | else | |
17151 | $as_echo "$as_me: failed program was:" >&5 | |
17152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 17153 | |
8d138742 CE |
17154 | ac_cv_c_const=no |
17155 | fi | |
d9898ee8 | 17156 | |
8d138742 CE |
17157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17158 | fi | |
17159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17160 | $as_echo "$ac_cv_c_const" >&6; } | |
17161 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 17162 | |
8d138742 CE |
17163 | cat >>confdefs.h <<\_ACEOF |
17164 | #define const /**/ | |
17165 | _ACEOF | |
d9898ee8 | 17166 | |
8d138742 | 17167 | fi |
d9898ee8 | 17168 | |
8d138742 CE |
17169 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
17170 | $as_echo_n "checking for size_t... " >&6; } | |
17171 | if test "${ac_cv_type_size_t+set}" = set; then | |
17172 | $as_echo_n "(cached) " >&6 | |
17173 | else | |
17174 | ac_cv_type_size_t=no | |
17175 | cat >conftest.$ac_ext <<_ACEOF | |
17176 | /* confdefs.h. */ | |
17177 | _ACEOF | |
17178 | cat confdefs.h >>conftest.$ac_ext | |
17179 | cat >>conftest.$ac_ext <<_ACEOF | |
17180 | /* end confdefs.h. */ | |
17181 | $ac_includes_default | |
17182 | int | |
17183 | main () | |
17184 | { | |
17185 | if (sizeof (size_t)) | |
17186 | return 0; | |
17187 | ; | |
17188 | return 0; | |
17189 | } | |
17190 | _ACEOF | |
17191 | rm -f conftest.$ac_objext | |
17192 | if { (ac_try="$ac_compile" | |
17193 | case "(($ac_try" in | |
17194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17195 | *) ac_try_echo=$ac_try;; | |
17196 | esac | |
17197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17198 | $as_echo "$ac_try_echo") >&5 | |
17199 | (eval "$ac_compile") 2>conftest.er1 | |
17200 | ac_status=$? | |
17201 | grep -v '^ *+' conftest.er1 >conftest.err | |
17202 | rm -f conftest.er1 | |
17203 | cat conftest.err >&5 | |
17204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17205 | (exit $ac_status); } && { | |
17206 | test -z "$ac_c_werror_flag" || | |
17207 | test ! -s conftest.err | |
17208 | } && test -s conftest.$ac_objext; then | |
17209 | cat >conftest.$ac_ext <<_ACEOF | |
17210 | /* confdefs.h. */ | |
17211 | _ACEOF | |
17212 | cat confdefs.h >>conftest.$ac_ext | |
17213 | cat >>conftest.$ac_ext <<_ACEOF | |
17214 | /* end confdefs.h. */ | |
17215 | $ac_includes_default | |
17216 | int | |
17217 | main () | |
17218 | { | |
17219 | if (sizeof ((size_t))) | |
17220 | return 0; | |
17221 | ; | |
17222 | return 0; | |
17223 | } | |
17224 | _ACEOF | |
17225 | rm -f conftest.$ac_objext | |
17226 | if { (ac_try="$ac_compile" | |
17227 | case "(($ac_try" in | |
17228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17229 | *) ac_try_echo=$ac_try;; | |
17230 | esac | |
17231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17232 | $as_echo "$ac_try_echo") >&5 | |
17233 | (eval "$ac_compile") 2>conftest.er1 | |
17234 | ac_status=$? | |
17235 | grep -v '^ *+' conftest.er1 >conftest.err | |
17236 | rm -f conftest.er1 | |
17237 | cat conftest.err >&5 | |
17238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); } && { | |
17240 | test -z "$ac_c_werror_flag" || | |
17241 | test ! -s conftest.err | |
17242 | } && test -s conftest.$ac_objext; then | |
17243 | : | |
17244 | else | |
17245 | $as_echo "$as_me: failed program was:" >&5 | |
17246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 17247 | |
8d138742 CE |
17248 | ac_cv_type_size_t=yes |
17249 | fi | |
d9898ee8 | 17250 | |
8d138742 CE |
17251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17252 | else | |
17253 | $as_echo "$as_me: failed program was:" >&5 | |
17254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 17255 | |
d9898ee8 | 17256 | |
8d138742 | 17257 | fi |
d9898ee8 | 17258 | |
8d138742 CE |
17259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17260 | fi | |
17261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17262 | $as_echo "$ac_cv_type_size_t" >&6; } | |
17263 | if test "x$ac_cv_type_size_t" = x""yes; then | |
17264 | : | |
17265 | else | |
d9898ee8 | 17266 | |
8d138742 CE |
17267 | cat >>confdefs.h <<_ACEOF |
17268 | #define size_t unsigned int | |
17269 | _ACEOF | |
d9898ee8 | 17270 | |
8d138742 | 17271 | fi |
d9898ee8 | 17272 | |
d9898ee8 | 17273 | |
8d138742 CE |
17274 | ac_ext=cpp |
17275 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17276 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17277 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17278 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
d9898ee8 | 17279 | |
8d138742 CE |
17280 | { $as_echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5 |
17281 | $as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; } | |
17282 | if test "${ac_cv_need_handlexceptions+set}" = set; then | |
17283 | $as_echo_n "(cached) " >&6 | |
17284 | else | |
17285 | cat >conftest.$ac_ext <<_ACEOF | |
17286 | /* confdefs.h. */ | |
17287 | _ACEOF | |
17288 | cat confdefs.h >>conftest.$ac_ext | |
17289 | cat >>conftest.$ac_ext <<_ACEOF | |
17290 | /* end confdefs.h. */ | |
d9898ee8 | 17291 | |
8d138742 CE |
17292 | int |
17293 | main () | |
17294 | { | |
d9898ee8 | 17295 | |
8d138742 | 17296 | throw; |
d9898ee8 | 17297 | |
8d138742 CE |
17298 | ; |
17299 | return 0; | |
17300 | } | |
17301 | _ACEOF | |
17302 | rm -f conftest.$ac_objext | |
17303 | if { (ac_try="$ac_compile" | |
17304 | case "(($ac_try" in | |
17305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17306 | *) ac_try_echo=$ac_try;; | |
17307 | esac | |
17308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17309 | $as_echo "$ac_try_echo") >&5 | |
17310 | (eval "$ac_compile") 2>conftest.er1 | |
17311 | ac_status=$? | |
17312 | grep -v '^ *+' conftest.er1 >conftest.err | |
17313 | rm -f conftest.er1 | |
17314 | cat conftest.err >&5 | |
17315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17316 | (exit $ac_status); } && { | |
17317 | test -z "$ac_cxx_werror_flag" || | |
17318 | test ! -s conftest.err | |
17319 | } && test -s conftest.$ac_objext; then | |
17320 | ac_cv_need_handlexceptions=no | |
17321 | else | |
17322 | $as_echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 17324 | |
8d138742 CE |
17325 | ac_cv_need_handlexceptions=yes |
17326 | fi | |
d9898ee8 | 17327 | |
8d138742 | 17328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 17329 | |
8d138742 CE |
17330 | fi |
17331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_need_handlexceptions" >&5 | |
17332 | $as_echo "$ac_cv_need_handlexceptions" >&6; } | |
d9898ee8 | 17333 | |
8d138742 CE |
17334 | if test "$ac_cv_need_handlexceptions" = "yes" |
17335 | then | |
17336 | case "$CXXFLAGS" in | |
17337 | *handle-exceptions*) | |
17338 | ;; | |
17339 | *) | |
17340 | CXXFLAGS="-fhandle-exceptions $CXXFLAGS" | |
17341 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'` | |
17342 | ;; | |
17343 | esac | |
17344 | fi | |
d9898ee8 | 17345 | |
8d138742 CE |
17346 | if test "$GCC" = "yes" |
17347 | then | |
17348 | CFLAGS="-Wall $CFLAGS" | |
17349 | fi | |
d9898ee8 | 17350 | |
8d138742 | 17351 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 17352 | |
8d138742 CE |
17353 | cat >confcache <<\_ACEOF |
17354 | # This file is a shell script that caches the results of configure | |
17355 | # tests run on this system so they can be shared between configure | |
17356 | # scripts and configure runs, see configure's option --config-cache. | |
17357 | # It is not useful on other systems. If it contains results you don't | |
17358 | # want to keep, you may remove or edit it. | |
17359 | # | |
17360 | # config.status only pays attention to the cache file if you give it | |
17361 | # the --recheck option to rerun configure. | |
17362 | # | |
17363 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17364 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17365 | # following values. | |
d9898ee8 | 17366 | |
8d138742 | 17367 | _ACEOF |
d9898ee8 | 17368 | |
8d138742 CE |
17369 | # The following way of writing the cache mishandles newlines in values, |
17370 | # but we know of no workaround that is simple, portable, and efficient. | |
17371 | # So, we kill variables containing newlines. | |
17372 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17373 | # and sets the high bit in the cache file unless we assign to the vars. | |
17374 | ( | |
17375 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17376 | eval ac_val=\$$ac_var | |
17377 | case $ac_val in #( | |
17378 | *${as_nl}*) | |
17379 | case $ac_var in #( | |
17380 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
17381 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17382 | esac | |
17383 | case $ac_var in #( | |
17384 | _ | IFS | as_nl) ;; #( | |
17385 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17386 | *) $as_unset $ac_var ;; | |
17387 | esac ;; | |
17388 | esac | |
17389 | done | |
d9898ee8 | 17390 | |
8d138742 CE |
17391 | (set) 2>&1 | |
17392 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17393 | *${as_nl}ac_space=\ *) | |
17394 | # `set' does not quote correctly, so add quotes (double-quote | |
17395 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17396 | sed -n \ | |
17397 | "s/'/'\\\\''/g; | |
17398 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17399 | ;; #( | |
17400 | *) | |
17401 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17402 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17403 | ;; | |
17404 | esac | | |
17405 | sort | |
17406 | ) | | |
17407 | sed ' | |
17408 | /^ac_cv_env_/b end | |
17409 | t clear | |
17410 | :clear | |
17411 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17412 | t end | |
17413 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17414 | :end' >>confcache | |
17415 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17416 | if test -w "$cache_file"; then | |
17417 | test "x$cache_file" != "x/dev/null" && | |
17418 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
17419 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
17420 | cat confcache >$cache_file | |
17421 | else | |
17422 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
17423 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17424 | fi | |
17425 | fi | |
17426 | rm -f confcache | |
d9898ee8 | 17427 | |
8d138742 CE |
17428 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17429 | # Let make expand exec_prefix. | |
17430 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 17431 | |
8d138742 | 17432 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 17433 | |
8d138742 CE |
17434 | ac_libobjs= |
17435 | ac_ltlibobjs= | |
17436 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17437 | # 1. Remove the extension, and $U if already installed. | |
17438 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
17439 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17440 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17441 | # will be set to the directory where LIBOBJS objects are built. | |
17442 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17443 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
17444 | done | |
17445 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 17446 | |
8d138742 | 17447 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 17448 | |
d9898ee8 | 17449 | |
8d138742 CE |
17450 | if test -n "$EXEEXT"; then |
17451 | am__EXEEXT_TRUE= | |
17452 | am__EXEEXT_FALSE='#' | |
17453 | else | |
17454 | am__EXEEXT_TRUE='#' | |
17455 | am__EXEEXT_FALSE= | |
17456 | fi | |
d9898ee8 | 17457 | |
8d138742 CE |
17458 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17459 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
17460 | Usually this means the macro was only invoked conditionally." >&5 | |
17461 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
17462 | Usually this means the macro was only invoked conditionally." >&2;} | |
17463 | { (exit 1); exit 1; }; } | |
17464 | fi | |
17465 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17466 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
17467 | Usually this means the macro was only invoked conditionally." >&5 | |
17468 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
17469 | Usually this means the macro was only invoked conditionally." >&2;} | |
17470 | { (exit 1); exit 1; }; } | |
17471 | fi | |
17472 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17473 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
17474 | Usually this means the macro was only invoked conditionally." >&5 | |
17475 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
17476 | Usually this means the macro was only invoked conditionally." >&2;} | |
17477 | { (exit 1); exit 1; }; } | |
17478 | fi | |
17479 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
17480 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
17481 | Usually this means the macro was only invoked conditionally." >&5 | |
17482 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
17483 | Usually this means the macro was only invoked conditionally." >&2;} | |
17484 | { (exit 1); exit 1; }; } | |
17485 | fi | |
17486 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
17487 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
17488 | Usually this means the macro was only invoked conditionally." >&5 | |
17489 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
17490 | Usually this means the macro was only invoked conditionally." >&2;} | |
17491 | { (exit 1); exit 1; }; } | |
17492 | fi | |
17493 | if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then | |
17494 | { { $as_echo "$as_me:$LINENO: error: conditional \"FOUND_DB\" was never defined. | |
17495 | Usually this means the macro was only invoked conditionally." >&5 | |
17496 | $as_echo "$as_me: error: conditional \"FOUND_DB\" was never defined. | |
17497 | Usually this means the macro was only invoked conditionally." >&2;} | |
17498 | { (exit 1); exit 1; }; } | |
17499 | fi | |
d9898ee8 | 17500 | |
8d138742 CE |
17501 | : ${CONFIG_STATUS=./config.status} |
17502 | ac_write_fail=0 | |
17503 | ac_clean_files_save=$ac_clean_files | |
17504 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17505 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
17506 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17507 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17508 | #! $SHELL | |
17509 | # Generated by $as_me. | |
17510 | # Run this file to recreate the current configuration. | |
17511 | # Compiler output produced by configure, useful for debugging | |
17512 | # configure, is in config.log if it exists. | |
d9898ee8 | 17513 | |
8d138742 CE |
17514 | debug=false |
17515 | ac_cs_recheck=false | |
17516 | ac_cs_silent=false | |
17517 | SHELL=\${CONFIG_SHELL-$SHELL} | |
17518 | _ACEOF | |
d9898ee8 | 17519 | |
8d138742 CE |
17520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17521 | ## --------------------- ## | |
17522 | ## M4sh Initialization. ## | |
17523 | ## --------------------- ## | |
d9898ee8 | 17524 | |
8d138742 CE |
17525 | # Be more Bourne compatible |
17526 | DUALCASE=1; export DUALCASE # for MKS sh | |
17527 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17528 | emulate sh | |
17529 | NULLCMD=: | |
17530 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
17531 | # is contrary to our usage. Disable this feature. | |
17532 | alias -g '${1+"$@"}'='"$@"' | |
17533 | setopt NO_GLOB_SUBST | |
17534 | else | |
17535 | case `(set -o) 2>/dev/null` in | |
17536 | *posix*) set -o posix ;; | |
17537 | esac | |
d9898ee8 | 17538 | |
8d138742 | 17539 | fi |
d9898ee8 | 17540 | |
d9898ee8 | 17541 | |
d9898ee8 | 17542 | |
d9898ee8 | 17543 | |
8d138742 CE |
17544 | # PATH needs CR |
17545 | # Avoid depending upon Character Ranges. | |
17546 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17547 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17548 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17549 | as_cr_digits='0123456789' | |
17550 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 17551 | |
8d138742 CE |
17552 | as_nl=' |
17553 | ' | |
17554 | export as_nl | |
17555 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17556 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17557 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17558 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17559 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17560 | as_echo='printf %s\n' | |
17561 | as_echo_n='printf %s' | |
17562 | else | |
17563 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17564 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17565 | as_echo_n='/usr/ucb/echo -n' | |
17566 | else | |
17567 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17568 | as_echo_n_body='eval | |
17569 | arg=$1; | |
17570 | case $arg in | |
17571 | *"$as_nl"*) | |
17572 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17573 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17574 | esac; | |
17575 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17576 | ' | |
17577 | export as_echo_n_body | |
17578 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17579 | fi | |
17580 | export as_echo_body | |
17581 | as_echo='sh -c $as_echo_body as_echo' | |
17582 | fi | |
d9898ee8 | 17583 | |
8d138742 CE |
17584 | # The user is always right. |
17585 | if test "${PATH_SEPARATOR+set}" != set; then | |
17586 | PATH_SEPARATOR=: | |
17587 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17588 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17589 | PATH_SEPARATOR=';' | |
17590 | } | |
17591 | fi | |
d9898ee8 | 17592 | |
8d138742 CE |
17593 | # Support unset when possible. |
17594 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
17595 | as_unset=unset | |
17596 | else | |
17597 | as_unset=false | |
17598 | fi | |
d9898ee8 | 17599 | |
d9898ee8 | 17600 | |
8d138742 CE |
17601 | # IFS |
17602 | # We need space, tab and new line, in precisely that order. Quoting is | |
17603 | # there to prevent editors from complaining about space-tab. | |
17604 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17605 | # splitting by setting IFS to empty value.) | |
17606 | IFS=" "" $as_nl" | |
d9898ee8 | 17607 | |
8d138742 CE |
17608 | # Find who we are. Look in the path if we contain no directory separator. |
17609 | case $0 in | |
17610 | *[\\/]* ) as_myself=$0 ;; | |
17611 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17612 | for as_dir in $PATH | |
17613 | do | |
17614 | IFS=$as_save_IFS | |
17615 | test -z "$as_dir" && as_dir=. | |
17616 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17617 | done | |
17618 | IFS=$as_save_IFS | |
d9898ee8 | 17619 | |
8d138742 CE |
17620 | ;; |
17621 | esac | |
17622 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17623 | # in which case we are not to be found in the path. | |
17624 | if test "x$as_myself" = x; then | |
17625 | as_myself=$0 | |
17626 | fi | |
17627 | if test ! -f "$as_myself"; then | |
17628 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17629 | { (exit 1); exit 1; } | |
17630 | fi | |
d9898ee8 | 17631 | |
8d138742 CE |
17632 | # Work around bugs in pre-3.0 UWIN ksh. |
17633 | for as_var in ENV MAIL MAILPATH | |
17634 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
17635 | done | |
17636 | PS1='$ ' | |
17637 | PS2='> ' | |
17638 | PS4='+ ' | |
d9898ee8 | 17639 | |
8d138742 CE |
17640 | # NLS nuisances. |
17641 | LC_ALL=C | |
17642 | export LC_ALL | |
17643 | LANGUAGE=C | |
17644 | export LANGUAGE | |
d9898ee8 | 17645 | |
8d138742 CE |
17646 | # Required to use basename. |
17647 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
17648 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17649 | as_expr=expr | |
17650 | else | |
17651 | as_expr=false | |
17652 | fi | |
d9898ee8 | 17653 | |
8d138742 CE |
17654 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
17655 | as_basename=basename | |
17656 | else | |
17657 | as_basename=false | |
17658 | fi | |
d9898ee8 | 17659 | |
d9898ee8 | 17660 | |
8d138742 CE |
17661 | # Name of the executable. |
17662 | as_me=`$as_basename -- "$0" || | |
17663 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17664 | X"$0" : 'X\(//\)$' \| \ | |
17665 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
17666 | $as_echo X/"$0" | | |
17667 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17668 | s//\1/ | |
17669 | q | |
17670 | } | |
17671 | /^X\/\(\/\/\)$/{ | |
17672 | s//\1/ | |
17673 | q | |
17674 | } | |
17675 | /^X\/\(\/\).*/{ | |
17676 | s//\1/ | |
17677 | q | |
17678 | } | |
17679 | s/.*/./; q'` | |
d9898ee8 | 17680 | |
8d138742 CE |
17681 | # CDPATH. |
17682 | $as_unset CDPATH | |
d9898ee8 | 17683 | |
d9898ee8 | 17684 | |
d9898ee8 | 17685 | |
8d138742 CE |
17686 | as_lineno_1=$LINENO |
17687 | as_lineno_2=$LINENO | |
17688 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
17689 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 17690 | |
8d138742 CE |
17691 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
17692 | # uniformly replaced by the line number. The first 'sed' inserts a | |
17693 | # line-number line after each line using $LINENO; the second 'sed' | |
17694 | # does the real work. The second script uses 'N' to pair each | |
17695 | # line-number line with the line containing $LINENO, and appends | |
17696 | # trailing '-' during substitution so that $LINENO is not a special | |
17697 | # case at line end. | |
17698 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
17699 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
17700 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
17701 | sed -n ' | |
17702 | p | |
17703 | /[$]LINENO/= | |
17704 | ' <$as_myself | | |
17705 | sed ' | |
17706 | s/[$]LINENO.*/&-/ | |
17707 | t lineno | |
17708 | b | |
17709 | :lineno | |
17710 | N | |
17711 | :loop | |
17712 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
17713 | t loop | |
17714 | s/-\n.*// | |
17715 | ' >$as_me.lineno && | |
17716 | chmod +x "$as_me.lineno" || | |
17717 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
17718 | { (exit 1); exit 1; }; } | |
d9898ee8 | 17719 | |
8d138742 CE |
17720 | # Don't try to exec as it changes $[0], causing all sort of problems |
17721 | # (the dirname of $[0] is not the place where we might find the | |
17722 | # original and so on. Autoconf is especially sensitive to this). | |
17723 | . "./$as_me.lineno" | |
17724 | # Exit status is that of the last command. | |
17725 | exit | |
17726 | } | |
d9898ee8 | 17727 | |
d9898ee8 | 17728 | |
8d138742 CE |
17729 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17730 | as_dirname=dirname | |
17731 | else | |
17732 | as_dirname=false | |
17733 | fi | |
d9898ee8 | 17734 | |
8d138742 CE |
17735 | ECHO_C= ECHO_N= ECHO_T= |
17736 | case `echo -n x` in | |
17737 | -n*) | |
17738 | case `echo 'x\c'` in | |
17739 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17740 | *) ECHO_C='\c';; | |
17741 | esac;; | |
17742 | *) | |
17743 | ECHO_N='-n';; | |
17744 | esac | |
17745 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
17746 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17747 | as_expr=expr | |
17748 | else | |
17749 | as_expr=false | |
17750 | fi | |
d9898ee8 | 17751 | |
8d138742 CE |
17752 | rm -f conf$$ conf$$.exe conf$$.file |
17753 | if test -d conf$$.dir; then | |
17754 | rm -f conf$$.dir/conf$$.file | |
17755 | else | |
17756 | rm -f conf$$.dir | |
17757 | mkdir conf$$.dir 2>/dev/null | |
17758 | fi | |
17759 | if (echo >conf$$.file) 2>/dev/null; then | |
17760 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17761 | as_ln_s='ln -s' | |
17762 | # ... but there are two gotchas: | |
17763 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17764 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17765 | # In both cases, we have to default to `cp -p'. | |
17766 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17767 | as_ln_s='cp -p' | |
17768 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17769 | as_ln_s=ln | |
17770 | else | |
17771 | as_ln_s='cp -p' | |
17772 | fi | |
17773 | else | |
17774 | as_ln_s='cp -p' | |
17775 | fi | |
17776 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
17777 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 17778 | |
8d138742 CE |
17779 | if mkdir -p . 2>/dev/null; then |
17780 | as_mkdir_p=: | |
17781 | else | |
17782 | test -d ./-p && rmdir ./-p | |
17783 | as_mkdir_p=false | |
17784 | fi | |
d9898ee8 | 17785 | |
8d138742 CE |
17786 | if test -x / >/dev/null 2>&1; then |
17787 | as_test_x='test -x' | |
17788 | else | |
17789 | if ls -dL / >/dev/null 2>&1; then | |
17790 | as_ls_L_option=L | |
17791 | else | |
17792 | as_ls_L_option= | |
17793 | fi | |
17794 | as_test_x=' | |
17795 | eval sh -c '\'' | |
17796 | if test -d "$1"; then | |
17797 | test -d "$1/."; | |
17798 | else | |
17799 | case $1 in | |
17800 | -*)set "./$1";; | |
17801 | esac; | |
17802 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
17803 | ???[sx]*):;;*)false;;esac;fi | |
17804 | '\'' sh | |
17805 | ' | |
17806 | fi | |
17807 | as_executable_p=$as_test_x | |
d9898ee8 | 17808 | |
8d138742 CE |
17809 | # Sed expression to map a string onto a valid CPP name. |
17810 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 17811 | |
8d138742 CE |
17812 | # Sed expression to map a string onto a valid variable name. |
17813 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 17814 | |
d9898ee8 | 17815 | |
8d138742 | 17816 | exec 6>&1 |
d9898ee8 | 17817 | |
8d138742 CE |
17818 | # Save the log message, to keep $[0] and so on meaningful, and to |
17819 | # report actual input values of CONFIG_FILES etc. instead of their | |
17820 | # values after options handling. | |
17821 | ac_log=" | |
17822 | This file was extended by bdbobj $as_me 0.10, which was | |
17823 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 17824 | |
8d138742 CE |
17825 | CONFIG_FILES = $CONFIG_FILES |
17826 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17827 | CONFIG_LINKS = $CONFIG_LINKS | |
17828 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17829 | $ $0 $@ | |
d9898ee8 | 17830 | |
8d138742 CE |
17831 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17832 | " | |
d9898ee8 | 17833 | |
8d138742 | 17834 | _ACEOF |
d9898ee8 | 17835 | |
8d138742 CE |
17836 | case $ac_config_files in *" |
17837 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17838 | esac | |
d9898ee8 | 17839 | |
8d138742 CE |
17840 | case $ac_config_headers in *" |
17841 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17842 | esac | |
d9898ee8 | 17843 | |
d9898ee8 | 17844 | |
8d138742 CE |
17845 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17846 | # Files that config.status was made for. | |
17847 | config_files="$ac_config_files" | |
17848 | config_headers="$ac_config_headers" | |
17849 | config_commands="$ac_config_commands" | |
d9898ee8 | 17850 | |
8d138742 | 17851 | _ACEOF |
d9898ee8 | 17852 | |
8d138742 CE |
17853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17854 | ac_cs_usage="\ | |
17855 | \`$as_me' instantiates files from templates according to the | |
17856 | current configuration. | |
d9898ee8 | 17857 | |
8d138742 | 17858 | Usage: $0 [OPTION]... [FILE]... |
d9898ee8 | 17859 | |
8d138742 CE |
17860 | -h, --help print this help, then exit |
17861 | -V, --version print version number and configuration settings, then exit | |
17862 | -q, --quiet, --silent | |
17863 | do not print progress messages | |
17864 | -d, --debug don't remove temporary files | |
17865 | --recheck update $as_me by reconfiguring in the same conditions | |
17866 | --file=FILE[:TEMPLATE] | |
17867 | instantiate the configuration file FILE | |
17868 | --header=FILE[:TEMPLATE] | |
17869 | instantiate the configuration header FILE | |
d9898ee8 | 17870 | |
8d138742 CE |
17871 | Configuration files: |
17872 | $config_files | |
d9898ee8 | 17873 | |
8d138742 CE |
17874 | Configuration headers: |
17875 | $config_headers | |
d9898ee8 | 17876 | |
8d138742 CE |
17877 | Configuration commands: |
17878 | $config_commands | |
d9898ee8 | 17879 | |
8d138742 | 17880 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 | 17881 | |
8d138742 CE |
17882 | _ACEOF |
17883 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17884 | ac_cs_version="\\ | |
17885 | bdbobj config.status 0.10 | |
17886 | configured by $0, generated by GNU Autoconf 2.63, | |
17887 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 17888 | |
8d138742 CE |
17889 | Copyright (C) 2008 Free Software Foundation, Inc. |
17890 | This config.status script is free software; the Free Software Foundation | |
17891 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 17892 | |
8d138742 CE |
17893 | ac_pwd='$ac_pwd' |
17894 | srcdir='$srcdir' | |
17895 | INSTALL='$INSTALL' | |
17896 | MKDIR_P='$MKDIR_P' | |
17897 | AWK='$AWK' | |
17898 | test -n "\$AWK" || AWK=awk | |
17899 | _ACEOF | |
d9898ee8 | 17900 | |
8d138742 CE |
17901 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17902 | # The default lists apply if the user does not specify any file. | |
17903 | ac_need_defaults=: | |
17904 | while test $# != 0 | |
17905 | do | |
17906 | case $1 in | |
17907 | --*=*) | |
17908 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17909 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17910 | ac_shift=: | |
17911 | ;; | |
17912 | *) | |
17913 | ac_option=$1 | |
17914 | ac_optarg=$2 | |
17915 | ac_shift=shift | |
17916 | ;; | |
17917 | esac | |
d9898ee8 | 17918 | |
8d138742 CE |
17919 | case $ac_option in |
17920 | # Handling of the options. | |
17921 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17922 | ac_cs_recheck=: ;; | |
17923 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17924 | $as_echo "$ac_cs_version"; exit ;; | |
17925 | --debug | --debu | --deb | --de | --d | -d ) | |
17926 | debug=: ;; | |
17927 | --file | --fil | --fi | --f ) | |
17928 | $ac_shift | |
17929 | case $ac_optarg in | |
17930 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17931 | esac | |
17932 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
17933 | ac_need_defaults=false;; | |
17934 | --header | --heade | --head | --hea ) | |
17935 | $ac_shift | |
17936 | case $ac_optarg in | |
17937 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17938 | esac | |
17939 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
17940 | ac_need_defaults=false;; | |
17941 | --he | --h) | |
17942 | # Conflict between --help and --header | |
17943 | { $as_echo "$as_me: error: ambiguous option: $1 | |
17944 | Try \`$0 --help' for more information." >&2 | |
17945 | { (exit 1); exit 1; }; };; | |
17946 | --help | --hel | -h ) | |
17947 | $as_echo "$ac_cs_usage"; exit ;; | |
17948 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17949 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17950 | ac_cs_silent=: ;; | |
d9898ee8 | 17951 | |
8d138742 CE |
17952 | # This is an error. |
17953 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
17954 | Try \`$0 --help' for more information." >&2 | |
17955 | { (exit 1); exit 1; }; } ;; | |
d9898ee8 | 17956 | |
8d138742 CE |
17957 | *) ac_config_targets="$ac_config_targets $1" |
17958 | ac_need_defaults=false ;; | |
d9898ee8 | 17959 | |
8d138742 CE |
17960 | esac |
17961 | shift | |
17962 | done | |
d9898ee8 | 17963 | |
8d138742 | 17964 | ac_configure_extra_args= |
d9898ee8 | 17965 | |
8d138742 CE |
17966 | if $ac_cs_silent; then |
17967 | exec 6>/dev/null | |
17968 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 17969 | fi |
17970 | ||
8d138742 CE |
17971 | _ACEOF |
17972 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17973 | if \$ac_cs_recheck; then | |
17974 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17975 | shift | |
17976 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17977 | CONFIG_SHELL='$SHELL' | |
17978 | export CONFIG_SHELL | |
17979 | exec "\$@" | |
17980 | fi | |
d9898ee8 | 17981 | |
8d138742 CE |
17982 | _ACEOF |
17983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17984 | exec 5>>config.log | |
17985 | { | |
17986 | echo | |
17987 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17988 | ## Running $as_me. ## | |
17989 | _ASBOX | |
17990 | $as_echo "$ac_log" | |
17991 | } >&5 | |
d9898ee8 | 17992 | |
8d138742 CE |
17993 | _ACEOF |
17994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17995 | # | |
17996 | # INIT-COMMANDS | |
17997 | # | |
17998 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 17999 | |
d9898ee8 | 18000 | |
8d138742 CE |
18001 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
18002 | # if CDPATH is set. | |
18003 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 18004 | |
8d138742 CE |
18005 | sed_quote_subst='$sed_quote_subst' |
18006 | double_quote_subst='$double_quote_subst' | |
18007 | delay_variable_subst='$delay_variable_subst' | |
18008 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18009 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
18010 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
18011 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18012 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
18013 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
18014 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18015 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
18016 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18017 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18018 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
18019 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18020 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
18021 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
18022 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18023 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18024 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18025 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
18026 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
18027 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
18028 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
18029 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
18030 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
18031 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
18032 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
18033 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
18034 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18035 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18036 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
18037 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
18038 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
18039 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
18040 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18041 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
18042 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
18043 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18044 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18045 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18046 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
18047 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18048 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
18049 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
18050 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
18051 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
18052 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
18053 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
18054 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
18055 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
18056 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
18057 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
18058 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18059 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
18060 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
18061 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18062 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
18063 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
18064 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
18065 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
18066 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
18067 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
18068 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
18069 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
18070 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18071 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18072 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
18073 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
18074 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18075 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18076 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
18077 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18078 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18079 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18080 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18081 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18082 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18083 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18084 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18085 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18086 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18087 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18088 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
18089 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
18090 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
18091 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
18092 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18093 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
18094 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18095 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
18096 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18097 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
18098 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18099 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18100 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18101 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18102 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18103 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
18104 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
18105 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18106 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
18107 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18108 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18109 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18110 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18111 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18112 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18113 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18114 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18115 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18116 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
18117 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
18118 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18119 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18120 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
18121 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
18122 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
18123 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18124 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18125 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18126 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
18127 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18128 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18129 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18130 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18131 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18132 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18133 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18134 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18135 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18136 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18137 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18138 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18139 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18140 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18141 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18142 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18143 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18144 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18145 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18146 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18147 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18148 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18149 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18150 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18151 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18152 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18153 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18154 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18155 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18156 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18157 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18158 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18159 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18160 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18161 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18162 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18163 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18164 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18165 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18166 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18167 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18168 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18169 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18170 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18171 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18172 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18173 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18174 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18175 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18176 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18177 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18178 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18179 | ||
18180 | LTCC='$LTCC' | |
18181 | LTCFLAGS='$LTCFLAGS' | |
18182 | compiler='$compiler_DEFAULT' | |
18183 | ||
18184 | # Quote evaled strings. | |
18185 | for var in SED \ | |
18186 | GREP \ | |
18187 | EGREP \ | |
18188 | FGREP \ | |
18189 | LD \ | |
18190 | NM \ | |
18191 | LN_S \ | |
18192 | lt_SP2NL \ | |
18193 | lt_NL2SP \ | |
18194 | reload_flag \ | |
18195 | OBJDUMP \ | |
18196 | deplibs_check_method \ | |
18197 | file_magic_cmd \ | |
18198 | AR \ | |
18199 | AR_FLAGS \ | |
18200 | STRIP \ | |
18201 | RANLIB \ | |
18202 | CC \ | |
18203 | CFLAGS \ | |
18204 | compiler \ | |
18205 | lt_cv_sys_global_symbol_pipe \ | |
18206 | lt_cv_sys_global_symbol_to_cdecl \ | |
18207 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18208 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18209 | SHELL \ | |
18210 | ECHO \ | |
18211 | lt_prog_compiler_no_builtin_flag \ | |
18212 | lt_prog_compiler_wl \ | |
18213 | lt_prog_compiler_pic \ | |
18214 | lt_prog_compiler_static \ | |
18215 | lt_cv_prog_compiler_c_o \ | |
18216 | need_locks \ | |
18217 | DSYMUTIL \ | |
18218 | NMEDIT \ | |
18219 | LIPO \ | |
18220 | OTOOL \ | |
18221 | OTOOL64 \ | |
18222 | shrext_cmds \ | |
18223 | export_dynamic_flag_spec \ | |
18224 | whole_archive_flag_spec \ | |
18225 | compiler_needs_object \ | |
18226 | with_gnu_ld \ | |
18227 | allow_undefined_flag \ | |
18228 | no_undefined_flag \ | |
18229 | hardcode_libdir_flag_spec \ | |
18230 | hardcode_libdir_flag_spec_ld \ | |
18231 | hardcode_libdir_separator \ | |
18232 | fix_srcfile_path \ | |
18233 | exclude_expsyms \ | |
18234 | include_expsyms \ | |
18235 | file_list_spec \ | |
18236 | variables_saved_for_relink \ | |
18237 | libname_spec \ | |
18238 | library_names_spec \ | |
18239 | soname_spec \ | |
18240 | finish_eval \ | |
18241 | old_striplib \ | |
18242 | striplib \ | |
18243 | compiler_lib_search_dirs \ | |
18244 | predep_objects \ | |
18245 | postdep_objects \ | |
18246 | predeps \ | |
18247 | postdeps \ | |
18248 | compiler_lib_search_path \ | |
18249 | LD_CXX \ | |
18250 | compiler_CXX \ | |
18251 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18252 | lt_prog_compiler_wl_CXX \ | |
18253 | lt_prog_compiler_pic_CXX \ | |
18254 | lt_prog_compiler_static_CXX \ | |
18255 | lt_cv_prog_compiler_c_o_CXX \ | |
18256 | export_dynamic_flag_spec_CXX \ | |
18257 | whole_archive_flag_spec_CXX \ | |
18258 | compiler_needs_object_CXX \ | |
18259 | with_gnu_ld_CXX \ | |
18260 | allow_undefined_flag_CXX \ | |
18261 | no_undefined_flag_CXX \ | |
18262 | hardcode_libdir_flag_spec_CXX \ | |
18263 | hardcode_libdir_flag_spec_ld_CXX \ | |
18264 | hardcode_libdir_separator_CXX \ | |
18265 | fix_srcfile_path_CXX \ | |
18266 | exclude_expsyms_CXX \ | |
18267 | include_expsyms_CXX \ | |
18268 | file_list_spec_CXX \ | |
18269 | compiler_lib_search_dirs_CXX \ | |
18270 | predep_objects_CXX \ | |
18271 | postdep_objects_CXX \ | |
18272 | predeps_CXX \ | |
18273 | postdeps_CXX \ | |
18274 | compiler_lib_search_path_CXX; do | |
18275 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18276 | *[\\\\\\\`\\"\\\$]*) | |
18277 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18278 | ;; | |
18279 | *) | |
18280 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18281 | ;; | |
18282 | esac | |
18283 | done | |
d9898ee8 | 18284 | |
8d138742 CE |
18285 | # Double-quote double-evaled strings. |
18286 | for var in reload_cmds \ | |
18287 | old_postinstall_cmds \ | |
18288 | old_postuninstall_cmds \ | |
18289 | old_archive_cmds \ | |
18290 | extract_expsyms_cmds \ | |
18291 | old_archive_from_new_cmds \ | |
18292 | old_archive_from_expsyms_cmds \ | |
18293 | archive_cmds \ | |
18294 | archive_expsym_cmds \ | |
18295 | module_cmds \ | |
18296 | module_expsym_cmds \ | |
18297 | export_symbols_cmds \ | |
18298 | prelink_cmds \ | |
18299 | postinstall_cmds \ | |
18300 | postuninstall_cmds \ | |
18301 | finish_cmds \ | |
18302 | sys_lib_search_path_spec \ | |
18303 | sys_lib_dlsearch_path_spec \ | |
18304 | old_archive_cmds_CXX \ | |
18305 | old_archive_from_new_cmds_CXX \ | |
18306 | old_archive_from_expsyms_cmds_CXX \ | |
18307 | archive_cmds_CXX \ | |
18308 | archive_expsym_cmds_CXX \ | |
18309 | module_cmds_CXX \ | |
18310 | module_expsym_cmds_CXX \ | |
18311 | export_symbols_cmds_CXX \ | |
18312 | prelink_cmds_CXX; do | |
18313 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18314 | *[\\\\\\\`\\"\\\$]*) | |
18315 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18316 | ;; | |
18317 | *) | |
18318 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18319 | ;; | |
18320 | esac | |
18321 | done | |
d9898ee8 | 18322 | |
8d138742 CE |
18323 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
18324 | case \$lt_ECHO in | |
18325 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
18326 | ;; | |
18327 | esac | |
d9898ee8 | 18328 | |
8d138742 CE |
18329 | ac_aux_dir='$ac_aux_dir' |
18330 | xsi_shell='$xsi_shell' | |
18331 | lt_shell_append='$lt_shell_append' | |
d9898ee8 | 18332 | |
8d138742 CE |
18333 | # See if we are running on zsh, and set the options which allow our |
18334 | # commands through without removal of \ escapes INIT. | |
18335 | if test -n "\${ZSH_VERSION+set}" ; then | |
18336 | setopt NO_GLOB_SUBST | |
18337 | fi | |
d9898ee8 | 18338 | |
18339 | ||
8d138742 CE |
18340 | PACKAGE='$PACKAGE' |
18341 | VERSION='$VERSION' | |
18342 | TIMESTAMP='$TIMESTAMP' | |
18343 | RM='$RM' | |
18344 | ofile='$ofile' | |
d9898ee8 | 18345 | |
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | ||
8d138742 | 18351 | _ACEOF |
d9898ee8 | 18352 | |
8d138742 | 18353 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 18354 | |
8d138742 CE |
18355 | # Handling of arguments. |
18356 | for ac_config_target in $ac_config_targets | |
18357 | do | |
18358 | case $ac_config_target in | |
18359 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
18360 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18361 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18362 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 18363 | |
8d138742 CE |
18364 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18365 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
18366 | { (exit 1); exit 1; }; };; | |
18367 | esac | |
18368 | done | |
d9898ee8 | 18369 | |
18370 | ||
8d138742 CE |
18371 | # If the user did not use the arguments to specify the items to instantiate, |
18372 | # then the envvar interface is used. Set only those that are not. | |
18373 | # We use the long form for the default assignment because of an extremely | |
18374 | # bizarre bug on SunOS 4.1.3. | |
18375 | if $ac_need_defaults; then | |
18376 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18377 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18378 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18379 | fi | |
d9898ee8 | 18380 | |
8d138742 CE |
18381 | # Have a temporary directory for convenience. Make it in the build tree |
18382 | # simply because there is no reason against having it here, and in addition, | |
18383 | # creating and moving files from /tmp can sometimes cause problems. | |
18384 | # Hook for its removal unless debugging. | |
18385 | # Note that there is a small window in which the directory will not be cleaned: | |
18386 | # after its creation but before its name has been assigned to `$tmp'. | |
18387 | $debug || | |
18388 | { | |
18389 | tmp= | |
18390 | trap 'exit_status=$? | |
18391 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18392 | ' 0 | |
18393 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
18394 | } | |
18395 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 18396 | |
8d138742 CE |
18397 | { |
18398 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
18399 | test -n "$tmp" && test -d "$tmp" | |
18400 | } || | |
18401 | { | |
18402 | tmp=./conf$$-$RANDOM | |
18403 | (umask 077 && mkdir "$tmp") | |
18404 | } || | |
18405 | { | |
18406 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
18407 | { (exit 1); exit 1; } | |
18408 | } | |
d9898ee8 | 18409 | |
8d138742 CE |
18410 | # Set up the scripts for CONFIG_FILES section. |
18411 | # No need to generate them if there are no CONFIG_FILES. | |
18412 | # This happens for instance with `./config.status config.h'. | |
18413 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 18414 | |
d9898ee8 | 18415 | |
8d138742 CE |
18416 | ac_cr='\r' |
18417 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18418 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18419 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 18420 | else |
8d138742 | 18421 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 18422 | fi |
dd184caf | 18423 | |
8d138742 | 18424 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
d9898ee8 | 18425 | _ACEOF |
d9898ee8 | 18426 | |
8d138742 | 18427 | |
d9898ee8 | 18428 | { |
8d138742 CE |
18429 | echo "cat >conf$$subs.awk <<_ACEOF" && |
18430 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18431 | echo "_ACEOF" | |
18432 | } >conf$$subs.sh || | |
18433 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18434 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18435 | { (exit 1); exit 1; }; } | |
18436 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18437 | ac_delim='%!_!# ' | |
18438 | for ac_last_try in false false false false false :; do | |
18439 | . ./conf$$subs.sh || | |
18440 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18441 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18442 | { (exit 1); exit 1; }; } | |
d9898ee8 | 18443 | |
8d138742 CE |
18444 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18445 | if test $ac_delim_n = $ac_delim_num; then | |
18446 | break | |
18447 | elif $ac_last_try; then | |
18448 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18449 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18450 | { (exit 1); exit 1; }; } | |
18451 | else | |
18452 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18453 | fi | |
18454 | done | |
18455 | rm -f conf$$subs.sh | |
dd184caf | 18456 | |
8d138742 CE |
18457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18458 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
d9898ee8 | 18459 | _ACEOF |
8d138742 CE |
18460 | sed -n ' |
18461 | h | |
18462 | s/^/S["/; s/!.*/"]=/ | |
18463 | p | |
18464 | g | |
18465 | s/^[^!]*!// | |
18466 | :repl | |
18467 | t repl | |
18468 | s/'"$ac_delim"'$// | |
18469 | t delim | |
18470 | :nl | |
18471 | h | |
18472 | s/\(.\{148\}\).*/\1/ | |
18473 | t more1 | |
18474 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18475 | p | |
18476 | n | |
18477 | b repl | |
18478 | :more1 | |
18479 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18480 | p | |
18481 | g | |
18482 | s/.\{148\}// | |
18483 | t nl | |
18484 | :delim | |
18485 | h | |
18486 | s/\(.\{148\}\).*/\1/ | |
18487 | t more2 | |
18488 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18489 | p | |
18490 | b | |
18491 | :more2 | |
18492 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18493 | p | |
18494 | g | |
18495 | s/.\{148\}// | |
18496 | t delim | |
18497 | ' <conf$$subs.awk | sed ' | |
18498 | /^[^""]/{ | |
18499 | N | |
18500 | s/\n// | |
18501 | } | |
18502 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18503 | rm -f conf$$subs.awk | |
18504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18505 | _ACAWK | |
18506 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18507 | for (key in S) S_is_set[key] = 1 | |
18508 | FS = "\a" | |
d9898ee8 | 18509 | |
d9898ee8 | 18510 | } |
8d138742 CE |
18511 | { |
18512 | line = $ 0 | |
18513 | nfields = split(line, field, "@") | |
18514 | substed = 0 | |
18515 | len = length(field[1]) | |
18516 | for (i = 2; i < nfields; i++) { | |
18517 | key = field[i] | |
18518 | keylen = length(key) | |
18519 | if (S_is_set[key]) { | |
18520 | value = S[key] | |
18521 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18522 | len += length(value) + length(field[++i]) | |
18523 | substed = 1 | |
18524 | } else | |
18525 | len += 1 + keylen | |
18526 | } | |
18527 | ||
18528 | print line | |
18529 | } | |
18530 | ||
18531 | _ACAWK | |
18532 | _ACEOF | |
18533 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18534 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18535 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18536 | else | |
18537 | cat | |
18538 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18539 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18540 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18541 | { (exit 1); exit 1; }; } | |
d9898ee8 | 18542 | _ACEOF |
d9898ee8 | 18543 | |
8d138742 CE |
18544 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18545 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18546 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18547 | # (actually we leave an empty line to preserve line numbers). | |
18548 | if test "x$srcdir" = x.; then | |
18549 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18550 | s/:*\$(srcdir):*/:/ | |
18551 | s/:*\${srcdir}:*/:/ | |
18552 | s/:*@srcdir@:*/:/ | |
18553 | s/^\([^=]*=[ ]*\):*/\1/ | |
18554 | s/:*$// | |
18555 | s/^[^=]*=[ ]*$// | |
18556 | }' | |
d9898ee8 | 18557 | fi |
dd184caf | 18558 | |
8d138742 CE |
18559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18560 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 18561 | |
8d138742 CE |
18562 | # Set up the scripts for CONFIG_HEADERS section. |
18563 | # No need to generate them if there are no CONFIG_HEADERS. | |
18564 | # This happens for instance with `./config.status Makefile'. | |
18565 | if test -n "$CONFIG_HEADERS"; then | |
18566 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18567 | BEGIN { | |
18568 | _ACEOF | |
d9898ee8 | 18569 | |
8d138742 CE |
18570 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18571 | # here-document in config.status, that substitutes the proper values into | |
18572 | # config.h.in to produce config.h. | |
d9898ee8 | 18573 | |
8d138742 CE |
18574 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18575 | # handling of long lines. | |
18576 | ac_delim='%!_!# ' | |
18577 | for ac_last_try in false false :; do | |
18578 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18579 | if test -z "$ac_t"; then | |
18580 | break | |
18581 | elif $ac_last_try; then | |
18582 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18583 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18584 | { (exit 1); exit 1; }; } | |
18585 | else | |
18586 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18587 | fi | |
18588 | done | |
d9898ee8 | 18589 | |
8d138742 CE |
18590 | # For the awk script, D is an array of macro values keyed by name, |
18591 | # likewise P contains macro parameters if any. Preserve backslash | |
18592 | # newline sequences. | |
d9898ee8 | 18593 | |
8d138742 CE |
18594 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
18595 | sed -n ' | |
18596 | s/.\{148\}/&'"$ac_delim"'/g | |
18597 | t rset | |
18598 | :rset | |
18599 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18600 | t def | |
18601 | d | |
18602 | :def | |
18603 | s/\\$// | |
18604 | t bsnl | |
18605 | s/["\\]/\\&/g | |
18606 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18607 | D["\1"]=" \3"/p | |
18608 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18609 | d | |
18610 | :bsnl | |
18611 | s/["\\]/\\&/g | |
18612 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18613 | D["\1"]=" \3\\\\\\n"\\/p | |
18614 | t cont | |
18615 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18616 | t cont | |
18617 | d | |
18618 | :cont | |
18619 | n | |
18620 | s/.\{148\}/&'"$ac_delim"'/g | |
18621 | t clear | |
18622 | :clear | |
18623 | s/\\$// | |
18624 | t bsnlc | |
18625 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18626 | d | |
18627 | :bsnlc | |
18628 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18629 | b cont | |
18630 | ' <confdefs.h | sed ' | |
18631 | s/'"$ac_delim"'/"\\\ | |
18632 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18633 | ||
18634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18635 | for (key in D) D_is_set[key] = 1 | |
18636 | FS = "\a" | |
18637 | } | |
18638 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18639 | line = \$ 0 | |
18640 | split(line, arg, " ") | |
18641 | if (arg[1] == "#") { | |
18642 | defundef = arg[2] | |
18643 | mac1 = arg[3] | |
18644 | } else { | |
18645 | defundef = substr(arg[1], 2) | |
18646 | mac1 = arg[2] | |
18647 | } | |
18648 | split(mac1, mac2, "(") #) | |
18649 | macro = mac2[1] | |
18650 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18651 | if (D_is_set[macro]) { | |
18652 | # Preserve the white space surrounding the "#". | |
18653 | print prefix "define", macro P[macro] D[macro] | |
18654 | next | |
18655 | } else { | |
18656 | # Replace #undef with comments. This is necessary, for example, | |
18657 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18658 | # on some systems where configure will not decide to define it. | |
18659 | if (defundef == "undef") { | |
18660 | print "/*", prefix defundef, macro, "*/" | |
18661 | next | |
18662 | } | |
18663 | } | |
18664 | } | |
18665 | { print } | |
18666 | _ACAWK | |
d9898ee8 | 18667 | _ACEOF |
8d138742 CE |
18668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18669 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18670 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18671 | { (exit 1); exit 1; }; } | |
18672 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 18673 | |
d9898ee8 | 18674 | |
8d138742 CE |
18675 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
18676 | shift | |
18677 | for ac_tag | |
18678 | do | |
18679 | case $ac_tag in | |
18680 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18681 | esac | |
18682 | case $ac_mode$ac_tag in | |
18683 | :[FHL]*:*);; | |
18684 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
18685 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
18686 | { (exit 1); exit 1; }; };; | |
18687 | :[FH]-) ac_tag=-:-;; | |
18688 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18689 | esac | |
18690 | ac_save_IFS=$IFS | |
18691 | IFS=: | |
18692 | set x $ac_tag | |
18693 | IFS=$ac_save_IFS | |
18694 | shift | |
18695 | ac_file=$1 | |
18696 | shift | |
d9898ee8 | 18697 | |
8d138742 CE |
18698 | case $ac_mode in |
18699 | :L) ac_source=$1;; | |
18700 | :[FH]) | |
18701 | ac_file_inputs= | |
18702 | for ac_f | |
18703 | do | |
18704 | case $ac_f in | |
18705 | -) ac_f="$tmp/stdin";; | |
18706 | *) # Look for the file first in the build tree, then in the source tree | |
18707 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18708 | # because $ac_f cannot contain `:'. | |
18709 | test -f "$ac_f" || | |
18710 | case $ac_f in | |
18711 | [\\/$]*) false;; | |
18712 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18713 | esac || | |
18714 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
18715 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
18716 | { (exit 1); exit 1; }; };; | |
18717 | esac | |
18718 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18719 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
18720 | done | |
d9898ee8 | 18721 | |
8d138742 CE |
18722 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
18723 | # use $as_me), people would be surprised to read: | |
18724 | # /* config.h. Generated by config.status. */ | |
18725 | configure_input='Generated from '` | |
18726 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18727 | `' by configure.' | |
18728 | if test x"$ac_file" != x-; then | |
18729 | configure_input="$ac_file. $configure_input" | |
18730 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18731 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18732 | fi | |
18733 | # Neutralize special characters interpreted by sed in replacement strings. | |
18734 | case $configure_input in #( | |
18735 | *\&* | *\|* | *\\* ) | |
18736 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18737 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18738 | *) ac_sed_conf_input=$configure_input;; | |
18739 | esac | |
d9898ee8 | 18740 | |
8d138742 CE |
18741 | case $ac_tag in |
18742 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18743 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18744 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18745 | { (exit 1); exit 1; }; } ;; | |
18746 | esac | |
18747 | ;; | |
18748 | esac | |
18749 | ||
18750 | ac_dir=`$as_dirname -- "$ac_file" || | |
18751 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18752 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18753 | X"$ac_file" : 'X\(//\)$' \| \ | |
18754 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
18755 | $as_echo X"$ac_file" | | |
18756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18757 | s//\1/ | |
18758 | q | |
18759 | } | |
18760 | /^X\(\/\/\)[^/].*/{ | |
18761 | s//\1/ | |
18762 | q | |
18763 | } | |
18764 | /^X\(\/\/\)$/{ | |
18765 | s//\1/ | |
18766 | q | |
18767 | } | |
18768 | /^X\(\/\).*/{ | |
18769 | s//\1/ | |
18770 | q | |
18771 | } | |
18772 | s/.*/./; q'` | |
18773 | { as_dir="$ac_dir" | |
18774 | case $as_dir in #( | |
18775 | -*) as_dir=./$as_dir;; | |
18776 | esac | |
18777 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
18778 | as_dirs= | |
18779 | while :; do | |
18780 | case $as_dir in #( | |
18781 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18782 | *) as_qdir=$as_dir;; | |
18783 | esac | |
18784 | as_dirs="'$as_qdir' $as_dirs" | |
18785 | as_dir=`$as_dirname -- "$as_dir" || | |
18786 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18787 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18788 | X"$as_dir" : 'X\(//\)$' \| \ | |
18789 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18790 | $as_echo X"$as_dir" | | |
18791 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18792 | s//\1/ | |
18793 | q | |
18794 | } | |
18795 | /^X\(\/\/\)[^/].*/{ | |
18796 | s//\1/ | |
18797 | q | |
18798 | } | |
18799 | /^X\(\/\/\)$/{ | |
18800 | s//\1/ | |
18801 | q | |
18802 | } | |
18803 | /^X\(\/\).*/{ | |
18804 | s//\1/ | |
18805 | q | |
18806 | } | |
18807 | s/.*/./; q'` | |
18808 | test -d "$as_dir" && break | |
18809 | done | |
18810 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18811 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
18812 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
18813 | { (exit 1); exit 1; }; }; } | |
18814 | ac_builddir=. | |
18815 | ||
18816 | case "$ac_dir" in | |
18817 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18818 | *) | |
18819 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18820 | # A ".." for each directory in $ac_dir_suffix. | |
18821 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18822 | case $ac_top_builddir_sub in | |
18823 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18824 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18825 | esac ;; | |
dd184caf | 18826 | esac |
8d138742 CE |
18827 | ac_abs_top_builddir=$ac_pwd |
18828 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18829 | # for backward compatibility: | |
18830 | ac_top_builddir=$ac_top_build_prefix | |
18831 | ||
18832 | case $srcdir in | |
18833 | .) # We are building in place. | |
18834 | ac_srcdir=. | |
18835 | ac_top_srcdir=$ac_top_builddir_sub | |
18836 | ac_abs_top_srcdir=$ac_pwd ;; | |
18837 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
18838 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18839 | ac_top_srcdir=$srcdir | |
18840 | ac_abs_top_srcdir=$srcdir ;; | |
18841 | *) # Relative name. | |
18842 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18843 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18844 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18845 | esac | |
18846 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 18847 | |
dd184caf | 18848 | |
8d138742 CE |
18849 | case $ac_mode in |
18850 | :F) | |
18851 | # | |
18852 | # CONFIG_FILE | |
18853 | # | |
d9898ee8 | 18854 | |
8d138742 CE |
18855 | case $INSTALL in |
18856 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18857 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
18858 | esac | |
18859 | ac_MKDIR_P=$MKDIR_P | |
18860 | case $MKDIR_P in | |
18861 | [\\/$]* | ?:[\\/]* ) ;; | |
18862 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18863 | esac | |
d9898ee8 | 18864 | _ACEOF |
d9898ee8 | 18865 | |
8d138742 CE |
18866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18867 | # If the template does not know about datarootdir, expand it. | |
18868 | # FIXME: This hack should be removed a few years after 2.60. | |
18869 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
d9898ee8 | 18870 | |
8d138742 CE |
18871 | ac_sed_dataroot=' |
18872 | /datarootdir/ { | |
18873 | p | |
18874 | q | |
d9898ee8 | 18875 | } |
8d138742 CE |
18876 | /@datadir@/p |
18877 | /@docdir@/p | |
18878 | /@infodir@/p | |
18879 | /@localedir@/p | |
18880 | /@mandir@/p | |
18881 | ' | |
18882 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18883 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18884 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18886 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
d9898ee8 | 18887 | _ACEOF |
8d138742 CE |
18888 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18889 | ac_datarootdir_hack=' | |
18890 | s&@datadir@&$datadir&g | |
18891 | s&@docdir@&$docdir&g | |
18892 | s&@infodir@&$infodir&g | |
18893 | s&@localedir@&$localedir&g | |
18894 | s&@mandir@&$mandir&g | |
18895 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
dd184caf | 18896 | esac |
8d138742 | 18897 | _ACEOF |
d9898ee8 | 18898 | |
8d138742 CE |
18899 | # Neutralize VPATH when `$srcdir' = `.'. |
18900 | # Shell code in configure.ac might set extrasub. | |
18901 | # FIXME: do we really want to maintain this feature? | |
18902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18903 | ac_sed_extra="$ac_vpsub | |
18904 | $extrasub | |
18905 | _ACEOF | |
18906 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18907 | :t | |
18908 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18909 | s|@configure_input@|$ac_sed_conf_input|;t t | |
18910 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18911 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18912 | s&@srcdir@&$ac_srcdir&;t t | |
18913 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18914 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18915 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18916 | s&@builddir@&$ac_builddir&;t t | |
18917 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18918 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18919 | s&@INSTALL@&$ac_INSTALL&;t t | |
18920 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18921 | $ac_datarootdir_hack | |
18922 | " | |
18923 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
18924 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18925 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18926 | { (exit 1); exit 1; }; } | |
dd184caf | 18927 | |
8d138742 CE |
18928 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
18929 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18930 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18931 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18932 | which seems to be undefined. Please make sure it is defined." >&5 | |
18933 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18934 | which seems to be undefined. Please make sure it is defined." >&2;} | |
d9898ee8 | 18935 | |
8d138742 CE |
18936 | rm -f "$tmp/stdin" |
18937 | case $ac_file in | |
18938 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
18939 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18940 | esac \ | |
18941 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18942 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18943 | { (exit 1); exit 1; }; } | |
18944 | ;; | |
18945 | :H) | |
18946 | # | |
18947 | # CONFIG_HEADER | |
18948 | # | |
18949 | if test x"$ac_file" != x-; then | |
18950 | { | |
18951 | $as_echo "/* $configure_input */" \ | |
18952 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18953 | } >"$tmp/config.h" \ | |
18954 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18955 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18956 | { (exit 1); exit 1; }; } | |
18957 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18958 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
18959 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18960 | else | |
18961 | rm -f "$ac_file" | |
18962 | mv "$tmp/config.h" "$ac_file" \ | |
18963 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18964 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18965 | { (exit 1); exit 1; }; } | |
18966 | fi | |
18967 | else | |
18968 | $as_echo "/* $configure_input */" \ | |
18969 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18970 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
18971 | $as_echo "$as_me: error: could not create -" >&2;} | |
18972 | { (exit 1); exit 1; }; } | |
18973 | fi | |
18974 | # Compute "$ac_file"'s index in $config_headers. | |
18975 | _am_arg="$ac_file" | |
18976 | _am_stamp_count=1 | |
18977 | for _am_header in $config_headers :; do | |
18978 | case $_am_header in | |
18979 | $_am_arg | $_am_arg:* ) | |
18980 | break ;; | |
18981 | * ) | |
18982 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18983 | esac | |
18984 | done | |
18985 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18986 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18987 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18988 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18989 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18990 | $as_echo X"$_am_arg" | | |
18991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18992 | s//\1/ | |
18993 | q | |
18994 | } | |
18995 | /^X\(\/\/\)[^/].*/{ | |
18996 | s//\1/ | |
18997 | q | |
18998 | } | |
18999 | /^X\(\/\/\)$/{ | |
19000 | s//\1/ | |
19001 | q | |
19002 | } | |
19003 | /^X\(\/\).*/{ | |
19004 | s//\1/ | |
19005 | q | |
19006 | } | |
19007 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19008 | ;; | |
d9898ee8 | 19009 | |
8d138742 CE |
19010 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
19011 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19012 | ;; | |
19013 | esac | |
d9898ee8 | 19014 | |
d9898ee8 | 19015 | |
8d138742 CE |
19016 | case $ac_file$ac_mode in |
19017 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
19018 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
19019 | # are listed without --file. Let's play safe and only enable the eval | |
19020 | # if we detect the quoting. | |
19021 | case $CONFIG_FILES in | |
19022 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19023 | *) set x $CONFIG_FILES ;; | |
19024 | esac | |
19025 | shift | |
19026 | for mf | |
19027 | do | |
19028 | # Strip MF so we end up with the name of the file. | |
19029 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19030 | # Check whether this is an Automake generated Makefile or not. | |
19031 | # We used to match only the files named `Makefile.in', but | |
19032 | # some people rename them; so instead we look at the file content. | |
19033 | # Grep'ing the first line is not enough: some people post-process | |
19034 | # each Makefile.in and add a new line on top of each file to say so. | |
19035 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19036 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19037 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19038 | dirpart=`$as_dirname -- "$mf" || | |
19039 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19040 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19041 | X"$mf" : 'X\(//\)$' \| \ | |
19042 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19043 | $as_echo X"$mf" | | |
19044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19045 | s//\1/ | |
19046 | q | |
19047 | } | |
19048 | /^X\(\/\/\)[^/].*/{ | |
19049 | s//\1/ | |
19050 | q | |
19051 | } | |
19052 | /^X\(\/\/\)$/{ | |
19053 | s//\1/ | |
19054 | q | |
19055 | } | |
19056 | /^X\(\/\).*/{ | |
19057 | s//\1/ | |
19058 | q | |
19059 | } | |
19060 | s/.*/./; q'` | |
19061 | else | |
19062 | continue | |
19063 | fi | |
19064 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19065 | # from the Makefile without running `make'. | |
19066 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19067 | test -z "$DEPDIR" && continue | |
19068 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19069 | test -z "am__include" && continue | |
19070 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19071 | # When using ansi2knr, U may be empty or an underscore; expand it | |
19072 | U=`sed -n 's/^U = //p' < "$mf"` | |
19073 | # Find all dependency output files, they are included files with | |
19074 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19075 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19076 | # expansion. | |
19077 | for file in `sed -n " | |
19078 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19079 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
19080 | # Make sure the directory exists. | |
19081 | test -f "$dirpart/$file" && continue | |
19082 | fdir=`$as_dirname -- "$file" || | |
19083 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19084 | X"$file" : 'X\(//\)[^/]' \| \ | |
19085 | X"$file" : 'X\(//\)$' \| \ | |
19086 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19087 | $as_echo X"$file" | | |
19088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19089 | s//\1/ | |
19090 | q | |
19091 | } | |
19092 | /^X\(\/\/\)[^/].*/{ | |
19093 | s//\1/ | |
19094 | q | |
19095 | } | |
19096 | /^X\(\/\/\)$/{ | |
19097 | s//\1/ | |
19098 | q | |
19099 | } | |
19100 | /^X\(\/\).*/{ | |
19101 | s//\1/ | |
19102 | q | |
19103 | } | |
19104 | s/.*/./; q'` | |
19105 | { as_dir=$dirpart/$fdir | |
19106 | case $as_dir in #( | |
19107 | -*) as_dir=./$as_dir;; | |
19108 | esac | |
19109 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
19110 | as_dirs= | |
19111 | while :; do | |
19112 | case $as_dir in #( | |
19113 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19114 | *) as_qdir=$as_dir;; | |
19115 | esac | |
19116 | as_dirs="'$as_qdir' $as_dirs" | |
19117 | as_dir=`$as_dirname -- "$as_dir" || | |
19118 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19119 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19120 | X"$as_dir" : 'X\(//\)$' \| \ | |
19121 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19122 | $as_echo X"$as_dir" | | |
19123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19124 | s//\1/ | |
19125 | q | |
19126 | } | |
19127 | /^X\(\/\/\)[^/].*/{ | |
19128 | s//\1/ | |
19129 | q | |
19130 | } | |
19131 | /^X\(\/\/\)$/{ | |
19132 | s//\1/ | |
19133 | q | |
19134 | } | |
19135 | /^X\(\/\).*/{ | |
19136 | s//\1/ | |
19137 | q | |
19138 | } | |
19139 | s/.*/./; q'` | |
19140 | test -d "$as_dir" && break | |
19141 | done | |
19142 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
19143 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
19144 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
19145 | { (exit 1); exit 1; }; }; } | |
19146 | # echo "creating $dirpart/$file" | |
19147 | echo '# dummy' > "$dirpart/$file" | |
19148 | done | |
19149 | done | |
19150 | } | |
19151 | ;; | |
19152 | "libtool":C) | |
19153 | ||
19154 | # See if we are running on zsh, and set the options which allow our | |
19155 | # commands through without removal of \ escapes. | |
19156 | if test -n "${ZSH_VERSION+set}" ; then | |
19157 | setopt NO_GLOB_SUBST | |
19158 | fi | |
d9898ee8 | 19159 | |
8d138742 CE |
19160 | cfgfile="${ofile}T" |
19161 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19162 | $RM "$cfgfile" | |
d9898ee8 | 19163 | |
8d138742 CE |
19164 | cat <<_LT_EOF >> "$cfgfile" |
19165 | #! $SHELL | |
d9898ee8 | 19166 | |
8d138742 CE |
19167 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
19168 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19169 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19170 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19171 | # | |
19172 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19173 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
19174 | # Written by Gordon Matzigkeit, 1996 | |
19175 | # | |
19176 | # This file is part of GNU Libtool. | |
19177 | # | |
19178 | # GNU Libtool is free software; you can redistribute it and/or | |
19179 | # modify it under the terms of the GNU General Public License as | |
19180 | # published by the Free Software Foundation; either version 2 of | |
19181 | # the License, or (at your option) any later version. | |
19182 | # | |
19183 | # As a special exception to the GNU General Public License, | |
19184 | # if you distribute this file as part of a program or library that | |
19185 | # is built using GNU Libtool, you may include this file under the | |
19186 | # same distribution terms that you use for the rest of that program. | |
19187 | # | |
19188 | # GNU Libtool is distributed in the hope that it will be useful, | |
19189 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19190 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19191 | # GNU General Public License for more details. | |
19192 | # | |
19193 | # You should have received a copy of the GNU General Public License | |
19194 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19195 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19196 | # obtained by writing to the Free Software Foundation, Inc., | |
19197 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
dd184caf | 19198 | |
d9898ee8 | 19199 | |
8d138742 CE |
19200 | # The names of the tagged configurations supported by this script. |
19201 | available_tags="CXX " | |
d9898ee8 | 19202 | |
8d138742 | 19203 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 19204 | |
8d138742 CE |
19205 | # Which release of libtool.m4 was used? |
19206 | macro_version=$macro_version | |
19207 | macro_revision=$macro_revision | |
d9898ee8 | 19208 | |
8d138742 CE |
19209 | # Whether or not to build shared libraries. |
19210 | build_libtool_libs=$enable_shared | |
d9898ee8 | 19211 | |
8d138742 CE |
19212 | # Whether or not to build static libraries. |
19213 | build_old_libs=$enable_static | |
d9898ee8 | 19214 | |
8d138742 CE |
19215 | # What type of objects to build. |
19216 | pic_mode=$pic_mode | |
d9898ee8 | 19217 | |
8d138742 CE |
19218 | # Whether or not to optimize for fast installation. |
19219 | fast_install=$enable_fast_install | |
d9898ee8 | 19220 | |
8d138742 CE |
19221 | # The host system. |
19222 | host_alias=$host_alias | |
19223 | host=$host | |
19224 | host_os=$host_os | |
d9898ee8 | 19225 | |
8d138742 CE |
19226 | # The build system. |
19227 | build_alias=$build_alias | |
19228 | build=$build | |
19229 | build_os=$build_os | |
d9898ee8 | 19230 | |
8d138742 CE |
19231 | # A sed program that does not truncate output. |
19232 | SED=$lt_SED | |
d9898ee8 | 19233 | |
8d138742 CE |
19234 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
19235 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 19236 | |
8d138742 CE |
19237 | # A grep program that handles long lines. |
19238 | GREP=$lt_GREP | |
dd184caf | 19239 | |
8d138742 CE |
19240 | # An ERE matcher. |
19241 | EGREP=$lt_EGREP | |
d9898ee8 | 19242 | |
8d138742 CE |
19243 | # A literal string matcher. |
19244 | FGREP=$lt_FGREP | |
d9898ee8 | 19245 | |
8d138742 CE |
19246 | # A BSD- or MS-compatible name lister. |
19247 | NM=$lt_NM | |
dd184caf | 19248 | |
8d138742 CE |
19249 | # Whether we need soft or hard links. |
19250 | LN_S=$lt_LN_S | |
d9898ee8 | 19251 | |
8d138742 CE |
19252 | # What is the maximum length of a command? |
19253 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 19254 | |
8d138742 CE |
19255 | # Object file suffix (normally "o"). |
19256 | objext=$ac_objext | |
d9898ee8 | 19257 | |
8d138742 CE |
19258 | # Executable file suffix (normally ""). |
19259 | exeext=$exeext | |
d9898ee8 | 19260 | |
8d138742 CE |
19261 | # whether the shell understands "unset". |
19262 | lt_unset=$lt_unset | |
d9898ee8 | 19263 | |
8d138742 CE |
19264 | # turn spaces into newlines. |
19265 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 19266 | |
8d138742 CE |
19267 | # turn newlines into spaces. |
19268 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 19269 | |
8d138742 CE |
19270 | # How to create reloadable object files. |
19271 | reload_flag=$lt_reload_flag | |
19272 | reload_cmds=$lt_reload_cmds | |
d9898ee8 | 19273 | |
8d138742 CE |
19274 | # An object symbol dumper. |
19275 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 19276 | |
8d138742 CE |
19277 | # Method to check whether dependent libraries are shared objects. |
19278 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 19279 | |
8d138742 CE |
19280 | # Command to use when deplibs_check_method == "file_magic". |
19281 | file_magic_cmd=$lt_file_magic_cmd | |
dd184caf | 19282 | |
8d138742 CE |
19283 | # The archiver. |
19284 | AR=$lt_AR | |
19285 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 19286 | |
8d138742 CE |
19287 | # A symbol stripping program. |
19288 | STRIP=$lt_STRIP | |
d9898ee8 | 19289 | |
8d138742 CE |
19290 | # Commands used to install an old-style archive. |
19291 | RANLIB=$lt_RANLIB | |
19292 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19293 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 19294 | |
8d138742 CE |
19295 | # A C compiler. |
19296 | LTCC=$lt_CC | |
d9898ee8 | 19297 | |
8d138742 CE |
19298 | # LTCC compiler flags. |
19299 | LTCFLAGS=$lt_CFLAGS | |
dd184caf | 19300 | |
8d138742 CE |
19301 | # Take the output of nm and produce a listing of raw symbols and C names. |
19302 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 19303 | |
8d138742 CE |
19304 | # Transform the output of nm in a proper C declaration. |
19305 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 19306 | |
8d138742 CE |
19307 | # Transform the output of nm in a C name address pair. |
19308 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 19309 | |
8d138742 CE |
19310 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19311 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 19312 | |
8d138742 CE |
19313 | # The name of the directory that contains temporary libtool files. |
19314 | objdir=$objdir | |
d9898ee8 | 19315 | |
8d138742 CE |
19316 | # Shell to use when invoking shell scripts. |
19317 | SHELL=$lt_SHELL | |
d9898ee8 | 19318 | |
8d138742 CE |
19319 | # An echo program that does not interpret backslashes. |
19320 | ECHO=$lt_ECHO | |
d9898ee8 | 19321 | |
8d138742 CE |
19322 | # Used to examine libraries when file_magic_cmd begins with "file". |
19323 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 19324 | |
8d138742 CE |
19325 | # Must we lock files when doing compilation? |
19326 | need_locks=$lt_need_locks | |
d9898ee8 | 19327 | |
8d138742 CE |
19328 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19329 | DSYMUTIL=$lt_DSYMUTIL | |
dd184caf | 19330 | |
8d138742 CE |
19331 | # Tool to change global to local symbols on Mac OS X. |
19332 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 19333 | |
8d138742 CE |
19334 | # Tool to manipulate fat objects and archives on Mac OS X. |
19335 | LIPO=$lt_LIPO | |
d9898ee8 | 19336 | |
8d138742 CE |
19337 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
19338 | OTOOL=$lt_OTOOL | |
d9898ee8 | 19339 | |
8d138742 CE |
19340 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
19341 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 19342 | |
8d138742 CE |
19343 | # Old archive suffix (normally "a"). |
19344 | libext=$libext | |
dd184caf | 19345 | |
8d138742 CE |
19346 | # Shared library suffix (normally ".so"). |
19347 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 19348 | |
8d138742 CE |
19349 | # The commands to extract the exported symbol list from a shared archive. |
19350 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 19351 | |
8d138742 CE |
19352 | # Variables whose values should be saved in libtool wrapper scripts and |
19353 | # restored at link time. | |
19354 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 19355 | |
8d138742 CE |
19356 | # Do we need the "lib" prefix for modules? |
19357 | need_lib_prefix=$need_lib_prefix | |
19358 | ||
19359 | # Do we need a version for libraries? | |
19360 | need_version=$need_version | |
19361 | ||
19362 | # Library versioning type. | |
19363 | version_type=$version_type | |
d9898ee8 | 19364 | |
8d138742 CE |
19365 | # Shared library runtime path variable. |
19366 | runpath_var=$runpath_var | |
d9898ee8 | 19367 | |
8d138742 CE |
19368 | # Shared library path variable. |
19369 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 19370 | |
8d138742 CE |
19371 | # Is shlibpath searched before the hard-coded library search path? |
19372 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 19373 | |
8d138742 CE |
19374 | # Format of library name prefix. |
19375 | libname_spec=$lt_libname_spec | |
d9898ee8 | 19376 | |
8d138742 CE |
19377 | # List of archive names. First name is the real one, the rest are links. |
19378 | # The last name is the one that the linker finds with -lNAME | |
19379 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 19380 | |
8d138742 CE |
19381 | # The coded name of the library, if different from the real name. |
19382 | soname_spec=$lt_soname_spec | |
d9898ee8 | 19383 | |
8d138742 CE |
19384 | # Command to use after installation of a shared archive. |
19385 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 19386 | |
8d138742 CE |
19387 | # Command to use after uninstallation of a shared archive. |
19388 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 19389 | |
8d138742 CE |
19390 | # Commands used to finish a libtool library installation in a directory. |
19391 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 19392 | |
8d138742 CE |
19393 | # As "finish_cmds", except a single script fragment to be evaled but |
19394 | # not shown. | |
19395 | finish_eval=$lt_finish_eval | |
dd184caf | 19396 | |
8d138742 CE |
19397 | # Whether we should hardcode library paths into libraries. |
19398 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 19399 | |
8d138742 CE |
19400 | # Compile-time system search path for libraries. |
19401 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 19402 | |
8d138742 CE |
19403 | # Run-time system search path for libraries. |
19404 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 19405 | |
8d138742 CE |
19406 | # Whether dlopen is supported. |
19407 | dlopen_support=$enable_dlopen | |
d9898ee8 | 19408 | |
8d138742 CE |
19409 | # Whether dlopen of programs is supported. |
19410 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 19411 | |
8d138742 CE |
19412 | # Whether dlopen of statically linked programs is supported. |
19413 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 19414 | |
8d138742 CE |
19415 | # Commands to strip libraries. |
19416 | old_striplib=$lt_old_striplib | |
19417 | striplib=$lt_striplib | |
d9898ee8 | 19418 | |
dd184caf | 19419 | |
8d138742 CE |
19420 | # The linker used to build libraries. |
19421 | LD=$lt_LD | |
dd184caf | 19422 | |
8d138742 CE |
19423 | # Commands used to build an old-style archive. |
19424 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 19425 | |
8d138742 CE |
19426 | # A language specific compiler. |
19427 | CC=$lt_compiler | |
dd184caf | 19428 | |
8d138742 CE |
19429 | # Is the compiler the GNU compiler? |
19430 | with_gcc=$GCC | |
dd184caf | 19431 | |
8d138742 CE |
19432 | # Compiler flag to turn off builtin functions. |
19433 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 19434 | |
8d138742 CE |
19435 | # How to pass a linker flag through the compiler. |
19436 | wl=$lt_lt_prog_compiler_wl | |
dd184caf | 19437 | |
8d138742 CE |
19438 | # Additional compiler flags for building library objects. |
19439 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 19440 | |
8d138742 CE |
19441 | # Compiler flag to prevent dynamic linking. |
19442 | link_static_flag=$lt_lt_prog_compiler_static | |
dd184caf | 19443 | |
8d138742 CE |
19444 | # Does compiler simultaneously support -c and -o options? |
19445 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dd184caf | 19446 | |
8d138742 CE |
19447 | # Whether or not to add -lc for building shared libraries. |
19448 | build_libtool_need_lc=$archive_cmds_need_lc | |
dd184caf | 19449 | |
8d138742 CE |
19450 | # Whether or not to disallow shared libs when runtime libs are static. |
19451 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
dd184caf | 19452 | |
8d138742 CE |
19453 | # Compiler flag to allow reflexive dlopens. |
19454 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
dd184caf | 19455 | |
8d138742 CE |
19456 | # Compiler flag to generate shared objects directly from archives. |
19457 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 19458 | |
8d138742 CE |
19459 | # Whether the compiler copes with passing no objects directly. |
19460 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 19461 | |
8d138742 CE |
19462 | # Create an old-style archive from a shared archive. |
19463 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19464 | ||
19465 | # Create a temporary old-style archive to link instead of a shared archive. | |
19466 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 19467 | |
8d138742 CE |
19468 | # Commands used to build a shared archive. |
19469 | archive_cmds=$lt_archive_cmds | |
19470 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
d9898ee8 | 19471 | |
8d138742 CE |
19472 | # Commands used to build a loadable module if different from building |
19473 | # a shared archive. | |
19474 | module_cmds=$lt_module_cmds | |
19475 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 19476 | |
8d138742 CE |
19477 | # Whether we are building with GNU ld or not. |
19478 | with_gnu_ld=$lt_with_gnu_ld | |
d9898ee8 | 19479 | |
8d138742 CE |
19480 | # Flag that allows shared libraries with undefined symbols to be built. |
19481 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 19482 | |
8d138742 CE |
19483 | # Flag that enforces no undefined symbols. |
19484 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 19485 | |
8d138742 CE |
19486 | # Flag to hardcode \$libdir into a binary during linking. |
19487 | # This must work even if \$libdir does not exist | |
19488 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
d9898ee8 | 19489 | |
8d138742 CE |
19490 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19491 | # during linking. This must work even if \$libdir does not exist. | |
19492 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
d9898ee8 | 19493 | |
8d138742 CE |
19494 | # Whether we need a single "-rpath" flag with a separated argument. |
19495 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
d9898ee8 | 19496 | |
8d138742 CE |
19497 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19498 | # DIR into the resulting binary. | |
19499 | hardcode_direct=$hardcode_direct | |
d9898ee8 | 19500 | |
8d138742 CE |
19501 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19502 | # DIR into the resulting binary and the resulting library dependency is | |
19503 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19504 | # library is relocated. | |
19505 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 19506 | |
8d138742 CE |
19507 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
19508 | # into the resulting binary. | |
19509 | hardcode_minus_L=$hardcode_minus_L | |
d9898ee8 | 19510 | |
8d138742 CE |
19511 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
19512 | # into the resulting binary. | |
19513 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
d9898ee8 | 19514 | |
8d138742 CE |
19515 | # Set to "yes" if building a shared library automatically hardcodes DIR |
19516 | # into the library and all subsequent libraries and executables linked | |
19517 | # against it. | |
19518 | hardcode_automatic=$hardcode_automatic | |
d9898ee8 | 19519 | |
8d138742 CE |
19520 | # Set to yes if linker adds runtime paths of dependent libraries |
19521 | # to runtime path list. | |
19522 | inherit_rpath=$inherit_rpath | |
dd184caf | 19523 | |
8d138742 CE |
19524 | # Whether libtool must link a program against all its dependency libraries. |
19525 | link_all_deplibs=$link_all_deplibs | |
d9898ee8 | 19526 | |
8d138742 CE |
19527 | # Fix the shell variable \$srcfile for the compiler. |
19528 | fix_srcfile_path=$lt_fix_srcfile_path | |
d9898ee8 | 19529 | |
8d138742 CE |
19530 | # Set to "yes" if exported symbols are required. |
19531 | always_export_symbols=$always_export_symbols | |
d9898ee8 | 19532 | |
8d138742 CE |
19533 | # The commands to list exported symbols. |
19534 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 19535 | |
8d138742 CE |
19536 | # Symbols that should not be listed in the preloaded symbols. |
19537 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 19538 | |
8d138742 CE |
19539 | # Symbols that must always be exported. |
19540 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 19541 | |
8d138742 CE |
19542 | # Commands necessary for linking programs (against libraries) with templates. |
19543 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 19544 | |
8d138742 CE |
19545 | # Specify filename containing input files. |
19546 | file_list_spec=$lt_file_list_spec | |
d9898ee8 | 19547 | |
8d138742 CE |
19548 | # How to hardcode a shared library path into an executable. |
19549 | hardcode_action=$hardcode_action | |
d9898ee8 | 19550 | |
8d138742 CE |
19551 | # The directories searched by this compiler when creating a shared library. |
19552 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
d9898ee8 | 19553 | |
8d138742 CE |
19554 | # Dependencies to place before and after the objects being linked to |
19555 | # create a shared library. | |
19556 | predep_objects=$lt_predep_objects | |
19557 | postdep_objects=$lt_postdep_objects | |
19558 | predeps=$lt_predeps | |
19559 | postdeps=$lt_postdeps | |
d9898ee8 | 19560 | |
8d138742 CE |
19561 | # The library search path used internally by the compiler when linking |
19562 | # a shared library. | |
19563 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
dd184caf | 19564 | |
8d138742 | 19565 | # ### END LIBTOOL CONFIG |
d9898ee8 | 19566 | |
8d138742 CE |
19567 | _LT_EOF |
19568 | ||
19569 | case $host_os in | |
19570 | aix3*) | |
19571 | cat <<\_LT_EOF >> "$cfgfile" | |
19572 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19573 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19574 | # vanish in a puff of smoke. | |
19575 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19576 | COLLECT_NAMES= | |
19577 | export COLLECT_NAMES | |
19578 | fi | |
19579 | _LT_EOF | |
d9898ee8 | 19580 | ;; |
d9898ee8 | 19581 | esac |
19582 | ||
d9898ee8 | 19583 | |
8d138742 | 19584 | ltmain="$ac_aux_dir/ltmain.sh" |
d9898ee8 | 19585 | |
d9898ee8 | 19586 | |
8d138742 CE |
19587 | # We use sed instead of cat because bash on DJGPP gets confused if |
19588 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19589 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19590 | # is reportedly fixed, but why not run on old versions too? | |
19591 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19592 | || (rm -f "$cfgfile"; exit 1) | |
19593 | ||
19594 | case $xsi_shell in | |
19595 | yes) | |
19596 | cat << \_LT_EOF >> "$cfgfile" | |
19597 | ||
19598 | # func_dirname file append nondir_replacement | |
19599 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19600 | # otherwise set result to NONDIR_REPLACEMENT. | |
19601 | func_dirname () | |
19602 | { | |
19603 | case ${1} in | |
19604 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19605 | * ) func_dirname_result="${3}" ;; | |
d9898ee8 | 19606 | esac |
8d138742 | 19607 | } |
d9898ee8 | 19608 | |
8d138742 CE |
19609 | # func_basename file |
19610 | func_basename () | |
19611 | { | |
19612 | func_basename_result="${1##*/}" | |
19613 | } | |
d9898ee8 | 19614 | |
8d138742 CE |
19615 | # func_dirname_and_basename file append nondir_replacement |
19616 | # perform func_basename and func_dirname in a single function | |
19617 | # call: | |
19618 | # dirname: Compute the dirname of FILE. If nonempty, | |
19619 | # add APPEND to the result, otherwise set result | |
19620 | # to NONDIR_REPLACEMENT. | |
19621 | # value returned in "$func_dirname_result" | |
19622 | # basename: Compute filename of FILE. | |
19623 | # value retuned in "$func_basename_result" | |
19624 | # Implementation must be kept synchronized with func_dirname | |
19625 | # and func_basename. For efficiency, we do not delegate to | |
19626 | # those functions but instead duplicate the functionality here. | |
19627 | func_dirname_and_basename () | |
19628 | { | |
19629 | case ${1} in | |
19630 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19631 | * ) func_dirname_result="${3}" ;; | |
19632 | esac | |
19633 | func_basename_result="${1##*/}" | |
19634 | } | |
d9898ee8 | 19635 | |
8d138742 CE |
19636 | # func_stripname prefix suffix name |
19637 | # strip PREFIX and SUFFIX off of NAME. | |
19638 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19639 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19640 | # dot (in which case that matches only a dot). | |
19641 | func_stripname () | |
19642 | { | |
19643 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19644 | # positional parameters, so assign one to ordinary parameter first. | |
19645 | func_stripname_result=${3} | |
19646 | func_stripname_result=${func_stripname_result#"${1}"} | |
19647 | func_stripname_result=${func_stripname_result%"${2}"} | |
19648 | } | |
d9898ee8 | 19649 | |
8d138742 CE |
19650 | # func_opt_split |
19651 | func_opt_split () | |
dd184caf | 19652 | { |
8d138742 CE |
19653 | func_opt_split_opt=${1%%=*} |
19654 | func_opt_split_arg=${1#*=} | |
19655 | } | |
d9898ee8 | 19656 | |
8d138742 CE |
19657 | # func_lo2o object |
19658 | func_lo2o () | |
19659 | { | |
19660 | case ${1} in | |
19661 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19662 | *) func_lo2o_result=${1} ;; | |
19663 | esac | |
19664 | } | |
d9898ee8 | 19665 | |
8d138742 CE |
19666 | # func_xform libobj-or-source |
19667 | func_xform () | |
19668 | { | |
19669 | func_xform_result=${1%.*}.lo | |
19670 | } | |
d9898ee8 | 19671 | |
8d138742 CE |
19672 | # func_arith arithmetic-term... |
19673 | func_arith () | |
19674 | { | |
19675 | func_arith_result=$(( $* )) | |
19676 | } | |
dd184caf | 19677 | |
8d138742 CE |
19678 | # func_len string |
19679 | # STRING may not start with a hyphen. | |
19680 | func_len () | |
19681 | { | |
19682 | func_len_result=${#1} | |
19683 | } | |
dd184caf | 19684 | |
8d138742 CE |
19685 | _LT_EOF |
19686 | ;; | |
19687 | *) # Bourne compatible functions. | |
19688 | cat << \_LT_EOF >> "$cfgfile" | |
19689 | ||
19690 | # func_dirname file append nondir_replacement | |
19691 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19692 | # otherwise set result to NONDIR_REPLACEMENT. | |
19693 | func_dirname () | |
19694 | { | |
19695 | # Extract subdirectory from the argument. | |
19696 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
19697 | if test "X$func_dirname_result" = "X${1}"; then | |
19698 | func_dirname_result="${3}" | |
19699 | else | |
19700 | func_dirname_result="$func_dirname_result${2}" | |
19701 | fi | |
19702 | } | |
19703 | ||
19704 | # func_basename file | |
19705 | func_basename () | |
19706 | { | |
19707 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
19708 | } | |
19709 | ||
19710 | ||
19711 | # func_stripname prefix suffix name | |
19712 | # strip PREFIX and SUFFIX off of NAME. | |
19713 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19714 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19715 | # dot (in which case that matches only a dot). | |
19716 | # func_strip_suffix prefix name | |
19717 | func_stripname () | |
19718 | { | |
19719 | case ${2} in | |
19720 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
19721 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
19722 | *) func_stripname_result=`$ECHO "X${3}" \ | |
19723 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
d9898ee8 | 19724 | esac |
8d138742 | 19725 | } |
d9898ee8 | 19726 | |
8d138742 CE |
19727 | # sed scripts: |
19728 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19729 | my_sed_long_arg='1s/^-[^=]*=//' | |
dd184caf | 19730 | |
8d138742 CE |
19731 | # func_opt_split |
19732 | func_opt_split () | |
19733 | { | |
19734 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
19735 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
19736 | } | |
d9898ee8 | 19737 | |
8d138742 CE |
19738 | # func_lo2o object |
19739 | func_lo2o () | |
d9898ee8 | 19740 | { |
8d138742 | 19741 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
d9898ee8 | 19742 | } |
d9898ee8 | 19743 | |
8d138742 CE |
19744 | # func_xform libobj-or-source |
19745 | func_xform () | |
d9898ee8 | 19746 | { |
8d138742 CE |
19747 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
19748 | } | |
19749 | ||
19750 | # func_arith arithmetic-term... | |
19751 | func_arith () | |
d9898ee8 | 19752 | { |
8d138742 CE |
19753 | func_arith_result=`expr "$@"` |
19754 | } | |
19755 | ||
19756 | # func_len string | |
19757 | # STRING may not start with a hyphen. | |
19758 | func_len () | |
d9898ee8 | 19759 | { |
8d138742 | 19760 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
d9898ee8 | 19761 | } |
19762 | ||
8d138742 CE |
19763 | _LT_EOF |
19764 | esac | |
d9898ee8 | 19765 | |
8d138742 CE |
19766 | case $lt_shell_append in |
19767 | yes) | |
19768 | cat << \_LT_EOF >> "$cfgfile" | |
d9898ee8 | 19769 | |
8d138742 CE |
19770 | # func_append var value |
19771 | # Append VALUE to the end of shell variable VAR. | |
19772 | func_append () | |
19773 | { | |
19774 | eval "$1+=\$2" | |
19775 | } | |
19776 | _LT_EOF | |
19777 | ;; | |
19778 | *) | |
19779 | cat << \_LT_EOF >> "$cfgfile" | |
d9898ee8 | 19780 | |
8d138742 CE |
19781 | # func_append var value |
19782 | # Append VALUE to the end of shell variable VAR. | |
19783 | func_append () | |
19784 | { | |
19785 | eval "$1=\$$1\$2" | |
19786 | } | |
dd184caf | 19787 | |
8d138742 CE |
19788 | _LT_EOF |
19789 | ;; | |
19790 | esac | |
dd184caf | 19791 | |
dd184caf | 19792 | |
8d138742 CE |
19793 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
19794 | || (rm -f "$cfgfile"; exit 1) | |
dd184caf | 19795 | |
8d138742 CE |
19796 | mv -f "$cfgfile" "$ofile" || |
19797 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19798 | chmod +x "$ofile" | |
dd184caf | 19799 | |
dd184caf | 19800 | |
8d138742 | 19801 | cat <<_LT_EOF >> "$ofile" |
dd184caf | 19802 | |
8d138742 | 19803 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
dd184caf | 19804 | |
8d138742 CE |
19805 | # The linker used to build libraries. |
19806 | LD=$lt_LD_CXX | |
dd184caf | 19807 | |
8d138742 CE |
19808 | # Commands used to build an old-style archive. |
19809 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
d9898ee8 | 19810 | |
8d138742 CE |
19811 | # A language specific compiler. |
19812 | CC=$lt_compiler_CXX | |
dd184caf | 19813 | |
8d138742 CE |
19814 | # Is the compiler the GNU compiler? |
19815 | with_gcc=$GCC_CXX | |
dd184caf | 19816 | |
8d138742 CE |
19817 | # Compiler flag to turn off builtin functions. |
19818 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
dd184caf | 19819 | |
8d138742 CE |
19820 | # How to pass a linker flag through the compiler. |
19821 | wl=$lt_lt_prog_compiler_wl_CXX | |
dd184caf | 19822 | |
8d138742 CE |
19823 | # Additional compiler flags for building library objects. |
19824 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
dd184caf | 19825 | |
8d138742 CE |
19826 | # Compiler flag to prevent dynamic linking. |
19827 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
dd184caf | 19828 | |
8d138742 CE |
19829 | # Does compiler simultaneously support -c and -o options? |
19830 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dd184caf | 19831 | |
8d138742 CE |
19832 | # Whether or not to add -lc for building shared libraries. |
19833 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dd184caf | 19834 | |
8d138742 CE |
19835 | # Whether or not to disallow shared libs when runtime libs are static. |
19836 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
d9898ee8 | 19837 | |
8d138742 CE |
19838 | # Compiler flag to allow reflexive dlopens. |
19839 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19840 | ||
19841 | # Compiler flag to generate shared objects directly from archives. | |
19842 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19843 | ||
19844 | # Whether the compiler copes with passing no objects directly. | |
19845 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19846 | ||
19847 | # Create an old-style archive from a shared archive. | |
19848 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19849 | ||
19850 | # Create a temporary old-style archive to link instead of a shared archive. | |
19851 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19852 | ||
19853 | # Commands used to build a shared archive. | |
19854 | archive_cmds=$lt_archive_cmds_CXX | |
19855 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19856 | ||
19857 | # Commands used to build a loadable module if different from building | |
19858 | # a shared archive. | |
19859 | module_cmds=$lt_module_cmds_CXX | |
19860 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19861 | ||
19862 | # Whether we are building with GNU ld or not. | |
19863 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19864 | ||
19865 | # Flag that allows shared libraries with undefined symbols to be built. | |
19866 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19867 | ||
19868 | # Flag that enforces no undefined symbols. | |
19869 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19870 | ||
19871 | # Flag to hardcode \$libdir into a binary during linking. | |
19872 | # This must work even if \$libdir does not exist | |
19873 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19874 | ||
19875 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19876 | # during linking. This must work even if \$libdir does not exist. | |
19877 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19878 | ||
19879 | # Whether we need a single "-rpath" flag with a separated argument. | |
19880 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19881 | ||
19882 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19883 | # DIR into the resulting binary. | |
19884 | hardcode_direct=$hardcode_direct_CXX | |
19885 | ||
19886 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19887 | # DIR into the resulting binary and the resulting library dependency is | |
19888 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19889 | # library is relocated. | |
19890 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19891 | ||
19892 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19893 | # into the resulting binary. | |
19894 | hardcode_minus_L=$hardcode_minus_L_CXX | |
d9898ee8 | 19895 | |
8d138742 CE |
19896 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
19897 | # into the resulting binary. | |
19898 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
d9898ee8 | 19899 | |
8d138742 CE |
19900 | # Set to "yes" if building a shared library automatically hardcodes DIR |
19901 | # into the library and all subsequent libraries and executables linked | |
19902 | # against it. | |
19903 | hardcode_automatic=$hardcode_automatic_CXX | |
d9898ee8 | 19904 | |
8d138742 CE |
19905 | # Set to yes if linker adds runtime paths of dependent libraries |
19906 | # to runtime path list. | |
19907 | inherit_rpath=$inherit_rpath_CXX | |
d9898ee8 | 19908 | |
8d138742 CE |
19909 | # Whether libtool must link a program against all its dependency libraries. |
19910 | link_all_deplibs=$link_all_deplibs_CXX | |
d9898ee8 | 19911 | |
8d138742 CE |
19912 | # Fix the shell variable \$srcfile for the compiler. |
19913 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
d9898ee8 | 19914 | |
8d138742 CE |
19915 | # Set to "yes" if exported symbols are required. |
19916 | always_export_symbols=$always_export_symbols_CXX | |
dd184caf | 19917 | |
8d138742 CE |
19918 | # The commands to list exported symbols. |
19919 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
dd184caf | 19920 | |
8d138742 CE |
19921 | # Symbols that should not be listed in the preloaded symbols. |
19922 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
dd184caf | 19923 | |
8d138742 CE |
19924 | # Symbols that must always be exported. |
19925 | include_expsyms=$lt_include_expsyms_CXX | |
dd184caf | 19926 | |
8d138742 CE |
19927 | # Commands necessary for linking programs (against libraries) with templates. |
19928 | prelink_cmds=$lt_prelink_cmds_CXX | |
d9898ee8 | 19929 | |
8d138742 CE |
19930 | # Specify filename containing input files. |
19931 | file_list_spec=$lt_file_list_spec_CXX | |
d9898ee8 | 19932 | |
8d138742 CE |
19933 | # How to hardcode a shared library path into an executable. |
19934 | hardcode_action=$hardcode_action_CXX | |
d9898ee8 | 19935 | |
8d138742 CE |
19936 | # The directories searched by this compiler when creating a shared library. |
19937 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
d9898ee8 | 19938 | |
8d138742 CE |
19939 | # Dependencies to place before and after the objects being linked to |
19940 | # create a shared library. | |
19941 | predep_objects=$lt_predep_objects_CXX | |
19942 | postdep_objects=$lt_postdep_objects_CXX | |
19943 | predeps=$lt_predeps_CXX | |
19944 | postdeps=$lt_postdeps_CXX | |
19945 | ||
19946 | # The library search path used internally by the compiler when linking | |
19947 | # a shared library. | |
19948 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19949 | ||
19950 | # ### END LIBTOOL TAG CONFIG: CXX | |
19951 | _LT_EOF | |
d9898ee8 | 19952 | |
d9898ee8 | 19953 | ;; |
dd184caf | 19954 | |
d9898ee8 | 19955 | esac |
dd184caf | 19956 | done # for ac_tag |
d9898ee8 | 19957 | |
d9898ee8 | 19958 | |
19959 | { (exit 0); exit 0; } | |
19960 | _ACEOF | |
19961 | chmod +x $CONFIG_STATUS | |
19962 | ac_clean_files=$ac_clean_files_save | |
19963 | ||
8d138742 CE |
19964 | test $ac_write_fail = 0 || |
19965 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19966 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19967 | { (exit 1); exit 1; }; } | |
19968 | ||
d9898ee8 | 19969 | |
19970 | # configure is writing to config.log, and then calls config.status. | |
19971 | # config.status does its own redirection, appending to config.log. | |
19972 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19973 | # by configure, so config.status won't be able to write to it; its | |
19974 | # output is simply discarded. So we exec the FD to /dev/null, | |
19975 | # effectively closing config.log, so it can be properly (re)opened and | |
19976 | # appended to by config.status. When coming back to configure, we | |
19977 | # need to make the FD available again. | |
19978 | if test "$no_create" != yes; then | |
19979 | ac_cs_success=: | |
19980 | ac_config_status_args= | |
19981 | test "$silent" = yes && | |
19982 | ac_config_status_args="$ac_config_status_args --quiet" | |
19983 | exec 5>/dev/null | |
19984 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19985 | exec 5>>config.log | |
19986 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19987 | # would make configure fail if this is the last instruction. | |
19988 | $ac_cs_success || { (exit 1); exit 1; } | |
19989 | fi | |
8d138742 CE |
19990 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19991 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19992 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19993 | fi | |
d9898ee8 | 19994 |