]>
Commit | Line | Data |
---|---|---|
db137867 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
030272f3 | 3 | # Generated by GNU Autoconf 2.63 for libratbox devel. |
db137867 | 4 | # |
030272f3 | 5 | # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 AC |
6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
030272f3 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
db137867 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
030272f3 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
030272f3 VY |
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' | |
db137867 | 56 | else |
030272f3 VY |
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' | |
db137867 | 69 | fi |
030272f3 VY |
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 | } | |
db137867 AC |
81 | fi |
82 | ||
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
91 | # IFS | |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
db137867 AC |
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 | |
030272f3 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
db137867 AC |
119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
122 | # Work around bugs in pre-3.0 UWIN ksh. | |
123 | for as_var in ENV MAIL MAILPATH | |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
030272f3 VY |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
db137867 AC |
135 | |
136 | # Required to use basename. | |
137 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
139 | as_expr=expr | |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
145 | as_basename=basename | |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
152 | as_me=`$as_basename -- "$0" || | |
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
154 | X"$0" : 'X\(//\)$' \| \ | |
155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 156 | $as_echo X/"$0" | |
db137867 AC |
157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
170 | ||
171 | # CDPATH. | |
172 | $as_unset CDPATH | |
173 | ||
174 | ||
175 | if test "x$CONFIG_SHELL" = x; then | |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
181 | ||
030272f3 | 182 | if test $as_have_required = yes && (eval ": |
db137867 AC |
183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
198 | ||
199 | exitcode=0 | |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
206 | ||
207 | if as_func_failure; then | |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
247 | case $as_dir in | |
248 | /*) | |
249 | for as_base in sh bash ksh sh5; do | |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
030272f3 | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
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=: | |
030272f3 | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
349 | as_lineno_1=$LINENO | |
350 | as_lineno_2=$LINENO | |
351 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
030272f3 VY |
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+"$@"} | |
db137867 AC |
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. | |
030272f3 VY |
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. | |
db137867 AC |
441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
449 | ||
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
452 | # line-number line after each line using $LINENO; the second 'sed' | |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
458 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
464 | sed ' | |
465 | s/[$]LINENO.*/&-/ | |
466 | t lineno | |
467 | b | |
468 | :lineno | |
469 | N | |
470 | :loop | |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
472 | t loop | |
473 | s/-\n.*// | |
474 | ' >$as_me.lineno && | |
475 | chmod +x "$as_me.lineno" || | |
030272f3 | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
db137867 AC |
477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
481 | # original and so on. Autoconf is especially sensitive to this). | |
482 | . "./$as_me.lineno" | |
483 | # Exit status is that of the last command. | |
484 | exit | |
485 | } | |
486 | ||
487 | ||
488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
503 | esac | |
db137867 AC |
504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
506 | as_expr=expr | |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
512 | if test -d conf$$.dir; then | |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
030272f3 VY |
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 | |
db137867 | 530 | as_ln_s='cp -p' |
030272f3 | 531 | fi |
db137867 AC |
532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
536 | rmdir conf$$.dir 2>/dev/null | |
537 | ||
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
545 | if test -x / >/dev/null 2>&1; then | |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
030272f3 | 556 | test -d "$1/."; |
db137867 AC |
557 | else |
558 | case $1 in | |
030272f3 | 559 | -*)set "./$1";; |
db137867 AC |
560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
567 | ||
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
575 | ||
576 | ||
577 | # Check that we are running under the correct shell. | |
578 | SHELL=${CONFIG_SHELL-/bin/sh} | |
579 | ||
580 | case X$ECHO in | |
581 | X*--fallback-echo) | |
582 | # Remove one level of quotation (which was required for Make). | |
583 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
584 | ;; | |
585 | esac | |
586 | ||
587 | echo=${ECHO-echo} | |
588 | if test "X$1" = X--no-reexec; then | |
589 | # Discard the --no-reexec flag, and continue. | |
590 | shift | |
591 | elif test "X$1" = X--fallback-echo; then | |
592 | # Avoid inline document here, it may be left over | |
593 | : | |
594 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
595 | # Yippee, $echo works! | |
596 | : | |
597 | else | |
598 | # Restart under the correct shell. | |
599 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
600 | fi | |
601 | ||
602 | if test "X$1" = X--fallback-echo; then | |
603 | # used as fallback echo | |
604 | shift | |
605 | cat <<EOF | |
606 | $* | |
607 | EOF | |
608 | exit 0 | |
609 | fi | |
610 | ||
611 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
612 | # if CDPATH is set. | |
613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
614 | ||
615 | if test -z "$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 | echo_test_string=`eval $cmd` && | |
622 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
623 | then | |
624 | break | |
625 | fi | |
626 | done | |
627 | fi | |
628 | ||
629 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
630 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
631 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
632 | : | |
633 | else | |
634 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
635 | # backslashes. This makes it impossible to quote backslashes using | |
636 | # echo "$something" | sed 's/\\/\\\\/g' | |
637 | # | |
638 | # So, first we look for a working echo in the user's PATH. | |
639 | ||
640 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
641 | for dir in $PATH /usr/ucb; do | |
642 | IFS="$lt_save_ifs" | |
643 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
644 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
645 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
646 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
647 | echo="$dir/echo" | |
648 | break | |
649 | fi | |
650 | done | |
651 | IFS="$lt_save_ifs" | |
652 | ||
653 | if test "X$echo" = Xecho; then | |
654 | # We didn't find a better echo, so look for alternatives. | |
655 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
656 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
658 | # This shell has a builtin print -r that does the trick. | |
659 | echo='print -r' | |
660 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
661 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
662 | # If we have ksh, try running configure again with it. | |
663 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
664 | export ORIGINAL_CONFIG_SHELL | |
665 | CONFIG_SHELL=/bin/ksh | |
666 | export CONFIG_SHELL | |
667 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
668 | else | |
669 | # Try using printf. | |
670 | echo='printf %s\n' | |
671 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
672 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
673 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
674 | # Cool, printf works | |
675 | : | |
676 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
677 | test "X$echo_testing_string" = 'X\t' && | |
678 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
679 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
680 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
681 | export CONFIG_SHELL | |
682 | SHELL="$CONFIG_SHELL" | |
683 | export SHELL | |
684 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
685 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
686 | test "X$echo_testing_string" = 'X\t' && | |
687 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
688 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
689 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
690 | else | |
691 | # maybe with a smaller string... | |
692 | prev=: | |
693 | ||
694 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
695 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
696 | then | |
697 | break | |
698 | fi | |
699 | prev="$cmd" | |
700 | done | |
701 | ||
702 | if test "$prev" != 'sed 50q "$0"'; then | |
703 | echo_test_string=`eval $prev` | |
704 | export echo_test_string | |
705 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
706 | else | |
707 | # Oops. We lost completely, so just stick with echo. | |
708 | echo=echo | |
709 | fi | |
710 | fi | |
711 | fi | |
712 | fi | |
713 | fi | |
714 | fi | |
715 | ||
716 | # Copy echo and quote the copy suitably for passing to libtool from | |
717 | # the Makefile, instead of quoting the original, which is used later. | |
718 | ECHO=$echo | |
719 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
720 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
721 | fi | |
722 | ||
723 | ||
724 | ||
725 | ||
726 | tagnames=${tagnames+${tagnames},}CXX | |
727 | ||
728 | tagnames=${tagnames+${tagnames},}F77 | |
729 | ||
730 | exec 7<&0 </dev/null 6>&1 | |
731 | ||
732 | # Name of the host. | |
733 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
734 | # so uname gets run too. | |
735 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
736 | ||
737 | # | |
738 | # Initializations. | |
739 | # | |
740 | ac_default_prefix=/usr/local | |
741 | ac_clean_files= | |
742 | ac_config_libobj_dir=. | |
743 | LIBOBJS= | |
744 | cross_compiling=no | |
745 | subdirs= | |
746 | MFLAGS= | |
747 | MAKEFLAGS= | |
748 | SHELL=${CONFIG_SHELL-/bin/sh} | |
749 | ||
750 | # Identity of this package. | |
751 | PACKAGE_NAME='libratbox' | |
752 | PACKAGE_TARNAME='libratbox' | |
753 | PACKAGE_VERSION='devel' | |
754 | PACKAGE_STRING='libratbox devel' | |
755 | PACKAGE_BUGREPORT='' | |
756 | ||
757 | ac_default_prefix=/usr/local/libratbox | |
758 | # Factoring default headers for most tests. | |
759 | ac_includes_default="\ | |
760 | #include <stdio.h> | |
761 | #ifdef HAVE_SYS_TYPES_H | |
762 | # include <sys/types.h> | |
763 | #endif | |
764 | #ifdef HAVE_SYS_STAT_H | |
765 | # include <sys/stat.h> | |
766 | #endif | |
767 | #ifdef STDC_HEADERS | |
768 | # include <stdlib.h> | |
769 | # include <stddef.h> | |
770 | #else | |
771 | # ifdef HAVE_STDLIB_H | |
772 | # include <stdlib.h> | |
773 | # endif | |
774 | #endif | |
775 | #ifdef HAVE_STRING_H | |
776 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
777 | # include <memory.h> | |
778 | # endif | |
779 | # include <string.h> | |
780 | #endif | |
781 | #ifdef HAVE_STRINGS_H | |
782 | # include <strings.h> | |
783 | #endif | |
784 | #ifdef HAVE_INTTYPES_H | |
785 | # include <inttypes.h> | |
786 | #endif | |
787 | #ifdef HAVE_STDINT_H | |
788 | # include <stdint.h> | |
789 | #endif | |
790 | #ifdef HAVE_UNISTD_H | |
791 | # include <unistd.h> | |
792 | #endif" | |
793 | ||
030272f3 VY |
794 | ac_subst_vars='LTLIBOBJS |
795 | LIBOBJS | |
796 | RB_PREFIX | |
797 | SSL_LIBS | |
798 | SSL_CFLAGS | |
799 | SEDOBJ | |
800 | PICFLAGS | |
801 | GNUTLS_LIBS | |
802 | GNUTLS_CFLAGS | |
803 | PKG_CONFIG | |
804 | ALLOCA | |
805 | CRYPT_LIB | |
806 | NEED_CRYPT_FALSE | |
807 | NEED_CRYPT_TRUE | |
808 | MINGW_FALSE | |
809 | MINGW_TRUE | |
810 | LIBTOOL | |
811 | ac_ct_F77 | |
812 | FFLAGS | |
813 | F77 | |
814 | CXXCPP | |
815 | am__fastdepCXX_FALSE | |
816 | am__fastdepCXX_TRUE | |
817 | CXXDEPMODE | |
818 | ac_ct_CXX | |
819 | CXXFLAGS | |
820 | CXX | |
821 | NMEDIT | |
822 | DSYMUTIL | |
823 | RANLIB | |
824 | AR | |
825 | ECHO | |
826 | LN_S | |
827 | host_os | |
828 | host_vendor | |
829 | host_cpu | |
830 | host | |
831 | build_os | |
832 | build_vendor | |
833 | build_cpu | |
834 | build | |
835 | TOUCH | |
836 | LN | |
837 | MV | |
838 | CP | |
839 | RM | |
840 | AS | |
841 | MAINT | |
842 | MAINTAINER_MODE_FALSE | |
843 | MAINTAINER_MODE_TRUE | |
844 | SED | |
845 | EGREP | |
846 | GREP | |
847 | CPP | |
848 | am__fastdepCC_FALSE | |
849 | am__fastdepCC_TRUE | |
850 | CCDEPMODE | |
851 | AMDEPBACKSLASH | |
852 | AMDEP_FALSE | |
853 | AMDEP_TRUE | |
854 | am__quote | |
855 | am__include | |
856 | DEPDIR | |
857 | OBJEXT | |
858 | EXEEXT | |
859 | ac_ct_CC | |
860 | CPPFLAGS | |
861 | LDFLAGS | |
862 | CFLAGS | |
863 | CC | |
864 | am__untar | |
865 | am__tar | |
866 | AMTAR | |
867 | am__leading_dot | |
868 | SET_MAKE | |
869 | AWK | |
870 | mkdir_p | |
871 | MKDIR_P | |
872 | INSTALL_STRIP_PROGRAM | |
873 | STRIP | |
874 | install_sh | |
875 | MAKEINFO | |
876 | AUTOHEADER | |
877 | AUTOMAKE | |
878 | AUTOCONF | |
879 | ACLOCAL | |
880 | VERSION | |
881 | PACKAGE | |
882 | CYGPATH_W | |
883 | am__isrc | |
884 | INSTALL_DATA | |
885 | INSTALL_SCRIPT | |
886 | INSTALL_PROGRAM | |
887 | target_alias | |
888 | host_alias | |
db137867 | 889 | build_alias |
030272f3 VY |
890 | LIBS |
891 | ECHO_T | |
892 | ECHO_N | |
893 | ECHO_C | |
894 | DEFS | |
895 | mandir | |
896 | localedir | |
897 | libdir | |
898 | psdir | |
899 | pdfdir | |
900 | dvidir | |
901 | htmldir | |
902 | infodir | |
903 | docdir | |
904 | oldincludedir | |
905 | includedir | |
906 | localstatedir | |
907 | sharedstatedir | |
908 | sysconfdir | |
909 | datadir | |
910 | datarootdir | |
911 | libexecdir | |
912 | sbindir | |
913 | bindir | |
914 | program_transform_name | |
915 | prefix | |
916 | exec_prefix | |
917 | PACKAGE_BUGREPORT | |
918 | PACKAGE_STRING | |
919 | PACKAGE_VERSION | |
920 | PACKAGE_TARNAME | |
921 | PACKAGE_NAME | |
922 | PATH_SEPARATOR | |
923 | SHELL' | |
924 | ac_subst_files='' | |
925 | ac_user_opts=' | |
926 | enable_option_checking | |
927 | enable_dependency_tracking | |
928 | enable_static | |
929 | enable_shared | |
930 | enable_maintainer_mode | |
931 | enable_fast_install | |
932 | with_gnu_ld | |
933 | enable_libtool_lock | |
934 | with_pic | |
935 | with_tags | |
936 | enable_ipv6 | |
937 | enable_openssl | |
938 | enable_gnutls | |
939 | enable_assert | |
940 | enable_profile | |
941 | enable_balloc | |
942 | enable_warnings | |
943 | ' | |
944 | ac_precious_vars='build_alias | |
db137867 AC |
945 | host_alias |
946 | target_alias | |
db137867 AC |
947 | CC |
948 | CFLAGS | |
949 | LDFLAGS | |
030272f3 | 950 | LIBS |
db137867 | 951 | CPPFLAGS |
db137867 AC |
952 | CPP |
953 | CXX | |
954 | CXXFLAGS | |
030272f3 | 955 | CCC |
db137867 AC |
956 | CXXCPP |
957 | F77 | |
709c1951 AC |
958 | FFLAGS |
959 | PKG_CONFIG | |
960 | GNUTLS_CFLAGS | |
961 | GNUTLS_LIBS' | |
3202e249 | 962 | |
db137867 AC |
963 | |
964 | # Initialize some variables set by options. | |
965 | ac_init_help= | |
966 | ac_init_version=false | |
030272f3 VY |
967 | ac_unrecognized_opts= |
968 | ac_unrecognized_sep= | |
db137867 AC |
969 | # The variables have the same names as the options, with |
970 | # dashes changed to underlines. | |
971 | cache_file=/dev/null | |
972 | exec_prefix=NONE | |
973 | no_create= | |
974 | no_recursion= | |
975 | prefix=NONE | |
976 | program_prefix=NONE | |
977 | program_suffix=NONE | |
978 | program_transform_name=s,x,x, | |
979 | silent= | |
980 | site= | |
981 | srcdir= | |
982 | verbose= | |
983 | x_includes=NONE | |
984 | x_libraries=NONE | |
985 | ||
986 | # Installation directory options. | |
987 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
988 | # and all the variables that are supposed to be based on exec_prefix | |
989 | # by default will actually change. | |
990 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
991 | # (The list follows the same order as the GNU Coding Standards.) | |
992 | bindir='${exec_prefix}/bin' | |
993 | sbindir='${exec_prefix}/sbin' | |
994 | libexecdir='${exec_prefix}/libexec' | |
995 | datarootdir='${prefix}/share' | |
996 | datadir='${datarootdir}' | |
997 | sysconfdir='${prefix}/etc' | |
998 | sharedstatedir='${prefix}/com' | |
999 | localstatedir='${prefix}/var' | |
1000 | includedir='${prefix}/include' | |
1001 | oldincludedir='/usr/include' | |
1002 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1003 | infodir='${datarootdir}/info' | |
1004 | htmldir='${docdir}' | |
1005 | dvidir='${docdir}' | |
1006 | pdfdir='${docdir}' | |
1007 | psdir='${docdir}' | |
1008 | libdir='${exec_prefix}/lib' | |
1009 | localedir='${datarootdir}/locale' | |
1010 | mandir='${datarootdir}/man' | |
1011 | ||
1012 | ac_prev= | |
1013 | ac_dashdash= | |
1014 | for ac_option | |
1015 | do | |
1016 | # If the previous option needs an argument, assign it. | |
1017 | if test -n "$ac_prev"; then | |
1018 | eval $ac_prev=\$ac_option | |
1019 | ac_prev= | |
1020 | continue | |
1021 | fi | |
1022 | ||
1023 | case $ac_option in | |
1024 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1025 | *) ac_optarg=yes ;; | |
1026 | esac | |
1027 | ||
1028 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1029 | ||
1030 | case $ac_dashdash$ac_option in | |
1031 | --) | |
1032 | ac_dashdash=yes ;; | |
1033 | ||
1034 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1035 | ac_prev=bindir ;; | |
1036 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1037 | bindir=$ac_optarg ;; | |
1038 | ||
1039 | -build | --build | --buil | --bui | --bu) | |
1040 | ac_prev=build_alias ;; | |
1041 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1042 | build_alias=$ac_optarg ;; | |
1043 | ||
1044 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1045 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1046 | ac_prev=cache_file ;; | |
1047 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1048 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1049 | cache_file=$ac_optarg ;; | |
1050 | ||
1051 | --config-cache | -C) | |
1052 | cache_file=config.cache ;; | |
1053 | ||
1054 | -datadir | --datadir | --datadi | --datad) | |
1055 | ac_prev=datadir ;; | |
1056 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1057 | datadir=$ac_optarg ;; | |
1058 | ||
1059 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1060 | | --dataroo | --dataro | --datar) | |
1061 | ac_prev=datarootdir ;; | |
1062 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1063 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1064 | datarootdir=$ac_optarg ;; | |
1065 | ||
1066 | -disable-* | --disable-*) | |
030272f3 | 1067 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
db137867 | 1068 | # Reject names that are not valid shell variable names. |
030272f3 VY |
1069 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1070 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
db137867 | 1071 | { (exit 1); exit 1; }; } |
030272f3 VY |
1072 | ac_useropt_orig=$ac_useropt |
1073 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1074 | case $ac_user_opts in | |
1075 | *" | |
1076 | "enable_$ac_useropt" | |
1077 | "*) ;; | |
1078 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1079 | ac_unrecognized_sep=', ';; | |
1080 | esac | |
1081 | eval enable_$ac_useropt=no ;; | |
db137867 AC |
1082 | |
1083 | -docdir | --docdir | --docdi | --doc | --do) | |
1084 | ac_prev=docdir ;; | |
1085 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1086 | docdir=$ac_optarg ;; | |
1087 | ||
1088 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1089 | ac_prev=dvidir ;; | |
1090 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1091 | dvidir=$ac_optarg ;; | |
1092 | ||
1093 | -enable-* | --enable-*) | |
030272f3 | 1094 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
db137867 | 1095 | # Reject names that are not valid shell variable names. |
030272f3 VY |
1096 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1097 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
db137867 | 1098 | { (exit 1); exit 1; }; } |
030272f3 VY |
1099 | ac_useropt_orig=$ac_useropt |
1100 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1101 | case $ac_user_opts in | |
1102 | *" | |
1103 | "enable_$ac_useropt" | |
1104 | "*) ;; | |
1105 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1106 | ac_unrecognized_sep=', ';; | |
1107 | esac | |
1108 | eval enable_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
1109 | |
1110 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1111 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1112 | | --exec | --exe | --ex) | |
1113 | ac_prev=exec_prefix ;; | |
1114 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1115 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1116 | | --exec=* | --exe=* | --ex=*) | |
1117 | exec_prefix=$ac_optarg ;; | |
1118 | ||
1119 | -gas | --gas | --ga | --g) | |
1120 | # Obsolete; use --with-gas. | |
1121 | with_gas=yes ;; | |
1122 | ||
1123 | -help | --help | --hel | --he | -h) | |
1124 | ac_init_help=long ;; | |
1125 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1126 | ac_init_help=recursive ;; | |
1127 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1128 | ac_init_help=short ;; | |
1129 | ||
1130 | -host | --host | --hos | --ho) | |
1131 | ac_prev=host_alias ;; | |
1132 | -host=* | --host=* | --hos=* | --ho=*) | |
1133 | host_alias=$ac_optarg ;; | |
1134 | ||
1135 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1136 | ac_prev=htmldir ;; | |
1137 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1138 | | --ht=*) | |
1139 | htmldir=$ac_optarg ;; | |
1140 | ||
1141 | -includedir | --includedir | --includedi | --included | --include \ | |
1142 | | --includ | --inclu | --incl | --inc) | |
1143 | ac_prev=includedir ;; | |
1144 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1145 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1146 | includedir=$ac_optarg ;; | |
1147 | ||
1148 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1149 | ac_prev=infodir ;; | |
1150 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1151 | infodir=$ac_optarg ;; | |
1152 | ||
1153 | -libdir | --libdir | --libdi | --libd) | |
1154 | ac_prev=libdir ;; | |
1155 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1156 | libdir=$ac_optarg ;; | |
1157 | ||
1158 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1159 | | --libexe | --libex | --libe) | |
1160 | ac_prev=libexecdir ;; | |
1161 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1162 | | --libexe=* | --libex=* | --libe=*) | |
1163 | libexecdir=$ac_optarg ;; | |
1164 | ||
1165 | -localedir | --localedir | --localedi | --localed | --locale) | |
1166 | ac_prev=localedir ;; | |
1167 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1168 | localedir=$ac_optarg ;; | |
1169 | ||
1170 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1171 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1172 | ac_prev=localstatedir ;; | |
1173 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1174 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1175 | localstatedir=$ac_optarg ;; | |
1176 | ||
1177 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1178 | ac_prev=mandir ;; | |
1179 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1180 | mandir=$ac_optarg ;; | |
1181 | ||
1182 | -nfp | --nfp | --nf) | |
1183 | # Obsolete; use --without-fp. | |
1184 | with_fp=no ;; | |
1185 | ||
1186 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1187 | | --no-cr | --no-c | -n) | |
1188 | no_create=yes ;; | |
1189 | ||
1190 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1191 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1192 | no_recursion=yes ;; | |
1193 | ||
1194 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1195 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1196 | | --oldin | --oldi | --old | --ol | --o) | |
1197 | ac_prev=oldincludedir ;; | |
1198 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1199 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1200 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1201 | oldincludedir=$ac_optarg ;; | |
1202 | ||
1203 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1204 | ac_prev=prefix ;; | |
1205 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1206 | prefix=$ac_optarg ;; | |
1207 | ||
1208 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1209 | | --program-pre | --program-pr | --program-p) | |
1210 | ac_prev=program_prefix ;; | |
1211 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1212 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1213 | program_prefix=$ac_optarg ;; | |
1214 | ||
1215 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1216 | | --program-suf | --program-su | --program-s) | |
1217 | ac_prev=program_suffix ;; | |
1218 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1219 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1220 | program_suffix=$ac_optarg ;; | |
1221 | ||
1222 | -program-transform-name | --program-transform-name \ | |
1223 | | --program-transform-nam | --program-transform-na \ | |
1224 | | --program-transform-n | --program-transform- \ | |
1225 | | --program-transform | --program-transfor \ | |
1226 | | --program-transfo | --program-transf \ | |
1227 | | --program-trans | --program-tran \ | |
1228 | | --progr-tra | --program-tr | --program-t) | |
1229 | ac_prev=program_transform_name ;; | |
1230 | -program-transform-name=* | --program-transform-name=* \ | |
1231 | | --program-transform-nam=* | --program-transform-na=* \ | |
1232 | | --program-transform-n=* | --program-transform-=* \ | |
1233 | | --program-transform=* | --program-transfor=* \ | |
1234 | | --program-transfo=* | --program-transf=* \ | |
1235 | | --program-trans=* | --program-tran=* \ | |
1236 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1237 | program_transform_name=$ac_optarg ;; | |
1238 | ||
1239 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1240 | ac_prev=pdfdir ;; | |
1241 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1242 | pdfdir=$ac_optarg ;; | |
1243 | ||
1244 | -psdir | --psdir | --psdi | --psd | --ps) | |
1245 | ac_prev=psdir ;; | |
1246 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1247 | psdir=$ac_optarg ;; | |
1248 | ||
1249 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1250 | | -silent | --silent | --silen | --sile | --sil) | |
1251 | silent=yes ;; | |
1252 | ||
1253 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1254 | ac_prev=sbindir ;; | |
1255 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1256 | | --sbi=* | --sb=*) | |
1257 | sbindir=$ac_optarg ;; | |
1258 | ||
1259 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1260 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1261 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1262 | | --sha | --sh) | |
1263 | ac_prev=sharedstatedir ;; | |
1264 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1265 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1266 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1267 | | --sha=* | --sh=*) | |
1268 | sharedstatedir=$ac_optarg ;; | |
1269 | ||
1270 | -site | --site | --sit) | |
1271 | ac_prev=site ;; | |
1272 | -site=* | --site=* | --sit=*) | |
1273 | site=$ac_optarg ;; | |
1274 | ||
1275 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1276 | ac_prev=srcdir ;; | |
1277 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1278 | srcdir=$ac_optarg ;; | |
1279 | ||
1280 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1281 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1282 | ac_prev=sysconfdir ;; | |
1283 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1284 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1285 | sysconfdir=$ac_optarg ;; | |
1286 | ||
1287 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1288 | ac_prev=target_alias ;; | |
1289 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1290 | target_alias=$ac_optarg ;; | |
1291 | ||
1292 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1293 | verbose=yes ;; | |
1294 | ||
1295 | -version | --version | --versio | --versi | --vers | -V) | |
1296 | ac_init_version=: ;; | |
1297 | ||
1298 | -with-* | --with-*) | |
030272f3 | 1299 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
db137867 | 1300 | # Reject names that are not valid shell variable names. |
030272f3 VY |
1301 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1302 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
db137867 | 1303 | { (exit 1); exit 1; }; } |
030272f3 VY |
1304 | ac_useropt_orig=$ac_useropt |
1305 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1306 | case $ac_user_opts in | |
1307 | *" | |
1308 | "with_$ac_useropt" | |
1309 | "*) ;; | |
1310 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1311 | ac_unrecognized_sep=', ';; | |
1312 | esac | |
1313 | eval with_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
1314 | |
1315 | -without-* | --without-*) | |
030272f3 | 1316 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
db137867 | 1317 | # Reject names that are not valid shell variable names. |
030272f3 VY |
1318 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1319 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
db137867 | 1320 | { (exit 1); exit 1; }; } |
030272f3 VY |
1321 | ac_useropt_orig=$ac_useropt |
1322 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1323 | case $ac_user_opts in | |
1324 | *" | |
1325 | "with_$ac_useropt" | |
1326 | "*) ;; | |
1327 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1328 | ac_unrecognized_sep=', ';; | |
1329 | esac | |
1330 | eval with_$ac_useropt=no ;; | |
db137867 AC |
1331 | |
1332 | --x) | |
1333 | # Obsolete; use --with-x. | |
1334 | with_x=yes ;; | |
1335 | ||
1336 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1337 | | --x-incl | --x-inc | --x-in | --x-i) | |
1338 | ac_prev=x_includes ;; | |
1339 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1340 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1341 | x_includes=$ac_optarg ;; | |
1342 | ||
1343 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1344 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1345 | ac_prev=x_libraries ;; | |
1346 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1347 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1348 | x_libraries=$ac_optarg ;; | |
1349 | ||
030272f3 | 1350 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
db137867 AC |
1351 | Try \`$0 --help' for more information." >&2 |
1352 | { (exit 1); exit 1; }; } | |
1353 | ;; | |
1354 | ||
1355 | *=*) | |
1356 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1357 | # Reject names that are not valid shell variable names. | |
1358 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
030272f3 | 1359 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
db137867 AC |
1360 | { (exit 1); exit 1; }; } |
1361 | eval $ac_envvar=\$ac_optarg | |
1362 | export $ac_envvar ;; | |
1363 | ||
1364 | *) | |
1365 | # FIXME: should be removed in autoconf 3.0. | |
030272f3 | 1366 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
db137867 | 1367 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
030272f3 | 1368 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
db137867 AC |
1369 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1370 | ;; | |
1371 | ||
1372 | esac | |
1373 | done | |
1374 | ||
1375 | if test -n "$ac_prev"; then | |
1376 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
030272f3 | 1377 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
db137867 AC |
1378 | { (exit 1); exit 1; }; } |
1379 | fi | |
1380 | ||
030272f3 VY |
1381 | if test -n "$ac_unrecognized_opts"; then |
1382 | case $enable_option_checking in | |
1383 | no) ;; | |
1384 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1385 | { (exit 1); exit 1; }; } ;; | |
1386 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1387 | esac | |
1388 | fi | |
1389 | ||
1390 | # Check all directory arguments for consistency. | |
db137867 AC |
1391 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1392 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1393 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1394 | libdir localedir mandir | |
1395 | do | |
1396 | eval ac_val=\$$ac_var | |
030272f3 VY |
1397 | # Remove trailing slashes. |
1398 | case $ac_val in | |
1399 | */ ) | |
1400 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1401 | eval $ac_var=\$ac_val;; | |
1402 | esac | |
1403 | # Be sure to have absolute directory names. | |
db137867 AC |
1404 | case $ac_val in |
1405 | [\\/$]* | ?:[\\/]* ) continue;; | |
1406 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1407 | esac | |
030272f3 | 1408 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
db137867 AC |
1409 | { (exit 1); exit 1; }; } |
1410 | done | |
1411 | ||
1412 | # There might be people who depend on the old broken behavior: `$host' | |
1413 | # used to hold the argument of --host etc. | |
1414 | # FIXME: To remove some day. | |
1415 | build=$build_alias | |
1416 | host=$host_alias | |
1417 | target=$target_alias | |
1418 | ||
1419 | # FIXME: To remove some day. | |
1420 | if test "x$host_alias" != x; then | |
1421 | if test "x$build_alias" = x; then | |
1422 | cross_compiling=maybe | |
030272f3 | 1423 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
db137867 AC |
1424 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1425 | elif test "x$build_alias" != "x$host_alias"; then | |
1426 | cross_compiling=yes | |
1427 | fi | |
1428 | fi | |
1429 | ||
1430 | ac_tool_prefix= | |
1431 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1432 | ||
1433 | test "$silent" = yes && exec 6>/dev/null | |
1434 | ||
1435 | ||
1436 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1437 | ac_ls_di=`ls -di .` && | |
1438 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
030272f3 | 1439 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
db137867 AC |
1440 | { (exit 1); exit 1; }; } |
1441 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
030272f3 | 1442 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
db137867 AC |
1443 | { (exit 1); exit 1; }; } |
1444 | ||
1445 | ||
1446 | # Find the source files, if location was not specified. | |
1447 | if test -z "$srcdir"; then | |
1448 | ac_srcdir_defaulted=yes | |
1449 | # Try the directory containing this script, then the parent directory. | |
030272f3 VY |
1450 | ac_confdir=`$as_dirname -- "$as_myself" || |
1451 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1452 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1453 | X"$as_myself" : 'X\(//\)$' \| \ | |
1454 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1455 | $as_echo X"$as_myself" | | |
db137867 AC |
1456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1457 | s//\1/ | |
1458 | q | |
1459 | } | |
1460 | /^X\(\/\/\)[^/].*/{ | |
1461 | s//\1/ | |
1462 | q | |
1463 | } | |
1464 | /^X\(\/\/\)$/{ | |
1465 | s//\1/ | |
1466 | q | |
1467 | } | |
1468 | /^X\(\/\).*/{ | |
1469 | s//\1/ | |
1470 | q | |
1471 | } | |
1472 | s/.*/./; q'` | |
1473 | srcdir=$ac_confdir | |
1474 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1475 | srcdir=.. | |
1476 | fi | |
1477 | else | |
1478 | ac_srcdir_defaulted=no | |
1479 | fi | |
1480 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1481 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
030272f3 | 1482 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
db137867 AC |
1483 | { (exit 1); exit 1; }; } |
1484 | fi | |
1485 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1486 | ac_abs_confdir=`( | |
030272f3 | 1487 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
db137867 AC |
1488 | { (exit 1); exit 1; }; } |
1489 | pwd)` | |
1490 | # When building in place, set srcdir=. | |
1491 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1492 | srcdir=. | |
1493 | fi | |
1494 | # Remove unnecessary trailing slashes from srcdir. | |
1495 | # Double slashes in file names in object file debugging info | |
1496 | # mess up M-x gdb in Emacs. | |
1497 | case $srcdir in | |
1498 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1499 | esac | |
1500 | for ac_var in $ac_precious_vars; do | |
1501 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1502 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1503 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1504 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1505 | done | |
1506 | ||
1507 | # | |
1508 | # Report the --help message. | |
1509 | # | |
1510 | if test "$ac_init_help" = "long"; then | |
1511 | # Omit some internal or obsolete options to make the list less imposing. | |
1512 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1513 | cat <<_ACEOF | |
1514 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1515 | ||
1516 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1517 | ||
1518 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1519 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1520 | ||
1521 | Defaults for the options are specified in brackets. | |
1522 | ||
1523 | Configuration: | |
1524 | -h, --help display this help and exit | |
1525 | --help=short display options specific to this package | |
1526 | --help=recursive display the short help of all the included packages | |
1527 | -V, --version display version information and exit | |
1528 | -q, --quiet, --silent do not print \`checking...' messages | |
1529 | --cache-file=FILE cache test results in FILE [disabled] | |
1530 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1531 | -n, --no-create do not create output files | |
1532 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1533 | ||
1534 | Installation directories: | |
1535 | --prefix=PREFIX install architecture-independent files in PREFIX | |
030272f3 | 1536 | [$ac_default_prefix] |
db137867 | 1537 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
030272f3 | 1538 | [PREFIX] |
db137867 AC |
1539 | |
1540 | By default, \`make install' will install all the files in | |
1541 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1542 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1543 | for instance \`--prefix=\$HOME'. | |
1544 | ||
1545 | For better control, use the options below. | |
1546 | ||
1547 | Fine tuning of the installation directories: | |
030272f3 VY |
1548 | --bindir=DIR user executables [EPREFIX/bin] |
1549 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1550 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1551 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1552 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1553 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1554 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1555 | --includedir=DIR C header files [PREFIX/include] | |
1556 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1557 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1558 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1559 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1560 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1561 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1562 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1563 | --htmldir=DIR html documentation [DOCDIR] | |
1564 | --dvidir=DIR dvi documentation [DOCDIR] | |
1565 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1566 | --psdir=DIR ps documentation [DOCDIR] | |
db137867 AC |
1567 | _ACEOF |
1568 | ||
1569 | cat <<\_ACEOF | |
1570 | ||
1571 | Program names: | |
1572 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1573 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1574 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1575 | ||
1576 | System types: | |
1577 | --build=BUILD configure for building on BUILD [guessed] | |
1578 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1579 | _ACEOF | |
1580 | fi | |
1581 | ||
1582 | if test -n "$ac_init_help"; then | |
1583 | case $ac_init_help in | |
1584 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1585 | esac | |
1586 | cat <<\_ACEOF | |
1587 | ||
1588 | Optional Features: | |
030272f3 | 1589 | --disable-option-checking ignore unrecognized --enable/--with options |
db137867 AC |
1590 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1591 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1592 | --disable-dependency-tracking speeds up one-time build | |
1593 | --enable-dependency-tracking do not reject slow dependency extractors | |
1594 | --enable-static[=PKGS] build static libraries [default=no] | |
1595 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1596 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1597 | (and sometimes confusing) to the casual installer | |
1598 | --enable-fast-install[=PKGS] | |
1599 | optimize for fast installation [default=yes] | |
1600 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1601 | --disable-ipv6 Disable IPv6 support | |
1602 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1603 | --disable-openssl Disable OpenSSL support. | |
c2ac22cc VY |
1604 | --enable-gnutls Enable GnuTLS support. |
1605 | --disable-gnutls Disable GnuTLS support. | |
db137867 AC |
1606 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1607 | hard(aborts the daemon) | |
1608 | --enable-profile Enable profiling | |
1609 | --disable-balloc Disable the block allocator. | |
1610 | --enable-warnings Enable all sorts of warnings for debugging. | |
1611 | ||
1612 | Optional Packages: | |
1613 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1614 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1615 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1616 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1617 | both] | |
1618 | --with-tags[=TAGS] include additional configurations [automatic] | |
1619 | ||
1620 | Some influential environment variables: | |
1621 | CC C compiler command | |
1622 | CFLAGS C compiler flags | |
1623 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1624 | nonstandard directory <lib dir> | |
1625 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1626 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1627 | you have headers in a nonstandard directory <include dir> | |
1628 | CPP C preprocessor | |
1629 | CXX C++ compiler command | |
1630 | CXXFLAGS C++ compiler flags | |
1631 | CXXCPP C++ preprocessor | |
1632 | F77 Fortran 77 compiler command | |
1633 | FFLAGS Fortran 77 compiler flags | |
709c1951 AC |
1634 | PKG_CONFIG path to pkg-config utility |
1635 | GNUTLS_CFLAGS | |
1636 | C compiler flags for GNUTLS, overriding pkg-config | |
1637 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
db137867 AC |
1638 | |
1639 | Use these variables to override the choices made by `configure' or to help | |
1640 | it to find libraries and programs with nonstandard names/locations. | |
1641 | ||
1642 | _ACEOF | |
1643 | ac_status=$? | |
1644 | fi | |
1645 | ||
1646 | if test "$ac_init_help" = "recursive"; then | |
1647 | # If there are subdirs, report their specific --help. | |
1648 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
030272f3 VY |
1649 | test -d "$ac_dir" || |
1650 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1651 | continue | |
db137867 AC |
1652 | ac_builddir=. |
1653 | ||
1654 | case "$ac_dir" in | |
1655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1656 | *) | |
030272f3 | 1657 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
db137867 | 1658 | # A ".." for each directory in $ac_dir_suffix. |
030272f3 | 1659 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
db137867 AC |
1660 | case $ac_top_builddir_sub in |
1661 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1662 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1663 | esac ;; | |
1664 | esac | |
1665 | ac_abs_top_builddir=$ac_pwd | |
1666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1667 | # for backward compatibility: | |
1668 | ac_top_builddir=$ac_top_build_prefix | |
1669 | ||
1670 | case $srcdir in | |
1671 | .) # We are building in place. | |
1672 | ac_srcdir=. | |
1673 | ac_top_srcdir=$ac_top_builddir_sub | |
1674 | ac_abs_top_srcdir=$ac_pwd ;; | |
1675 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1676 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1677 | ac_top_srcdir=$srcdir | |
1678 | ac_abs_top_srcdir=$srcdir ;; | |
1679 | *) # Relative name. | |
1680 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1681 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1682 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1683 | esac | |
1684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1685 | ||
1686 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1687 | # Check for guested configure. | |
1688 | if test -f "$ac_srcdir/configure.gnu"; then | |
1689 | echo && | |
1690 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1691 | elif test -f "$ac_srcdir/configure"; then | |
1692 | echo && | |
1693 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1694 | else | |
030272f3 | 1695 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
db137867 AC |
1696 | fi || ac_status=$? |
1697 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1698 | done | |
1699 | fi | |
1700 | ||
1701 | test -n "$ac_init_help" && exit $ac_status | |
1702 | if $ac_init_version; then | |
1703 | cat <<\_ACEOF | |
1704 | libratbox configure devel | |
030272f3 | 1705 | generated by GNU Autoconf 2.63 |
db137867 AC |
1706 | |
1707 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
030272f3 | 1708 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
db137867 AC |
1709 | This configure script is free software; the Free Software Foundation |
1710 | gives unlimited permission to copy, distribute and modify it. | |
1711 | ||
030272f3 | 1712 | $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 AC |
1713 | _ACEOF |
1714 | exit | |
1715 | fi | |
1716 | cat >config.log <<_ACEOF | |
1717 | This file contains any messages produced by compilers while | |
1718 | running configure, to aid debugging if configure makes a mistake. | |
1719 | ||
1720 | It was created by libratbox $as_me devel, which was | |
030272f3 | 1721 | generated by GNU Autoconf 2.63. Invocation command line was |
db137867 AC |
1722 | |
1723 | $ $0 $@ | |
1724 | ||
1725 | _ACEOF | |
1726 | exec 5>>config.log | |
1727 | { | |
1728 | cat <<_ASUNAME | |
1729 | ## --------- ## | |
1730 | ## Platform. ## | |
1731 | ## --------- ## | |
1732 | ||
1733 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1734 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1735 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1736 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1737 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1738 | ||
1739 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1740 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1741 | ||
1742 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1743 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1744 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1745 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1746 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1747 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1748 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1749 | ||
1750 | _ASUNAME | |
1751 | ||
1752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1753 | for as_dir in $PATH | |
1754 | do | |
1755 | IFS=$as_save_IFS | |
1756 | test -z "$as_dir" && as_dir=. | |
030272f3 | 1757 | $as_echo "PATH: $as_dir" |
db137867 AC |
1758 | done |
1759 | IFS=$as_save_IFS | |
1760 | ||
1761 | } >&5 | |
1762 | ||
1763 | cat >&5 <<_ACEOF | |
1764 | ||
1765 | ||
1766 | ## ----------- ## | |
1767 | ## Core tests. ## | |
1768 | ## ----------- ## | |
1769 | ||
1770 | _ACEOF | |
1771 | ||
1772 | ||
1773 | # Keep a trace of the command line. | |
1774 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1775 | # Strip out --silent because we don't want to record it for future runs. | |
1776 | # Also quote any args containing shell meta-characters. | |
1777 | # Make two passes to allow for proper duplicate-argument suppression. | |
1778 | ac_configure_args= | |
1779 | ac_configure_args0= | |
1780 | ac_configure_args1= | |
1781 | ac_must_keep_next=false | |
1782 | for ac_pass in 1 2 | |
1783 | do | |
1784 | for ac_arg | |
1785 | do | |
1786 | case $ac_arg in | |
1787 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1788 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1789 | | -silent | --silent | --silen | --sile | --sil) | |
1790 | continue ;; | |
1791 | *\'*) | |
030272f3 | 1792 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
1793 | esac |
1794 | case $ac_pass in | |
1795 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1796 | 2) | |
1797 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1798 | if test $ac_must_keep_next = true; then | |
1799 | ac_must_keep_next=false # Got value, back to normal. | |
1800 | else | |
1801 | case $ac_arg in | |
1802 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1803 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1804 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1805 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1806 | case "$ac_configure_args0 " in | |
1807 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1808 | esac | |
1809 | ;; | |
1810 | -* ) ac_must_keep_next=true ;; | |
1811 | esac | |
1812 | fi | |
1813 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1814 | ;; | |
1815 | esac | |
1816 | done | |
1817 | done | |
1818 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1819 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1820 | ||
1821 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1822 | # config.log. We remove comments because anyway the quotes in there | |
1823 | # would cause problems or look ugly. | |
1824 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1825 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1826 | trap 'exit_status=$? | |
1827 | # Save into config.log some information that might help in debugging. | |
1828 | { | |
1829 | echo | |
1830 | ||
1831 | cat <<\_ASBOX | |
1832 | ## ---------------- ## | |
1833 | ## Cache variables. ## | |
1834 | ## ---------------- ## | |
1835 | _ASBOX | |
1836 | echo | |
1837 | # The following way of writing the cache mishandles newlines in values, | |
1838 | ( | |
1839 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1840 | eval ac_val=\$$ac_var | |
1841 | case $ac_val in #( | |
1842 | *${as_nl}*) | |
1843 | case $ac_var in #( | |
030272f3 VY |
1844 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1845 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
db137867 AC |
1846 | esac |
1847 | case $ac_var in #( | |
1848 | _ | IFS | as_nl) ;; #( | |
030272f3 | 1849 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
db137867 AC |
1850 | *) $as_unset $ac_var ;; |
1851 | esac ;; | |
1852 | esac | |
1853 | done | |
1854 | (set) 2>&1 | | |
1855 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1856 | *${as_nl}ac_space=\ *) | |
1857 | sed -n \ | |
1858 | "s/'\''/'\''\\\\'\'''\''/g; | |
1859 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1860 | ;; #( | |
1861 | *) | |
1862 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1863 | ;; | |
1864 | esac | | |
1865 | sort | |
1866 | ) | |
1867 | echo | |
1868 | ||
1869 | cat <<\_ASBOX | |
1870 | ## ----------------- ## | |
1871 | ## Output variables. ## | |
1872 | ## ----------------- ## | |
1873 | _ASBOX | |
1874 | echo | |
1875 | for ac_var in $ac_subst_vars | |
1876 | do | |
1877 | eval ac_val=\$$ac_var | |
1878 | case $ac_val in | |
030272f3 | 1879 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 1880 | esac |
030272f3 | 1881 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
1882 | done | sort |
1883 | echo | |
1884 | ||
1885 | if test -n "$ac_subst_files"; then | |
1886 | cat <<\_ASBOX | |
1887 | ## ------------------- ## | |
1888 | ## File substitutions. ## | |
1889 | ## ------------------- ## | |
1890 | _ASBOX | |
1891 | echo | |
1892 | for ac_var in $ac_subst_files | |
1893 | do | |
1894 | eval ac_val=\$$ac_var | |
1895 | case $ac_val in | |
030272f3 | 1896 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 1897 | esac |
030272f3 | 1898 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
1899 | done | sort |
1900 | echo | |
1901 | fi | |
1902 | ||
1903 | if test -s confdefs.h; then | |
1904 | cat <<\_ASBOX | |
1905 | ## ----------- ## | |
1906 | ## confdefs.h. ## | |
1907 | ## ----------- ## | |
1908 | _ASBOX | |
1909 | echo | |
1910 | cat confdefs.h | |
1911 | echo | |
1912 | fi | |
1913 | test "$ac_signal" != 0 && | |
030272f3 VY |
1914 | $as_echo "$as_me: caught signal $ac_signal" |
1915 | $as_echo "$as_me: exit $exit_status" | |
db137867 AC |
1916 | } >&5 |
1917 | rm -f core *.core core.conftest.* && | |
1918 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1919 | exit $exit_status | |
1920 | ' 0 | |
1921 | for ac_signal in 1 2 13 15; do | |
1922 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1923 | done | |
1924 | ac_signal=0 | |
1925 | ||
1926 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1927 | rm -f -r conftest* confdefs.h | |
1928 | ||
1929 | # Predefined preprocessor variables. | |
1930 | ||
1931 | cat >>confdefs.h <<_ACEOF | |
1932 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1933 | _ACEOF | |
1934 | ||
1935 | ||
1936 | cat >>confdefs.h <<_ACEOF | |
1937 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1938 | _ACEOF | |
1939 | ||
1940 | ||
1941 | cat >>confdefs.h <<_ACEOF | |
1942 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1943 | _ACEOF | |
1944 | ||
1945 | ||
1946 | cat >>confdefs.h <<_ACEOF | |
1947 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1948 | _ACEOF | |
1949 | ||
1950 | ||
1951 | cat >>confdefs.h <<_ACEOF | |
1952 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1953 | _ACEOF | |
1954 | ||
1955 | ||
1956 | # Let the site file select an alternate cache file if it wants to. | |
030272f3 VY |
1957 | # Prefer an explicitly selected file to automatically selected ones. |
1958 | ac_site_file1=NONE | |
1959 | ac_site_file2=NONE | |
db137867 | 1960 | if test -n "$CONFIG_SITE"; then |
030272f3 | 1961 | ac_site_file1=$CONFIG_SITE |
db137867 | 1962 | elif test "x$prefix" != xNONE; then |
030272f3 VY |
1963 | ac_site_file1=$prefix/share/config.site |
1964 | ac_site_file2=$prefix/etc/config.site | |
db137867 | 1965 | else |
030272f3 VY |
1966 | ac_site_file1=$ac_default_prefix/share/config.site |
1967 | ac_site_file2=$ac_default_prefix/etc/config.site | |
db137867 | 1968 | fi |
030272f3 | 1969 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
db137867 | 1970 | do |
030272f3 | 1971 | test "x$ac_site_file" = xNONE && continue |
db137867 | 1972 | if test -r "$ac_site_file"; then |
030272f3 VY |
1973 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1974 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
db137867 AC |
1975 | sed 's/^/| /' "$ac_site_file" >&5 |
1976 | . "$ac_site_file" | |
1977 | fi | |
1978 | done | |
1979 | ||
1980 | if test -r "$cache_file"; then | |
1981 | # Some versions of bash will fail to source /dev/null (special | |
1982 | # files actually), so we avoid doing that. | |
1983 | if test -f "$cache_file"; then | |
030272f3 VY |
1984 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1985 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
db137867 AC |
1986 | case $cache_file in |
1987 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1988 | *) . "./$cache_file";; | |
1989 | esac | |
1990 | fi | |
1991 | else | |
030272f3 VY |
1992 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1993 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
db137867 AC |
1994 | >$cache_file |
1995 | fi | |
1996 | ||
1997 | # Check that the precious variables saved in the cache have kept the same | |
1998 | # value. | |
1999 | ac_cache_corrupted=false | |
2000 | for ac_var in $ac_precious_vars; do | |
2001 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2002 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2003 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2004 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2005 | case $ac_old_set,$ac_new_set in | |
2006 | set,) | |
030272f3 VY |
2007 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2008 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
db137867 AC |
2009 | ac_cache_corrupted=: ;; |
2010 | ,set) | |
030272f3 VY |
2011 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2012 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
db137867 AC |
2013 | ac_cache_corrupted=: ;; |
2014 | ,);; | |
2015 | *) | |
2016 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
030272f3 VY |
2017 | # differences in whitespace do not lead to failure. |
2018 | ac_old_val_w=`echo x $ac_old_val` | |
2019 | ac_new_val_w=`echo x $ac_new_val` | |
2020 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2021 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2022 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2023 | ac_cache_corrupted=: | |
2024 | else | |
2025 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2026 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2027 | eval $ac_var=\$ac_old_val | |
2028 | fi | |
2029 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2030 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2031 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2032 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
db137867 AC |
2033 | fi;; |
2034 | esac | |
2035 | # Pass precious variables to config.status. | |
2036 | if test "$ac_new_set" = set; then | |
2037 | case $ac_new_val in | |
030272f3 | 2038 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2039 | *) ac_arg=$ac_var=$ac_new_val ;; |
2040 | esac | |
2041 | case " $ac_configure_args " in | |
2042 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2043 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2044 | esac | |
2045 | fi | |
2046 | done | |
2047 | if $ac_cache_corrupted; then | |
030272f3 VY |
2048 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2050 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2051 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2052 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2053 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
db137867 AC |
2054 | { (exit 1); exit 1; }; } |
2055 | fi | |
2056 | ||
2057 | ||
2058 | ||
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ac_ext=c | |
2082 | ac_cpp='$CPP $CPPFLAGS' | |
2083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2086 | ||
2087 | ||
2088 | am__api_version='1.10' | |
2089 | ||
2090 | ac_aux_dir= | |
2091 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2092 | if test -f "$ac_dir/install-sh"; then | |
2093 | ac_aux_dir=$ac_dir | |
2094 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2095 | break | |
2096 | elif test -f "$ac_dir/install.sh"; then | |
2097 | ac_aux_dir=$ac_dir | |
2098 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2099 | break | |
2100 | elif test -f "$ac_dir/shtool"; then | |
2101 | ac_aux_dir=$ac_dir | |
2102 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2103 | break | |
2104 | fi | |
2105 | done | |
2106 | if test -z "$ac_aux_dir"; then | |
030272f3 VY |
2107 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2108 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
db137867 AC |
2109 | { (exit 1); exit 1; }; } |
2110 | fi | |
2111 | ||
2112 | # These three variables are undocumented and unsupported, | |
2113 | # and are intended to be withdrawn in a future Autoconf release. | |
2114 | # They can cause serious problems if a builder's source tree is in a directory | |
2115 | # whose full name contains unusual characters. | |
2116 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2117 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2118 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2119 | ||
2120 | ||
2121 | # Find a good install program. We prefer a C program (faster), | |
2122 | # so one script is as good as another. But avoid the broken or | |
2123 | # incompatible versions: | |
2124 | # SysV /etc/install, /usr/sbin/install | |
2125 | # SunOS /usr/etc/install | |
2126 | # IRIX /sbin/install | |
2127 | # AIX /bin/install | |
2128 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2129 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2130 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2131 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2132 | # OS/2's system install, which has a completely different semantic | |
2133 | # ./install, which can be erroneously created by make from ./install.sh. | |
030272f3 VY |
2134 | # Reject install programs that cannot install multiple files. |
2135 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2136 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
db137867 AC |
2137 | if test -z "$INSTALL"; then |
2138 | if test "${ac_cv_path_install+set}" = set; then | |
030272f3 | 2139 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2140 | else |
2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2142 | for as_dir in $PATH | |
2143 | do | |
2144 | IFS=$as_save_IFS | |
2145 | test -z "$as_dir" && as_dir=. | |
2146 | # Account for people who put trailing slashes in PATH elements. | |
2147 | case $as_dir/ in | |
2148 | ./ | .// | /cC/* | \ | |
2149 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2150 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2151 | /usr/ucb/* ) ;; | |
2152 | *) | |
2153 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2154 | # Don't use installbsd from OSF since it installs stuff as root | |
2155 | # by default. | |
2156 | for ac_prog in ginstall scoinst install; do | |
2157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2158 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2159 | if test $ac_prog = install && | |
2160 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2161 | # AIX install. It has an incompatible calling convention. | |
2162 | : | |
2163 | elif test $ac_prog = install && | |
2164 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2165 | # program-specific install script used by HP pwplus--don't use. | |
2166 | : | |
2167 | else | |
030272f3 VY |
2168 | rm -rf conftest.one conftest.two conftest.dir |
2169 | echo one > conftest.one | |
2170 | echo two > conftest.two | |
2171 | mkdir conftest.dir | |
2172 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2173 | test -s conftest.one && test -s conftest.two && | |
2174 | test -s conftest.dir/conftest.one && | |
2175 | test -s conftest.dir/conftest.two | |
2176 | then | |
2177 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2178 | break 3 | |
2179 | fi | |
db137867 AC |
2180 | fi |
2181 | fi | |
2182 | done | |
2183 | done | |
2184 | ;; | |
2185 | esac | |
030272f3 | 2186 | |
db137867 AC |
2187 | done |
2188 | IFS=$as_save_IFS | |
2189 | ||
030272f3 | 2190 | rm -rf conftest.one conftest.two conftest.dir |
db137867 AC |
2191 | |
2192 | fi | |
2193 | if test "${ac_cv_path_install+set}" = set; then | |
2194 | INSTALL=$ac_cv_path_install | |
2195 | else | |
2196 | # As a last resort, use the slow shell script. Don't cache a | |
2197 | # value for INSTALL within a source directory, because that will | |
2198 | # break other packages using the cache if that directory is | |
2199 | # removed, or if the value is a relative name. | |
2200 | INSTALL=$ac_install_sh | |
2201 | fi | |
2202 | fi | |
030272f3 VY |
2203 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2204 | $as_echo "$INSTALL" >&6; } | |
db137867 AC |
2205 | |
2206 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2207 | # It thinks the first close brace ends the variable substitution. | |
2208 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2209 | ||
2210 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2211 | ||
2212 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2213 | ||
030272f3 VY |
2214 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2215 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
db137867 AC |
2216 | # Just in case |
2217 | sleep 1 | |
2218 | echo timestamp > conftest.file | |
2219 | # Do `set' in a subshell so we don't clobber the current shell's | |
2220 | # arguments. Must try -L first in case configure is actually a | |
2221 | # symlink; some systems play weird games with the mod time of symlinks | |
2222 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2223 | # directory). | |
2224 | if ( | |
2225 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2226 | if test "$*" = "X"; then | |
2227 | # -L didn't work. | |
2228 | set X `ls -t $srcdir/configure conftest.file` | |
2229 | fi | |
2230 | rm -f conftest.file | |
2231 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2232 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2233 | ||
2234 | # If neither matched, then we have a broken ls. This can happen | |
2235 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2236 | # broken ls alias from the environment. This has actually | |
2237 | # happened. Such a system could not be considered "sane". | |
030272f3 | 2238 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
db137867 | 2239 | alias in your environment" >&5 |
030272f3 | 2240 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
db137867 AC |
2241 | alias in your environment" >&2;} |
2242 | { (exit 1); exit 1; }; } | |
2243 | fi | |
2244 | ||
2245 | test "$2" = conftest.file | |
2246 | ) | |
2247 | then | |
2248 | # Ok. | |
2249 | : | |
2250 | else | |
030272f3 | 2251 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
db137867 | 2252 | Check your system clock" >&5 |
030272f3 | 2253 | $as_echo "$as_me: error: newly created file is older than distributed files! |
db137867 AC |
2254 | Check your system clock" >&2;} |
2255 | { (exit 1); exit 1; }; } | |
2256 | fi | |
030272f3 VY |
2257 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2258 | $as_echo "yes" >&6; } | |
db137867 AC |
2259 | test "$program_prefix" != NONE && |
2260 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2261 | # Use a double $ so make ignores it. | |
2262 | test "$program_suffix" != NONE && | |
2263 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
030272f3 | 2264 | # Double any \ or $. |
db137867 | 2265 | # By default was `s,x,x', remove it if useless. |
030272f3 VY |
2266 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2267 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
db137867 AC |
2268 | |
2269 | # expand $ac_aux_dir to an absolute path | |
2270 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2271 | ||
2272 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2273 | # Use eval to expand $SHELL | |
2274 | if eval "$MISSING --run true"; then | |
2275 | am_missing_run="$MISSING --run " | |
2276 | else | |
2277 | am_missing_run= | |
030272f3 VY |
2278 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2279 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
db137867 AC |
2280 | fi |
2281 | ||
030272f3 VY |
2282 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2283 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
db137867 AC |
2284 | if test -z "$MKDIR_P"; then |
2285 | if test "${ac_cv_path_mkdir+set}" = set; then | |
030272f3 | 2286 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2287 | else |
2288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2289 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2290 | do | |
2291 | IFS=$as_save_IFS | |
2292 | test -z "$as_dir" && as_dir=. | |
2293 | for ac_prog in mkdir gmkdir; do | |
2294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2295 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2296 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2297 | 'mkdir (GNU coreutils) '* | \ | |
2298 | 'mkdir (coreutils) '* | \ | |
2299 | 'mkdir (fileutils) '4.1*) | |
2300 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2301 | break 3;; | |
2302 | esac | |
2303 | done | |
2304 | done | |
2305 | done | |
2306 | IFS=$as_save_IFS | |
2307 | ||
2308 | fi | |
2309 | ||
2310 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2311 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2312 | else | |
2313 | # As a last resort, use the slow shell script. Don't cache a | |
2314 | # value for MKDIR_P within a source directory, because that will | |
2315 | # break other packages using the cache if that directory is | |
2316 | # removed, or if the value is a relative name. | |
2317 | test -d ./--version && rmdir ./--version | |
2318 | MKDIR_P="$ac_install_sh -d" | |
2319 | fi | |
2320 | fi | |
030272f3 VY |
2321 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2322 | $as_echo "$MKDIR_P" >&6; } | |
db137867 AC |
2323 | |
2324 | mkdir_p="$MKDIR_P" | |
2325 | case $mkdir_p in | |
2326 | [\\/$]* | ?:[\\/]*) ;; | |
2327 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2328 | esac | |
2329 | ||
2330 | for ac_prog in gawk mawk nawk awk | |
2331 | do | |
2332 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2333 | set dummy $ac_prog; ac_word=$2 | |
030272f3 VY |
2334 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2335 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2336 | if test "${ac_cv_prog_AWK+set}" = set; then |
030272f3 | 2337 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2338 | else |
2339 | if test -n "$AWK"; then | |
2340 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2341 | else | |
2342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2343 | for as_dir in $PATH | |
2344 | do | |
2345 | IFS=$as_save_IFS | |
2346 | test -z "$as_dir" && as_dir=. | |
2347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2349 | ac_cv_prog_AWK="$ac_prog" | |
030272f3 | 2350 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2351 | break 2 |
2352 | fi | |
2353 | done | |
2354 | done | |
2355 | IFS=$as_save_IFS | |
2356 | ||
2357 | fi | |
2358 | fi | |
2359 | AWK=$ac_cv_prog_AWK | |
2360 | if test -n "$AWK"; then | |
030272f3 VY |
2361 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2362 | $as_echo "$AWK" >&6; } | |
db137867 | 2363 | else |
030272f3 VY |
2364 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2365 | $as_echo "no" >&6; } | |
db137867 AC |
2366 | fi |
2367 | ||
2368 | ||
2369 | test -n "$AWK" && break | |
2370 | done | |
2371 | ||
030272f3 VY |
2372 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2373 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2374 | set x ${MAKE-make} | |
2375 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
db137867 | 2376 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 2377 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2378 | else |
2379 | cat >conftest.make <<\_ACEOF | |
2380 | SHELL = /bin/sh | |
2381 | all: | |
2382 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2383 | _ACEOF | |
2384 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2385 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2386 | *@@@%%%=?*=@@@%%%*) | |
2387 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2388 | *) | |
2389 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2390 | esac | |
2391 | rm -f conftest.make | |
2392 | fi | |
2393 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
030272f3 VY |
2394 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2395 | $as_echo "yes" >&6; } | |
db137867 AC |
2396 | SET_MAKE= |
2397 | else | |
030272f3 VY |
2398 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2399 | $as_echo "no" >&6; } | |
db137867 AC |
2400 | SET_MAKE="MAKE=${MAKE-make}" |
2401 | fi | |
2402 | ||
2403 | rm -rf .tst 2>/dev/null | |
2404 | mkdir .tst 2>/dev/null | |
2405 | if test -d .tst; then | |
2406 | am__leading_dot=. | |
2407 | else | |
2408 | am__leading_dot=_ | |
2409 | fi | |
2410 | rmdir .tst 2>/dev/null | |
2411 | ||
2412 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2413 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2414 | # is not polluted with repeated "-I." | |
2415 | am__isrc=' -I$(srcdir)' | |
2416 | # test to see if srcdir already configured | |
2417 | if test -f $srcdir/config.status; then | |
030272f3 VY |
2418 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2419 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
db137867 AC |
2420 | { (exit 1); exit 1; }; } |
2421 | fi | |
2422 | fi | |
2423 | ||
2424 | # test whether we have cygpath | |
2425 | if test -z "$CYGPATH_W"; then | |
2426 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2427 | CYGPATH_W='cygpath -w' | |
2428 | else | |
2429 | CYGPATH_W=echo | |
2430 | fi | |
2431 | fi | |
2432 | ||
2433 | ||
2434 | # Define the identity of the package. | |
2435 | PACKAGE=libratbox | |
2436 | VERSION=devel | |
2437 | ||
2438 | ||
2439 | # Some tools Automake needs. | |
2440 | ||
2441 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2442 | ||
2443 | ||
2444 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2445 | ||
2446 | ||
2447 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2448 | ||
2449 | ||
2450 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2451 | ||
2452 | ||
2453 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2454 | ||
2455 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2456 | ||
2457 | # Installed binaries are usually stripped using `strip' when the user | |
2458 | # run `make install-strip'. However `strip' might not be the right | |
2459 | # tool to use in cross-compilation environments, therefore Automake | |
2460 | # will honor the `STRIP' environment variable to overrule this program. | |
2461 | if test "$cross_compiling" != no; then | |
2462 | if test -n "$ac_tool_prefix"; then | |
2463 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2464 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
030272f3 VY |
2465 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2466 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2467 | if test "${ac_cv_prog_STRIP+set}" = set; then |
030272f3 | 2468 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2469 | else |
2470 | if test -n "$STRIP"; then | |
2471 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2472 | else | |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2474 | for as_dir in $PATH | |
2475 | do | |
2476 | IFS=$as_save_IFS | |
2477 | test -z "$as_dir" && as_dir=. | |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2480 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
030272f3 | 2481 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2482 | break 2 |
2483 | fi | |
2484 | done | |
2485 | done | |
2486 | IFS=$as_save_IFS | |
2487 | ||
2488 | fi | |
2489 | fi | |
2490 | STRIP=$ac_cv_prog_STRIP | |
2491 | if test -n "$STRIP"; then | |
030272f3 VY |
2492 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
2493 | $as_echo "$STRIP" >&6; } | |
db137867 | 2494 | else |
030272f3 VY |
2495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2496 | $as_echo "no" >&6; } | |
db137867 AC |
2497 | fi |
2498 | ||
2499 | ||
2500 | fi | |
2501 | if test -z "$ac_cv_prog_STRIP"; then | |
2502 | ac_ct_STRIP=$STRIP | |
2503 | # Extract the first word of "strip", so it can be a program name with args. | |
2504 | set dummy strip; ac_word=$2 | |
030272f3 VY |
2505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2506 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2507 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
030272f3 | 2508 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2509 | else |
2510 | if test -n "$ac_ct_STRIP"; then | |
2511 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2512 | else | |
2513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2514 | for as_dir in $PATH | |
2515 | do | |
2516 | IFS=$as_save_IFS | |
2517 | test -z "$as_dir" && as_dir=. | |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2520 | ac_cv_prog_ac_ct_STRIP="strip" | |
030272f3 | 2521 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2522 | break 2 |
2523 | fi | |
2524 | done | |
2525 | done | |
2526 | IFS=$as_save_IFS | |
2527 | ||
2528 | fi | |
2529 | fi | |
2530 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2531 | if test -n "$ac_ct_STRIP"; then | |
030272f3 VY |
2532 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2533 | $as_echo "$ac_ct_STRIP" >&6; } | |
db137867 | 2534 | else |
030272f3 VY |
2535 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2536 | $as_echo "no" >&6; } | |
db137867 AC |
2537 | fi |
2538 | ||
2539 | if test "x$ac_ct_STRIP" = x; then | |
2540 | STRIP=":" | |
2541 | else | |
2542 | case $cross_compiling:$ac_tool_warned in | |
2543 | yes:) | |
030272f3 VY |
2544 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
2546 | ac_tool_warned=yes ;; |
2547 | esac | |
2548 | STRIP=$ac_ct_STRIP | |
2549 | fi | |
2550 | else | |
2551 | STRIP="$ac_cv_prog_STRIP" | |
2552 | fi | |
2553 | ||
2554 | fi | |
2555 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2556 | ||
2557 | # We need awk for the "check" target. The system "awk" is bad on | |
2558 | # some platforms. | |
2559 | # Always define AMTAR for backward compatibility. | |
2560 | ||
2561 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2562 | ||
2563 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2564 | ||
2565 | ||
2566 | ||
2567 | ||
2568 | ||
2569 | ||
2570 | ac_config_headers="$ac_config_headers include/libratbox_config.h" | |
2571 | ||
2572 | ||
2573 | ||
db137867 AC |
2574 | DEPDIR="${am__leading_dot}deps" |
2575 | ||
2576 | ac_config_commands="$ac_config_commands depfiles" | |
2577 | ||
2578 | ||
2579 | am_make=${MAKE-make} | |
2580 | cat > confinc << 'END' | |
2581 | am__doit: | |
2582 | @echo done | |
2583 | .PHONY: am__doit | |
2584 | END | |
2585 | # If we don't find an include directive, just comment out the code. | |
030272f3 VY |
2586 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2587 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
db137867 AC |
2588 | am__include="#" |
2589 | am__quote= | |
2590 | _am_result=none | |
2591 | # First try GNU make style include. | |
2592 | echo "include confinc" > confmf | |
2593 | # We grep out `Entering directory' and `Leaving directory' | |
2594 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2595 | # In particular we don't look at `^make:' because GNU make might | |
2596 | # be invoked under some other name (usually "gmake"), in which | |
2597 | # case it prints its new name instead of `make'. | |
2598 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2599 | am__include=include | |
2600 | am__quote= | |
2601 | _am_result=GNU | |
2602 | fi | |
2603 | # Now try BSD make style include. | |
2604 | if test "$am__include" = "#"; then | |
2605 | echo '.include "confinc"' > confmf | |
2606 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2607 | am__include=.include | |
2608 | am__quote="\"" | |
2609 | _am_result=BSD | |
2610 | fi | |
2611 | fi | |
2612 | ||
2613 | ||
030272f3 VY |
2614 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
2615 | $as_echo "$_am_result" >&6; } | |
db137867 AC |
2616 | rm -f confinc confmf |
2617 | ||
2618 | # Check whether --enable-dependency-tracking was given. | |
2619 | if test "${enable_dependency_tracking+set}" = set; then | |
2620 | enableval=$enable_dependency_tracking; | |
2621 | fi | |
2622 | ||
2623 | if test "x$enable_dependency_tracking" != xno; then | |
2624 | am_depcomp="$ac_aux_dir/depcomp" | |
2625 | AMDEPBACKSLASH='\' | |
2626 | fi | |
2627 | if test "x$enable_dependency_tracking" != xno; then | |
2628 | AMDEP_TRUE= | |
2629 | AMDEP_FALSE='#' | |
2630 | else | |
2631 | AMDEP_TRUE='#' | |
2632 | AMDEP_FALSE= | |
2633 | fi | |
2634 | ||
2635 | ||
2636 | ac_ext=c | |
2637 | ac_cpp='$CPP $CPPFLAGS' | |
2638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2641 | if test -n "$ac_tool_prefix"; then | |
2642 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2643 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
030272f3 VY |
2644 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2645 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2646 | if test "${ac_cv_prog_CC+set}" = set; then |
030272f3 | 2647 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2648 | else |
2649 | if test -n "$CC"; then | |
2650 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2651 | else | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | for as_dir in $PATH | |
2654 | do | |
2655 | IFS=$as_save_IFS | |
2656 | test -z "$as_dir" && as_dir=. | |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2659 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
030272f3 | 2660 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2661 | break 2 |
2662 | fi | |
2663 | done | |
2664 | done | |
2665 | IFS=$as_save_IFS | |
2666 | ||
2667 | fi | |
2668 | fi | |
2669 | CC=$ac_cv_prog_CC | |
2670 | if test -n "$CC"; then | |
030272f3 VY |
2671 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2672 | $as_echo "$CC" >&6; } | |
db137867 | 2673 | else |
030272f3 VY |
2674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2675 | $as_echo "no" >&6; } | |
db137867 AC |
2676 | fi |
2677 | ||
2678 | ||
2679 | fi | |
2680 | if test -z "$ac_cv_prog_CC"; then | |
2681 | ac_ct_CC=$CC | |
2682 | # Extract the first word of "gcc", so it can be a program name with args. | |
2683 | set dummy gcc; ac_word=$2 | |
030272f3 VY |
2684 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2685 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2686 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
030272f3 | 2687 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2688 | else |
2689 | if test -n "$ac_ct_CC"; then | |
2690 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2691 | else | |
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2693 | for as_dir in $PATH | |
2694 | do | |
2695 | IFS=$as_save_IFS | |
2696 | test -z "$as_dir" && as_dir=. | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2699 | ac_cv_prog_ac_ct_CC="gcc" | |
030272f3 | 2700 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2701 | break 2 |
2702 | fi | |
2703 | done | |
2704 | done | |
2705 | IFS=$as_save_IFS | |
2706 | ||
2707 | fi | |
2708 | fi | |
2709 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2710 | if test -n "$ac_ct_CC"; then | |
030272f3 VY |
2711 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2712 | $as_echo "$ac_ct_CC" >&6; } | |
db137867 | 2713 | else |
030272f3 VY |
2714 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2715 | $as_echo "no" >&6; } | |
db137867 AC |
2716 | fi |
2717 | ||
2718 | if test "x$ac_ct_CC" = x; then | |
2719 | CC="" | |
2720 | else | |
2721 | case $cross_compiling:$ac_tool_warned in | |
2722 | yes:) | |
030272f3 VY |
2723 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2724 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
2725 | ac_tool_warned=yes ;; |
2726 | esac | |
2727 | CC=$ac_ct_CC | |
2728 | fi | |
2729 | else | |
2730 | CC="$ac_cv_prog_CC" | |
2731 | fi | |
2732 | ||
2733 | if test -z "$CC"; then | |
2734 | if test -n "$ac_tool_prefix"; then | |
2735 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2736 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
030272f3 VY |
2737 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2738 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2739 | if test "${ac_cv_prog_CC+set}" = set; then |
030272f3 | 2740 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2741 | else |
2742 | if test -n "$CC"; then | |
2743 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2744 | else | |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2746 | for as_dir in $PATH | |
2747 | do | |
2748 | IFS=$as_save_IFS | |
2749 | test -z "$as_dir" && as_dir=. | |
2750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2752 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
030272f3 | 2753 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2754 | break 2 |
2755 | fi | |
2756 | done | |
2757 | done | |
2758 | IFS=$as_save_IFS | |
2759 | ||
2760 | fi | |
2761 | fi | |
2762 | CC=$ac_cv_prog_CC | |
2763 | if test -n "$CC"; then | |
030272f3 VY |
2764 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2765 | $as_echo "$CC" >&6; } | |
db137867 | 2766 | else |
030272f3 VY |
2767 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2768 | $as_echo "no" >&6; } | |
db137867 AC |
2769 | fi |
2770 | ||
2771 | ||
2772 | fi | |
2773 | fi | |
2774 | if test -z "$CC"; then | |
2775 | # Extract the first word of "cc", so it can be a program name with args. | |
2776 | set dummy cc; ac_word=$2 | |
030272f3 VY |
2777 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2778 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2779 | if test "${ac_cv_prog_CC+set}" = set; then |
030272f3 | 2780 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2781 | else |
2782 | if test -n "$CC"; then | |
2783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2784 | else | |
2785 | ac_prog_rejected=no | |
2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2787 | for as_dir in $PATH | |
2788 | do | |
2789 | IFS=$as_save_IFS | |
2790 | test -z "$as_dir" && as_dir=. | |
2791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2793 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2794 | ac_prog_rejected=yes | |
2795 | continue | |
2796 | fi | |
2797 | ac_cv_prog_CC="cc" | |
030272f3 | 2798 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2799 | break 2 |
2800 | fi | |
2801 | done | |
2802 | done | |
2803 | IFS=$as_save_IFS | |
2804 | ||
2805 | if test $ac_prog_rejected = yes; then | |
2806 | # We found a bogon in the path, so make sure we never use it. | |
2807 | set dummy $ac_cv_prog_CC | |
2808 | shift | |
2809 | if test $# != 0; then | |
2810 | # We chose a different compiler from the bogus one. | |
2811 | # However, it has the same basename, so the bogon will be chosen | |
2812 | # first if we set CC to just the basename; use the full file name. | |
2813 | shift | |
2814 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2815 | fi | |
2816 | fi | |
2817 | fi | |
2818 | fi | |
2819 | CC=$ac_cv_prog_CC | |
2820 | if test -n "$CC"; then | |
030272f3 VY |
2821 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2822 | $as_echo "$CC" >&6; } | |
db137867 | 2823 | else |
030272f3 VY |
2824 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2825 | $as_echo "no" >&6; } | |
db137867 AC |
2826 | fi |
2827 | ||
2828 | ||
2829 | fi | |
2830 | if test -z "$CC"; then | |
2831 | if test -n "$ac_tool_prefix"; then | |
2832 | for ac_prog in cl.exe | |
2833 | do | |
2834 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2835 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
030272f3 VY |
2836 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2837 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2838 | if test "${ac_cv_prog_CC+set}" = set; then |
030272f3 | 2839 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2840 | else |
2841 | if test -n "$CC"; then | |
2842 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2843 | else | |
2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2845 | for as_dir in $PATH | |
2846 | do | |
2847 | IFS=$as_save_IFS | |
2848 | test -z "$as_dir" && as_dir=. | |
2849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2851 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
030272f3 | 2852 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2853 | break 2 |
2854 | fi | |
2855 | done | |
2856 | done | |
2857 | IFS=$as_save_IFS | |
2858 | ||
2859 | fi | |
2860 | fi | |
2861 | CC=$ac_cv_prog_CC | |
2862 | if test -n "$CC"; then | |
030272f3 VY |
2863 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2864 | $as_echo "$CC" >&6; } | |
db137867 | 2865 | else |
030272f3 VY |
2866 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2867 | $as_echo "no" >&6; } | |
db137867 AC |
2868 | fi |
2869 | ||
2870 | ||
2871 | test -n "$CC" && break | |
2872 | done | |
2873 | fi | |
2874 | if test -z "$CC"; then | |
2875 | ac_ct_CC=$CC | |
2876 | for ac_prog in cl.exe | |
2877 | do | |
2878 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2879 | set dummy $ac_prog; ac_word=$2 | |
030272f3 VY |
2880 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2881 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 2882 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
030272f3 | 2883 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2884 | else |
2885 | if test -n "$ac_ct_CC"; then | |
2886 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2887 | else | |
2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2889 | for as_dir in $PATH | |
2890 | do | |
2891 | IFS=$as_save_IFS | |
2892 | test -z "$as_dir" && as_dir=. | |
2893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2895 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
030272f3 | 2896 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2897 | break 2 |
2898 | fi | |
2899 | done | |
2900 | done | |
2901 | IFS=$as_save_IFS | |
2902 | ||
2903 | fi | |
2904 | fi | |
2905 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2906 | if test -n "$ac_ct_CC"; then | |
030272f3 VY |
2907 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2908 | $as_echo "$ac_ct_CC" >&6; } | |
db137867 | 2909 | else |
030272f3 VY |
2910 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2911 | $as_echo "no" >&6; } | |
db137867 AC |
2912 | fi |
2913 | ||
2914 | ||
2915 | test -n "$ac_ct_CC" && break | |
2916 | done | |
2917 | ||
2918 | if test "x$ac_ct_CC" = x; then | |
2919 | CC="" | |
2920 | else | |
2921 | case $cross_compiling:$ac_tool_warned in | |
2922 | yes:) | |
030272f3 VY |
2923 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2924 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
2925 | ac_tool_warned=yes ;; |
2926 | esac | |
2927 | CC=$ac_ct_CC | |
2928 | fi | |
2929 | fi | |
2930 | ||
2931 | fi | |
2932 | ||
2933 | ||
030272f3 VY |
2934 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2936 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
db137867 | 2937 | See \`config.log' for more details." >&5 |
030272f3 | 2938 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
db137867 | 2939 | See \`config.log' for more details." >&2;} |
030272f3 | 2940 | { (exit 1); exit 1; }; }; } |
db137867 AC |
2941 | |
2942 | # Provide some information about the compiler. | |
030272f3 VY |
2943 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2944 | set X $ac_compile | |
2945 | ac_compiler=$2 | |
db137867 AC |
2946 | { (ac_try="$ac_compiler --version >&5" |
2947 | case "(($ac_try" in | |
2948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2949 | *) ac_try_echo=$ac_try;; | |
2950 | esac | |
030272f3 VY |
2951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2952 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
2953 | (eval "$ac_compiler --version >&5") 2>&5 |
2954 | ac_status=$? | |
030272f3 | 2955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
2956 | (exit $ac_status); } |
2957 | { (ac_try="$ac_compiler -v >&5" | |
2958 | case "(($ac_try" in | |
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2960 | *) ac_try_echo=$ac_try;; | |
2961 | esac | |
030272f3 VY |
2962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2963 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
2964 | (eval "$ac_compiler -v >&5") 2>&5 |
2965 | ac_status=$? | |
030272f3 | 2966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
2967 | (exit $ac_status); } |
2968 | { (ac_try="$ac_compiler -V >&5" | |
2969 | case "(($ac_try" in | |
2970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2971 | *) ac_try_echo=$ac_try;; | |
2972 | esac | |
030272f3 VY |
2973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2974 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
2975 | (eval "$ac_compiler -V >&5") 2>&5 |
2976 | ac_status=$? | |
030272f3 | 2977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
2978 | (exit $ac_status); } |
2979 | ||
2980 | cat >conftest.$ac_ext <<_ACEOF | |
2981 | /* confdefs.h. */ | |
2982 | _ACEOF | |
2983 | cat confdefs.h >>conftest.$ac_ext | |
2984 | cat >>conftest.$ac_ext <<_ACEOF | |
2985 | /* end confdefs.h. */ | |
2986 | ||
2987 | int | |
2988 | main () | |
2989 | { | |
2990 | ||
2991 | ; | |
2992 | return 0; | |
2993 | } | |
2994 | _ACEOF | |
2995 | ac_clean_files_save=$ac_clean_files | |
030272f3 | 2996 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
db137867 AC |
2997 | # Try to create an executable without -o first, disregard a.out. |
2998 | # It will help us diagnose broken compilers, and finding out an intuition | |
2999 | # of exeext. | |
030272f3 VY |
3000 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3001 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3002 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3003 | ||
3004 | # The possible output files: | |
3005 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3006 | ||
db137867 AC |
3007 | ac_rmfiles= |
3008 | for ac_file in $ac_files | |
3009 | do | |
3010 | case $ac_file in | |
030272f3 | 3011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3012 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3013 | esac | |
3014 | done | |
3015 | rm -f $ac_rmfiles | |
3016 | ||
3017 | if { (ac_try="$ac_link_default" | |
3018 | case "(($ac_try" in | |
3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3020 | *) ac_try_echo=$ac_try;; | |
3021 | esac | |
030272f3 VY |
3022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3023 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3024 | (eval "$ac_link_default") 2>&5 |
3025 | ac_status=$? | |
030272f3 | 3026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3027 | (exit $ac_status); }; then |
3028 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3029 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3030 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3031 | # so that the user can short-circuit this test for compilers unknown to | |
3032 | # Autoconf. | |
3033 | for ac_file in $ac_files '' | |
3034 | do | |
3035 | test -f "$ac_file" || continue | |
3036 | case $ac_file in | |
030272f3 | 3037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
db137867 AC |
3038 | ;; |
3039 | [ab].out ) | |
3040 | # We found the default executable, but exeext='' is most | |
3041 | # certainly right. | |
3042 | break;; | |
3043 | *.* ) | |
3044 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3045 | then :; else | |
3046 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3047 | fi | |
3048 | # We set ac_cv_exeext here because the later test for it is not | |
3049 | # safe: cross compilers may not add the suffix if given an `-o' | |
3050 | # argument, so we may need to know it at that point already. | |
3051 | # Even if this section looks crufty: it has the advantage of | |
3052 | # actually working. | |
3053 | break;; | |
3054 | * ) | |
3055 | break;; | |
3056 | esac | |
3057 | done | |
3058 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3059 | ||
3060 | else | |
3061 | ac_file='' | |
3062 | fi | |
3063 | ||
030272f3 VY |
3064 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3065 | $as_echo "$ac_file" >&6; } | |
db137867 | 3066 | if test -z "$ac_file"; then |
030272f3 | 3067 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3068 | sed 's/^/| /' conftest.$ac_ext >&5 |
3069 | ||
030272f3 VY |
3070 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3072 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
db137867 | 3073 | See \`config.log' for more details." >&5 |
030272f3 | 3074 | $as_echo "$as_me: error: C compiler cannot create executables |
db137867 | 3075 | See \`config.log' for more details." >&2;} |
030272f3 | 3076 | { (exit 77); exit 77; }; }; } |
db137867 AC |
3077 | fi |
3078 | ||
3079 | ac_exeext=$ac_cv_exeext | |
3080 | ||
3081 | # Check that the compiler produces executables we can run. If not, either | |
3082 | # the compiler is broken, or we cross compile. | |
030272f3 VY |
3083 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3084 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
db137867 AC |
3085 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3086 | # If not cross compiling, check that we can run a simple program. | |
3087 | if test "$cross_compiling" != yes; then | |
3088 | if { ac_try='./$ac_file' | |
3089 | { (case "(($ac_try" in | |
3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3091 | *) ac_try_echo=$ac_try;; | |
3092 | esac | |
030272f3 VY |
3093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3094 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3095 | (eval "$ac_try") 2>&5 |
3096 | ac_status=$? | |
030272f3 | 3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3098 | (exit $ac_status); }; }; then |
3099 | cross_compiling=no | |
3100 | else | |
3101 | if test "$cross_compiling" = maybe; then | |
3102 | cross_compiling=yes | |
3103 | else | |
030272f3 VY |
3104 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3105 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3106 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
db137867 AC |
3107 | If you meant to cross compile, use \`--host'. |
3108 | See \`config.log' for more details." >&5 | |
030272f3 | 3109 | $as_echo "$as_me: error: cannot run C compiled programs. |
db137867 AC |
3110 | If you meant to cross compile, use \`--host'. |
3111 | See \`config.log' for more details." >&2;} | |
030272f3 | 3112 | { (exit 1); exit 1; }; }; } |
db137867 AC |
3113 | fi |
3114 | fi | |
3115 | fi | |
030272f3 VY |
3116 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3117 | $as_echo "yes" >&6; } | |
db137867 | 3118 | |
030272f3 | 3119 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
db137867 AC |
3120 | ac_clean_files=$ac_clean_files_save |
3121 | # Check that the compiler produces executables we can run. If not, either | |
3122 | # the compiler is broken, or we cross compile. | |
030272f3 VY |
3123 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3124 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3125 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3126 | $as_echo "$cross_compiling" >&6; } | |
db137867 | 3127 | |
030272f3 VY |
3128 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3129 | $as_echo_n "checking for suffix of executables... " >&6; } | |
db137867 AC |
3130 | if { (ac_try="$ac_link" |
3131 | case "(($ac_try" in | |
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3133 | *) ac_try_echo=$ac_try;; | |
3134 | esac | |
030272f3 VY |
3135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3136 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3137 | (eval "$ac_link") 2>&5 |
3138 | ac_status=$? | |
030272f3 | 3139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3140 | (exit $ac_status); }; then |
3141 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3142 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3143 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3144 | # `rm'. | |
3145 | for ac_file in conftest.exe conftest conftest.*; do | |
3146 | test -f "$ac_file" || continue | |
3147 | case $ac_file in | |
030272f3 | 3148 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3149 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3150 | break;; | |
3151 | * ) break;; | |
3152 | esac | |
3153 | done | |
3154 | else | |
030272f3 VY |
3155 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3157 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
db137867 | 3158 | See \`config.log' for more details." >&5 |
030272f3 | 3159 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
db137867 | 3160 | See \`config.log' for more details." >&2;} |
030272f3 | 3161 | { (exit 1); exit 1; }; }; } |
db137867 AC |
3162 | fi |
3163 | ||
3164 | rm -f conftest$ac_cv_exeext | |
030272f3 VY |
3165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3166 | $as_echo "$ac_cv_exeext" >&6; } | |
db137867 AC |
3167 | |
3168 | rm -f conftest.$ac_ext | |
3169 | EXEEXT=$ac_cv_exeext | |
3170 | ac_exeext=$EXEEXT | |
030272f3 VY |
3171 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3172 | $as_echo_n "checking for suffix of object files... " >&6; } | |
db137867 | 3173 | if test "${ac_cv_objext+set}" = set; then |
030272f3 | 3174 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3175 | else |
3176 | cat >conftest.$ac_ext <<_ACEOF | |
3177 | /* confdefs.h. */ | |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
3181 | /* end confdefs.h. */ | |
3182 | ||
3183 | int | |
3184 | main () | |
3185 | { | |
3186 | ||
3187 | ; | |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | rm -f conftest.o conftest.obj | |
3192 | if { (ac_try="$ac_compile" | |
3193 | case "(($ac_try" in | |
3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3195 | *) ac_try_echo=$ac_try;; | |
3196 | esac | |
030272f3 VY |
3197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3198 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3199 | (eval "$ac_compile") 2>&5 |
3200 | ac_status=$? | |
030272f3 | 3201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3202 | (exit $ac_status); }; then |
3203 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3204 | test -f "$ac_file" || continue; | |
3205 | case $ac_file in | |
030272f3 | 3206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
db137867 AC |
3207 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3208 | break;; | |
3209 | esac | |
3210 | done | |
3211 | else | |
030272f3 | 3212 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
3214 | ||
030272f3 VY |
3215 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3217 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
db137867 | 3218 | See \`config.log' for more details." >&5 |
030272f3 | 3219 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
db137867 | 3220 | See \`config.log' for more details." >&2;} |
030272f3 | 3221 | { (exit 1); exit 1; }; }; } |
db137867 AC |
3222 | fi |
3223 | ||
3224 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3225 | fi | |
030272f3 VY |
3226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3227 | $as_echo "$ac_cv_objext" >&6; } | |
db137867 AC |
3228 | OBJEXT=$ac_cv_objext |
3229 | ac_objext=$OBJEXT | |
030272f3 VY |
3230 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3231 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
db137867 | 3232 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
030272f3 | 3233 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3234 | else |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
3236 | /* confdefs.h. */ | |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | ||
3242 | int | |
3243 | main () | |
3244 | { | |
3245 | #ifndef __GNUC__ | |
3246 | choke me | |
3247 | #endif | |
3248 | ||
3249 | ; | |
3250 | return 0; | |
3251 | } | |
3252 | _ACEOF | |
3253 | rm -f conftest.$ac_objext | |
3254 | if { (ac_try="$ac_compile" | |
3255 | case "(($ac_try" in | |
3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3257 | *) ac_try_echo=$ac_try;; | |
3258 | esac | |
030272f3 VY |
3259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3260 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3261 | (eval "$ac_compile") 2>conftest.er1 |
3262 | ac_status=$? | |
3263 | grep -v '^ *+' conftest.er1 >conftest.err | |
3264 | rm -f conftest.er1 | |
3265 | cat conftest.err >&5 | |
030272f3 | 3266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3267 | (exit $ac_status); } && { |
3268 | test -z "$ac_c_werror_flag" || | |
3269 | test ! -s conftest.err | |
3270 | } && test -s conftest.$ac_objext; then | |
3271 | ac_compiler_gnu=yes | |
3272 | else | |
030272f3 | 3273 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
3275 | ||
3276 | ac_compiler_gnu=no | |
3277 | fi | |
3278 | ||
3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3281 | ||
3282 | fi | |
030272f3 VY |
3283 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3284 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3285 | if test $ac_compiler_gnu = yes; then | |
3286 | GCC=yes | |
3287 | else | |
3288 | GCC= | |
3289 | fi | |
db137867 AC |
3290 | ac_test_CFLAGS=${CFLAGS+set} |
3291 | ac_save_CFLAGS=$CFLAGS | |
030272f3 VY |
3292 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3293 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
db137867 | 3294 | if test "${ac_cv_prog_cc_g+set}" = set; then |
030272f3 | 3295 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3296 | else |
3297 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3298 | ac_c_werror_flag=yes | |
3299 | ac_cv_prog_cc_g=no | |
3300 | CFLAGS="-g" | |
3301 | cat >conftest.$ac_ext <<_ACEOF | |
3302 | /* confdefs.h. */ | |
3303 | _ACEOF | |
3304 | cat confdefs.h >>conftest.$ac_ext | |
3305 | cat >>conftest.$ac_ext <<_ACEOF | |
3306 | /* end confdefs.h. */ | |
3307 | ||
3308 | int | |
3309 | main () | |
3310 | { | |
3311 | ||
3312 | ; | |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
3316 | rm -f conftest.$ac_objext | |
3317 | if { (ac_try="$ac_compile" | |
3318 | case "(($ac_try" in | |
3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3320 | *) ac_try_echo=$ac_try;; | |
3321 | esac | |
030272f3 VY |
3322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3323 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3324 | (eval "$ac_compile") 2>conftest.er1 |
3325 | ac_status=$? | |
3326 | grep -v '^ *+' conftest.er1 >conftest.err | |
3327 | rm -f conftest.er1 | |
3328 | cat conftest.err >&5 | |
030272f3 | 3329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3330 | (exit $ac_status); } && { |
3331 | test -z "$ac_c_werror_flag" || | |
3332 | test ! -s conftest.err | |
3333 | } && test -s conftest.$ac_objext; then | |
3334 | ac_cv_prog_cc_g=yes | |
3335 | else | |
030272f3 | 3336 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
3338 | ||
3339 | CFLAGS="" | |
3340 | cat >conftest.$ac_ext <<_ACEOF | |
3341 | /* confdefs.h. */ | |
3342 | _ACEOF | |
3343 | cat confdefs.h >>conftest.$ac_ext | |
3344 | cat >>conftest.$ac_ext <<_ACEOF | |
3345 | /* end confdefs.h. */ | |
3346 | ||
3347 | int | |
3348 | main () | |
3349 | { | |
3350 | ||
3351 | ; | |
3352 | return 0; | |
3353 | } | |
3354 | _ACEOF | |
3355 | rm -f conftest.$ac_objext | |
3356 | if { (ac_try="$ac_compile" | |
3357 | case "(($ac_try" in | |
3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3359 | *) ac_try_echo=$ac_try;; | |
3360 | esac | |
030272f3 VY |
3361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3362 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3363 | (eval "$ac_compile") 2>conftest.er1 |
3364 | ac_status=$? | |
3365 | grep -v '^ *+' conftest.er1 >conftest.err | |
3366 | rm -f conftest.er1 | |
3367 | cat conftest.err >&5 | |
030272f3 | 3368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3369 | (exit $ac_status); } && { |
3370 | test -z "$ac_c_werror_flag" || | |
3371 | test ! -s conftest.err | |
3372 | } && test -s conftest.$ac_objext; then | |
3373 | : | |
3374 | else | |
030272f3 | 3375 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
3377 | ||
3378 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3379 | CFLAGS="-g" | |
3380 | cat >conftest.$ac_ext <<_ACEOF | |
3381 | /* confdefs.h. */ | |
3382 | _ACEOF | |
3383 | cat confdefs.h >>conftest.$ac_ext | |
3384 | cat >>conftest.$ac_ext <<_ACEOF | |
3385 | /* end confdefs.h. */ | |
3386 | ||
3387 | int | |
3388 | main () | |
3389 | { | |
3390 | ||
3391 | ; | |
3392 | return 0; | |
3393 | } | |
3394 | _ACEOF | |
3395 | rm -f conftest.$ac_objext | |
3396 | if { (ac_try="$ac_compile" | |
3397 | case "(($ac_try" in | |
3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3399 | *) ac_try_echo=$ac_try;; | |
3400 | esac | |
030272f3 VY |
3401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3402 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3403 | (eval "$ac_compile") 2>conftest.er1 |
3404 | ac_status=$? | |
3405 | grep -v '^ *+' conftest.er1 >conftest.err | |
3406 | rm -f conftest.er1 | |
3407 | cat conftest.err >&5 | |
030272f3 | 3408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3409 | (exit $ac_status); } && { |
3410 | test -z "$ac_c_werror_flag" || | |
3411 | test ! -s conftest.err | |
3412 | } && test -s conftest.$ac_objext; then | |
3413 | ac_cv_prog_cc_g=yes | |
3414 | else | |
030272f3 | 3415 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
3417 | ||
3418 | ||
3419 | fi | |
3420 | ||
3421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3422 | fi | |
3423 | ||
3424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3425 | fi | |
3426 | ||
3427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3428 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3429 | fi | |
030272f3 VY |
3430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3431 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
db137867 AC |
3432 | if test "$ac_test_CFLAGS" = set; then |
3433 | CFLAGS=$ac_save_CFLAGS | |
3434 | elif test $ac_cv_prog_cc_g = yes; then | |
3435 | if test "$GCC" = yes; then | |
3436 | CFLAGS="-g -O2" | |
3437 | else | |
3438 | CFLAGS="-g" | |
3439 | fi | |
3440 | else | |
3441 | if test "$GCC" = yes; then | |
3442 | CFLAGS="-O2" | |
3443 | else | |
3444 | CFLAGS= | |
3445 | fi | |
3446 | fi | |
030272f3 VY |
3447 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3448 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
db137867 | 3449 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
030272f3 | 3450 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3451 | else |
3452 | ac_cv_prog_cc_c89=no | |
3453 | ac_save_CC=$CC | |
3454 | cat >conftest.$ac_ext <<_ACEOF | |
3455 | /* confdefs.h. */ | |
3456 | _ACEOF | |
3457 | cat confdefs.h >>conftest.$ac_ext | |
3458 | cat >>conftest.$ac_ext <<_ACEOF | |
3459 | /* end confdefs.h. */ | |
3460 | #include <stdarg.h> | |
3461 | #include <stdio.h> | |
3462 | #include <sys/types.h> | |
3463 | #include <sys/stat.h> | |
3464 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3465 | struct buf { int x; }; | |
3466 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3467 | static char *e (p, i) | |
3468 | char **p; | |
3469 | int i; | |
3470 | { | |
3471 | return p[i]; | |
3472 | } | |
3473 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3474 | { | |
3475 | char *s; | |
3476 | va_list v; | |
3477 | va_start (v,p); | |
3478 | s = g (p, va_arg (v,int)); | |
3479 | va_end (v); | |
3480 | return s; | |
3481 | } | |
3482 | ||
3483 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3484 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3485 | These don't provoke an error unfortunately, instead are silently treated | |
3486 | as 'x'. The following induces an error, until -std is added to get | |
3487 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3488 | array size at least. It's necessary to write '\x00'==0 to get something | |
3489 | that's true only with -std. */ | |
3490 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3491 | ||
3492 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3493 | inside strings and character constants. */ | |
3494 | #define FOO(x) 'x' | |
3495 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3496 | ||
3497 | int test (int i, double x); | |
3498 | struct s1 {int (*f) (int a);}; | |
3499 | struct s2 {int (*f) (double a);}; | |
3500 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3501 | int argc; | |
3502 | char **argv; | |
3503 | int | |
3504 | main () | |
3505 | { | |
3506 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3507 | ; | |
3508 | return 0; | |
3509 | } | |
3510 | _ACEOF | |
3511 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3512 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3513 | do | |
3514 | CC="$ac_save_CC $ac_arg" | |
3515 | rm -f conftest.$ac_objext | |
3516 | if { (ac_try="$ac_compile" | |
3517 | case "(($ac_try" in | |
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3519 | *) ac_try_echo=$ac_try;; | |
3520 | esac | |
030272f3 VY |
3521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3522 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
3523 | (eval "$ac_compile") 2>conftest.er1 |
3524 | ac_status=$? | |
3525 | grep -v '^ *+' conftest.er1 >conftest.err | |
3526 | rm -f conftest.er1 | |
3527 | cat conftest.err >&5 | |
030272f3 | 3528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
3529 | (exit $ac_status); } && { |
3530 | test -z "$ac_c_werror_flag" || | |
3531 | test ! -s conftest.err | |
3532 | } && test -s conftest.$ac_objext; then | |
3533 | ac_cv_prog_cc_c89=$ac_arg | |
3534 | else | |
030272f3 | 3535 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3536 | sed 's/^/| /' conftest.$ac_ext >&5 |
3537 | ||
3538 | ||
3539 | fi | |
3540 | ||
3541 | rm -f core conftest.err conftest.$ac_objext | |
3542 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3543 | done | |
3544 | rm -f conftest.$ac_ext | |
3545 | CC=$ac_save_CC | |
3546 | ||
3547 | fi | |
3548 | # AC_CACHE_VAL | |
3549 | case "x$ac_cv_prog_cc_c89" in | |
3550 | x) | |
030272f3 VY |
3551 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3552 | $as_echo "none needed" >&6; } ;; | |
db137867 | 3553 | xno) |
030272f3 VY |
3554 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3555 | $as_echo "unsupported" >&6; } ;; | |
db137867 AC |
3556 | *) |
3557 | CC="$CC $ac_cv_prog_cc_c89" | |
030272f3 VY |
3558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3559 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
db137867 AC |
3560 | esac |
3561 | ||
3562 | ||
3563 | ac_ext=c | |
3564 | ac_cpp='$CPP $CPPFLAGS' | |
3565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3568 | ||
3569 | depcc="$CC" am_compiler_list= | |
3570 | ||
030272f3 VY |
3571 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3572 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
db137867 | 3573 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
030272f3 | 3574 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3575 | else |
3576 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3577 | # We make a subdir and do the tests there. Otherwise we can end up | |
3578 | # making bogus files that we don't know about and never remove. For | |
3579 | # instance it was reported that on HP-UX the gcc test will end up | |
3580 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3581 | # in D'. | |
3582 | mkdir conftest.dir | |
3583 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3584 | # using a relative directory. | |
3585 | cp "$am_depcomp" conftest.dir | |
3586 | cd conftest.dir | |
3587 | # We will build objects and dependencies in a subdirectory because | |
3588 | # it helps to detect inapplicable dependency modes. For instance | |
3589 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3590 | # side effect of compilation, but ICC will put the dependencies in | |
3591 | # the current directory while Tru64 will put them in the object | |
3592 | # directory. | |
3593 | mkdir sub | |
3594 | ||
3595 | am_cv_CC_dependencies_compiler_type=none | |
3596 | if test "$am_compiler_list" = ""; then | |
3597 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3598 | fi | |
3599 | for depmode in $am_compiler_list; do | |
3600 | # Setup a source with many dependencies, because some compilers | |
3601 | # like to wrap large dependency lists on column 80 (with \), and | |
3602 | # we should not choose a depcomp mode which is confused by this. | |
3603 | # | |
3604 | # We need to recreate these files for each test, as the compiler may | |
3605 | # overwrite some of them when testing with obscure command lines. | |
3606 | # This happens at least with the AIX C compiler. | |
3607 | : > sub/conftest.c | |
3608 | for i in 1 2 3 4 5 6; do | |
3609 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3610 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3611 | # Solaris 8's {/usr,}/bin/sh. | |
3612 | touch sub/conftst$i.h | |
3613 | done | |
3614 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3615 | ||
3616 | case $depmode in | |
3617 | nosideeffect) | |
3618 | # after this tag, mechanisms are not by side-effect, so they'll | |
3619 | # only be used when explicitly requested | |
3620 | if test "x$enable_dependency_tracking" = xyes; then | |
3621 | continue | |
3622 | else | |
3623 | break | |
3624 | fi | |
3625 | ;; | |
3626 | none) break ;; | |
3627 | esac | |
3628 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3629 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3630 | # handle `-M -o', and we need to detect this. | |
3631 | if depmode=$depmode \ | |
3632 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3633 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3634 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3635 | >/dev/null 2>conftest.err && | |
3636 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3637 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3638 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3639 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3640 | # icc doesn't choke on unknown options, it will just issue warnings | |
3641 | # or remarks (even with -Werror). So we grep stderr for any message | |
3642 | # that says an option was ignored or not supported. | |
3643 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3644 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3645 | # The diagnosis changed in icc 8.0: | |
3646 | # icc: Command line remark: option '-MP' not supported | |
3647 | if (grep 'ignoring option' conftest.err || | |
3648 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3649 | am_cv_CC_dependencies_compiler_type=$depmode | |
3650 | break | |
3651 | fi | |
3652 | fi | |
3653 | done | |
3654 | ||
3655 | cd .. | |
3656 | rm -rf conftest.dir | |
3657 | else | |
3658 | am_cv_CC_dependencies_compiler_type=none | |
3659 | fi | |
3660 | ||
3661 | fi | |
030272f3 VY |
3662 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3663 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
db137867 AC |
3664 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3665 | ||
3666 | if | |
3667 | test "x$enable_dependency_tracking" != xno \ | |
3668 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3669 | am__fastdepCC_TRUE= | |
3670 | am__fastdepCC_FALSE='#' | |
3671 | else | |
3672 | am__fastdepCC_TRUE='#' | |
3673 | am__fastdepCC_FALSE= | |
3674 | fi | |
3675 | ||
3676 | ||
030272f3 VY |
3677 | |
3678 | ac_ext=c | |
3679 | ac_cpp='$CPP $CPPFLAGS' | |
3680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3683 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3684 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3685 | # On Suns, sometimes $CPP names a directory. | |
3686 | if test -n "$CPP" && test -d "$CPP"; then | |
3687 | CPP= | |
3688 | fi | |
3689 | if test -z "$CPP"; then | |
3690 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3691 | $as_echo_n "(cached) " >&6 | |
db137867 | 3692 | else |
030272f3 VY |
3693 | # Double quotes because CPP needs to be expanded |
3694 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3695 | do | |
3696 | ac_preproc_ok=false | |
3697 | for ac_c_preproc_warn_flag in '' yes | |
3698 | do | |
3699 | # Use a header file that comes with gcc, so configuring glibc | |
3700 | # with a fresh cross-compiler works. | |
3701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3702 | # <limits.h> exists even on freestanding compilers. | |
3703 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3704 | # not just through cpp. "Syntax error" is here to catch this case. | |
3705 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
3706 | /* confdefs.h. */ |
3707 | _ACEOF | |
3708 | cat confdefs.h >>conftest.$ac_ext | |
3709 | cat >>conftest.$ac_ext <<_ACEOF | |
3710 | /* end confdefs.h. */ | |
030272f3 VY |
3711 | #ifdef __STDC__ |
3712 | # include <limits.h> | |
db137867 | 3713 | #else |
030272f3 | 3714 | # include <assert.h> |
db137867 | 3715 | #endif |
030272f3 | 3716 | Syntax error |
db137867 | 3717 | _ACEOF |
030272f3 | 3718 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
db137867 AC |
3719 | case "(($ac_try" in |
3720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3721 | *) ac_try_echo=$ac_try;; | |
3722 | esac | |
030272f3 VY |
3723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3724 | $as_echo "$ac_try_echo") >&5 | |
3725 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
db137867 AC |
3726 | ac_status=$? |
3727 | grep -v '^ *+' conftest.er1 >conftest.err | |
3728 | rm -f conftest.er1 | |
3729 | cat conftest.err >&5 | |
030272f3 VY |
3730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3731 | (exit $ac_status); } >/dev/null && { | |
3732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
db137867 | 3733 | test ! -s conftest.err |
030272f3 VY |
3734 | }; then |
3735 | : | |
db137867 | 3736 | else |
030272f3 | 3737 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3738 | sed 's/^/| /' conftest.$ac_ext >&5 |
3739 | ||
030272f3 VY |
3740 | # Broken: fails on valid input. |
3741 | continue | |
db137867 AC |
3742 | fi |
3743 | ||
030272f3 | 3744 | rm -f conftest.err conftest.$ac_ext |
db137867 | 3745 | |
030272f3 VY |
3746 | # OK, works on sane cases. Now check whether nonexistent headers |
3747 | # can be detected and how. | |
3748 | cat >conftest.$ac_ext <<_ACEOF | |
3749 | /* confdefs.h. */ | |
3750 | _ACEOF | |
3751 | cat confdefs.h >>conftest.$ac_ext | |
3752 | cat >>conftest.$ac_ext <<_ACEOF | |
3753 | /* end confdefs.h. */ | |
3754 | #include <ac_nonexistent.h> | |
3755 | _ACEOF | |
3756 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3757 | case "(($ac_try" in | |
3758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3759 | *) ac_try_echo=$ac_try;; | |
db137867 | 3760 | esac |
030272f3 VY |
3761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3762 | $as_echo "$ac_try_echo") >&5 | |
3763 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3764 | ac_status=$? | |
3765 | grep -v '^ *+' conftest.er1 >conftest.err | |
3766 | rm -f conftest.er1 | |
3767 | cat conftest.err >&5 | |
3768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3769 | (exit $ac_status); } >/dev/null && { | |
3770 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3771 | test ! -s conftest.err | |
3772 | }; then | |
3773 | # Broken: success on invalid input. | |
3774 | continue | |
3775 | else | |
3776 | $as_echo "$as_me: failed program was:" >&5 | |
3777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
db137867 | 3778 | |
030272f3 VY |
3779 | # Passes both tests. |
3780 | ac_preproc_ok=: | |
3781 | break | |
3782 | fi | |
db137867 | 3783 | |
030272f3 | 3784 | rm -f conftest.err conftest.$ac_ext |
db137867 | 3785 | |
030272f3 VY |
3786 | done |
3787 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3788 | rm -f conftest.err conftest.$ac_ext | |
3789 | if $ac_preproc_ok; then | |
3790 | break | |
db137867 AC |
3791 | fi |
3792 | ||
030272f3 VY |
3793 | done |
3794 | ac_cv_prog_CPP=$CPP | |
db137867 | 3795 | |
030272f3 VY |
3796 | fi |
3797 | CPP=$ac_cv_prog_CPP | |
db137867 | 3798 | else |
030272f3 VY |
3799 | ac_cv_prog_CPP=$CPP |
3800 | fi | |
3801 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
3802 | $as_echo "$CPP" >&6; } | |
3803 | ac_preproc_ok=false | |
3804 | for ac_c_preproc_warn_flag in '' yes | |
db137867 | 3805 | do |
030272f3 VY |
3806 | # Use a header file that comes with gcc, so configuring glibc |
3807 | # with a fresh cross-compiler works. | |
3808 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3809 | # <limits.h> exists even on freestanding compilers. | |
3810 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3811 | # not just through cpp. "Syntax error" is here to catch this case. | |
3812 | cat >conftest.$ac_ext <<_ACEOF | |
3813 | /* confdefs.h. */ | |
3814 | _ACEOF | |
3815 | cat confdefs.h >>conftest.$ac_ext | |
3816 | cat >>conftest.$ac_ext <<_ACEOF | |
3817 | /* end confdefs.h. */ | |
3818 | #ifdef __STDC__ | |
3819 | # include <limits.h> | |
3820 | #else | |
3821 | # include <assert.h> | |
3822 | #endif | |
3823 | Syntax error | |
3824 | _ACEOF | |
3825 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3826 | case "(($ac_try" in | |
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | *) ac_try_echo=$ac_try;; | |
db137867 | 3829 | esac |
030272f3 VY |
3830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3831 | $as_echo "$ac_try_echo") >&5 | |
3832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3833 | ac_status=$? | |
3834 | grep -v '^ *+' conftest.er1 >conftest.err | |
3835 | rm -f conftest.er1 | |
3836 | cat conftest.err >&5 | |
3837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | (exit $ac_status); } >/dev/null && { | |
3839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3840 | test ! -s conftest.err | |
3841 | }; then | |
3842 | : | |
3843 | else | |
3844 | $as_echo "$as_me: failed program was:" >&5 | |
3845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
db137867 | 3846 | |
030272f3 VY |
3847 | # Broken: fails on valid input. |
3848 | continue | |
db137867 | 3849 | fi |
db137867 | 3850 | |
030272f3 | 3851 | rm -f conftest.err conftest.$ac_ext |
db137867 | 3852 | |
030272f3 VY |
3853 | # OK, works on sane cases. Now check whether nonexistent headers |
3854 | # can be detected and how. | |
3855 | cat >conftest.$ac_ext <<_ACEOF | |
3856 | /* confdefs.h. */ | |
3857 | _ACEOF | |
3858 | cat confdefs.h >>conftest.$ac_ext | |
3859 | cat >>conftest.$ac_ext <<_ACEOF | |
3860 | /* end confdefs.h. */ | |
3861 | #include <ac_nonexistent.h> | |
3862 | _ACEOF | |
3863 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3864 | case "(($ac_try" in | |
3865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3866 | *) ac_try_echo=$ac_try;; | |
3867 | esac | |
3868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3869 | $as_echo "$ac_try_echo") >&5 | |
3870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3871 | ac_status=$? | |
3872 | grep -v '^ *+' conftest.er1 >conftest.err | |
3873 | rm -f conftest.er1 | |
3874 | cat conftest.err >&5 | |
3875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3876 | (exit $ac_status); } >/dev/null && { | |
3877 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3878 | test ! -s conftest.err | |
3879 | }; then | |
3880 | # Broken: success on invalid input. | |
3881 | continue | |
3882 | else | |
3883 | $as_echo "$as_me: failed program was:" >&5 | |
3884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
db137867 | 3885 | |
030272f3 VY |
3886 | # Passes both tests. |
3887 | ac_preproc_ok=: | |
3888 | break | |
3889 | fi | |
db137867 | 3890 | |
030272f3 VY |
3891 | rm -f conftest.err conftest.$ac_ext |
3892 | ||
3893 | done | |
3894 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3895 | rm -f conftest.err conftest.$ac_ext | |
3896 | if $ac_preproc_ok; then | |
3897 | : | |
db137867 | 3898 | else |
030272f3 VY |
3899 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3901 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3902 | See \`config.log' for more details." >&5 | |
3903 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3904 | See \`config.log' for more details." >&2;} | |
3905 | { (exit 1); exit 1; }; }; } | |
3906 | fi | |
3907 | ||
3908 | ac_ext=c | |
3909 | ac_cpp='$CPP $CPPFLAGS' | |
3910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3913 | ||
3914 | ||
3915 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3916 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
db137867 | 3917 | if test "${ac_cv_path_GREP+set}" = set; then |
030272f3 | 3918 | $as_echo_n "(cached) " >&6 |
db137867 | 3919 | else |
030272f3 | 3920 | if test -z "$GREP"; then |
db137867 | 3921 | ac_path_GREP_found=false |
030272f3 VY |
3922 | # Loop through the user's path and test for each of PROGNAME-LIST |
3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
3924 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3925 | do | |
3926 | IFS=$as_save_IFS | |
3927 | test -z "$as_dir" && as_dir=. | |
3928 | for ac_prog in grep ggrep; do | |
030272f3 VY |
3929 | for ac_exec_ext in '' $ac_executable_extensions; do |
3930 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3931 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3932 | # Check for GNU ac_path_GREP and select it if it is found. | |
db137867 AC |
3933 | # Check for GNU $ac_path_GREP |
3934 | case `"$ac_path_GREP" --version 2>&1` in | |
3935 | *GNU*) | |
3936 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3937 | *) | |
3938 | ac_count=0 | |
030272f3 | 3939 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
3940 | while : |
3941 | do | |
3942 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3943 | mv "conftest.tmp" "conftest.in" | |
3944 | cp "conftest.in" "conftest.nl" | |
030272f3 | 3945 | $as_echo 'GREP' >> "conftest.nl" |
db137867 AC |
3946 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3947 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3948 | ac_count=`expr $ac_count + 1` | |
3949 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3950 | # Best one so far, save it but keep looking for a better one | |
3951 | ac_cv_path_GREP="$ac_path_GREP" | |
3952 | ac_path_GREP_max=$ac_count | |
3953 | fi | |
3954 | # 10*(2^10) chars as input seems more than enough | |
3955 | test $ac_count -gt 10 && break | |
3956 | done | |
3957 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3958 | esac | |
3959 | ||
030272f3 VY |
3960 | $ac_path_GREP_found && break 3 |
3961 | done | |
db137867 AC |
3962 | done |
3963 | done | |
db137867 | 3964 | IFS=$as_save_IFS |
030272f3 VY |
3965 | if test -z "$ac_cv_path_GREP"; then |
3966 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3967 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
db137867 | 3968 | { (exit 1); exit 1; }; } |
030272f3 | 3969 | fi |
db137867 AC |
3970 | else |
3971 | ac_cv_path_GREP=$GREP | |
3972 | fi | |
3973 | ||
db137867 | 3974 | fi |
030272f3 VY |
3975 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3976 | $as_echo "$ac_cv_path_GREP" >&6; } | |
db137867 AC |
3977 | GREP="$ac_cv_path_GREP" |
3978 | ||
3979 | ||
030272f3 VY |
3980 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3981 | $as_echo_n "checking for egrep... " >&6; } | |
db137867 | 3982 | if test "${ac_cv_path_EGREP+set}" = set; then |
030272f3 | 3983 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3984 | else |
3985 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3986 | then ac_cv_path_EGREP="$GREP -E" | |
3987 | else | |
030272f3 | 3988 | if test -z "$EGREP"; then |
db137867 | 3989 | ac_path_EGREP_found=false |
030272f3 VY |
3990 | # Loop through the user's path and test for each of PROGNAME-LIST |
3991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
3992 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3993 | do | |
3994 | IFS=$as_save_IFS | |
3995 | test -z "$as_dir" && as_dir=. | |
3996 | for ac_prog in egrep; do | |
030272f3 VY |
3997 | for ac_exec_ext in '' $ac_executable_extensions; do |
3998 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3999 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4000 | # Check for GNU ac_path_EGREP and select it if it is found. | |
db137867 AC |
4001 | # Check for GNU $ac_path_EGREP |
4002 | case `"$ac_path_EGREP" --version 2>&1` in | |
4003 | *GNU*) | |
4004 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4005 | *) | |
4006 | ac_count=0 | |
030272f3 | 4007 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4008 | while : |
4009 | do | |
4010 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4011 | mv "conftest.tmp" "conftest.in" | |
4012 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4013 | $as_echo 'EGREP' >> "conftest.nl" |
db137867 AC |
4014 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4015 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4016 | ac_count=`expr $ac_count + 1` | |
4017 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4018 | # Best one so far, save it but keep looking for a better one | |
4019 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4020 | ac_path_EGREP_max=$ac_count | |
4021 | fi | |
4022 | # 10*(2^10) chars as input seems more than enough | |
4023 | test $ac_count -gt 10 && break | |
4024 | done | |
4025 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4026 | esac | |
4027 | ||
030272f3 VY |
4028 | $ac_path_EGREP_found && break 3 |
4029 | done | |
db137867 AC |
4030 | done |
4031 | done | |
db137867 | 4032 | IFS=$as_save_IFS |
030272f3 VY |
4033 | if test -z "$ac_cv_path_EGREP"; then |
4034 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4035 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
db137867 | 4036 | { (exit 1); exit 1; }; } |
030272f3 | 4037 | fi |
db137867 AC |
4038 | else |
4039 | ac_cv_path_EGREP=$EGREP | |
4040 | fi | |
4041 | ||
db137867 AC |
4042 | fi |
4043 | fi | |
030272f3 VY |
4044 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4045 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
db137867 AC |
4046 | EGREP="$ac_cv_path_EGREP" |
4047 | ||
4048 | ||
030272f3 VY |
4049 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4050 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4051 | if test "${ac_cv_header_stdc+set}" = set; then | |
4052 | $as_echo_n "(cached) " >&6 | |
db137867 | 4053 | else |
030272f3 | 4054 | cat >conftest.$ac_ext <<_ACEOF |
db137867 AC |
4055 | /* confdefs.h. */ |
4056 | _ACEOF | |
4057 | cat confdefs.h >>conftest.$ac_ext | |
4058 | cat >>conftest.$ac_ext <<_ACEOF | |
4059 | /* end confdefs.h. */ | |
030272f3 VY |
4060 | #include <stdlib.h> |
4061 | #include <stdarg.h> | |
4062 | #include <string.h> | |
4063 | #include <float.h> | |
db137867 | 4064 | |
db137867 AC |
4065 | int |
4066 | main () | |
4067 | { | |
030272f3 | 4068 | |
db137867 AC |
4069 | ; |
4070 | return 0; | |
4071 | } | |
4072 | _ACEOF | |
030272f3 VY |
4073 | rm -f conftest.$ac_objext |
4074 | if { (ac_try="$ac_compile" | |
db137867 AC |
4075 | case "(($ac_try" in |
4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4077 | *) ac_try_echo=$ac_try;; | |
4078 | esac | |
030272f3 VY |
4079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4080 | $as_echo "$ac_try_echo") >&5 | |
4081 | (eval "$ac_compile") 2>conftest.er1 | |
db137867 AC |
4082 | ac_status=$? |
4083 | grep -v '^ *+' conftest.er1 >conftest.err | |
4084 | rm -f conftest.er1 | |
4085 | cat conftest.err >&5 | |
030272f3 | 4086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
4087 | (exit $ac_status); } && { |
4088 | test -z "$ac_c_werror_flag" || | |
4089 | test ! -s conftest.err | |
030272f3 VY |
4090 | } && test -s conftest.$ac_objext; then |
4091 | ac_cv_header_stdc=yes | |
db137867 | 4092 | else |
030272f3 | 4093 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
4094 | sed 's/^/| /' conftest.$ac_ext >&5 |
4095 | ||
030272f3 | 4096 | ac_cv_header_stdc=no |
db137867 AC |
4097 | fi |
4098 | ||
030272f3 VY |
4099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4100 | ||
4101 | if test $ac_cv_header_stdc = yes; then | |
4102 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4103 | cat >conftest.$ac_ext <<_ACEOF | |
4104 | /* confdefs.h. */ | |
4105 | _ACEOF | |
4106 | cat confdefs.h >>conftest.$ac_ext | |
4107 | cat >>conftest.$ac_ext <<_ACEOF | |
4108 | /* end confdefs.h. */ | |
4109 | #include <string.h> | |
4110 | ||
4111 | _ACEOF | |
4112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4113 | $EGREP "memchr" >/dev/null 2>&1; then | |
db137867 AC |
4114 | : |
4115 | else | |
030272f3 | 4116 | ac_cv_header_stdc=no |
db137867 | 4117 | fi |
030272f3 | 4118 | rm -f conftest* |
db137867 AC |
4119 | |
4120 | fi | |
4121 | ||
030272f3 VY |
4122 | if test $ac_cv_header_stdc = yes; then |
4123 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
db137867 AC |
4124 | cat >conftest.$ac_ext <<_ACEOF |
4125 | /* confdefs.h. */ | |
4126 | _ACEOF | |
4127 | cat confdefs.h >>conftest.$ac_ext | |
4128 | cat >>conftest.$ac_ext <<_ACEOF | |
4129 | /* end confdefs.h. */ | |
030272f3 | 4130 | #include <stdlib.h> |
db137867 AC |
4131 | |
4132 | _ACEOF | |
030272f3 VY |
4133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4134 | $EGREP "free" >/dev/null 2>&1; then | |
4135 | : | |
db137867 | 4136 | else |
030272f3 | 4137 | ac_cv_header_stdc=no |
db137867 | 4138 | fi |
030272f3 | 4139 | rm -f conftest* |
db137867 AC |
4140 | |
4141 | fi | |
db137867 | 4142 | |
030272f3 VY |
4143 | if test $ac_cv_header_stdc = yes; then |
4144 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4145 | if test "$cross_compiling" = yes; then | |
4146 | : | |
db137867 AC |
4147 | else |
4148 | cat >conftest.$ac_ext <<_ACEOF | |
4149 | /* confdefs.h. */ | |
4150 | _ACEOF | |
4151 | cat confdefs.h >>conftest.$ac_ext | |
4152 | cat >>conftest.$ac_ext <<_ACEOF | |
4153 | /* end confdefs.h. */ | |
030272f3 VY |
4154 | #include <ctype.h> |
4155 | #include <stdlib.h> | |
4156 | #if ((' ' & 0x0FF) == 0x020) | |
4157 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4158 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4159 | #else | |
4160 | # define ISLOWER(c) \ | |
4161 | (('a' <= (c) && (c) <= 'i') \ | |
4162 | || ('j' <= (c) && (c) <= 'r') \ | |
4163 | || ('s' <= (c) && (c) <= 'z')) | |
4164 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
4165 | #endif |
4166 | ||
030272f3 VY |
4167 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4168 | int | |
4169 | main () | |
4170 | { | |
4171 | int i; | |
4172 | for (i = 0; i < 256; i++) | |
4173 | if (XOR (islower (i), ISLOWER (i)) | |
4174 | || toupper (i) != TOUPPER (i)) | |
4175 | return 2; | |
db137867 AC |
4176 | return 0; |
4177 | } | |
4178 | _ACEOF | |
030272f3 VY |
4179 | rm -f conftest$ac_exeext |
4180 | if { (ac_try="$ac_link" | |
4181 | case "(($ac_try" in | |
4182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4183 | *) ac_try_echo=$ac_try;; | |
4184 | esac | |
4185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4186 | $as_echo "$ac_try_echo") >&5 | |
4187 | (eval "$ac_link") 2>&5 | |
4188 | ac_status=$? | |
4189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4191 | { (case "(($ac_try" in | |
4192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4193 | *) ac_try_echo=$ac_try;; | |
4194 | esac | |
4195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4196 | $as_echo "$ac_try_echo") >&5 | |
4197 | (eval "$ac_try") 2>&5 | |
4198 | ac_status=$? | |
4199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4200 | (exit $ac_status); }; }; then | |
4201 | : | |
4202 | else | |
4203 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4204 | $as_echo "$as_me: failed program was:" >&5 | |
4205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4206 | ||
4207 | ( exit $ac_status ) | |
4208 | ac_cv_header_stdc=no | |
4209 | fi | |
4210 | rm -rf conftest.dSYM | |
4211 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4212 | fi | |
4213 | ||
4214 | ||
4215 | fi | |
4216 | fi | |
4217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4218 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4219 | if test $ac_cv_header_stdc = yes; then | |
4220 | ||
4221 | cat >>confdefs.h <<\_ACEOF | |
4222 | #define STDC_HEADERS 1 | |
4223 | _ACEOF | |
4224 | ||
4225 | fi | |
4226 | ||
4227 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4228 | ||
4229 | ||
4230 | ||
4231 | ||
4232 | ||
4233 | ||
4234 | ||
4235 | ||
4236 | ||
4237 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4238 | inttypes.h stdint.h unistd.h | |
4239 | do | |
4240 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4241 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4242 | $as_echo_n "checking for $ac_header... " >&6; } | |
4243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4244 | $as_echo_n "(cached) " >&6 | |
4245 | else | |
4246 | cat >conftest.$ac_ext <<_ACEOF | |
4247 | /* confdefs.h. */ | |
4248 | _ACEOF | |
4249 | cat confdefs.h >>conftest.$ac_ext | |
4250 | cat >>conftest.$ac_ext <<_ACEOF | |
4251 | /* end confdefs.h. */ | |
4252 | $ac_includes_default | |
4253 | ||
4254 | #include <$ac_header> | |
4255 | _ACEOF | |
db137867 AC |
4256 | rm -f conftest.$ac_objext |
4257 | if { (ac_try="$ac_compile" | |
4258 | case "(($ac_try" in | |
4259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4260 | *) ac_try_echo=$ac_try;; | |
4261 | esac | |
030272f3 VY |
4262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4263 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
4264 | (eval "$ac_compile") 2>conftest.er1 |
4265 | ac_status=$? | |
4266 | grep -v '^ *+' conftest.er1 >conftest.err | |
4267 | rm -f conftest.er1 | |
4268 | cat conftest.err >&5 | |
030272f3 | 4269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
4270 | (exit $ac_status); } && { |
4271 | test -z "$ac_c_werror_flag" || | |
4272 | test ! -s conftest.err | |
4273 | } && test -s conftest.$ac_objext; then | |
030272f3 | 4274 | eval "$as_ac_Header=yes" |
db137867 | 4275 | else |
030272f3 | 4276 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
4277 | sed 's/^/| /' conftest.$ac_ext >&5 |
4278 | ||
030272f3 | 4279 | eval "$as_ac_Header=no" |
db137867 AC |
4280 | fi |
4281 | ||
4282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4283 | fi | |
030272f3 VY |
4284 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4285 | $as_echo "$as_val"'` | |
4286 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4287 | $as_echo "$ac_res" >&6; } | |
4288 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4289 | $as_echo "$as_val"'` | |
4290 | if test "x$as_val" = x""yes; then | |
4291 | cat >>confdefs.h <<_ACEOF | |
4292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
db137867 AC |
4293 | _ACEOF |
4294 | ||
4295 | fi | |
4296 | ||
030272f3 VY |
4297 | done |
4298 | ||
4299 | ||
4300 | ||
4301 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4302 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4303 | $as_echo_n "checking for minix/config.h... " >&6; } | |
4304 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4305 | $as_echo_n "(cached) " >&6 | |
4306 | fi | |
4307 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4308 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
db137867 | 4309 | else |
030272f3 VY |
4310 | # Is the header compilable? |
4311 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4312 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
4313 | cat >conftest.$ac_ext <<_ACEOF | |
4314 | /* confdefs.h. */ | |
db137867 | 4315 | _ACEOF |
030272f3 VY |
4316 | cat confdefs.h >>conftest.$ac_ext |
4317 | cat >>conftest.$ac_ext <<_ACEOF | |
4318 | /* end confdefs.h. */ | |
4319 | $ac_includes_default | |
4320 | #include <minix/config.h> | |
4321 | _ACEOF | |
4322 | rm -f conftest.$ac_objext | |
4323 | if { (ac_try="$ac_compile" | |
4324 | case "(($ac_try" in | |
4325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4326 | *) ac_try_echo=$ac_try;; | |
db137867 | 4327 | esac |
030272f3 VY |
4328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4329 | $as_echo "$ac_try_echo") >&5 | |
4330 | (eval "$ac_compile") 2>conftest.er1 | |
4331 | ac_status=$? | |
4332 | grep -v '^ *+' conftest.er1 >conftest.err | |
4333 | rm -f conftest.er1 | |
4334 | cat conftest.err >&5 | |
4335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4336 | (exit $ac_status); } && { | |
4337 | test -z "$ac_c_werror_flag" || | |
4338 | test ! -s conftest.err | |
4339 | } && test -s conftest.$ac_objext; then | |
4340 | ac_header_compiler=yes | |
db137867 | 4341 | else |
030272f3 VY |
4342 | $as_echo "$as_me: failed program was:" >&5 |
4343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
db137867 | 4344 | |
030272f3 | 4345 | ac_header_compiler=no |
db137867 | 4346 | fi |
db137867 | 4347 | |
030272f3 VY |
4348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4349 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4350 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 | 4351 | |
030272f3 VY |
4352 | # Is the header present? |
4353 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4354 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
4355 | cat >conftest.$ac_ext <<_ACEOF | |
4356 | /* confdefs.h. */ | |
4357 | _ACEOF | |
4358 | cat confdefs.h >>conftest.$ac_ext | |
4359 | cat >>conftest.$ac_ext <<_ACEOF | |
4360 | /* end confdefs.h. */ | |
4361 | #include <minix/config.h> | |
4362 | _ACEOF | |
4363 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4364 | case "(($ac_try" in | |
4365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4366 | *) ac_try_echo=$ac_try;; | |
db137867 | 4367 | esac |
030272f3 VY |
4368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4369 | $as_echo "$ac_try_echo") >&5 | |
4370 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4371 | ac_status=$? | |
4372 | grep -v '^ *+' conftest.er1 >conftest.err | |
4373 | rm -f conftest.er1 | |
4374 | cat conftest.err >&5 | |
4375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4376 | (exit $ac_status); } >/dev/null && { | |
4377 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4378 | test ! -s conftest.err | |
4379 | }; then | |
4380 | ac_header_preproc=yes | |
db137867 | 4381 | else |
030272f3 VY |
4382 | $as_echo "$as_me: failed program was:" >&5 |
4383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4384 | ||
4385 | ac_header_preproc=no | |
db137867 AC |
4386 | fi |
4387 | ||
030272f3 VY |
4388 | rm -f conftest.err conftest.$ac_ext |
4389 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4390 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 | 4391 | |
030272f3 VY |
4392 | # So? What about this header? |
4393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4394 | yes:no: ) | |
4395 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4396 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4397 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4398 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4399 | ac_header_preproc=yes | |
4400 | ;; | |
4401 | no:yes:* ) | |
4402 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4403 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4404 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4405 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4406 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4407 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4408 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4409 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4410 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4411 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4412 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4413 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
db137867 | 4414 | |
030272f3 | 4415 | ;; |
db137867 | 4416 | esac |
030272f3 VY |
4417 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4418 | $as_echo_n "checking for minix/config.h... " >&6; } | |
4419 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4420 | $as_echo_n "(cached) " >&6 | |
db137867 | 4421 | else |
030272f3 | 4422 | ac_cv_header_minix_config_h=$ac_header_preproc |
db137867 | 4423 | fi |
030272f3 VY |
4424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4425 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
db137867 | 4426 | |
db137867 | 4427 | fi |
030272f3 VY |
4428 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
4429 | MINIX=yes | |
db137867 | 4430 | else |
030272f3 | 4431 | MINIX= |
db137867 AC |
4432 | fi |
4433 | ||
4434 | ||
030272f3 | 4435 | if test "$MINIX" = yes; then |
db137867 | 4436 | |
030272f3 VY |
4437 | cat >>confdefs.h <<\_ACEOF |
4438 | #define _POSIX_SOURCE 1 | |
4439 | _ACEOF | |
db137867 AC |
4440 | |
4441 | ||
030272f3 VY |
4442 | cat >>confdefs.h <<\_ACEOF |
4443 | #define _POSIX_1_SOURCE 2 | |
4444 | _ACEOF | |
4445 | ||
4446 | ||
4447 | cat >>confdefs.h <<\_ACEOF | |
4448 | #define _MINIX 1 | |
4449 | _ACEOF | |
4450 | ||
db137867 | 4451 | fi |
db137867 | 4452 | |
db137867 AC |
4453 | |
4454 | ||
030272f3 VY |
4455 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4456 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4457 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4458 | $as_echo_n "(cached) " >&6 | |
db137867 | 4459 | else |
030272f3 VY |
4460 | cat >conftest.$ac_ext <<_ACEOF |
4461 | /* confdefs.h. */ | |
4462 | _ACEOF | |
4463 | cat confdefs.h >>conftest.$ac_ext | |
4464 | cat >>conftest.$ac_ext <<_ACEOF | |
4465 | /* end confdefs.h. */ | |
db137867 | 4466 | |
030272f3 VY |
4467 | # define __EXTENSIONS__ 1 |
4468 | $ac_includes_default | |
4469 | int | |
4470 | main () | |
4471 | { | |
4472 | ||
4473 | ; | |
4474 | return 0; | |
4475 | } | |
4476 | _ACEOF | |
4477 | rm -f conftest.$ac_objext | |
4478 | if { (ac_try="$ac_compile" | |
4479 | case "(($ac_try" in | |
4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4481 | *) ac_try_echo=$ac_try;; | |
db137867 | 4482 | esac |
030272f3 VY |
4483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4484 | $as_echo "$ac_try_echo") >&5 | |
4485 | (eval "$ac_compile") 2>conftest.er1 | |
4486 | ac_status=$? | |
4487 | grep -v '^ *+' conftest.er1 >conftest.err | |
4488 | rm -f conftest.er1 | |
4489 | cat conftest.err >&5 | |
4490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); } && { | |
4492 | test -z "$ac_c_werror_flag" || | |
4493 | test ! -s conftest.err | |
4494 | } && test -s conftest.$ac_objext; then | |
4495 | ac_cv_safe_to_define___extensions__=yes | |
db137867 | 4496 | else |
030272f3 VY |
4497 | $as_echo "$as_me: failed program was:" >&5 |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4499 | ||
4500 | ac_cv_safe_to_define___extensions__=no | |
db137867 AC |
4501 | fi |
4502 | ||
030272f3 VY |
4503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4504 | fi | |
4505 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4506 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4507 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4508 | cat >>confdefs.h <<\_ACEOF | |
4509 | #define __EXTENSIONS__ 1 | |
4510 | _ACEOF | |
db137867 | 4511 | |
030272f3 VY |
4512 | cat >>confdefs.h <<\_ACEOF |
4513 | #define _ALL_SOURCE 1 | |
4514 | _ACEOF | |
4515 | ||
4516 | cat >>confdefs.h <<\_ACEOF | |
4517 | #define _GNU_SOURCE 1 | |
4518 | _ACEOF | |
4519 | ||
4520 | cat >>confdefs.h <<\_ACEOF | |
4521 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4522 | _ACEOF | |
4523 | ||
4524 | cat >>confdefs.h <<\_ACEOF | |
4525 | #define _TANDEM_SOURCE 1 | |
4526 | _ACEOF | |
4527 | ||
4528 | ||
4529 | ||
4530 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 | |
4531 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4532 | if test "${ac_cv_prog_cc_c99+set}" = set; then | |
4533 | $as_echo_n "(cached) " >&6 | |
db137867 | 4534 | else |
030272f3 VY |
4535 | ac_cv_prog_cc_c99=no |
4536 | ac_save_CC=$CC | |
4537 | cat >conftest.$ac_ext <<_ACEOF | |
4538 | /* confdefs.h. */ | |
4539 | _ACEOF | |
4540 | cat confdefs.h >>conftest.$ac_ext | |
4541 | cat >>conftest.$ac_ext <<_ACEOF | |
4542 | /* end confdefs.h. */ | |
4543 | #include <stdarg.h> | |
4544 | #include <stdbool.h> | |
4545 | #include <stdlib.h> | |
4546 | #include <wchar.h> | |
4547 | #include <stdio.h> | |
db137867 | 4548 | |
030272f3 VY |
4549 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
4550 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4551 | #define showlist(...) puts (#__VA_ARGS__) | |
4552 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4553 | static void | |
4554 | test_varargs_macros (void) | |
4555 | { | |
4556 | int x = 1234; | |
4557 | int y = 5678; | |
4558 | debug ("Flag"); | |
4559 | debug ("X = %d\n", x); | |
4560 | showlist (The first, second, and third items.); | |
4561 | report (x>y, "x is %d but y is %d", x, y); | |
4562 | } | |
db137867 | 4563 | |
030272f3 VY |
4564 | // Check long long types. |
4565 | #define BIG64 18446744073709551615ull | |
4566 | #define BIG32 4294967295ul | |
4567 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4568 | #if !BIG_OK | |
4569 | your preprocessor is broken; | |
4570 | #endif | |
4571 | #if BIG_OK | |
4572 | #else | |
4573 | your preprocessor is broken; | |
4574 | #endif | |
4575 | static long long int bignum = -9223372036854775807LL; | |
4576 | static unsigned long long int ubignum = BIG64; | |
db137867 | 4577 | |
030272f3 VY |
4578 | struct incomplete_array |
4579 | { | |
4580 | int datasize; | |
4581 | double data[]; | |
4582 | }; | |
db137867 | 4583 | |
030272f3 VY |
4584 | struct named_init { |
4585 | int number; | |
4586 | const wchar_t *name; | |
4587 | double average; | |
4588 | }; | |
db137867 | 4589 | |
030272f3 | 4590 | typedef const char *ccp; |
db137867 | 4591 | |
030272f3 VY |
4592 | static inline int |
4593 | test_restrict (ccp restrict text) | |
4594 | { | |
4595 | // See if C++-style comments work. | |
4596 | // Iterate through items via the restricted pointer. | |
4597 | // Also check for declarations in for loops. | |
4598 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4599 | continue; | |
4600 | return 0; | |
4601 | } | |
db137867 | 4602 | |
030272f3 VY |
4603 | // Check varargs and va_copy. |
4604 | static void | |
4605 | test_varargs (const char *format, ...) | |
4606 | { | |
4607 | va_list args; | |
4608 | va_start (args, format); | |
4609 | va_list args_copy; | |
4610 | va_copy (args_copy, args); | |
db137867 | 4611 | |
030272f3 VY |
4612 | const char *str; |
4613 | int number; | |
4614 | float fnumber; | |
db137867 | 4615 | |
030272f3 VY |
4616 | while (*format) |
4617 | { | |
4618 | switch (*format++) | |
4619 | { | |
4620 | case 's': // string | |
4621 | str = va_arg (args_copy, const char *); | |
4622 | break; | |
4623 | case 'd': // int | |
4624 | number = va_arg (args_copy, int); | |
4625 | break; | |
4626 | case 'f': // float | |
4627 | fnumber = va_arg (args_copy, double); | |
4628 | break; | |
4629 | default: | |
4630 | break; | |
4631 | } | |
4632 | } | |
4633 | va_end (args_copy); | |
4634 | va_end (args); | |
4635 | } | |
db137867 | 4636 | |
030272f3 VY |
4637 | int |
4638 | main () | |
4639 | { | |
db137867 | 4640 | |
030272f3 VY |
4641 | // Check bool. |
4642 | _Bool success = false; | |
db137867 | 4643 | |
030272f3 VY |
4644 | // Check restrict. |
4645 | if (test_restrict ("String literal") == 0) | |
4646 | success = true; | |
4647 | char *restrict newvar = "Another string"; | |
db137867 | 4648 | |
030272f3 VY |
4649 | // Check varargs. |
4650 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4651 | test_varargs_macros (); | |
db137867 | 4652 | |
030272f3 VY |
4653 | // Check flexible array members. |
4654 | struct incomplete_array *ia = | |
4655 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4656 | ia->datasize = 10; | |
4657 | for (int i = 0; i < ia->datasize; ++i) | |
4658 | ia->data[i] = i * 1.234; | |
db137867 | 4659 | |
030272f3 VY |
4660 | // Check named initializers. |
4661 | struct named_init ni = { | |
4662 | .number = 34, | |
4663 | .name = L"Test wide string", | |
4664 | .average = 543.34343, | |
4665 | }; | |
db137867 | 4666 | |
030272f3 | 4667 | ni.number = 58; |
db137867 | 4668 | |
030272f3 VY |
4669 | int dynamic_array[ni.number]; |
4670 | dynamic_array[ni.number - 1] = 543; | |
4671 | ||
4672 | // work around unused variable warnings | |
4673 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4674 | || dynamic_array[ni.number - 1] != 543); | |
4675 | ||
4676 | ; | |
4677 | return 0; | |
4678 | } | |
4679 | _ACEOF | |
4680 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | |
4681 | do | |
4682 | CC="$ac_save_CC $ac_arg" | |
4683 | rm -f conftest.$ac_objext | |
4684 | if { (ac_try="$ac_compile" | |
4685 | case "(($ac_try" in | |
4686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4687 | *) ac_try_echo=$ac_try;; | |
4688 | esac | |
4689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4690 | $as_echo "$ac_try_echo") >&5 | |
4691 | (eval "$ac_compile") 2>conftest.er1 | |
4692 | ac_status=$? | |
4693 | grep -v '^ *+' conftest.er1 >conftest.err | |
4694 | rm -f conftest.er1 | |
4695 | cat conftest.err >&5 | |
4696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4697 | (exit $ac_status); } && { | |
4698 | test -z "$ac_c_werror_flag" || | |
4699 | test ! -s conftest.err | |
4700 | } && test -s conftest.$ac_objext; then | |
4701 | ac_cv_prog_cc_c99=$ac_arg | |
db137867 | 4702 | else |
030272f3 VY |
4703 | $as_echo "$as_me: failed program was:" >&5 |
4704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4705 | ||
4706 | ||
db137867 AC |
4707 | fi |
4708 | ||
030272f3 VY |
4709 | rm -f core conftest.err conftest.$ac_objext |
4710 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4711 | done | |
4712 | rm -f conftest.$ac_ext | |
4713 | CC=$ac_save_CC | |
4714 | ||
db137867 | 4715 | fi |
030272f3 VY |
4716 | # AC_CACHE_VAL |
4717 | case "x$ac_cv_prog_cc_c99" in | |
4718 | x) | |
4719 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
4720 | $as_echo "none needed" >&6; } ;; | |
4721 | xno) | |
4722 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
4723 | $as_echo "unsupported" >&6; } ;; | |
4724 | *) | |
4725 | CC="$CC $ac_cv_prog_cc_c99" | |
4726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 | |
4727 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
db137867 | 4728 | esac |
db137867 AC |
4729 | |
4730 | ||
030272f3 VY |
4731 | |
4732 | ||
4733 | if test x"$ac_cv_prog_cc_c99" = "xno"; then | |
4734 | { { $as_echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5 | |
4735 | $as_echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;} | |
4736 | { (exit 1); exit 1; }; } | |
4737 | fi | |
4738 | ||
4739 | ||
4740 | # Find a good install program. We prefer a C program (faster), | |
4741 | # so one script is as good as another. But avoid the broken or | |
4742 | # incompatible versions: | |
4743 | # SysV /etc/install, /usr/sbin/install | |
4744 | # SunOS /usr/etc/install | |
4745 | # IRIX /sbin/install | |
4746 | # AIX /bin/install | |
4747 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4748 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4749 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4750 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4751 | # OS/2's system install, which has a completely different semantic | |
4752 | # ./install, which can be erroneously created by make from ./install.sh. | |
4753 | # Reject install programs that cannot install multiple files. | |
4754 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4755 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4756 | if test -z "$INSTALL"; then | |
4757 | if test "${ac_cv_path_install+set}" = set; then | |
4758 | $as_echo_n "(cached) " >&6 | |
db137867 | 4759 | else |
030272f3 | 4760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
db137867 AC |
4761 | for as_dir in $PATH |
4762 | do | |
4763 | IFS=$as_save_IFS | |
4764 | test -z "$as_dir" && as_dir=. | |
030272f3 VY |
4765 | # Account for people who put trailing slashes in PATH elements. |
4766 | case $as_dir/ in | |
4767 | ./ | .// | /cC/* | \ | |
4768 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4769 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4770 | /usr/ucb/* ) ;; | |
4771 | *) | |
4772 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4773 | # Don't use installbsd from OSF since it installs stuff as root | |
4774 | # by default. | |
4775 | for ac_prog in ginstall scoinst install; do | |
4776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4777 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4778 | if test $ac_prog = install && | |
4779 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4780 | # AIX install. It has an incompatible calling convention. | |
4781 | : | |
4782 | elif test $ac_prog = install && | |
4783 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4784 | # program-specific install script used by HP pwplus--don't use. | |
4785 | : | |
4786 | else | |
4787 | rm -rf conftest.one conftest.two conftest.dir | |
4788 | echo one > conftest.one | |
4789 | echo two > conftest.two | |
4790 | mkdir conftest.dir | |
4791 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4792 | test -s conftest.one && test -s conftest.two && | |
4793 | test -s conftest.dir/conftest.one && | |
4794 | test -s conftest.dir/conftest.two | |
4795 | then | |
4796 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4797 | break 3 | |
4798 | fi | |
4799 | fi | |
4800 | fi | |
4801 | done | |
db137867 | 4802 | done |
030272f3 VY |
4803 | ;; |
4804 | esac | |
4805 | ||
db137867 AC |
4806 | done |
4807 | IFS=$as_save_IFS | |
db137867 | 4808 | |
030272f3 VY |
4809 | rm -rf conftest.one conftest.two conftest.dir |
4810 | ||
4811 | fi | |
4812 | if test "${ac_cv_path_install+set}" = set; then | |
4813 | INSTALL=$ac_cv_path_install | |
4814 | else | |
4815 | # As a last resort, use the slow shell script. Don't cache a | |
4816 | # value for INSTALL within a source directory, because that will | |
4817 | # break other packages using the cache if that directory is | |
4818 | # removed, or if the value is a relative name. | |
4819 | INSTALL=$ac_install_sh | |
4820 | fi | |
db137867 | 4821 | fi |
030272f3 VY |
4822 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4823 | $as_echo "$INSTALL" >&6; } | |
db137867 | 4824 | |
030272f3 VY |
4825 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4826 | # It thinks the first close brace ends the variable substitution. | |
4827 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
db137867 | 4828 | |
030272f3 | 4829 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
db137867 | 4830 | |
030272f3 | 4831 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
db137867 | 4832 | |
030272f3 VY |
4833 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4834 | $as_echo_n "checking for egrep... " >&6; } | |
4835 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4836 | $as_echo_n "(cached) " >&6 | |
db137867 | 4837 | else |
030272f3 VY |
4838 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4839 | then ac_cv_path_EGREP="$GREP -E" | |
4840 | else | |
4841 | if test -z "$EGREP"; then | |
4842 | ac_path_EGREP_found=false | |
4843 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4845 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4846 | do | |
4847 | IFS=$as_save_IFS | |
4848 | test -z "$as_dir" && as_dir=. | |
4849 | for ac_prog in egrep; do | |
4850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4851 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4852 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4853 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4854 | # Check for GNU $ac_path_EGREP | |
4855 | case `"$ac_path_EGREP" --version 2>&1` in | |
4856 | *GNU*) | |
4857 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4858 | *) | |
4859 | ac_count=0 | |
4860 | $as_echo_n 0123456789 >"conftest.in" | |
4861 | while : | |
4862 | do | |
4863 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4864 | mv "conftest.tmp" "conftest.in" | |
4865 | cp "conftest.in" "conftest.nl" | |
4866 | $as_echo 'EGREP' >> "conftest.nl" | |
4867 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4868 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4869 | ac_count=`expr $ac_count + 1` | |
4870 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4871 | # Best one so far, save it but keep looking for a better one | |
4872 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4873 | ac_path_EGREP_max=$ac_count | |
4874 | fi | |
4875 | # 10*(2^10) chars as input seems more than enough | |
4876 | test $ac_count -gt 10 && break | |
4877 | done | |
4878 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4879 | esac | |
db137867 | 4880 | |
030272f3 VY |
4881 | $ac_path_EGREP_found && break 3 |
4882 | done | |
4883 | done | |
4884 | done | |
4885 | IFS=$as_save_IFS | |
4886 | if test -z "$ac_cv_path_EGREP"; then | |
4887 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4888 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4889 | { (exit 1); exit 1; }; } | |
4890 | fi | |
db137867 | 4891 | else |
030272f3 | 4892 | ac_cv_path_EGREP=$EGREP |
db137867 | 4893 | fi |
030272f3 VY |
4894 | |
4895 | fi | |
4896 | fi | |
4897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4898 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4899 | EGREP="$ac_cv_path_EGREP" | |
4900 | ||
4901 | ||
4902 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4903 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4904 | if test "${ac_cv_path_SED+set}" = set; then | |
4905 | $as_echo_n "(cached) " >&6 | |
4906 | else | |
4907 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4908 | for ac_i in 1 2 3 4 5 6 7; do | |
4909 | ac_script="$ac_script$as_nl$ac_script" | |
4910 | done | |
4911 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4912 | $as_unset ac_script || ac_script= | |
4913 | if test -z "$SED"; then | |
4914 | ac_path_SED_found=false | |
4915 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4917 | for as_dir in $PATH | |
4918 | do | |
4919 | IFS=$as_save_IFS | |
4920 | test -z "$as_dir" && as_dir=. | |
4921 | for ac_prog in sed gsed; do | |
4922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4923 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4924 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4925 | # Check for GNU ac_path_SED and select it if it is found. | |
4926 | # Check for GNU $ac_path_SED | |
4927 | case `"$ac_path_SED" --version 2>&1` in | |
4928 | *GNU*) | |
4929 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4930 | *) | |
4931 | ac_count=0 | |
4932 | $as_echo_n 0123456789 >"conftest.in" | |
4933 | while : | |
4934 | do | |
4935 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4936 | mv "conftest.tmp" "conftest.in" | |
4937 | cp "conftest.in" "conftest.nl" | |
4938 | $as_echo '' >> "conftest.nl" | |
4939 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4940 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4941 | ac_count=`expr $ac_count + 1` | |
4942 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4943 | # Best one so far, save it but keep looking for a better one | |
4944 | ac_cv_path_SED="$ac_path_SED" | |
4945 | ac_path_SED_max=$ac_count | |
db137867 | 4946 | fi |
030272f3 VY |
4947 | # 10*(2^10) chars as input seems more than enough |
4948 | test $ac_count -gt 10 && break | |
db137867 | 4949 | done |
030272f3 VY |
4950 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4951 | esac | |
4952 | ||
4953 | $ac_path_SED_found && break 3 | |
4954 | done | |
4955 | done | |
4956 | done | |
4957 | IFS=$as_save_IFS | |
4958 | if test -z "$ac_cv_path_SED"; then | |
4959 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4960 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4961 | { (exit 1); exit 1; }; } | |
4962 | fi | |
db137867 | 4963 | else |
030272f3 | 4964 | ac_cv_path_SED=$SED |
db137867 | 4965 | fi |
030272f3 | 4966 | |
db137867 | 4967 | fi |
030272f3 VY |
4968 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
4969 | $as_echo "$ac_cv_path_SED" >&6; } | |
4970 | SED="$ac_cv_path_SED" | |
4971 | rm -f conftest.sed | |
db137867 | 4972 | |
030272f3 VY |
4973 | |
4974 | F77=no | |
4975 | CXX=no | |
4976 | GCJ=no | |
4977 | ||
4978 | # Check whether --enable-static was given. | |
4979 | if test "${enable_static+set}" = set; then | |
4980 | enableval=$enable_static; p=${PACKAGE-default} | |
4981 | case $enableval in | |
4982 | yes) enable_static=yes ;; | |
4983 | no) enable_static=no ;; | |
4984 | *) | |
4985 | enable_static=no | |
4986 | # Look at the argument we got. We use all the common list separators. | |
4987 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4988 | for pkg in $enableval; do | |
4989 | IFS="$lt_save_ifs" | |
4990 | if test "X$pkg" = "X$p"; then | |
4991 | enable_static=yes | |
4992 | fi | |
4993 | done | |
4994 | IFS="$lt_save_ifs" | |
4995 | ;; | |
4996 | esac | |
db137867 | 4997 | else |
030272f3 | 4998 | enable_static=no |
db137867 | 4999 | fi |
030272f3 VY |
5000 | |
5001 | ||
5002 | ||
5003 | # Check whether --enable-shared was given. | |
5004 | if test "${enable_shared+set}" = set; then | |
5005 | enableval=$enable_shared; p=${PACKAGE-default} | |
5006 | case $enableval in | |
5007 | yes) enable_shared=yes ;; | |
5008 | no) enable_shared=no ;; | |
5009 | *) | |
5010 | enable_shared=no | |
5011 | # Look at the argument we got. We use all the common list separators. | |
5012 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5013 | for pkg in $enableval; do | |
5014 | IFS="$lt_save_ifs" | |
5015 | if test "X$pkg" = "X$p"; then | |
5016 | enable_shared=yes | |
5017 | fi | |
5018 | done | |
5019 | IFS="$lt_save_ifs" | |
5020 | ;; | |
5021 | esac | |
db137867 | 5022 | else |
030272f3 | 5023 | enable_shared=yes |
db137867 | 5024 | fi |
db137867 AC |
5025 | |
5026 | ||
030272f3 VY |
5027 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
5028 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5029 | # Check whether --enable-maintainer-mode was given. | |
5030 | if test "${enable_maintainer_mode+set}" = set; then | |
5031 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
db137867 | 5032 | else |
030272f3 | 5033 | USE_MAINTAINER_MODE=no |
db137867 | 5034 | fi |
030272f3 VY |
5035 | |
5036 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
5037 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5038 | if test $USE_MAINTAINER_MODE = yes; then | |
5039 | MAINTAINER_MODE_TRUE= | |
5040 | MAINTAINER_MODE_FALSE='#' | |
5041 | else | |
5042 | MAINTAINER_MODE_TRUE='#' | |
5043 | MAINTAINER_MODE_FALSE= | |
5044 | fi | |
5045 | ||
5046 | MAINT=$MAINTAINER_MODE_TRUE | |
5047 | ||
5048 | ||
5049 | ||
5050 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
5051 | $as_echo_n "checking for library containing strerror... " >&6; } | |
5052 | if test "${ac_cv_search_strerror+set}" = set; then | |
5053 | $as_echo_n "(cached) " >&6 | |
5054 | else | |
5055 | ac_func_search_save_LIBS=$LIBS | |
5056 | cat >conftest.$ac_ext <<_ACEOF | |
5057 | /* confdefs.h. */ | |
5058 | _ACEOF | |
5059 | cat confdefs.h >>conftest.$ac_ext | |
5060 | cat >>conftest.$ac_ext <<_ACEOF | |
5061 | /* end confdefs.h. */ | |
5062 | ||
5063 | /* Override any GCC internal prototype to avoid an error. | |
5064 | Use char because int might match the return type of a GCC | |
5065 | builtin and then its argument prototype would still apply. */ | |
5066 | #ifdef __cplusplus | |
5067 | extern "C" | |
5068 | #endif | |
5069 | char strerror (); | |
5070 | int | |
5071 | main () | |
5072 | { | |
5073 | return strerror (); | |
5074 | ; | |
5075 | return 0; | |
5076 | } | |
5077 | _ACEOF | |
5078 | for ac_lib in '' cposix; do | |
5079 | if test -z "$ac_lib"; then | |
5080 | ac_res="none required" | |
5081 | else | |
5082 | ac_res=-l$ac_lib | |
5083 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5084 | fi | |
5085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5086 | if { (ac_try="$ac_link" | |
5087 | case "(($ac_try" in | |
5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5089 | *) ac_try_echo=$ac_try;; | |
db137867 | 5090 | esac |
030272f3 VY |
5091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5092 | $as_echo "$ac_try_echo") >&5 | |
5093 | (eval "$ac_link") 2>conftest.er1 | |
5094 | ac_status=$? | |
5095 | grep -v '^ *+' conftest.er1 >conftest.err | |
5096 | rm -f conftest.er1 | |
5097 | cat conftest.err >&5 | |
5098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5099 | (exit $ac_status); } && { | |
5100 | test -z "$ac_c_werror_flag" || | |
5101 | test ! -s conftest.err | |
5102 | } && test -s conftest$ac_exeext && { | |
5103 | test "$cross_compiling" = yes || | |
5104 | $as_test_x conftest$ac_exeext | |
5105 | }; then | |
5106 | ac_cv_search_strerror=$ac_res | |
5107 | else | |
5108 | $as_echo "$as_me: failed program was:" >&5 | |
5109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5110 | ||
5111 | ||
5112 | fi | |
5113 | ||
5114 | rm -rf conftest.dSYM | |
5115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5116 | conftest$ac_exeext | |
5117 | if test "${ac_cv_search_strerror+set}" = set; then | |
5118 | break | |
5119 | fi | |
5120 | done | |
5121 | if test "${ac_cv_search_strerror+set}" = set; then | |
5122 | : | |
5123 | else | |
5124 | ac_cv_search_strerror=no | |
5125 | fi | |
5126 | rm conftest.$ac_ext | |
5127 | LIBS=$ac_func_search_save_LIBS | |
5128 | fi | |
5129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
5130 | $as_echo "$ac_cv_search_strerror" >&6; } | |
5131 | ac_res=$ac_cv_search_strerror | |
5132 | if test "$ac_res" != no; then | |
5133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5134 | ||
5135 | fi | |
5136 | ||
5137 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
5138 | $as_echo_n "checking for inline... " >&6; } | |
5139 | if test "${ac_cv_c_inline+set}" = set; then | |
5140 | $as_echo_n "(cached) " >&6 | |
5141 | else | |
5142 | ac_cv_c_inline=no | |
5143 | for ac_kw in inline __inline__ __inline; do | |
5144 | cat >conftest.$ac_ext <<_ACEOF | |
5145 | /* confdefs.h. */ | |
5146 | _ACEOF | |
5147 | cat confdefs.h >>conftest.$ac_ext | |
5148 | cat >>conftest.$ac_ext <<_ACEOF | |
5149 | /* end confdefs.h. */ | |
5150 | #ifndef __cplusplus | |
5151 | typedef int foo_t; | |
5152 | static $ac_kw foo_t static_foo () {return 0; } | |
5153 | $ac_kw foo_t foo () {return 0; } | |
5154 | #endif | |
5155 | ||
5156 | _ACEOF | |
5157 | rm -f conftest.$ac_objext | |
5158 | if { (ac_try="$ac_compile" | |
5159 | case "(($ac_try" in | |
5160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5161 | *) ac_try_echo=$ac_try;; | |
5162 | esac | |
5163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5164 | $as_echo "$ac_try_echo") >&5 | |
5165 | (eval "$ac_compile") 2>conftest.er1 | |
5166 | ac_status=$? | |
5167 | grep -v '^ *+' conftest.er1 >conftest.err | |
5168 | rm -f conftest.er1 | |
5169 | cat conftest.err >&5 | |
5170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5171 | (exit $ac_status); } && { | |
5172 | test -z "$ac_c_werror_flag" || | |
5173 | test ! -s conftest.err | |
5174 | } && test -s conftest.$ac_objext; then | |
5175 | ac_cv_c_inline=$ac_kw | |
5176 | else | |
5177 | $as_echo "$as_me: failed program was:" >&5 | |
5178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5179 | ||
5180 | ||
5181 | fi | |
5182 | ||
5183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5184 | test "$ac_cv_c_inline" != no && break | |
5185 | done | |
5186 | ||
5187 | fi | |
5188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5189 | $as_echo "$ac_cv_c_inline" >&6; } | |
5190 | ||
5191 | ||
5192 | case $ac_cv_c_inline in | |
5193 | inline | yes) ;; | |
5194 | *) | |
5195 | case $ac_cv_c_inline in | |
5196 | no) ac_val=;; | |
5197 | *) ac_val=$ac_cv_c_inline;; | |
5198 | esac | |
5199 | cat >>confdefs.h <<_ACEOF | |
5200 | #ifndef __cplusplus | |
5201 | #define inline $ac_val | |
5202 | #endif | |
5203 | _ACEOF | |
db137867 AC |
5204 | ;; |
5205 | esac | |
5206 | ||
030272f3 VY |
5207 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5208 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5209 | if test "${ac_cv_c_const+set}" = set; then | |
5210 | $as_echo_n "(cached) " >&6 | |
db137867 | 5211 | else |
030272f3 VY |
5212 | cat >conftest.$ac_ext <<_ACEOF |
5213 | /* confdefs.h. */ | |
5214 | _ACEOF | |
5215 | cat confdefs.h >>conftest.$ac_ext | |
5216 | cat >>conftest.$ac_ext <<_ACEOF | |
5217 | /* end confdefs.h. */ | |
5218 | ||
5219 | int | |
5220 | main () | |
5221 | { | |
5222 | /* FIXME: Include the comments suggested by Paul. */ | |
5223 | #ifndef __cplusplus | |
5224 | /* Ultrix mips cc rejects this. */ | |
5225 | typedef int charset[2]; | |
5226 | const charset cs; | |
5227 | /* SunOS 4.1.1 cc rejects this. */ | |
5228 | char const *const *pcpcc; | |
5229 | char **ppc; | |
5230 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5231 | struct point {int x, y;}; | |
5232 | static struct point const zero = {0,0}; | |
5233 | /* AIX XL C 1.02.0.0 rejects this. | |
5234 | It does not let you subtract one const X* pointer from another in | |
5235 | an arm of an if-expression whose if-part is not a constant | |
5236 | expression */ | |
5237 | const char *g = "string"; | |
5238 | pcpcc = &g + (g ? g-g : 0); | |
5239 | /* HPUX 7.0 cc rejects these. */ | |
5240 | ++pcpcc; | |
5241 | ppc = (char**) pcpcc; | |
5242 | pcpcc = (char const *const *) ppc; | |
5243 | { /* SCO 3.2v4 cc rejects this. */ | |
5244 | char *t; | |
5245 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5246 | ||
5247 | *t++ = 0; | |
5248 | if (s) return 0; | |
5249 | } | |
5250 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5251 | int x[] = {25, 17}; | |
5252 | const int *foo = &x[0]; | |
5253 | ++foo; | |
5254 | } | |
5255 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5256 | typedef const int *iptr; | |
5257 | iptr p = 0; | |
5258 | ++p; | |
5259 | } | |
5260 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5261 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5262 | struct s { int j; const int *ap[3]; }; | |
5263 | struct s *b; b->j = 5; | |
5264 | } | |
5265 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5266 | const int foo = 10; | |
5267 | if (!foo) return 0; | |
5268 | } | |
5269 | return !cs[0] && !zero.x; | |
5270 | #endif | |
5271 | ||
5272 | ; | |
5273 | return 0; | |
5274 | } | |
5275 | _ACEOF | |
5276 | rm -f conftest.$ac_objext | |
5277 | if { (ac_try="$ac_compile" | |
5278 | case "(($ac_try" in | |
5279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5280 | *) ac_try_echo=$ac_try;; | |
5281 | esac | |
5282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5283 | $as_echo "$ac_try_echo") >&5 | |
5284 | (eval "$ac_compile") 2>conftest.er1 | |
5285 | ac_status=$? | |
5286 | grep -v '^ *+' conftest.er1 >conftest.err | |
5287 | rm -f conftest.er1 | |
5288 | cat conftest.err >&5 | |
5289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5290 | (exit $ac_status); } && { | |
5291 | test -z "$ac_c_werror_flag" || | |
5292 | test ! -s conftest.err | |
5293 | } && test -s conftest.$ac_objext; then | |
5294 | ac_cv_c_const=yes | |
db137867 | 5295 | else |
030272f3 VY |
5296 | $as_echo "$as_me: failed program was:" >&5 |
5297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5298 | ||
5299 | ac_cv_c_const=no | |
5300 | fi | |
5301 | ||
5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5303 | fi | |
5304 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
5305 | $as_echo "$ac_cv_c_const" >&6; } | |
5306 | if test $ac_cv_c_const = no; then | |
5307 | ||
5308 | cat >>confdefs.h <<\_ACEOF | |
5309 | #define const /**/ | |
5310 | _ACEOF | |
5311 | ||
5312 | fi | |
5313 | ||
5314 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5315 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5316 | set x ${MAKE-make} | |
5317 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5318 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
5319 | $as_echo_n "(cached) " >&6 | |
5320 | else | |
5321 | cat >conftest.make <<\_ACEOF | |
5322 | SHELL = /bin/sh | |
5323 | all: | |
5324 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5325 | _ACEOF | |
5326 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5327 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5328 | *@@@%%%=?*=@@@%%%*) | |
5329 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5330 | *) | |
5331 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5332 | esac | |
5333 | rm -f conftest.make | |
5334 | fi | |
5335 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5336 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
5337 | $as_echo "yes" >&6; } | |
5338 | SET_MAKE= | |
5339 | else | |
5340 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5341 | $as_echo "no" >&6; } | |
5342 | SET_MAKE="MAKE=${MAKE-make}" | |
5343 | fi | |
5344 | ||
5345 | # Find a good install program. We prefer a C program (faster), | |
5346 | # so one script is as good as another. But avoid the broken or | |
5347 | # incompatible versions: | |
5348 | # SysV /etc/install, /usr/sbin/install | |
5349 | # SunOS /usr/etc/install | |
5350 | # IRIX /sbin/install | |
5351 | # AIX /bin/install | |
5352 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5353 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5354 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5355 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5356 | # OS/2's system install, which has a completely different semantic | |
5357 | # ./install, which can be erroneously created by make from ./install.sh. | |
5358 | # Reject install programs that cannot install multiple files. | |
5359 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5360 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
5361 | if test -z "$INSTALL"; then | |
5362 | if test "${ac_cv_path_install+set}" = set; then | |
5363 | $as_echo_n "(cached) " >&6 | |
5364 | else | |
5365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5366 | for as_dir in $PATH | |
5367 | do | |
5368 | IFS=$as_save_IFS | |
5369 | test -z "$as_dir" && as_dir=. | |
5370 | # Account for people who put trailing slashes in PATH elements. | |
5371 | case $as_dir/ in | |
5372 | ./ | .// | /cC/* | \ | |
5373 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5374 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5375 | /usr/ucb/* ) ;; | |
5376 | *) | |
5377 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5378 | # Don't use installbsd from OSF since it installs stuff as root | |
5379 | # by default. | |
5380 | for ac_prog in ginstall scoinst install; do | |
5381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5382 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
5383 | if test $ac_prog = install && | |
5384 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5385 | # AIX install. It has an incompatible calling convention. | |
5386 | : | |
5387 | elif test $ac_prog = install && | |
5388 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5389 | # program-specific install script used by HP pwplus--don't use. | |
5390 | : | |
5391 | else | |
5392 | rm -rf conftest.one conftest.two conftest.dir | |
5393 | echo one > conftest.one | |
5394 | echo two > conftest.two | |
5395 | mkdir conftest.dir | |
5396 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5397 | test -s conftest.one && test -s conftest.two && | |
5398 | test -s conftest.dir/conftest.one && | |
5399 | test -s conftest.dir/conftest.two | |
5400 | then | |
5401 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5402 | break 3 | |
5403 | fi | |
5404 | fi | |
5405 | fi | |
5406 | done | |
db137867 | 5407 | done |
030272f3 VY |
5408 | ;; |
5409 | esac | |
db137867 | 5410 | |
030272f3 VY |
5411 | done |
5412 | IFS=$as_save_IFS | |
db137867 | 5413 | |
030272f3 | 5414 | rm -rf conftest.one conftest.two conftest.dir |
db137867 | 5415 | |
030272f3 VY |
5416 | fi |
5417 | if test "${ac_cv_path_install+set}" = set; then | |
5418 | INSTALL=$ac_cv_path_install | |
5419 | else | |
5420 | # As a last resort, use the slow shell script. Don't cache a | |
5421 | # value for INSTALL within a source directory, because that will | |
5422 | # break other packages using the cache if that directory is | |
5423 | # removed, or if the value is a relative name. | |
5424 | INSTALL=$ac_install_sh | |
5425 | fi | |
5426 | fi | |
5427 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
5428 | $as_echo "$INSTALL" >&6; } | |
db137867 | 5429 | |
030272f3 VY |
5430 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5431 | # It thinks the first close brace ends the variable substitution. | |
5432 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
db137867 | 5433 | |
030272f3 | 5434 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
db137867 | 5435 | |
030272f3 | 5436 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
db137867 | 5437 | |
030272f3 VY |
5438 | # Extract the first word of "automake", so it can be a program name with args. |
5439 | set dummy automake; ac_word=$2 | |
5440 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5441 | $as_echo_n "checking for $ac_word... " >&6; } | |
5442 | if test "${ac_cv_path_AUTOMAKE+set}" = set; then | |
5443 | $as_echo_n "(cached) " >&6 | |
5444 | else | |
5445 | case $AUTOMAKE in | |
5446 | [\\/]* | ?:[\\/]*) | |
5447 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
db137867 | 5448 | ;; |
030272f3 VY |
5449 | *) |
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5451 | for as_dir in $PATH | |
5452 | do | |
5453 | IFS=$as_save_IFS | |
5454 | test -z "$as_dir" && as_dir=. | |
5455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5457 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" | |
5458 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5459 | break 2 | |
5460 | fi | |
5461 | done | |
5462 | done | |
5463 | IFS=$as_save_IFS | |
db137867 | 5464 | |
db137867 | 5465 | ;; |
030272f3 VY |
5466 | esac |
5467 | fi | |
5468 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
5469 | if test -n "$AUTOMAKE"; then | |
5470 | { $as_echo "$as_me:$LINENO: result: $AUTOMAKE" >&5 | |
5471 | $as_echo "$AUTOMAKE" >&6; } | |
5472 | else | |
5473 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5474 | $as_echo "no" >&6; } | |
5475 | fi | |
db137867 | 5476 | |
db137867 | 5477 | |
030272f3 VY |
5478 | # Extract the first word of "aclocal", so it can be a program name with args. |
5479 | set dummy aclocal; ac_word=$2 | |
5480 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5481 | $as_echo_n "checking for $ac_word... " >&6; } | |
5482 | if test "${ac_cv_path_ACLOCAL+set}" = set; then | |
5483 | $as_echo_n "(cached) " >&6 | |
5484 | else | |
5485 | case $ACLOCAL in | |
5486 | [\\/]* | ?:[\\/]*) | |
5487 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
db137867 | 5488 | ;; |
db137867 | 5489 | *) |
030272f3 VY |
5490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5491 | for as_dir in $PATH | |
5492 | do | |
5493 | IFS=$as_save_IFS | |
5494 | test -z "$as_dir" && as_dir=. | |
5495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5497 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" | |
5498 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5499 | break 2 | |
5500 | fi | |
5501 | done | |
5502 | done | |
5503 | IFS=$as_save_IFS | |
db137867 | 5504 | |
db137867 | 5505 | ;; |
030272f3 VY |
5506 | esac |
5507 | fi | |
5508 | ACLOCAL=$ac_cv_path_ACLOCAL | |
5509 | if test -n "$ACLOCAL"; then | |
5510 | { $as_echo "$as_me:$LINENO: result: $ACLOCAL" >&5 | |
5511 | $as_echo "$ACLOCAL" >&6; } | |
5512 | else | |
5513 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5514 | $as_echo "no" >&6; } | |
5515 | fi | |
db137867 | 5516 | |
db137867 | 5517 | |
030272f3 VY |
5518 | # Extract the first word of "autoheader", so it can be a program name with args. |
5519 | set dummy autoheader; ac_word=$2 | |
5520 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5521 | $as_echo_n "checking for $ac_word... " >&6; } | |
5522 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then | |
5523 | $as_echo_n "(cached) " >&6 | |
5524 | else | |
5525 | case $AUTOHEADER in | |
5526 | [\\/]* | ?:[\\/]*) | |
5527 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
db137867 | 5528 | ;; |
030272f3 VY |
5529 | *) |
5530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5531 | for as_dir in $PATH | |
5532 | do | |
5533 | IFS=$as_save_IFS | |
5534 | test -z "$as_dir" && as_dir=. | |
5535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5537 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" | |
5538 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5539 | break 2 | |
db137867 | 5540 | fi |
030272f3 VY |
5541 | done |
5542 | done | |
5543 | IFS=$as_save_IFS | |
5544 | ||
db137867 | 5545 | ;; |
030272f3 VY |
5546 | esac |
5547 | fi | |
5548 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
5549 | if test -n "$AUTOHEADER"; then | |
5550 | { $as_echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 | |
5551 | $as_echo "$AUTOHEADER" >&6; } | |
5552 | else | |
5553 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5554 | $as_echo "no" >&6; } | |
5555 | fi | |
db137867 | 5556 | |
030272f3 VY |
5557 | |
5558 | # Extract the first word of "as", so it can be a program name with args. | |
5559 | set dummy as; ac_word=$2 | |
5560 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5561 | $as_echo_n "checking for $ac_word... " >&6; } | |
5562 | if test "${ac_cv_path_AS+set}" = set; then | |
5563 | $as_echo_n "(cached) " >&6 | |
5564 | else | |
5565 | case $AS in | |
5566 | [\\/]* | ?:[\\/]*) | |
5567 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
db137867 | 5568 | ;; |
030272f3 VY |
5569 | *) |
5570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5571 | for as_dir in $PATH | |
5572 | do | |
5573 | IFS=$as_save_IFS | |
5574 | test -z "$as_dir" && as_dir=. | |
5575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5577 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" | |
5578 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5579 | break 2 | |
5580 | fi | |
5581 | done | |
5582 | done | |
5583 | IFS=$as_save_IFS | |
db137867 | 5584 | |
db137867 | 5585 | ;; |
030272f3 VY |
5586 | esac |
5587 | fi | |
5588 | AS=$ac_cv_path_AS | |
5589 | if test -n "$AS"; then | |
5590 | { $as_echo "$as_me:$LINENO: result: $AS" >&5 | |
5591 | $as_echo "$AS" >&6; } | |
5592 | else | |
5593 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5594 | $as_echo "no" >&6; } | |
5595 | fi | |
db137867 | 5596 | |
db137867 | 5597 | |
030272f3 VY |
5598 | # Extract the first word of "rm", so it can be a program name with args. |
5599 | set dummy rm; ac_word=$2 | |
5600 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5601 | $as_echo_n "checking for $ac_word... " >&6; } | |
5602 | if test "${ac_cv_path_RM+set}" = set; then | |
5603 | $as_echo_n "(cached) " >&6 | |
5604 | else | |
5605 | case $RM in | |
5606 | [\\/]* | ?:[\\/]*) | |
5607 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
db137867 | 5608 | ;; |
030272f3 VY |
5609 | *) |
5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5611 | for as_dir in $PATH | |
5612 | do | |
5613 | IFS=$as_save_IFS | |
5614 | test -z "$as_dir" && as_dir=. | |
5615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5617 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
5618 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5619 | break 2 | |
5620 | fi | |
5621 | done | |
5622 | done | |
5623 | IFS=$as_save_IFS | |
db137867 | 5624 | |
db137867 | 5625 | ;; |
030272f3 VY |
5626 | esac |
5627 | fi | |
5628 | RM=$ac_cv_path_RM | |
5629 | if test -n "$RM"; then | |
5630 | { $as_echo "$as_me:$LINENO: result: $RM" >&5 | |
5631 | $as_echo "$RM" >&6; } | |
5632 | else | |
5633 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5634 | $as_echo "no" >&6; } | |
5635 | fi | |
db137867 | 5636 | |
db137867 | 5637 | |
030272f3 VY |
5638 | # Extract the first word of "cp", so it can be a program name with args. |
5639 | set dummy cp; ac_word=$2 | |
5640 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5641 | $as_echo_n "checking for $ac_word... " >&6; } | |
5642 | if test "${ac_cv_path_CP+set}" = set; then | |
5643 | $as_echo_n "(cached) " >&6 | |
5644 | else | |
5645 | case $CP in | |
5646 | [\\/]* | ?:[\\/]*) | |
5647 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
db137867 | 5648 | ;; |
030272f3 VY |
5649 | *) |
5650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5651 | for as_dir in $PATH | |
5652 | do | |
5653 | IFS=$as_save_IFS | |
5654 | test -z "$as_dir" && as_dir=. | |
5655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5657 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
5658 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5659 | break 2 | |
5660 | fi | |
5661 | done | |
5662 | done | |
5663 | IFS=$as_save_IFS | |
db137867 | 5664 | |
db137867 AC |
5665 | ;; |
5666 | esac | |
db137867 | 5667 | fi |
030272f3 VY |
5668 | CP=$ac_cv_path_CP |
5669 | if test -n "$CP"; then | |
5670 | { $as_echo "$as_me:$LINENO: result: $CP" >&5 | |
5671 | $as_echo "$CP" >&6; } | |
5672 | else | |
5673 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5674 | $as_echo "no" >&6; } | |
db137867 AC |
5675 | fi |
5676 | ||
db137867 | 5677 | |
030272f3 VY |
5678 | # Extract the first word of "mv", so it can be a program name with args. |
5679 | set dummy mv; ac_word=$2 | |
5680 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5681 | $as_echo_n "checking for $ac_word... " >&6; } | |
5682 | if test "${ac_cv_path_MV+set}" = set; then | |
5683 | $as_echo_n "(cached) " >&6 | |
5684 | else | |
5685 | case $MV in | |
5686 | [\\/]* | ?:[\\/]*) | |
5687 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
db137867 | 5688 | ;; |
030272f3 VY |
5689 | *) |
5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5691 | for as_dir in $PATH | |
5692 | do | |
5693 | IFS=$as_save_IFS | |
5694 | test -z "$as_dir" && as_dir=. | |
5695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5697 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
5698 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5699 | break 2 | |
db137867 | 5700 | fi |
030272f3 VY |
5701 | done |
5702 | done | |
5703 | IFS=$as_save_IFS | |
db137867 | 5704 | |
db137867 | 5705 | ;; |
030272f3 VY |
5706 | esac |
5707 | fi | |
5708 | MV=$ac_cv_path_MV | |
5709 | if test -n "$MV"; then | |
5710 | { $as_echo "$as_me:$LINENO: result: $MV" >&5 | |
5711 | $as_echo "$MV" >&6; } | |
5712 | else | |
5713 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5714 | $as_echo "no" >&6; } | |
5715 | fi | |
5716 | ||
5717 | ||
5718 | # Extract the first word of "ln", so it can be a program name with args. | |
5719 | set dummy ln; ac_word=$2 | |
5720 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5721 | $as_echo_n "checking for $ac_word... " >&6; } | |
5722 | if test "${ac_cv_path_LN+set}" = set; then | |
5723 | $as_echo_n "(cached) " >&6 | |
5724 | else | |
5725 | case $LN in | |
5726 | [\\/]* | ?:[\\/]*) | |
5727 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
5728 | ;; | |
5729 | *) | |
5730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5731 | for as_dir in $PATH | |
5732 | do | |
5733 | IFS=$as_save_IFS | |
5734 | test -z "$as_dir" && as_dir=. | |
5735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5737 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
5738 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5739 | break 2 | |
5740 | fi | |
5741 | done | |
5742 | done | |
5743 | IFS=$as_save_IFS | |
db137867 | 5744 | |
030272f3 VY |
5745 | ;; |
5746 | esac | |
5747 | fi | |
5748 | LN=$ac_cv_path_LN | |
5749 | if test -n "$LN"; then | |
5750 | { $as_echo "$as_me:$LINENO: result: $LN" >&5 | |
5751 | $as_echo "$LN" >&6; } | |
db137867 | 5752 | else |
030272f3 VY |
5753 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5754 | $as_echo "no" >&6; } | |
5755 | fi | |
db137867 | 5756 | |
db137867 | 5757 | |
030272f3 VY |
5758 | # Extract the first word of "touch", so it can be a program name with args. |
5759 | set dummy touch; ac_word=$2 | |
5760 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5761 | $as_echo_n "checking for $ac_word... " >&6; } | |
5762 | if test "${ac_cv_path_TOUCH+set}" = set; then | |
5763 | $as_echo_n "(cached) " >&6 | |
5764 | else | |
5765 | case $TOUCH in | |
5766 | [\\/]* | ?:[\\/]*) | |
5767 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5768 | ;; | |
5769 | *) | |
5770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5771 | for as_dir in $PATH | |
5772 | do | |
5773 | IFS=$as_save_IFS | |
5774 | test -z "$as_dir" && as_dir=. | |
5775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5777 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
5778 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5779 | break 2 | |
5780 | fi | |
5781 | done | |
5782 | done | |
5783 | IFS=$as_save_IFS | |
db137867 | 5784 | |
030272f3 | 5785 | ;; |
db137867 | 5786 | esac |
030272f3 VY |
5787 | fi |
5788 | TOUCH=$ac_cv_path_TOUCH | |
5789 | if test -n "$TOUCH"; then | |
5790 | { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5 | |
5791 | $as_echo "$TOUCH" >&6; } | |
db137867 | 5792 | else |
030272f3 VY |
5793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5794 | $as_echo "no" >&6; } | |
db137867 AC |
5795 | fi |
5796 | ||
030272f3 VY |
5797 | |
5798 | ac_ext=c | |
db137867 AC |
5799 | ac_cpp='$CPP $CPPFLAGS' |
5800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5803 | ||
030272f3 VY |
5804 | |
5805 | # Check whether --enable-fast-install was given. | |
5806 | if test "${enable_fast_install+set}" = set; then | |
5807 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
5808 | case $enableval in | |
5809 | yes) enable_fast_install=yes ;; | |
5810 | no) enable_fast_install=no ;; | |
5811 | *) | |
5812 | enable_fast_install=no | |
5813 | # Look at the argument we got. We use all the common list separators. | |
5814 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5815 | for pkg in $enableval; do | |
5816 | IFS="$lt_save_ifs" | |
5817 | if test "X$pkg" = "X$p"; then | |
5818 | enable_fast_install=yes | |
b676ea3b | 5819 | fi |
030272f3 VY |
5820 | done |
5821 | IFS="$lt_save_ifs" | |
db137867 AC |
5822 | ;; |
5823 | esac | |
030272f3 VY |
5824 | else |
5825 | enable_fast_install=yes | |
5826 | fi | |
5827 | ||
5828 | ||
5829 | # Make sure we can run config.sub. | |
5830 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5831 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
5832 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
5833 | { (exit 1); exit 1; }; } | |
5834 | ||
5835 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
5836 | $as_echo_n "checking build system type... " >&6; } | |
5837 | if test "${ac_cv_build+set}" = set; then | |
5838 | $as_echo_n "(cached) " >&6 | |
5839 | else | |
5840 | ac_build_alias=$build_alias | |
5841 | test "x$ac_build_alias" = x && | |
5842 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5843 | test "x$ac_build_alias" = x && | |
5844 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
5845 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
5846 | { (exit 1); exit 1; }; } | |
5847 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5848 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
5849 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
5850 | { (exit 1); exit 1; }; } | |
5851 | ||
5852 | fi | |
5853 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
5854 | $as_echo "$ac_cv_build" >&6; } | |
5855 | case $ac_cv_build in | |
5856 | *-*-*) ;; | |
5857 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
5858 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
5859 | { (exit 1); exit 1; }; };; | |
5860 | esac | |
5861 | build=$ac_cv_build | |
5862 | ac_save_IFS=$IFS; IFS='-' | |
5863 | set x $ac_cv_build | |
5864 | shift | |
5865 | build_cpu=$1 | |
5866 | build_vendor=$2 | |
5867 | shift; shift | |
5868 | # Remember, the first character of IFS is used to create $*, | |
5869 | # except with old shells: | |
5870 | build_os=$* | |
5871 | IFS=$ac_save_IFS | |
5872 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5873 | ||
5874 | ||
5875 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
5876 | $as_echo_n "checking host system type... " >&6; } | |
5877 | if test "${ac_cv_host+set}" = set; then | |
5878 | $as_echo_n "(cached) " >&6 | |
5879 | else | |
5880 | if test "x$host_alias" = x; then | |
5881 | ac_cv_host=$ac_cv_build | |
5882 | else | |
5883 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5884 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
5885 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
5886 | { (exit 1); exit 1; }; } | |
5887 | fi | |
5888 | ||
5889 | fi | |
5890 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
5891 | $as_echo "$ac_cv_host" >&6; } | |
5892 | case $ac_cv_host in | |
5893 | *-*-*) ;; | |
5894 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
5895 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
5896 | { (exit 1); exit 1; }; };; | |
5897 | esac | |
5898 | host=$ac_cv_host | |
5899 | ac_save_IFS=$IFS; IFS='-' | |
5900 | set x $ac_cv_host | |
5901 | shift | |
5902 | host_cpu=$1 | |
5903 | host_vendor=$2 | |
5904 | shift; shift | |
5905 | # Remember, the first character of IFS is used to create $*, | |
5906 | # except with old shells: | |
5907 | host_os=$* | |
5908 | IFS=$ac_save_IFS | |
5909 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5910 | ||
5911 | ||
5912 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5913 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5914 | if test "${lt_cv_path_SED+set}" = set; then | |
5915 | $as_echo_n "(cached) " >&6 | |
5916 | else | |
5917 | # Loop through the user's path and test for sed and gsed. | |
5918 | # Then use that list of sed's as ones to test for truncation. | |
5919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5920 | for as_dir in $PATH | |
5921 | do | |
5922 | IFS=$as_save_IFS | |
5923 | test -z "$as_dir" && as_dir=. | |
5924 | for lt_ac_prog in sed gsed; do | |
5925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5926 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then | |
5927 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5928 | fi | |
5929 | done | |
5930 | done | |
5931 | done | |
5932 | IFS=$as_save_IFS | |
5933 | lt_ac_max=0 | |
5934 | lt_ac_count=0 | |
5935 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5936 | # along with /bin/sed that truncates output. | |
5937 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5938 | test ! -f $lt_ac_sed && continue | |
5939 | cat /dev/null > conftest.in | |
5940 | lt_ac_count=0 | |
5941 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5942 | # Check for GNU sed and select it if it is found. | |
5943 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5944 | lt_cv_path_SED=$lt_ac_sed | |
5945 | break | |
db137867 | 5946 | fi |
030272f3 VY |
5947 | while true; do |
5948 | cat conftest.in conftest.in >conftest.tmp | |
5949 | mv conftest.tmp conftest.in | |
5950 | cp conftest.in conftest.nl | |
5951 | echo >>conftest.nl | |
5952 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5953 | cmp -s conftest.out conftest.nl || break | |
5954 | # 10000 chars as input seems more than enough | |
5955 | test $lt_ac_count -gt 10 && break | |
5956 | lt_ac_count=`expr $lt_ac_count + 1` | |
5957 | if test $lt_ac_count -gt $lt_ac_max; then | |
5958 | lt_ac_max=$lt_ac_count | |
5959 | lt_cv_path_SED=$lt_ac_sed | |
5960 | fi | |
5961 | done | |
5962 | done | |
db137867 | 5963 | |
030272f3 | 5964 | fi |
db137867 | 5965 | |
030272f3 | 5966 | SED=$lt_cv_path_SED |
db137867 | 5967 | |
030272f3 VY |
5968 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 |
5969 | $as_echo "$SED" >&6; } | |
db137867 AC |
5970 | |
5971 | ||
030272f3 VY |
5972 | # Check whether --with-gnu-ld was given. |
5973 | if test "${with_gnu_ld+set}" = set; then | |
5974 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
db137867 | 5975 | else |
030272f3 | 5976 | with_gnu_ld=no |
db137867 AC |
5977 | fi |
5978 | ||
030272f3 VY |
5979 | ac_prog=ld |
5980 | if test "$GCC" = yes; then | |
5981 | # Check if gcc -print-prog-name=ld gives a path. | |
5982 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5983 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5984 | case $host in | |
5985 | *-*-mingw*) | |
5986 | # gcc leaves a trailing carriage return which upsets mingw | |
5987 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5988 | *) | |
5989 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5990 | esac | |
5991 | case $ac_prog in | |
5992 | # Accept absolute paths. | |
5993 | [\\/]* | ?:[\\/]*) | |
5994 | re_direlt='/[^/][^/]*/\.\./' | |
5995 | # Canonicalize the pathname of ld | |
5996 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
5997 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5998 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
5999 | done | |
6000 | test -z "$LD" && LD="$ac_prog" | |
6001 | ;; | |
6002 | "") | |
6003 | # If it fails, then pretend we aren't using GCC. | |
6004 | ac_prog=ld | |
6005 | ;; | |
6006 | *) | |
6007 | # If it is relative, then search for the first ld in PATH. | |
6008 | with_gnu_ld=unknown | |
6009 | ;; | |
6010 | esac | |
6011 | elif test "$with_gnu_ld" = yes; then | |
6012 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
6013 | $as_echo_n "checking for GNU ld... " >&6; } | |
db137867 | 6014 | else |
030272f3 VY |
6015 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
6016 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
db137867 | 6017 | fi |
030272f3 VY |
6018 | if test "${lt_cv_path_LD+set}" = set; then |
6019 | $as_echo_n "(cached) " >&6 | |
6020 | else | |
6021 | if test -z "$LD"; then | |
6022 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6023 | for ac_dir in $PATH; do | |
6024 | IFS="$lt_save_ifs" | |
6025 | test -z "$ac_dir" && ac_dir=. | |
6026 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6027 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6028 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6029 | # but apparently some variants of GNU ld only accept -v. | |
6030 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6031 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6032 | *GNU* | *'with BFD'*) | |
6033 | test "$with_gnu_ld" != no && break | |
6034 | ;; | |
6035 | *) | |
6036 | test "$with_gnu_ld" != yes && break | |
6037 | ;; | |
6038 | esac | |
6039 | fi | |
6040 | done | |
6041 | IFS="$lt_save_ifs" | |
6042 | else | |
6043 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
db137867 | 6044 | fi |
db137867 | 6045 | fi |
030272f3 VY |
6046 | |
6047 | LD="$lt_cv_path_LD" | |
6048 | if test -n "$LD"; then | |
6049 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
6050 | $as_echo "$LD" >&6; } | |
db137867 | 6051 | else |
030272f3 VY |
6052 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6053 | $as_echo "no" >&6; } | |
db137867 | 6054 | fi |
030272f3 VY |
6055 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
6056 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
6057 | { (exit 1); exit 1; }; } | |
6058 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
6059 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6060 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
6061 | $as_echo_n "(cached) " >&6 | |
db137867 | 6062 | else |
030272f3 VY |
6063 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6064 | case `$LD -v 2>&1 </dev/null` in | |
6065 | *GNU* | *'with BFD'*) | |
6066 | lt_cv_prog_gnu_ld=yes | |
6067 | ;; | |
6068 | *) | |
6069 | lt_cv_prog_gnu_ld=no | |
6070 | ;; | |
6071 | esac | |
db137867 | 6072 | fi |
030272f3 VY |
6073 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
6074 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6075 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
db137867 | 6076 | |
db137867 | 6077 | |
030272f3 VY |
6078 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
6079 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6080 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
6081 | $as_echo_n "(cached) " >&6 | |
6082 | else | |
6083 | lt_cv_ld_reload_flag='-r' | |
6084 | fi | |
6085 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
6086 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6087 | reload_flag=$lt_cv_ld_reload_flag | |
6088 | case $reload_flag in | |
6089 | "" | " "*) ;; | |
6090 | *) reload_flag=" $reload_flag" ;; | |
6091 | esac | |
6092 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6093 | case $host_os in | |
6094 | darwin*) | |
6095 | if test "$GCC" = yes; then | |
6096 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6097 | else | |
6098 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6099 | fi | |
6100 | ;; | |
db137867 | 6101 | esac |
db137867 | 6102 | |
030272f3 VY |
6103 | { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
6104 | $as_echo_n "checking for BSD-compatible nm... " >&6; } | |
6105 | if test "${lt_cv_path_NM+set}" = set; then | |
6106 | $as_echo_n "(cached) " >&6 | |
6107 | else | |
6108 | if test -n "$NM"; then | |
6109 | # Let the user override the test. | |
6110 | lt_cv_path_NM="$NM" | |
6111 | else | |
6112 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6113 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6114 | lt_nm_to_check="$lt_nm_to_check nm" | |
6115 | fi | |
6116 | for lt_tmp_nm in $lt_nm_to_check; do | |
6117 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6118 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6119 | IFS="$lt_save_ifs" | |
6120 | test -z "$ac_dir" && ac_dir=. | |
6121 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6122 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6123 | # Check to see if the nm accepts a BSD-compat flag. | |
6124 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6125 | # nm: unknown option "B" ignored | |
6126 | # Tru64's nm complains that /dev/null is an invalid object file | |
6127 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6128 | */dev/null* | *'Invalid file or object type'*) | |
6129 | lt_cv_path_NM="$tmp_nm -B" | |
6130 | break | |
6131 | ;; | |
6132 | *) | |
6133 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6134 | */dev/null*) | |
6135 | lt_cv_path_NM="$tmp_nm -p" | |
6136 | break | |
6137 | ;; | |
6138 | *) | |
6139 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6140 | continue # so that we can try to find one that supports BSD flags | |
6141 | ;; | |
6142 | esac | |
6143 | ;; | |
6144 | esac | |
6145 | fi | |
6146 | done | |
6147 | IFS="$lt_save_ifs" | |
6148 | done | |
6149 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
db137867 | 6150 | fi |
030272f3 VY |
6151 | fi |
6152 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
6153 | $as_echo "$lt_cv_path_NM" >&6; } | |
6154 | NM="$lt_cv_path_NM" | |
db137867 | 6155 | |
030272f3 VY |
6156 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
6157 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6158 | LN_S=$as_ln_s | |
6159 | if test "$LN_S" = "ln -s"; then | |
6160 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6161 | $as_echo "yes" >&6; } | |
db137867 | 6162 | else |
030272f3 VY |
6163 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
6164 | $as_echo "no, using $LN_S" >&6; } | |
db137867 AC |
6165 | fi |
6166 | ||
030272f3 VY |
6167 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
6168 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6169 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6170 | $as_echo_n "(cached) " >&6 | |
6171 | else | |
6172 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6173 | lt_cv_file_magic_test_file= | |
6174 | lt_cv_deplibs_check_method='unknown' | |
6175 | # Need to set the preceding variable on all platforms that support | |
6176 | # interlibrary dependencies. | |
6177 | # 'none' -- dependencies not supported. | |
6178 | # `unknown' -- same as none, but documents that we really don't know. | |
6179 | # 'pass_all' -- all dependencies passed with no checks. | |
6180 | # 'test_compile' -- check by making test program. | |
6181 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6182 | # which responds to the $file_magic_cmd with a given extended regex. | |
6183 | # If you have `file' or equivalent on your system and you're not sure | |
6184 | # whether `pass_all' will *always* work, you probably want this one. | |
db137867 | 6185 | |
030272f3 VY |
6186 | case $host_os in |
6187 | aix[4-9]*) | |
6188 | lt_cv_deplibs_check_method=pass_all | |
6189 | ;; | |
db137867 | 6190 | |
030272f3 VY |
6191 | beos*) |
6192 | lt_cv_deplibs_check_method=pass_all | |
6193 | ;; | |
db137867 | 6194 | |
030272f3 VY |
6195 | bsdi[45]*) |
6196 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6197 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6198 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6199 | ;; | |
db137867 | 6200 | |
030272f3 VY |
6201 | cygwin*) |
6202 | # func_win32_libid is a shell function defined in ltmain.sh | |
6203 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6204 | lt_cv_file_magic_cmd='func_win32_libid' | |
6205 | ;; | |
db137867 | 6206 | |
030272f3 VY |
6207 | mingw* | pw32*) |
6208 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6209 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6210 | # unless we find 'file', for example because we are cross-compiling. | |
6211 | if ( file / ) >/dev/null 2>&1; then | |
6212 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6213 | lt_cv_file_magic_cmd='func_win32_libid' | |
6214 | else | |
6215 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6216 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6217 | fi | |
6218 | ;; | |
db137867 | 6219 | |
030272f3 VY |
6220 | darwin* | rhapsody*) |
6221 | lt_cv_deplibs_check_method=pass_all | |
6222 | ;; | |
db137867 | 6223 | |
030272f3 VY |
6224 | freebsd* | dragonfly*) |
6225 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6226 | case $host_cpu in | |
6227 | i*86 ) | |
6228 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6229 | # Let's accept both of them until this is cleared up. | |
6230 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6231 | lt_cv_file_magic_cmd=/usr/bin/file | |
6232 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6233 | ;; | |
6234 | esac | |
6235 | else | |
6236 | lt_cv_deplibs_check_method=pass_all | |
6237 | fi | |
6238 | ;; | |
db137867 | 6239 | |
030272f3 VY |
6240 | gnu*) |
6241 | lt_cv_deplibs_check_method=pass_all | |
6242 | ;; | |
db137867 | 6243 | |
030272f3 VY |
6244 | hpux10.20* | hpux11*) |
6245 | lt_cv_file_magic_cmd=/usr/bin/file | |
6246 | case $host_cpu in | |
6247 | ia64*) | |
6248 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6249 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6250 | ;; | |
6251 | hppa*64*) | |
6252 | 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]' | |
6253 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6254 | ;; | |
6255 | *) | |
6256 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6257 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6258 | ;; | |
6259 | esac | |
6260 | ;; | |
db137867 | 6261 | |
030272f3 VY |
6262 | interix[3-9]*) |
6263 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6264 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6265 | ;; | |
db137867 | 6266 | |
030272f3 VY |
6267 | irix5* | irix6* | nonstopux*) |
6268 | case $LD in | |
6269 | *-32|*"-32 ") libmagic=32-bit;; | |
6270 | *-n32|*"-n32 ") libmagic=N32;; | |
6271 | *-64|*"-64 ") libmagic=64-bit;; | |
6272 | *) libmagic=never-match;; | |
6273 | esac | |
6274 | lt_cv_deplibs_check_method=pass_all | |
6275 | ;; | |
6276 | ||
6277 | # This must be Linux ELF. | |
6278 | linux* | k*bsd*-gnu) | |
6279 | lt_cv_deplibs_check_method=pass_all | |
6280 | ;; | |
6281 | ||
6282 | netbsd* | netbsdelf*-gnu) | |
6283 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6284 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6285 | else | |
6286 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6287 | fi | |
6288 | ;; | |
db137867 | 6289 | |
030272f3 VY |
6290 | newos6*) |
6291 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6292 | lt_cv_file_magic_cmd=/usr/bin/file | |
6293 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6294 | ;; | |
db137867 | 6295 | |
030272f3 VY |
6296 | nto-qnx*) |
6297 | lt_cv_deplibs_check_method=unknown | |
6298 | ;; | |
db137867 | 6299 | |
030272f3 VY |
6300 | openbsd*) |
6301 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6302 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6303 | else | |
6304 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6305 | fi | |
6306 | ;; | |
db137867 | 6307 | |
030272f3 VY |
6308 | osf3* | osf4* | osf5*) |
6309 | lt_cv_deplibs_check_method=pass_all | |
6310 | ;; | |
db137867 | 6311 | |
030272f3 VY |
6312 | rdos*) |
6313 | lt_cv_deplibs_check_method=pass_all | |
6314 | ;; | |
db137867 | 6315 | |
030272f3 VY |
6316 | solaris*) |
6317 | lt_cv_deplibs_check_method=pass_all | |
6318 | ;; | |
db137867 | 6319 | |
030272f3 VY |
6320 | sysv4 | sysv4.3*) |
6321 | case $host_vendor in | |
6322 | motorola) | |
6323 | 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]' | |
6324 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6325 | ;; | |
6326 | ncr) | |
6327 | lt_cv_deplibs_check_method=pass_all | |
6328 | ;; | |
6329 | sequent) | |
6330 | lt_cv_file_magic_cmd='/bin/file' | |
6331 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6332 | ;; | |
6333 | sni) | |
6334 | lt_cv_file_magic_cmd='/bin/file' | |
6335 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6336 | lt_cv_file_magic_test_file=/lib/libc.so | |
6337 | ;; | |
6338 | siemens) | |
6339 | lt_cv_deplibs_check_method=pass_all | |
6340 | ;; | |
6341 | pc) | |
6342 | lt_cv_deplibs_check_method=pass_all | |
6343 | ;; | |
6344 | esac | |
6345 | ;; | |
6346 | ||
6347 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6348 | lt_cv_deplibs_check_method=pass_all | |
6349 | ;; | |
6350 | esac | |
db137867 AC |
6351 | |
6352 | fi | |
030272f3 VY |
6353 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
6354 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6355 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6356 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6357 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6358 | ||
db137867 | 6359 | |
db137867 AC |
6360 | |
6361 | ||
030272f3 VY |
6362 | # If no C compiler was specified, use CC. |
6363 | LTCC=${LTCC-"$CC"} | |
db137867 | 6364 | |
030272f3 VY |
6365 | # If no C compiler flags were specified, use CFLAGS. |
6366 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
db137867 | 6367 | |
030272f3 VY |
6368 | # Allow CC to be a program name with arguments. |
6369 | compiler=$CC | |
db137867 | 6370 | |
030272f3 VY |
6371 | # Check whether --enable-libtool-lock was given. |
6372 | if test "${enable_libtool_lock+set}" = set; then | |
6373 | enableval=$enable_libtool_lock; | |
6374 | fi | |
db137867 | 6375 | |
030272f3 | 6376 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
db137867 | 6377 | |
030272f3 VY |
6378 | # Some flags need to be propagated to the compiler or linker for good |
6379 | # libtool support. | |
6380 | case $host in | |
6381 | ia64-*-hpux*) | |
6382 | # Find out which ABI we are using. | |
6383 | echo 'int i;' > conftest.$ac_ext | |
6384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6385 | (eval $ac_compile) 2>&5 | |
6386 | ac_status=$? | |
6387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6388 | (exit $ac_status); }; then | |
6389 | case `/usr/bin/file conftest.$ac_objext` in | |
6390 | *ELF-32*) | |
6391 | HPUX_IA64_MODE="32" | |
6392 | ;; | |
6393 | *ELF-64*) | |
6394 | HPUX_IA64_MODE="64" | |
6395 | ;; | |
6396 | esac | |
6397 | fi | |
6398 | rm -rf conftest* | |
6399 | ;; | |
6400 | *-*-irix6*) | |
6401 | # Find out which ABI we are using. | |
6402 | echo '#line 6402 "configure"' > conftest.$ac_ext | |
6403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6404 | (eval $ac_compile) 2>&5 | |
6405 | ac_status=$? | |
6406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; then | |
6408 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6409 | case `/usr/bin/file conftest.$ac_objext` in | |
6410 | *32-bit*) | |
6411 | LD="${LD-ld} -melf32bsmip" | |
6412 | ;; | |
6413 | *N32*) | |
6414 | LD="${LD-ld} -melf32bmipn32" | |
6415 | ;; | |
6416 | *64-bit*) | |
6417 | LD="${LD-ld} -melf64bmip" | |
6418 | ;; | |
6419 | esac | |
6420 | else | |
6421 | case `/usr/bin/file conftest.$ac_objext` in | |
6422 | *32-bit*) | |
6423 | LD="${LD-ld} -32" | |
6424 | ;; | |
6425 | *N32*) | |
6426 | LD="${LD-ld} -n32" | |
6427 | ;; | |
6428 | *64-bit*) | |
6429 | LD="${LD-ld} -64" | |
6430 | ;; | |
6431 | esac | |
6432 | fi | |
6433 | fi | |
6434 | rm -rf conftest* | |
6435 | ;; | |
db137867 | 6436 | |
030272f3 VY |
6437 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6438 | s390*-*linux*|sparc*-*linux*) | |
6439 | # Find out which ABI we are using. | |
6440 | echo 'int i;' > conftest.$ac_ext | |
6441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6442 | (eval $ac_compile) 2>&5 | |
6443 | ac_status=$? | |
6444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6445 | (exit $ac_status); }; then | |
6446 | case `/usr/bin/file conftest.o` in | |
6447 | *32-bit*) | |
6448 | case $host in | |
6449 | x86_64-*kfreebsd*-gnu) | |
6450 | LD="${LD-ld} -m elf_i386_fbsd" | |
6451 | ;; | |
6452 | x86_64-*linux*) | |
6453 | LD="${LD-ld} -m elf_i386" | |
6454 | ;; | |
6455 | ppc64-*linux*|powerpc64-*linux*) | |
6456 | LD="${LD-ld} -m elf32ppclinux" | |
6457 | ;; | |
6458 | s390x-*linux*) | |
6459 | LD="${LD-ld} -m elf_s390" | |
6460 | ;; | |
6461 | sparc64-*linux*) | |
6462 | LD="${LD-ld} -m elf32_sparc" | |
6463 | ;; | |
6464 | esac | |
6465 | ;; | |
6466 | *64-bit*) | |
6467 | case $host in | |
6468 | x86_64-*kfreebsd*-gnu) | |
6469 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6470 | ;; | |
6471 | x86_64-*linux*) | |
6472 | LD="${LD-ld} -m elf_x86_64" | |
6473 | ;; | |
6474 | ppc*-*linux*|powerpc*-*linux*) | |
6475 | LD="${LD-ld} -m elf64ppc" | |
6476 | ;; | |
6477 | s390*-*linux*) | |
6478 | LD="${LD-ld} -m elf64_s390" | |
6479 | ;; | |
6480 | sparc*-*linux*) | |
6481 | LD="${LD-ld} -m elf64_sparc" | |
6482 | ;; | |
6483 | esac | |
6484 | ;; | |
6485 | esac | |
6486 | fi | |
6487 | rm -rf conftest* | |
6488 | ;; | |
db137867 | 6489 | |
030272f3 VY |
6490 | *-*-sco3.2v5*) |
6491 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6492 | SAVE_CFLAGS="$CFLAGS" | |
6493 | CFLAGS="$CFLAGS -belf" | |
6494 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6495 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6496 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6497 | $as_echo_n "(cached) " >&6 | |
db137867 | 6498 | else |
030272f3 VY |
6499 | ac_ext=c |
6500 | ac_cpp='$CPP $CPPFLAGS' | |
6501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6504 | ||
6505 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
6506 | /* confdefs.h. */ |
6507 | _ACEOF | |
6508 | cat confdefs.h >>conftest.$ac_ext | |
6509 | cat >>conftest.$ac_ext <<_ACEOF | |
6510 | /* end confdefs.h. */ | |
db137867 | 6511 | |
030272f3 VY |
6512 | int |
6513 | main () | |
6514 | { | |
6515 | ||
6516 | ; | |
6517 | return 0; | |
6518 | } | |
db137867 | 6519 | _ACEOF |
030272f3 VY |
6520 | rm -f conftest.$ac_objext conftest$ac_exeext |
6521 | if { (ac_try="$ac_link" | |
db137867 AC |
6522 | case "(($ac_try" in |
6523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6524 | *) ac_try_echo=$ac_try;; | |
6525 | esac | |
030272f3 VY |
6526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6527 | $as_echo "$ac_try_echo") >&5 | |
6528 | (eval "$ac_link") 2>conftest.er1 | |
db137867 AC |
6529 | ac_status=$? |
6530 | grep -v '^ *+' conftest.er1 >conftest.err | |
6531 | rm -f conftest.er1 | |
6532 | cat conftest.err >&5 | |
030272f3 | 6533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6534 | (exit $ac_status); } && { |
6535 | test -z "$ac_c_werror_flag" || | |
6536 | test ! -s conftest.err | |
030272f3 VY |
6537 | } && test -s conftest$ac_exeext && { |
6538 | test "$cross_compiling" = yes || | |
6539 | $as_test_x conftest$ac_exeext | |
6540 | }; then | |
6541 | lt_cv_cc_needs_belf=yes | |
db137867 | 6542 | else |
030272f3 | 6543 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
6544 | sed 's/^/| /' conftest.$ac_ext >&5 |
6545 | ||
030272f3 | 6546 | lt_cv_cc_needs_belf=no |
db137867 AC |
6547 | fi |
6548 | ||
030272f3 VY |
6549 | rm -rf conftest.dSYM |
6550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6551 | conftest$ac_exeext conftest.$ac_ext | |
6552 | ac_ext=c | |
6553 | ac_cpp='$CPP $CPPFLAGS' | |
6554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 AC |
6557 | |
6558 | fi | |
030272f3 VY |
6559 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6560 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6561 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6562 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6563 | CFLAGS="$SAVE_CFLAGS" | |
6564 | fi | |
6565 | ;; | |
6566 | sparc*-*solaris*) | |
6567 | # Find out which ABI we are using. | |
6568 | echo 'int i;' > conftest.$ac_ext | |
6569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6570 | (eval $ac_compile) 2>&5 | |
6571 | ac_status=$? | |
6572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6573 | (exit $ac_status); }; then | |
6574 | case `/usr/bin/file conftest.o` in | |
6575 | *64-bit*) | |
6576 | case $lt_cv_prog_gnu_ld in | |
6577 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6578 | *) | |
6579 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6580 | LD="${LD-ld} -64" | |
6581 | fi | |
6582 | ;; | |
6583 | esac | |
6584 | ;; | |
6585 | esac | |
6586 | fi | |
6587 | rm -rf conftest* | |
6588 | ;; | |
db137867 | 6589 | |
030272f3 VY |
6590 | |
6591 | esac | |
6592 | ||
6593 | need_locks="$enable_libtool_lock" | |
db137867 AC |
6594 | |
6595 | ||
6596 | ||
6597 | for ac_header in dlfcn.h | |
6598 | do | |
030272f3 | 6599 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
db137867 | 6600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 VY |
6601 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6602 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 6603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 6604 | $as_echo_n "(cached) " >&6 |
db137867 | 6605 | fi |
030272f3 VY |
6606 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6607 | $as_echo "$as_val"'` | |
6608 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6609 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
6610 | else |
6611 | # Is the header compilable? | |
030272f3 VY |
6612 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6613 | $as_echo_n "checking $ac_header usability... " >&6; } | |
db137867 AC |
6614 | cat >conftest.$ac_ext <<_ACEOF |
6615 | /* confdefs.h. */ | |
6616 | _ACEOF | |
6617 | cat confdefs.h >>conftest.$ac_ext | |
6618 | cat >>conftest.$ac_ext <<_ACEOF | |
6619 | /* end confdefs.h. */ | |
6620 | $ac_includes_default | |
6621 | #include <$ac_header> | |
6622 | _ACEOF | |
6623 | rm -f conftest.$ac_objext | |
6624 | if { (ac_try="$ac_compile" | |
6625 | case "(($ac_try" in | |
6626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6627 | *) ac_try_echo=$ac_try;; | |
6628 | esac | |
030272f3 VY |
6629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6630 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6631 | (eval "$ac_compile") 2>conftest.er1 |
6632 | ac_status=$? | |
6633 | grep -v '^ *+' conftest.er1 >conftest.err | |
6634 | rm -f conftest.er1 | |
6635 | cat conftest.err >&5 | |
030272f3 | 6636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6637 | (exit $ac_status); } && { |
6638 | test -z "$ac_c_werror_flag" || | |
6639 | test ! -s conftest.err | |
6640 | } && test -s conftest.$ac_objext; then | |
6641 | ac_header_compiler=yes | |
6642 | else | |
030272f3 | 6643 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
6644 | sed 's/^/| /' conftest.$ac_ext >&5 |
6645 | ||
6646 | ac_header_compiler=no | |
6647 | fi | |
6648 | ||
6649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
6650 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6651 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
6652 | |
6653 | # Is the header present? | |
030272f3 VY |
6654 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6655 | $as_echo_n "checking $ac_header presence... " >&6; } | |
db137867 AC |
6656 | cat >conftest.$ac_ext <<_ACEOF |
6657 | /* confdefs.h. */ | |
6658 | _ACEOF | |
6659 | cat confdefs.h >>conftest.$ac_ext | |
6660 | cat >>conftest.$ac_ext <<_ACEOF | |
6661 | /* end confdefs.h. */ | |
6662 | #include <$ac_header> | |
6663 | _ACEOF | |
6664 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6665 | case "(($ac_try" in | |
6666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6667 | *) ac_try_echo=$ac_try;; | |
6668 | esac | |
030272f3 VY |
6669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6670 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6672 | ac_status=$? | |
6673 | grep -v '^ *+' conftest.er1 >conftest.err | |
6674 | rm -f conftest.er1 | |
6675 | cat conftest.err >&5 | |
030272f3 | 6676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6677 | (exit $ac_status); } >/dev/null && { |
6678 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6679 | test ! -s conftest.err | |
6680 | }; then | |
6681 | ac_header_preproc=yes | |
6682 | else | |
030272f3 | 6683 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
6684 | sed 's/^/| /' conftest.$ac_ext >&5 |
6685 | ||
6686 | ac_header_preproc=no | |
6687 | fi | |
6688 | ||
6689 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
6690 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6691 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
6692 | |
6693 | # So? What about this header? | |
6694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6695 | yes:no: ) | |
030272f3 VY |
6696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6697 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6699 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
db137867 AC |
6700 | ac_header_preproc=yes |
6701 | ;; | |
6702 | no:yes:* ) | |
030272f3 VY |
6703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6704 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6706 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6708 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6710 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6712 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6714 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
6715 | |
6716 | ;; | |
6717 | esac | |
030272f3 VY |
6718 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6719 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 6720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 6721 | $as_echo_n "(cached) " >&6 |
db137867 AC |
6722 | else |
6723 | eval "$as_ac_Header=\$ac_header_preproc" | |
6724 | fi | |
030272f3 VY |
6725 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6726 | $as_echo "$as_val"'` | |
6727 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6728 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
6729 | |
6730 | fi | |
030272f3 VY |
6731 | as_val=`eval 'as_val=${'$as_ac_Header'} |
6732 | $as_echo "$as_val"'` | |
6733 | if test "x$as_val" = x""yes; then | |
db137867 | 6734 | cat >>confdefs.h <<_ACEOF |
030272f3 | 6735 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
db137867 AC |
6736 | _ACEOF |
6737 | ||
6738 | fi | |
6739 | ||
6740 | done | |
6741 | ||
6742 | ac_ext=cpp | |
6743 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6747 | if test -z "$CXX"; then | |
6748 | if test -n "$CCC"; then | |
6749 | CXX=$CCC | |
6750 | else | |
6751 | if test -n "$ac_tool_prefix"; then | |
6752 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6753 | do | |
6754 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6755 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
030272f3 VY |
6756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6757 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 6758 | if test "${ac_cv_prog_CXX+set}" = set; then |
030272f3 | 6759 | $as_echo_n "(cached) " >&6 |
db137867 AC |
6760 | else |
6761 | if test -n "$CXX"; then | |
6762 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6763 | else | |
6764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6765 | for as_dir in $PATH | |
6766 | do | |
6767 | IFS=$as_save_IFS | |
6768 | test -z "$as_dir" && as_dir=. | |
6769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6771 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
030272f3 | 6772 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
6773 | break 2 |
6774 | fi | |
6775 | done | |
6776 | done | |
6777 | IFS=$as_save_IFS | |
6778 | ||
6779 | fi | |
6780 | fi | |
6781 | CXX=$ac_cv_prog_CXX | |
6782 | if test -n "$CXX"; then | |
030272f3 VY |
6783 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
6784 | $as_echo "$CXX" >&6; } | |
db137867 | 6785 | else |
030272f3 VY |
6786 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6787 | $as_echo "no" >&6; } | |
db137867 AC |
6788 | fi |
6789 | ||
6790 | ||
6791 | test -n "$CXX" && break | |
6792 | done | |
6793 | fi | |
6794 | if test -z "$CXX"; then | |
6795 | ac_ct_CXX=$CXX | |
6796 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6797 | do | |
6798 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6799 | set dummy $ac_prog; ac_word=$2 | |
030272f3 VY |
6800 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6801 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 6802 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
030272f3 | 6803 | $as_echo_n "(cached) " >&6 |
db137867 AC |
6804 | else |
6805 | if test -n "$ac_ct_CXX"; then | |
6806 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
6807 | else | |
6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6809 | for as_dir in $PATH | |
6810 | do | |
6811 | IFS=$as_save_IFS | |
6812 | test -z "$as_dir" && as_dir=. | |
6813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6815 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
030272f3 | 6816 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
6817 | break 2 |
6818 | fi | |
6819 | done | |
6820 | done | |
6821 | IFS=$as_save_IFS | |
6822 | ||
6823 | fi | |
6824 | fi | |
6825 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
6826 | if test -n "$ac_ct_CXX"; then | |
030272f3 VY |
6827 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
6828 | $as_echo "$ac_ct_CXX" >&6; } | |
db137867 | 6829 | else |
030272f3 VY |
6830 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6831 | $as_echo "no" >&6; } | |
db137867 AC |
6832 | fi |
6833 | ||
6834 | ||
6835 | test -n "$ac_ct_CXX" && break | |
6836 | done | |
6837 | ||
6838 | if test "x$ac_ct_CXX" = x; then | |
6839 | CXX="g++" | |
6840 | else | |
6841 | case $cross_compiling:$ac_tool_warned in | |
6842 | yes:) | |
030272f3 VY |
6843 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
6845 | ac_tool_warned=yes ;; |
6846 | esac | |
6847 | CXX=$ac_ct_CXX | |
6848 | fi | |
6849 | fi | |
6850 | ||
6851 | fi | |
6852 | fi | |
6853 | # Provide some information about the compiler. | |
030272f3 VY |
6854 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
6855 | set X $ac_compile | |
6856 | ac_compiler=$2 | |
db137867 AC |
6857 | { (ac_try="$ac_compiler --version >&5" |
6858 | case "(($ac_try" in | |
6859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6860 | *) ac_try_echo=$ac_try;; | |
6861 | esac | |
030272f3 VY |
6862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6863 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6864 | (eval "$ac_compiler --version >&5") 2>&5 |
6865 | ac_status=$? | |
030272f3 | 6866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6867 | (exit $ac_status); } |
6868 | { (ac_try="$ac_compiler -v >&5" | |
6869 | case "(($ac_try" in | |
6870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6871 | *) ac_try_echo=$ac_try;; | |
6872 | esac | |
030272f3 VY |
6873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6874 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6875 | (eval "$ac_compiler -v >&5") 2>&5 |
6876 | ac_status=$? | |
030272f3 | 6877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6878 | (exit $ac_status); } |
6879 | { (ac_try="$ac_compiler -V >&5" | |
6880 | case "(($ac_try" in | |
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6882 | *) ac_try_echo=$ac_try;; | |
6883 | esac | |
030272f3 VY |
6884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6885 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6886 | (eval "$ac_compiler -V >&5") 2>&5 |
6887 | ac_status=$? | |
030272f3 | 6888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6889 | (exit $ac_status); } |
6890 | ||
030272f3 VY |
6891 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
6892 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
db137867 | 6893 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
030272f3 | 6894 | $as_echo_n "(cached) " >&6 |
db137867 AC |
6895 | else |
6896 | cat >conftest.$ac_ext <<_ACEOF | |
6897 | /* confdefs.h. */ | |
6898 | _ACEOF | |
6899 | cat confdefs.h >>conftest.$ac_ext | |
6900 | cat >>conftest.$ac_ext <<_ACEOF | |
6901 | /* end confdefs.h. */ | |
6902 | ||
6903 | int | |
6904 | main () | |
6905 | { | |
6906 | #ifndef __GNUC__ | |
6907 | choke me | |
6908 | #endif | |
6909 | ||
6910 | ; | |
6911 | return 0; | |
6912 | } | |
6913 | _ACEOF | |
6914 | rm -f conftest.$ac_objext | |
6915 | if { (ac_try="$ac_compile" | |
6916 | case "(($ac_try" in | |
6917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6918 | *) ac_try_echo=$ac_try;; | |
6919 | esac | |
030272f3 VY |
6920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6921 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6922 | (eval "$ac_compile") 2>conftest.er1 |
6923 | ac_status=$? | |
6924 | grep -v '^ *+' conftest.er1 >conftest.err | |
6925 | rm -f conftest.er1 | |
6926 | cat conftest.err >&5 | |
030272f3 | 6927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6928 | (exit $ac_status); } && { |
6929 | test -z "$ac_cxx_werror_flag" || | |
6930 | test ! -s conftest.err | |
6931 | } && test -s conftest.$ac_objext; then | |
6932 | ac_compiler_gnu=yes | |
6933 | else | |
030272f3 | 6934 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
6935 | sed 's/^/| /' conftest.$ac_ext >&5 |
6936 | ||
6937 | ac_compiler_gnu=no | |
6938 | fi | |
6939 | ||
6940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6941 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
6942 | ||
6943 | fi | |
030272f3 VY |
6944 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
6945 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
6946 | if test $ac_compiler_gnu = yes; then | |
6947 | GXX=yes | |
6948 | else | |
6949 | GXX= | |
6950 | fi | |
db137867 AC |
6951 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
6952 | ac_save_CXXFLAGS=$CXXFLAGS | |
030272f3 VY |
6953 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
6954 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
db137867 | 6955 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
030272f3 | 6956 | $as_echo_n "(cached) " >&6 |
db137867 AC |
6957 | else |
6958 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
6959 | ac_cxx_werror_flag=yes | |
6960 | ac_cv_prog_cxx_g=no | |
6961 | CXXFLAGS="-g" | |
6962 | cat >conftest.$ac_ext <<_ACEOF | |
6963 | /* confdefs.h. */ | |
6964 | _ACEOF | |
6965 | cat confdefs.h >>conftest.$ac_ext | |
6966 | cat >>conftest.$ac_ext <<_ACEOF | |
6967 | /* end confdefs.h. */ | |
6968 | ||
6969 | int | |
6970 | main () | |
6971 | { | |
6972 | ||
6973 | ; | |
6974 | return 0; | |
6975 | } | |
6976 | _ACEOF | |
6977 | rm -f conftest.$ac_objext | |
6978 | if { (ac_try="$ac_compile" | |
6979 | case "(($ac_try" in | |
6980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6981 | *) ac_try_echo=$ac_try;; | |
6982 | esac | |
030272f3 VY |
6983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6984 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
6985 | (eval "$ac_compile") 2>conftest.er1 |
6986 | ac_status=$? | |
6987 | grep -v '^ *+' conftest.er1 >conftest.err | |
6988 | rm -f conftest.er1 | |
6989 | cat conftest.err >&5 | |
030272f3 | 6990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
6991 | (exit $ac_status); } && { |
6992 | test -z "$ac_cxx_werror_flag" || | |
6993 | test ! -s conftest.err | |
6994 | } && test -s conftest.$ac_objext; then | |
6995 | ac_cv_prog_cxx_g=yes | |
6996 | else | |
030272f3 | 6997 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
6998 | sed 's/^/| /' conftest.$ac_ext >&5 |
6999 | ||
7000 | CXXFLAGS="" | |
7001 | cat >conftest.$ac_ext <<_ACEOF | |
7002 | /* confdefs.h. */ | |
7003 | _ACEOF | |
7004 | cat confdefs.h >>conftest.$ac_ext | |
7005 | cat >>conftest.$ac_ext <<_ACEOF | |
7006 | /* end confdefs.h. */ | |
7007 | ||
7008 | int | |
7009 | main () | |
7010 | { | |
7011 | ||
7012 | ; | |
7013 | return 0; | |
7014 | } | |
7015 | _ACEOF | |
7016 | rm -f conftest.$ac_objext | |
7017 | if { (ac_try="$ac_compile" | |
7018 | case "(($ac_try" in | |
7019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7020 | *) ac_try_echo=$ac_try;; | |
7021 | esac | |
030272f3 VY |
7022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7023 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7024 | (eval "$ac_compile") 2>conftest.er1 |
7025 | ac_status=$? | |
7026 | grep -v '^ *+' conftest.er1 >conftest.err | |
7027 | rm -f conftest.er1 | |
7028 | cat conftest.err >&5 | |
030272f3 | 7029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7030 | (exit $ac_status); } && { |
7031 | test -z "$ac_cxx_werror_flag" || | |
7032 | test ! -s conftest.err | |
7033 | } && test -s conftest.$ac_objext; then | |
7034 | : | |
7035 | else | |
030272f3 | 7036 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7037 | sed 's/^/| /' conftest.$ac_ext >&5 |
7038 | ||
7039 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
7040 | CXXFLAGS="-g" | |
7041 | cat >conftest.$ac_ext <<_ACEOF | |
7042 | /* confdefs.h. */ | |
7043 | _ACEOF | |
7044 | cat confdefs.h >>conftest.$ac_ext | |
7045 | cat >>conftest.$ac_ext <<_ACEOF | |
7046 | /* end confdefs.h. */ | |
7047 | ||
7048 | int | |
7049 | main () | |
7050 | { | |
7051 | ||
7052 | ; | |
7053 | return 0; | |
7054 | } | |
7055 | _ACEOF | |
7056 | rm -f conftest.$ac_objext | |
7057 | if { (ac_try="$ac_compile" | |
7058 | case "(($ac_try" in | |
7059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7060 | *) ac_try_echo=$ac_try;; | |
7061 | esac | |
030272f3 VY |
7062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7063 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7064 | (eval "$ac_compile") 2>conftest.er1 |
7065 | ac_status=$? | |
7066 | grep -v '^ *+' conftest.er1 >conftest.err | |
7067 | rm -f conftest.er1 | |
7068 | cat conftest.err >&5 | |
030272f3 | 7069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7070 | (exit $ac_status); } && { |
7071 | test -z "$ac_cxx_werror_flag" || | |
7072 | test ! -s conftest.err | |
7073 | } && test -s conftest.$ac_objext; then | |
7074 | ac_cv_prog_cxx_g=yes | |
7075 | else | |
030272f3 | 7076 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7077 | sed 's/^/| /' conftest.$ac_ext >&5 |
7078 | ||
7079 | ||
7080 | fi | |
7081 | ||
7082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7083 | fi | |
7084 | ||
7085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7086 | fi | |
7087 | ||
7088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7089 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
7090 | fi | |
030272f3 VY |
7091 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
7092 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
db137867 AC |
7093 | if test "$ac_test_CXXFLAGS" = set; then |
7094 | CXXFLAGS=$ac_save_CXXFLAGS | |
7095 | elif test $ac_cv_prog_cxx_g = yes; then | |
7096 | if test "$GXX" = yes; then | |
7097 | CXXFLAGS="-g -O2" | |
7098 | else | |
7099 | CXXFLAGS="-g" | |
7100 | fi | |
7101 | else | |
7102 | if test "$GXX" = yes; then | |
7103 | CXXFLAGS="-O2" | |
7104 | else | |
7105 | CXXFLAGS= | |
7106 | fi | |
7107 | fi | |
7108 | ac_ext=cpp | |
7109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7113 | ||
7114 | depcc="$CXX" am_compiler_list= | |
7115 | ||
030272f3 VY |
7116 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
7117 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
db137867 | 7118 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
030272f3 | 7119 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7120 | else |
7121 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
7122 | # We make a subdir and do the tests there. Otherwise we can end up | |
7123 | # making bogus files that we don't know about and never remove. For | |
7124 | # instance it was reported that on HP-UX the gcc test will end up | |
7125 | # making a dummy file named `D' -- because `-MD' means `put the output | |
7126 | # in D'. | |
7127 | mkdir conftest.dir | |
7128 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
7129 | # using a relative directory. | |
7130 | cp "$am_depcomp" conftest.dir | |
7131 | cd conftest.dir | |
7132 | # We will build objects and dependencies in a subdirectory because | |
7133 | # it helps to detect inapplicable dependency modes. For instance | |
7134 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
7135 | # side effect of compilation, but ICC will put the dependencies in | |
7136 | # the current directory while Tru64 will put them in the object | |
7137 | # directory. | |
7138 | mkdir sub | |
7139 | ||
7140 | am_cv_CXX_dependencies_compiler_type=none | |
7141 | if test "$am_compiler_list" = ""; then | |
7142 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
7143 | fi | |
7144 | for depmode in $am_compiler_list; do | |
7145 | # Setup a source with many dependencies, because some compilers | |
7146 | # like to wrap large dependency lists on column 80 (with \), and | |
7147 | # we should not choose a depcomp mode which is confused by this. | |
7148 | # | |
7149 | # We need to recreate these files for each test, as the compiler may | |
7150 | # overwrite some of them when testing with obscure command lines. | |
7151 | # This happens at least with the AIX C compiler. | |
7152 | : > sub/conftest.c | |
7153 | for i in 1 2 3 4 5 6; do | |
7154 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
7155 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
7156 | # Solaris 8's {/usr,}/bin/sh. | |
7157 | touch sub/conftst$i.h | |
7158 | done | |
7159 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
7160 | ||
7161 | case $depmode in | |
7162 | nosideeffect) | |
7163 | # after this tag, mechanisms are not by side-effect, so they'll | |
7164 | # only be used when explicitly requested | |
7165 | if test "x$enable_dependency_tracking" = xyes; then | |
7166 | continue | |
7167 | else | |
7168 | break | |
7169 | fi | |
7170 | ;; | |
7171 | none) break ;; | |
7172 | esac | |
7173 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
7174 | # mode. It turns out that the SunPro C++ compiler does not properly | |
7175 | # handle `-M -o', and we need to detect this. | |
7176 | if depmode=$depmode \ | |
7177 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
7178 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
7179 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
7180 | >/dev/null 2>conftest.err && | |
7181 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
7182 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7183 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
7184 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
7185 | # icc doesn't choke on unknown options, it will just issue warnings | |
7186 | # or remarks (even with -Werror). So we grep stderr for any message | |
7187 | # that says an option was ignored or not supported. | |
7188 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
7189 | # icc: Command line warning: ignoring option '-M'; no argument required | |
7190 | # The diagnosis changed in icc 8.0: | |
7191 | # icc: Command line remark: option '-MP' not supported | |
7192 | if (grep 'ignoring option' conftest.err || | |
7193 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
7194 | am_cv_CXX_dependencies_compiler_type=$depmode | |
7195 | break | |
7196 | fi | |
7197 | fi | |
7198 | done | |
7199 | ||
7200 | cd .. | |
7201 | rm -rf conftest.dir | |
7202 | else | |
7203 | am_cv_CXX_dependencies_compiler_type=none | |
7204 | fi | |
7205 | ||
7206 | fi | |
030272f3 VY |
7207 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
7208 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
db137867 AC |
7209 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
7210 | ||
7211 | if | |
7212 | test "x$enable_dependency_tracking" != xno \ | |
7213 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
7214 | am__fastdepCXX_TRUE= | |
7215 | am__fastdepCXX_FALSE='#' | |
7216 | else | |
7217 | am__fastdepCXX_TRUE='#' | |
7218 | am__fastdepCXX_FALSE= | |
7219 | fi | |
7220 | ||
7221 | ||
7222 | ||
7223 | ||
7224 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
7225 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
7226 | (test "X$CXX" != "Xg++"))) ; then | |
7227 | ac_ext=cpp | |
7228 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
030272f3 VY |
7232 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7233 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
db137867 AC |
7234 | if test -z "$CXXCPP"; then |
7235 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
030272f3 | 7236 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7237 | else |
7238 | # Double quotes because CXXCPP needs to be expanded | |
7239 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7240 | do | |
7241 | ac_preproc_ok=false | |
7242 | for ac_cxx_preproc_warn_flag in '' yes | |
7243 | do | |
7244 | # Use a header file that comes with gcc, so configuring glibc | |
7245 | # with a fresh cross-compiler works. | |
7246 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7247 | # <limits.h> exists even on freestanding compilers. | |
7248 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7249 | # not just through cpp. "Syntax error" is here to catch this case. | |
7250 | cat >conftest.$ac_ext <<_ACEOF | |
7251 | /* confdefs.h. */ | |
7252 | _ACEOF | |
7253 | cat confdefs.h >>conftest.$ac_ext | |
7254 | cat >>conftest.$ac_ext <<_ACEOF | |
7255 | /* end confdefs.h. */ | |
7256 | #ifdef __STDC__ | |
7257 | # include <limits.h> | |
7258 | #else | |
7259 | # include <assert.h> | |
7260 | #endif | |
7261 | Syntax error | |
7262 | _ACEOF | |
7263 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7264 | case "(($ac_try" in | |
7265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7266 | *) ac_try_echo=$ac_try;; | |
7267 | esac | |
030272f3 VY |
7268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7269 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7271 | ac_status=$? | |
7272 | grep -v '^ *+' conftest.er1 >conftest.err | |
7273 | rm -f conftest.er1 | |
7274 | cat conftest.err >&5 | |
030272f3 | 7275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7276 | (exit $ac_status); } >/dev/null && { |
7277 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7278 | test ! -s conftest.err | |
7279 | }; then | |
7280 | : | |
7281 | else | |
030272f3 | 7282 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7283 | sed 's/^/| /' conftest.$ac_ext >&5 |
7284 | ||
7285 | # Broken: fails on valid input. | |
7286 | continue | |
7287 | fi | |
7288 | ||
7289 | rm -f conftest.err conftest.$ac_ext | |
7290 | ||
7291 | # OK, works on sane cases. Now check whether nonexistent headers | |
7292 | # can be detected and how. | |
7293 | cat >conftest.$ac_ext <<_ACEOF | |
7294 | /* confdefs.h. */ | |
7295 | _ACEOF | |
7296 | cat confdefs.h >>conftest.$ac_ext | |
7297 | cat >>conftest.$ac_ext <<_ACEOF | |
7298 | /* end confdefs.h. */ | |
7299 | #include <ac_nonexistent.h> | |
7300 | _ACEOF | |
7301 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7302 | case "(($ac_try" in | |
7303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7304 | *) ac_try_echo=$ac_try;; | |
7305 | esac | |
030272f3 VY |
7306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7307 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7309 | ac_status=$? | |
7310 | grep -v '^ *+' conftest.er1 >conftest.err | |
7311 | rm -f conftest.er1 | |
7312 | cat conftest.err >&5 | |
030272f3 | 7313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7314 | (exit $ac_status); } >/dev/null && { |
7315 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7316 | test ! -s conftest.err | |
7317 | }; then | |
7318 | # Broken: success on invalid input. | |
7319 | continue | |
7320 | else | |
030272f3 | 7321 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7322 | sed 's/^/| /' conftest.$ac_ext >&5 |
7323 | ||
7324 | # Passes both tests. | |
7325 | ac_preproc_ok=: | |
7326 | break | |
7327 | fi | |
7328 | ||
7329 | rm -f conftest.err conftest.$ac_ext | |
7330 | ||
7331 | done | |
7332 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7333 | rm -f conftest.err conftest.$ac_ext | |
7334 | if $ac_preproc_ok; then | |
7335 | break | |
7336 | fi | |
7337 | ||
7338 | done | |
7339 | ac_cv_prog_CXXCPP=$CXXCPP | |
7340 | ||
7341 | fi | |
7342 | CXXCPP=$ac_cv_prog_CXXCPP | |
7343 | else | |
7344 | ac_cv_prog_CXXCPP=$CXXCPP | |
7345 | fi | |
030272f3 VY |
7346 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7347 | $as_echo "$CXXCPP" >&6; } | |
db137867 AC |
7348 | ac_preproc_ok=false |
7349 | for ac_cxx_preproc_warn_flag in '' yes | |
7350 | do | |
7351 | # Use a header file that comes with gcc, so configuring glibc | |
7352 | # with a fresh cross-compiler works. | |
7353 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7354 | # <limits.h> exists even on freestanding compilers. | |
7355 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7356 | # not just through cpp. "Syntax error" is here to catch this case. | |
7357 | cat >conftest.$ac_ext <<_ACEOF | |
7358 | /* confdefs.h. */ | |
7359 | _ACEOF | |
7360 | cat confdefs.h >>conftest.$ac_ext | |
7361 | cat >>conftest.$ac_ext <<_ACEOF | |
7362 | /* end confdefs.h. */ | |
7363 | #ifdef __STDC__ | |
7364 | # include <limits.h> | |
7365 | #else | |
7366 | # include <assert.h> | |
7367 | #endif | |
7368 | Syntax error | |
7369 | _ACEOF | |
7370 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7371 | case "(($ac_try" in | |
7372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7373 | *) ac_try_echo=$ac_try;; | |
7374 | esac | |
030272f3 VY |
7375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7376 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7378 | ac_status=$? | |
7379 | grep -v '^ *+' conftest.er1 >conftest.err | |
7380 | rm -f conftest.er1 | |
7381 | cat conftest.err >&5 | |
030272f3 | 7382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7383 | (exit $ac_status); } >/dev/null && { |
7384 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7385 | test ! -s conftest.err | |
7386 | }; then | |
7387 | : | |
7388 | else | |
030272f3 | 7389 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7390 | sed 's/^/| /' conftest.$ac_ext >&5 |
7391 | ||
7392 | # Broken: fails on valid input. | |
7393 | continue | |
7394 | fi | |
7395 | ||
7396 | rm -f conftest.err conftest.$ac_ext | |
7397 | ||
7398 | # OK, works on sane cases. Now check whether nonexistent headers | |
7399 | # can be detected and how. | |
7400 | cat >conftest.$ac_ext <<_ACEOF | |
7401 | /* confdefs.h. */ | |
7402 | _ACEOF | |
7403 | cat confdefs.h >>conftest.$ac_ext | |
7404 | cat >>conftest.$ac_ext <<_ACEOF | |
7405 | /* end confdefs.h. */ | |
7406 | #include <ac_nonexistent.h> | |
7407 | _ACEOF | |
7408 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7409 | case "(($ac_try" in | |
7410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7411 | *) ac_try_echo=$ac_try;; | |
7412 | esac | |
030272f3 VY |
7413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7414 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7415 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7416 | ac_status=$? | |
7417 | grep -v '^ *+' conftest.er1 >conftest.err | |
7418 | rm -f conftest.er1 | |
7419 | cat conftest.err >&5 | |
030272f3 | 7420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7421 | (exit $ac_status); } >/dev/null && { |
7422 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7423 | test ! -s conftest.err | |
7424 | }; then | |
7425 | # Broken: success on invalid input. | |
7426 | continue | |
7427 | else | |
030272f3 | 7428 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7429 | sed 's/^/| /' conftest.$ac_ext >&5 |
7430 | ||
7431 | # Passes both tests. | |
7432 | ac_preproc_ok=: | |
7433 | break | |
7434 | fi | |
7435 | ||
7436 | rm -f conftest.err conftest.$ac_ext | |
7437 | ||
7438 | done | |
7439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7440 | rm -f conftest.err conftest.$ac_ext | |
7441 | if $ac_preproc_ok; then | |
7442 | : | |
7443 | else | |
030272f3 VY |
7444 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7446 | { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
db137867 | 7447 | See \`config.log' for more details." >&5 |
030272f3 | 7448 | $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
db137867 | 7449 | See \`config.log' for more details." >&2;} |
030272f3 | 7450 | { (exit 1); exit 1; }; }; } |
db137867 AC |
7451 | fi |
7452 | ||
7453 | ac_ext=cpp | |
7454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7458 | ||
7459 | fi | |
7460 | ||
7461 | ||
7462 | ac_ext=f | |
7463 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
7464 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7465 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
7466 | if test -n "$ac_tool_prefix"; then | |
7467 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
7468 | do | |
7469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
030272f3 VY |
7471 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7472 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 7473 | if test "${ac_cv_prog_F77+set}" = set; then |
030272f3 | 7474 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7475 | else |
7476 | if test -n "$F77"; then | |
7477 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
7478 | else | |
7479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7480 | for as_dir in $PATH | |
7481 | do | |
7482 | IFS=$as_save_IFS | |
7483 | test -z "$as_dir" && as_dir=. | |
7484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7486 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
030272f3 | 7487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7488 | break 2 |
7489 | fi | |
7490 | done | |
7491 | done | |
7492 | IFS=$as_save_IFS | |
7493 | ||
7494 | fi | |
7495 | fi | |
7496 | F77=$ac_cv_prog_F77 | |
7497 | if test -n "$F77"; then | |
030272f3 VY |
7498 | { $as_echo "$as_me:$LINENO: result: $F77" >&5 |
7499 | $as_echo "$F77" >&6; } | |
db137867 | 7500 | else |
030272f3 VY |
7501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7502 | $as_echo "no" >&6; } | |
db137867 AC |
7503 | fi |
7504 | ||
7505 | ||
7506 | test -n "$F77" && break | |
7507 | done | |
7508 | fi | |
7509 | if test -z "$F77"; then | |
7510 | ac_ct_F77=$F77 | |
7511 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | |
7512 | do | |
7513 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7514 | set dummy $ac_prog; ac_word=$2 | |
030272f3 VY |
7515 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7516 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 7517 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
030272f3 | 7518 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7519 | else |
7520 | if test -n "$ac_ct_F77"; then | |
7521 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
7522 | else | |
7523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7524 | for as_dir in $PATH | |
7525 | do | |
7526 | IFS=$as_save_IFS | |
7527 | test -z "$as_dir" && as_dir=. | |
7528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7530 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
030272f3 | 7531 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
7532 | break 2 |
7533 | fi | |
7534 | done | |
7535 | done | |
7536 | IFS=$as_save_IFS | |
7537 | ||
7538 | fi | |
7539 | fi | |
7540 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
7541 | if test -n "$ac_ct_F77"; then | |
030272f3 VY |
7542 | { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
7543 | $as_echo "$ac_ct_F77" >&6; } | |
db137867 | 7544 | else |
030272f3 VY |
7545 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7546 | $as_echo "no" >&6; } | |
db137867 AC |
7547 | fi |
7548 | ||
7549 | ||
7550 | test -n "$ac_ct_F77" && break | |
7551 | done | |
7552 | ||
7553 | if test "x$ac_ct_F77" = x; then | |
7554 | F77="" | |
7555 | else | |
7556 | case $cross_compiling:$ac_tool_warned in | |
7557 | yes:) | |
030272f3 VY |
7558 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
7559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
7560 | ac_tool_warned=yes ;; |
7561 | esac | |
7562 | F77=$ac_ct_F77 | |
7563 | fi | |
7564 | fi | |
7565 | ||
7566 | ||
7567 | # Provide some information about the compiler. | |
030272f3 VY |
7568 | $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
7569 | set X $ac_compile | |
7570 | ac_compiler=$2 | |
db137867 AC |
7571 | { (ac_try="$ac_compiler --version >&5" |
7572 | case "(($ac_try" in | |
7573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7574 | *) ac_try_echo=$ac_try;; | |
7575 | esac | |
030272f3 VY |
7576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7577 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7578 | (eval "$ac_compiler --version >&5") 2>&5 |
7579 | ac_status=$? | |
030272f3 | 7580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7581 | (exit $ac_status); } |
7582 | { (ac_try="$ac_compiler -v >&5" | |
7583 | case "(($ac_try" in | |
7584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7585 | *) ac_try_echo=$ac_try;; | |
7586 | esac | |
030272f3 VY |
7587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7588 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7589 | (eval "$ac_compiler -v >&5") 2>&5 |
7590 | ac_status=$? | |
030272f3 | 7591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7592 | (exit $ac_status); } |
7593 | { (ac_try="$ac_compiler -V >&5" | |
7594 | case "(($ac_try" in | |
7595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7596 | *) ac_try_echo=$ac_try;; | |
7597 | esac | |
030272f3 VY |
7598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7599 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7600 | (eval "$ac_compiler -V >&5") 2>&5 |
7601 | ac_status=$? | |
030272f3 | 7602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7603 | (exit $ac_status); } |
7604 | rm -f a.out | |
7605 | ||
7606 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
7607 | # input file. (Note that this only needs to work for GNU compilers.) | |
7608 | ac_save_ext=$ac_ext | |
7609 | ac_ext=F | |
030272f3 VY |
7610 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
7611 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } | |
db137867 | 7612 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
030272f3 | 7613 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7614 | else |
7615 | cat >conftest.$ac_ext <<_ACEOF | |
7616 | program main | |
7617 | #ifndef __GNUC__ | |
7618 | choke me | |
7619 | #endif | |
7620 | ||
7621 | end | |
7622 | _ACEOF | |
7623 | rm -f conftest.$ac_objext | |
7624 | if { (ac_try="$ac_compile" | |
7625 | case "(($ac_try" in | |
7626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7627 | *) ac_try_echo=$ac_try;; | |
7628 | esac | |
030272f3 VY |
7629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7630 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7631 | (eval "$ac_compile") 2>conftest.er1 |
7632 | ac_status=$? | |
7633 | grep -v '^ *+' conftest.er1 >conftest.err | |
7634 | rm -f conftest.er1 | |
7635 | cat conftest.err >&5 | |
030272f3 | 7636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7637 | (exit $ac_status); } && { |
7638 | test -z "$ac_f77_werror_flag" || | |
7639 | test ! -s conftest.err | |
7640 | } && test -s conftest.$ac_objext; then | |
7641 | ac_compiler_gnu=yes | |
7642 | else | |
030272f3 | 7643 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7644 | sed 's/^/| /' conftest.$ac_ext >&5 |
7645 | ||
7646 | ac_compiler_gnu=no | |
7647 | fi | |
7648 | ||
7649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7650 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
7651 | ||
7652 | fi | |
030272f3 VY |
7653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
7654 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } | |
db137867 AC |
7655 | ac_ext=$ac_save_ext |
7656 | ac_test_FFLAGS=${FFLAGS+set} | |
7657 | ac_save_FFLAGS=$FFLAGS | |
7658 | FFLAGS= | |
030272f3 VY |
7659 | { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
7660 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } | |
db137867 | 7661 | if test "${ac_cv_prog_f77_g+set}" = set; then |
030272f3 | 7662 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7663 | else |
7664 | FFLAGS=-g | |
7665 | cat >conftest.$ac_ext <<_ACEOF | |
7666 | program main | |
7667 | ||
7668 | end | |
7669 | _ACEOF | |
7670 | rm -f conftest.$ac_objext | |
7671 | if { (ac_try="$ac_compile" | |
7672 | case "(($ac_try" in | |
7673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7674 | *) ac_try_echo=$ac_try;; | |
7675 | esac | |
030272f3 VY |
7676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7677 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
7678 | (eval "$ac_compile") 2>conftest.er1 |
7679 | ac_status=$? | |
7680 | grep -v '^ *+' conftest.er1 >conftest.err | |
7681 | rm -f conftest.er1 | |
7682 | cat conftest.err >&5 | |
030272f3 | 7683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7684 | (exit $ac_status); } && { |
7685 | test -z "$ac_f77_werror_flag" || | |
7686 | test ! -s conftest.err | |
7687 | } && test -s conftest.$ac_objext; then | |
7688 | ac_cv_prog_f77_g=yes | |
7689 | else | |
030272f3 | 7690 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
7691 | sed 's/^/| /' conftest.$ac_ext >&5 |
7692 | ||
7693 | ac_cv_prog_f77_g=no | |
7694 | fi | |
7695 | ||
7696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7697 | ||
7698 | fi | |
030272f3 VY |
7699 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
7700 | $as_echo "$ac_cv_prog_f77_g" >&6; } | |
db137867 AC |
7701 | if test "$ac_test_FFLAGS" = set; then |
7702 | FFLAGS=$ac_save_FFLAGS | |
7703 | elif test $ac_cv_prog_f77_g = yes; then | |
7704 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
7705 | FFLAGS="-g -O2" | |
7706 | else | |
7707 | FFLAGS="-g" | |
7708 | fi | |
7709 | else | |
7710 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
7711 | FFLAGS="-O2" | |
7712 | else | |
7713 | FFLAGS= | |
7714 | fi | |
7715 | fi | |
7716 | ||
030272f3 VY |
7717 | if test $ac_compiler_gnu = yes; then |
7718 | G77=yes | |
7719 | else | |
7720 | G77= | |
7721 | fi | |
db137867 AC |
7722 | ac_ext=c |
7723 | ac_cpp='$CPP $CPPFLAGS' | |
7724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7727 | ||
7728 | ||
7729 | ||
7730 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
db137867 | 7731 | # find the maximum length of command line arguments |
030272f3 VY |
7732 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
7733 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
db137867 | 7734 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
030272f3 | 7735 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7736 | else |
7737 | i=0 | |
7738 | teststring="ABCD" | |
7739 | ||
7740 | case $build_os in | |
7741 | msdosdjgpp*) | |
7742 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7743 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7744 | # during glob expansion). Even if it were fixed, the result of this | |
7745 | # check would be larger than it should be. | |
7746 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7747 | ;; | |
7748 | ||
7749 | gnu*) | |
7750 | # Under GNU Hurd, this test is not required because there is | |
7751 | # no limit to the length of command line arguments. | |
7752 | # Libtool will interpret -1 as no limit whatsoever | |
7753 | lt_cv_sys_max_cmd_len=-1; | |
7754 | ;; | |
7755 | ||
7756 | cygwin* | mingw*) | |
7757 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
7758 | # about 5 minutes as the teststring grows exponentially. | |
7759 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7760 | # you end up with a "frozen" computer, even though with patience | |
7761 | # the test eventually succeeds (with a max line length of 256k). | |
7762 | # Instead, let's just punt: use the minimum linelength reported by | |
7763 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7764 | lt_cv_sys_max_cmd_len=8192; | |
7765 | ;; | |
7766 | ||
7767 | amigaos*) | |
7768 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7769 | # So we just punt and use a minimum line length of 8192. | |
7770 | lt_cv_sys_max_cmd_len=8192; | |
7771 | ;; | |
7772 | ||
7773 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7774 | # This has been around since 386BSD, at least. Likely further. | |
7775 | if test -x /sbin/sysctl; then | |
7776 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7777 | elif test -x /usr/sbin/sysctl; then | |
7778 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7779 | else | |
7780 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7781 | fi | |
7782 | # And add a safety zone | |
7783 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7784 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7785 | ;; | |
7786 | ||
7787 | interix*) | |
7788 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7789 | lt_cv_sys_max_cmd_len=196608 | |
7790 | ;; | |
7791 | ||
7792 | osf*) | |
7793 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7794 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7795 | # nice to cause kernel panics so lets avoid the loop below. | |
7796 | # First set a reasonable default. | |
7797 | lt_cv_sys_max_cmd_len=16384 | |
7798 | # | |
7799 | if test -x /sbin/sysconfig; then | |
7800 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7801 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7802 | esac | |
7803 | fi | |
7804 | ;; | |
7805 | sco3.2v5*) | |
7806 | lt_cv_sys_max_cmd_len=102400 | |
7807 | ;; | |
7808 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7809 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7810 | if test -n "$kargmax"; then | |
7811 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7812 | else | |
7813 | lt_cv_sys_max_cmd_len=32768 | |
7814 | fi | |
7815 | ;; | |
7816 | *) | |
7817 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
7818 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7819 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7820 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7821 | else | |
7822 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7823 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
7824 | = "XX$teststring") >/dev/null 2>&1 && | |
7825 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
7826 | lt_cv_sys_max_cmd_len=$new_result && | |
7827 | test $i != 17 # 1/2 MB should be enough | |
7828 | do | |
7829 | i=`expr $i + 1` | |
7830 | teststring=$teststring$teststring | |
7831 | done | |
7832 | teststring= | |
7833 | # Add a significant safety factor because C++ compilers can tack on massive | |
7834 | # amounts of additional arguments before passing them to the linker. | |
7835 | # It appears as though 1/2 is a usable value. | |
7836 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7837 | fi | |
7838 | ;; | |
7839 | esac | |
7840 | ||
7841 | fi | |
7842 | ||
7843 | if test -n $lt_cv_sys_max_cmd_len ; then | |
030272f3 VY |
7844 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
7845 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
db137867 | 7846 | else |
030272f3 VY |
7847 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
7848 | $as_echo "none" >&6; } | |
db137867 AC |
7849 | fi |
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
030272f3 VY |
7856 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
7857 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
db137867 | 7858 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
030272f3 | 7859 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7860 | else |
7861 | ||
7862 | # These are sane defaults that work on at least a few old systems. | |
7863 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7864 | ||
7865 | # Character class describing NM global symbol codes. | |
7866 | symcode='[BCDEGRST]' | |
7867 | ||
7868 | # Regexp to match symbols that can be accessed directly from C. | |
7869 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7870 | ||
7871 | # Transform an extracted symbol line into a proper C declaration | |
7872 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
7873 | ||
7874 | # Transform an extracted symbol line into symbol name and symbol address | |
7875 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7876 | ||
7877 | # Define system-specific variables. | |
7878 | case $host_os in | |
7879 | aix*) | |
7880 | symcode='[BCDT]' | |
7881 | ;; | |
7882 | cygwin* | mingw* | pw32*) | |
7883 | symcode='[ABCDGISTW]' | |
7884 | ;; | |
7885 | hpux*) # Its linker distinguishes data from code symbols | |
7886 | if test "$host_cpu" = ia64; then | |
7887 | symcode='[ABCDEGRST]' | |
7888 | fi | |
7889 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7890 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7891 | ;; | |
7892 | linux* | k*bsd*-gnu) | |
7893 | if test "$host_cpu" = ia64; then | |
7894 | symcode='[ABCDGIRSTW]' | |
7895 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7896 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
7897 | fi | |
7898 | ;; | |
7899 | irix* | nonstopux*) | |
7900 | symcode='[BCDEGRST]' | |
7901 | ;; | |
7902 | osf*) | |
7903 | symcode='[BCDEGQRST]' | |
7904 | ;; | |
7905 | solaris*) | |
7906 | symcode='[BDRT]' | |
7907 | ;; | |
7908 | sco3.2v5*) | |
7909 | symcode='[DT]' | |
7910 | ;; | |
7911 | sysv4.2uw2*) | |
7912 | symcode='[DT]' | |
7913 | ;; | |
7914 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7915 | symcode='[ABDT]' | |
7916 | ;; | |
7917 | sysv4) | |
7918 | symcode='[DFNSTU]' | |
7919 | ;; | |
7920 | esac | |
7921 | ||
7922 | # Handle CRLF in mingw tool chain | |
7923 | opt_cr= | |
7924 | case $build_os in | |
7925 | mingw*) | |
7926 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7927 | ;; | |
7928 | esac | |
7929 | ||
7930 | # If we're using GNU nm, then use its standard symbol codes. | |
7931 | case `$NM -V 2>&1` in | |
7932 | *GNU* | *'with BFD'*) | |
7933 | symcode='[ABCDGIRSTW]' ;; | |
7934 | esac | |
7935 | ||
7936 | # Try without a prefix undercore, then with it. | |
7937 | for ac_symprfx in "" "_"; do | |
7938 | ||
7939 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7940 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7941 | ||
7942 | # Write the raw and C identifiers. | |
7943 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7944 | ||
7945 | # Check to see that the pipe works correctly. | |
7946 | pipe_works=no | |
7947 | ||
7948 | rm -f conftest* | |
7949 | cat > conftest.$ac_ext <<EOF | |
7950 | #ifdef __cplusplus | |
7951 | extern "C" { | |
7952 | #endif | |
7953 | char nm_test_var; | |
7954 | void nm_test_func(){} | |
7955 | #ifdef __cplusplus | |
7956 | } | |
7957 | #endif | |
7958 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7959 | EOF | |
7960 | ||
7961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7962 | (eval $ac_compile) 2>&5 | |
7963 | ac_status=$? | |
030272f3 | 7964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7965 | (exit $ac_status); }; then |
7966 | # Now try to grab the symbols. | |
7967 | nlist=conftest.nm | |
7968 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
7969 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
7970 | ac_status=$? | |
030272f3 | 7971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
7972 | (exit $ac_status); } && test -s "$nlist"; then |
7973 | # Try sorting and uniquifying the output. | |
7974 | if sort "$nlist" | uniq > "$nlist"T; then | |
7975 | mv -f "$nlist"T "$nlist" | |
7976 | else | |
7977 | rm -f "$nlist"T | |
7978 | fi | |
7979 | ||
7980 | # Make sure that we snagged all the symbols we need. | |
7981 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
7982 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
7983 | cat <<EOF > conftest.$ac_ext | |
7984 | #ifdef __cplusplus | |
7985 | extern "C" { | |
7986 | #endif | |
7987 | ||
7988 | EOF | |
7989 | # Now generate the symbol file. | |
7990 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
7991 | ||
7992 | cat <<EOF >> conftest.$ac_ext | |
7993 | #if defined (__STDC__) && __STDC__ | |
7994 | # define lt_ptr_t void * | |
7995 | #else | |
7996 | # define lt_ptr_t char * | |
7997 | # define const | |
7998 | #endif | |
7999 | ||
8000 | /* The mapping between symbol names and symbols. */ | |
8001 | const struct { | |
8002 | const char *name; | |
8003 | lt_ptr_t address; | |
8004 | } | |
8005 | lt_preloaded_symbols[] = | |
8006 | { | |
8007 | EOF | |
8008 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
8009 | cat <<\EOF >> conftest.$ac_ext | |
8010 | {0, (lt_ptr_t) 0} | |
8011 | }; | |
8012 | ||
8013 | #ifdef __cplusplus | |
8014 | } | |
8015 | #endif | |
8016 | EOF | |
8017 | # Now try linking the two files. | |
8018 | mv conftest.$ac_objext conftstm.$ac_objext | |
8019 | lt_save_LIBS="$LIBS" | |
8020 | lt_save_CFLAGS="$CFLAGS" | |
8021 | LIBS="conftstm.$ac_objext" | |
8022 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
8023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8024 | (eval $ac_link) 2>&5 | |
8025 | ac_status=$? | |
030272f3 | 8026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
8027 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
8028 | pipe_works=yes | |
8029 | fi | |
8030 | LIBS="$lt_save_LIBS" | |
8031 | CFLAGS="$lt_save_CFLAGS" | |
8032 | else | |
8033 | echo "cannot find nm_test_func in $nlist" >&5 | |
8034 | fi | |
8035 | else | |
8036 | echo "cannot find nm_test_var in $nlist" >&5 | |
8037 | fi | |
8038 | else | |
8039 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8040 | fi | |
8041 | else | |
8042 | echo "$progname: failed program was:" >&5 | |
8043 | cat conftest.$ac_ext >&5 | |
8044 | fi | |
b676ea3b | 8045 | rm -rf conftest* conftst* |
db137867 AC |
8046 | |
8047 | # Do not use the global_symbol_pipe unless it works. | |
8048 | if test "$pipe_works" = yes; then | |
8049 | break | |
8050 | else | |
8051 | lt_cv_sys_global_symbol_pipe= | |
8052 | fi | |
8053 | done | |
8054 | ||
8055 | fi | |
8056 | ||
8057 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8058 | lt_cv_sys_global_symbol_to_cdecl= | |
8059 | fi | |
8060 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
030272f3 VY |
8061 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
8062 | $as_echo "failed" >&6; } | |
db137867 | 8063 | else |
030272f3 VY |
8064 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
8065 | $as_echo "ok" >&6; } | |
db137867 AC |
8066 | fi |
8067 | ||
030272f3 VY |
8068 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
8069 | $as_echo_n "checking for objdir... " >&6; } | |
db137867 | 8070 | if test "${lt_cv_objdir+set}" = set; then |
030272f3 | 8071 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8072 | else |
8073 | rm -f .libs 2>/dev/null | |
8074 | mkdir .libs 2>/dev/null | |
8075 | if test -d .libs; then | |
8076 | lt_cv_objdir=.libs | |
8077 | else | |
8078 | # MS-DOS does not allow filenames that begin with a dot. | |
8079 | lt_cv_objdir=_libs | |
8080 | fi | |
8081 | rmdir .libs 2>/dev/null | |
8082 | fi | |
030272f3 VY |
8083 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
8084 | $as_echo "$lt_cv_objdir" >&6; } | |
db137867 AC |
8085 | objdir=$lt_cv_objdir |
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | case $host_os in | |
8092 | aix3*) | |
8093 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8094 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8095 | # vanish in a puff of smoke. | |
8096 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8097 | COLLECT_NAMES= | |
8098 | export COLLECT_NAMES | |
8099 | fi | |
8100 | ;; | |
8101 | esac | |
8102 | ||
8103 | # Sed substitution that helps us do robust quoting. It backslashifies | |
8104 | # metacharacters that are still active within double-quoted strings. | |
8105 | Xsed='sed -e 1s/^X//' | |
8106 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
8107 | ||
8108 | # Same as above, but do not quote variable references. | |
8109 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
8110 | ||
8111 | # Sed substitution to delay expansion of an escaped shell variable in a | |
8112 | # double_quote_subst'ed string. | |
8113 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
8114 | ||
8115 | # Sed substitution to avoid accidental globbing in evaled expressions | |
8116 | no_glob_subst='s/\*/\\\*/g' | |
8117 | ||
8118 | # Constants: | |
8119 | rm="rm -f" | |
8120 | ||
8121 | # Global variables: | |
8122 | default_ofile=libtool | |
8123 | can_build_shared=yes | |
8124 | ||
8125 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8126 | # which needs '.lib'). | |
8127 | libext=a | |
8128 | ltmain="$ac_aux_dir/ltmain.sh" | |
8129 | ofile="$default_ofile" | |
8130 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8131 | ||
8132 | if test -n "$ac_tool_prefix"; then | |
8133 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
8134 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
030272f3 VY |
8135 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8136 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8137 | if test "${ac_cv_prog_AR+set}" = set; then |
030272f3 | 8138 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8139 | else |
8140 | if test -n "$AR"; then | |
8141 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8142 | else | |
8143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8144 | for as_dir in $PATH | |
8145 | do | |
8146 | IFS=$as_save_IFS | |
8147 | test -z "$as_dir" && as_dir=. | |
8148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8150 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
030272f3 | 8151 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8152 | break 2 |
8153 | fi | |
8154 | done | |
8155 | done | |
8156 | IFS=$as_save_IFS | |
8157 | ||
8158 | fi | |
8159 | fi | |
8160 | AR=$ac_cv_prog_AR | |
8161 | if test -n "$AR"; then | |
030272f3 VY |
8162 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
8163 | $as_echo "$AR" >&6; } | |
db137867 | 8164 | else |
030272f3 VY |
8165 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8166 | $as_echo "no" >&6; } | |
db137867 AC |
8167 | fi |
8168 | ||
8169 | ||
8170 | fi | |
8171 | if test -z "$ac_cv_prog_AR"; then | |
8172 | ac_ct_AR=$AR | |
8173 | # Extract the first word of "ar", so it can be a program name with args. | |
8174 | set dummy ar; ac_word=$2 | |
030272f3 VY |
8175 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8176 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8177 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
030272f3 | 8178 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8179 | else |
8180 | if test -n "$ac_ct_AR"; then | |
8181 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8182 | else | |
8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8184 | for as_dir in $PATH | |
8185 | do | |
8186 | IFS=$as_save_IFS | |
8187 | test -z "$as_dir" && as_dir=. | |
8188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8190 | ac_cv_prog_ac_ct_AR="ar" | |
030272f3 | 8191 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8192 | break 2 |
8193 | fi | |
8194 | done | |
8195 | done | |
8196 | IFS=$as_save_IFS | |
8197 | ||
8198 | fi | |
8199 | fi | |
8200 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8201 | if test -n "$ac_ct_AR"; then | |
030272f3 VY |
8202 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
8203 | $as_echo "$ac_ct_AR" >&6; } | |
db137867 | 8204 | else |
030272f3 VY |
8205 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8206 | $as_echo "no" >&6; } | |
db137867 AC |
8207 | fi |
8208 | ||
8209 | if test "x$ac_ct_AR" = x; then | |
8210 | AR="false" | |
8211 | else | |
8212 | case $cross_compiling:$ac_tool_warned in | |
8213 | yes:) | |
030272f3 VY |
8214 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
8215 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
8216 | ac_tool_warned=yes ;; |
8217 | esac | |
8218 | AR=$ac_ct_AR | |
8219 | fi | |
8220 | else | |
8221 | AR="$ac_cv_prog_AR" | |
8222 | fi | |
8223 | ||
8224 | if test -n "$ac_tool_prefix"; then | |
8225 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8226 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
030272f3 VY |
8227 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8228 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8229 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
030272f3 | 8230 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8231 | else |
8232 | if test -n "$RANLIB"; then | |
8233 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8234 | else | |
8235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8236 | for as_dir in $PATH | |
8237 | do | |
8238 | IFS=$as_save_IFS | |
8239 | test -z "$as_dir" && as_dir=. | |
8240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8242 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
030272f3 | 8243 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8244 | break 2 |
8245 | fi | |
8246 | done | |
8247 | done | |
8248 | IFS=$as_save_IFS | |
8249 | ||
8250 | fi | |
8251 | fi | |
8252 | RANLIB=$ac_cv_prog_RANLIB | |
8253 | if test -n "$RANLIB"; then | |
030272f3 VY |
8254 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8255 | $as_echo "$RANLIB" >&6; } | |
db137867 | 8256 | else |
030272f3 VY |
8257 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8258 | $as_echo "no" >&6; } | |
db137867 AC |
8259 | fi |
8260 | ||
8261 | ||
8262 | fi | |
8263 | if test -z "$ac_cv_prog_RANLIB"; then | |
8264 | ac_ct_RANLIB=$RANLIB | |
8265 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8266 | set dummy ranlib; ac_word=$2 | |
030272f3 VY |
8267 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8268 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8269 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
030272f3 | 8270 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8271 | else |
8272 | if test -n "$ac_ct_RANLIB"; then | |
8273 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8274 | else | |
8275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8276 | for as_dir in $PATH | |
8277 | do | |
8278 | IFS=$as_save_IFS | |
8279 | test -z "$as_dir" && as_dir=. | |
8280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8282 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
030272f3 | 8283 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8284 | break 2 |
8285 | fi | |
8286 | done | |
8287 | done | |
8288 | IFS=$as_save_IFS | |
8289 | ||
8290 | fi | |
8291 | fi | |
8292 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8293 | if test -n "$ac_ct_RANLIB"; then | |
030272f3 VY |
8294 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
8295 | $as_echo "$ac_ct_RANLIB" >&6; } | |
db137867 | 8296 | else |
030272f3 VY |
8297 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8298 | $as_echo "no" >&6; } | |
db137867 AC |
8299 | fi |
8300 | ||
8301 | if test "x$ac_ct_RANLIB" = x; then | |
8302 | RANLIB=":" | |
8303 | else | |
8304 | case $cross_compiling:$ac_tool_warned in | |
8305 | yes:) | |
030272f3 VY |
8306 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
8307 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
8308 | ac_tool_warned=yes ;; |
8309 | esac | |
8310 | RANLIB=$ac_ct_RANLIB | |
8311 | fi | |
8312 | else | |
8313 | RANLIB="$ac_cv_prog_RANLIB" | |
8314 | fi | |
8315 | ||
8316 | if test -n "$ac_tool_prefix"; then | |
8317 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
8318 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
030272f3 VY |
8319 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8320 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8321 | if test "${ac_cv_prog_STRIP+set}" = set; then |
030272f3 | 8322 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8323 | else |
8324 | if test -n "$STRIP"; then | |
8325 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8326 | else | |
8327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8328 | for as_dir in $PATH | |
8329 | do | |
8330 | IFS=$as_save_IFS | |
8331 | test -z "$as_dir" && as_dir=. | |
8332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8334 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
030272f3 | 8335 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8336 | break 2 |
8337 | fi | |
8338 | done | |
8339 | done | |
8340 | IFS=$as_save_IFS | |
8341 | ||
8342 | fi | |
8343 | fi | |
8344 | STRIP=$ac_cv_prog_STRIP | |
8345 | if test -n "$STRIP"; then | |
030272f3 VY |
8346 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
8347 | $as_echo "$STRIP" >&6; } | |
db137867 | 8348 | else |
030272f3 VY |
8349 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8350 | $as_echo "no" >&6; } | |
db137867 AC |
8351 | fi |
8352 | ||
8353 | ||
8354 | fi | |
8355 | if test -z "$ac_cv_prog_STRIP"; then | |
8356 | ac_ct_STRIP=$STRIP | |
8357 | # Extract the first word of "strip", so it can be a program name with args. | |
8358 | set dummy strip; ac_word=$2 | |
030272f3 VY |
8359 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8360 | $as_echo_n "checking for $ac_word... " >&6; } | |
db137867 | 8361 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
030272f3 | 8362 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8363 | else |
8364 | if test -n "$ac_ct_STRIP"; then | |
8365 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
8366 | else | |
8367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8368 | for as_dir in $PATH | |
8369 | do | |
8370 | IFS=$as_save_IFS | |
8371 | test -z "$as_dir" && as_dir=. | |
8372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8374 | ac_cv_prog_ac_ct_STRIP="strip" | |
030272f3 | 8375 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
8376 | break 2 |
8377 | fi | |
8378 | done | |
8379 | done | |
8380 | IFS=$as_save_IFS | |
8381 | ||
8382 | fi | |
8383 | fi | |
8384 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
8385 | if test -n "$ac_ct_STRIP"; then | |
030272f3 VY |
8386 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
8387 | $as_echo "$ac_ct_STRIP" >&6; } | |
db137867 | 8388 | else |
030272f3 VY |
8389 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8390 | $as_echo "no" >&6; } | |
db137867 AC |
8391 | fi |
8392 | ||
8393 | if test "x$ac_ct_STRIP" = x; then | |
8394 | STRIP=":" | |
8395 | else | |
8396 | case $cross_compiling:$ac_tool_warned in | |
8397 | yes:) | |
030272f3 VY |
8398 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
8399 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
db137867 AC |
8400 | ac_tool_warned=yes ;; |
8401 | esac | |
8402 | STRIP=$ac_ct_STRIP | |
8403 | fi | |
8404 | else | |
8405 | STRIP="$ac_cv_prog_STRIP" | |
8406 | fi | |
8407 | ||
8408 | ||
8409 | old_CC="$CC" | |
8410 | old_CFLAGS="$CFLAGS" | |
8411 | ||
8412 | # Set sane defaults for various variables | |
8413 | test -z "$AR" && AR=ar | |
8414 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
8415 | test -z "$AS" && AS=as | |
8416 | test -z "$CC" && CC=cc | |
8417 | test -z "$LTCC" && LTCC=$CC | |
8418 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8419 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8420 | test -z "$LD" && LD=ld | |
8421 | test -z "$LN_S" && LN_S="ln -s" | |
8422 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8423 | test -z "$NM" && NM=nm | |
8424 | test -z "$SED" && SED=sed | |
8425 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
8426 | test -z "$RANLIB" && RANLIB=: | |
8427 | test -z "$STRIP" && STRIP=: | |
8428 | test -z "$ac_objext" && ac_objext=o | |
8429 | ||
8430 | # Determine commands to create old-style static archives. | |
8431 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
8432 | old_postinstall_cmds='chmod 644 $oldlib' | |
8433 | old_postuninstall_cmds= | |
8434 | ||
8435 | if test -n "$RANLIB"; then | |
8436 | case $host_os in | |
8437 | openbsd*) | |
8438 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8439 | ;; | |
8440 | *) | |
8441 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8442 | ;; | |
8443 | esac | |
8444 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8445 | fi | |
8446 | ||
8447 | for cc_temp in $compiler""; do | |
8448 | case $cc_temp in | |
8449 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8450 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8451 | \-*) ;; | |
8452 | *) break;; | |
8453 | esac | |
8454 | done | |
8455 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
8456 | ||
8457 | ||
8458 | # Only perform the check for file, if the check method requires it | |
8459 | case $deplibs_check_method in | |
8460 | file_magic*) | |
8461 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
030272f3 VY |
8462 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
8463 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
db137867 | 8464 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
030272f3 | 8465 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8466 | else |
8467 | case $MAGIC_CMD in | |
8468 | [\\/*] | ?:[\\/]*) | |
8469 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8470 | ;; | |
8471 | *) | |
8472 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8473 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8474 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8475 | for ac_dir in $ac_dummy; do | |
8476 | IFS="$lt_save_ifs" | |
8477 | test -z "$ac_dir" && ac_dir=. | |
8478 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8479 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8480 | if test -n "$file_magic_test_file"; then | |
8481 | case $deplibs_check_method in | |
8482 | "file_magic "*) | |
8483 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8484 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8485 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8486 | $EGREP "$file_magic_regex" > /dev/null; then | |
8487 | : | |
8488 | else | |
8489 | cat <<EOF 1>&2 | |
8490 | ||
8491 | *** Warning: the command libtool uses to detect shared libraries, | |
8492 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8493 | *** The result is that libtool may fail to recognize shared libraries | |
8494 | *** as such. This will affect the creation of libtool libraries that | |
8495 | *** depend on shared libraries, but programs linked with such libtool | |
8496 | *** libraries will work regardless of this problem. Nevertheless, you | |
8497 | *** may want to report the problem to your system manager and/or to | |
8498 | *** bug-libtool@gnu.org | |
8499 | ||
8500 | EOF | |
8501 | fi ;; | |
8502 | esac | |
8503 | fi | |
8504 | break | |
8505 | fi | |
8506 | done | |
8507 | IFS="$lt_save_ifs" | |
8508 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8509 | ;; | |
8510 | esac | |
8511 | fi | |
8512 | ||
8513 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8514 | if test -n "$MAGIC_CMD"; then | |
030272f3 VY |
8515 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
8516 | $as_echo "$MAGIC_CMD" >&6; } | |
db137867 | 8517 | else |
030272f3 VY |
8518 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8519 | $as_echo "no" >&6; } | |
db137867 AC |
8520 | fi |
8521 | ||
8522 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8523 | if test -n "$ac_tool_prefix"; then | |
030272f3 VY |
8524 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
8525 | $as_echo_n "checking for file... " >&6; } | |
db137867 | 8526 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
030272f3 | 8527 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8528 | else |
8529 | case $MAGIC_CMD in | |
8530 | [\\/*] | ?:[\\/]*) | |
8531 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8532 | ;; | |
8533 | *) | |
8534 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8535 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8536 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8537 | for ac_dir in $ac_dummy; do | |
8538 | IFS="$lt_save_ifs" | |
8539 | test -z "$ac_dir" && ac_dir=. | |
8540 | if test -f $ac_dir/file; then | |
8541 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8542 | if test -n "$file_magic_test_file"; then | |
8543 | case $deplibs_check_method in | |
8544 | "file_magic "*) | |
8545 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8546 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8547 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8548 | $EGREP "$file_magic_regex" > /dev/null; then | |
8549 | : | |
8550 | else | |
8551 | cat <<EOF 1>&2 | |
8552 | ||
8553 | *** Warning: the command libtool uses to detect shared libraries, | |
8554 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8555 | *** The result is that libtool may fail to recognize shared libraries | |
8556 | *** as such. This will affect the creation of libtool libraries that | |
8557 | *** depend on shared libraries, but programs linked with such libtool | |
8558 | *** libraries will work regardless of this problem. Nevertheless, you | |
8559 | *** may want to report the problem to your system manager and/or to | |
8560 | *** bug-libtool@gnu.org | |
8561 | ||
8562 | EOF | |
8563 | fi ;; | |
8564 | esac | |
8565 | fi | |
8566 | break | |
8567 | fi | |
8568 | done | |
8569 | IFS="$lt_save_ifs" | |
8570 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8571 | ;; | |
8572 | esac | |
8573 | fi | |
8574 | ||
8575 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8576 | if test -n "$MAGIC_CMD"; then | |
030272f3 VY |
8577 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
8578 | $as_echo "$MAGIC_CMD" >&6; } | |
db137867 | 8579 | else |
030272f3 VY |
8580 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8581 | $as_echo "no" >&6; } | |
db137867 AC |
8582 | fi |
8583 | ||
8584 | else | |
8585 | MAGIC_CMD=: | |
8586 | fi | |
8587 | fi | |
8588 | ||
8589 | fi | |
8590 | ;; | |
8591 | esac | |
8592 | ||
b676ea3b AC |
8593 | |
8594 | case $host_os in | |
8595 | rhapsody* | darwin*) | |
8596 | if test -n "$ac_tool_prefix"; then | |
8597 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8598 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
030272f3 VY |
8599 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8600 | $as_echo_n "checking for $ac_word... " >&6; } | |
b676ea3b | 8601 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
030272f3 | 8602 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8603 | else |
8604 | if test -n "$DSYMUTIL"; then | |
8605 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8606 | else | |
8607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8608 | for as_dir in $PATH | |
8609 | do | |
8610 | IFS=$as_save_IFS | |
8611 | test -z "$as_dir" && as_dir=. | |
8612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8614 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
030272f3 | 8615 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b676ea3b AC |
8616 | break 2 |
8617 | fi | |
8618 | done | |
8619 | done | |
8620 | IFS=$as_save_IFS | |
8621 | ||
8622 | fi | |
8623 | fi | |
8624 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8625 | if test -n "$DSYMUTIL"; then | |
030272f3 VY |
8626 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
8627 | $as_echo "$DSYMUTIL" >&6; } | |
b676ea3b | 8628 | else |
030272f3 VY |
8629 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8630 | $as_echo "no" >&6; } | |
b676ea3b AC |
8631 | fi |
8632 | ||
8633 | ||
8634 | fi | |
8635 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8636 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8637 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8638 | set dummy dsymutil; ac_word=$2 | |
030272f3 VY |
8639 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8640 | $as_echo_n "checking for $ac_word... " >&6; } | |
b676ea3b | 8641 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
030272f3 | 8642 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8643 | else |
8644 | if test -n "$ac_ct_DSYMUTIL"; then | |
8645 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8646 | else | |
8647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8648 | for as_dir in $PATH | |
8649 | do | |
8650 | IFS=$as_save_IFS | |
8651 | test -z "$as_dir" && as_dir=. | |
8652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8654 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
030272f3 | 8655 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b676ea3b AC |
8656 | break 2 |
8657 | fi | |
8658 | done | |
8659 | done | |
8660 | IFS=$as_save_IFS | |
8661 | ||
8662 | fi | |
8663 | fi | |
8664 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8665 | if test -n "$ac_ct_DSYMUTIL"; then | |
030272f3 VY |
8666 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
8667 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b676ea3b | 8668 | else |
030272f3 VY |
8669 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8670 | $as_echo "no" >&6; } | |
b676ea3b AC |
8671 | fi |
8672 | ||
8673 | if test "x$ac_ct_DSYMUTIL" = x; then | |
8674 | DSYMUTIL=":" | |
8675 | else | |
8676 | case $cross_compiling:$ac_tool_warned in | |
8677 | yes:) | |
030272f3 VY |
8678 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
8679 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
b676ea3b AC |
8680 | ac_tool_warned=yes ;; |
8681 | esac | |
8682 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8683 | fi | |
8684 | else | |
8685 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8686 | fi | |
8687 | ||
8688 | if test -n "$ac_tool_prefix"; then | |
8689 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8690 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
030272f3 VY |
8691 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8692 | $as_echo_n "checking for $ac_word... " >&6; } | |
b676ea3b | 8693 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
030272f3 | 8694 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8695 | else |
8696 | if test -n "$NMEDIT"; then | |
8697 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8698 | else | |
8699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8700 | for as_dir in $PATH | |
8701 | do | |
8702 | IFS=$as_save_IFS | |
8703 | test -z "$as_dir" && as_dir=. | |
8704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8706 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
030272f3 | 8707 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b676ea3b AC |
8708 | break 2 |
8709 | fi | |
8710 | done | |
8711 | done | |
8712 | IFS=$as_save_IFS | |
8713 | ||
8714 | fi | |
8715 | fi | |
8716 | NMEDIT=$ac_cv_prog_NMEDIT | |
8717 | if test -n "$NMEDIT"; then | |
030272f3 VY |
8718 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
8719 | $as_echo "$NMEDIT" >&6; } | |
b676ea3b | 8720 | else |
030272f3 VY |
8721 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8722 | $as_echo "no" >&6; } | |
b676ea3b AC |
8723 | fi |
8724 | ||
8725 | ||
8726 | fi | |
8727 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8728 | ac_ct_NMEDIT=$NMEDIT | |
8729 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8730 | set dummy nmedit; ac_word=$2 | |
030272f3 VY |
8731 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8732 | $as_echo_n "checking for $ac_word... " >&6; } | |
b676ea3b | 8733 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
030272f3 | 8734 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8735 | else |
8736 | if test -n "$ac_ct_NMEDIT"; then | |
8737 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8738 | else | |
8739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8740 | for as_dir in $PATH | |
8741 | do | |
8742 | IFS=$as_save_IFS | |
8743 | test -z "$as_dir" && as_dir=. | |
8744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8746 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
030272f3 | 8747 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b676ea3b AC |
8748 | break 2 |
8749 | fi | |
8750 | done | |
8751 | done | |
8752 | IFS=$as_save_IFS | |
8753 | ||
8754 | fi | |
8755 | fi | |
8756 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8757 | if test -n "$ac_ct_NMEDIT"; then | |
030272f3 VY |
8758 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
8759 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b676ea3b | 8760 | else |
030272f3 VY |
8761 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8762 | $as_echo "no" >&6; } | |
b676ea3b AC |
8763 | fi |
8764 | ||
8765 | if test "x$ac_ct_NMEDIT" = x; then | |
8766 | NMEDIT=":" | |
8767 | else | |
8768 | case $cross_compiling:$ac_tool_warned in | |
8769 | yes:) | |
030272f3 VY |
8770 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
8771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
b676ea3b AC |
8772 | ac_tool_warned=yes ;; |
8773 | esac | |
8774 | NMEDIT=$ac_ct_NMEDIT | |
8775 | fi | |
8776 | else | |
8777 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8778 | fi | |
8779 | ||
8780 | ||
030272f3 VY |
8781 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
8782 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
b676ea3b | 8783 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
030272f3 | 8784 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8785 | else |
8786 | lt_cv_apple_cc_single_mod=no | |
8787 | if test -z "${LT_MULTI_MODULE}"; then | |
8788 | # By default we will add the -single_module flag. You can override | |
8789 | # by either setting the environment variable LT_MULTI_MODULE | |
8790 | # non-empty at configure time, or by adding -multi_module to the | |
8791 | # link flags. | |
8792 | echo "int foo(void){return 1;}" > conftest.c | |
8793 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8794 | -dynamiclib ${wl}-single_module conftest.c | |
8795 | if test -f libconftest.dylib; then | |
8796 | lt_cv_apple_cc_single_mod=yes | |
8797 | rm -rf libconftest.dylib* | |
8798 | fi | |
8799 | rm conftest.c | |
8800 | fi | |
8801 | fi | |
030272f3 VY |
8802 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
8803 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8804 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
8805 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
b676ea3b | 8806 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
030272f3 | 8807 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
8808 | else |
8809 | lt_cv_ld_exported_symbols_list=no | |
8810 | save_LDFLAGS=$LDFLAGS | |
8811 | echo "_main" > conftest.sym | |
8812 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8813 | cat >conftest.$ac_ext <<_ACEOF | |
8814 | /* confdefs.h. */ | |
8815 | _ACEOF | |
8816 | cat confdefs.h >>conftest.$ac_ext | |
8817 | cat >>conftest.$ac_ext <<_ACEOF | |
8818 | /* end confdefs.h. */ | |
8819 | ||
8820 | int | |
8821 | main () | |
8822 | { | |
8823 | ||
8824 | ; | |
8825 | return 0; | |
8826 | } | |
8827 | _ACEOF | |
8828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8829 | if { (ac_try="$ac_link" | |
8830 | case "(($ac_try" in | |
8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8832 | *) ac_try_echo=$ac_try;; | |
8833 | esac | |
030272f3 VY |
8834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8835 | $as_echo "$ac_try_echo") >&5 | |
b676ea3b AC |
8836 | (eval "$ac_link") 2>conftest.er1 |
8837 | ac_status=$? | |
8838 | grep -v '^ *+' conftest.er1 >conftest.err | |
8839 | rm -f conftest.er1 | |
8840 | cat conftest.err >&5 | |
030272f3 | 8841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b676ea3b AC |
8842 | (exit $ac_status); } && { |
8843 | test -z "$ac_c_werror_flag" || | |
8844 | test ! -s conftest.err | |
030272f3 VY |
8845 | } && test -s conftest$ac_exeext && { |
8846 | test "$cross_compiling" = yes || | |
8847 | $as_test_x conftest$ac_exeext | |
8848 | }; then | |
b676ea3b AC |
8849 | lt_cv_ld_exported_symbols_list=yes |
8850 | else | |
030272f3 | 8851 | $as_echo "$as_me: failed program was:" >&5 |
b676ea3b AC |
8852 | sed 's/^/| /' conftest.$ac_ext >&5 |
8853 | ||
8854 | lt_cv_ld_exported_symbols_list=no | |
8855 | fi | |
8856 | ||
030272f3 | 8857 | rm -rf conftest.dSYM |
b676ea3b AC |
8858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8859 | conftest$ac_exeext conftest.$ac_ext | |
8860 | LDFLAGS="$save_LDFLAGS" | |
8861 | ||
8862 | fi | |
030272f3 VY |
8863 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
8864 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
b676ea3b AC |
8865 | case $host_os in |
8866 | rhapsody* | darwin1.[0123]) | |
8867 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8868 | darwin1.*) | |
8869 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8870 | darwin*) | |
8871 | # if running on 10.5 or later, the deployment target defaults | |
8872 | # to the OS version, if on x86, and 10.4, the deployment | |
8873 | # target defaults to 10.4. Don't you love it? | |
8874 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8875 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8876 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8877 | 10.[012]*) | |
8878 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8879 | 10.*) | |
8880 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8881 | esac | |
8882 | ;; | |
8883 | esac | |
8884 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8885 | _lt_dar_single_mod='$single_module' | |
8886 | fi | |
8887 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8888 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8889 | else | |
8890 | _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" | |
8891 | fi | |
8892 | if test "$DSYMUTIL" != ":"; then | |
8893 | _lt_dsymutil="~$DSYMUTIL \$lib || :" | |
8894 | else | |
8895 | _lt_dsymutil= | |
8896 | fi | |
8897 | ;; | |
8898 | esac | |
8899 | ||
8900 | ||
db137867 AC |
8901 | enable_dlopen=no |
8902 | enable_win32_dll=no | |
8903 | ||
8904 | # Check whether --enable-libtool-lock was given. | |
8905 | if test "${enable_libtool_lock+set}" = set; then | |
8906 | enableval=$enable_libtool_lock; | |
8907 | fi | |
8908 | ||
8909 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
8910 | ||
8911 | ||
8912 | # Check whether --with-pic was given. | |
8913 | if test "${with_pic+set}" = set; then | |
8914 | withval=$with_pic; pic_mode="$withval" | |
8915 | else | |
8916 | pic_mode=default | |
8917 | fi | |
8918 | ||
8919 | test -z "$pic_mode" && pic_mode=default | |
8920 | ||
8921 | # Use C for the default configuration in the libtool script | |
8922 | tagname= | |
8923 | lt_save_CC="$CC" | |
8924 | ac_ext=c | |
8925 | ac_cpp='$CPP $CPPFLAGS' | |
8926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8929 | ||
8930 | ||
8931 | # Source file extension for C test sources. | |
8932 | ac_ext=c | |
8933 | ||
8934 | # Object file extension for compiled C test sources. | |
8935 | objext=o | |
8936 | objext=$objext | |
8937 | ||
8938 | # Code to be used in simple compile tests | |
8939 | lt_simple_compile_test_code="int some_variable = 0;" | |
8940 | ||
8941 | # Code to be used in simple link tests | |
8942 | lt_simple_link_test_code='int main(){return(0);}' | |
8943 | ||
8944 | ||
8945 | # If no C compiler was specified, use CC. | |
8946 | LTCC=${LTCC-"$CC"} | |
8947 | ||
8948 | # If no C compiler flags were specified, use CFLAGS. | |
8949 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8950 | ||
8951 | # Allow CC to be a program name with arguments. | |
8952 | compiler=$CC | |
8953 | ||
8954 | ||
8955 | # save warnings/boilerplate of simple test code | |
8956 | ac_outfile=conftest.$ac_objext | |
8957 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8958 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8959 | _lt_compiler_boilerplate=`cat conftest.err` | |
8960 | $rm conftest* | |
8961 | ||
8962 | ac_outfile=conftest.$ac_objext | |
8963 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8964 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8965 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 8966 | $rm -r conftest* |
db137867 AC |
8967 | |
8968 | ||
8969 | ||
8970 | lt_prog_compiler_no_builtin_flag= | |
8971 | ||
8972 | if test "$GCC" = yes; then | |
8973 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8974 | ||
8975 | ||
030272f3 VY |
8976 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8977 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
db137867 | 8978 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
030272f3 | 8979 | $as_echo_n "(cached) " >&6 |
db137867 AC |
8980 | else |
8981 | lt_cv_prog_compiler_rtti_exceptions=no | |
8982 | ac_outfile=conftest.$ac_objext | |
8983 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8984 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8985 | # Insert the option either (1) after the last *FLAGS variable, or | |
8986 | # (2) before a word containing "conftest.", or (3) at the end. | |
8987 | # Note that $ac_compile itself does not contain backslashes and begins | |
8988 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8989 | # The option is referenced via a variable to avoid confusing sed. | |
8990 | lt_compile=`echo "$ac_compile" | $SED \ | |
8991 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8992 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8993 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 8994 | (eval echo "\"\$as_me:8994: $lt_compile\"" >&5) |
db137867 AC |
8995 | (eval "$lt_compile" 2>conftest.err) |
8996 | ac_status=$? | |
8997 | cat conftest.err >&5 | |
030272f3 | 8998 | echo "$as_me:8998: \$? = $ac_status" >&5 |
db137867 AC |
8999 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9000 | # The compiler can only warn and ignore the option if not recognized | |
9001 | # So say no if there are warnings other than the usual output. | |
9002 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9003 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9004 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9005 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9006 | fi | |
9007 | fi | |
9008 | $rm conftest* | |
9009 | ||
9010 | fi | |
030272f3 VY |
9011 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9012 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
db137867 AC |
9013 | |
9014 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9015 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9016 | else | |
9017 | : | |
9018 | fi | |
9019 | ||
9020 | fi | |
9021 | ||
9022 | lt_prog_compiler_wl= | |
9023 | lt_prog_compiler_pic= | |
9024 | lt_prog_compiler_static= | |
9025 | ||
030272f3 VY |
9026 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
9027 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
db137867 AC |
9028 | |
9029 | if test "$GCC" = yes; then | |
9030 | lt_prog_compiler_wl='-Wl,' | |
9031 | lt_prog_compiler_static='-static' | |
9032 | ||
9033 | case $host_os in | |
9034 | aix*) | |
9035 | # All AIX code is PIC. | |
9036 | if test "$host_cpu" = ia64; then | |
9037 | # AIX 5 now supports IA64 processor | |
9038 | lt_prog_compiler_static='-Bstatic' | |
9039 | fi | |
9040 | ;; | |
9041 | ||
9042 | amigaos*) | |
9043 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9044 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9045 | # like `-m68040'. | |
9046 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9047 | ;; | |
9048 | ||
9049 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9050 | # PIC is the default for these OSes. | |
9051 | ;; | |
9052 | ||
9053 | mingw* | cygwin* | pw32* | os2*) | |
9054 | # This hack is so that the source file can tell whether it is being | |
9055 | # built for inclusion in a dll (and should export symbols for example). | |
9056 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9057 | # (--disable-auto-import) libraries | |
9058 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9059 | ;; | |
9060 | ||
9061 | darwin* | rhapsody*) | |
9062 | # PIC is the default on this platform | |
9063 | # Common symbols not allowed in MH_DYLIB files | |
9064 | lt_prog_compiler_pic='-fno-common' | |
9065 | ;; | |
9066 | ||
9067 | interix[3-9]*) | |
9068 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9069 | # Instead, we relocate shared libraries at runtime. | |
9070 | ;; | |
9071 | ||
9072 | msdosdjgpp*) | |
9073 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9074 | # on systems that don't support them. | |
9075 | lt_prog_compiler_can_build_shared=no | |
9076 | enable_shared=no | |
9077 | ;; | |
9078 | ||
9079 | sysv4*MP*) | |
9080 | if test -d /usr/nec; then | |
9081 | lt_prog_compiler_pic=-Kconform_pic | |
9082 | fi | |
9083 | ;; | |
9084 | ||
9085 | hpux*) | |
9086 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9087 | # not for PA HP-UX. | |
9088 | case $host_cpu in | |
9089 | hppa*64*|ia64*) | |
9090 | # +Z the default | |
9091 | ;; | |
9092 | *) | |
9093 | lt_prog_compiler_pic='-fPIC' | |
9094 | ;; | |
9095 | esac | |
9096 | ;; | |
9097 | ||
9098 | *) | |
9099 | lt_prog_compiler_pic='-fPIC' | |
9100 | ;; | |
9101 | esac | |
9102 | else | |
9103 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9104 | case $host_os in | |
9105 | aix*) | |
9106 | lt_prog_compiler_wl='-Wl,' | |
9107 | if test "$host_cpu" = ia64; then | |
9108 | # AIX 5 now supports IA64 processor | |
9109 | lt_prog_compiler_static='-Bstatic' | |
9110 | else | |
9111 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9112 | fi | |
9113 | ;; | |
9114 | darwin*) | |
9115 | # PIC is the default on this platform | |
9116 | # Common symbols not allowed in MH_DYLIB files | |
9117 | case $cc_basename in | |
9118 | xlc*) | |
9119 | lt_prog_compiler_pic='-qnocommon' | |
9120 | lt_prog_compiler_wl='-Wl,' | |
9121 | ;; | |
9122 | esac | |
9123 | ;; | |
9124 | ||
9125 | mingw* | cygwin* | pw32* | os2*) | |
9126 | # This hack is so that the source file can tell whether it is being | |
9127 | # built for inclusion in a dll (and should export symbols for example). | |
9128 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9129 | ;; | |
9130 | ||
9131 | hpux9* | hpux10* | hpux11*) | |
9132 | lt_prog_compiler_wl='-Wl,' | |
9133 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9134 | # not for PA HP-UX. | |
9135 | case $host_cpu in | |
9136 | hppa*64*|ia64*) | |
9137 | # +Z the default | |
9138 | ;; | |
9139 | *) | |
9140 | lt_prog_compiler_pic='+Z' | |
9141 | ;; | |
9142 | esac | |
9143 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9144 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9145 | ;; | |
9146 | ||
9147 | irix5* | irix6* | nonstopux*) | |
9148 | lt_prog_compiler_wl='-Wl,' | |
9149 | # PIC (with -KPIC) is the default. | |
9150 | lt_prog_compiler_static='-non_shared' | |
9151 | ;; | |
9152 | ||
9153 | newsos6) | |
9154 | lt_prog_compiler_pic='-KPIC' | |
9155 | lt_prog_compiler_static='-Bstatic' | |
9156 | ;; | |
9157 | ||
9158 | linux* | k*bsd*-gnu) | |
9159 | case $cc_basename in | |
9160 | icc* | ecc*) | |
9161 | lt_prog_compiler_wl='-Wl,' | |
9162 | lt_prog_compiler_pic='-KPIC' | |
9163 | lt_prog_compiler_static='-static' | |
9164 | ;; | |
9165 | pgcc* | pgf77* | pgf90* | pgf95*) | |
9166 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9167 | # which looks to be a dead project) | |
9168 | lt_prog_compiler_wl='-Wl,' | |
9169 | lt_prog_compiler_pic='-fpic' | |
9170 | lt_prog_compiler_static='-Bstatic' | |
9171 | ;; | |
9172 | ccc*) | |
9173 | lt_prog_compiler_wl='-Wl,' | |
9174 | # All Alpha code is PIC. | |
9175 | lt_prog_compiler_static='-non_shared' | |
9176 | ;; | |
9177 | *) | |
9178 | case `$CC -V 2>&1 | sed 5q` in | |
9179 | *Sun\ C*) | |
9180 | # Sun C 5.9 | |
9181 | lt_prog_compiler_pic='-KPIC' | |
9182 | lt_prog_compiler_static='-Bstatic' | |
9183 | lt_prog_compiler_wl='-Wl,' | |
9184 | ;; | |
9185 | *Sun\ F*) | |
9186 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9187 | lt_prog_compiler_pic='-KPIC' | |
9188 | lt_prog_compiler_static='-Bstatic' | |
9189 | lt_prog_compiler_wl='' | |
9190 | ;; | |
9191 | esac | |
9192 | ;; | |
9193 | esac | |
9194 | ;; | |
9195 | ||
9196 | osf3* | osf4* | osf5*) | |
9197 | lt_prog_compiler_wl='-Wl,' | |
9198 | # All OSF/1 code is PIC. | |
9199 | lt_prog_compiler_static='-non_shared' | |
9200 | ;; | |
9201 | ||
9202 | rdos*) | |
9203 | lt_prog_compiler_static='-non_shared' | |
9204 | ;; | |
9205 | ||
9206 | solaris*) | |
9207 | lt_prog_compiler_pic='-KPIC' | |
9208 | lt_prog_compiler_static='-Bstatic' | |
9209 | case $cc_basename in | |
9210 | f77* | f90* | f95*) | |
9211 | lt_prog_compiler_wl='-Qoption ld ';; | |
9212 | *) | |
9213 | lt_prog_compiler_wl='-Wl,';; | |
9214 | esac | |
9215 | ;; | |
9216 | ||
9217 | sunos4*) | |
9218 | lt_prog_compiler_wl='-Qoption ld ' | |
9219 | lt_prog_compiler_pic='-PIC' | |
9220 | lt_prog_compiler_static='-Bstatic' | |
9221 | ;; | |
9222 | ||
9223 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9224 | lt_prog_compiler_wl='-Wl,' | |
9225 | lt_prog_compiler_pic='-KPIC' | |
9226 | lt_prog_compiler_static='-Bstatic' | |
9227 | ;; | |
9228 | ||
9229 | sysv4*MP*) | |
9230 | if test -d /usr/nec ;then | |
9231 | lt_prog_compiler_pic='-Kconform_pic' | |
9232 | lt_prog_compiler_static='-Bstatic' | |
9233 | fi | |
9234 | ;; | |
9235 | ||
9236 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9237 | lt_prog_compiler_wl='-Wl,' | |
9238 | lt_prog_compiler_pic='-KPIC' | |
9239 | lt_prog_compiler_static='-Bstatic' | |
9240 | ;; | |
9241 | ||
9242 | unicos*) | |
9243 | lt_prog_compiler_wl='-Wl,' | |
9244 | lt_prog_compiler_can_build_shared=no | |
9245 | ;; | |
9246 | ||
9247 | uts4*) | |
9248 | lt_prog_compiler_pic='-pic' | |
9249 | lt_prog_compiler_static='-Bstatic' | |
9250 | ;; | |
9251 | ||
9252 | *) | |
9253 | lt_prog_compiler_can_build_shared=no | |
9254 | ;; | |
9255 | esac | |
9256 | fi | |
9257 | ||
030272f3 VY |
9258 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
9259 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
db137867 AC |
9260 | |
9261 | # | |
9262 | # Check to make sure the PIC flag actually works. | |
9263 | # | |
9264 | if test -n "$lt_prog_compiler_pic"; then | |
9265 | ||
030272f3 VY |
9266 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9267 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
b676ea3b | 9268 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
030272f3 | 9269 | $as_echo_n "(cached) " >&6 |
db137867 | 9270 | else |
b676ea3b | 9271 | lt_cv_prog_compiler_pic_works=no |
db137867 AC |
9272 | ac_outfile=conftest.$ac_objext |
9273 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9274 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9275 | # Insert the option either (1) after the last *FLAGS variable, or | |
9276 | # (2) before a word containing "conftest.", or (3) at the end. | |
9277 | # Note that $ac_compile itself does not contain backslashes and begins | |
9278 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9279 | # The option is referenced via a variable to avoid confusing sed. | |
9280 | lt_compile=`echo "$ac_compile" | $SED \ | |
9281 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9282 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9283 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 9284 | (eval echo "\"\$as_me:9284: $lt_compile\"" >&5) |
db137867 AC |
9285 | (eval "$lt_compile" 2>conftest.err) |
9286 | ac_status=$? | |
9287 | cat conftest.err >&5 | |
030272f3 | 9288 | echo "$as_me:9288: \$? = $ac_status" >&5 |
db137867 AC |
9289 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9290 | # The compiler can only warn and ignore the option if not recognized | |
9291 | # So say no if there are warnings other than the usual output. | |
9292 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9293 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9294 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 9295 | lt_cv_prog_compiler_pic_works=yes |
db137867 AC |
9296 | fi |
9297 | fi | |
9298 | $rm conftest* | |
9299 | ||
9300 | fi | |
030272f3 VY |
9301 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
9302 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
db137867 | 9303 | |
b676ea3b | 9304 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
db137867 AC |
9305 | case $lt_prog_compiler_pic in |
9306 | "" | " "*) ;; | |
9307 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9308 | esac | |
9309 | else | |
9310 | lt_prog_compiler_pic= | |
9311 | lt_prog_compiler_can_build_shared=no | |
9312 | fi | |
9313 | ||
9314 | fi | |
9315 | case $host_os in | |
9316 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9317 | *djgpp*) | |
9318 | lt_prog_compiler_pic= | |
9319 | ;; | |
9320 | *) | |
9321 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9322 | ;; | |
9323 | esac | |
9324 | ||
9325 | # | |
9326 | # Check to make sure the static flag actually works. | |
9327 | # | |
9328 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
030272f3 VY |
9329 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9330 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
b676ea3b | 9331 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
030272f3 | 9332 | $as_echo_n "(cached) " >&6 |
db137867 | 9333 | else |
b676ea3b | 9334 | lt_cv_prog_compiler_static_works=no |
db137867 AC |
9335 | save_LDFLAGS="$LDFLAGS" |
9336 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9337 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9338 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9339 | # The linker can only warn and ignore the option if not recognized | |
9340 | # So say no if there are warnings | |
9341 | if test -s conftest.err; then | |
9342 | # Append any errors to the config.log. | |
9343 | cat conftest.err 1>&5 | |
9344 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
9345 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9346 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 9347 | lt_cv_prog_compiler_static_works=yes |
db137867 AC |
9348 | fi |
9349 | else | |
b676ea3b | 9350 | lt_cv_prog_compiler_static_works=yes |
db137867 AC |
9351 | fi |
9352 | fi | |
b676ea3b | 9353 | $rm -r conftest* |
db137867 AC |
9354 | LDFLAGS="$save_LDFLAGS" |
9355 | ||
9356 | fi | |
030272f3 VY |
9357 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
9358 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
db137867 | 9359 | |
b676ea3b | 9360 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
db137867 AC |
9361 | : |
9362 | else | |
9363 | lt_prog_compiler_static= | |
9364 | fi | |
9365 | ||
9366 | ||
030272f3 VY |
9367 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9368 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
db137867 | 9369 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
030272f3 | 9370 | $as_echo_n "(cached) " >&6 |
db137867 AC |
9371 | else |
9372 | lt_cv_prog_compiler_c_o=no | |
9373 | $rm -r conftest 2>/dev/null | |
9374 | mkdir conftest | |
9375 | cd conftest | |
9376 | mkdir out | |
9377 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9378 | ||
9379 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9380 | # Insert the option either (1) after the last *FLAGS variable, or | |
9381 | # (2) before a word containing "conftest.", or (3) at the end. | |
9382 | # Note that $ac_compile itself does not contain backslashes and begins | |
9383 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9384 | lt_compile=`echo "$ac_compile" | $SED \ | |
9385 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9386 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9387 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 9388 | (eval echo "\"\$as_me:9388: $lt_compile\"" >&5) |
db137867 AC |
9389 | (eval "$lt_compile" 2>out/conftest.err) |
9390 | ac_status=$? | |
9391 | cat out/conftest.err >&5 | |
030272f3 | 9392 | echo "$as_me:9392: \$? = $ac_status" >&5 |
db137867 AC |
9393 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9394 | then | |
9395 | # The compiler can only warn and ignore the option if not recognized | |
9396 | # So say no if there are warnings | |
9397 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9398 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9399 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9400 | lt_cv_prog_compiler_c_o=yes | |
9401 | fi | |
9402 | fi | |
9403 | chmod u+w . 2>&5 | |
9404 | $rm conftest* | |
9405 | # SGI C++ compiler will create directory out/ii_files/ for | |
9406 | # template instantiation | |
9407 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
9408 | $rm out/* && rmdir out | |
9409 | cd .. | |
9410 | rmdir conftest | |
9411 | $rm conftest* | |
9412 | ||
9413 | fi | |
030272f3 VY |
9414 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
9415 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
db137867 AC |
9416 | |
9417 | ||
9418 | hard_links="nottested" | |
9419 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9420 | # do not overwrite the value of need_locks provided by the user | |
030272f3 VY |
9421 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
9422 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
db137867 AC |
9423 | hard_links=yes |
9424 | $rm conftest* | |
9425 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9426 | touch conftest.a | |
9427 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9428 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
030272f3 VY |
9429 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
9430 | $as_echo "$hard_links" >&6; } | |
db137867 | 9431 | if test "$hard_links" = no; then |
030272f3 VY |
9432 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9433 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
db137867 AC |
9434 | need_locks=warn |
9435 | fi | |
9436 | else | |
9437 | need_locks=no | |
9438 | fi | |
9439 | ||
030272f3 VY |
9440 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9441 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
db137867 AC |
9442 | |
9443 | runpath_var= | |
9444 | allow_undefined_flag= | |
9445 | enable_shared_with_static_runtimes=no | |
9446 | archive_cmds= | |
9447 | archive_expsym_cmds= | |
9448 | old_archive_From_new_cmds= | |
9449 | old_archive_from_expsyms_cmds= | |
9450 | export_dynamic_flag_spec= | |
9451 | whole_archive_flag_spec= | |
9452 | thread_safe_flag_spec= | |
9453 | hardcode_libdir_flag_spec= | |
9454 | hardcode_libdir_flag_spec_ld= | |
9455 | hardcode_libdir_separator= | |
9456 | hardcode_direct=no | |
9457 | hardcode_minus_L=no | |
9458 | hardcode_shlibpath_var=unsupported | |
9459 | link_all_deplibs=unknown | |
9460 | hardcode_automatic=no | |
9461 | module_cmds= | |
9462 | module_expsym_cmds= | |
9463 | always_export_symbols=no | |
9464 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9465 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9466 | # included in the symbol list | |
9467 | include_expsyms= | |
9468 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9469 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9470 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9471 | # as well as any symbol that contains `d'. | |
b676ea3b | 9472 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
9473 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9474 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9475 | # the symbol is explicitly referenced. Since portable code cannot | |
9476 | # rely on this symbol name, it's probably fine to never include it in | |
9477 | # preloaded symbol tables. | |
b676ea3b | 9478 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
9479 | extract_expsyms_cmds= |
9480 | # Just being paranoid about ensuring that cc_basename is set. | |
9481 | for cc_temp in $compiler""; do | |
9482 | case $cc_temp in | |
9483 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9484 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9485 | \-*) ;; | |
9486 | *) break;; | |
9487 | esac | |
9488 | done | |
9489 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9490 | ||
9491 | case $host_os in | |
9492 | cygwin* | mingw* | pw32*) | |
9493 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9494 | # When not using gcc, we currently assume that we are using | |
9495 | # Microsoft Visual C++. | |
9496 | if test "$GCC" != yes; then | |
9497 | with_gnu_ld=no | |
9498 | fi | |
9499 | ;; | |
9500 | interix*) | |
9501 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9502 | with_gnu_ld=yes | |
9503 | ;; | |
9504 | openbsd*) | |
9505 | with_gnu_ld=no | |
9506 | ;; | |
9507 | esac | |
9508 | ||
9509 | ld_shlibs=yes | |
9510 | if test "$with_gnu_ld" = yes; then | |
9511 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9512 | wlarc='${wl}' | |
9513 | ||
9514 | # Set some defaults for GNU ld with shared library support. These | |
9515 | # are reset later if shared libraries are not supported. Putting them | |
9516 | # here allows them to be overridden if necessary. | |
9517 | runpath_var=LD_RUN_PATH | |
9518 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
9519 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9520 | # ancient GNU ld didn't support --whole-archive et. al. | |
9521 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
9522 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9523 | else | |
9524 | whole_archive_flag_spec= | |
9525 | fi | |
9526 | supports_anon_versioning=no | |
9527 | case `$LD -v 2>/dev/null` in | |
9528 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9529 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9530 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9531 | *\ 2.11.*) ;; # other 2.11 versions | |
9532 | *) supports_anon_versioning=yes ;; | |
9533 | esac | |
9534 | ||
9535 | # See if GNU ld supports shared libraries. | |
9536 | case $host_os in | |
b676ea3b | 9537 | aix[3-9]*) |
db137867 AC |
9538 | # On AIX/PPC, the GNU linker is very broken |
9539 | if test "$host_cpu" != ia64; then | |
9540 | ld_shlibs=no | |
9541 | cat <<EOF 1>&2 | |
9542 | ||
9543 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
9544 | *** to be unable to reliably create shared libraries on AIX. | |
9545 | *** Therefore, libtool is disabling shared libraries support. If you | |
9546 | *** really care for shared libraries, you may want to modify your PATH | |
9547 | *** so that a non-GNU linker is found, and then restart. | |
9548 | ||
9549 | EOF | |
9550 | fi | |
9551 | ;; | |
9552 | ||
9553 | amigaos*) | |
9554 | 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)' | |
9555 | hardcode_libdir_flag_spec='-L$libdir' | |
9556 | hardcode_minus_L=yes | |
9557 | ||
9558 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
9559 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
9560 | # to version 4, is to share data among multiple programs linked | |
9561 | # with the same dynamic library. Since this doesn't match the | |
9562 | # behavior of shared libraries on other platforms, we can't use | |
9563 | # them. | |
9564 | ld_shlibs=no | |
9565 | ;; | |
9566 | ||
9567 | beos*) | |
9568 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9569 | allow_undefined_flag=unsupported | |
9570 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9571 | # support --undefined. This deserves some investigation. FIXME | |
9572 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9573 | else | |
9574 | ld_shlibs=no | |
9575 | fi | |
9576 | ;; | |
9577 | ||
9578 | cygwin* | mingw* | pw32*) | |
9579 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9580 | # as there is no search path for DLLs. | |
9581 | hardcode_libdir_flag_spec='-L$libdir' | |
9582 | allow_undefined_flag=unsupported | |
9583 | always_export_symbols=no | |
9584 | enable_shared_with_static_runtimes=yes | |
9585 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9586 | ||
9587 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
9588 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9589 | # If the export-symbols file already is a .def file (1st line | |
9590 | # is EXPORTS), use it as is; otherwise, prepend... | |
9591 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9592 | cp $export_symbols $output_objdir/$soname.def; | |
9593 | else | |
9594 | echo EXPORTS > $output_objdir/$soname.def; | |
9595 | cat $export_symbols >> $output_objdir/$soname.def; | |
9596 | fi~ | |
9597 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9598 | else | |
9599 | ld_shlibs=no | |
9600 | fi | |
9601 | ;; | |
9602 | ||
9603 | interix[3-9]*) | |
9604 | hardcode_direct=no | |
9605 | hardcode_shlibpath_var=no | |
9606 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9607 | export_dynamic_flag_spec='${wl}-E' | |
9608 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9609 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9610 | # default) and relocated if they conflict, which is a slow very memory | |
9611 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9612 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9613 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9614 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9615 | 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' | |
9616 | ;; | |
9617 | ||
9618 | gnu* | linux* | k*bsd*-gnu) | |
9619 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9620 | tmp_addflag= | |
9621 | case $cc_basename,$host_cpu in | |
9622 | pgcc*) # Portland Group C compiler | |
9623 | 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' | |
9624 | tmp_addflag=' $pic_flag' | |
9625 | ;; | |
9626 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9627 | 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' | |
9628 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9629 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9630 | tmp_addflag=' -i_dynamic' ;; | |
9631 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9632 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9633 | ifc* | ifort*) # Intel Fortran compiler | |
9634 | tmp_addflag=' -nofor_main' ;; | |
9635 | esac | |
9636 | case `$CC -V 2>&1 | sed 5q` in | |
9637 | *Sun\ C*) # Sun C 5.9 | |
9638 | 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' | |
9639 | tmp_sharedflag='-G' ;; | |
9640 | *Sun\ F*) # Sun Fortran 8.3 | |
9641 | tmp_sharedflag='-G' ;; | |
9642 | *) | |
9643 | tmp_sharedflag='-shared' ;; | |
9644 | esac | |
9645 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9646 | ||
9647 | if test $supports_anon_versioning = yes; then | |
9648 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
9649 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9650 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9651 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9652 | fi | |
9653 | link_all_deplibs=no | |
9654 | else | |
9655 | ld_shlibs=no | |
9656 | fi | |
9657 | ;; | |
9658 | ||
9659 | netbsd* | netbsdelf*-gnu) | |
9660 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9661 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9662 | wlarc= | |
9663 | else | |
9664 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9665 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9666 | fi | |
9667 | ;; | |
9668 | ||
9669 | solaris*) | |
9670 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
9671 | ld_shlibs=no | |
9672 | cat <<EOF 1>&2 | |
9673 | ||
9674 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9675 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9676 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9677 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9678 | *** your PATH or compiler configuration so that the native linker is | |
9679 | *** used, and then restart. | |
9680 | ||
9681 | EOF | |
9682 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9683 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9684 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9685 | else | |
9686 | ld_shlibs=no | |
9687 | fi | |
9688 | ;; | |
9689 | ||
9690 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9691 | case `$LD -v 2>&1` in | |
9692 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9693 | ld_shlibs=no | |
9694 | cat <<_LT_EOF 1>&2 | |
9695 | ||
9696 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9697 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9698 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9699 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9700 | *** your PATH or compiler configuration so that the native linker is | |
9701 | *** used, and then restart. | |
9702 | ||
9703 | _LT_EOF | |
9704 | ;; | |
9705 | *) | |
9706 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9707 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
9708 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
9709 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
9710 | else | |
9711 | ld_shlibs=no | |
9712 | fi | |
9713 | ;; | |
9714 | esac | |
9715 | ;; | |
9716 | ||
9717 | sunos4*) | |
9718 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9719 | wlarc= | |
9720 | hardcode_direct=yes | |
9721 | hardcode_shlibpath_var=no | |
9722 | ;; | |
9723 | ||
9724 | *) | |
9725 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9726 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9727 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9728 | else | |
9729 | ld_shlibs=no | |
9730 | fi | |
9731 | ;; | |
9732 | esac | |
9733 | ||
9734 | if test "$ld_shlibs" = no; then | |
9735 | runpath_var= | |
9736 | hardcode_libdir_flag_spec= | |
9737 | export_dynamic_flag_spec= | |
9738 | whole_archive_flag_spec= | |
9739 | fi | |
9740 | else | |
9741 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9742 | case $host_os in | |
9743 | aix3*) | |
9744 | allow_undefined_flag=unsupported | |
9745 | always_export_symbols=yes | |
9746 | 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' | |
9747 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9748 | # are no directories specified by -L. | |
9749 | hardcode_minus_L=yes | |
9750 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9751 | # Neither direct hardcoding nor static linking is supported with a | |
9752 | # broken collect2. | |
9753 | hardcode_direct=unsupported | |
9754 | fi | |
9755 | ;; | |
9756 | ||
b676ea3b | 9757 | aix[4-9]*) |
db137867 AC |
9758 | if test "$host_cpu" = ia64; then |
9759 | # On IA64, the linker does run time linking by default, so we don't | |
9760 | # have to do anything special. | |
9761 | aix_use_runtimelinking=no | |
9762 | exp_sym_flag='-Bexport' | |
9763 | no_entry_flag="" | |
9764 | else | |
9765 | # If we're using GNU nm, then we don't want the "-C" option. | |
9766 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9767 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
9768 | 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' | |
9769 | else | |
9770 | 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' | |
9771 | fi | |
9772 | aix_use_runtimelinking=no | |
9773 | ||
9774 | # Test if we are trying to use run time linking or normal | |
9775 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9776 | # need to do runtime linking. | |
b676ea3b | 9777 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
9778 | for ld_flag in $LDFLAGS; do |
9779 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9780 | aix_use_runtimelinking=yes | |
9781 | break | |
9782 | fi | |
9783 | done | |
9784 | ;; | |
9785 | esac | |
9786 | ||
9787 | exp_sym_flag='-bexport' | |
9788 | no_entry_flag='-bnoentry' | |
9789 | fi | |
9790 | ||
9791 | # When large executables or shared objects are built, AIX ld can | |
9792 | # have problems creating the table of contents. If linking a library | |
9793 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9794 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9795 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9796 | ||
9797 | archive_cmds='' | |
9798 | hardcode_direct=yes | |
9799 | hardcode_libdir_separator=':' | |
9800 | link_all_deplibs=yes | |
9801 | ||
9802 | if test "$GCC" = yes; then | |
9803 | case $host_os in aix4.[012]|aix4.[012].*) | |
9804 | # We only want to do this on AIX 4.2 and lower, the check | |
9805 | # below for broken collect2 doesn't work under 4.3+ | |
9806 | collect2name=`${CC} -print-prog-name=collect2` | |
9807 | if test -f "$collect2name" && \ | |
9808 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9809 | then | |
9810 | # We have reworked collect2 | |
9811 | : | |
9812 | else | |
9813 | # We have old collect2 | |
9814 | hardcode_direct=unsupported | |
9815 | # It fails to find uninstalled libraries when the uninstalled | |
9816 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9817 | # to unsupported forces relinking | |
9818 | hardcode_minus_L=yes | |
9819 | hardcode_libdir_flag_spec='-L$libdir' | |
9820 | hardcode_libdir_separator= | |
9821 | fi | |
9822 | ;; | |
9823 | esac | |
9824 | shared_flag='-shared' | |
9825 | if test "$aix_use_runtimelinking" = yes; then | |
9826 | shared_flag="$shared_flag "'${wl}-G' | |
9827 | fi | |
9828 | else | |
9829 | # not using gcc | |
9830 | if test "$host_cpu" = ia64; then | |
9831 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9832 | # chokes on -Wl,-G. The following line is correct: | |
9833 | shared_flag='-G' | |
9834 | else | |
9835 | if test "$aix_use_runtimelinking" = yes; then | |
9836 | shared_flag='${wl}-G' | |
9837 | else | |
9838 | shared_flag='${wl}-bM:SRE' | |
9839 | fi | |
9840 | fi | |
9841 | fi | |
9842 | ||
9843 | # It seems that -bexpall does not export symbols beginning with | |
9844 | # underscore (_), so it is better to generate a list of symbols to export. | |
9845 | always_export_symbols=yes | |
9846 | if test "$aix_use_runtimelinking" = yes; then | |
9847 | # Warning - without using the other runtime loading flags (-brtl), | |
9848 | # -berok will link without error, but may produce a broken library. | |
9849 | allow_undefined_flag='-berok' | |
9850 | # Determine the default libpath from the value encoded in an empty executable. | |
9851 | cat >conftest.$ac_ext <<_ACEOF | |
9852 | /* confdefs.h. */ | |
9853 | _ACEOF | |
9854 | cat confdefs.h >>conftest.$ac_ext | |
9855 | cat >>conftest.$ac_ext <<_ACEOF | |
9856 | /* end confdefs.h. */ | |
9857 | ||
9858 | int | |
9859 | main () | |
9860 | { | |
9861 | ||
9862 | ; | |
9863 | return 0; | |
9864 | } | |
9865 | _ACEOF | |
9866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9867 | if { (ac_try="$ac_link" | |
9868 | case "(($ac_try" in | |
9869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9870 | *) ac_try_echo=$ac_try;; | |
9871 | esac | |
030272f3 VY |
9872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9873 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
9874 | (eval "$ac_link") 2>conftest.er1 |
9875 | ac_status=$? | |
9876 | grep -v '^ *+' conftest.er1 >conftest.err | |
9877 | rm -f conftest.er1 | |
9878 | cat conftest.err >&5 | |
030272f3 | 9879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
9880 | (exit $ac_status); } && { |
9881 | test -z "$ac_c_werror_flag" || | |
9882 | test ! -s conftest.err | |
030272f3 VY |
9883 | } && test -s conftest$ac_exeext && { |
9884 | test "$cross_compiling" = yes || | |
9885 | $as_test_x conftest$ac_exeext | |
9886 | }; then | |
db137867 AC |
9887 | |
9888 | lt_aix_libpath_sed=' | |
9889 | /Import File Strings/,/^$/ { | |
9890 | /^0/ { | |
9891 | s/^0 *\(.*\)$/\1/ | |
9892 | p | |
9893 | } | |
9894 | }' | |
9895 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9896 | # Check for a 64-bit object if we didn't find anything. | |
9897 | if test -z "$aix_libpath"; then | |
9898 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9899 | fi | |
9900 | else | |
030272f3 | 9901 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
9902 | sed 's/^/| /' conftest.$ac_ext >&5 |
9903 | ||
9904 | ||
9905 | fi | |
9906 | ||
030272f3 | 9907 | rm -rf conftest.dSYM |
db137867 AC |
9908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9909 | conftest$ac_exeext conftest.$ac_ext | |
9910 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9911 | ||
9912 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9913 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9914 | else | |
9915 | if test "$host_cpu" = ia64; then | |
9916 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9917 | allow_undefined_flag="-z nodefs" | |
9918 | 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" | |
9919 | else | |
9920 | # Determine the default libpath from the value encoded in an empty executable. | |
9921 | cat >conftest.$ac_ext <<_ACEOF | |
9922 | /* confdefs.h. */ | |
9923 | _ACEOF | |
9924 | cat confdefs.h >>conftest.$ac_ext | |
9925 | cat >>conftest.$ac_ext <<_ACEOF | |
9926 | /* end confdefs.h. */ | |
9927 | ||
9928 | int | |
9929 | main () | |
9930 | { | |
9931 | ||
9932 | ; | |
9933 | return 0; | |
9934 | } | |
9935 | _ACEOF | |
9936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9937 | if { (ac_try="$ac_link" | |
9938 | case "(($ac_try" in | |
9939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9940 | *) ac_try_echo=$ac_try;; | |
9941 | esac | |
030272f3 VY |
9942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9943 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
9944 | (eval "$ac_link") 2>conftest.er1 |
9945 | ac_status=$? | |
9946 | grep -v '^ *+' conftest.er1 >conftest.err | |
9947 | rm -f conftest.er1 | |
9948 | cat conftest.err >&5 | |
030272f3 | 9949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
9950 | (exit $ac_status); } && { |
9951 | test -z "$ac_c_werror_flag" || | |
9952 | test ! -s conftest.err | |
030272f3 VY |
9953 | } && test -s conftest$ac_exeext && { |
9954 | test "$cross_compiling" = yes || | |
9955 | $as_test_x conftest$ac_exeext | |
9956 | }; then | |
db137867 AC |
9957 | |
9958 | lt_aix_libpath_sed=' | |
9959 | /Import File Strings/,/^$/ { | |
9960 | /^0/ { | |
9961 | s/^0 *\(.*\)$/\1/ | |
9962 | p | |
9963 | } | |
9964 | }' | |
9965 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9966 | # Check for a 64-bit object if we didn't find anything. | |
9967 | if test -z "$aix_libpath"; then | |
9968 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9969 | fi | |
9970 | else | |
030272f3 | 9971 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
9972 | sed 's/^/| /' conftest.$ac_ext >&5 |
9973 | ||
9974 | ||
9975 | fi | |
9976 | ||
030272f3 | 9977 | rm -rf conftest.dSYM |
db137867 AC |
9978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9979 | conftest$ac_exeext conftest.$ac_ext | |
9980 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9981 | ||
9982 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9983 | # Warning - without using the other run time loading flags, | |
9984 | # -berok will link without error, but may produce a broken library. | |
9985 | no_undefined_flag=' ${wl}-bernotok' | |
9986 | allow_undefined_flag=' ${wl}-berok' | |
9987 | # Exported symbols can be pulled into shared objects from archives | |
9988 | whole_archive_flag_spec='$convenience' | |
9989 | archive_cmds_need_lc=yes | |
9990 | # This is similar to how AIX traditionally builds its shared libraries. | |
9991 | 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' | |
9992 | fi | |
9993 | fi | |
9994 | ;; | |
9995 | ||
9996 | amigaos*) | |
9997 | 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)' | |
9998 | hardcode_libdir_flag_spec='-L$libdir' | |
9999 | hardcode_minus_L=yes | |
10000 | # see comment about different semantics on the GNU ld section | |
10001 | ld_shlibs=no | |
10002 | ;; | |
10003 | ||
10004 | bsdi[45]*) | |
10005 | export_dynamic_flag_spec=-rdynamic | |
10006 | ;; | |
10007 | ||
10008 | cygwin* | mingw* | pw32*) | |
10009 | # When not using gcc, we currently assume that we are using | |
10010 | # Microsoft Visual C++. | |
10011 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10012 | # no search path for DLLs. | |
10013 | hardcode_libdir_flag_spec=' ' | |
10014 | allow_undefined_flag=unsupported | |
10015 | # Tell ltmain to make .lib files, not .a files. | |
10016 | libext=lib | |
10017 | # Tell ltmain to make .dll files, not .so files. | |
10018 | shrext_cmds=".dll" | |
10019 | # FIXME: Setting linknames here is a bad hack. | |
10020 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10021 | # The linker will automatically build a .lib file if we build a DLL. | |
10022 | old_archive_From_new_cmds='true' | |
10023 | # FIXME: Should let the user specify the lib program. | |
10024 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10025 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10026 | enable_shared_with_static_runtimes=yes | |
10027 | ;; | |
10028 | ||
10029 | darwin* | rhapsody*) | |
10030 | case $host_os in | |
10031 | rhapsody* | darwin1.[012]) | |
10032 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
10033 | ;; | |
10034 | *) # Darwin 1.3 on | |
10035 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10036 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10037 | else | |
10038 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
10039 | 10.[012]) | |
10040 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10041 | ;; | |
10042 | 10.*) | |
10043 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
10044 | ;; | |
10045 | esac | |
10046 | fi | |
10047 | ;; | |
10048 | esac | |
10049 | archive_cmds_need_lc=no | |
10050 | hardcode_direct=no | |
10051 | hardcode_automatic=yes | |
10052 | hardcode_shlibpath_var=unsupported | |
10053 | whole_archive_flag_spec='' | |
10054 | link_all_deplibs=yes | |
10055 | if test "$GCC" = yes ; then | |
10056 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
10057 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10058 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10059 | 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}" | |
10060 | 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}" | |
db137867 AC |
10061 | else |
10062 | case $cc_basename in | |
10063 | xlc*) | |
10064 | output_verbose_link_cmd='echo' | |
10065 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
10066 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10067 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10068 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10069 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10070 | ;; | |
10071 | *) | |
10072 | ld_shlibs=no | |
10073 | ;; | |
10074 | esac | |
10075 | fi | |
10076 | ;; | |
10077 | ||
10078 | dgux*) | |
10079 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10080 | hardcode_libdir_flag_spec='-L$libdir' | |
10081 | hardcode_shlibpath_var=no | |
10082 | ;; | |
10083 | ||
10084 | freebsd1*) | |
10085 | ld_shlibs=no | |
10086 | ;; | |
10087 | ||
10088 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10089 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10090 | # does not break anything, and helps significantly (at the cost of a little | |
10091 | # extra space). | |
10092 | freebsd2.2*) | |
10093 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10094 | hardcode_libdir_flag_spec='-R$libdir' | |
10095 | hardcode_direct=yes | |
10096 | hardcode_shlibpath_var=no | |
10097 | ;; | |
10098 | ||
10099 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10100 | freebsd2*) | |
10101 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10102 | hardcode_direct=yes | |
10103 | hardcode_minus_L=yes | |
10104 | hardcode_shlibpath_var=no | |
10105 | ;; | |
10106 | ||
10107 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10108 | freebsd* | dragonfly*) | |
10109 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10110 | hardcode_libdir_flag_spec='-R$libdir' | |
10111 | hardcode_direct=yes | |
10112 | hardcode_shlibpath_var=no | |
10113 | ;; | |
10114 | ||
10115 | hpux9*) | |
10116 | if test "$GCC" = yes; then | |
10117 | 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' | |
10118 | else | |
10119 | 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' | |
10120 | fi | |
10121 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10122 | hardcode_libdir_separator=: | |
10123 | hardcode_direct=yes | |
10124 | ||
10125 | # hardcode_minus_L: Not really in the search PATH, | |
10126 | # but as the default location of the library. | |
10127 | hardcode_minus_L=yes | |
10128 | export_dynamic_flag_spec='${wl}-E' | |
10129 | ;; | |
10130 | ||
10131 | hpux10*) | |
10132 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10133 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10134 | else | |
10135 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10136 | fi | |
10137 | if test "$with_gnu_ld" = no; then | |
10138 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10139 | hardcode_libdir_separator=: | |
10140 | ||
10141 | hardcode_direct=yes | |
10142 | export_dynamic_flag_spec='${wl}-E' | |
10143 | ||
10144 | # hardcode_minus_L: Not really in the search PATH, | |
10145 | # but as the default location of the library. | |
10146 | hardcode_minus_L=yes | |
10147 | fi | |
10148 | ;; | |
10149 | ||
10150 | hpux11*) | |
10151 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10152 | case $host_cpu in | |
10153 | hppa*64*) | |
10154 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10155 | ;; | |
10156 | ia64*) | |
10157 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10158 | ;; | |
10159 | *) | |
10160 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10161 | ;; | |
10162 | esac | |
10163 | else | |
10164 | case $host_cpu in | |
10165 | hppa*64*) | |
10166 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10167 | ;; | |
10168 | ia64*) | |
10169 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10170 | ;; | |
10171 | *) | |
10172 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10173 | ;; | |
10174 | esac | |
10175 | fi | |
10176 | if test "$with_gnu_ld" = no; then | |
10177 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10178 | hardcode_libdir_separator=: | |
10179 | ||
10180 | case $host_cpu in | |
10181 | hppa*64*|ia64*) | |
10182 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10183 | hardcode_direct=no | |
10184 | hardcode_shlibpath_var=no | |
10185 | ;; | |
10186 | *) | |
10187 | hardcode_direct=yes | |
10188 | export_dynamic_flag_spec='${wl}-E' | |
10189 | ||
10190 | # hardcode_minus_L: Not really in the search PATH, | |
10191 | # but as the default location of the library. | |
10192 | hardcode_minus_L=yes | |
10193 | ;; | |
10194 | esac | |
10195 | fi | |
10196 | ;; | |
10197 | ||
10198 | irix5* | irix6* | nonstopux*) | |
10199 | if test "$GCC" = yes; then | |
10200 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10201 | else | |
10202 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10203 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10204 | fi | |
10205 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10206 | hardcode_libdir_separator=: | |
10207 | link_all_deplibs=yes | |
10208 | ;; | |
10209 | ||
10210 | netbsd* | netbsdelf*-gnu) | |
10211 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10212 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10213 | else | |
10214 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10215 | fi | |
10216 | hardcode_libdir_flag_spec='-R$libdir' | |
10217 | hardcode_direct=yes | |
10218 | hardcode_shlibpath_var=no | |
10219 | ;; | |
10220 | ||
10221 | newsos6) | |
10222 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10223 | hardcode_direct=yes | |
10224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10225 | hardcode_libdir_separator=: | |
10226 | hardcode_shlibpath_var=no | |
10227 | ;; | |
10228 | ||
10229 | openbsd*) | |
10230 | if test -f /usr/libexec/ld.so; then | |
10231 | hardcode_direct=yes | |
10232 | hardcode_shlibpath_var=no | |
10233 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10234 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10235 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10236 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10237 | export_dynamic_flag_spec='${wl}-E' | |
10238 | else | |
10239 | case $host_os in | |
10240 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10241 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10242 | hardcode_libdir_flag_spec='-R$libdir' | |
10243 | ;; | |
10244 | *) | |
10245 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10246 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10247 | ;; | |
10248 | esac | |
10249 | fi | |
10250 | else | |
10251 | ld_shlibs=no | |
10252 | fi | |
10253 | ;; | |
10254 | ||
10255 | os2*) | |
10256 | hardcode_libdir_flag_spec='-L$libdir' | |
10257 | hardcode_minus_L=yes | |
10258 | allow_undefined_flag=unsupported | |
10259 | 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' | |
10260 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10261 | ;; | |
10262 | ||
10263 | osf3*) | |
10264 | if test "$GCC" = yes; then | |
10265 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10266 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10267 | else | |
10268 | allow_undefined_flag=' -expect_unresolved \*' | |
10269 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10270 | fi | |
10271 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10272 | hardcode_libdir_separator=: | |
10273 | ;; | |
10274 | ||
10275 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10276 | if test "$GCC" = yes; then | |
10277 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10278 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10279 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10280 | else | |
10281 | allow_undefined_flag=' -expect_unresolved \*' | |
10282 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10283 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
10284 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
10285 | ||
10286 | # Both c and cxx compiler support -rpath directly | |
10287 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10288 | fi | |
10289 | hardcode_libdir_separator=: | |
10290 | ;; | |
10291 | ||
10292 | solaris*) | |
10293 | no_undefined_flag=' -z text' | |
10294 | if test "$GCC" = yes; then | |
10295 | wlarc='${wl}' | |
10296 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10297 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10298 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
10299 | else | |
10300 | wlarc='' | |
10301 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10302 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10303 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
10304 | fi | |
10305 | hardcode_libdir_flag_spec='-R$libdir' | |
10306 | hardcode_shlibpath_var=no | |
10307 | case $host_os in | |
10308 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10309 | *) | |
10310 | # The compiler driver will combine and reorder linker options, | |
10311 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10312 | # but is careful enough not to reorder. | |
10313 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10314 | if test "$GCC" = yes; then | |
10315 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10316 | else | |
10317 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10318 | fi | |
10319 | ;; | |
10320 | esac | |
10321 | link_all_deplibs=yes | |
10322 | ;; | |
10323 | ||
10324 | sunos4*) | |
10325 | if test "x$host_vendor" = xsequent; then | |
10326 | # Use $CC to link under sequent, because it throws in some extra .o | |
10327 | # files that make .init and .fini sections work. | |
10328 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10329 | else | |
10330 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10331 | fi | |
10332 | hardcode_libdir_flag_spec='-L$libdir' | |
10333 | hardcode_direct=yes | |
10334 | hardcode_minus_L=yes | |
10335 | hardcode_shlibpath_var=no | |
10336 | ;; | |
10337 | ||
10338 | sysv4) | |
10339 | case $host_vendor in | |
10340 | sni) | |
10341 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10342 | hardcode_direct=yes # is this really true??? | |
10343 | ;; | |
10344 | siemens) | |
10345 | ## LD is ld it makes a PLAMLIB | |
10346 | ## CC just makes a GrossModule. | |
10347 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10348 | reload_cmds='$CC -r -o $output$reload_objs' | |
10349 | hardcode_direct=no | |
10350 | ;; | |
10351 | motorola) | |
10352 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10353 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10354 | ;; | |
10355 | esac | |
10356 | runpath_var='LD_RUN_PATH' | |
10357 | hardcode_shlibpath_var=no | |
10358 | ;; | |
10359 | ||
10360 | sysv4.3*) | |
10361 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10362 | hardcode_shlibpath_var=no | |
10363 | export_dynamic_flag_spec='-Bexport' | |
10364 | ;; | |
10365 | ||
10366 | sysv4*MP*) | |
10367 | if test -d /usr/nec; then | |
10368 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10369 | hardcode_shlibpath_var=no | |
10370 | runpath_var=LD_RUN_PATH | |
10371 | hardcode_runpath_var=yes | |
10372 | ld_shlibs=yes | |
10373 | fi | |
10374 | ;; | |
10375 | ||
10376 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10377 | no_undefined_flag='${wl}-z,text' | |
10378 | archive_cmds_need_lc=no | |
10379 | hardcode_shlibpath_var=no | |
10380 | runpath_var='LD_RUN_PATH' | |
10381 | ||
10382 | if test "$GCC" = yes; then | |
10383 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10384 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10385 | else | |
10386 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10387 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10388 | fi | |
10389 | ;; | |
10390 | ||
10391 | sysv5* | sco3.2v5* | sco5v6*) | |
10392 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10393 | # link with -lc, and that would cause any symbols used from libc to | |
10394 | # always be unresolved, which means just about no library would | |
10395 | # ever link correctly. If we're not using GNU ld we use -z text | |
10396 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10397 | # as -z defs. | |
10398 | no_undefined_flag='${wl}-z,text' | |
10399 | allow_undefined_flag='${wl}-z,nodefs' | |
10400 | archive_cmds_need_lc=no | |
10401 | hardcode_shlibpath_var=no | |
10402 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
10403 | hardcode_libdir_separator=':' | |
10404 | link_all_deplibs=yes | |
10405 | export_dynamic_flag_spec='${wl}-Bexport' | |
10406 | runpath_var='LD_RUN_PATH' | |
10407 | ||
10408 | if test "$GCC" = yes; then | |
10409 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10410 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10411 | else | |
10412 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10413 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10414 | fi | |
10415 | ;; | |
10416 | ||
10417 | uts4*) | |
10418 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10419 | hardcode_libdir_flag_spec='-L$libdir' | |
10420 | hardcode_shlibpath_var=no | |
10421 | ;; | |
10422 | ||
10423 | *) | |
10424 | ld_shlibs=no | |
10425 | ;; | |
10426 | esac | |
10427 | fi | |
10428 | ||
030272f3 VY |
10429 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
10430 | $as_echo "$ld_shlibs" >&6; } | |
db137867 AC |
10431 | test "$ld_shlibs" = no && can_build_shared=no |
10432 | ||
10433 | # | |
10434 | # Do we need to explicitly link libc? | |
10435 | # | |
10436 | case "x$archive_cmds_need_lc" in | |
10437 | x|xyes) | |
10438 | # Assume -lc should be added | |
10439 | archive_cmds_need_lc=yes | |
10440 | ||
10441 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10442 | case $archive_cmds in | |
10443 | *'~'*) | |
10444 | # FIXME: we may have to deal with multi-command sequences. | |
10445 | ;; | |
10446 | '$CC '*) | |
10447 | # Test whether the compiler implicitly links with -lc since on some | |
10448 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10449 | # to ld, don't add -lc before -lgcc. | |
030272f3 VY |
10450 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
10451 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
db137867 AC |
10452 | $rm conftest* |
10453 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10454 | ||
10455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10456 | (eval $ac_compile) 2>&5 | |
10457 | ac_status=$? | |
030272f3 | 10458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
10459 | (exit $ac_status); } 2>conftest.err; then |
10460 | soname=conftest | |
10461 | lib=conftest | |
10462 | libobjs=conftest.$ac_objext | |
10463 | deplibs= | |
10464 | wl=$lt_prog_compiler_wl | |
10465 | pic_flag=$lt_prog_compiler_pic | |
10466 | compiler_flags=-v | |
10467 | linker_flags=-v | |
10468 | verstring= | |
10469 | output_objdir=. | |
10470 | libname=conftest | |
10471 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10472 | allow_undefined_flag= | |
10473 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10474 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10475 | ac_status=$? | |
030272f3 | 10476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
10477 | (exit $ac_status); } |
10478 | then | |
10479 | archive_cmds_need_lc=no | |
10480 | else | |
10481 | archive_cmds_need_lc=yes | |
10482 | fi | |
10483 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10484 | else | |
10485 | cat conftest.err 1>&5 | |
10486 | fi | |
10487 | $rm conftest* | |
030272f3 VY |
10488 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
10489 | $as_echo "$archive_cmds_need_lc" >&6; } | |
db137867 AC |
10490 | ;; |
10491 | esac | |
10492 | fi | |
10493 | ;; | |
10494 | esac | |
10495 | ||
030272f3 VY |
10496 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
10497 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
db137867 AC |
10498 | library_names_spec= |
10499 | libname_spec='lib$name' | |
10500 | soname_spec= | |
10501 | shrext_cmds=".so" | |
10502 | postinstall_cmds= | |
10503 | postuninstall_cmds= | |
10504 | finish_cmds= | |
10505 | finish_eval= | |
10506 | shlibpath_var= | |
10507 | shlibpath_overrides_runpath=unknown | |
10508 | version_type=none | |
10509 | dynamic_linker="$host_os ld.so" | |
10510 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10511 | ||
10512 | if test "$GCC" = yes; then | |
10513 | case $host_os in | |
10514 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10515 | *) lt_awk_arg="/^libraries:/" ;; | |
10516 | esac | |
10517 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10518 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then | |
10519 | # if the path contains ";" then we assume it to be the separator | |
10520 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10521 | # assumed that no part of a normal pathname contains ";" but that should | |
10522 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10523 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10524 | else | |
10525 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10526 | fi | |
10527 | # Ok, now we have the path, separated by spaces, we can step through it | |
10528 | # and add multilib dir if necessary. | |
10529 | lt_tmp_lt_search_path_spec= | |
10530 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10531 | for lt_sys_path in $lt_search_path_spec; do | |
10532 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10533 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10534 | else | |
10535 | test -d "$lt_sys_path" && \ | |
10536 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10537 | fi | |
10538 | done | |
10539 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' | |
10540 | BEGIN {RS=" "; FS="/|\n";} { | |
10541 | lt_foo=""; | |
10542 | lt_count=0; | |
10543 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10544 | if ($lt_i != "" && $lt_i != ".") { | |
10545 | if ($lt_i == "..") { | |
10546 | lt_count++; | |
10547 | } else { | |
10548 | if (lt_count == 0) { | |
10549 | lt_foo="/" $lt_i lt_foo; | |
10550 | } else { | |
10551 | lt_count--; | |
10552 | } | |
10553 | } | |
10554 | } | |
10555 | } | |
10556 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10557 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10558 | }'` | |
10559 | sys_lib_search_path_spec=`echo $lt_search_path_spec` | |
10560 | else | |
10561 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10562 | fi | |
10563 | need_lib_prefix=unknown | |
10564 | hardcode_into_libs=no | |
10565 | ||
10566 | # when you set need_version to no, make sure it does not cause -set_version | |
10567 | # flags to be left without arguments | |
10568 | need_version=unknown | |
10569 | ||
10570 | case $host_os in | |
10571 | aix3*) | |
10572 | version_type=linux | |
10573 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10574 | shlibpath_var=LIBPATH | |
10575 | ||
10576 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10577 | soname_spec='${libname}${release}${shared_ext}$major' | |
10578 | ;; | |
10579 | ||
b676ea3b | 10580 | aix[4-9]*) |
db137867 AC |
10581 | version_type=linux |
10582 | need_lib_prefix=no | |
10583 | need_version=no | |
10584 | hardcode_into_libs=yes | |
10585 | if test "$host_cpu" = ia64; then | |
10586 | # AIX 5 supports IA64 | |
10587 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10588 | shlibpath_var=LD_LIBRARY_PATH | |
10589 | else | |
10590 | # With GCC up to 2.95.x, collect2 would create an import file | |
10591 | # for dependence libraries. The import file would start with | |
10592 | # the line `#! .'. This would cause the generated library to | |
10593 | # depend on `.', always an invalid library. This was fixed in | |
10594 | # development snapshots of GCC prior to 3.0. | |
10595 | case $host_os in | |
10596 | aix4 | aix4.[01] | aix4.[01].*) | |
10597 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10598 | echo ' yes ' | |
10599 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10600 | : | |
10601 | else | |
10602 | can_build_shared=no | |
10603 | fi | |
10604 | ;; | |
10605 | esac | |
10606 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10607 | # soname into executable. Probably we can add versioning support to | |
10608 | # collect2, so additional links can be useful in future. | |
10609 | if test "$aix_use_runtimelinking" = yes; then | |
10610 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10611 | # instead of lib<name>.a to let people know that these are not | |
10612 | # typical AIX shared libraries. | |
10613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10614 | else | |
10615 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10616 | # and later when we are not doing run time linking. | |
10617 | library_names_spec='${libname}${release}.a $libname.a' | |
10618 | soname_spec='${libname}${release}${shared_ext}$major' | |
10619 | fi | |
10620 | shlibpath_var=LIBPATH | |
10621 | fi | |
10622 | ;; | |
10623 | ||
10624 | amigaos*) | |
10625 | library_names_spec='$libname.ixlibrary $libname.a' | |
10626 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10627 | 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' | |
10628 | ;; | |
10629 | ||
10630 | beos*) | |
10631 | library_names_spec='${libname}${shared_ext}' | |
10632 | dynamic_linker="$host_os ld.so" | |
10633 | shlibpath_var=LIBRARY_PATH | |
10634 | ;; | |
10635 | ||
10636 | bsdi[45]*) | |
10637 | version_type=linux | |
10638 | need_version=no | |
10639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10640 | soname_spec='${libname}${release}${shared_ext}$major' | |
10641 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10642 | shlibpath_var=LD_LIBRARY_PATH | |
10643 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10644 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10645 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10646 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10647 | # libtool to hard-code these into programs | |
10648 | ;; | |
10649 | ||
10650 | cygwin* | mingw* | pw32*) | |
10651 | version_type=windows | |
10652 | shrext_cmds=".dll" | |
10653 | need_version=no | |
10654 | need_lib_prefix=no | |
10655 | ||
10656 | case $GCC,$host_os in | |
10657 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
10658 | library_names_spec='$libname.dll.a' | |
10659 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10660 | postinstall_cmds='base_file=`basename \${file}`~ | |
10661 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
10662 | dldir=$destdir/`dirname \$dlpath`~ | |
10663 | test -d \$dldir || mkdir -p \$dldir~ | |
10664 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10665 | chmod a+x \$dldir/$dlname' | |
10666 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10667 | dlpath=$dir/\$dldll~ | |
10668 | $rm \$dlpath' | |
10669 | shlibpath_overrides_runpath=yes | |
10670 | ||
10671 | case $host_os in | |
10672 | cygwin*) | |
10673 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10674 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10675 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10676 | ;; | |
10677 | mingw*) | |
10678 | # MinGW DLLs use traditional 'lib' prefix | |
10679 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10680 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10681 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
10682 | # It is most probably a Windows format PATH printed by | |
10683 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10684 | # path with ; separators, and with drive letters. We can handle the | |
10685 | # drive letters (cygwin fileutils understands them), so leave them, | |
10686 | # especially as we might pass files found there to a mingw objdump, | |
10687 | # which wouldn't understand a cygwinified path. Ahh. | |
10688 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10689 | else | |
10690 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10691 | fi | |
10692 | ;; | |
10693 | pw32*) | |
10694 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10695 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10696 | ;; | |
10697 | esac | |
10698 | ;; | |
10699 | ||
10700 | *) | |
10701 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10702 | ;; | |
10703 | esac | |
10704 | dynamic_linker='Win32 ld.exe' | |
10705 | # FIXME: first we should search . and the directory the executable is in | |
10706 | shlibpath_var=PATH | |
10707 | ;; | |
10708 | ||
10709 | darwin* | rhapsody*) | |
10710 | dynamic_linker="$host_os dyld" | |
10711 | version_type=darwin | |
10712 | need_lib_prefix=no | |
10713 | need_version=no | |
10714 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10715 | soname_spec='${libname}${release}${major}$shared_ext' | |
10716 | shlibpath_overrides_runpath=yes | |
10717 | shlibpath_var=DYLD_LIBRARY_PATH | |
10718 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10719 | ||
10720 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10721 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10722 | ;; | |
10723 | ||
10724 | dgux*) | |
10725 | version_type=linux | |
10726 | need_lib_prefix=no | |
10727 | need_version=no | |
10728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10729 | soname_spec='${libname}${release}${shared_ext}$major' | |
10730 | shlibpath_var=LD_LIBRARY_PATH | |
10731 | ;; | |
10732 | ||
10733 | freebsd1*) | |
10734 | dynamic_linker=no | |
10735 | ;; | |
10736 | ||
10737 | freebsd* | dragonfly*) | |
10738 | # DragonFly does not have aout. When/if they implement a new | |
10739 | # versioning mechanism, adjust this. | |
10740 | if test -x /usr/bin/objformat; then | |
10741 | objformat=`/usr/bin/objformat` | |
10742 | else | |
10743 | case $host_os in | |
10744 | freebsd[123]*) objformat=aout ;; | |
10745 | *) objformat=elf ;; | |
10746 | esac | |
10747 | fi | |
10748 | version_type=freebsd-$objformat | |
10749 | case $version_type in | |
10750 | freebsd-elf*) | |
10751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10752 | need_version=no | |
10753 | need_lib_prefix=no | |
10754 | ;; | |
10755 | freebsd-*) | |
10756 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10757 | need_version=yes | |
10758 | ;; | |
10759 | esac | |
10760 | shlibpath_var=LD_LIBRARY_PATH | |
10761 | case $host_os in | |
10762 | freebsd2*) | |
10763 | shlibpath_overrides_runpath=yes | |
10764 | ;; | |
10765 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10766 | shlibpath_overrides_runpath=yes | |
10767 | hardcode_into_libs=yes | |
10768 | ;; | |
10769 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10770 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10771 | shlibpath_overrides_runpath=no | |
10772 | hardcode_into_libs=yes | |
10773 | ;; | |
10774 | *) # from 4.6 on, and DragonFly | |
10775 | shlibpath_overrides_runpath=yes | |
10776 | hardcode_into_libs=yes | |
10777 | ;; | |
10778 | esac | |
10779 | ;; | |
10780 | ||
10781 | gnu*) | |
10782 | version_type=linux | |
10783 | need_lib_prefix=no | |
10784 | need_version=no | |
10785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10786 | soname_spec='${libname}${release}${shared_ext}$major' | |
10787 | shlibpath_var=LD_LIBRARY_PATH | |
10788 | hardcode_into_libs=yes | |
10789 | ;; | |
10790 | ||
10791 | hpux9* | hpux10* | hpux11*) | |
10792 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10793 | # link against other versions. | |
10794 | version_type=sunos | |
10795 | need_lib_prefix=no | |
10796 | need_version=no | |
10797 | case $host_cpu in | |
10798 | ia64*) | |
10799 | shrext_cmds='.so' | |
10800 | hardcode_into_libs=yes | |
10801 | dynamic_linker="$host_os dld.so" | |
10802 | shlibpath_var=LD_LIBRARY_PATH | |
10803 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10805 | soname_spec='${libname}${release}${shared_ext}$major' | |
10806 | if test "X$HPUX_IA64_MODE" = X32; then | |
10807 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10808 | else | |
10809 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10810 | fi | |
10811 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10812 | ;; | |
10813 | hppa*64*) | |
10814 | shrext_cmds='.sl' | |
10815 | hardcode_into_libs=yes | |
10816 | dynamic_linker="$host_os dld.sl" | |
10817 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10818 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10820 | soname_spec='${libname}${release}${shared_ext}$major' | |
10821 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10822 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10823 | ;; | |
10824 | *) | |
10825 | shrext_cmds='.sl' | |
10826 | dynamic_linker="$host_os dld.sl" | |
10827 | shlibpath_var=SHLIB_PATH | |
10828 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10830 | soname_spec='${libname}${release}${shared_ext}$major' | |
10831 | ;; | |
10832 | esac | |
10833 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10834 | postinstall_cmds='chmod 555 $lib' | |
10835 | ;; | |
10836 | ||
10837 | interix[3-9]*) | |
10838 | version_type=linux | |
10839 | need_lib_prefix=no | |
10840 | need_version=no | |
10841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10842 | soname_spec='${libname}${release}${shared_ext}$major' | |
10843 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10844 | shlibpath_var=LD_LIBRARY_PATH | |
10845 | shlibpath_overrides_runpath=no | |
10846 | hardcode_into_libs=yes | |
10847 | ;; | |
10848 | ||
10849 | irix5* | irix6* | nonstopux*) | |
10850 | case $host_os in | |
10851 | nonstopux*) version_type=nonstopux ;; | |
10852 | *) | |
10853 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10854 | version_type=linux | |
10855 | else | |
10856 | version_type=irix | |
10857 | fi ;; | |
10858 | esac | |
10859 | need_lib_prefix=no | |
10860 | need_version=no | |
10861 | soname_spec='${libname}${release}${shared_ext}$major' | |
10862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10863 | case $host_os in | |
10864 | irix5* | nonstopux*) | |
10865 | libsuff= shlibsuff= | |
10866 | ;; | |
10867 | *) | |
10868 | case $LD in # libtool.m4 will add one of these switches to LD | |
10869 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10870 | libsuff= shlibsuff= libmagic=32-bit;; | |
10871 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10872 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10873 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10874 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10875 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10876 | esac | |
10877 | ;; | |
10878 | esac | |
10879 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10880 | shlibpath_overrides_runpath=no | |
10881 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10882 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10883 | hardcode_into_libs=yes | |
10884 | ;; | |
10885 | ||
10886 | # No shared lib support for Linux oldld, aout, or coff. | |
10887 | linux*oldld* | linux*aout* | linux*coff*) | |
10888 | dynamic_linker=no | |
10889 | ;; | |
10890 | ||
10891 | # This must be Linux ELF. | |
10892 | linux* | k*bsd*-gnu) | |
10893 | version_type=linux | |
10894 | need_lib_prefix=no | |
10895 | need_version=no | |
10896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10897 | soname_spec='${libname}${release}${shared_ext}$major' | |
10898 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10899 | shlibpath_var=LD_LIBRARY_PATH | |
10900 | shlibpath_overrides_runpath=no | |
10901 | # This implies no fast_install, which is unacceptable. | |
10902 | # Some rework will be needed to allow for fast_install | |
10903 | # before this can be enabled. | |
10904 | hardcode_into_libs=yes | |
10905 | ||
10906 | # Append ld.so.conf contents to the search path | |
10907 | if test -f /etc/ld.so.conf; then | |
10908 | 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' ' '` | |
10909 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10910 | fi | |
10911 | ||
10912 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10913 | # powerpc, because MkLinux only supported shared libraries with the | |
10914 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10915 | # most powerpc-linux boxes support dynamic linking these days and | |
10916 | # people can always --disable-shared, the test was removed, and we | |
10917 | # assume the GNU/Linux dynamic linker is in use. | |
10918 | dynamic_linker='GNU/Linux ld.so' | |
10919 | ;; | |
10920 | ||
10921 | netbsdelf*-gnu) | |
10922 | version_type=linux | |
10923 | need_lib_prefix=no | |
10924 | need_version=no | |
10925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10926 | soname_spec='${libname}${release}${shared_ext}$major' | |
10927 | shlibpath_var=LD_LIBRARY_PATH | |
10928 | shlibpath_overrides_runpath=no | |
10929 | hardcode_into_libs=yes | |
10930 | dynamic_linker='NetBSD ld.elf_so' | |
10931 | ;; | |
10932 | ||
10933 | netbsd*) | |
10934 | version_type=sunos | |
10935 | need_lib_prefix=no | |
10936 | need_version=no | |
10937 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10939 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10940 | dynamic_linker='NetBSD (a.out) ld.so' | |
10941 | else | |
10942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10943 | soname_spec='${libname}${release}${shared_ext}$major' | |
10944 | dynamic_linker='NetBSD ld.elf_so' | |
10945 | fi | |
10946 | shlibpath_var=LD_LIBRARY_PATH | |
10947 | shlibpath_overrides_runpath=yes | |
10948 | hardcode_into_libs=yes | |
10949 | ;; | |
10950 | ||
10951 | newsos6) | |
10952 | version_type=linux | |
10953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10954 | shlibpath_var=LD_LIBRARY_PATH | |
10955 | shlibpath_overrides_runpath=yes | |
10956 | ;; | |
10957 | ||
10958 | nto-qnx*) | |
10959 | version_type=linux | |
10960 | need_lib_prefix=no | |
10961 | need_version=no | |
10962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10963 | soname_spec='${libname}${release}${shared_ext}$major' | |
10964 | shlibpath_var=LD_LIBRARY_PATH | |
10965 | shlibpath_overrides_runpath=yes | |
10966 | ;; | |
10967 | ||
10968 | openbsd*) | |
10969 | version_type=sunos | |
10970 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10971 | need_lib_prefix=no | |
10972 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10973 | case $host_os in | |
10974 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10975 | *) need_version=no ;; | |
10976 | esac | |
10977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10978 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10979 | shlibpath_var=LD_LIBRARY_PATH | |
10980 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10981 | case $host_os in | |
10982 | openbsd2.[89] | openbsd2.[89].*) | |
10983 | shlibpath_overrides_runpath=no | |
10984 | ;; | |
10985 | *) | |
10986 | shlibpath_overrides_runpath=yes | |
10987 | ;; | |
10988 | esac | |
10989 | else | |
10990 | shlibpath_overrides_runpath=yes | |
10991 | fi | |
10992 | ;; | |
10993 | ||
10994 | os2*) | |
10995 | libname_spec='$name' | |
10996 | shrext_cmds=".dll" | |
10997 | need_lib_prefix=no | |
10998 | library_names_spec='$libname${shared_ext} $libname.a' | |
10999 | dynamic_linker='OS/2 ld.exe' | |
11000 | shlibpath_var=LIBPATH | |
11001 | ;; | |
11002 | ||
11003 | osf3* | osf4* | osf5*) | |
11004 | version_type=osf | |
11005 | need_lib_prefix=no | |
11006 | need_version=no | |
11007 | soname_spec='${libname}${release}${shared_ext}$major' | |
11008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11009 | shlibpath_var=LD_LIBRARY_PATH | |
11010 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11011 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11012 | ;; | |
11013 | ||
11014 | rdos*) | |
11015 | dynamic_linker=no | |
11016 | ;; | |
11017 | ||
11018 | solaris*) | |
11019 | version_type=linux | |
11020 | need_lib_prefix=no | |
11021 | need_version=no | |
11022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11023 | soname_spec='${libname}${release}${shared_ext}$major' | |
11024 | shlibpath_var=LD_LIBRARY_PATH | |
11025 | shlibpath_overrides_runpath=yes | |
11026 | hardcode_into_libs=yes | |
11027 | # ldd complains unless libraries are executable | |
11028 | postinstall_cmds='chmod +x $lib' | |
11029 | ;; | |
11030 | ||
11031 | sunos4*) | |
11032 | version_type=sunos | |
11033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11034 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11035 | shlibpath_var=LD_LIBRARY_PATH | |
11036 | shlibpath_overrides_runpath=yes | |
11037 | if test "$with_gnu_ld" = yes; then | |
11038 | need_lib_prefix=no | |
11039 | fi | |
11040 | need_version=yes | |
11041 | ;; | |
11042 | ||
11043 | sysv4 | sysv4.3*) | |
11044 | version_type=linux | |
11045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11046 | soname_spec='${libname}${release}${shared_ext}$major' | |
11047 | shlibpath_var=LD_LIBRARY_PATH | |
11048 | case $host_vendor in | |
11049 | sni) | |
11050 | shlibpath_overrides_runpath=no | |
11051 | need_lib_prefix=no | |
11052 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11053 | runpath_var=LD_RUN_PATH | |
11054 | ;; | |
11055 | siemens) | |
11056 | need_lib_prefix=no | |
11057 | ;; | |
11058 | motorola) | |
11059 | need_lib_prefix=no | |
11060 | need_version=no | |
11061 | shlibpath_overrides_runpath=no | |
11062 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11063 | ;; | |
11064 | esac | |
11065 | ;; | |
11066 | ||
11067 | sysv4*MP*) | |
11068 | if test -d /usr/nec ;then | |
11069 | version_type=linux | |
11070 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11071 | soname_spec='$libname${shared_ext}.$major' | |
11072 | shlibpath_var=LD_LIBRARY_PATH | |
11073 | fi | |
11074 | ;; | |
11075 | ||
11076 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11077 | version_type=freebsd-elf | |
11078 | need_lib_prefix=no | |
11079 | need_version=no | |
11080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11081 | soname_spec='${libname}${release}${shared_ext}$major' | |
11082 | shlibpath_var=LD_LIBRARY_PATH | |
11083 | hardcode_into_libs=yes | |
11084 | if test "$with_gnu_ld" = yes; then | |
11085 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11086 | shlibpath_overrides_runpath=no | |
11087 | else | |
11088 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11089 | shlibpath_overrides_runpath=yes | |
11090 | case $host_os in | |
11091 | sco3.2v5*) | |
11092 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11093 | ;; | |
11094 | esac | |
11095 | fi | |
11096 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11097 | ;; | |
11098 | ||
11099 | uts4*) | |
11100 | version_type=linux | |
11101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11102 | soname_spec='${libname}${release}${shared_ext}$major' | |
11103 | shlibpath_var=LD_LIBRARY_PATH | |
11104 | ;; | |
11105 | ||
11106 | *) | |
11107 | dynamic_linker=no | |
11108 | ;; | |
11109 | esac | |
030272f3 VY |
11110 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
11111 | $as_echo "$dynamic_linker" >&6; } | |
db137867 AC |
11112 | test "$dynamic_linker" = no && can_build_shared=no |
11113 | ||
b676ea3b | 11114 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
030272f3 | 11115 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
11116 | else |
11117 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
11118 | fi | |
11119 | ||
11120 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11121 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
030272f3 | 11122 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
11123 | else |
11124 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
11125 | fi | |
11126 | ||
11127 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11128 | ||
db137867 AC |
11129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11130 | if test "$GCC" = yes; then | |
11131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11132 | fi | |
11133 | ||
030272f3 VY |
11134 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
11135 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
db137867 AC |
11136 | hardcode_action= |
11137 | if test -n "$hardcode_libdir_flag_spec" || \ | |
11138 | test -n "$runpath_var" || \ | |
11139 | test "X$hardcode_automatic" = "Xyes" ; then | |
11140 | ||
11141 | # We can hardcode non-existant directories. | |
11142 | if test "$hardcode_direct" != no && | |
11143 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11144 | # have to relink, otherwise we might link with an installed library | |
11145 | # when we should be linking with a yet-to-be-installed one | |
11146 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11147 | test "$hardcode_minus_L" != no; then | |
11148 | # Linking always hardcodes the temporary library directory. | |
11149 | hardcode_action=relink | |
11150 | else | |
11151 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11152 | hardcode_action=immediate | |
11153 | fi | |
11154 | else | |
11155 | # We cannot hardcode anything, or else we can only hardcode existing | |
11156 | # directories. | |
11157 | hardcode_action=unsupported | |
11158 | fi | |
030272f3 VY |
11159 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
11160 | $as_echo "$hardcode_action" >&6; } | |
db137867 AC |
11161 | |
11162 | if test "$hardcode_action" = relink; then | |
11163 | # Fast installation is not supported | |
11164 | enable_fast_install=no | |
11165 | elif test "$shlibpath_overrides_runpath" = yes || | |
11166 | test "$enable_shared" = no; then | |
11167 | # Fast installation is not necessary | |
11168 | enable_fast_install=needless | |
11169 | fi | |
11170 | ||
11171 | striplib= | |
11172 | old_striplib= | |
030272f3 VY |
11173 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
11174 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
db137867 AC |
11175 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
11176 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11177 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
030272f3 VY |
11178 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11179 | $as_echo "yes" >&6; } | |
db137867 AC |
11180 | else |
11181 | # FIXME - insert some real tests, host_os isn't really good enough | |
11182 | case $host_os in | |
11183 | darwin*) | |
11184 | if test -n "$STRIP" ; then | |
11185 | striplib="$STRIP -x" | |
11186 | old_striplib="$STRIP -S" | |
030272f3 VY |
11187 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11188 | $as_echo "yes" >&6; } | |
db137867 | 11189 | else |
030272f3 VY |
11190 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11191 | $as_echo "no" >&6; } | |
db137867 AC |
11192 | fi |
11193 | ;; | |
11194 | *) | |
030272f3 VY |
11195 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11196 | $as_echo "no" >&6; } | |
db137867 AC |
11197 | ;; |
11198 | esac | |
11199 | fi | |
11200 | ||
11201 | if test "x$enable_dlopen" != xyes; then | |
11202 | enable_dlopen=unknown | |
11203 | enable_dlopen_self=unknown | |
11204 | enable_dlopen_self_static=unknown | |
11205 | else | |
11206 | lt_cv_dlopen=no | |
11207 | lt_cv_dlopen_libs= | |
11208 | ||
11209 | case $host_os in | |
11210 | beos*) | |
11211 | lt_cv_dlopen="load_add_on" | |
11212 | lt_cv_dlopen_libs= | |
11213 | lt_cv_dlopen_self=yes | |
11214 | ;; | |
11215 | ||
11216 | mingw* | pw32*) | |
11217 | lt_cv_dlopen="LoadLibrary" | |
11218 | lt_cv_dlopen_libs= | |
11219 | ;; | |
11220 | ||
11221 | cygwin*) | |
11222 | lt_cv_dlopen="dlopen" | |
11223 | lt_cv_dlopen_libs= | |
11224 | ;; | |
11225 | ||
11226 | darwin*) | |
11227 | # if libdl is installed we need to link against it | |
030272f3 VY |
11228 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
11229 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
db137867 | 11230 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
030272f3 | 11231 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11232 | else |
11233 | ac_check_lib_save_LIBS=$LIBS | |
11234 | LIBS="-ldl $LIBS" | |
11235 | cat >conftest.$ac_ext <<_ACEOF | |
11236 | /* confdefs.h. */ | |
11237 | _ACEOF | |
11238 | cat confdefs.h >>conftest.$ac_ext | |
11239 | cat >>conftest.$ac_ext <<_ACEOF | |
11240 | /* end confdefs.h. */ | |
11241 | ||
11242 | /* Override any GCC internal prototype to avoid an error. | |
11243 | Use char because int might match the return type of a GCC | |
11244 | builtin and then its argument prototype would still apply. */ | |
11245 | #ifdef __cplusplus | |
11246 | extern "C" | |
11247 | #endif | |
11248 | char dlopen (); | |
11249 | int | |
11250 | main () | |
11251 | { | |
11252 | return dlopen (); | |
11253 | ; | |
11254 | return 0; | |
11255 | } | |
11256 | _ACEOF | |
11257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11258 | if { (ac_try="$ac_link" | |
11259 | case "(($ac_try" in | |
11260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11261 | *) ac_try_echo=$ac_try;; | |
11262 | esac | |
030272f3 VY |
11263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11264 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11265 | (eval "$ac_link") 2>conftest.er1 |
11266 | ac_status=$? | |
11267 | grep -v '^ *+' conftest.er1 >conftest.err | |
11268 | rm -f conftest.er1 | |
11269 | cat conftest.err >&5 | |
030272f3 | 11270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11271 | (exit $ac_status); } && { |
11272 | test -z "$ac_c_werror_flag" || | |
11273 | test ! -s conftest.err | |
030272f3 VY |
11274 | } && test -s conftest$ac_exeext && { |
11275 | test "$cross_compiling" = yes || | |
11276 | $as_test_x conftest$ac_exeext | |
11277 | }; then | |
db137867 AC |
11278 | ac_cv_lib_dl_dlopen=yes |
11279 | else | |
030272f3 | 11280 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11281 | sed 's/^/| /' conftest.$ac_ext >&5 |
11282 | ||
11283 | ac_cv_lib_dl_dlopen=no | |
11284 | fi | |
11285 | ||
030272f3 | 11286 | rm -rf conftest.dSYM |
db137867 AC |
11287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11288 | conftest$ac_exeext conftest.$ac_ext | |
11289 | LIBS=$ac_check_lib_save_LIBS | |
11290 | fi | |
030272f3 VY |
11291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
11292 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11293 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
db137867 AC |
11294 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11295 | else | |
11296 | ||
11297 | lt_cv_dlopen="dyld" | |
11298 | lt_cv_dlopen_libs= | |
11299 | lt_cv_dlopen_self=yes | |
11300 | ||
11301 | fi | |
11302 | ||
11303 | ;; | |
11304 | ||
11305 | *) | |
030272f3 VY |
11306 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
11307 | $as_echo_n "checking for shl_load... " >&6; } | |
db137867 | 11308 | if test "${ac_cv_func_shl_load+set}" = set; then |
030272f3 | 11309 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11310 | else |
11311 | cat >conftest.$ac_ext <<_ACEOF | |
11312 | /* confdefs.h. */ | |
11313 | _ACEOF | |
11314 | cat confdefs.h >>conftest.$ac_ext | |
11315 | cat >>conftest.$ac_ext <<_ACEOF | |
11316 | /* end confdefs.h. */ | |
11317 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11319 | #define shl_load innocuous_shl_load | |
11320 | ||
11321 | /* System header to define __stub macros and hopefully few prototypes, | |
11322 | which can conflict with char shl_load (); below. | |
11323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11324 | <limits.h> exists even on freestanding compilers. */ | |
11325 | ||
11326 | #ifdef __STDC__ | |
11327 | # include <limits.h> | |
11328 | #else | |
11329 | # include <assert.h> | |
11330 | #endif | |
11331 | ||
11332 | #undef shl_load | |
11333 | ||
11334 | /* Override any GCC internal prototype to avoid an error. | |
11335 | Use char because int might match the return type of a GCC | |
11336 | builtin and then its argument prototype would still apply. */ | |
11337 | #ifdef __cplusplus | |
11338 | extern "C" | |
11339 | #endif | |
11340 | char shl_load (); | |
11341 | /* The GNU C library defines this for functions which it implements | |
11342 | to always fail with ENOSYS. Some functions are actually named | |
11343 | something starting with __ and the normal name is an alias. */ | |
11344 | #if defined __stub_shl_load || defined __stub___shl_load | |
11345 | choke me | |
11346 | #endif | |
11347 | ||
11348 | int | |
11349 | main () | |
11350 | { | |
11351 | return shl_load (); | |
11352 | ; | |
11353 | return 0; | |
11354 | } | |
11355 | _ACEOF | |
11356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11357 | if { (ac_try="$ac_link" | |
11358 | case "(($ac_try" in | |
11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11360 | *) ac_try_echo=$ac_try;; | |
11361 | esac | |
030272f3 VY |
11362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11363 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11364 | (eval "$ac_link") 2>conftest.er1 |
11365 | ac_status=$? | |
11366 | grep -v '^ *+' conftest.er1 >conftest.err | |
11367 | rm -f conftest.er1 | |
11368 | cat conftest.err >&5 | |
030272f3 | 11369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11370 | (exit $ac_status); } && { |
11371 | test -z "$ac_c_werror_flag" || | |
11372 | test ! -s conftest.err | |
030272f3 VY |
11373 | } && test -s conftest$ac_exeext && { |
11374 | test "$cross_compiling" = yes || | |
11375 | $as_test_x conftest$ac_exeext | |
11376 | }; then | |
db137867 AC |
11377 | ac_cv_func_shl_load=yes |
11378 | else | |
030272f3 | 11379 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11380 | sed 's/^/| /' conftest.$ac_ext >&5 |
11381 | ||
11382 | ac_cv_func_shl_load=no | |
11383 | fi | |
11384 | ||
030272f3 | 11385 | rm -rf conftest.dSYM |
db137867 AC |
11386 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11387 | conftest$ac_exeext conftest.$ac_ext | |
11388 | fi | |
030272f3 VY |
11389 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
11390 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
11391 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
db137867 AC |
11392 | lt_cv_dlopen="shl_load" |
11393 | else | |
030272f3 VY |
11394 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
11395 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
db137867 | 11396 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
030272f3 | 11397 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11398 | else |
11399 | ac_check_lib_save_LIBS=$LIBS | |
11400 | LIBS="-ldld $LIBS" | |
11401 | cat >conftest.$ac_ext <<_ACEOF | |
11402 | /* confdefs.h. */ | |
11403 | _ACEOF | |
11404 | cat confdefs.h >>conftest.$ac_ext | |
11405 | cat >>conftest.$ac_ext <<_ACEOF | |
11406 | /* end confdefs.h. */ | |
11407 | ||
11408 | /* Override any GCC internal prototype to avoid an error. | |
11409 | Use char because int might match the return type of a GCC | |
11410 | builtin and then its argument prototype would still apply. */ | |
11411 | #ifdef __cplusplus | |
11412 | extern "C" | |
11413 | #endif | |
11414 | char shl_load (); | |
11415 | int | |
11416 | main () | |
11417 | { | |
11418 | return shl_load (); | |
11419 | ; | |
11420 | return 0; | |
11421 | } | |
11422 | _ACEOF | |
11423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11424 | if { (ac_try="$ac_link" | |
11425 | case "(($ac_try" in | |
11426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11427 | *) ac_try_echo=$ac_try;; | |
11428 | esac | |
030272f3 VY |
11429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11430 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11431 | (eval "$ac_link") 2>conftest.er1 |
11432 | ac_status=$? | |
11433 | grep -v '^ *+' conftest.er1 >conftest.err | |
11434 | rm -f conftest.er1 | |
11435 | cat conftest.err >&5 | |
030272f3 | 11436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11437 | (exit $ac_status); } && { |
11438 | test -z "$ac_c_werror_flag" || | |
11439 | test ! -s conftest.err | |
030272f3 VY |
11440 | } && test -s conftest$ac_exeext && { |
11441 | test "$cross_compiling" = yes || | |
11442 | $as_test_x conftest$ac_exeext | |
11443 | }; then | |
db137867 AC |
11444 | ac_cv_lib_dld_shl_load=yes |
11445 | else | |
030272f3 | 11446 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11447 | sed 's/^/| /' conftest.$ac_ext >&5 |
11448 | ||
11449 | ac_cv_lib_dld_shl_load=no | |
11450 | fi | |
11451 | ||
030272f3 | 11452 | rm -rf conftest.dSYM |
db137867 AC |
11453 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11454 | conftest$ac_exeext conftest.$ac_ext | |
11455 | LIBS=$ac_check_lib_save_LIBS | |
11456 | fi | |
030272f3 VY |
11457 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
11458 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11459 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
b676ea3b | 11460 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
db137867 | 11461 | else |
030272f3 VY |
11462 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
11463 | $as_echo_n "checking for dlopen... " >&6; } | |
db137867 | 11464 | if test "${ac_cv_func_dlopen+set}" = set; then |
030272f3 | 11465 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11466 | else |
11467 | cat >conftest.$ac_ext <<_ACEOF | |
11468 | /* confdefs.h. */ | |
11469 | _ACEOF | |
11470 | cat confdefs.h >>conftest.$ac_ext | |
11471 | cat >>conftest.$ac_ext <<_ACEOF | |
11472 | /* end confdefs.h. */ | |
11473 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11475 | #define dlopen innocuous_dlopen | |
11476 | ||
11477 | /* System header to define __stub macros and hopefully few prototypes, | |
11478 | which can conflict with char dlopen (); below. | |
11479 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11480 | <limits.h> exists even on freestanding compilers. */ | |
11481 | ||
11482 | #ifdef __STDC__ | |
11483 | # include <limits.h> | |
11484 | #else | |
11485 | # include <assert.h> | |
11486 | #endif | |
11487 | ||
11488 | #undef dlopen | |
11489 | ||
11490 | /* Override any GCC internal prototype to avoid an error. | |
11491 | Use char because int might match the return type of a GCC | |
11492 | builtin and then its argument prototype would still apply. */ | |
11493 | #ifdef __cplusplus | |
11494 | extern "C" | |
11495 | #endif | |
11496 | char dlopen (); | |
11497 | /* The GNU C library defines this for functions which it implements | |
11498 | to always fail with ENOSYS. Some functions are actually named | |
11499 | something starting with __ and the normal name is an alias. */ | |
11500 | #if defined __stub_dlopen || defined __stub___dlopen | |
11501 | choke me | |
11502 | #endif | |
11503 | ||
11504 | int | |
11505 | main () | |
11506 | { | |
11507 | return dlopen (); | |
11508 | ; | |
11509 | return 0; | |
11510 | } | |
11511 | _ACEOF | |
11512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11513 | if { (ac_try="$ac_link" | |
11514 | case "(($ac_try" in | |
11515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11516 | *) ac_try_echo=$ac_try;; | |
11517 | esac | |
030272f3 VY |
11518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11519 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11520 | (eval "$ac_link") 2>conftest.er1 |
11521 | ac_status=$? | |
11522 | grep -v '^ *+' conftest.er1 >conftest.err | |
11523 | rm -f conftest.er1 | |
11524 | cat conftest.err >&5 | |
030272f3 | 11525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11526 | (exit $ac_status); } && { |
11527 | test -z "$ac_c_werror_flag" || | |
11528 | test ! -s conftest.err | |
030272f3 VY |
11529 | } && test -s conftest$ac_exeext && { |
11530 | test "$cross_compiling" = yes || | |
11531 | $as_test_x conftest$ac_exeext | |
11532 | }; then | |
db137867 AC |
11533 | ac_cv_func_dlopen=yes |
11534 | else | |
030272f3 | 11535 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11536 | sed 's/^/| /' conftest.$ac_ext >&5 |
11537 | ||
11538 | ac_cv_func_dlopen=no | |
11539 | fi | |
11540 | ||
030272f3 | 11541 | rm -rf conftest.dSYM |
db137867 AC |
11542 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11543 | conftest$ac_exeext conftest.$ac_ext | |
11544 | fi | |
030272f3 VY |
11545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
11546 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
11547 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
db137867 AC |
11548 | lt_cv_dlopen="dlopen" |
11549 | else | |
030272f3 VY |
11550 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
11551 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
db137867 | 11552 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
030272f3 | 11553 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11554 | else |
11555 | ac_check_lib_save_LIBS=$LIBS | |
11556 | LIBS="-ldl $LIBS" | |
11557 | cat >conftest.$ac_ext <<_ACEOF | |
11558 | /* confdefs.h. */ | |
11559 | _ACEOF | |
11560 | cat confdefs.h >>conftest.$ac_ext | |
11561 | cat >>conftest.$ac_ext <<_ACEOF | |
11562 | /* end confdefs.h. */ | |
11563 | ||
11564 | /* Override any GCC internal prototype to avoid an error. | |
11565 | Use char because int might match the return type of a GCC | |
11566 | builtin and then its argument prototype would still apply. */ | |
11567 | #ifdef __cplusplus | |
11568 | extern "C" | |
11569 | #endif | |
11570 | char dlopen (); | |
11571 | int | |
11572 | main () | |
11573 | { | |
11574 | return dlopen (); | |
11575 | ; | |
11576 | return 0; | |
11577 | } | |
11578 | _ACEOF | |
11579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11580 | if { (ac_try="$ac_link" | |
11581 | case "(($ac_try" in | |
11582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11583 | *) ac_try_echo=$ac_try;; | |
11584 | esac | |
030272f3 VY |
11585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11586 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11587 | (eval "$ac_link") 2>conftest.er1 |
11588 | ac_status=$? | |
11589 | grep -v '^ *+' conftest.er1 >conftest.err | |
11590 | rm -f conftest.er1 | |
11591 | cat conftest.err >&5 | |
030272f3 | 11592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11593 | (exit $ac_status); } && { |
11594 | test -z "$ac_c_werror_flag" || | |
11595 | test ! -s conftest.err | |
030272f3 VY |
11596 | } && test -s conftest$ac_exeext && { |
11597 | test "$cross_compiling" = yes || | |
11598 | $as_test_x conftest$ac_exeext | |
11599 | }; then | |
db137867 AC |
11600 | ac_cv_lib_dl_dlopen=yes |
11601 | else | |
030272f3 | 11602 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11603 | sed 's/^/| /' conftest.$ac_ext >&5 |
11604 | ||
11605 | ac_cv_lib_dl_dlopen=no | |
11606 | fi | |
11607 | ||
030272f3 | 11608 | rm -rf conftest.dSYM |
db137867 AC |
11609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11610 | conftest$ac_exeext conftest.$ac_ext | |
11611 | LIBS=$ac_check_lib_save_LIBS | |
11612 | fi | |
030272f3 VY |
11613 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
11614 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11615 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
db137867 AC |
11616 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11617 | else | |
030272f3 VY |
11618 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
11619 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
db137867 | 11620 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
030272f3 | 11621 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11622 | else |
11623 | ac_check_lib_save_LIBS=$LIBS | |
11624 | LIBS="-lsvld $LIBS" | |
11625 | cat >conftest.$ac_ext <<_ACEOF | |
11626 | /* confdefs.h. */ | |
11627 | _ACEOF | |
11628 | cat confdefs.h >>conftest.$ac_ext | |
11629 | cat >>conftest.$ac_ext <<_ACEOF | |
11630 | /* end confdefs.h. */ | |
11631 | ||
11632 | /* Override any GCC internal prototype to avoid an error. | |
11633 | Use char because int might match the return type of a GCC | |
11634 | builtin and then its argument prototype would still apply. */ | |
11635 | #ifdef __cplusplus | |
11636 | extern "C" | |
11637 | #endif | |
11638 | char dlopen (); | |
11639 | int | |
11640 | main () | |
11641 | { | |
11642 | return dlopen (); | |
11643 | ; | |
11644 | return 0; | |
11645 | } | |
11646 | _ACEOF | |
11647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11648 | if { (ac_try="$ac_link" | |
11649 | case "(($ac_try" in | |
11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11651 | *) ac_try_echo=$ac_try;; | |
11652 | esac | |
030272f3 VY |
11653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11654 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11655 | (eval "$ac_link") 2>conftest.er1 |
11656 | ac_status=$? | |
11657 | grep -v '^ *+' conftest.er1 >conftest.err | |
11658 | rm -f conftest.er1 | |
11659 | cat conftest.err >&5 | |
030272f3 | 11660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11661 | (exit $ac_status); } && { |
11662 | test -z "$ac_c_werror_flag" || | |
11663 | test ! -s conftest.err | |
030272f3 VY |
11664 | } && test -s conftest$ac_exeext && { |
11665 | test "$cross_compiling" = yes || | |
11666 | $as_test_x conftest$ac_exeext | |
11667 | }; then | |
db137867 AC |
11668 | ac_cv_lib_svld_dlopen=yes |
11669 | else | |
030272f3 | 11670 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 |
11672 | ||
11673 | ac_cv_lib_svld_dlopen=no | |
11674 | fi | |
11675 | ||
030272f3 | 11676 | rm -rf conftest.dSYM |
db137867 AC |
11677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11678 | conftest$ac_exeext conftest.$ac_ext | |
11679 | LIBS=$ac_check_lib_save_LIBS | |
11680 | fi | |
030272f3 VY |
11681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
11682 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11683 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
db137867 AC |
11684 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11685 | else | |
030272f3 VY |
11686 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
11687 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
db137867 | 11688 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
030272f3 | 11689 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11690 | else |
11691 | ac_check_lib_save_LIBS=$LIBS | |
11692 | LIBS="-ldld $LIBS" | |
11693 | cat >conftest.$ac_ext <<_ACEOF | |
11694 | /* confdefs.h. */ | |
11695 | _ACEOF | |
11696 | cat confdefs.h >>conftest.$ac_ext | |
11697 | cat >>conftest.$ac_ext <<_ACEOF | |
11698 | /* end confdefs.h. */ | |
11699 | ||
11700 | /* Override any GCC internal prototype to avoid an error. | |
11701 | Use char because int might match the return type of a GCC | |
11702 | builtin and then its argument prototype would still apply. */ | |
11703 | #ifdef __cplusplus | |
11704 | extern "C" | |
11705 | #endif | |
11706 | char dld_link (); | |
11707 | int | |
11708 | main () | |
11709 | { | |
11710 | return dld_link (); | |
11711 | ; | |
11712 | return 0; | |
11713 | } | |
11714 | _ACEOF | |
11715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11716 | if { (ac_try="$ac_link" | |
11717 | case "(($ac_try" in | |
11718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11719 | *) ac_try_echo=$ac_try;; | |
11720 | esac | |
030272f3 VY |
11721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11722 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
11723 | (eval "$ac_link") 2>conftest.er1 |
11724 | ac_status=$? | |
11725 | grep -v '^ *+' conftest.er1 >conftest.err | |
11726 | rm -f conftest.er1 | |
11727 | cat conftest.err >&5 | |
030272f3 | 11728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11729 | (exit $ac_status); } && { |
11730 | test -z "$ac_c_werror_flag" || | |
11731 | test ! -s conftest.err | |
030272f3 VY |
11732 | } && test -s conftest$ac_exeext && { |
11733 | test "$cross_compiling" = yes || | |
11734 | $as_test_x conftest$ac_exeext | |
11735 | }; then | |
db137867 AC |
11736 | ac_cv_lib_dld_dld_link=yes |
11737 | else | |
030272f3 | 11738 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 |
11740 | ||
11741 | ac_cv_lib_dld_dld_link=no | |
11742 | fi | |
11743 | ||
030272f3 | 11744 | rm -rf conftest.dSYM |
db137867 AC |
11745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11746 | conftest$ac_exeext conftest.$ac_ext | |
11747 | LIBS=$ac_check_lib_save_LIBS | |
11748 | fi | |
030272f3 VY |
11749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
11750 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11751 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
b676ea3b | 11752 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
db137867 AC |
11753 | fi |
11754 | ||
11755 | ||
11756 | fi | |
11757 | ||
11758 | ||
11759 | fi | |
11760 | ||
11761 | ||
11762 | fi | |
11763 | ||
11764 | ||
11765 | fi | |
11766 | ||
11767 | ||
11768 | fi | |
11769 | ||
11770 | ;; | |
11771 | esac | |
11772 | ||
11773 | if test "x$lt_cv_dlopen" != xno; then | |
11774 | enable_dlopen=yes | |
11775 | else | |
11776 | enable_dlopen=no | |
11777 | fi | |
11778 | ||
11779 | case $lt_cv_dlopen in | |
11780 | dlopen) | |
11781 | save_CPPFLAGS="$CPPFLAGS" | |
11782 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11783 | ||
11784 | save_LDFLAGS="$LDFLAGS" | |
11785 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11786 | ||
11787 | save_LIBS="$LIBS" | |
11788 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11789 | ||
030272f3 VY |
11790 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11791 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
db137867 | 11792 | if test "${lt_cv_dlopen_self+set}" = set; then |
030272f3 | 11793 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11794 | else |
11795 | if test "$cross_compiling" = yes; then : | |
11796 | lt_cv_dlopen_self=cross | |
11797 | else | |
11798 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11799 | lt_status=$lt_dlunknown | |
11800 | cat > conftest.$ac_ext <<EOF | |
030272f3 | 11801 | #line 11801 "configure" |
db137867 AC |
11802 | #include "confdefs.h" |
11803 | ||
11804 | #if HAVE_DLFCN_H | |
11805 | #include <dlfcn.h> | |
11806 | #endif | |
11807 | ||
11808 | #include <stdio.h> | |
11809 | ||
11810 | #ifdef RTLD_GLOBAL | |
11811 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11812 | #else | |
11813 | # ifdef DL_GLOBAL | |
11814 | # define LT_DLGLOBAL DL_GLOBAL | |
11815 | # else | |
11816 | # define LT_DLGLOBAL 0 | |
11817 | # endif | |
11818 | #endif | |
11819 | ||
11820 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11821 | find out it does not work in some platform. */ | |
11822 | #ifndef LT_DLLAZY_OR_NOW | |
11823 | # ifdef RTLD_LAZY | |
11824 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11825 | # else | |
11826 | # ifdef DL_LAZY | |
11827 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11828 | # else | |
11829 | # ifdef RTLD_NOW | |
11830 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11831 | # else | |
11832 | # ifdef DL_NOW | |
11833 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11834 | # else | |
11835 | # define LT_DLLAZY_OR_NOW 0 | |
11836 | # endif | |
11837 | # endif | |
11838 | # endif | |
11839 | # endif | |
11840 | #endif | |
11841 | ||
11842 | #ifdef __cplusplus | |
11843 | extern "C" void exit (int); | |
11844 | #endif | |
11845 | ||
11846 | void fnord() { int i=42;} | |
11847 | int main () | |
11848 | { | |
11849 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11850 | int status = $lt_dlunknown; | |
11851 | ||
11852 | if (self) | |
11853 | { | |
11854 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11855 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11856 | /* dlclose (self); */ | |
11857 | } | |
11858 | else | |
11859 | puts (dlerror ()); | |
11860 | ||
11861 | exit (status); | |
11862 | } | |
11863 | EOF | |
11864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11865 | (eval $ac_link) 2>&5 | |
11866 | ac_status=$? | |
030272f3 | 11867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11868 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
11869 | (./conftest; exit; ) >&5 2>/dev/null | |
11870 | lt_status=$? | |
11871 | case x$lt_status in | |
11872 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11873 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11874 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11875 | esac | |
11876 | else : | |
11877 | # compilation failed | |
11878 | lt_cv_dlopen_self=no | |
11879 | fi | |
11880 | fi | |
11881 | rm -fr conftest* | |
11882 | ||
11883 | ||
11884 | fi | |
030272f3 VY |
11885 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
11886 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
db137867 AC |
11887 | |
11888 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11889 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
030272f3 VY |
11890 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
11891 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
db137867 | 11892 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
030272f3 | 11893 | $as_echo_n "(cached) " >&6 |
db137867 AC |
11894 | else |
11895 | if test "$cross_compiling" = yes; then : | |
11896 | lt_cv_dlopen_self_static=cross | |
11897 | else | |
11898 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11899 | lt_status=$lt_dlunknown | |
11900 | cat > conftest.$ac_ext <<EOF | |
030272f3 | 11901 | #line 11901 "configure" |
db137867 AC |
11902 | #include "confdefs.h" |
11903 | ||
11904 | #if HAVE_DLFCN_H | |
11905 | #include <dlfcn.h> | |
11906 | #endif | |
11907 | ||
11908 | #include <stdio.h> | |
11909 | ||
11910 | #ifdef RTLD_GLOBAL | |
11911 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11912 | #else | |
11913 | # ifdef DL_GLOBAL | |
11914 | # define LT_DLGLOBAL DL_GLOBAL | |
11915 | # else | |
11916 | # define LT_DLGLOBAL 0 | |
11917 | # endif | |
11918 | #endif | |
11919 | ||
11920 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11921 | find out it does not work in some platform. */ | |
11922 | #ifndef LT_DLLAZY_OR_NOW | |
11923 | # ifdef RTLD_LAZY | |
11924 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11925 | # else | |
11926 | # ifdef DL_LAZY | |
11927 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11928 | # else | |
11929 | # ifdef RTLD_NOW | |
11930 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11931 | # else | |
11932 | # ifdef DL_NOW | |
11933 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11934 | # else | |
11935 | # define LT_DLLAZY_OR_NOW 0 | |
11936 | # endif | |
11937 | # endif | |
11938 | # endif | |
11939 | # endif | |
11940 | #endif | |
11941 | ||
11942 | #ifdef __cplusplus | |
11943 | extern "C" void exit (int); | |
11944 | #endif | |
11945 | ||
11946 | void fnord() { int i=42;} | |
11947 | int main () | |
11948 | { | |
11949 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11950 | int status = $lt_dlunknown; | |
11951 | ||
11952 | if (self) | |
11953 | { | |
11954 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11955 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11956 | /* dlclose (self); */ | |
11957 | } | |
11958 | else | |
11959 | puts (dlerror ()); | |
11960 | ||
11961 | exit (status); | |
11962 | } | |
11963 | EOF | |
11964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11965 | (eval $ac_link) 2>&5 | |
11966 | ac_status=$? | |
030272f3 | 11967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
11968 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
11969 | (./conftest; exit; ) >&5 2>/dev/null | |
11970 | lt_status=$? | |
11971 | case x$lt_status in | |
11972 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11973 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11974 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11975 | esac | |
11976 | else : | |
11977 | # compilation failed | |
11978 | lt_cv_dlopen_self_static=no | |
11979 | fi | |
11980 | fi | |
11981 | rm -fr conftest* | |
11982 | ||
11983 | ||
11984 | fi | |
030272f3 VY |
11985 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
11986 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
db137867 AC |
11987 | fi |
11988 | ||
11989 | CPPFLAGS="$save_CPPFLAGS" | |
11990 | LDFLAGS="$save_LDFLAGS" | |
11991 | LIBS="$save_LIBS" | |
11992 | ;; | |
11993 | esac | |
11994 | ||
11995 | case $lt_cv_dlopen_self in | |
11996 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11997 | *) enable_dlopen_self=unknown ;; | |
11998 | esac | |
11999 | ||
12000 | case $lt_cv_dlopen_self_static in | |
12001 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12002 | *) enable_dlopen_self_static=unknown ;; | |
12003 | esac | |
12004 | fi | |
12005 | ||
12006 | ||
12007 | # Report which library types will actually be built | |
030272f3 VY |
12008 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
12009 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12010 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
12011 | $as_echo "$can_build_shared" >&6; } | |
db137867 | 12012 | |
030272f3 VY |
12013 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
12014 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
db137867 AC |
12015 | test "$can_build_shared" = "no" && enable_shared=no |
12016 | ||
12017 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12018 | # are all built from PIC. | |
12019 | case $host_os in | |
12020 | aix3*) | |
12021 | test "$enable_shared" = yes && enable_static=no | |
12022 | if test -n "$RANLIB"; then | |
12023 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12024 | postinstall_cmds='$RANLIB $lib' | |
12025 | fi | |
12026 | ;; | |
12027 | ||
b676ea3b | 12028 | aix[4-9]*) |
db137867 AC |
12029 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12030 | test "$enable_shared" = yes && enable_static=no | |
12031 | fi | |
12032 | ;; | |
12033 | esac | |
030272f3 VY |
12034 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
12035 | $as_echo "$enable_shared" >&6; } | |
db137867 | 12036 | |
030272f3 VY |
12037 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
12038 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
db137867 AC |
12039 | # Make sure either enable_shared or enable_static is yes. |
12040 | test "$enable_shared" = yes || enable_static=yes | |
030272f3 VY |
12041 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
12042 | $as_echo "$enable_static" >&6; } | |
db137867 AC |
12043 | |
12044 | # The else clause should only fire when bootstrapping the | |
12045 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12046 | # with your package, and you will get complaints that there are | |
12047 | # no rules to generate ltmain.sh. | |
12048 | if test -f "$ltmain"; then | |
12049 | # See if we are running on zsh, and set the options which allow our commands through | |
12050 | # without removal of \ escapes. | |
12051 | if test -n "${ZSH_VERSION+set}" ; then | |
12052 | setopt NO_GLOB_SUBST | |
12053 | fi | |
12054 | # Now quote all the things that may contain metacharacters while being | |
12055 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12056 | # variables and quote the copies for generation of the libtool script. | |
12057 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
12058 | SED SHELL STRIP \ | |
12059 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12060 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12061 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
12062 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12063 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12064 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12065 | old_postinstall_cmds old_postuninstall_cmds \ | |
12066 | compiler \ | |
12067 | CC \ | |
12068 | LD \ | |
12069 | lt_prog_compiler_wl \ | |
12070 | lt_prog_compiler_pic \ | |
12071 | lt_prog_compiler_static \ | |
12072 | lt_prog_compiler_no_builtin_flag \ | |
12073 | export_dynamic_flag_spec \ | |
12074 | thread_safe_flag_spec \ | |
12075 | whole_archive_flag_spec \ | |
12076 | enable_shared_with_static_runtimes \ | |
12077 | old_archive_cmds \ | |
12078 | old_archive_from_new_cmds \ | |
12079 | predep_objects \ | |
12080 | postdep_objects \ | |
12081 | predeps \ | |
12082 | postdeps \ | |
12083 | compiler_lib_search_path \ | |
b676ea3b | 12084 | compiler_lib_search_dirs \ |
db137867 AC |
12085 | archive_cmds \ |
12086 | archive_expsym_cmds \ | |
12087 | postinstall_cmds \ | |
12088 | postuninstall_cmds \ | |
12089 | old_archive_from_expsyms_cmds \ | |
12090 | allow_undefined_flag \ | |
12091 | no_undefined_flag \ | |
12092 | export_symbols_cmds \ | |
12093 | hardcode_libdir_flag_spec \ | |
12094 | hardcode_libdir_flag_spec_ld \ | |
12095 | hardcode_libdir_separator \ | |
12096 | hardcode_automatic \ | |
12097 | module_cmds \ | |
12098 | module_expsym_cmds \ | |
12099 | lt_cv_prog_compiler_c_o \ | |
12100 | fix_srcfile_path \ | |
12101 | exclude_expsyms \ | |
12102 | include_expsyms; do | |
12103 | ||
12104 | case $var in | |
12105 | old_archive_cmds | \ | |
12106 | old_archive_from_new_cmds | \ | |
12107 | archive_cmds | \ | |
12108 | archive_expsym_cmds | \ | |
12109 | module_cmds | \ | |
12110 | module_expsym_cmds | \ | |
12111 | old_archive_from_expsyms_cmds | \ | |
12112 | export_symbols_cmds | \ | |
12113 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12114 | postinstall_cmds | postuninstall_cmds | \ | |
12115 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
12116 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12117 | # Double-quote double-evaled strings. | |
12118 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12119 | ;; | |
12120 | *) | |
12121 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12122 | ;; | |
12123 | esac | |
12124 | done | |
12125 | ||
12126 | case $lt_echo in | |
12127 | *'\$0 --fallback-echo"') | |
12128 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12129 | ;; | |
12130 | esac | |
12131 | ||
12132 | cfgfile="${ofile}T" | |
12133 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
12134 | $rm -f "$cfgfile" | |
030272f3 VY |
12135 | { $as_echo "$as_me:$LINENO: creating $ofile" >&5 |
12136 | $as_echo "$as_me: creating $ofile" >&6;} | |
db137867 AC |
12137 | |
12138 | cat <<__EOF__ >> "$cfgfile" | |
12139 | #! $SHELL | |
12140 | ||
12141 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
12142 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
12143 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
12144 | # | |
b676ea3b | 12145 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
db137867 AC |
12146 | # Free Software Foundation, Inc. |
12147 | # | |
12148 | # This file is part of GNU Libtool: | |
12149 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
12150 | # | |
12151 | # This program is free software; you can redistribute it and/or modify | |
12152 | # it under the terms of the GNU General Public License as published by | |
12153 | # the Free Software Foundation; either version 2 of the License, or | |
12154 | # (at your option) any later version. | |
12155 | # | |
12156 | # This program is distributed in the hope that it will be useful, but | |
12157 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12158 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12159 | # General Public License for more details. | |
12160 | # | |
12161 | # You should have received a copy of the GNU General Public License | |
12162 | # along with this program; if not, write to the Free Software | |
12163 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
12164 | # | |
12165 | # As a special exception to the GNU General Public License, if you | |
12166 | # distribute this file as part of a program that contains a | |
12167 | # configuration script generated by Autoconf, you may include it under | |
12168 | # the same distribution terms that you use for the rest of that program. | |
12169 | ||
12170 | # A sed program that does not truncate output. | |
12171 | SED=$lt_SED | |
12172 | ||
12173 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
12174 | Xsed="$SED -e 1s/^X//" | |
12175 | ||
12176 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12177 | # if CDPATH is set. | |
12178 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12179 | ||
12180 | # The names of the tagged configurations supported by this script. | |
12181 | available_tags= | |
12182 | ||
12183 | # ### BEGIN LIBTOOL CONFIG | |
12184 | ||
12185 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12186 | ||
12187 | # Shell to use when invoking shell scripts. | |
12188 | SHELL=$lt_SHELL | |
12189 | ||
12190 | # Whether or not to build shared libraries. | |
12191 | build_libtool_libs=$enable_shared | |
12192 | ||
12193 | # Whether or not to build static libraries. | |
12194 | build_old_libs=$enable_static | |
12195 | ||
12196 | # Whether or not to add -lc for building shared libraries. | |
12197 | build_libtool_need_lc=$archive_cmds_need_lc | |
12198 | ||
12199 | # Whether or not to disallow shared libs when runtime libs are static | |
12200 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
12201 | ||
12202 | # Whether or not to optimize for fast installation. | |
12203 | fast_install=$enable_fast_install | |
12204 | ||
12205 | # The host system. | |
12206 | host_alias=$host_alias | |
12207 | host=$host | |
12208 | host_os=$host_os | |
12209 | ||
12210 | # The build system. | |
12211 | build_alias=$build_alias | |
12212 | build=$build | |
12213 | build_os=$build_os | |
12214 | ||
12215 | # An echo program that does not interpret backslashes. | |
12216 | echo=$lt_echo | |
12217 | ||
12218 | # The archiver. | |
12219 | AR=$lt_AR | |
12220 | AR_FLAGS=$lt_AR_FLAGS | |
12221 | ||
12222 | # A C compiler. | |
12223 | LTCC=$lt_LTCC | |
12224 | ||
12225 | # LTCC compiler flags. | |
12226 | LTCFLAGS=$lt_LTCFLAGS | |
12227 | ||
12228 | # A language-specific compiler. | |
12229 | CC=$lt_compiler | |
12230 | ||
12231 | # Is the compiler the GNU C compiler? | |
12232 | with_gcc=$GCC | |
12233 | ||
12234 | # An ERE matcher. | |
12235 | EGREP=$lt_EGREP | |
12236 | ||
12237 | # The linker used to build libraries. | |
12238 | LD=$lt_LD | |
12239 | ||
12240 | # Whether we need hard or soft links. | |
12241 | LN_S=$lt_LN_S | |
12242 | ||
12243 | # A BSD-compatible nm program. | |
12244 | NM=$lt_NM | |
12245 | ||
12246 | # A symbol stripping program | |
12247 | STRIP=$lt_STRIP | |
12248 | ||
12249 | # Used to examine libraries when file_magic_cmd begins "file" | |
12250 | MAGIC_CMD=$MAGIC_CMD | |
12251 | ||
12252 | # Used on cygwin: DLL creation program. | |
12253 | DLLTOOL="$DLLTOOL" | |
12254 | ||
12255 | # Used on cygwin: object dumper. | |
12256 | OBJDUMP="$OBJDUMP" | |
12257 | ||
12258 | # Used on cygwin: assembler. | |
12259 | AS="$AS" | |
12260 | ||
12261 | # The name of the directory that contains temporary libtool files. | |
12262 | objdir=$objdir | |
12263 | ||
12264 | # How to create reloadable object files. | |
12265 | reload_flag=$lt_reload_flag | |
12266 | reload_cmds=$lt_reload_cmds | |
12267 | ||
12268 | # How to pass a linker flag through the compiler. | |
12269 | wl=$lt_lt_prog_compiler_wl | |
12270 | ||
12271 | # Object file suffix (normally "o"). | |
12272 | objext="$ac_objext" | |
12273 | ||
12274 | # Old archive suffix (normally "a"). | |
12275 | libext="$libext" | |
12276 | ||
12277 | # Shared library suffix (normally ".so"). | |
12278 | shrext_cmds='$shrext_cmds' | |
12279 | ||
12280 | # Executable file suffix (normally ""). | |
12281 | exeext="$exeext" | |
12282 | ||
12283 | # Additional compiler flags for building library objects. | |
12284 | pic_flag=$lt_lt_prog_compiler_pic | |
12285 | pic_mode=$pic_mode | |
12286 | ||
12287 | # What is the maximum length of a command? | |
12288 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
12289 | ||
12290 | # Does compiler simultaneously support -c and -o options? | |
12291 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
12292 | ||
12293 | # Must we lock files when doing compilation? | |
12294 | need_locks=$lt_need_locks | |
12295 | ||
12296 | # Do we need the lib prefix for modules? | |
12297 | need_lib_prefix=$need_lib_prefix | |
12298 | ||
12299 | # Do we need a version for libraries? | |
12300 | need_version=$need_version | |
12301 | ||
12302 | # Whether dlopen is supported. | |
12303 | dlopen_support=$enable_dlopen | |
12304 | ||
12305 | # Whether dlopen of programs is supported. | |
12306 | dlopen_self=$enable_dlopen_self | |
12307 | ||
12308 | # Whether dlopen of statically linked programs is supported. | |
12309 | dlopen_self_static=$enable_dlopen_self_static | |
12310 | ||
12311 | # Compiler flag to prevent dynamic linking. | |
12312 | link_static_flag=$lt_lt_prog_compiler_static | |
12313 | ||
12314 | # Compiler flag to turn off builtin functions. | |
12315 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
12316 | ||
12317 | # Compiler flag to allow reflexive dlopens. | |
12318 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
12319 | ||
12320 | # Compiler flag to generate shared objects directly from archives. | |
12321 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
12322 | ||
12323 | # Compiler flag to generate thread-safe objects. | |
12324 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
12325 | ||
12326 | # Library versioning type. | |
12327 | version_type=$version_type | |
12328 | ||
12329 | # Format of library name prefix. | |
12330 | libname_spec=$lt_libname_spec | |
12331 | ||
12332 | # List of archive names. First name is the real one, the rest are links. | |
12333 | # The last name is the one that the linker finds with -lNAME. | |
12334 | library_names_spec=$lt_library_names_spec | |
12335 | ||
12336 | # The coded name of the library, if different from the real name. | |
12337 | soname_spec=$lt_soname_spec | |
12338 | ||
12339 | # Commands used to build and install an old-style archive. | |
12340 | RANLIB=$lt_RANLIB | |
12341 | old_archive_cmds=$lt_old_archive_cmds | |
12342 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12343 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12344 | ||
12345 | # Create an old-style archive from a shared archive. | |
12346 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
12347 | ||
12348 | # Create a temporary old-style archive to link instead of a shared archive. | |
12349 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
12350 | ||
12351 | # Commands used to build and install a shared archive. | |
12352 | archive_cmds=$lt_archive_cmds | |
12353 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
12354 | postinstall_cmds=$lt_postinstall_cmds | |
12355 | postuninstall_cmds=$lt_postuninstall_cmds | |
12356 | ||
12357 | # Commands used to build a loadable module (assumed same as above if empty) | |
12358 | module_cmds=$lt_module_cmds | |
12359 | module_expsym_cmds=$lt_module_expsym_cmds | |
12360 | ||
12361 | # Commands to strip libraries. | |
12362 | old_striplib=$lt_old_striplib | |
12363 | striplib=$lt_striplib | |
12364 | ||
12365 | # Dependencies to place before the objects being linked to create a | |
12366 | # shared library. | |
12367 | predep_objects=$lt_predep_objects | |
12368 | ||
12369 | # Dependencies to place after the objects being linked to create a | |
12370 | # shared library. | |
12371 | postdep_objects=$lt_postdep_objects | |
12372 | ||
12373 | # Dependencies to place before the objects being linked to create a | |
12374 | # shared library. | |
12375 | predeps=$lt_predeps | |
12376 | ||
12377 | # Dependencies to place after the objects being linked to create a | |
12378 | # shared library. | |
12379 | postdeps=$lt_postdeps | |
12380 | ||
b676ea3b AC |
12381 | # The directories searched by this compiler when creating a shared |
12382 | # library | |
12383 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
12384 | ||
db137867 AC |
12385 | # The library search path used internally by the compiler when linking |
12386 | # a shared library. | |
12387 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
12388 | ||
12389 | # Method to check whether dependent libraries are shared objects. | |
12390 | deplibs_check_method=$lt_deplibs_check_method | |
12391 | ||
12392 | # Command to use when deplibs_check_method == file_magic. | |
12393 | file_magic_cmd=$lt_file_magic_cmd | |
12394 | ||
12395 | # Flag that allows shared libraries with undefined symbols to be built. | |
12396 | allow_undefined_flag=$lt_allow_undefined_flag | |
12397 | ||
12398 | # Flag that forces no undefined symbols. | |
12399 | no_undefined_flag=$lt_no_undefined_flag | |
12400 | ||
12401 | # Commands used to finish a libtool library installation in a directory. | |
12402 | finish_cmds=$lt_finish_cmds | |
12403 | ||
12404 | # Same as above, but a single script fragment to be evaled but not shown. | |
12405 | finish_eval=$lt_finish_eval | |
12406 | ||
12407 | # Take the output of nm and produce a listing of raw symbols and C names. | |
12408 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12409 | ||
12410 | # Transform the output of nm in a proper C declaration | |
12411 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12412 | ||
12413 | # Transform the output of nm in a C name address pair | |
12414 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12415 | ||
12416 | # This is the shared library runtime path variable. | |
12417 | runpath_var=$runpath_var | |
12418 | ||
12419 | # This is the shared library path variable. | |
12420 | shlibpath_var=$shlibpath_var | |
12421 | ||
12422 | # Is shlibpath searched before the hard-coded library search path? | |
12423 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12424 | ||
12425 | # How to hardcode a shared library path into an executable. | |
12426 | hardcode_action=$hardcode_action | |
12427 | ||
12428 | # Whether we should hardcode library paths into libraries. | |
12429 | hardcode_into_libs=$hardcode_into_libs | |
12430 | ||
12431 | # Flag to hardcode \$libdir into a binary during linking. | |
12432 | # This must work even if \$libdir does not exist. | |
12433 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
12434 | ||
12435 | # If ld is used when linking, flag to hardcode \$libdir into | |
12436 | # a binary during linking. This must work even if \$libdir does | |
12437 | # not exist. | |
12438 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
12439 | ||
12440 | # Whether we need a single -rpath flag with a separated argument. | |
12441 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
12442 | ||
12443 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
12444 | # resulting binary. | |
12445 | hardcode_direct=$hardcode_direct | |
12446 | ||
12447 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
12448 | # resulting binary. | |
12449 | hardcode_minus_L=$hardcode_minus_L | |
12450 | ||
12451 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
12452 | # the resulting binary. | |
12453 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
12454 | ||
12455 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
12456 | # and all subsequent libraries and executables linked against it. | |
12457 | hardcode_automatic=$hardcode_automatic | |
12458 | ||
12459 | # Variables whose values should be saved in libtool wrapper scripts and | |
12460 | # restored at relink time. | |
12461 | variables_saved_for_relink="$variables_saved_for_relink" | |
12462 | ||
12463 | # Whether libtool must link a program against all its dependency libraries. | |
12464 | link_all_deplibs=$link_all_deplibs | |
12465 | ||
12466 | # Compile-time system search path for libraries | |
12467 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12468 | ||
12469 | # Run-time system search path for libraries | |
12470 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12471 | ||
12472 | # Fix the shell variable \$srcfile for the compiler. | |
12473 | fix_srcfile_path=$lt_fix_srcfile_path | |
12474 | ||
12475 | # Set to yes if exported symbols are required. | |
12476 | always_export_symbols=$always_export_symbols | |
12477 | ||
12478 | # The commands to list exported symbols. | |
12479 | export_symbols_cmds=$lt_export_symbols_cmds | |
12480 | ||
12481 | # The commands to extract the exported symbol list from a shared archive. | |
12482 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12483 | ||
12484 | # Symbols that should not be listed in the preloaded symbols. | |
12485 | exclude_expsyms=$lt_exclude_expsyms | |
12486 | ||
12487 | # Symbols that must always be exported. | |
12488 | include_expsyms=$lt_include_expsyms | |
12489 | ||
12490 | # ### END LIBTOOL CONFIG | |
12491 | ||
12492 | __EOF__ | |
12493 | ||
12494 | ||
12495 | case $host_os in | |
12496 | aix3*) | |
12497 | cat <<\EOF >> "$cfgfile" | |
12498 | ||
12499 | # AIX sometimes has problems with the GCC collect2 program. For some | |
12500 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
12501 | # vanish in a puff of smoke. | |
12502 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
12503 | COLLECT_NAMES= | |
12504 | export COLLECT_NAMES | |
12505 | fi | |
12506 | EOF | |
12507 | ;; | |
12508 | esac | |
12509 | ||
12510 | # We use sed instead of cat because bash on DJGPP gets confused if | |
12511 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
12512 | # text mode, it properly converts lines to CR/LF. This bash problem | |
12513 | # is reportedly fixed, but why not run on old versions too? | |
12514 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
12515 | ||
12516 | mv -f "$cfgfile" "$ofile" || \ | |
12517 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
12518 | chmod +x "$ofile" | |
12519 | ||
12520 | else | |
12521 | # If there is no Makefile yet, we rely on a make rule to execute | |
12522 | # `config.status --recheck' to rerun these tests and create the | |
12523 | # libtool script then. | |
12524 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
12525 | if test -f "$ltmain_in"; then | |
12526 | test -f Makefile && make "$ltmain" | |
12527 | fi | |
12528 | fi | |
12529 | ||
12530 | ||
12531 | ac_ext=c | |
12532 | ac_cpp='$CPP $CPPFLAGS' | |
12533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12536 | ||
12537 | CC="$lt_save_CC" | |
12538 | ||
12539 | ||
12540 | # Check whether --with-tags was given. | |
12541 | if test "${with_tags+set}" = set; then | |
12542 | withval=$with_tags; tagnames="$withval" | |
12543 | fi | |
12544 | ||
12545 | ||
12546 | if test -f "$ltmain" && test -n "$tagnames"; then | |
12547 | if test ! -f "${ofile}"; then | |
030272f3 VY |
12548 | { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
12549 | $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
db137867 AC |
12550 | fi |
12551 | ||
12552 | if test -z "$LTCC"; then | |
12553 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
12554 | if test -z "$LTCC"; then | |
030272f3 VY |
12555 | { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
12556 | $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
db137867 | 12557 | else |
030272f3 VY |
12558 | { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
12559 | $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
db137867 AC |
12560 | fi |
12561 | fi | |
12562 | if test -z "$LTCFLAGS"; then | |
12563 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
12564 | fi | |
12565 | ||
12566 | # Extract list of available tagged configurations in $ofile. | |
12567 | # Note that this assumes the entire list is on one line. | |
12568 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
12569 | ||
12570 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
12571 | for tagname in $tagnames; do | |
12572 | IFS="$lt_save_ifs" | |
12573 | # Check whether tagname contains only valid characters | |
12574 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
12575 | "") ;; | |
030272f3 VY |
12576 | *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
12577 | $as_echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
db137867 AC |
12578 | { (exit 1); exit 1; }; } |
12579 | ;; | |
12580 | esac | |
12581 | ||
12582 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
12583 | then | |
030272f3 VY |
12584 | { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
12585 | $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
db137867 AC |
12586 | { (exit 1); exit 1; }; } |
12587 | fi | |
12588 | ||
12589 | # Update the list of available tags. | |
12590 | if test -n "$tagname"; then | |
12591 | echo appending configuration tag \"$tagname\" to $ofile | |
12592 | ||
12593 | case $tagname in | |
12594 | CXX) | |
12595 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12596 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12597 | (test "X$CXX" != "Xg++"))) ; then | |
12598 | ac_ext=cpp | |
12599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12603 | ||
12604 | ||
12605 | ||
12606 | ||
12607 | archive_cmds_need_lc_CXX=no | |
12608 | allow_undefined_flag_CXX= | |
12609 | always_export_symbols_CXX=no | |
12610 | archive_expsym_cmds_CXX= | |
12611 | export_dynamic_flag_spec_CXX= | |
12612 | hardcode_direct_CXX=no | |
12613 | hardcode_libdir_flag_spec_CXX= | |
12614 | hardcode_libdir_flag_spec_ld_CXX= | |
12615 | hardcode_libdir_separator_CXX= | |
12616 | hardcode_minus_L_CXX=no | |
12617 | hardcode_shlibpath_var_CXX=unsupported | |
12618 | hardcode_automatic_CXX=no | |
12619 | module_cmds_CXX= | |
12620 | module_expsym_cmds_CXX= | |
12621 | link_all_deplibs_CXX=unknown | |
12622 | old_archive_cmds_CXX=$old_archive_cmds | |
12623 | no_undefined_flag_CXX= | |
12624 | whole_archive_flag_spec_CXX= | |
12625 | enable_shared_with_static_runtimes_CXX=no | |
12626 | ||
12627 | # Dependencies to place before and after the object being linked: | |
12628 | predep_objects_CXX= | |
12629 | postdep_objects_CXX= | |
12630 | predeps_CXX= | |
12631 | postdeps_CXX= | |
12632 | compiler_lib_search_path_CXX= | |
b676ea3b | 12633 | compiler_lib_search_dirs_CXX= |
db137867 AC |
12634 | |
12635 | # Source file extension for C++ test sources. | |
12636 | ac_ext=cpp | |
12637 | ||
12638 | # Object file extension for compiled C++ test sources. | |
12639 | objext=o | |
12640 | objext_CXX=$objext | |
12641 | ||
12642 | # Code to be used in simple compile tests | |
12643 | lt_simple_compile_test_code="int some_variable = 0;" | |
12644 | ||
12645 | # Code to be used in simple link tests | |
12646 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12647 | ||
12648 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12649 | ||
12650 | # If no C compiler was specified, use CC. | |
12651 | LTCC=${LTCC-"$CC"} | |
12652 | ||
12653 | # If no C compiler flags were specified, use CFLAGS. | |
12654 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12655 | ||
12656 | # Allow CC to be a program name with arguments. | |
12657 | compiler=$CC | |
12658 | ||
12659 | ||
12660 | # save warnings/boilerplate of simple test code | |
12661 | ac_outfile=conftest.$ac_objext | |
12662 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12663 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12664 | _lt_compiler_boilerplate=`cat conftest.err` | |
12665 | $rm conftest* | |
12666 | ||
12667 | ac_outfile=conftest.$ac_objext | |
12668 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12669 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12670 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 12671 | $rm -r conftest* |
db137867 AC |
12672 | |
12673 | ||
12674 | # Allow CC to be a program name with arguments. | |
12675 | lt_save_CC=$CC | |
12676 | lt_save_LD=$LD | |
12677 | lt_save_GCC=$GCC | |
12678 | GCC=$GXX | |
12679 | lt_save_with_gnu_ld=$with_gnu_ld | |
12680 | lt_save_path_LD=$lt_cv_path_LD | |
12681 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12682 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12683 | else | |
12684 | $as_unset lt_cv_prog_gnu_ld | |
12685 | fi | |
12686 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12687 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12688 | else | |
12689 | $as_unset lt_cv_path_LD | |
12690 | fi | |
12691 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12692 | CC=${CXX-"c++"} | |
12693 | compiler=$CC | |
12694 | compiler_CXX=$CC | |
12695 | for cc_temp in $compiler""; do | |
12696 | case $cc_temp in | |
12697 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12698 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12699 | \-*) ;; | |
12700 | *) break;; | |
12701 | esac | |
12702 | done | |
12703 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12704 | ||
12705 | ||
12706 | # We don't want -fno-exception wen compiling C++ code, so set the | |
12707 | # no_builtin_flag separately | |
12708 | if test "$GXX" = yes; then | |
12709 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12710 | else | |
12711 | lt_prog_compiler_no_builtin_flag_CXX= | |
12712 | fi | |
12713 | ||
12714 | if test "$GXX" = yes; then | |
12715 | # Set up default GNU C++ configuration | |
12716 | ||
12717 | ||
12718 | # Check whether --with-gnu-ld was given. | |
12719 | if test "${with_gnu_ld+set}" = set; then | |
12720 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12721 | else | |
12722 | with_gnu_ld=no | |
12723 | fi | |
12724 | ||
12725 | ac_prog=ld | |
12726 | if test "$GCC" = yes; then | |
12727 | # Check if gcc -print-prog-name=ld gives a path. | |
030272f3 VY |
12728 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
12729 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
db137867 AC |
12730 | case $host in |
12731 | *-*-mingw*) | |
12732 | # gcc leaves a trailing carriage return which upsets mingw | |
12733 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12734 | *) | |
12735 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12736 | esac | |
12737 | case $ac_prog in | |
12738 | # Accept absolute paths. | |
12739 | [\\/]* | ?:[\\/]*) | |
12740 | re_direlt='/[^/][^/]*/\.\./' | |
12741 | # Canonicalize the pathname of ld | |
12742 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
12743 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
12744 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
12745 | done | |
12746 | test -z "$LD" && LD="$ac_prog" | |
12747 | ;; | |
12748 | "") | |
12749 | # If it fails, then pretend we aren't using GCC. | |
12750 | ac_prog=ld | |
12751 | ;; | |
12752 | *) | |
12753 | # If it is relative, then search for the first ld in PATH. | |
12754 | with_gnu_ld=unknown | |
12755 | ;; | |
12756 | esac | |
12757 | elif test "$with_gnu_ld" = yes; then | |
030272f3 VY |
12758 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
12759 | $as_echo_n "checking for GNU ld... " >&6; } | |
db137867 | 12760 | else |
030272f3 VY |
12761 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
12762 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
db137867 AC |
12763 | fi |
12764 | if test "${lt_cv_path_LD+set}" = set; then | |
030272f3 | 12765 | $as_echo_n "(cached) " >&6 |
db137867 AC |
12766 | else |
12767 | if test -z "$LD"; then | |
12768 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12769 | for ac_dir in $PATH; do | |
12770 | IFS="$lt_save_ifs" | |
12771 | test -z "$ac_dir" && ac_dir=. | |
12772 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12773 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12774 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12775 | # but apparently some variants of GNU ld only accept -v. | |
12776 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12777 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12778 | *GNU* | *'with BFD'*) | |
12779 | test "$with_gnu_ld" != no && break | |
12780 | ;; | |
12781 | *) | |
12782 | test "$with_gnu_ld" != yes && break | |
12783 | ;; | |
12784 | esac | |
12785 | fi | |
12786 | done | |
12787 | IFS="$lt_save_ifs" | |
12788 | else | |
12789 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12790 | fi | |
12791 | fi | |
12792 | ||
12793 | LD="$lt_cv_path_LD" | |
12794 | if test -n "$LD"; then | |
030272f3 VY |
12795 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
12796 | $as_echo "$LD" >&6; } | |
db137867 | 12797 | else |
030272f3 VY |
12798 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12799 | $as_echo "no" >&6; } | |
db137867 | 12800 | fi |
030272f3 VY |
12801 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
12802 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
db137867 | 12803 | { (exit 1); exit 1; }; } |
030272f3 VY |
12804 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
12805 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
db137867 | 12806 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
030272f3 | 12807 | $as_echo_n "(cached) " >&6 |
db137867 AC |
12808 | else |
12809 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12810 | case `$LD -v 2>&1 </dev/null` in | |
12811 | *GNU* | *'with BFD'*) | |
12812 | lt_cv_prog_gnu_ld=yes | |
12813 | ;; | |
12814 | *) | |
12815 | lt_cv_prog_gnu_ld=no | |
12816 | ;; | |
12817 | esac | |
12818 | fi | |
030272f3 VY |
12819 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
12820 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
db137867 AC |
12821 | with_gnu_ld=$lt_cv_prog_gnu_ld |
12822 | ||
12823 | ||
12824 | ||
12825 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12826 | # archiving commands below assume that GNU ld is being used. | |
12827 | if test "$with_gnu_ld" = yes; then | |
12828 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12829 | 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' | |
12830 | ||
12831 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12832 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12833 | ||
12834 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12835 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12836 | # investigate it a little bit more. (MM) | |
12837 | wlarc='${wl}' | |
12838 | ||
12839 | # ancient GNU ld didn't support --whole-archive et. al. | |
12840 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
12841 | grep 'no-whole-archive' > /dev/null; then | |
12842 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12843 | else | |
12844 | whole_archive_flag_spec_CXX= | |
12845 | fi | |
12846 | else | |
12847 | with_gnu_ld=no | |
12848 | wlarc= | |
12849 | ||
12850 | # A generic and very simple default shared library creation | |
12851 | # command for GNU C++ for the case where it uses the native | |
12852 | # linker, instead of GNU ld. If possible, this setting should | |
12853 | # overridden to take advantage of the native linker features on | |
12854 | # the platform it is being used on. | |
12855 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12856 | fi | |
12857 | ||
12858 | # Commands to make compiler produce verbose output that lists | |
12859 | # what "hidden" libraries, object files and flags are used when | |
12860 | # linking a shared library. | |
12861 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
12862 | ||
12863 | else | |
12864 | GXX=no | |
12865 | with_gnu_ld=no | |
12866 | wlarc= | |
12867 | fi | |
12868 | ||
12869 | # PORTME: fill in a description of your system's C++ link characteristics | |
030272f3 VY |
12870 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12871 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
db137867 AC |
12872 | ld_shlibs_CXX=yes |
12873 | case $host_os in | |
12874 | aix3*) | |
12875 | # FIXME: insert proper C++ library support | |
12876 | ld_shlibs_CXX=no | |
12877 | ;; | |
b676ea3b | 12878 | aix[4-9]*) |
db137867 AC |
12879 | if test "$host_cpu" = ia64; then |
12880 | # On IA64, the linker does run time linking by default, so we don't | |
12881 | # have to do anything special. | |
12882 | aix_use_runtimelinking=no | |
12883 | exp_sym_flag='-Bexport' | |
12884 | no_entry_flag="" | |
12885 | else | |
12886 | aix_use_runtimelinking=no | |
12887 | ||
12888 | # Test if we are trying to use run time linking or normal | |
12889 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12890 | # need to do runtime linking. | |
b676ea3b | 12891 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
12892 | for ld_flag in $LDFLAGS; do |
12893 | case $ld_flag in | |
12894 | *-brtl*) | |
12895 | aix_use_runtimelinking=yes | |
12896 | break | |
12897 | ;; | |
12898 | esac | |
12899 | done | |
12900 | ;; | |
12901 | esac | |
12902 | ||
12903 | exp_sym_flag='-bexport' | |
12904 | no_entry_flag='-bnoentry' | |
12905 | fi | |
12906 | ||
12907 | # When large executables or shared objects are built, AIX ld can | |
12908 | # have problems creating the table of contents. If linking a library | |
12909 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12910 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12911 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12912 | ||
12913 | archive_cmds_CXX='' | |
12914 | hardcode_direct_CXX=yes | |
12915 | hardcode_libdir_separator_CXX=':' | |
12916 | link_all_deplibs_CXX=yes | |
12917 | ||
12918 | if test "$GXX" = yes; then | |
12919 | case $host_os in aix4.[012]|aix4.[012].*) | |
12920 | # We only want to do this on AIX 4.2 and lower, the check | |
12921 | # below for broken collect2 doesn't work under 4.3+ | |
12922 | collect2name=`${CC} -print-prog-name=collect2` | |
12923 | if test -f "$collect2name" && \ | |
12924 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12925 | then | |
12926 | # We have reworked collect2 | |
12927 | : | |
12928 | else | |
12929 | # We have old collect2 | |
12930 | hardcode_direct_CXX=unsupported | |
12931 | # It fails to find uninstalled libraries when the uninstalled | |
12932 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12933 | # to unsupported forces relinking | |
12934 | hardcode_minus_L_CXX=yes | |
12935 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12936 | hardcode_libdir_separator_CXX= | |
12937 | fi | |
12938 | ;; | |
12939 | esac | |
12940 | shared_flag='-shared' | |
12941 | if test "$aix_use_runtimelinking" = yes; then | |
12942 | shared_flag="$shared_flag "'${wl}-G' | |
12943 | fi | |
12944 | else | |
12945 | # not using gcc | |
12946 | if test "$host_cpu" = ia64; then | |
12947 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12948 | # chokes on -Wl,-G. The following line is correct: | |
12949 | shared_flag='-G' | |
12950 | else | |
12951 | if test "$aix_use_runtimelinking" = yes; then | |
12952 | shared_flag='${wl}-G' | |
12953 | else | |
12954 | shared_flag='${wl}-bM:SRE' | |
12955 | fi | |
12956 | fi | |
12957 | fi | |
12958 | ||
12959 | # It seems that -bexpall does not export symbols beginning with | |
12960 | # underscore (_), so it is better to generate a list of symbols to export. | |
12961 | always_export_symbols_CXX=yes | |
12962 | if test "$aix_use_runtimelinking" = yes; then | |
12963 | # Warning - without using the other runtime loading flags (-brtl), | |
12964 | # -berok will link without error, but may produce a broken library. | |
12965 | allow_undefined_flag_CXX='-berok' | |
12966 | # Determine the default libpath from the value encoded in an empty executable. | |
12967 | cat >conftest.$ac_ext <<_ACEOF | |
12968 | /* confdefs.h. */ | |
12969 | _ACEOF | |
12970 | cat confdefs.h >>conftest.$ac_ext | |
12971 | cat >>conftest.$ac_ext <<_ACEOF | |
12972 | /* end confdefs.h. */ | |
12973 | ||
12974 | int | |
12975 | main () | |
12976 | { | |
12977 | ||
12978 | ; | |
12979 | return 0; | |
12980 | } | |
12981 | _ACEOF | |
12982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12983 | if { (ac_try="$ac_link" | |
12984 | case "(($ac_try" in | |
12985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12986 | *) ac_try_echo=$ac_try;; | |
12987 | esac | |
030272f3 VY |
12988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12989 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
12990 | (eval "$ac_link") 2>conftest.er1 |
12991 | ac_status=$? | |
12992 | grep -v '^ *+' conftest.er1 >conftest.err | |
12993 | rm -f conftest.er1 | |
12994 | cat conftest.err >&5 | |
030272f3 | 12995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
12996 | (exit $ac_status); } && { |
12997 | test -z "$ac_cxx_werror_flag" || | |
12998 | test ! -s conftest.err | |
030272f3 VY |
12999 | } && test -s conftest$ac_exeext && { |
13000 | test "$cross_compiling" = yes || | |
13001 | $as_test_x conftest$ac_exeext | |
13002 | }; then | |
db137867 AC |
13003 | |
13004 | lt_aix_libpath_sed=' | |
13005 | /Import File Strings/,/^$/ { | |
13006 | /^0/ { | |
13007 | s/^0 *\(.*\)$/\1/ | |
13008 | p | |
13009 | } | |
13010 | }' | |
13011 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13012 | # Check for a 64-bit object if we didn't find anything. | |
13013 | if test -z "$aix_libpath"; then | |
13014 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13015 | fi | |
13016 | else | |
030272f3 | 13017 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
13018 | sed 's/^/| /' conftest.$ac_ext >&5 |
13019 | ||
13020 | ||
13021 | fi | |
13022 | ||
030272f3 | 13023 | rm -rf conftest.dSYM |
db137867 AC |
13024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13025 | conftest$ac_exeext conftest.$ac_ext | |
13026 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13027 | ||
13028 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13029 | ||
13030 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13031 | else | |
13032 | if test "$host_cpu" = ia64; then | |
13033 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13034 | allow_undefined_flag_CXX="-z nodefs" | |
13035 | 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" | |
13036 | else | |
13037 | # Determine the default libpath from the value encoded in an empty executable. | |
13038 | cat >conftest.$ac_ext <<_ACEOF | |
13039 | /* confdefs.h. */ | |
13040 | _ACEOF | |
13041 | cat confdefs.h >>conftest.$ac_ext | |
13042 | cat >>conftest.$ac_ext <<_ACEOF | |
13043 | /* end confdefs.h. */ | |
13044 | ||
13045 | int | |
13046 | main () | |
13047 | { | |
13048 | ||
13049 | ; | |
13050 | return 0; | |
13051 | } | |
13052 | _ACEOF | |
13053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13054 | if { (ac_try="$ac_link" | |
13055 | case "(($ac_try" in | |
13056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13057 | *) ac_try_echo=$ac_try;; | |
13058 | esac | |
030272f3 VY |
13059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13060 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
13061 | (eval "$ac_link") 2>conftest.er1 |
13062 | ac_status=$? | |
13063 | grep -v '^ *+' conftest.er1 >conftest.err | |
13064 | rm -f conftest.er1 | |
13065 | cat conftest.err >&5 | |
030272f3 | 13066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
13067 | (exit $ac_status); } && { |
13068 | test -z "$ac_cxx_werror_flag" || | |
13069 | test ! -s conftest.err | |
030272f3 VY |
13070 | } && test -s conftest$ac_exeext && { |
13071 | test "$cross_compiling" = yes || | |
13072 | $as_test_x conftest$ac_exeext | |
13073 | }; then | |
db137867 AC |
13074 | |
13075 | lt_aix_libpath_sed=' | |
13076 | /Import File Strings/,/^$/ { | |
13077 | /^0/ { | |
13078 | s/^0 *\(.*\)$/\1/ | |
13079 | p | |
13080 | } | |
13081 | }' | |
13082 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13083 | # Check for a 64-bit object if we didn't find anything. | |
13084 | if test -z "$aix_libpath"; then | |
13085 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13086 | fi | |
13087 | else | |
030272f3 | 13088 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
13089 | sed 's/^/| /' conftest.$ac_ext >&5 |
13090 | ||
13091 | ||
13092 | fi | |
13093 | ||
030272f3 | 13094 | rm -rf conftest.dSYM |
db137867 AC |
13095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13096 | conftest$ac_exeext conftest.$ac_ext | |
13097 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13098 | ||
13099 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13100 | # Warning - without using the other run time loading flags, | |
13101 | # -berok will link without error, but may produce a broken library. | |
13102 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13103 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13104 | # Exported symbols can be pulled into shared objects from archives | |
13105 | whole_archive_flag_spec_CXX='$convenience' | |
13106 | archive_cmds_need_lc_CXX=yes | |
13107 | # This is similar to how AIX traditionally builds its shared libraries. | |
13108 | 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' | |
13109 | fi | |
13110 | fi | |
13111 | ;; | |
13112 | ||
13113 | beos*) | |
13114 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13115 | allow_undefined_flag_CXX=unsupported | |
13116 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13117 | # support --undefined. This deserves some investigation. FIXME | |
13118 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13119 | else | |
13120 | ld_shlibs_CXX=no | |
13121 | fi | |
13122 | ;; | |
13123 | ||
13124 | chorus*) | |
13125 | case $cc_basename in | |
13126 | *) | |
13127 | # FIXME: insert proper C++ library support | |
13128 | ld_shlibs_CXX=no | |
13129 | ;; | |
13130 | esac | |
13131 | ;; | |
13132 | ||
13133 | cygwin* | mingw* | pw32*) | |
13134 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13135 | # as there is no search path for DLLs. | |
13136 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13137 | allow_undefined_flag_CXX=unsupported | |
13138 | always_export_symbols_CXX=no | |
13139 | enable_shared_with_static_runtimes_CXX=yes | |
13140 | ||
13141 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13142 | 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' | |
13143 | # If the export-symbols file already is a .def file (1st line | |
13144 | # is EXPORTS), use it as is; otherwise, prepend... | |
13145 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13146 | cp $export_symbols $output_objdir/$soname.def; | |
13147 | else | |
13148 | echo EXPORTS > $output_objdir/$soname.def; | |
13149 | cat $export_symbols >> $output_objdir/$soname.def; | |
13150 | fi~ | |
13151 | $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' | |
13152 | else | |
13153 | ld_shlibs_CXX=no | |
13154 | fi | |
13155 | ;; | |
13156 | darwin* | rhapsody*) | |
db137867 AC |
13157 | archive_cmds_need_lc_CXX=no |
13158 | hardcode_direct_CXX=no | |
13159 | hardcode_automatic_CXX=yes | |
13160 | hardcode_shlibpath_var_CXX=unsupported | |
13161 | whole_archive_flag_spec_CXX='' | |
13162 | link_all_deplibs_CXX=yes | |
b676ea3b AC |
13163 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
13164 | if test "$GXX" = yes ; then | |
db137867 | 13165 | output_verbose_link_cmd='echo' |
b676ea3b AC |
13166 | 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}" |
13167 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13168 | 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}" | |
13169 | 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}" | |
13170 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13171 | 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}" | |
13172 | 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}" | |
db137867 | 13173 | fi |
db137867 AC |
13174 | else |
13175 | case $cc_basename in | |
13176 | xlc*) | |
13177 | output_verbose_link_cmd='echo' | |
13178 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
13179 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
13180 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
13181 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13182 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13183 | ;; | |
13184 | *) | |
13185 | ld_shlibs_CXX=no | |
13186 | ;; | |
13187 | esac | |
13188 | fi | |
13189 | ;; | |
13190 | ||
13191 | dgux*) | |
13192 | case $cc_basename in | |
13193 | ec++*) | |
13194 | # FIXME: insert proper C++ library support | |
13195 | ld_shlibs_CXX=no | |
13196 | ;; | |
13197 | ghcx*) | |
13198 | # Green Hills C++ Compiler | |
13199 | # FIXME: insert proper C++ library support | |
13200 | ld_shlibs_CXX=no | |
13201 | ;; | |
13202 | *) | |
13203 | # FIXME: insert proper C++ library support | |
13204 | ld_shlibs_CXX=no | |
13205 | ;; | |
13206 | esac | |
13207 | ;; | |
13208 | freebsd[12]*) | |
13209 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
13210 | ld_shlibs_CXX=no | |
13211 | ;; | |
13212 | freebsd-elf*) | |
13213 | archive_cmds_need_lc_CXX=no | |
13214 | ;; | |
13215 | freebsd* | dragonfly*) | |
13216 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13217 | # conventions | |
13218 | ld_shlibs_CXX=yes | |
13219 | ;; | |
13220 | gnu*) | |
13221 | ;; | |
13222 | hpux9*) | |
13223 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13224 | hardcode_libdir_separator_CXX=: | |
13225 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13226 | hardcode_direct_CXX=yes | |
13227 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13228 | # but as the default | |
13229 | # location of the library. | |
13230 | ||
13231 | case $cc_basename in | |
13232 | CC*) | |
13233 | # FIXME: insert proper C++ library support | |
13234 | ld_shlibs_CXX=no | |
13235 | ;; | |
13236 | aCC*) | |
13237 | 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' | |
13238 | # Commands to make compiler produce verbose output that lists | |
13239 | # what "hidden" libraries, object files and flags are used when | |
13240 | # linking a shared library. | |
13241 | # | |
13242 | # There doesn't appear to be a way to prevent this compiler from | |
13243 | # explicitly linking system object files so we need to strip them | |
13244 | # from the output so that they don't get included in the library | |
13245 | # dependencies. | |
13246 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13247 | ;; | |
13248 | *) | |
13249 | if test "$GXX" = yes; then | |
13250 | 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' | |
13251 | else | |
13252 | # FIXME: insert proper C++ library support | |
13253 | ld_shlibs_CXX=no | |
13254 | fi | |
13255 | ;; | |
13256 | esac | |
13257 | ;; | |
13258 | hpux10*|hpux11*) | |
13259 | if test $with_gnu_ld = no; then | |
13260 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13261 | hardcode_libdir_separator_CXX=: | |
13262 | ||
13263 | case $host_cpu in | |
13264 | hppa*64*|ia64*) ;; | |
13265 | *) | |
13266 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13267 | ;; | |
13268 | esac | |
13269 | fi | |
13270 | case $host_cpu in | |
13271 | hppa*64*|ia64*) | |
13272 | hardcode_direct_CXX=no | |
13273 | hardcode_shlibpath_var_CXX=no | |
13274 | ;; | |
13275 | *) | |
13276 | hardcode_direct_CXX=yes | |
13277 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13278 | # but as the default | |
13279 | # location of the library. | |
13280 | ;; | |
13281 | esac | |
13282 | ||
13283 | case $cc_basename in | |
13284 | CC*) | |
13285 | # FIXME: insert proper C++ library support | |
13286 | ld_shlibs_CXX=no | |
13287 | ;; | |
13288 | aCC*) | |
13289 | case $host_cpu in | |
13290 | hppa*64*) | |
13291 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13292 | ;; | |
13293 | ia64*) | |
13294 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13295 | ;; | |
13296 | *) | |
13297 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13298 | ;; | |
13299 | esac | |
13300 | # Commands to make compiler produce verbose output that lists | |
13301 | # what "hidden" libraries, object files and flags are used when | |
13302 | # linking a shared library. | |
13303 | # | |
13304 | # There doesn't appear to be a way to prevent this compiler from | |
13305 | # explicitly linking system object files so we need to strip them | |
13306 | # from the output so that they don't get included in the library | |
13307 | # dependencies. | |
13308 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13309 | ;; | |
13310 | *) | |
13311 | if test "$GXX" = yes; then | |
13312 | if test $with_gnu_ld = no; then | |
13313 | case $host_cpu in | |
13314 | hppa*64*) | |
13315 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13316 | ;; | |
13317 | ia64*) | |
13318 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13319 | ;; | |
13320 | *) | |
13321 | 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' | |
13322 | ;; | |
13323 | esac | |
13324 | fi | |
13325 | else | |
13326 | # FIXME: insert proper C++ library support | |
13327 | ld_shlibs_CXX=no | |
13328 | fi | |
13329 | ;; | |
13330 | esac | |
13331 | ;; | |
13332 | interix[3-9]*) | |
13333 | hardcode_direct_CXX=no | |
13334 | hardcode_shlibpath_var_CXX=no | |
13335 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13336 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13337 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13338 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13339 | # default) and relocated if they conflict, which is a slow very memory | |
13340 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13341 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13342 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13343 | 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' | |
13344 | 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' | |
13345 | ;; | |
13346 | irix5* | irix6*) | |
13347 | case $cc_basename in | |
13348 | CC*) | |
13349 | # SGI C++ | |
13350 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
13351 | ||
13352 | # Archives containing C++ object files must be created using | |
13353 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13354 | # necessary to make sure instantiated templates are included | |
13355 | # in the archive. | |
13356 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13357 | ;; | |
13358 | *) | |
13359 | if test "$GXX" = yes; then | |
13360 | if test "$with_gnu_ld" = no; then | |
13361 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13362 | else | |
13363 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
13364 | fi | |
13365 | fi | |
13366 | link_all_deplibs_CXX=yes | |
13367 | ;; | |
13368 | esac | |
13369 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13370 | hardcode_libdir_separator_CXX=: | |
13371 | ;; | |
13372 | linux* | k*bsd*-gnu) | |
13373 | case $cc_basename in | |
13374 | KCC*) | |
13375 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13376 | ||
13377 | # KCC will only create a shared library if the output file | |
13378 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13379 | # to its proper name (with version) after linking. | |
13380 | 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' | |
13381 | 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' | |
13382 | # Commands to make compiler produce verbose output that lists | |
13383 | # what "hidden" libraries, object files and flags are used when | |
13384 | # linking a shared library. | |
13385 | # | |
13386 | # There doesn't appear to be a way to prevent this compiler from | |
13387 | # explicitly linking system object files so we need to strip them | |
13388 | # from the output so that they don't get included in the library | |
13389 | # dependencies. | |
13390 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13391 | ||
13392 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
13393 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13394 | ||
13395 | # Archives containing C++ object files must be created using | |
13396 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13397 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13398 | ;; | |
13399 | icpc*) | |
13400 | # Intel C++ | |
13401 | with_gnu_ld=yes | |
13402 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13403 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13404 | # earlier do not add the objects themselves. | |
13405 | case `$CC -V 2>&1` in | |
13406 | *"Version 7."*) | |
13407 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13408 | 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' | |
13409 | ;; | |
13410 | *) # Version 8.0 or newer | |
13411 | tmp_idyn= | |
13412 | case $host_cpu in | |
13413 | ia64*) tmp_idyn=' -i_dynamic';; | |
13414 | esac | |
13415 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13416 | 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' | |
13417 | ;; | |
13418 | esac | |
13419 | archive_cmds_need_lc_CXX=no | |
13420 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13421 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13422 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13423 | ;; | |
b676ea3b | 13424 | pgCC* | pgcpp*) |
db137867 AC |
13425 | # Portland Group C++ compiler |
13426 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13427 | 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' | |
13428 | ||
13429 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13430 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13431 | 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' | |
13432 | ;; | |
13433 | cxx*) | |
13434 | # Compaq C++ | |
13435 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13436 | 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' | |
13437 | ||
13438 | runpath_var=LD_RUN_PATH | |
13439 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13440 | hardcode_libdir_separator_CXX=: | |
13441 | ||
13442 | # Commands to make compiler produce verbose output that lists | |
13443 | # what "hidden" libraries, object files and flags are used when | |
13444 | # linking a shared library. | |
13445 | # | |
13446 | # There doesn't appear to be a way to prevent this compiler from | |
13447 | # explicitly linking system object files so we need to strip them | |
13448 | # from the output so that they don't get included in the library | |
13449 | # dependencies. | |
13450 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13451 | ;; | |
13452 | *) | |
13453 | case `$CC -V 2>&1 | sed 5q` in | |
13454 | *Sun\ C*) | |
13455 | # Sun C++ 5.9 | |
13456 | no_undefined_flag_CXX=' -zdefs' | |
13457 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13458 | 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' | |
13459 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13460 | 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' | |
13461 | ||
13462 | # Not sure whether something based on | |
13463 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13464 | # would be better. | |
13465 | output_verbose_link_cmd='echo' | |
13466 | ||
13467 | # Archives containing C++ object files must be created using | |
13468 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13469 | # necessary to make sure instantiated templates are included | |
13470 | # in the archive. | |
13471 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13472 | ;; | |
13473 | esac | |
13474 | ;; | |
13475 | esac | |
13476 | ;; | |
13477 | lynxos*) | |
13478 | # FIXME: insert proper C++ library support | |
13479 | ld_shlibs_CXX=no | |
13480 | ;; | |
13481 | m88k*) | |
13482 | # FIXME: insert proper C++ library support | |
13483 | ld_shlibs_CXX=no | |
13484 | ;; | |
13485 | mvs*) | |
13486 | case $cc_basename in | |
13487 | cxx*) | |
13488 | # FIXME: insert proper C++ library support | |
13489 | ld_shlibs_CXX=no | |
13490 | ;; | |
13491 | *) | |
13492 | # FIXME: insert proper C++ library support | |
13493 | ld_shlibs_CXX=no | |
13494 | ;; | |
13495 | esac | |
13496 | ;; | |
13497 | netbsd* | netbsdelf*-gnu) | |
13498 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13499 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13500 | wlarc= | |
13501 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13502 | hardcode_direct_CXX=yes | |
13503 | hardcode_shlibpath_var_CXX=no | |
13504 | fi | |
13505 | # Workaround some broken pre-1.5 toolchains | |
13506 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13507 | ;; | |
13508 | openbsd2*) | |
13509 | # C++ shared libraries are fairly broken | |
13510 | ld_shlibs_CXX=no | |
13511 | ;; | |
13512 | openbsd*) | |
13513 | if test -f /usr/libexec/ld.so; then | |
13514 | hardcode_direct_CXX=yes | |
13515 | hardcode_shlibpath_var_CXX=no | |
13516 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13517 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13518 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13519 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13520 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13521 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13522 | fi | |
13523 | output_verbose_link_cmd='echo' | |
13524 | else | |
13525 | ld_shlibs_CXX=no | |
13526 | fi | |
13527 | ;; | |
13528 | osf3*) | |
13529 | case $cc_basename in | |
13530 | KCC*) | |
13531 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13532 | ||
13533 | # KCC will only create a shared library if the output file | |
13534 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13535 | # to its proper name (with version) after linking. | |
13536 | 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' | |
13537 | ||
13538 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13539 | hardcode_libdir_separator_CXX=: | |
13540 | ||
13541 | # Archives containing C++ object files must be created using | |
13542 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13543 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13544 | ||
13545 | ;; | |
13546 | RCC*) | |
13547 | # Rational C++ 2.4.1 | |
13548 | # FIXME: insert proper C++ library support | |
13549 | ld_shlibs_CXX=no | |
13550 | ;; | |
13551 | cxx*) | |
13552 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13553 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
13554 | ||
13555 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13556 | hardcode_libdir_separator_CXX=: | |
13557 | ||
13558 | # Commands to make compiler produce verbose output that lists | |
13559 | # what "hidden" libraries, object files and flags are used when | |
13560 | # linking a shared library. | |
13561 | # | |
13562 | # There doesn't appear to be a way to prevent this compiler from | |
13563 | # explicitly linking system object files so we need to strip them | |
13564 | # from the output so that they don't get included in the library | |
13565 | # dependencies. | |
13566 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13567 | ;; | |
13568 | *) | |
13569 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13570 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13571 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13572 | ||
13573 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13574 | hardcode_libdir_separator_CXX=: | |
13575 | ||
13576 | # Commands to make compiler produce verbose output that lists | |
13577 | # what "hidden" libraries, object files and flags are used when | |
13578 | # linking a shared library. | |
13579 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13580 | ||
13581 | else | |
13582 | # FIXME: insert proper C++ library support | |
13583 | ld_shlibs_CXX=no | |
13584 | fi | |
13585 | ;; | |
13586 | esac | |
13587 | ;; | |
13588 | osf4* | osf5*) | |
13589 | case $cc_basename in | |
13590 | KCC*) | |
13591 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13592 | ||
13593 | # KCC will only create a shared library if the output file | |
13594 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13595 | # to its proper name (with version) after linking. | |
13596 | 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' | |
13597 | ||
13598 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13599 | hardcode_libdir_separator_CXX=: | |
13600 | ||
13601 | # Archives containing C++ object files must be created using | |
13602 | # the KAI C++ compiler. | |
13603 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
13604 | ;; | |
13605 | RCC*) | |
13606 | # Rational C++ 2.4.1 | |
13607 | # FIXME: insert proper C++ library support | |
13608 | ld_shlibs_CXX=no | |
13609 | ;; | |
13610 | cxx*) | |
13611 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13612 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
13613 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13614 | echo "-hidden">> $lib.exp~ | |
13615 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13616 | $rm $lib.exp' | |
13617 | ||
13618 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13619 | hardcode_libdir_separator_CXX=: | |
13620 | ||
13621 | # Commands to make compiler produce verbose output that lists | |
13622 | # what "hidden" libraries, object files and flags are used when | |
13623 | # linking a shared library. | |
13624 | # | |
13625 | # There doesn't appear to be a way to prevent this compiler from | |
13626 | # explicitly linking system object files so we need to strip them | |
13627 | # from the output so that they don't get included in the library | |
13628 | # dependencies. | |
13629 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
13630 | ;; | |
13631 | *) | |
13632 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13633 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13634 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13635 | ||
13636 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13637 | hardcode_libdir_separator_CXX=: | |
13638 | ||
13639 | # Commands to make compiler produce verbose output that lists | |
13640 | # what "hidden" libraries, object files and flags are used when | |
13641 | # linking a shared library. | |
13642 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13643 | ||
13644 | else | |
13645 | # FIXME: insert proper C++ library support | |
13646 | ld_shlibs_CXX=no | |
13647 | fi | |
13648 | ;; | |
13649 | esac | |
13650 | ;; | |
13651 | psos*) | |
13652 | # FIXME: insert proper C++ library support | |
13653 | ld_shlibs_CXX=no | |
13654 | ;; | |
13655 | sunos4*) | |
13656 | case $cc_basename in | |
13657 | CC*) | |
13658 | # Sun C++ 4.x | |
13659 | # FIXME: insert proper C++ library support | |
13660 | ld_shlibs_CXX=no | |
13661 | ;; | |
13662 | lcc*) | |
13663 | # Lucid | |
13664 | # FIXME: insert proper C++ library support | |
13665 | ld_shlibs_CXX=no | |
13666 | ;; | |
13667 | *) | |
13668 | # FIXME: insert proper C++ library support | |
13669 | ld_shlibs_CXX=no | |
13670 | ;; | |
13671 | esac | |
13672 | ;; | |
13673 | solaris*) | |
13674 | case $cc_basename in | |
13675 | CC*) | |
13676 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13677 | archive_cmds_need_lc_CXX=yes | |
13678 | no_undefined_flag_CXX=' -zdefs' | |
13679 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13680 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13681 | $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' | |
13682 | ||
13683 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13684 | hardcode_shlibpath_var_CXX=no | |
13685 | case $host_os in | |
13686 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13687 | *) | |
13688 | # The compiler driver will combine and reorder linker options, | |
13689 | # but understands `-z linker_flag'. | |
13690 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13691 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13692 | ;; | |
13693 | esac | |
13694 | link_all_deplibs_CXX=yes | |
13695 | ||
13696 | output_verbose_link_cmd='echo' | |
13697 | ||
13698 | # Archives containing C++ object files must be created using | |
13699 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13700 | # necessary to make sure instantiated templates are included | |
13701 | # in the archive. | |
13702 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13703 | ;; | |
13704 | gcx*) | |
13705 | # Green Hills C++ Compiler | |
13706 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13707 | ||
13708 | # The C++ compiler must be used to create the archive. | |
13709 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13710 | ;; | |
13711 | *) | |
13712 | # GNU C++ compiler with Solaris linker | |
13713 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13714 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13715 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
13716 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13717 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13718 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13719 | ||
13720 | # Commands to make compiler produce verbose output that lists | |
13721 | # what "hidden" libraries, object files and flags are used when | |
13722 | # linking a shared library. | |
13723 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13724 | else | |
13725 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13726 | # platform. | |
13727 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13728 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13729 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13730 | ||
13731 | # Commands to make compiler produce verbose output that lists | |
13732 | # what "hidden" libraries, object files and flags are used when | |
13733 | # linking a shared library. | |
13734 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13735 | fi | |
13736 | ||
13737 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13738 | case $host_os in | |
13739 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13740 | *) | |
13741 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13742 | ;; | |
13743 | esac | |
13744 | fi | |
13745 | ;; | |
13746 | esac | |
13747 | ;; | |
13748 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13749 | no_undefined_flag_CXX='${wl}-z,text' | |
13750 | archive_cmds_need_lc_CXX=no | |
13751 | hardcode_shlibpath_var_CXX=no | |
13752 | runpath_var='LD_RUN_PATH' | |
13753 | ||
13754 | case $cc_basename in | |
13755 | CC*) | |
13756 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13757 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13758 | ;; | |
13759 | *) | |
13760 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13761 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13762 | ;; | |
13763 | esac | |
13764 | ;; | |
13765 | sysv5* | sco3.2v5* | sco5v6*) | |
13766 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13767 | # link with -lc, and that would cause any symbols used from libc to | |
13768 | # always be unresolved, which means just about no library would | |
13769 | # ever link correctly. If we're not using GNU ld we use -z text | |
13770 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13771 | # as -z defs. | |
13772 | # For security reasons, it is highly recommended that you always | |
13773 | # use absolute paths for naming shared libraries, and exclude the | |
13774 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13775 | # requires that you compile everything twice, which is a pain. | |
13776 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
13777 | # non-empty value in the environment. Most likely only useful for | |
13778 | # creating official distributions of packages. | |
13779 | # This is a hack until libtool officially supports absolute path | |
13780 | # names for shared libraries. | |
13781 | no_undefined_flag_CXX='${wl}-z,text' | |
13782 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13783 | archive_cmds_need_lc_CXX=no | |
13784 | hardcode_shlibpath_var_CXX=no | |
13785 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
13786 | hardcode_libdir_separator_CXX=':' | |
13787 | link_all_deplibs_CXX=yes | |
13788 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13789 | runpath_var='LD_RUN_PATH' | |
13790 | ||
13791 | case $cc_basename in | |
13792 | CC*) | |
13793 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13794 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13795 | ;; | |
13796 | *) | |
13797 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13798 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13799 | ;; | |
13800 | esac | |
13801 | ;; | |
13802 | tandem*) | |
13803 | case $cc_basename in | |
13804 | NCC*) | |
13805 | # NonStop-UX NCC 3.20 | |
13806 | # FIXME: insert proper C++ library support | |
13807 | ld_shlibs_CXX=no | |
13808 | ;; | |
13809 | *) | |
13810 | # FIXME: insert proper C++ library support | |
13811 | ld_shlibs_CXX=no | |
13812 | ;; | |
13813 | esac | |
13814 | ;; | |
13815 | vxworks*) | |
13816 | # FIXME: insert proper C++ library support | |
13817 | ld_shlibs_CXX=no | |
13818 | ;; | |
13819 | *) | |
13820 | # FIXME: insert proper C++ library support | |
13821 | ld_shlibs_CXX=no | |
13822 | ;; | |
13823 | esac | |
030272f3 VY |
13824 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
13825 | $as_echo "$ld_shlibs_CXX" >&6; } | |
db137867 AC |
13826 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
13827 | ||
13828 | GCC_CXX="$GXX" | |
13829 | LD_CXX="$LD" | |
13830 | ||
db137867 AC |
13831 | cat > conftest.$ac_ext <<EOF |
13832 | class Foo | |
13833 | { | |
13834 | public: | |
13835 | Foo (void) { a = 0; } | |
13836 | private: | |
13837 | int a; | |
13838 | }; | |
13839 | EOF | |
13840 | ||
13841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13842 | (eval $ac_compile) 2>&5 | |
13843 | ac_status=$? | |
030272f3 | 13844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
13845 | (exit $ac_status); }; then |
13846 | # Parse the compiler output and extract the necessary | |
13847 | # objects, libraries and library flags. | |
13848 | ||
13849 | # Sentinel used to keep track of whether or not we are before | |
13850 | # the conftest object file. | |
13851 | pre_test_object_deps_done=no | |
13852 | ||
13853 | # The `*' in the case matches for architectures that use `case' in | |
13854 | # $output_verbose_cmd can trigger glob expansion during the loop | |
13855 | # eval without this substitution. | |
13856 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
13857 | ||
13858 | for p in `eval $output_verbose_link_cmd`; do | |
13859 | case $p in | |
13860 | ||
13861 | -L* | -R* | -l*) | |
13862 | # Some compilers place space between "-{L,R}" and the path. | |
13863 | # Remove the space. | |
13864 | if test $p = "-L" \ | |
13865 | || test $p = "-R"; then | |
13866 | prev=$p | |
13867 | continue | |
13868 | else | |
13869 | prev= | |
13870 | fi | |
13871 | ||
13872 | if test "$pre_test_object_deps_done" = no; then | |
13873 | case $p in | |
13874 | -L* | -R*) | |
13875 | # Internal compiler library paths should come after those | |
13876 | # provided the user. The postdeps already come after the | |
13877 | # user supplied libs so there is no need to process them. | |
13878 | if test -z "$compiler_lib_search_path_CXX"; then | |
13879 | compiler_lib_search_path_CXX="${prev}${p}" | |
13880 | else | |
13881 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13882 | fi | |
13883 | ;; | |
13884 | # The "-l" case would never come before the object being | |
13885 | # linked, so don't bother handling this case. | |
13886 | esac | |
13887 | else | |
13888 | if test -z "$postdeps_CXX"; then | |
13889 | postdeps_CXX="${prev}${p}" | |
13890 | else | |
13891 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13892 | fi | |
13893 | fi | |
13894 | ;; | |
13895 | ||
13896 | *.$objext) | |
13897 | # This assumes that the test object file only shows up | |
13898 | # once in the compiler output. | |
13899 | if test "$p" = "conftest.$objext"; then | |
13900 | pre_test_object_deps_done=yes | |
13901 | continue | |
13902 | fi | |
13903 | ||
13904 | if test "$pre_test_object_deps_done" = no; then | |
13905 | if test -z "$predep_objects_CXX"; then | |
13906 | predep_objects_CXX="$p" | |
13907 | else | |
13908 | predep_objects_CXX="$predep_objects_CXX $p" | |
13909 | fi | |
13910 | else | |
13911 | if test -z "$postdep_objects_CXX"; then | |
13912 | postdep_objects_CXX="$p" | |
13913 | else | |
13914 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13915 | fi | |
13916 | fi | |
13917 | ;; | |
13918 | ||
13919 | *) ;; # Ignore the rest. | |
13920 | ||
13921 | esac | |
13922 | done | |
13923 | ||
13924 | # Clean up. | |
13925 | rm -f a.out a.exe | |
13926 | else | |
13927 | echo "libtool.m4: error: problem compiling CXX test program" | |
13928 | fi | |
13929 | ||
13930 | $rm -f confest.$objext | |
13931 | ||
b676ea3b AC |
13932 | compiler_lib_search_dirs_CXX= |
13933 | if test -n "$compiler_lib_search_path_CXX"; then | |
13934 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13935 | fi | |
13936 | ||
db137867 AC |
13937 | # PORTME: override above test on systems where it is broken |
13938 | case $host_os in | |
13939 | interix[3-9]*) | |
13940 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13941 | # hack all around it, let's just trust "g++" to DTRT. | |
13942 | predep_objects_CXX= | |
13943 | postdep_objects_CXX= | |
13944 | postdeps_CXX= | |
13945 | ;; | |
13946 | ||
13947 | linux*) | |
13948 | case `$CC -V 2>&1 | sed 5q` in | |
13949 | *Sun\ C*) | |
13950 | # Sun C++ 5.9 | |
13951 | # | |
13952 | # The more standards-conforming stlport4 library is | |
13953 | # incompatible with the Cstd library. Avoid specifying | |
13954 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13955 | # -library=stlport4 depends on it. | |
13956 | case " $CXX $CXXFLAGS " in | |
13957 | *" -library=stlport4 "*) | |
13958 | solaris_use_stlport4=yes | |
13959 | ;; | |
13960 | esac | |
13961 | if test "$solaris_use_stlport4" != yes; then | |
13962 | postdeps_CXX='-library=Cstd -library=Crun' | |
13963 | fi | |
13964 | ;; | |
13965 | esac | |
13966 | ;; | |
13967 | ||
13968 | solaris*) | |
13969 | case $cc_basename in | |
13970 | CC*) | |
13971 | # The more standards-conforming stlport4 library is | |
13972 | # incompatible with the Cstd library. Avoid specifying | |
13973 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13974 | # -library=stlport4 depends on it. | |
13975 | case " $CXX $CXXFLAGS " in | |
13976 | *" -library=stlport4 "*) | |
13977 | solaris_use_stlport4=yes | |
13978 | ;; | |
13979 | esac | |
13980 | ||
13981 | # Adding this requires a known-good setup of shared libraries for | |
13982 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13983 | # archive will be linked into the output, leading to subtle bugs. | |
13984 | if test "$solaris_use_stlport4" != yes; then | |
13985 | postdeps_CXX='-library=Cstd -library=Crun' | |
13986 | fi | |
13987 | ;; | |
13988 | esac | |
13989 | ;; | |
13990 | esac | |
13991 | ||
db137867 AC |
13992 | case " $postdeps_CXX " in |
13993 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13994 | esac | |
13995 | ||
13996 | lt_prog_compiler_wl_CXX= | |
13997 | lt_prog_compiler_pic_CXX= | |
13998 | lt_prog_compiler_static_CXX= | |
13999 | ||
030272f3 VY |
14000 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14001 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
db137867 AC |
14002 | |
14003 | # C++ specific cases for pic, static, wl, etc. | |
14004 | if test "$GXX" = yes; then | |
14005 | lt_prog_compiler_wl_CXX='-Wl,' | |
14006 | lt_prog_compiler_static_CXX='-static' | |
14007 | ||
14008 | case $host_os in | |
14009 | aix*) | |
14010 | # All AIX code is PIC. | |
14011 | if test "$host_cpu" = ia64; then | |
14012 | # AIX 5 now supports IA64 processor | |
14013 | lt_prog_compiler_static_CXX='-Bstatic' | |
14014 | fi | |
14015 | ;; | |
14016 | amigaos*) | |
14017 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14018 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14019 | # like `-m68040'. | |
14020 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14021 | ;; | |
14022 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14023 | # PIC is the default for these OSes. | |
14024 | ;; | |
14025 | mingw* | cygwin* | os2* | pw32*) | |
14026 | # This hack is so that the source file can tell whether it is being | |
14027 | # built for inclusion in a dll (and should export symbols for example). | |
14028 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14029 | # (--disable-auto-import) libraries | |
14030 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14031 | ;; | |
14032 | darwin* | rhapsody*) | |
14033 | # PIC is the default on this platform | |
14034 | # Common symbols not allowed in MH_DYLIB files | |
14035 | lt_prog_compiler_pic_CXX='-fno-common' | |
14036 | ;; | |
14037 | *djgpp*) | |
14038 | # DJGPP does not support shared libraries at all | |
14039 | lt_prog_compiler_pic_CXX= | |
14040 | ;; | |
14041 | interix[3-9]*) | |
14042 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14043 | # Instead, we relocate shared libraries at runtime. | |
14044 | ;; | |
14045 | sysv4*MP*) | |
14046 | if test -d /usr/nec; then | |
14047 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14048 | fi | |
14049 | ;; | |
14050 | hpux*) | |
14051 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
14052 | # not for PA HP-UX. | |
14053 | case $host_cpu in | |
14054 | hppa*64*|ia64*) | |
14055 | ;; | |
14056 | *) | |
14057 | lt_prog_compiler_pic_CXX='-fPIC' | |
14058 | ;; | |
14059 | esac | |
14060 | ;; | |
14061 | *) | |
14062 | lt_prog_compiler_pic_CXX='-fPIC' | |
14063 | ;; | |
14064 | esac | |
14065 | else | |
14066 | case $host_os in | |
b676ea3b | 14067 | aix[4-9]*) |
db137867 AC |
14068 | # All AIX code is PIC. |
14069 | if test "$host_cpu" = ia64; then | |
14070 | # AIX 5 now supports IA64 processor | |
14071 | lt_prog_compiler_static_CXX='-Bstatic' | |
14072 | else | |
14073 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14074 | fi | |
14075 | ;; | |
14076 | chorus*) | |
14077 | case $cc_basename in | |
14078 | cxch68*) | |
14079 | # Green Hills C++ Compiler | |
14080 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14081 | ;; | |
14082 | esac | |
14083 | ;; | |
14084 | darwin*) | |
14085 | # PIC is the default on this platform | |
14086 | # Common symbols not allowed in MH_DYLIB files | |
14087 | case $cc_basename in | |
14088 | xlc*) | |
14089 | lt_prog_compiler_pic_CXX='-qnocommon' | |
14090 | lt_prog_compiler_wl_CXX='-Wl,' | |
14091 | ;; | |
14092 | esac | |
14093 | ;; | |
14094 | dgux*) | |
14095 | case $cc_basename in | |
14096 | ec++*) | |
14097 | lt_prog_compiler_pic_CXX='-KPIC' | |
14098 | ;; | |
14099 | ghcx*) | |
14100 | # Green Hills C++ Compiler | |
14101 | lt_prog_compiler_pic_CXX='-pic' | |
14102 | ;; | |
14103 | *) | |
14104 | ;; | |
14105 | esac | |
14106 | ;; | |
14107 | freebsd* | dragonfly*) | |
14108 | # FreeBSD uses GNU C++ | |
14109 | ;; | |
14110 | hpux9* | hpux10* | hpux11*) | |
14111 | case $cc_basename in | |
14112 | CC*) | |
14113 | lt_prog_compiler_wl_CXX='-Wl,' | |
14114 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14115 | if test "$host_cpu" != ia64; then | |
14116 | lt_prog_compiler_pic_CXX='+Z' | |
14117 | fi | |
14118 | ;; | |
14119 | aCC*) | |
14120 | lt_prog_compiler_wl_CXX='-Wl,' | |
14121 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14122 | case $host_cpu in | |
14123 | hppa*64*|ia64*) | |
14124 | # +Z the default | |
14125 | ;; | |
14126 | *) | |
14127 | lt_prog_compiler_pic_CXX='+Z' | |
14128 | ;; | |
14129 | esac | |
14130 | ;; | |
14131 | *) | |
14132 | ;; | |
14133 | esac | |
14134 | ;; | |
14135 | interix*) | |
14136 | # This is c89, which is MS Visual C++ (no shared libs) | |
14137 | # Anyone wants to do a port? | |
14138 | ;; | |
14139 | irix5* | irix6* | nonstopux*) | |
14140 | case $cc_basename in | |
14141 | CC*) | |
14142 | lt_prog_compiler_wl_CXX='-Wl,' | |
14143 | lt_prog_compiler_static_CXX='-non_shared' | |
14144 | # CC pic flag -KPIC is the default. | |
14145 | ;; | |
14146 | *) | |
14147 | ;; | |
14148 | esac | |
14149 | ;; | |
14150 | linux* | k*bsd*-gnu) | |
14151 | case $cc_basename in | |
14152 | KCC*) | |
14153 | # KAI C++ Compiler | |
14154 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14155 | lt_prog_compiler_pic_CXX='-fPIC' | |
14156 | ;; | |
14157 | icpc* | ecpc*) | |
14158 | # Intel C++ | |
14159 | lt_prog_compiler_wl_CXX='-Wl,' | |
14160 | lt_prog_compiler_pic_CXX='-KPIC' | |
14161 | lt_prog_compiler_static_CXX='-static' | |
14162 | ;; | |
b676ea3b | 14163 | pgCC* | pgcpp*) |
db137867 AC |
14164 | # Portland Group C++ compiler. |
14165 | lt_prog_compiler_wl_CXX='-Wl,' | |
14166 | lt_prog_compiler_pic_CXX='-fpic' | |
14167 | lt_prog_compiler_static_CXX='-Bstatic' | |
14168 | ;; | |
14169 | cxx*) | |
14170 | # Compaq C++ | |
14171 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14172 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14173 | lt_prog_compiler_pic_CXX= | |
14174 | lt_prog_compiler_static_CXX='-non_shared' | |
14175 | ;; | |
14176 | *) | |
14177 | case `$CC -V 2>&1 | sed 5q` in | |
14178 | *Sun\ C*) | |
14179 | # Sun C++ 5.9 | |
14180 | lt_prog_compiler_pic_CXX='-KPIC' | |
14181 | lt_prog_compiler_static_CXX='-Bstatic' | |
14182 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14183 | ;; | |
14184 | esac | |
14185 | ;; | |
14186 | esac | |
14187 | ;; | |
14188 | lynxos*) | |
14189 | ;; | |
14190 | m88k*) | |
14191 | ;; | |
14192 | mvs*) | |
14193 | case $cc_basename in | |
14194 | cxx*) | |
14195 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14196 | ;; | |
14197 | *) | |
14198 | ;; | |
14199 | esac | |
14200 | ;; | |
14201 | netbsd* | netbsdelf*-gnu) | |
14202 | ;; | |
14203 | osf3* | osf4* | osf5*) | |
14204 | case $cc_basename in | |
14205 | KCC*) | |
14206 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14207 | ;; | |
14208 | RCC*) | |
14209 | # Rational C++ 2.4.1 | |
14210 | lt_prog_compiler_pic_CXX='-pic' | |
14211 | ;; | |
14212 | cxx*) | |
14213 | # Digital/Compaq C++ | |
14214 | lt_prog_compiler_wl_CXX='-Wl,' | |
14215 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14216 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14217 | lt_prog_compiler_pic_CXX= | |
14218 | lt_prog_compiler_static_CXX='-non_shared' | |
14219 | ;; | |
14220 | *) | |
14221 | ;; | |
14222 | esac | |
14223 | ;; | |
14224 | psos*) | |
14225 | ;; | |
14226 | solaris*) | |
14227 | case $cc_basename in | |
14228 | CC*) | |
14229 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14230 | lt_prog_compiler_pic_CXX='-KPIC' | |
14231 | lt_prog_compiler_static_CXX='-Bstatic' | |
14232 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14233 | ;; | |
14234 | gcx*) | |
14235 | # Green Hills C++ Compiler | |
14236 | lt_prog_compiler_pic_CXX='-PIC' | |
14237 | ;; | |
14238 | *) | |
14239 | ;; | |
14240 | esac | |
14241 | ;; | |
14242 | sunos4*) | |
14243 | case $cc_basename in | |
14244 | CC*) | |
14245 | # Sun C++ 4.x | |
14246 | lt_prog_compiler_pic_CXX='-pic' | |
14247 | lt_prog_compiler_static_CXX='-Bstatic' | |
14248 | ;; | |
14249 | lcc*) | |
14250 | # Lucid | |
14251 | lt_prog_compiler_pic_CXX='-pic' | |
14252 | ;; | |
14253 | *) | |
14254 | ;; | |
14255 | esac | |
14256 | ;; | |
14257 | tandem*) | |
14258 | case $cc_basename in | |
14259 | NCC*) | |
14260 | # NonStop-UX NCC 3.20 | |
14261 | lt_prog_compiler_pic_CXX='-KPIC' | |
14262 | ;; | |
14263 | *) | |
14264 | ;; | |
14265 | esac | |
14266 | ;; | |
14267 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14268 | case $cc_basename in | |
14269 | CC*) | |
14270 | lt_prog_compiler_wl_CXX='-Wl,' | |
14271 | lt_prog_compiler_pic_CXX='-KPIC' | |
14272 | lt_prog_compiler_static_CXX='-Bstatic' | |
14273 | ;; | |
14274 | esac | |
14275 | ;; | |
14276 | vxworks*) | |
14277 | ;; | |
14278 | *) | |
14279 | lt_prog_compiler_can_build_shared_CXX=no | |
14280 | ;; | |
14281 | esac | |
14282 | fi | |
14283 | ||
030272f3 VY |
14284 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
14285 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
db137867 AC |
14286 | |
14287 | # | |
14288 | # Check to make sure the PIC flag actually works. | |
14289 | # | |
14290 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14291 | ||
030272f3 VY |
14292 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
14293 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
b676ea3b | 14294 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
030272f3 | 14295 | $as_echo_n "(cached) " >&6 |
db137867 | 14296 | else |
b676ea3b | 14297 | lt_cv_prog_compiler_pic_works_CXX=no |
db137867 AC |
14298 | ac_outfile=conftest.$ac_objext |
14299 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14300 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14301 | # Insert the option either (1) after the last *FLAGS variable, or | |
14302 | # (2) before a word containing "conftest.", or (3) at the end. | |
14303 | # Note that $ac_compile itself does not contain backslashes and begins | |
14304 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14305 | # The option is referenced via a variable to avoid confusing sed. | |
14306 | lt_compile=`echo "$ac_compile" | $SED \ | |
14307 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14308 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14309 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 14310 | (eval echo "\"\$as_me:14310: $lt_compile\"" >&5) |
db137867 AC |
14311 | (eval "$lt_compile" 2>conftest.err) |
14312 | ac_status=$? | |
14313 | cat conftest.err >&5 | |
030272f3 | 14314 | echo "$as_me:14314: \$? = $ac_status" >&5 |
db137867 AC |
14315 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14316 | # The compiler can only warn and ignore the option if not recognized | |
14317 | # So say no if there are warnings other than the usual output. | |
14318 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
14319 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14320 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 14321 | lt_cv_prog_compiler_pic_works_CXX=yes |
db137867 AC |
14322 | fi |
14323 | fi | |
14324 | $rm conftest* | |
14325 | ||
14326 | fi | |
030272f3 VY |
14327 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
14328 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
db137867 | 14329 | |
b676ea3b | 14330 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
db137867 AC |
14331 | case $lt_prog_compiler_pic_CXX in |
14332 | "" | " "*) ;; | |
14333 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14334 | esac | |
14335 | else | |
14336 | lt_prog_compiler_pic_CXX= | |
14337 | lt_prog_compiler_can_build_shared_CXX=no | |
14338 | fi | |
14339 | ||
14340 | fi | |
14341 | case $host_os in | |
14342 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14343 | *djgpp*) | |
14344 | lt_prog_compiler_pic_CXX= | |
14345 | ;; | |
14346 | *) | |
14347 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14348 | ;; | |
14349 | esac | |
14350 | ||
14351 | # | |
14352 | # Check to make sure the static flag actually works. | |
14353 | # | |
14354 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
030272f3 VY |
14355 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14356 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
b676ea3b | 14357 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
030272f3 | 14358 | $as_echo_n "(cached) " >&6 |
db137867 | 14359 | else |
b676ea3b | 14360 | lt_cv_prog_compiler_static_works_CXX=no |
db137867 AC |
14361 | save_LDFLAGS="$LDFLAGS" |
14362 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14363 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14364 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14365 | # The linker can only warn and ignore the option if not recognized | |
14366 | # So say no if there are warnings | |
14367 | if test -s conftest.err; then | |
14368 | # Append any errors to the config.log. | |
14369 | cat conftest.err 1>&5 | |
14370 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14371 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14372 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 14373 | lt_cv_prog_compiler_static_works_CXX=yes |
db137867 AC |
14374 | fi |
14375 | else | |
b676ea3b | 14376 | lt_cv_prog_compiler_static_works_CXX=yes |
db137867 AC |
14377 | fi |
14378 | fi | |
b676ea3b | 14379 | $rm -r conftest* |
db137867 AC |
14380 | LDFLAGS="$save_LDFLAGS" |
14381 | ||
14382 | fi | |
030272f3 VY |
14383 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
14384 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
db137867 | 14385 | |
b676ea3b | 14386 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
db137867 AC |
14387 | : |
14388 | else | |
14389 | lt_prog_compiler_static_CXX= | |
14390 | fi | |
14391 | ||
14392 | ||
030272f3 VY |
14393 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14394 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
db137867 | 14395 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
030272f3 | 14396 | $as_echo_n "(cached) " >&6 |
db137867 AC |
14397 | else |
14398 | lt_cv_prog_compiler_c_o_CXX=no | |
14399 | $rm -r conftest 2>/dev/null | |
14400 | mkdir conftest | |
14401 | cd conftest | |
14402 | mkdir out | |
14403 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14404 | ||
14405 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14406 | # Insert the option either (1) after the last *FLAGS variable, or | |
14407 | # (2) before a word containing "conftest.", or (3) at the end. | |
14408 | # Note that $ac_compile itself does not contain backslashes and begins | |
14409 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14410 | lt_compile=`echo "$ac_compile" | $SED \ | |
14411 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14412 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14413 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 14414 | (eval echo "\"\$as_me:14414: $lt_compile\"" >&5) |
db137867 AC |
14415 | (eval "$lt_compile" 2>out/conftest.err) |
14416 | ac_status=$? | |
14417 | cat out/conftest.err >&5 | |
030272f3 | 14418 | echo "$as_me:14418: \$? = $ac_status" >&5 |
db137867 AC |
14419 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14420 | then | |
14421 | # The compiler can only warn and ignore the option if not recognized | |
14422 | # So say no if there are warnings | |
14423 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14424 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14425 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14426 | lt_cv_prog_compiler_c_o_CXX=yes | |
14427 | fi | |
14428 | fi | |
14429 | chmod u+w . 2>&5 | |
14430 | $rm conftest* | |
14431 | # SGI C++ compiler will create directory out/ii_files/ for | |
14432 | # template instantiation | |
14433 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
14434 | $rm out/* && rmdir out | |
14435 | cd .. | |
14436 | rmdir conftest | |
14437 | $rm conftest* | |
14438 | ||
14439 | fi | |
030272f3 VY |
14440 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
14441 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
db137867 AC |
14442 | |
14443 | ||
14444 | hard_links="nottested" | |
14445 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14446 | # do not overwrite the value of need_locks provided by the user | |
030272f3 VY |
14447 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14448 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
db137867 AC |
14449 | hard_links=yes |
14450 | $rm conftest* | |
14451 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14452 | touch conftest.a | |
14453 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14454 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
030272f3 VY |
14455 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
14456 | $as_echo "$hard_links" >&6; } | |
db137867 | 14457 | if test "$hard_links" = no; then |
030272f3 VY |
14458 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14459 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
db137867 AC |
14460 | need_locks=warn |
14461 | fi | |
14462 | else | |
14463 | need_locks=no | |
14464 | fi | |
14465 | ||
030272f3 VY |
14466 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14467 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
db137867 AC |
14468 | |
14469 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14470 | case $host_os in | |
b676ea3b | 14471 | aix[4-9]*) |
db137867 AC |
14472 | # If we're using GNU nm, then we don't want the "-C" option. |
14473 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14474 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14475 | 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' | |
14476 | else | |
14477 | 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' | |
14478 | fi | |
14479 | ;; | |
14480 | pw32*) | |
14481 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14482 | ;; | |
14483 | cygwin* | mingw*) | |
14484 | 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' | |
14485 | ;; | |
14486 | linux* | k*bsd*-gnu) | |
14487 | link_all_deplibs_CXX=no | |
14488 | ;; | |
14489 | *) | |
14490 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14491 | ;; | |
14492 | esac | |
b676ea3b | 14493 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 | 14494 | |
030272f3 VY |
14495 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
14496 | $as_echo "$ld_shlibs_CXX" >&6; } | |
db137867 AC |
14497 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
14498 | ||
14499 | # | |
14500 | # Do we need to explicitly link libc? | |
14501 | # | |
14502 | case "x$archive_cmds_need_lc_CXX" in | |
14503 | x|xyes) | |
14504 | # Assume -lc should be added | |
14505 | archive_cmds_need_lc_CXX=yes | |
14506 | ||
14507 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14508 | case $archive_cmds_CXX in | |
14509 | *'~'*) | |
14510 | # FIXME: we may have to deal with multi-command sequences. | |
14511 | ;; | |
14512 | '$CC '*) | |
14513 | # Test whether the compiler implicitly links with -lc since on some | |
14514 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14515 | # to ld, don't add -lc before -lgcc. | |
030272f3 VY |
14516 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14517 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
db137867 AC |
14518 | $rm conftest* |
14519 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14520 | ||
14521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14522 | (eval $ac_compile) 2>&5 | |
14523 | ac_status=$? | |
030272f3 | 14524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
14525 | (exit $ac_status); } 2>conftest.err; then |
14526 | soname=conftest | |
14527 | lib=conftest | |
14528 | libobjs=conftest.$ac_objext | |
14529 | deplibs= | |
14530 | wl=$lt_prog_compiler_wl_CXX | |
14531 | pic_flag=$lt_prog_compiler_pic_CXX | |
14532 | compiler_flags=-v | |
14533 | linker_flags=-v | |
14534 | verstring= | |
14535 | output_objdir=. | |
14536 | libname=conftest | |
14537 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14538 | allow_undefined_flag_CXX= | |
14539 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14540 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14541 | ac_status=$? | |
030272f3 | 14542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
14543 | (exit $ac_status); } |
14544 | then | |
14545 | archive_cmds_need_lc_CXX=no | |
14546 | else | |
14547 | archive_cmds_need_lc_CXX=yes | |
14548 | fi | |
14549 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14550 | else | |
14551 | cat conftest.err 1>&5 | |
14552 | fi | |
14553 | $rm conftest* | |
030272f3 VY |
14554 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
14555 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
db137867 AC |
14556 | ;; |
14557 | esac | |
14558 | fi | |
14559 | ;; | |
14560 | esac | |
14561 | ||
030272f3 VY |
14562 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14563 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
db137867 AC |
14564 | library_names_spec= |
14565 | libname_spec='lib$name' | |
14566 | soname_spec= | |
14567 | shrext_cmds=".so" | |
14568 | postinstall_cmds= | |
14569 | postuninstall_cmds= | |
14570 | finish_cmds= | |
14571 | finish_eval= | |
14572 | shlibpath_var= | |
14573 | shlibpath_overrides_runpath=unknown | |
14574 | version_type=none | |
14575 | dynamic_linker="$host_os ld.so" | |
14576 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14577 | ||
14578 | need_lib_prefix=unknown | |
14579 | hardcode_into_libs=no | |
14580 | ||
14581 | # when you set need_version to no, make sure it does not cause -set_version | |
14582 | # flags to be left without arguments | |
14583 | need_version=unknown | |
14584 | ||
14585 | case $host_os in | |
14586 | aix3*) | |
14587 | version_type=linux | |
14588 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14589 | shlibpath_var=LIBPATH | |
14590 | ||
14591 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14592 | soname_spec='${libname}${release}${shared_ext}$major' | |
14593 | ;; | |
14594 | ||
b676ea3b | 14595 | aix[4-9]*) |
db137867 AC |
14596 | version_type=linux |
14597 | need_lib_prefix=no | |
14598 | need_version=no | |
14599 | hardcode_into_libs=yes | |
14600 | if test "$host_cpu" = ia64; then | |
14601 | # AIX 5 supports IA64 | |
14602 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14603 | shlibpath_var=LD_LIBRARY_PATH | |
14604 | else | |
14605 | # With GCC up to 2.95.x, collect2 would create an import file | |
14606 | # for dependence libraries. The import file would start with | |
14607 | # the line `#! .'. This would cause the generated library to | |
14608 | # depend on `.', always an invalid library. This was fixed in | |
14609 | # development snapshots of GCC prior to 3.0. | |
14610 | case $host_os in | |
14611 | aix4 | aix4.[01] | aix4.[01].*) | |
14612 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14613 | echo ' yes ' | |
14614 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14615 | : | |
14616 | else | |
14617 | can_build_shared=no | |
14618 | fi | |
14619 | ;; | |
14620 | esac | |
14621 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14622 | # soname into executable. Probably we can add versioning support to | |
14623 | # collect2, so additional links can be useful in future. | |
14624 | if test "$aix_use_runtimelinking" = yes; then | |
14625 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14626 | # instead of lib<name>.a to let people know that these are not | |
14627 | # typical AIX shared libraries. | |
14628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14629 | else | |
14630 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14631 | # and later when we are not doing run time linking. | |
14632 | library_names_spec='${libname}${release}.a $libname.a' | |
14633 | soname_spec='${libname}${release}${shared_ext}$major' | |
14634 | fi | |
14635 | shlibpath_var=LIBPATH | |
14636 | fi | |
14637 | ;; | |
14638 | ||
14639 | amigaos*) | |
14640 | library_names_spec='$libname.ixlibrary $libname.a' | |
14641 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14642 | 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' | |
14643 | ;; | |
14644 | ||
14645 | beos*) | |
14646 | library_names_spec='${libname}${shared_ext}' | |
14647 | dynamic_linker="$host_os ld.so" | |
14648 | shlibpath_var=LIBRARY_PATH | |
14649 | ;; | |
14650 | ||
14651 | bsdi[45]*) | |
14652 | version_type=linux | |
14653 | need_version=no | |
14654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14655 | soname_spec='${libname}${release}${shared_ext}$major' | |
14656 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14657 | shlibpath_var=LD_LIBRARY_PATH | |
14658 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14659 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14660 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14661 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14662 | # libtool to hard-code these into programs | |
14663 | ;; | |
14664 | ||
14665 | cygwin* | mingw* | pw32*) | |
14666 | version_type=windows | |
14667 | shrext_cmds=".dll" | |
14668 | need_version=no | |
14669 | need_lib_prefix=no | |
14670 | ||
14671 | case $GCC,$host_os in | |
14672 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14673 | library_names_spec='$libname.dll.a' | |
14674 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14675 | postinstall_cmds='base_file=`basename \${file}`~ | |
14676 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14677 | dldir=$destdir/`dirname \$dlpath`~ | |
14678 | test -d \$dldir || mkdir -p \$dldir~ | |
14679 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14680 | chmod a+x \$dldir/$dlname' | |
14681 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14682 | dlpath=$dir/\$dldll~ | |
14683 | $rm \$dlpath' | |
14684 | shlibpath_overrides_runpath=yes | |
14685 | ||
14686 | case $host_os in | |
14687 | cygwin*) | |
14688 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14689 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14690 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14691 | ;; | |
14692 | mingw*) | |
14693 | # MinGW DLLs use traditional 'lib' prefix | |
14694 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14695 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14696 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14697 | # It is most probably a Windows format PATH printed by | |
14698 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14699 | # path with ; separators, and with drive letters. We can handle the | |
14700 | # drive letters (cygwin fileutils understands them), so leave them, | |
14701 | # especially as we might pass files found there to a mingw objdump, | |
14702 | # which wouldn't understand a cygwinified path. Ahh. | |
14703 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14704 | else | |
14705 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14706 | fi | |
14707 | ;; | |
14708 | pw32*) | |
14709 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14710 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14711 | ;; | |
14712 | esac | |
14713 | ;; | |
14714 | ||
14715 | *) | |
14716 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14717 | ;; | |
14718 | esac | |
14719 | dynamic_linker='Win32 ld.exe' | |
14720 | # FIXME: first we should search . and the directory the executable is in | |
14721 | shlibpath_var=PATH | |
14722 | ;; | |
14723 | ||
14724 | darwin* | rhapsody*) | |
14725 | dynamic_linker="$host_os dyld" | |
14726 | version_type=darwin | |
14727 | need_lib_prefix=no | |
14728 | need_version=no | |
14729 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14730 | soname_spec='${libname}${release}${major}$shared_ext' | |
14731 | shlibpath_overrides_runpath=yes | |
14732 | shlibpath_var=DYLD_LIBRARY_PATH | |
14733 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14734 | ||
14735 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14736 | ;; | |
14737 | ||
14738 | dgux*) | |
14739 | version_type=linux | |
14740 | need_lib_prefix=no | |
14741 | need_version=no | |
14742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14743 | soname_spec='${libname}${release}${shared_ext}$major' | |
14744 | shlibpath_var=LD_LIBRARY_PATH | |
14745 | ;; | |
14746 | ||
14747 | freebsd1*) | |
14748 | dynamic_linker=no | |
14749 | ;; | |
14750 | ||
14751 | freebsd* | dragonfly*) | |
14752 | # DragonFly does not have aout. When/if they implement a new | |
14753 | # versioning mechanism, adjust this. | |
14754 | if test -x /usr/bin/objformat; then | |
14755 | objformat=`/usr/bin/objformat` | |
14756 | else | |
14757 | case $host_os in | |
14758 | freebsd[123]*) objformat=aout ;; | |
14759 | *) objformat=elf ;; | |
14760 | esac | |
14761 | fi | |
14762 | version_type=freebsd-$objformat | |
14763 | case $version_type in | |
14764 | freebsd-elf*) | |
14765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14766 | need_version=no | |
14767 | need_lib_prefix=no | |
14768 | ;; | |
14769 | freebsd-*) | |
14770 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14771 | need_version=yes | |
14772 | ;; | |
14773 | esac | |
14774 | shlibpath_var=LD_LIBRARY_PATH | |
14775 | case $host_os in | |
14776 | freebsd2*) | |
14777 | shlibpath_overrides_runpath=yes | |
14778 | ;; | |
14779 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14780 | shlibpath_overrides_runpath=yes | |
14781 | hardcode_into_libs=yes | |
14782 | ;; | |
14783 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14784 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14785 | shlibpath_overrides_runpath=no | |
14786 | hardcode_into_libs=yes | |
14787 | ;; | |
14788 | *) # from 4.6 on, and DragonFly | |
14789 | shlibpath_overrides_runpath=yes | |
14790 | hardcode_into_libs=yes | |
14791 | ;; | |
14792 | esac | |
14793 | ;; | |
14794 | ||
14795 | gnu*) | |
14796 | version_type=linux | |
14797 | need_lib_prefix=no | |
14798 | need_version=no | |
14799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14800 | soname_spec='${libname}${release}${shared_ext}$major' | |
14801 | shlibpath_var=LD_LIBRARY_PATH | |
14802 | hardcode_into_libs=yes | |
14803 | ;; | |
14804 | ||
14805 | hpux9* | hpux10* | hpux11*) | |
14806 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14807 | # link against other versions. | |
14808 | version_type=sunos | |
14809 | need_lib_prefix=no | |
14810 | need_version=no | |
14811 | case $host_cpu in | |
14812 | ia64*) | |
14813 | shrext_cmds='.so' | |
14814 | hardcode_into_libs=yes | |
14815 | dynamic_linker="$host_os dld.so" | |
14816 | shlibpath_var=LD_LIBRARY_PATH | |
14817 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14819 | soname_spec='${libname}${release}${shared_ext}$major' | |
14820 | if test "X$HPUX_IA64_MODE" = X32; then | |
14821 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14822 | else | |
14823 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14824 | fi | |
14825 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14826 | ;; | |
14827 | hppa*64*) | |
14828 | shrext_cmds='.sl' | |
14829 | hardcode_into_libs=yes | |
14830 | dynamic_linker="$host_os dld.sl" | |
14831 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14832 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14834 | soname_spec='${libname}${release}${shared_ext}$major' | |
14835 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14836 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14837 | ;; | |
14838 | *) | |
14839 | shrext_cmds='.sl' | |
14840 | dynamic_linker="$host_os dld.sl" | |
14841 | shlibpath_var=SHLIB_PATH | |
14842 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14844 | soname_spec='${libname}${release}${shared_ext}$major' | |
14845 | ;; | |
14846 | esac | |
14847 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14848 | postinstall_cmds='chmod 555 $lib' | |
14849 | ;; | |
14850 | ||
14851 | interix[3-9]*) | |
14852 | version_type=linux | |
14853 | need_lib_prefix=no | |
14854 | need_version=no | |
14855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14856 | soname_spec='${libname}${release}${shared_ext}$major' | |
14857 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14858 | shlibpath_var=LD_LIBRARY_PATH | |
14859 | shlibpath_overrides_runpath=no | |
14860 | hardcode_into_libs=yes | |
14861 | ;; | |
14862 | ||
14863 | irix5* | irix6* | nonstopux*) | |
14864 | case $host_os in | |
14865 | nonstopux*) version_type=nonstopux ;; | |
14866 | *) | |
14867 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14868 | version_type=linux | |
14869 | else | |
14870 | version_type=irix | |
14871 | fi ;; | |
14872 | esac | |
14873 | need_lib_prefix=no | |
14874 | need_version=no | |
14875 | soname_spec='${libname}${release}${shared_ext}$major' | |
14876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14877 | case $host_os in | |
14878 | irix5* | nonstopux*) | |
14879 | libsuff= shlibsuff= | |
14880 | ;; | |
14881 | *) | |
14882 | case $LD in # libtool.m4 will add one of these switches to LD | |
14883 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14884 | libsuff= shlibsuff= libmagic=32-bit;; | |
14885 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14886 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14887 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14888 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14889 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14890 | esac | |
14891 | ;; | |
14892 | esac | |
14893 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14894 | shlibpath_overrides_runpath=no | |
14895 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14896 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14897 | hardcode_into_libs=yes | |
14898 | ;; | |
14899 | ||
14900 | # No shared lib support for Linux oldld, aout, or coff. | |
14901 | linux*oldld* | linux*aout* | linux*coff*) | |
14902 | dynamic_linker=no | |
14903 | ;; | |
14904 | ||
14905 | # This must be Linux ELF. | |
14906 | linux* | k*bsd*-gnu) | |
14907 | version_type=linux | |
14908 | need_lib_prefix=no | |
14909 | need_version=no | |
14910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14911 | soname_spec='${libname}${release}${shared_ext}$major' | |
14912 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14913 | shlibpath_var=LD_LIBRARY_PATH | |
14914 | shlibpath_overrides_runpath=no | |
14915 | # This implies no fast_install, which is unacceptable. | |
14916 | # Some rework will be needed to allow for fast_install | |
14917 | # before this can be enabled. | |
14918 | hardcode_into_libs=yes | |
14919 | ||
14920 | # Append ld.so.conf contents to the search path | |
14921 | if test -f /etc/ld.so.conf; then | |
14922 | 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' ' '` | |
14923 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14924 | fi | |
14925 | ||
14926 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14927 | # powerpc, because MkLinux only supported shared libraries with the | |
14928 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14929 | # most powerpc-linux boxes support dynamic linking these days and | |
14930 | # people can always --disable-shared, the test was removed, and we | |
14931 | # assume the GNU/Linux dynamic linker is in use. | |
14932 | dynamic_linker='GNU/Linux ld.so' | |
14933 | ;; | |
14934 | ||
14935 | netbsdelf*-gnu) | |
14936 | version_type=linux | |
14937 | need_lib_prefix=no | |
14938 | need_version=no | |
14939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14940 | soname_spec='${libname}${release}${shared_ext}$major' | |
14941 | shlibpath_var=LD_LIBRARY_PATH | |
14942 | shlibpath_overrides_runpath=no | |
14943 | hardcode_into_libs=yes | |
14944 | dynamic_linker='NetBSD ld.elf_so' | |
14945 | ;; | |
14946 | ||
14947 | netbsd*) | |
14948 | version_type=sunos | |
14949 | need_lib_prefix=no | |
14950 | need_version=no | |
14951 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14953 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14954 | dynamic_linker='NetBSD (a.out) ld.so' | |
14955 | else | |
14956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14957 | soname_spec='${libname}${release}${shared_ext}$major' | |
14958 | dynamic_linker='NetBSD ld.elf_so' | |
14959 | fi | |
14960 | shlibpath_var=LD_LIBRARY_PATH | |
14961 | shlibpath_overrides_runpath=yes | |
14962 | hardcode_into_libs=yes | |
14963 | ;; | |
14964 | ||
14965 | newsos6) | |
14966 | version_type=linux | |
14967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14968 | shlibpath_var=LD_LIBRARY_PATH | |
14969 | shlibpath_overrides_runpath=yes | |
14970 | ;; | |
14971 | ||
14972 | nto-qnx*) | |
14973 | version_type=linux | |
14974 | need_lib_prefix=no | |
14975 | need_version=no | |
14976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14977 | soname_spec='${libname}${release}${shared_ext}$major' | |
14978 | shlibpath_var=LD_LIBRARY_PATH | |
14979 | shlibpath_overrides_runpath=yes | |
14980 | ;; | |
14981 | ||
14982 | openbsd*) | |
14983 | version_type=sunos | |
14984 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14985 | need_lib_prefix=no | |
14986 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14987 | case $host_os in | |
14988 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14989 | *) need_version=no ;; | |
14990 | esac | |
14991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14993 | shlibpath_var=LD_LIBRARY_PATH | |
14994 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14995 | case $host_os in | |
14996 | openbsd2.[89] | openbsd2.[89].*) | |
14997 | shlibpath_overrides_runpath=no | |
14998 | ;; | |
14999 | *) | |
15000 | shlibpath_overrides_runpath=yes | |
15001 | ;; | |
15002 | esac | |
15003 | else | |
15004 | shlibpath_overrides_runpath=yes | |
15005 | fi | |
15006 | ;; | |
15007 | ||
15008 | os2*) | |
15009 | libname_spec='$name' | |
15010 | shrext_cmds=".dll" | |
15011 | need_lib_prefix=no | |
15012 | library_names_spec='$libname${shared_ext} $libname.a' | |
15013 | dynamic_linker='OS/2 ld.exe' | |
15014 | shlibpath_var=LIBPATH | |
15015 | ;; | |
15016 | ||
15017 | osf3* | osf4* | osf5*) | |
15018 | version_type=osf | |
15019 | need_lib_prefix=no | |
15020 | need_version=no | |
15021 | soname_spec='${libname}${release}${shared_ext}$major' | |
15022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15023 | shlibpath_var=LD_LIBRARY_PATH | |
15024 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15025 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15026 | ;; | |
15027 | ||
15028 | rdos*) | |
15029 | dynamic_linker=no | |
15030 | ;; | |
15031 | ||
15032 | solaris*) | |
15033 | version_type=linux | |
15034 | need_lib_prefix=no | |
15035 | need_version=no | |
15036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15037 | soname_spec='${libname}${release}${shared_ext}$major' | |
15038 | shlibpath_var=LD_LIBRARY_PATH | |
15039 | shlibpath_overrides_runpath=yes | |
15040 | hardcode_into_libs=yes | |
15041 | # ldd complains unless libraries are executable | |
15042 | postinstall_cmds='chmod +x $lib' | |
15043 | ;; | |
15044 | ||
15045 | sunos4*) | |
15046 | version_type=sunos | |
15047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15048 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15049 | shlibpath_var=LD_LIBRARY_PATH | |
15050 | shlibpath_overrides_runpath=yes | |
15051 | if test "$with_gnu_ld" = yes; then | |
15052 | need_lib_prefix=no | |
15053 | fi | |
15054 | need_version=yes | |
15055 | ;; | |
15056 | ||
15057 | sysv4 | sysv4.3*) | |
15058 | version_type=linux | |
15059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15060 | soname_spec='${libname}${release}${shared_ext}$major' | |
15061 | shlibpath_var=LD_LIBRARY_PATH | |
15062 | case $host_vendor in | |
15063 | sni) | |
15064 | shlibpath_overrides_runpath=no | |
15065 | need_lib_prefix=no | |
15066 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15067 | runpath_var=LD_RUN_PATH | |
15068 | ;; | |
15069 | siemens) | |
15070 | need_lib_prefix=no | |
15071 | ;; | |
15072 | motorola) | |
15073 | need_lib_prefix=no | |
15074 | need_version=no | |
15075 | shlibpath_overrides_runpath=no | |
15076 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15077 | ;; | |
15078 | esac | |
15079 | ;; | |
15080 | ||
15081 | sysv4*MP*) | |
15082 | if test -d /usr/nec ;then | |
15083 | version_type=linux | |
15084 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15085 | soname_spec='$libname${shared_ext}.$major' | |
15086 | shlibpath_var=LD_LIBRARY_PATH | |
15087 | fi | |
15088 | ;; | |
15089 | ||
15090 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15091 | version_type=freebsd-elf | |
15092 | need_lib_prefix=no | |
15093 | need_version=no | |
15094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15095 | soname_spec='${libname}${release}${shared_ext}$major' | |
15096 | shlibpath_var=LD_LIBRARY_PATH | |
15097 | hardcode_into_libs=yes | |
15098 | if test "$with_gnu_ld" = yes; then | |
15099 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15100 | shlibpath_overrides_runpath=no | |
15101 | else | |
15102 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15103 | shlibpath_overrides_runpath=yes | |
15104 | case $host_os in | |
15105 | sco3.2v5*) | |
15106 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15107 | ;; | |
15108 | esac | |
15109 | fi | |
15110 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15111 | ;; | |
15112 | ||
15113 | uts4*) | |
15114 | version_type=linux | |
15115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15116 | soname_spec='${libname}${release}${shared_ext}$major' | |
15117 | shlibpath_var=LD_LIBRARY_PATH | |
15118 | ;; | |
15119 | ||
15120 | *) | |
15121 | dynamic_linker=no | |
15122 | ;; | |
15123 | esac | |
030272f3 VY |
15124 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15125 | $as_echo "$dynamic_linker" >&6; } | |
db137867 AC |
15126 | test "$dynamic_linker" = no && can_build_shared=no |
15127 | ||
b676ea3b | 15128 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
030272f3 | 15129 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
15130 | else |
15131 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
15132 | fi | |
15133 | ||
15134 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15135 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
030272f3 | 15136 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
15137 | else |
15138 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
15139 | fi | |
15140 | ||
15141 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15142 | ||
db137867 AC |
15143 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15144 | if test "$GCC" = yes; then | |
15145 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15146 | fi | |
15147 | ||
030272f3 VY |
15148 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15149 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
db137867 AC |
15150 | hardcode_action_CXX= |
15151 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
15152 | test -n "$runpath_var_CXX" || \ | |
15153 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15154 | ||
15155 | # We can hardcode non-existant directories. | |
15156 | if test "$hardcode_direct_CXX" != no && | |
15157 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15158 | # have to relink, otherwise we might link with an installed library | |
15159 | # when we should be linking with a yet-to-be-installed one | |
15160 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15161 | test "$hardcode_minus_L_CXX" != no; then | |
15162 | # Linking always hardcodes the temporary library directory. | |
15163 | hardcode_action_CXX=relink | |
15164 | else | |
15165 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15166 | hardcode_action_CXX=immediate | |
15167 | fi | |
15168 | else | |
15169 | # We cannot hardcode anything, or else we can only hardcode existing | |
15170 | # directories. | |
15171 | hardcode_action_CXX=unsupported | |
15172 | fi | |
030272f3 VY |
15173 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
15174 | $as_echo "$hardcode_action_CXX" >&6; } | |
db137867 AC |
15175 | |
15176 | if test "$hardcode_action_CXX" = relink; then | |
15177 | # Fast installation is not supported | |
15178 | enable_fast_install=no | |
15179 | elif test "$shlibpath_overrides_runpath" = yes || | |
15180 | test "$enable_shared" = no; then | |
15181 | # Fast installation is not necessary | |
15182 | enable_fast_install=needless | |
15183 | fi | |
15184 | ||
15185 | ||
15186 | # The else clause should only fire when bootstrapping the | |
15187 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15188 | # with your package, and you will get complaints that there are | |
15189 | # no rules to generate ltmain.sh. | |
15190 | if test -f "$ltmain"; then | |
15191 | # See if we are running on zsh, and set the options which allow our commands through | |
15192 | # without removal of \ escapes. | |
15193 | if test -n "${ZSH_VERSION+set}" ; then | |
15194 | setopt NO_GLOB_SUBST | |
15195 | fi | |
15196 | # Now quote all the things that may contain metacharacters while being | |
15197 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15198 | # variables and quote the copies for generation of the libtool script. | |
15199 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15200 | SED SHELL STRIP \ | |
15201 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15202 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15203 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
15204 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15205 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15206 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15207 | old_postinstall_cmds old_postuninstall_cmds \ | |
15208 | compiler_CXX \ | |
15209 | CC_CXX \ | |
15210 | LD_CXX \ | |
15211 | lt_prog_compiler_wl_CXX \ | |
15212 | lt_prog_compiler_pic_CXX \ | |
15213 | lt_prog_compiler_static_CXX \ | |
15214 | lt_prog_compiler_no_builtin_flag_CXX \ | |
15215 | export_dynamic_flag_spec_CXX \ | |
15216 | thread_safe_flag_spec_CXX \ | |
15217 | whole_archive_flag_spec_CXX \ | |
15218 | enable_shared_with_static_runtimes_CXX \ | |
15219 | old_archive_cmds_CXX \ | |
15220 | old_archive_from_new_cmds_CXX \ | |
15221 | predep_objects_CXX \ | |
15222 | postdep_objects_CXX \ | |
15223 | predeps_CXX \ | |
15224 | postdeps_CXX \ | |
15225 | compiler_lib_search_path_CXX \ | |
b676ea3b | 15226 | compiler_lib_search_dirs_CXX \ |
db137867 AC |
15227 | archive_cmds_CXX \ |
15228 | archive_expsym_cmds_CXX \ | |
15229 | postinstall_cmds_CXX \ | |
15230 | postuninstall_cmds_CXX \ | |
15231 | old_archive_from_expsyms_cmds_CXX \ | |
15232 | allow_undefined_flag_CXX \ | |
15233 | no_undefined_flag_CXX \ | |
15234 | export_symbols_cmds_CXX \ | |
15235 | hardcode_libdir_flag_spec_CXX \ | |
15236 | hardcode_libdir_flag_spec_ld_CXX \ | |
15237 | hardcode_libdir_separator_CXX \ | |
15238 | hardcode_automatic_CXX \ | |
15239 | module_cmds_CXX \ | |
15240 | module_expsym_cmds_CXX \ | |
15241 | lt_cv_prog_compiler_c_o_CXX \ | |
15242 | fix_srcfile_path_CXX \ | |
15243 | exclude_expsyms_CXX \ | |
15244 | include_expsyms_CXX; do | |
15245 | ||
15246 | case $var in | |
15247 | old_archive_cmds_CXX | \ | |
15248 | old_archive_from_new_cmds_CXX | \ | |
15249 | archive_cmds_CXX | \ | |
15250 | archive_expsym_cmds_CXX | \ | |
15251 | module_cmds_CXX | \ | |
15252 | module_expsym_cmds_CXX | \ | |
15253 | old_archive_from_expsyms_cmds_CXX | \ | |
15254 | export_symbols_cmds_CXX | \ | |
15255 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15256 | postinstall_cmds | postuninstall_cmds | \ | |
15257 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
15258 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15259 | # Double-quote double-evaled strings. | |
15260 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15261 | ;; | |
15262 | *) | |
15263 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15264 | ;; | |
15265 | esac | |
15266 | done | |
15267 | ||
15268 | case $lt_echo in | |
15269 | *'\$0 --fallback-echo"') | |
15270 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15271 | ;; | |
15272 | esac | |
15273 | ||
15274 | cfgfile="$ofile" | |
15275 | ||
15276 | cat <<__EOF__ >> "$cfgfile" | |
15277 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15278 | ||
15279 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15280 | ||
15281 | # Shell to use when invoking shell scripts. | |
15282 | SHELL=$lt_SHELL | |
15283 | ||
15284 | # Whether or not to build shared libraries. | |
15285 | build_libtool_libs=$enable_shared | |
15286 | ||
15287 | # Whether or not to build static libraries. | |
15288 | build_old_libs=$enable_static | |
15289 | ||
15290 | # Whether or not to add -lc for building shared libraries. | |
15291 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
15292 | ||
15293 | # Whether or not to disallow shared libs when runtime libs are static | |
15294 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
15295 | ||
15296 | # Whether or not to optimize for fast installation. | |
15297 | fast_install=$enable_fast_install | |
15298 | ||
15299 | # The host system. | |
15300 | host_alias=$host_alias | |
15301 | host=$host | |
15302 | host_os=$host_os | |
15303 | ||
15304 | # The build system. | |
15305 | build_alias=$build_alias | |
15306 | build=$build | |
15307 | build_os=$build_os | |
15308 | ||
15309 | # An echo program that does not interpret backslashes. | |
15310 | echo=$lt_echo | |
15311 | ||
15312 | # The archiver. | |
15313 | AR=$lt_AR | |
15314 | AR_FLAGS=$lt_AR_FLAGS | |
15315 | ||
15316 | # A C compiler. | |
15317 | LTCC=$lt_LTCC | |
15318 | ||
15319 | # LTCC compiler flags. | |
15320 | LTCFLAGS=$lt_LTCFLAGS | |
15321 | ||
15322 | # A language-specific compiler. | |
15323 | CC=$lt_compiler_CXX | |
15324 | ||
15325 | # Is the compiler the GNU C compiler? | |
15326 | with_gcc=$GCC_CXX | |
15327 | ||
15328 | # An ERE matcher. | |
15329 | EGREP=$lt_EGREP | |
15330 | ||
15331 | # The linker used to build libraries. | |
15332 | LD=$lt_LD_CXX | |
15333 | ||
15334 | # Whether we need hard or soft links. | |
15335 | LN_S=$lt_LN_S | |
15336 | ||
15337 | # A BSD-compatible nm program. | |
15338 | NM=$lt_NM | |
15339 | ||
15340 | # A symbol stripping program | |
15341 | STRIP=$lt_STRIP | |
15342 | ||
15343 | # Used to examine libraries when file_magic_cmd begins "file" | |
15344 | MAGIC_CMD=$MAGIC_CMD | |
15345 | ||
15346 | # Used on cygwin: DLL creation program. | |
15347 | DLLTOOL="$DLLTOOL" | |
15348 | ||
15349 | # Used on cygwin: object dumper. | |
15350 | OBJDUMP="$OBJDUMP" | |
15351 | ||
15352 | # Used on cygwin: assembler. | |
15353 | AS="$AS" | |
15354 | ||
15355 | # The name of the directory that contains temporary libtool files. | |
15356 | objdir=$objdir | |
15357 | ||
15358 | # How to create reloadable object files. | |
15359 | reload_flag=$lt_reload_flag | |
15360 | reload_cmds=$lt_reload_cmds | |
15361 | ||
15362 | # How to pass a linker flag through the compiler. | |
15363 | wl=$lt_lt_prog_compiler_wl_CXX | |
15364 | ||
15365 | # Object file suffix (normally "o"). | |
15366 | objext="$ac_objext" | |
15367 | ||
15368 | # Old archive suffix (normally "a"). | |
15369 | libext="$libext" | |
15370 | ||
15371 | # Shared library suffix (normally ".so"). | |
15372 | shrext_cmds='$shrext_cmds' | |
15373 | ||
15374 | # Executable file suffix (normally ""). | |
15375 | exeext="$exeext" | |
15376 | ||
15377 | # Additional compiler flags for building library objects. | |
15378 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
15379 | pic_mode=$pic_mode | |
15380 | ||
15381 | # What is the maximum length of a command? | |
15382 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
15383 | ||
15384 | # Does compiler simultaneously support -c and -o options? | |
15385 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
15386 | ||
15387 | # Must we lock files when doing compilation? | |
15388 | need_locks=$lt_need_locks | |
15389 | ||
15390 | # Do we need the lib prefix for modules? | |
15391 | need_lib_prefix=$need_lib_prefix | |
15392 | ||
15393 | # Do we need a version for libraries? | |
15394 | need_version=$need_version | |
15395 | ||
15396 | # Whether dlopen is supported. | |
15397 | dlopen_support=$enable_dlopen | |
15398 | ||
15399 | # Whether dlopen of programs is supported. | |
15400 | dlopen_self=$enable_dlopen_self | |
15401 | ||
15402 | # Whether dlopen of statically linked programs is supported. | |
15403 | dlopen_self_static=$enable_dlopen_self_static | |
15404 | ||
15405 | # Compiler flag to prevent dynamic linking. | |
15406 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
15407 | ||
15408 | # Compiler flag to turn off builtin functions. | |
15409 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
15410 | ||
15411 | # Compiler flag to allow reflexive dlopens. | |
15412 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
15413 | ||
15414 | # Compiler flag to generate shared objects directly from archives. | |
15415 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
15416 | ||
15417 | # Compiler flag to generate thread-safe objects. | |
15418 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
15419 | ||
15420 | # Library versioning type. | |
15421 | version_type=$version_type | |
15422 | ||
15423 | # Format of library name prefix. | |
15424 | libname_spec=$lt_libname_spec | |
15425 | ||
15426 | # List of archive names. First name is the real one, the rest are links. | |
15427 | # The last name is the one that the linker finds with -lNAME. | |
15428 | library_names_spec=$lt_library_names_spec | |
15429 | ||
15430 | # The coded name of the library, if different from the real name. | |
15431 | soname_spec=$lt_soname_spec | |
15432 | ||
15433 | # Commands used to build and install an old-style archive. | |
15434 | RANLIB=$lt_RANLIB | |
15435 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
15436 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15437 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15438 | ||
15439 | # Create an old-style archive from a shared archive. | |
15440 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
15441 | ||
15442 | # Create a temporary old-style archive to link instead of a shared archive. | |
15443 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
15444 | ||
15445 | # Commands used to build and install a shared archive. | |
15446 | archive_cmds=$lt_archive_cmds_CXX | |
15447 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
15448 | postinstall_cmds=$lt_postinstall_cmds | |
15449 | postuninstall_cmds=$lt_postuninstall_cmds | |
15450 | ||
15451 | # Commands used to build a loadable module (assumed same as above if empty) | |
15452 | module_cmds=$lt_module_cmds_CXX | |
15453 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
15454 | ||
15455 | # Commands to strip libraries. | |
15456 | old_striplib=$lt_old_striplib | |
15457 | striplib=$lt_striplib | |
15458 | ||
15459 | # Dependencies to place before the objects being linked to create a | |
15460 | # shared library. | |
15461 | predep_objects=$lt_predep_objects_CXX | |
15462 | ||
15463 | # Dependencies to place after the objects being linked to create a | |
15464 | # shared library. | |
15465 | postdep_objects=$lt_postdep_objects_CXX | |
15466 | ||
15467 | # Dependencies to place before the objects being linked to create a | |
15468 | # shared library. | |
15469 | predeps=$lt_predeps_CXX | |
15470 | ||
15471 | # Dependencies to place after the objects being linked to create a | |
15472 | # shared library. | |
15473 | postdeps=$lt_postdeps_CXX | |
15474 | ||
b676ea3b AC |
15475 | # The directories searched by this compiler when creating a shared |
15476 | # library | |
15477 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
15478 | ||
db137867 AC |
15479 | # The library search path used internally by the compiler when linking |
15480 | # a shared library. | |
15481 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
15482 | ||
15483 | # Method to check whether dependent libraries are shared objects. | |
15484 | deplibs_check_method=$lt_deplibs_check_method | |
15485 | ||
15486 | # Command to use when deplibs_check_method == file_magic. | |
15487 | file_magic_cmd=$lt_file_magic_cmd | |
15488 | ||
15489 | # Flag that allows shared libraries with undefined symbols to be built. | |
15490 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
15491 | ||
15492 | # Flag that forces no undefined symbols. | |
15493 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
15494 | ||
15495 | # Commands used to finish a libtool library installation in a directory. | |
15496 | finish_cmds=$lt_finish_cmds | |
15497 | ||
15498 | # Same as above, but a single script fragment to be evaled but not shown. | |
15499 | finish_eval=$lt_finish_eval | |
15500 | ||
15501 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15502 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15503 | ||
15504 | # Transform the output of nm in a proper C declaration | |
15505 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15506 | ||
15507 | # Transform the output of nm in a C name address pair | |
15508 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15509 | ||
15510 | # This is the shared library runtime path variable. | |
15511 | runpath_var=$runpath_var | |
15512 | ||
15513 | # This is the shared library path variable. | |
15514 | shlibpath_var=$shlibpath_var | |
15515 | ||
15516 | # Is shlibpath searched before the hard-coded library search path? | |
15517 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15518 | ||
15519 | # How to hardcode a shared library path into an executable. | |
15520 | hardcode_action=$hardcode_action_CXX | |
15521 | ||
15522 | # Whether we should hardcode library paths into libraries. | |
15523 | hardcode_into_libs=$hardcode_into_libs | |
15524 | ||
15525 | # Flag to hardcode \$libdir into a binary during linking. | |
15526 | # This must work even if \$libdir does not exist. | |
15527 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
15528 | ||
15529 | # If ld is used when linking, flag to hardcode \$libdir into | |
15530 | # a binary during linking. This must work even if \$libdir does | |
15531 | # not exist. | |
15532 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
15533 | ||
15534 | # Whether we need a single -rpath flag with a separated argument. | |
15535 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
15536 | ||
15537 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15538 | # resulting binary. | |
15539 | hardcode_direct=$hardcode_direct_CXX | |
15540 | ||
15541 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15542 | # resulting binary. | |
15543 | hardcode_minus_L=$hardcode_minus_L_CXX | |
15544 | ||
15545 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15546 | # the resulting binary. | |
15547 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
15548 | ||
15549 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15550 | # and all subsequent libraries and executables linked against it. | |
15551 | hardcode_automatic=$hardcode_automatic_CXX | |
15552 | ||
15553 | # Variables whose values should be saved in libtool wrapper scripts and | |
15554 | # restored at relink time. | |
15555 | variables_saved_for_relink="$variables_saved_for_relink" | |
15556 | ||
15557 | # Whether libtool must link a program against all its dependency libraries. | |
15558 | link_all_deplibs=$link_all_deplibs_CXX | |
15559 | ||
15560 | # Compile-time system search path for libraries | |
15561 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15562 | ||
15563 | # Run-time system search path for libraries | |
15564 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15565 | ||
15566 | # Fix the shell variable \$srcfile for the compiler. | |
15567 | fix_srcfile_path=$lt_fix_srcfile_path | |
15568 | ||
15569 | # Set to yes if exported symbols are required. | |
15570 | always_export_symbols=$always_export_symbols_CXX | |
15571 | ||
15572 | # The commands to list exported symbols. | |
15573 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
15574 | ||
15575 | # The commands to extract the exported symbol list from a shared archive. | |
15576 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15577 | ||
15578 | # Symbols that should not be listed in the preloaded symbols. | |
15579 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
15580 | ||
15581 | # Symbols that must always be exported. | |
15582 | include_expsyms=$lt_include_expsyms_CXX | |
15583 | ||
15584 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15585 | ||
15586 | __EOF__ | |
15587 | ||
15588 | ||
15589 | else | |
15590 | # If there is no Makefile yet, we rely on a make rule to execute | |
15591 | # `config.status --recheck' to rerun these tests and create the | |
15592 | # libtool script then. | |
15593 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15594 | if test -f "$ltmain_in"; then | |
15595 | test -f Makefile && make "$ltmain" | |
15596 | fi | |
15597 | fi | |
15598 | ||
15599 | ||
15600 | ac_ext=c | |
15601 | ac_cpp='$CPP $CPPFLAGS' | |
15602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15605 | ||
15606 | CC=$lt_save_CC | |
15607 | LDCXX=$LD | |
15608 | LD=$lt_save_LD | |
15609 | GCC=$lt_save_GCC | |
15610 | with_gnu_ldcxx=$with_gnu_ld | |
15611 | with_gnu_ld=$lt_save_with_gnu_ld | |
15612 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15613 | lt_cv_path_LD=$lt_save_path_LD | |
15614 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15615 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15616 | ||
15617 | else | |
15618 | tagname="" | |
15619 | fi | |
15620 | ;; | |
15621 | ||
15622 | F77) | |
15623 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
15624 | ||
15625 | ac_ext=f | |
15626 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
15627 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15628 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
15629 | ||
15630 | ||
15631 | archive_cmds_need_lc_F77=no | |
15632 | allow_undefined_flag_F77= | |
15633 | always_export_symbols_F77=no | |
15634 | archive_expsym_cmds_F77= | |
15635 | export_dynamic_flag_spec_F77= | |
15636 | hardcode_direct_F77=no | |
15637 | hardcode_libdir_flag_spec_F77= | |
15638 | hardcode_libdir_flag_spec_ld_F77= | |
15639 | hardcode_libdir_separator_F77= | |
15640 | hardcode_minus_L_F77=no | |
15641 | hardcode_automatic_F77=no | |
15642 | module_cmds_F77= | |
15643 | module_expsym_cmds_F77= | |
15644 | link_all_deplibs_F77=unknown | |
15645 | old_archive_cmds_F77=$old_archive_cmds | |
15646 | no_undefined_flag_F77= | |
15647 | whole_archive_flag_spec_F77= | |
15648 | enable_shared_with_static_runtimes_F77=no | |
15649 | ||
15650 | # Source file extension for f77 test sources. | |
15651 | ac_ext=f | |
15652 | ||
15653 | # Object file extension for compiled f77 test sources. | |
15654 | objext=o | |
15655 | objext_F77=$objext | |
15656 | ||
15657 | # Code to be used in simple compile tests | |
15658 | lt_simple_compile_test_code="\ | |
15659 | subroutine t | |
15660 | return | |
15661 | end | |
15662 | " | |
15663 | ||
15664 | # Code to be used in simple link tests | |
15665 | lt_simple_link_test_code="\ | |
15666 | program t | |
15667 | end | |
15668 | " | |
15669 | ||
15670 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15671 | ||
15672 | # If no C compiler was specified, use CC. | |
15673 | LTCC=${LTCC-"$CC"} | |
15674 | ||
15675 | # If no C compiler flags were specified, use CFLAGS. | |
15676 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15677 | ||
15678 | # Allow CC to be a program name with arguments. | |
15679 | compiler=$CC | |
15680 | ||
15681 | ||
15682 | # save warnings/boilerplate of simple test code | |
15683 | ac_outfile=conftest.$ac_objext | |
15684 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15685 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15686 | _lt_compiler_boilerplate=`cat conftest.err` | |
15687 | $rm conftest* | |
15688 | ||
15689 | ac_outfile=conftest.$ac_objext | |
15690 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
15691 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15692 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 15693 | $rm -r conftest* |
db137867 AC |
15694 | |
15695 | ||
15696 | # Allow CC to be a program name with arguments. | |
15697 | lt_save_CC="$CC" | |
15698 | CC=${F77-"f77"} | |
15699 | compiler=$CC | |
15700 | compiler_F77=$CC | |
15701 | for cc_temp in $compiler""; do | |
15702 | case $cc_temp in | |
15703 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15704 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15705 | \-*) ;; | |
15706 | *) break;; | |
15707 | esac | |
15708 | done | |
15709 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15710 | ||
15711 | ||
030272f3 VY |
15712 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
15713 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
15714 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
15715 | $as_echo "$can_build_shared" >&6; } | |
db137867 | 15716 | |
030272f3 VY |
15717 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
15718 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
db137867 AC |
15719 | test "$can_build_shared" = "no" && enable_shared=no |
15720 | ||
15721 | # On AIX, shared libraries and static libraries use the same namespace, and | |
15722 | # are all built from PIC. | |
15723 | case $host_os in | |
15724 | aix3*) | |
15725 | test "$enable_shared" = yes && enable_static=no | |
15726 | if test -n "$RANLIB"; then | |
15727 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
15728 | postinstall_cmds='$RANLIB $lib' | |
15729 | fi | |
15730 | ;; | |
b676ea3b | 15731 | aix[4-9]*) |
db137867 AC |
15732 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
15733 | test "$enable_shared" = yes && enable_static=no | |
15734 | fi | |
15735 | ;; | |
15736 | esac | |
030272f3 VY |
15737 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
15738 | $as_echo "$enable_shared" >&6; } | |
db137867 | 15739 | |
030272f3 VY |
15740 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
15741 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
db137867 AC |
15742 | # Make sure either enable_shared or enable_static is yes. |
15743 | test "$enable_shared" = yes || enable_static=yes | |
030272f3 VY |
15744 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
15745 | $as_echo "$enable_static" >&6; } | |
db137867 AC |
15746 | |
15747 | GCC_F77="$G77" | |
15748 | LD_F77="$LD" | |
15749 | ||
15750 | lt_prog_compiler_wl_F77= | |
15751 | lt_prog_compiler_pic_F77= | |
15752 | lt_prog_compiler_static_F77= | |
15753 | ||
030272f3 VY |
15754 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15755 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
db137867 AC |
15756 | |
15757 | if test "$GCC" = yes; then | |
15758 | lt_prog_compiler_wl_F77='-Wl,' | |
15759 | lt_prog_compiler_static_F77='-static' | |
15760 | ||
15761 | case $host_os in | |
15762 | aix*) | |
15763 | # All AIX code is PIC. | |
15764 | if test "$host_cpu" = ia64; then | |
15765 | # AIX 5 now supports IA64 processor | |
15766 | lt_prog_compiler_static_F77='-Bstatic' | |
15767 | fi | |
15768 | ;; | |
15769 | ||
15770 | amigaos*) | |
15771 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15772 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15773 | # like `-m68040'. | |
15774 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
15775 | ;; | |
15776 | ||
15777 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15778 | # PIC is the default for these OSes. | |
15779 | ;; | |
15780 | ||
15781 | mingw* | cygwin* | pw32* | os2*) | |
15782 | # This hack is so that the source file can tell whether it is being | |
15783 | # built for inclusion in a dll (and should export symbols for example). | |
15784 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
15785 | # (--disable-auto-import) libraries | |
15786 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15787 | ;; | |
15788 | ||
15789 | darwin* | rhapsody*) | |
15790 | # PIC is the default on this platform | |
15791 | # Common symbols not allowed in MH_DYLIB files | |
15792 | lt_prog_compiler_pic_F77='-fno-common' | |
15793 | ;; | |
15794 | ||
15795 | interix[3-9]*) | |
15796 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15797 | # Instead, we relocate shared libraries at runtime. | |
15798 | ;; | |
15799 | ||
15800 | msdosdjgpp*) | |
15801 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15802 | # on systems that don't support them. | |
15803 | lt_prog_compiler_can_build_shared_F77=no | |
15804 | enable_shared=no | |
15805 | ;; | |
15806 | ||
15807 | sysv4*MP*) | |
15808 | if test -d /usr/nec; then | |
15809 | lt_prog_compiler_pic_F77=-Kconform_pic | |
15810 | fi | |
15811 | ;; | |
15812 | ||
15813 | hpux*) | |
15814 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15815 | # not for PA HP-UX. | |
15816 | case $host_cpu in | |
15817 | hppa*64*|ia64*) | |
15818 | # +Z the default | |
15819 | ;; | |
15820 | *) | |
15821 | lt_prog_compiler_pic_F77='-fPIC' | |
15822 | ;; | |
15823 | esac | |
15824 | ;; | |
15825 | ||
15826 | *) | |
15827 | lt_prog_compiler_pic_F77='-fPIC' | |
15828 | ;; | |
15829 | esac | |
15830 | else | |
15831 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15832 | case $host_os in | |
15833 | aix*) | |
15834 | lt_prog_compiler_wl_F77='-Wl,' | |
15835 | if test "$host_cpu" = ia64; then | |
15836 | # AIX 5 now supports IA64 processor | |
15837 | lt_prog_compiler_static_F77='-Bstatic' | |
15838 | else | |
15839 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
15840 | fi | |
15841 | ;; | |
15842 | darwin*) | |
15843 | # PIC is the default on this platform | |
15844 | # Common symbols not allowed in MH_DYLIB files | |
15845 | case $cc_basename in | |
15846 | xlc*) | |
15847 | lt_prog_compiler_pic_F77='-qnocommon' | |
15848 | lt_prog_compiler_wl_F77='-Wl,' | |
15849 | ;; | |
15850 | esac | |
15851 | ;; | |
15852 | ||
15853 | mingw* | cygwin* | pw32* | os2*) | |
15854 | # This hack is so that the source file can tell whether it is being | |
15855 | # built for inclusion in a dll (and should export symbols for example). | |
15856 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15857 | ;; | |
15858 | ||
15859 | hpux9* | hpux10* | hpux11*) | |
15860 | lt_prog_compiler_wl_F77='-Wl,' | |
15861 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15862 | # not for PA HP-UX. | |
15863 | case $host_cpu in | |
15864 | hppa*64*|ia64*) | |
15865 | # +Z the default | |
15866 | ;; | |
15867 | *) | |
15868 | lt_prog_compiler_pic_F77='+Z' | |
15869 | ;; | |
15870 | esac | |
15871 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15872 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
15873 | ;; | |
15874 | ||
15875 | irix5* | irix6* | nonstopux*) | |
15876 | lt_prog_compiler_wl_F77='-Wl,' | |
15877 | # PIC (with -KPIC) is the default. | |
15878 | lt_prog_compiler_static_F77='-non_shared' | |
15879 | ;; | |
15880 | ||
15881 | newsos6) | |
15882 | lt_prog_compiler_pic_F77='-KPIC' | |
15883 | lt_prog_compiler_static_F77='-Bstatic' | |
15884 | ;; | |
15885 | ||
15886 | linux* | k*bsd*-gnu) | |
15887 | case $cc_basename in | |
15888 | icc* | ecc*) | |
15889 | lt_prog_compiler_wl_F77='-Wl,' | |
15890 | lt_prog_compiler_pic_F77='-KPIC' | |
15891 | lt_prog_compiler_static_F77='-static' | |
15892 | ;; | |
15893 | pgcc* | pgf77* | pgf90* | pgf95*) | |
15894 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
15895 | # which looks to be a dead project) | |
15896 | lt_prog_compiler_wl_F77='-Wl,' | |
15897 | lt_prog_compiler_pic_F77='-fpic' | |
15898 | lt_prog_compiler_static_F77='-Bstatic' | |
15899 | ;; | |
15900 | ccc*) | |
15901 | lt_prog_compiler_wl_F77='-Wl,' | |
15902 | # All Alpha code is PIC. | |
15903 | lt_prog_compiler_static_F77='-non_shared' | |
15904 | ;; | |
15905 | *) | |
15906 | case `$CC -V 2>&1 | sed 5q` in | |
15907 | *Sun\ C*) | |
15908 | # Sun C 5.9 | |
15909 | lt_prog_compiler_pic_F77='-KPIC' | |
15910 | lt_prog_compiler_static_F77='-Bstatic' | |
15911 | lt_prog_compiler_wl_F77='-Wl,' | |
15912 | ;; | |
15913 | *Sun\ F*) | |
15914 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
15915 | lt_prog_compiler_pic_F77='-KPIC' | |
15916 | lt_prog_compiler_static_F77='-Bstatic' | |
15917 | lt_prog_compiler_wl_F77='' | |
15918 | ;; | |
15919 | esac | |
15920 | ;; | |
15921 | esac | |
15922 | ;; | |
15923 | ||
15924 | osf3* | osf4* | osf5*) | |
15925 | lt_prog_compiler_wl_F77='-Wl,' | |
15926 | # All OSF/1 code is PIC. | |
15927 | lt_prog_compiler_static_F77='-non_shared' | |
15928 | ;; | |
15929 | ||
15930 | rdos*) | |
15931 | lt_prog_compiler_static_F77='-non_shared' | |
15932 | ;; | |
15933 | ||
15934 | solaris*) | |
15935 | lt_prog_compiler_pic_F77='-KPIC' | |
15936 | lt_prog_compiler_static_F77='-Bstatic' | |
15937 | case $cc_basename in | |
15938 | f77* | f90* | f95*) | |
15939 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
15940 | *) | |
15941 | lt_prog_compiler_wl_F77='-Wl,';; | |
15942 | esac | |
15943 | ;; | |
15944 | ||
15945 | sunos4*) | |
15946 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
15947 | lt_prog_compiler_pic_F77='-PIC' | |
15948 | lt_prog_compiler_static_F77='-Bstatic' | |
15949 | ;; | |
15950 | ||
15951 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
15952 | lt_prog_compiler_wl_F77='-Wl,' | |
15953 | lt_prog_compiler_pic_F77='-KPIC' | |
15954 | lt_prog_compiler_static_F77='-Bstatic' | |
15955 | ;; | |
15956 | ||
15957 | sysv4*MP*) | |
15958 | if test -d /usr/nec ;then | |
15959 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
15960 | lt_prog_compiler_static_F77='-Bstatic' | |
15961 | fi | |
15962 | ;; | |
15963 | ||
15964 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15965 | lt_prog_compiler_wl_F77='-Wl,' | |
15966 | lt_prog_compiler_pic_F77='-KPIC' | |
15967 | lt_prog_compiler_static_F77='-Bstatic' | |
15968 | ;; | |
15969 | ||
15970 | unicos*) | |
15971 | lt_prog_compiler_wl_F77='-Wl,' | |
15972 | lt_prog_compiler_can_build_shared_F77=no | |
15973 | ;; | |
15974 | ||
15975 | uts4*) | |
15976 | lt_prog_compiler_pic_F77='-pic' | |
15977 | lt_prog_compiler_static_F77='-Bstatic' | |
15978 | ;; | |
15979 | ||
15980 | *) | |
15981 | lt_prog_compiler_can_build_shared_F77=no | |
15982 | ;; | |
15983 | esac | |
15984 | fi | |
15985 | ||
030272f3 VY |
15986 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
15987 | $as_echo "$lt_prog_compiler_pic_F77" >&6; } | |
db137867 AC |
15988 | |
15989 | # | |
15990 | # Check to make sure the PIC flag actually works. | |
15991 | # | |
15992 | if test -n "$lt_prog_compiler_pic_F77"; then | |
15993 | ||
030272f3 VY |
15994 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
15995 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } | |
b676ea3b | 15996 | if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then |
030272f3 | 15997 | $as_echo_n "(cached) " >&6 |
db137867 | 15998 | else |
b676ea3b | 15999 | lt_cv_prog_compiler_pic_works_F77=no |
db137867 AC |
16000 | ac_outfile=conftest.$ac_objext |
16001 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16002 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
16003 | # Insert the option either (1) after the last *FLAGS variable, or | |
16004 | # (2) before a word containing "conftest.", or (3) at the end. | |
16005 | # Note that $ac_compile itself does not contain backslashes and begins | |
16006 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16007 | # The option is referenced via a variable to avoid confusing sed. | |
16008 | lt_compile=`echo "$ac_compile" | $SED \ | |
16009 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16010 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16011 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 16012 | (eval echo "\"\$as_me:16012: $lt_compile\"" >&5) |
db137867 AC |
16013 | (eval "$lt_compile" 2>conftest.err) |
16014 | ac_status=$? | |
16015 | cat conftest.err >&5 | |
030272f3 | 16016 | echo "$as_me:16016: \$? = $ac_status" >&5 |
db137867 AC |
16017 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16018 | # The compiler can only warn and ignore the option if not recognized | |
16019 | # So say no if there are warnings other than the usual output. | |
16020 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16021 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16022 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 16023 | lt_cv_prog_compiler_pic_works_F77=yes |
db137867 AC |
16024 | fi |
16025 | fi | |
16026 | $rm conftest* | |
16027 | ||
16028 | fi | |
030272f3 VY |
16029 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 |
16030 | $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } | |
db137867 | 16031 | |
b676ea3b | 16032 | if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then |
db137867 AC |
16033 | case $lt_prog_compiler_pic_F77 in |
16034 | "" | " "*) ;; | |
16035 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
16036 | esac | |
16037 | else | |
16038 | lt_prog_compiler_pic_F77= | |
16039 | lt_prog_compiler_can_build_shared_F77=no | |
16040 | fi | |
16041 | ||
16042 | fi | |
16043 | case $host_os in | |
16044 | # For platforms which do not support PIC, -DPIC is meaningless: | |
16045 | *djgpp*) | |
16046 | lt_prog_compiler_pic_F77= | |
16047 | ;; | |
16048 | *) | |
16049 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
16050 | ;; | |
16051 | esac | |
16052 | ||
16053 | # | |
16054 | # Check to make sure the static flag actually works. | |
16055 | # | |
16056 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
030272f3 VY |
16057 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16058 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
b676ea3b | 16059 | if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then |
030272f3 | 16060 | $as_echo_n "(cached) " >&6 |
db137867 | 16061 | else |
b676ea3b | 16062 | lt_cv_prog_compiler_static_works_F77=no |
db137867 AC |
16063 | save_LDFLAGS="$LDFLAGS" |
16064 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16065 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
16066 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16067 | # The linker can only warn and ignore the option if not recognized | |
16068 | # So say no if there are warnings | |
16069 | if test -s conftest.err; then | |
16070 | # Append any errors to the config.log. | |
16071 | cat conftest.err 1>&5 | |
16072 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16073 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16074 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 16075 | lt_cv_prog_compiler_static_works_F77=yes |
db137867 AC |
16076 | fi |
16077 | else | |
b676ea3b | 16078 | lt_cv_prog_compiler_static_works_F77=yes |
db137867 AC |
16079 | fi |
16080 | fi | |
b676ea3b | 16081 | $rm -r conftest* |
db137867 AC |
16082 | LDFLAGS="$save_LDFLAGS" |
16083 | ||
16084 | fi | |
030272f3 VY |
16085 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 |
16086 | $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } | |
db137867 | 16087 | |
b676ea3b | 16088 | if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then |
db137867 AC |
16089 | : |
16090 | else | |
16091 | lt_prog_compiler_static_F77= | |
16092 | fi | |
16093 | ||
16094 | ||
030272f3 VY |
16095 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16096 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
db137867 | 16097 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
030272f3 | 16098 | $as_echo_n "(cached) " >&6 |
db137867 AC |
16099 | else |
16100 | lt_cv_prog_compiler_c_o_F77=no | |
16101 | $rm -r conftest 2>/dev/null | |
16102 | mkdir conftest | |
16103 | cd conftest | |
16104 | mkdir out | |
16105 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16106 | ||
16107 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16108 | # Insert the option either (1) after the last *FLAGS variable, or | |
16109 | # (2) before a word containing "conftest.", or (3) at the end. | |
16110 | # Note that $ac_compile itself does not contain backslashes and begins | |
16111 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16112 | lt_compile=`echo "$ac_compile" | $SED \ | |
16113 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16114 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16115 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 16116 | (eval echo "\"\$as_me:16116: $lt_compile\"" >&5) |
db137867 AC |
16117 | (eval "$lt_compile" 2>out/conftest.err) |
16118 | ac_status=$? | |
16119 | cat out/conftest.err >&5 | |
030272f3 | 16120 | echo "$as_me:16120: \$? = $ac_status" >&5 |
db137867 AC |
16121 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16122 | then | |
16123 | # The compiler can only warn and ignore the option if not recognized | |
16124 | # So say no if there are warnings | |
16125 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16126 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16127 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16128 | lt_cv_prog_compiler_c_o_F77=yes | |
16129 | fi | |
16130 | fi | |
16131 | chmod u+w . 2>&5 | |
16132 | $rm conftest* | |
16133 | # SGI C++ compiler will create directory out/ii_files/ for | |
16134 | # template instantiation | |
16135 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16136 | $rm out/* && rmdir out | |
16137 | cd .. | |
16138 | rmdir conftest | |
16139 | $rm conftest* | |
16140 | ||
16141 | fi | |
030272f3 VY |
16142 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
16143 | $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } | |
db137867 AC |
16144 | |
16145 | ||
16146 | hard_links="nottested" | |
16147 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
16148 | # do not overwrite the value of need_locks provided by the user | |
030272f3 VY |
16149 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16150 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
db137867 AC |
16151 | hard_links=yes |
16152 | $rm conftest* | |
16153 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16154 | touch conftest.a | |
16155 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16156 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
030272f3 VY |
16157 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
16158 | $as_echo "$hard_links" >&6; } | |
db137867 | 16159 | if test "$hard_links" = no; then |
030272f3 VY |
16160 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16161 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
db137867 AC |
16162 | need_locks=warn |
16163 | fi | |
16164 | else | |
16165 | need_locks=no | |
16166 | fi | |
16167 | ||
030272f3 VY |
16168 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16169 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
db137867 AC |
16170 | |
16171 | runpath_var= | |
16172 | allow_undefined_flag_F77= | |
16173 | enable_shared_with_static_runtimes_F77=no | |
16174 | archive_cmds_F77= | |
16175 | archive_expsym_cmds_F77= | |
16176 | old_archive_From_new_cmds_F77= | |
16177 | old_archive_from_expsyms_cmds_F77= | |
16178 | export_dynamic_flag_spec_F77= | |
16179 | whole_archive_flag_spec_F77= | |
16180 | thread_safe_flag_spec_F77= | |
16181 | hardcode_libdir_flag_spec_F77= | |
16182 | hardcode_libdir_flag_spec_ld_F77= | |
16183 | hardcode_libdir_separator_F77= | |
16184 | hardcode_direct_F77=no | |
16185 | hardcode_minus_L_F77=no | |
16186 | hardcode_shlibpath_var_F77=unsupported | |
16187 | link_all_deplibs_F77=unknown | |
16188 | hardcode_automatic_F77=no | |
16189 | module_cmds_F77= | |
16190 | module_expsym_cmds_F77= | |
16191 | always_export_symbols_F77=no | |
16192 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16193 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16194 | # included in the symbol list | |
16195 | include_expsyms_F77= | |
16196 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
16197 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16198 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16199 | # as well as any symbol that contains `d'. | |
b676ea3b | 16200 | exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
16201 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16202 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16203 | # the symbol is explicitly referenced. Since portable code cannot | |
16204 | # rely on this symbol name, it's probably fine to never include it in | |
16205 | # preloaded symbol tables. | |
b676ea3b | 16206 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
16207 | extract_expsyms_cmds= |
16208 | # Just being paranoid about ensuring that cc_basename is set. | |
16209 | for cc_temp in $compiler""; do | |
16210 | case $cc_temp in | |
16211 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16212 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16213 | \-*) ;; | |
16214 | *) break;; | |
16215 | esac | |
16216 | done | |
16217 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16218 | ||
16219 | case $host_os in | |
16220 | cygwin* | mingw* | pw32*) | |
16221 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16222 | # When not using gcc, we currently assume that we are using | |
16223 | # Microsoft Visual C++. | |
16224 | if test "$GCC" != yes; then | |
16225 | with_gnu_ld=no | |
16226 | fi | |
16227 | ;; | |
16228 | interix*) | |
16229 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16230 | with_gnu_ld=yes | |
16231 | ;; | |
16232 | openbsd*) | |
16233 | with_gnu_ld=no | |
16234 | ;; | |
16235 | esac | |
16236 | ||
16237 | ld_shlibs_F77=yes | |
16238 | if test "$with_gnu_ld" = yes; then | |
16239 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16240 | wlarc='${wl}' | |
16241 | ||
16242 | # Set some defaults for GNU ld with shared library support. These | |
16243 | # are reset later if shared libraries are not supported. Putting them | |
16244 | # here allows them to be overridden if necessary. | |
16245 | runpath_var=LD_RUN_PATH | |
16246 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
16247 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
16248 | # ancient GNU ld didn't support --whole-archive et. al. | |
16249 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16250 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16251 | else | |
16252 | whole_archive_flag_spec_F77= | |
16253 | fi | |
16254 | supports_anon_versioning=no | |
16255 | case `$LD -v 2>/dev/null` in | |
16256 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16257 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16258 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16259 | *\ 2.11.*) ;; # other 2.11 versions | |
16260 | *) supports_anon_versioning=yes ;; | |
16261 | esac | |
16262 | ||
16263 | # See if GNU ld supports shared libraries. | |
16264 | case $host_os in | |
b676ea3b | 16265 | aix[3-9]*) |
db137867 AC |
16266 | # On AIX/PPC, the GNU linker is very broken |
16267 | if test "$host_cpu" != ia64; then | |
16268 | ld_shlibs_F77=no | |
16269 | cat <<EOF 1>&2 | |
16270 | ||
16271 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16272 | *** to be unable to reliably create shared libraries on AIX. | |
16273 | *** Therefore, libtool is disabling shared libraries support. If you | |
16274 | *** really care for shared libraries, you may want to modify your PATH | |
16275 | *** so that a non-GNU linker is found, and then restart. | |
16276 | ||
16277 | EOF | |
16278 | fi | |
16279 | ;; | |
16280 | ||
16281 | amigaos*) | |
16282 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16283 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16284 | hardcode_minus_L_F77=yes | |
16285 | ||
16286 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16287 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16288 | # to version 4, is to share data among multiple programs linked | |
16289 | # with the same dynamic library. Since this doesn't match the | |
16290 | # behavior of shared libraries on other platforms, we can't use | |
16291 | # them. | |
16292 | ld_shlibs_F77=no | |
16293 | ;; | |
16294 | ||
16295 | beos*) | |
16296 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16297 | allow_undefined_flag_F77=unsupported | |
16298 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16299 | # support --undefined. This deserves some investigation. FIXME | |
16300 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16301 | else | |
16302 | ld_shlibs_F77=no | |
16303 | fi | |
16304 | ;; | |
16305 | ||
16306 | cygwin* | mingw* | pw32*) | |
16307 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
16308 | # as there is no search path for DLLs. | |
16309 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16310 | allow_undefined_flag_F77=unsupported | |
16311 | always_export_symbols_F77=no | |
16312 | enable_shared_with_static_runtimes_F77=yes | |
16313 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
16314 | ||
16315 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16316 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16317 | # If the export-symbols file already is a .def file (1st line | |
16318 | # is EXPORTS), use it as is; otherwise, prepend... | |
16319 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16320 | cp $export_symbols $output_objdir/$soname.def; | |
16321 | else | |
16322 | echo EXPORTS > $output_objdir/$soname.def; | |
16323 | cat $export_symbols >> $output_objdir/$soname.def; | |
16324 | fi~ | |
16325 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16326 | else | |
16327 | ld_shlibs_F77=no | |
16328 | fi | |
16329 | ;; | |
16330 | ||
16331 | interix[3-9]*) | |
16332 | hardcode_direct_F77=no | |
16333 | hardcode_shlibpath_var_F77=no | |
16334 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16335 | export_dynamic_flag_spec_F77='${wl}-E' | |
16336 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16337 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16338 | # default) and relocated if they conflict, which is a slow very memory | |
16339 | # consuming and fragmenting process. To avoid this, we pick a random, | |
16340 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16341 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16342 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16343 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16344 | ;; | |
16345 | ||
16346 | gnu* | linux* | k*bsd*-gnu) | |
16347 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16348 | tmp_addflag= | |
16349 | case $cc_basename,$host_cpu in | |
16350 | pgcc*) # Portland Group C compiler | |
16351 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16352 | tmp_addflag=' $pic_flag' | |
16353 | ;; | |
16354 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16355 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16356 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
16357 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16358 | tmp_addflag=' -i_dynamic' ;; | |
16359 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16360 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16361 | ifc* | ifort*) # Intel Fortran compiler | |
16362 | tmp_addflag=' -nofor_main' ;; | |
16363 | esac | |
16364 | case `$CC -V 2>&1 | sed 5q` in | |
16365 | *Sun\ C*) # Sun C 5.9 | |
16366 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16367 | tmp_sharedflag='-G' ;; | |
16368 | *Sun\ F*) # Sun Fortran 8.3 | |
16369 | tmp_sharedflag='-G' ;; | |
16370 | *) | |
16371 | tmp_sharedflag='-shared' ;; | |
16372 | esac | |
16373 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16374 | ||
16375 | if test $supports_anon_versioning = yes; then | |
16376 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16377 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16378 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16379 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16380 | fi | |
16381 | link_all_deplibs_F77=no | |
16382 | else | |
16383 | ld_shlibs_F77=no | |
16384 | fi | |
16385 | ;; | |
16386 | ||
16387 | netbsd* | netbsdelf*-gnu) | |
16388 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16389 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16390 | wlarc= | |
16391 | else | |
16392 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16393 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16394 | fi | |
16395 | ;; | |
16396 | ||
16397 | solaris*) | |
16398 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16399 | ld_shlibs_F77=no | |
16400 | cat <<EOF 1>&2 | |
16401 | ||
16402 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16403 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16404 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16405 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16406 | *** your PATH or compiler configuration so that the native linker is | |
16407 | *** used, and then restart. | |
16408 | ||
16409 | EOF | |
16410 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16411 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16412 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16413 | else | |
16414 | ld_shlibs_F77=no | |
16415 | fi | |
16416 | ;; | |
16417 | ||
16418 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16419 | case `$LD -v 2>&1` in | |
16420 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16421 | ld_shlibs_F77=no | |
16422 | cat <<_LT_EOF 1>&2 | |
16423 | ||
16424 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16425 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16426 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16427 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16428 | *** your PATH or compiler configuration so that the native linker is | |
16429 | *** used, and then restart. | |
16430 | ||
16431 | _LT_EOF | |
16432 | ;; | |
16433 | *) | |
16434 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16435 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16436 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16437 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16438 | else | |
16439 | ld_shlibs_F77=no | |
16440 | fi | |
16441 | ;; | |
16442 | esac | |
16443 | ;; | |
16444 | ||
16445 | sunos4*) | |
16446 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16447 | wlarc= | |
16448 | hardcode_direct_F77=yes | |
16449 | hardcode_shlibpath_var_F77=no | |
16450 | ;; | |
16451 | ||
16452 | *) | |
16453 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16454 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16455 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16456 | else | |
16457 | ld_shlibs_F77=no | |
16458 | fi | |
16459 | ;; | |
16460 | esac | |
16461 | ||
16462 | if test "$ld_shlibs_F77" = no; then | |
16463 | runpath_var= | |
16464 | hardcode_libdir_flag_spec_F77= | |
16465 | export_dynamic_flag_spec_F77= | |
16466 | whole_archive_flag_spec_F77= | |
16467 | fi | |
16468 | else | |
16469 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16470 | case $host_os in | |
16471 | aix3*) | |
16472 | allow_undefined_flag_F77=unsupported | |
16473 | always_export_symbols_F77=yes | |
16474 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16475 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16476 | # are no directories specified by -L. | |
16477 | hardcode_minus_L_F77=yes | |
16478 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16479 | # Neither direct hardcoding nor static linking is supported with a | |
16480 | # broken collect2. | |
16481 | hardcode_direct_F77=unsupported | |
16482 | fi | |
16483 | ;; | |
16484 | ||
b676ea3b | 16485 | aix[4-9]*) |
db137867 AC |
16486 | if test "$host_cpu" = ia64; then |
16487 | # On IA64, the linker does run time linking by default, so we don't | |
16488 | # have to do anything special. | |
16489 | aix_use_runtimelinking=no | |
16490 | exp_sym_flag='-Bexport' | |
16491 | no_entry_flag="" | |
16492 | else | |
16493 | # If we're using GNU nm, then we don't want the "-C" option. | |
16494 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16495 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16496 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16497 | else | |
16498 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16499 | fi | |
16500 | aix_use_runtimelinking=no | |
16501 | ||
16502 | # Test if we are trying to use run time linking or normal | |
16503 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16504 | # need to do runtime linking. | |
b676ea3b | 16505 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
16506 | for ld_flag in $LDFLAGS; do |
16507 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16508 | aix_use_runtimelinking=yes | |
16509 | break | |
16510 | fi | |
16511 | done | |
16512 | ;; | |
16513 | esac | |
16514 | ||
16515 | exp_sym_flag='-bexport' | |
16516 | no_entry_flag='-bnoentry' | |
16517 | fi | |
16518 | ||
16519 | # When large executables or shared objects are built, AIX ld can | |
16520 | # have problems creating the table of contents. If linking a library | |
16521 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16522 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16523 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16524 | ||
16525 | archive_cmds_F77='' | |
16526 | hardcode_direct_F77=yes | |
16527 | hardcode_libdir_separator_F77=':' | |
16528 | link_all_deplibs_F77=yes | |
16529 | ||
16530 | if test "$GCC" = yes; then | |
16531 | case $host_os in aix4.[012]|aix4.[012].*) | |
16532 | # We only want to do this on AIX 4.2 and lower, the check | |
16533 | # below for broken collect2 doesn't work under 4.3+ | |
16534 | collect2name=`${CC} -print-prog-name=collect2` | |
16535 | if test -f "$collect2name" && \ | |
16536 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16537 | then | |
16538 | # We have reworked collect2 | |
16539 | : | |
16540 | else | |
16541 | # We have old collect2 | |
16542 | hardcode_direct_F77=unsupported | |
16543 | # It fails to find uninstalled libraries when the uninstalled | |
16544 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16545 | # to unsupported forces relinking | |
16546 | hardcode_minus_L_F77=yes | |
16547 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16548 | hardcode_libdir_separator_F77= | |
16549 | fi | |
16550 | ;; | |
16551 | esac | |
16552 | shared_flag='-shared' | |
16553 | if test "$aix_use_runtimelinking" = yes; then | |
16554 | shared_flag="$shared_flag "'${wl}-G' | |
16555 | fi | |
16556 | else | |
16557 | # not using gcc | |
16558 | if test "$host_cpu" = ia64; then | |
16559 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16560 | # chokes on -Wl,-G. The following line is correct: | |
16561 | shared_flag='-G' | |
16562 | else | |
16563 | if test "$aix_use_runtimelinking" = yes; then | |
16564 | shared_flag='${wl}-G' | |
16565 | else | |
16566 | shared_flag='${wl}-bM:SRE' | |
16567 | fi | |
16568 | fi | |
16569 | fi | |
16570 | ||
16571 | # It seems that -bexpall does not export symbols beginning with | |
16572 | # underscore (_), so it is better to generate a list of symbols to export. | |
16573 | always_export_symbols_F77=yes | |
16574 | if test "$aix_use_runtimelinking" = yes; then | |
16575 | # Warning - without using the other runtime loading flags (-brtl), | |
16576 | # -berok will link without error, but may produce a broken library. | |
16577 | allow_undefined_flag_F77='-berok' | |
16578 | # Determine the default libpath from the value encoded in an empty executable. | |
16579 | cat >conftest.$ac_ext <<_ACEOF | |
16580 | program main | |
16581 | ||
16582 | end | |
16583 | _ACEOF | |
16584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16585 | if { (ac_try="$ac_link" | |
16586 | case "(($ac_try" in | |
16587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16588 | *) ac_try_echo=$ac_try;; | |
16589 | esac | |
030272f3 VY |
16590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16591 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
16592 | (eval "$ac_link") 2>conftest.er1 |
16593 | ac_status=$? | |
16594 | grep -v '^ *+' conftest.er1 >conftest.err | |
16595 | rm -f conftest.er1 | |
16596 | cat conftest.err >&5 | |
030272f3 | 16597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
16598 | (exit $ac_status); } && { |
16599 | test -z "$ac_f77_werror_flag" || | |
16600 | test ! -s conftest.err | |
030272f3 VY |
16601 | } && test -s conftest$ac_exeext && { |
16602 | test "$cross_compiling" = yes || | |
16603 | $as_test_x conftest$ac_exeext | |
16604 | }; then | |
db137867 AC |
16605 | |
16606 | lt_aix_libpath_sed=' | |
16607 | /Import File Strings/,/^$/ { | |
16608 | /^0/ { | |
16609 | s/^0 *\(.*\)$/\1/ | |
16610 | p | |
16611 | } | |
16612 | }' | |
16613 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16614 | # Check for a 64-bit object if we didn't find anything. | |
16615 | if test -z "$aix_libpath"; then | |
16616 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16617 | fi | |
16618 | else | |
030272f3 | 16619 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
16620 | sed 's/^/| /' conftest.$ac_ext >&5 |
16621 | ||
16622 | ||
16623 | fi | |
16624 | ||
030272f3 | 16625 | rm -rf conftest.dSYM |
db137867 AC |
16626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16627 | conftest$ac_exeext conftest.$ac_ext | |
16628 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16629 | ||
16630 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16631 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16632 | else | |
16633 | if test "$host_cpu" = ia64; then | |
16634 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
16635 | allow_undefined_flag_F77="-z nodefs" | |
16636 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
16637 | else | |
16638 | # Determine the default libpath from the value encoded in an empty executable. | |
16639 | cat >conftest.$ac_ext <<_ACEOF | |
16640 | program main | |
16641 | ||
16642 | end | |
16643 | _ACEOF | |
16644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16645 | if { (ac_try="$ac_link" | |
16646 | case "(($ac_try" in | |
16647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16648 | *) ac_try_echo=$ac_try;; | |
16649 | esac | |
030272f3 VY |
16650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16651 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
16652 | (eval "$ac_link") 2>conftest.er1 |
16653 | ac_status=$? | |
16654 | grep -v '^ *+' conftest.er1 >conftest.err | |
16655 | rm -f conftest.er1 | |
16656 | cat conftest.err >&5 | |
030272f3 | 16657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
16658 | (exit $ac_status); } && { |
16659 | test -z "$ac_f77_werror_flag" || | |
16660 | test ! -s conftest.err | |
030272f3 VY |
16661 | } && test -s conftest$ac_exeext && { |
16662 | test "$cross_compiling" = yes || | |
16663 | $as_test_x conftest$ac_exeext | |
16664 | }; then | |
db137867 AC |
16665 | |
16666 | lt_aix_libpath_sed=' | |
16667 | /Import File Strings/,/^$/ { | |
16668 | /^0/ { | |
16669 | s/^0 *\(.*\)$/\1/ | |
16670 | p | |
16671 | } | |
16672 | }' | |
16673 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16674 | # Check for a 64-bit object if we didn't find anything. | |
16675 | if test -z "$aix_libpath"; then | |
16676 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
16677 | fi | |
16678 | else | |
030272f3 | 16679 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
16680 | sed 's/^/| /' conftest.$ac_ext >&5 |
16681 | ||
16682 | ||
16683 | fi | |
16684 | ||
030272f3 | 16685 | rm -rf conftest.dSYM |
db137867 AC |
16686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16687 | conftest$ac_exeext conftest.$ac_ext | |
16688 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16689 | ||
16690 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16691 | # Warning - without using the other run time loading flags, | |
16692 | # -berok will link without error, but may produce a broken library. | |
16693 | no_undefined_flag_F77=' ${wl}-bernotok' | |
16694 | allow_undefined_flag_F77=' ${wl}-berok' | |
16695 | # Exported symbols can be pulled into shared objects from archives | |
16696 | whole_archive_flag_spec_F77='$convenience' | |
16697 | archive_cmds_need_lc_F77=yes | |
16698 | # This is similar to how AIX traditionally builds its shared libraries. | |
16699 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16700 | fi | |
16701 | fi | |
16702 | ;; | |
16703 | ||
16704 | amigaos*) | |
16705 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16706 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16707 | hardcode_minus_L_F77=yes | |
16708 | # see comment about different semantics on the GNU ld section | |
16709 | ld_shlibs_F77=no | |
16710 | ;; | |
16711 | ||
16712 | bsdi[45]*) | |
16713 | export_dynamic_flag_spec_F77=-rdynamic | |
16714 | ;; | |
16715 | ||
16716 | cygwin* | mingw* | pw32*) | |
16717 | # When not using gcc, we currently assume that we are using | |
16718 | # Microsoft Visual C++. | |
16719 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16720 | # no search path for DLLs. | |
16721 | hardcode_libdir_flag_spec_F77=' ' | |
16722 | allow_undefined_flag_F77=unsupported | |
16723 | # Tell ltmain to make .lib files, not .a files. | |
16724 | libext=lib | |
16725 | # Tell ltmain to make .dll files, not .so files. | |
16726 | shrext_cmds=".dll" | |
16727 | # FIXME: Setting linknames here is a bad hack. | |
16728 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16729 | # The linker will automatically build a .lib file if we build a DLL. | |
16730 | old_archive_From_new_cmds_F77='true' | |
16731 | # FIXME: Should let the user specify the lib program. | |
16732 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
16733 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
16734 | enable_shared_with_static_runtimes_F77=yes | |
16735 | ;; | |
16736 | ||
16737 | darwin* | rhapsody*) | |
16738 | case $host_os in | |
16739 | rhapsody* | darwin1.[012]) | |
16740 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
16741 | ;; | |
16742 | *) # Darwin 1.3 on | |
16743 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16744 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16745 | else | |
16746 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16747 | 10.[012]) | |
16748 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16749 | ;; | |
16750 | 10.*) | |
16751 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
16752 | ;; | |
16753 | esac | |
16754 | fi | |
16755 | ;; | |
16756 | esac | |
16757 | archive_cmds_need_lc_F77=no | |
16758 | hardcode_direct_F77=no | |
16759 | hardcode_automatic_F77=yes | |
16760 | hardcode_shlibpath_var_F77=unsupported | |
16761 | whole_archive_flag_spec_F77='' | |
16762 | link_all_deplibs_F77=yes | |
16763 | if test "$GCC" = yes ; then | |
16764 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
16765 | archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
16766 | module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
16767 | archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
16768 | module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
db137867 AC |
16769 | else |
16770 | case $cc_basename in | |
16771 | xlc*) | |
16772 | output_verbose_link_cmd='echo' | |
16773 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
16774 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16775 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16776 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16777 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16778 | ;; | |
16779 | *) | |
16780 | ld_shlibs_F77=no | |
16781 | ;; | |
16782 | esac | |
16783 | fi | |
16784 | ;; | |
16785 | ||
16786 | dgux*) | |
16787 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16788 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16789 | hardcode_shlibpath_var_F77=no | |
16790 | ;; | |
16791 | ||
16792 | freebsd1*) | |
16793 | ld_shlibs_F77=no | |
16794 | ;; | |
16795 | ||
16796 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16797 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16798 | # does not break anything, and helps significantly (at the cost of a little | |
16799 | # extra space). | |
16800 | freebsd2.2*) | |
16801 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16802 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16803 | hardcode_direct_F77=yes | |
16804 | hardcode_shlibpath_var_F77=no | |
16805 | ;; | |
16806 | ||
16807 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16808 | freebsd2*) | |
16809 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16810 | hardcode_direct_F77=yes | |
16811 | hardcode_minus_L_F77=yes | |
16812 | hardcode_shlibpath_var_F77=no | |
16813 | ;; | |
16814 | ||
16815 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16816 | freebsd* | dragonfly*) | |
16817 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16818 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16819 | hardcode_direct_F77=yes | |
16820 | hardcode_shlibpath_var_F77=no | |
16821 | ;; | |
16822 | ||
16823 | hpux9*) | |
16824 | if test "$GCC" = yes; then | |
16825 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16826 | else | |
16827 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
16828 | fi | |
16829 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16830 | hardcode_libdir_separator_F77=: | |
16831 | hardcode_direct_F77=yes | |
16832 | ||
16833 | # hardcode_minus_L: Not really in the search PATH, | |
16834 | # but as the default location of the library. | |
16835 | hardcode_minus_L_F77=yes | |
16836 | export_dynamic_flag_spec_F77='${wl}-E' | |
16837 | ;; | |
16838 | ||
16839 | hpux10*) | |
16840 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16841 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16842 | else | |
16843 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16844 | fi | |
16845 | if test "$with_gnu_ld" = no; then | |
16846 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16847 | hardcode_libdir_separator_F77=: | |
16848 | ||
16849 | hardcode_direct_F77=yes | |
16850 | export_dynamic_flag_spec_F77='${wl}-E' | |
16851 | ||
16852 | # hardcode_minus_L: Not really in the search PATH, | |
16853 | # but as the default location of the library. | |
16854 | hardcode_minus_L_F77=yes | |
16855 | fi | |
16856 | ;; | |
16857 | ||
16858 | hpux11*) | |
16859 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16860 | case $host_cpu in | |
16861 | hppa*64*) | |
16862 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16863 | ;; | |
16864 | ia64*) | |
16865 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16866 | ;; | |
16867 | *) | |
16868 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16869 | ;; | |
16870 | esac | |
16871 | else | |
16872 | case $host_cpu in | |
16873 | hppa*64*) | |
16874 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16875 | ;; | |
16876 | ia64*) | |
16877 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16878 | ;; | |
16879 | *) | |
16880 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16881 | ;; | |
16882 | esac | |
16883 | fi | |
16884 | if test "$with_gnu_ld" = no; then | |
16885 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16886 | hardcode_libdir_separator_F77=: | |
16887 | ||
16888 | case $host_cpu in | |
16889 | hppa*64*|ia64*) | |
16890 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
16891 | hardcode_direct_F77=no | |
16892 | hardcode_shlibpath_var_F77=no | |
16893 | ;; | |
16894 | *) | |
16895 | hardcode_direct_F77=yes | |
16896 | export_dynamic_flag_spec_F77='${wl}-E' | |
16897 | ||
16898 | # hardcode_minus_L: Not really in the search PATH, | |
16899 | # but as the default location of the library. | |
16900 | hardcode_minus_L_F77=yes | |
16901 | ;; | |
16902 | esac | |
16903 | fi | |
16904 | ;; | |
16905 | ||
16906 | irix5* | irix6* | nonstopux*) | |
16907 | if test "$GCC" = yes; then | |
16908 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16909 | else | |
16910 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16911 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
16912 | fi | |
16913 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16914 | hardcode_libdir_separator_F77=: | |
16915 | link_all_deplibs_F77=yes | |
16916 | ;; | |
16917 | ||
16918 | netbsd* | netbsdelf*-gnu) | |
16919 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16920 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16921 | else | |
16922 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16923 | fi | |
16924 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16925 | hardcode_direct_F77=yes | |
16926 | hardcode_shlibpath_var_F77=no | |
16927 | ;; | |
16928 | ||
16929 | newsos6) | |
16930 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16931 | hardcode_direct_F77=yes | |
16932 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16933 | hardcode_libdir_separator_F77=: | |
16934 | hardcode_shlibpath_var_F77=no | |
16935 | ;; | |
16936 | ||
16937 | openbsd*) | |
16938 | if test -f /usr/libexec/ld.so; then | |
16939 | hardcode_direct_F77=yes | |
16940 | hardcode_shlibpath_var_F77=no | |
16941 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16942 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16943 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
16944 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16945 | export_dynamic_flag_spec_F77='${wl}-E' | |
16946 | else | |
16947 | case $host_os in | |
16948 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16949 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16950 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16951 | ;; | |
16952 | *) | |
16953 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16954 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16955 | ;; | |
16956 | esac | |
16957 | fi | |
16958 | else | |
16959 | ld_shlibs_F77=no | |
16960 | fi | |
16961 | ;; | |
16962 | ||
16963 | os2*) | |
16964 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16965 | hardcode_minus_L_F77=yes | |
16966 | allow_undefined_flag_F77=unsupported | |
16967 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
16968 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16969 | ;; | |
16970 | ||
16971 | osf3*) | |
16972 | if test "$GCC" = yes; then | |
16973 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16974 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16975 | else | |
16976 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16977 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16978 | fi | |
16979 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16980 | hardcode_libdir_separator_F77=: | |
16981 | ;; | |
16982 | ||
16983 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16984 | if test "$GCC" = yes; then | |
16985 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16986 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16987 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16988 | else | |
16989 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16990 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16991 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
16992 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
16993 | ||
16994 | # Both c and cxx compiler support -rpath directly | |
16995 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
16996 | fi | |
16997 | hardcode_libdir_separator_F77=: | |
16998 | ;; | |
16999 | ||
17000 | solaris*) | |
17001 | no_undefined_flag_F77=' -z text' | |
17002 | if test "$GCC" = yes; then | |
17003 | wlarc='${wl}' | |
17004 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17005 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17006 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17007 | else | |
17008 | wlarc='' | |
17009 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17010 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17011 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17012 | fi | |
17013 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
17014 | hardcode_shlibpath_var_F77=no | |
17015 | case $host_os in | |
17016 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17017 | *) | |
17018 | # The compiler driver will combine and reorder linker options, | |
17019 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
17020 | # but is careful enough not to reorder. | |
17021 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17022 | if test "$GCC" = yes; then | |
17023 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
17024 | else | |
17025 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' | |
17026 | fi | |
17027 | ;; | |
17028 | esac | |
17029 | link_all_deplibs_F77=yes | |
17030 | ;; | |
17031 | ||
17032 | sunos4*) | |
17033 | if test "x$host_vendor" = xsequent; then | |
17034 | # Use $CC to link under sequent, because it throws in some extra .o | |
17035 | # files that make .init and .fini sections work. | |
17036 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17037 | else | |
17038 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17039 | fi | |
17040 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
17041 | hardcode_direct_F77=yes | |
17042 | hardcode_minus_L_F77=yes | |
17043 | hardcode_shlibpath_var_F77=no | |
17044 | ;; | |
17045 | ||
17046 | sysv4) | |
17047 | case $host_vendor in | |
17048 | sni) | |
17049 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17050 | hardcode_direct_F77=yes # is this really true??? | |
17051 | ;; | |
17052 | siemens) | |
17053 | ## LD is ld it makes a PLAMLIB | |
17054 | ## CC just makes a GrossModule. | |
17055 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17056 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
17057 | hardcode_direct_F77=no | |
17058 | ;; | |
17059 | motorola) | |
17060 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17061 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
17062 | ;; | |
17063 | esac | |
17064 | runpath_var='LD_RUN_PATH' | |
17065 | hardcode_shlibpath_var_F77=no | |
17066 | ;; | |
17067 | ||
17068 | sysv4.3*) | |
17069 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17070 | hardcode_shlibpath_var_F77=no | |
17071 | export_dynamic_flag_spec_F77='-Bexport' | |
17072 | ;; | |
17073 | ||
17074 | sysv4*MP*) | |
17075 | if test -d /usr/nec; then | |
17076 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17077 | hardcode_shlibpath_var_F77=no | |
17078 | runpath_var=LD_RUN_PATH | |
17079 | hardcode_runpath_var=yes | |
17080 | ld_shlibs_F77=yes | |
17081 | fi | |
17082 | ;; | |
17083 | ||
17084 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
17085 | no_undefined_flag_F77='${wl}-z,text' | |
17086 | archive_cmds_need_lc_F77=no | |
17087 | hardcode_shlibpath_var_F77=no | |
17088 | runpath_var='LD_RUN_PATH' | |
17089 | ||
17090 | if test "$GCC" = yes; then | |
17091 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17092 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17093 | else | |
17094 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17095 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17096 | fi | |
17097 | ;; | |
17098 | ||
17099 | sysv5* | sco3.2v5* | sco5v6*) | |
17100 | # Note: We can NOT use -z defs as we might desire, because we do not | |
17101 | # link with -lc, and that would cause any symbols used from libc to | |
17102 | # always be unresolved, which means just about no library would | |
17103 | # ever link correctly. If we're not using GNU ld we use -z text | |
17104 | # though, which does catch some bad symbols but isn't as heavy-handed | |
17105 | # as -z defs. | |
17106 | no_undefined_flag_F77='${wl}-z,text' | |
17107 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
17108 | archive_cmds_need_lc_F77=no | |
17109 | hardcode_shlibpath_var_F77=no | |
17110 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
17111 | hardcode_libdir_separator_F77=':' | |
17112 | link_all_deplibs_F77=yes | |
17113 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
17114 | runpath_var='LD_RUN_PATH' | |
17115 | ||
17116 | if test "$GCC" = yes; then | |
17117 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17118 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17119 | else | |
17120 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17121 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17122 | fi | |
17123 | ;; | |
17124 | ||
17125 | uts4*) | |
17126 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17127 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
17128 | hardcode_shlibpath_var_F77=no | |
17129 | ;; | |
17130 | ||
17131 | *) | |
17132 | ld_shlibs_F77=no | |
17133 | ;; | |
17134 | esac | |
17135 | fi | |
17136 | ||
030272f3 VY |
17137 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
17138 | $as_echo "$ld_shlibs_F77" >&6; } | |
db137867 AC |
17139 | test "$ld_shlibs_F77" = no && can_build_shared=no |
17140 | ||
17141 | # | |
17142 | # Do we need to explicitly link libc? | |
17143 | # | |
17144 | case "x$archive_cmds_need_lc_F77" in | |
17145 | x|xyes) | |
17146 | # Assume -lc should be added | |
17147 | archive_cmds_need_lc_F77=yes | |
17148 | ||
17149 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17150 | case $archive_cmds_F77 in | |
17151 | *'~'*) | |
17152 | # FIXME: we may have to deal with multi-command sequences. | |
17153 | ;; | |
17154 | '$CC '*) | |
17155 | # Test whether the compiler implicitly links with -lc since on some | |
17156 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17157 | # to ld, don't add -lc before -lgcc. | |
030272f3 VY |
17158 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17159 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
db137867 AC |
17160 | $rm conftest* |
17161 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17162 | ||
17163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17164 | (eval $ac_compile) 2>&5 | |
17165 | ac_status=$? | |
030272f3 | 17166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
17167 | (exit $ac_status); } 2>conftest.err; then |
17168 | soname=conftest | |
17169 | lib=conftest | |
17170 | libobjs=conftest.$ac_objext | |
17171 | deplibs= | |
17172 | wl=$lt_prog_compiler_wl_F77 | |
17173 | pic_flag=$lt_prog_compiler_pic_F77 | |
17174 | compiler_flags=-v | |
17175 | linker_flags=-v | |
17176 | verstring= | |
17177 | output_objdir=. | |
17178 | libname=conftest | |
17179 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
17180 | allow_undefined_flag_F77= | |
17181 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17182 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17183 | ac_status=$? | |
030272f3 | 17184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
17185 | (exit $ac_status); } |
17186 | then | |
17187 | archive_cmds_need_lc_F77=no | |
17188 | else | |
17189 | archive_cmds_need_lc_F77=yes | |
17190 | fi | |
17191 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
17192 | else | |
17193 | cat conftest.err 1>&5 | |
17194 | fi | |
17195 | $rm conftest* | |
030272f3 VY |
17196 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
17197 | $as_echo "$archive_cmds_need_lc_F77" >&6; } | |
db137867 AC |
17198 | ;; |
17199 | esac | |
17200 | fi | |
17201 | ;; | |
17202 | esac | |
17203 | ||
030272f3 VY |
17204 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17205 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
db137867 AC |
17206 | library_names_spec= |
17207 | libname_spec='lib$name' | |
17208 | soname_spec= | |
17209 | shrext_cmds=".so" | |
17210 | postinstall_cmds= | |
17211 | postuninstall_cmds= | |
17212 | finish_cmds= | |
17213 | finish_eval= | |
17214 | shlibpath_var= | |
17215 | shlibpath_overrides_runpath=unknown | |
17216 | version_type=none | |
17217 | dynamic_linker="$host_os ld.so" | |
17218 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17219 | ||
17220 | need_lib_prefix=unknown | |
17221 | hardcode_into_libs=no | |
17222 | ||
17223 | # when you set need_version to no, make sure it does not cause -set_version | |
17224 | # flags to be left without arguments | |
17225 | need_version=unknown | |
17226 | ||
17227 | case $host_os in | |
17228 | aix3*) | |
17229 | version_type=linux | |
17230 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17231 | shlibpath_var=LIBPATH | |
17232 | ||
17233 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17234 | soname_spec='${libname}${release}${shared_ext}$major' | |
17235 | ;; | |
17236 | ||
b676ea3b | 17237 | aix[4-9]*) |
db137867 AC |
17238 | version_type=linux |
17239 | need_lib_prefix=no | |
17240 | need_version=no | |
17241 | hardcode_into_libs=yes | |
17242 | if test "$host_cpu" = ia64; then | |
17243 | # AIX 5 supports IA64 | |
17244 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17245 | shlibpath_var=LD_LIBRARY_PATH | |
17246 | else | |
17247 | # With GCC up to 2.95.x, collect2 would create an import file | |
17248 | # for dependence libraries. The import file would start with | |
17249 | # the line `#! .'. This would cause the generated library to | |
17250 | # depend on `.', always an invalid library. This was fixed in | |
17251 | # development snapshots of GCC prior to 3.0. | |
17252 | case $host_os in | |
17253 | aix4 | aix4.[01] | aix4.[01].*) | |
17254 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17255 | echo ' yes ' | |
17256 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17257 | : | |
17258 | else | |
17259 | can_build_shared=no | |
17260 | fi | |
17261 | ;; | |
17262 | esac | |
17263 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17264 | # soname into executable. Probably we can add versioning support to | |
17265 | # collect2, so additional links can be useful in future. | |
17266 | if test "$aix_use_runtimelinking" = yes; then | |
17267 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17268 | # instead of lib<name>.a to let people know that these are not | |
17269 | # typical AIX shared libraries. | |
17270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17271 | else | |
17272 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17273 | # and later when we are not doing run time linking. | |
17274 | library_names_spec='${libname}${release}.a $libname.a' | |
17275 | soname_spec='${libname}${release}${shared_ext}$major' | |
17276 | fi | |
17277 | shlibpath_var=LIBPATH | |
17278 | fi | |
17279 | ;; | |
17280 | ||
17281 | amigaos*) | |
17282 | library_names_spec='$libname.ixlibrary $libname.a' | |
17283 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17284 | 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' | |
17285 | ;; | |
17286 | ||
17287 | beos*) | |
17288 | library_names_spec='${libname}${shared_ext}' | |
17289 | dynamic_linker="$host_os ld.so" | |
17290 | shlibpath_var=LIBRARY_PATH | |
17291 | ;; | |
17292 | ||
17293 | bsdi[45]*) | |
17294 | version_type=linux | |
17295 | need_version=no | |
17296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17297 | soname_spec='${libname}${release}${shared_ext}$major' | |
17298 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17299 | shlibpath_var=LD_LIBRARY_PATH | |
17300 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17301 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17302 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17303 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17304 | # libtool to hard-code these into programs | |
17305 | ;; | |
17306 | ||
17307 | cygwin* | mingw* | pw32*) | |
17308 | version_type=windows | |
17309 | shrext_cmds=".dll" | |
17310 | need_version=no | |
17311 | need_lib_prefix=no | |
17312 | ||
17313 | case $GCC,$host_os in | |
17314 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
17315 | library_names_spec='$libname.dll.a' | |
17316 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17317 | postinstall_cmds='base_file=`basename \${file}`~ | |
17318 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17319 | dldir=$destdir/`dirname \$dlpath`~ | |
17320 | test -d \$dldir || mkdir -p \$dldir~ | |
17321 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17322 | chmod a+x \$dldir/$dlname' | |
17323 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17324 | dlpath=$dir/\$dldll~ | |
17325 | $rm \$dlpath' | |
17326 | shlibpath_overrides_runpath=yes | |
17327 | ||
17328 | case $host_os in | |
17329 | cygwin*) | |
17330 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17331 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17332 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17333 | ;; | |
17334 | mingw*) | |
17335 | # MinGW DLLs use traditional 'lib' prefix | |
17336 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17337 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17338 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17339 | # It is most probably a Windows format PATH printed by | |
17340 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17341 | # path with ; separators, and with drive letters. We can handle the | |
17342 | # drive letters (cygwin fileutils understands them), so leave them, | |
17343 | # especially as we might pass files found there to a mingw objdump, | |
17344 | # which wouldn't understand a cygwinified path. Ahh. | |
17345 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17346 | else | |
17347 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17348 | fi | |
17349 | ;; | |
17350 | pw32*) | |
17351 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17352 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17353 | ;; | |
17354 | esac | |
17355 | ;; | |
17356 | ||
17357 | *) | |
17358 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17359 | ;; | |
17360 | esac | |
17361 | dynamic_linker='Win32 ld.exe' | |
17362 | # FIXME: first we should search . and the directory the executable is in | |
17363 | shlibpath_var=PATH | |
17364 | ;; | |
17365 | ||
17366 | darwin* | rhapsody*) | |
17367 | dynamic_linker="$host_os dyld" | |
17368 | version_type=darwin | |
17369 | need_lib_prefix=no | |
17370 | need_version=no | |
17371 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17372 | soname_spec='${libname}${release}${major}$shared_ext' | |
17373 | shlibpath_overrides_runpath=yes | |
17374 | shlibpath_var=DYLD_LIBRARY_PATH | |
17375 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17376 | ||
17377 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17378 | ;; | |
17379 | ||
17380 | dgux*) | |
17381 | version_type=linux | |
17382 | need_lib_prefix=no | |
17383 | need_version=no | |
17384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17385 | soname_spec='${libname}${release}${shared_ext}$major' | |
17386 | shlibpath_var=LD_LIBRARY_PATH | |
17387 | ;; | |
17388 | ||
17389 | freebsd1*) | |
17390 | dynamic_linker=no | |
17391 | ;; | |
17392 | ||
17393 | freebsd* | dragonfly*) | |
17394 | # DragonFly does not have aout. When/if they implement a new | |
17395 | # versioning mechanism, adjust this. | |
17396 | if test -x /usr/bin/objformat; then | |
17397 | objformat=`/usr/bin/objformat` | |
17398 | else | |
17399 | case $host_os in | |
17400 | freebsd[123]*) objformat=aout ;; | |
17401 | *) objformat=elf ;; | |
17402 | esac | |
17403 | fi | |
17404 | version_type=freebsd-$objformat | |
17405 | case $version_type in | |
17406 | freebsd-elf*) | |
17407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17408 | need_version=no | |
17409 | need_lib_prefix=no | |
17410 | ;; | |
17411 | freebsd-*) | |
17412 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17413 | need_version=yes | |
17414 | ;; | |
17415 | esac | |
17416 | shlibpath_var=LD_LIBRARY_PATH | |
17417 | case $host_os in | |
17418 | freebsd2*) | |
17419 | shlibpath_overrides_runpath=yes | |
17420 | ;; | |
17421 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17422 | shlibpath_overrides_runpath=yes | |
17423 | hardcode_into_libs=yes | |
17424 | ;; | |
17425 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17426 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17427 | shlibpath_overrides_runpath=no | |
17428 | hardcode_into_libs=yes | |
17429 | ;; | |
17430 | *) # from 4.6 on, and DragonFly | |
17431 | shlibpath_overrides_runpath=yes | |
17432 | hardcode_into_libs=yes | |
17433 | ;; | |
17434 | esac | |
17435 | ;; | |
17436 | ||
17437 | gnu*) | |
17438 | version_type=linux | |
17439 | need_lib_prefix=no | |
17440 | need_version=no | |
17441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17442 | soname_spec='${libname}${release}${shared_ext}$major' | |
17443 | shlibpath_var=LD_LIBRARY_PATH | |
17444 | hardcode_into_libs=yes | |
17445 | ;; | |
17446 | ||
17447 | hpux9* | hpux10* | hpux11*) | |
17448 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17449 | # link against other versions. | |
17450 | version_type=sunos | |
17451 | need_lib_prefix=no | |
17452 | need_version=no | |
17453 | case $host_cpu in | |
17454 | ia64*) | |
17455 | shrext_cmds='.so' | |
17456 | hardcode_into_libs=yes | |
17457 | dynamic_linker="$host_os dld.so" | |
17458 | shlibpath_var=LD_LIBRARY_PATH | |
17459 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17461 | soname_spec='${libname}${release}${shared_ext}$major' | |
17462 | if test "X$HPUX_IA64_MODE" = X32; then | |
17463 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17464 | else | |
17465 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17466 | fi | |
17467 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17468 | ;; | |
17469 | hppa*64*) | |
17470 | shrext_cmds='.sl' | |
17471 | hardcode_into_libs=yes | |
17472 | dynamic_linker="$host_os dld.sl" | |
17473 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17474 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17476 | soname_spec='${libname}${release}${shared_ext}$major' | |
17477 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17478 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17479 | ;; | |
17480 | *) | |
17481 | shrext_cmds='.sl' | |
17482 | dynamic_linker="$host_os dld.sl" | |
17483 | shlibpath_var=SHLIB_PATH | |
17484 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17486 | soname_spec='${libname}${release}${shared_ext}$major' | |
17487 | ;; | |
17488 | esac | |
17489 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17490 | postinstall_cmds='chmod 555 $lib' | |
17491 | ;; | |
17492 | ||
17493 | interix[3-9]*) | |
17494 | version_type=linux | |
17495 | need_lib_prefix=no | |
17496 | need_version=no | |
17497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17498 | soname_spec='${libname}${release}${shared_ext}$major' | |
17499 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17500 | shlibpath_var=LD_LIBRARY_PATH | |
17501 | shlibpath_overrides_runpath=no | |
17502 | hardcode_into_libs=yes | |
17503 | ;; | |
17504 | ||
17505 | irix5* | irix6* | nonstopux*) | |
17506 | case $host_os in | |
17507 | nonstopux*) version_type=nonstopux ;; | |
17508 | *) | |
17509 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17510 | version_type=linux | |
17511 | else | |
17512 | version_type=irix | |
17513 | fi ;; | |
17514 | esac | |
17515 | need_lib_prefix=no | |
17516 | need_version=no | |
17517 | soname_spec='${libname}${release}${shared_ext}$major' | |
17518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17519 | case $host_os in | |
17520 | irix5* | nonstopux*) | |
17521 | libsuff= shlibsuff= | |
17522 | ;; | |
17523 | *) | |
17524 | case $LD in # libtool.m4 will add one of these switches to LD | |
17525 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17526 | libsuff= shlibsuff= libmagic=32-bit;; | |
17527 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17528 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17529 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17530 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17531 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17532 | esac | |
17533 | ;; | |
17534 | esac | |
17535 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17536 | shlibpath_overrides_runpath=no | |
17537 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17538 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17539 | hardcode_into_libs=yes | |
17540 | ;; | |
17541 | ||
17542 | # No shared lib support for Linux oldld, aout, or coff. | |
17543 | linux*oldld* | linux*aout* | linux*coff*) | |
17544 | dynamic_linker=no | |
17545 | ;; | |
17546 | ||
17547 | # This must be Linux ELF. | |
17548 | linux* | k*bsd*-gnu) | |
17549 | version_type=linux | |
17550 | need_lib_prefix=no | |
17551 | need_version=no | |
17552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17553 | soname_spec='${libname}${release}${shared_ext}$major' | |
17554 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17555 | shlibpath_var=LD_LIBRARY_PATH | |
17556 | shlibpath_overrides_runpath=no | |
17557 | # This implies no fast_install, which is unacceptable. | |
17558 | # Some rework will be needed to allow for fast_install | |
17559 | # before this can be enabled. | |
17560 | hardcode_into_libs=yes | |
17561 | ||
17562 | # Append ld.so.conf contents to the search path | |
17563 | if test -f /etc/ld.so.conf; then | |
17564 | 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' ' '` | |
17565 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
17566 | fi | |
17567 | ||
17568 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17569 | # powerpc, because MkLinux only supported shared libraries with the | |
17570 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17571 | # most powerpc-linux boxes support dynamic linking these days and | |
17572 | # people can always --disable-shared, the test was removed, and we | |
17573 | # assume the GNU/Linux dynamic linker is in use. | |
17574 | dynamic_linker='GNU/Linux ld.so' | |
17575 | ;; | |
17576 | ||
17577 | netbsdelf*-gnu) | |
17578 | version_type=linux | |
17579 | need_lib_prefix=no | |
17580 | need_version=no | |
17581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17582 | soname_spec='${libname}${release}${shared_ext}$major' | |
17583 | shlibpath_var=LD_LIBRARY_PATH | |
17584 | shlibpath_overrides_runpath=no | |
17585 | hardcode_into_libs=yes | |
17586 | dynamic_linker='NetBSD ld.elf_so' | |
17587 | ;; | |
17588 | ||
17589 | netbsd*) | |
17590 | version_type=sunos | |
17591 | need_lib_prefix=no | |
17592 | need_version=no | |
17593 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17595 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17596 | dynamic_linker='NetBSD (a.out) ld.so' | |
17597 | else | |
17598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17599 | soname_spec='${libname}${release}${shared_ext}$major' | |
17600 | dynamic_linker='NetBSD ld.elf_so' | |
17601 | fi | |
17602 | shlibpath_var=LD_LIBRARY_PATH | |
17603 | shlibpath_overrides_runpath=yes | |
17604 | hardcode_into_libs=yes | |
17605 | ;; | |
17606 | ||
17607 | newsos6) | |
17608 | version_type=linux | |
17609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17610 | shlibpath_var=LD_LIBRARY_PATH | |
17611 | shlibpath_overrides_runpath=yes | |
17612 | ;; | |
17613 | ||
17614 | nto-qnx*) | |
17615 | version_type=linux | |
17616 | need_lib_prefix=no | |
17617 | need_version=no | |
17618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17619 | soname_spec='${libname}${release}${shared_ext}$major' | |
17620 | shlibpath_var=LD_LIBRARY_PATH | |
17621 | shlibpath_overrides_runpath=yes | |
17622 | ;; | |
17623 | ||
17624 | openbsd*) | |
17625 | version_type=sunos | |
17626 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17627 | need_lib_prefix=no | |
17628 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17629 | case $host_os in | |
17630 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17631 | *) need_version=no ;; | |
17632 | esac | |
17633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17634 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17635 | shlibpath_var=LD_LIBRARY_PATH | |
17636 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17637 | case $host_os in | |
17638 | openbsd2.[89] | openbsd2.[89].*) | |
17639 | shlibpath_overrides_runpath=no | |
17640 | ;; | |
17641 | *) | |
17642 | shlibpath_overrides_runpath=yes | |
17643 | ;; | |
17644 | esac | |
17645 | else | |
17646 | shlibpath_overrides_runpath=yes | |
17647 | fi | |
17648 | ;; | |
17649 | ||
17650 | os2*) | |
17651 | libname_spec='$name' | |
17652 | shrext_cmds=".dll" | |
17653 | need_lib_prefix=no | |
17654 | library_names_spec='$libname${shared_ext} $libname.a' | |
17655 | dynamic_linker='OS/2 ld.exe' | |
17656 | shlibpath_var=LIBPATH | |
17657 | ;; | |
17658 | ||
17659 | osf3* | osf4* | osf5*) | |
17660 | version_type=osf | |
17661 | need_lib_prefix=no | |
17662 | need_version=no | |
17663 | soname_spec='${libname}${release}${shared_ext}$major' | |
17664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17665 | shlibpath_var=LD_LIBRARY_PATH | |
17666 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17667 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17668 | ;; | |
17669 | ||
17670 | rdos*) | |
17671 | dynamic_linker=no | |
17672 | ;; | |
17673 | ||
17674 | solaris*) | |
17675 | version_type=linux | |
17676 | need_lib_prefix=no | |
17677 | need_version=no | |
17678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17679 | soname_spec='${libname}${release}${shared_ext}$major' | |
17680 | shlibpath_var=LD_LIBRARY_PATH | |
17681 | shlibpath_overrides_runpath=yes | |
17682 | hardcode_into_libs=yes | |
17683 | # ldd complains unless libraries are executable | |
17684 | postinstall_cmds='chmod +x $lib' | |
17685 | ;; | |
17686 | ||
17687 | sunos4*) | |
17688 | version_type=sunos | |
17689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17690 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17691 | shlibpath_var=LD_LIBRARY_PATH | |
17692 | shlibpath_overrides_runpath=yes | |
17693 | if test "$with_gnu_ld" = yes; then | |
17694 | need_lib_prefix=no | |
17695 | fi | |
17696 | need_version=yes | |
17697 | ;; | |
17698 | ||
17699 | sysv4 | sysv4.3*) | |
17700 | version_type=linux | |
17701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17702 | soname_spec='${libname}${release}${shared_ext}$major' | |
17703 | shlibpath_var=LD_LIBRARY_PATH | |
17704 | case $host_vendor in | |
17705 | sni) | |
17706 | shlibpath_overrides_runpath=no | |
17707 | need_lib_prefix=no | |
17708 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17709 | runpath_var=LD_RUN_PATH | |
17710 | ;; | |
17711 | siemens) | |
17712 | need_lib_prefix=no | |
17713 | ;; | |
17714 | motorola) | |
17715 | need_lib_prefix=no | |
17716 | need_version=no | |
17717 | shlibpath_overrides_runpath=no | |
17718 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17719 | ;; | |
17720 | esac | |
17721 | ;; | |
17722 | ||
17723 | sysv4*MP*) | |
17724 | if test -d /usr/nec ;then | |
17725 | version_type=linux | |
17726 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17727 | soname_spec='$libname${shared_ext}.$major' | |
17728 | shlibpath_var=LD_LIBRARY_PATH | |
17729 | fi | |
17730 | ;; | |
17731 | ||
17732 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17733 | version_type=freebsd-elf | |
17734 | need_lib_prefix=no | |
17735 | need_version=no | |
17736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17737 | soname_spec='${libname}${release}${shared_ext}$major' | |
17738 | shlibpath_var=LD_LIBRARY_PATH | |
17739 | hardcode_into_libs=yes | |
17740 | if test "$with_gnu_ld" = yes; then | |
17741 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17742 | shlibpath_overrides_runpath=no | |
17743 | else | |
17744 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17745 | shlibpath_overrides_runpath=yes | |
17746 | case $host_os in | |
17747 | sco3.2v5*) | |
17748 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17749 | ;; | |
17750 | esac | |
17751 | fi | |
17752 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17753 | ;; | |
17754 | ||
17755 | uts4*) | |
17756 | version_type=linux | |
17757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17758 | soname_spec='${libname}${release}${shared_ext}$major' | |
17759 | shlibpath_var=LD_LIBRARY_PATH | |
17760 | ;; | |
17761 | ||
17762 | *) | |
17763 | dynamic_linker=no | |
17764 | ;; | |
17765 | esac | |
030272f3 VY |
17766 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17767 | $as_echo "$dynamic_linker" >&6; } | |
db137867 AC |
17768 | test "$dynamic_linker" = no && can_build_shared=no |
17769 | ||
b676ea3b | 17770 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
030272f3 | 17771 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
17772 | else |
17773 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
17774 | fi | |
17775 | ||
17776 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
17777 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
030272f3 | 17778 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
17779 | else |
17780 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
17781 | fi | |
17782 | ||
17783 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
17784 | ||
db137867 AC |
17785 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17786 | if test "$GCC" = yes; then | |
17787 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17788 | fi | |
17789 | ||
030272f3 VY |
17790 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17791 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
db137867 AC |
17792 | hardcode_action_F77= |
17793 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
17794 | test -n "$runpath_var_F77" || \ | |
17795 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
17796 | ||
17797 | # We can hardcode non-existant directories. | |
17798 | if test "$hardcode_direct_F77" != no && | |
17799 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17800 | # have to relink, otherwise we might link with an installed library | |
17801 | # when we should be linking with a yet-to-be-installed one | |
17802 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
17803 | test "$hardcode_minus_L_F77" != no; then | |
17804 | # Linking always hardcodes the temporary library directory. | |
17805 | hardcode_action_F77=relink | |
17806 | else | |
17807 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17808 | hardcode_action_F77=immediate | |
17809 | fi | |
17810 | else | |
17811 | # We cannot hardcode anything, or else we can only hardcode existing | |
17812 | # directories. | |
17813 | hardcode_action_F77=unsupported | |
17814 | fi | |
030272f3 VY |
17815 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
17816 | $as_echo "$hardcode_action_F77" >&6; } | |
db137867 AC |
17817 | |
17818 | if test "$hardcode_action_F77" = relink; then | |
17819 | # Fast installation is not supported | |
17820 | enable_fast_install=no | |
17821 | elif test "$shlibpath_overrides_runpath" = yes || | |
17822 | test "$enable_shared" = no; then | |
17823 | # Fast installation is not necessary | |
17824 | enable_fast_install=needless | |
17825 | fi | |
17826 | ||
17827 | ||
17828 | # The else clause should only fire when bootstrapping the | |
17829 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17830 | # with your package, and you will get complaints that there are | |
17831 | # no rules to generate ltmain.sh. | |
17832 | if test -f "$ltmain"; then | |
17833 | # See if we are running on zsh, and set the options which allow our commands through | |
17834 | # without removal of \ escapes. | |
17835 | if test -n "${ZSH_VERSION+set}" ; then | |
17836 | setopt NO_GLOB_SUBST | |
17837 | fi | |
17838 | # Now quote all the things that may contain metacharacters while being | |
17839 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17840 | # variables and quote the copies for generation of the libtool script. | |
17841 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
17842 | SED SHELL STRIP \ | |
17843 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17844 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17845 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17846 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17847 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17848 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17849 | old_postinstall_cmds old_postuninstall_cmds \ | |
17850 | compiler_F77 \ | |
17851 | CC_F77 \ | |
17852 | LD_F77 \ | |
17853 | lt_prog_compiler_wl_F77 \ | |
17854 | lt_prog_compiler_pic_F77 \ | |
17855 | lt_prog_compiler_static_F77 \ | |
17856 | lt_prog_compiler_no_builtin_flag_F77 \ | |
17857 | export_dynamic_flag_spec_F77 \ | |
17858 | thread_safe_flag_spec_F77 \ | |
17859 | whole_archive_flag_spec_F77 \ | |
17860 | enable_shared_with_static_runtimes_F77 \ | |
17861 | old_archive_cmds_F77 \ | |
17862 | old_archive_from_new_cmds_F77 \ | |
17863 | predep_objects_F77 \ | |
17864 | postdep_objects_F77 \ | |
17865 | predeps_F77 \ | |
17866 | postdeps_F77 \ | |
17867 | compiler_lib_search_path_F77 \ | |
b676ea3b | 17868 | compiler_lib_search_dirs_F77 \ |
db137867 AC |
17869 | archive_cmds_F77 \ |
17870 | archive_expsym_cmds_F77 \ | |
17871 | postinstall_cmds_F77 \ | |
17872 | postuninstall_cmds_F77 \ | |
17873 | old_archive_from_expsyms_cmds_F77 \ | |
17874 | allow_undefined_flag_F77 \ | |
17875 | no_undefined_flag_F77 \ | |
17876 | export_symbols_cmds_F77 \ | |
17877 | hardcode_libdir_flag_spec_F77 \ | |
17878 | hardcode_libdir_flag_spec_ld_F77 \ | |
17879 | hardcode_libdir_separator_F77 \ | |
17880 | hardcode_automatic_F77 \ | |
17881 | module_cmds_F77 \ | |
17882 | module_expsym_cmds_F77 \ | |
17883 | lt_cv_prog_compiler_c_o_F77 \ | |
17884 | fix_srcfile_path_F77 \ | |
17885 | exclude_expsyms_F77 \ | |
17886 | include_expsyms_F77; do | |
17887 | ||
17888 | case $var in | |
17889 | old_archive_cmds_F77 | \ | |
17890 | old_archive_from_new_cmds_F77 | \ | |
17891 | archive_cmds_F77 | \ | |
17892 | archive_expsym_cmds_F77 | \ | |
17893 | module_cmds_F77 | \ | |
17894 | module_expsym_cmds_F77 | \ | |
17895 | old_archive_from_expsyms_cmds_F77 | \ | |
17896 | export_symbols_cmds_F77 | \ | |
17897 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
17898 | postinstall_cmds | postuninstall_cmds | \ | |
17899 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
17900 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
17901 | # Double-quote double-evaled strings. | |
17902 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
17903 | ;; | |
17904 | *) | |
17905 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
17906 | ;; | |
17907 | esac | |
17908 | done | |
17909 | ||
17910 | case $lt_echo in | |
17911 | *'\$0 --fallback-echo"') | |
17912 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
17913 | ;; | |
17914 | esac | |
17915 | ||
17916 | cfgfile="$ofile" | |
17917 | ||
17918 | cat <<__EOF__ >> "$cfgfile" | |
17919 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
17920 | ||
17921 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17922 | ||
17923 | # Shell to use when invoking shell scripts. | |
17924 | SHELL=$lt_SHELL | |
17925 | ||
17926 | # Whether or not to build shared libraries. | |
17927 | build_libtool_libs=$enable_shared | |
17928 | ||
17929 | # Whether or not to build static libraries. | |
17930 | build_old_libs=$enable_static | |
17931 | ||
17932 | # Whether or not to add -lc for building shared libraries. | |
17933 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
17934 | ||
17935 | # Whether or not to disallow shared libs when runtime libs are static | |
17936 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
17937 | ||
17938 | # Whether or not to optimize for fast installation. | |
17939 | fast_install=$enable_fast_install | |
17940 | ||
17941 | # The host system. | |
17942 | host_alias=$host_alias | |
17943 | host=$host | |
17944 | host_os=$host_os | |
17945 | ||
17946 | # The build system. | |
17947 | build_alias=$build_alias | |
17948 | build=$build | |
17949 | build_os=$build_os | |
17950 | ||
17951 | # An echo program that does not interpret backslashes. | |
17952 | echo=$lt_echo | |
17953 | ||
17954 | # The archiver. | |
17955 | AR=$lt_AR | |
17956 | AR_FLAGS=$lt_AR_FLAGS | |
17957 | ||
17958 | # A C compiler. | |
17959 | LTCC=$lt_LTCC | |
17960 | ||
17961 | # LTCC compiler flags. | |
17962 | LTCFLAGS=$lt_LTCFLAGS | |
17963 | ||
17964 | # A language-specific compiler. | |
17965 | CC=$lt_compiler_F77 | |
17966 | ||
17967 | # Is the compiler the GNU C compiler? | |
17968 | with_gcc=$GCC_F77 | |
17969 | ||
17970 | # An ERE matcher. | |
17971 | EGREP=$lt_EGREP | |
17972 | ||
17973 | # The linker used to build libraries. | |
17974 | LD=$lt_LD_F77 | |
17975 | ||
17976 | # Whether we need hard or soft links. | |
17977 | LN_S=$lt_LN_S | |
17978 | ||
17979 | # A BSD-compatible nm program. | |
17980 | NM=$lt_NM | |
17981 | ||
17982 | # A symbol stripping program | |
17983 | STRIP=$lt_STRIP | |
17984 | ||
17985 | # Used to examine libraries when file_magic_cmd begins "file" | |
17986 | MAGIC_CMD=$MAGIC_CMD | |
17987 | ||
17988 | # Used on cygwin: DLL creation program. | |
17989 | DLLTOOL="$DLLTOOL" | |
17990 | ||
17991 | # Used on cygwin: object dumper. | |
17992 | OBJDUMP="$OBJDUMP" | |
17993 | ||
17994 | # Used on cygwin: assembler. | |
17995 | AS="$AS" | |
17996 | ||
17997 | # The name of the directory that contains temporary libtool files. | |
17998 | objdir=$objdir | |
17999 | ||
18000 | # How to create reloadable object files. | |
18001 | reload_flag=$lt_reload_flag | |
18002 | reload_cmds=$lt_reload_cmds | |
18003 | ||
18004 | # How to pass a linker flag through the compiler. | |
18005 | wl=$lt_lt_prog_compiler_wl_F77 | |
18006 | ||
18007 | # Object file suffix (normally "o"). | |
18008 | objext="$ac_objext" | |
18009 | ||
18010 | # Old archive suffix (normally "a"). | |
18011 | libext="$libext" | |
18012 | ||
18013 | # Shared library suffix (normally ".so"). | |
18014 | shrext_cmds='$shrext_cmds' | |
18015 | ||
18016 | # Executable file suffix (normally ""). | |
18017 | exeext="$exeext" | |
18018 | ||
18019 | # Additional compiler flags for building library objects. | |
18020 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
18021 | pic_mode=$pic_mode | |
18022 | ||
18023 | # What is the maximum length of a command? | |
18024 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18025 | ||
18026 | # Does compiler simultaneously support -c and -o options? | |
18027 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
18028 | ||
18029 | # Must we lock files when doing compilation? | |
18030 | need_locks=$lt_need_locks | |
18031 | ||
18032 | # Do we need the lib prefix for modules? | |
18033 | need_lib_prefix=$need_lib_prefix | |
18034 | ||
18035 | # Do we need a version for libraries? | |
18036 | need_version=$need_version | |
18037 | ||
18038 | # Whether dlopen is supported. | |
18039 | dlopen_support=$enable_dlopen | |
18040 | ||
18041 | # Whether dlopen of programs is supported. | |
18042 | dlopen_self=$enable_dlopen_self | |
18043 | ||
18044 | # Whether dlopen of statically linked programs is supported. | |
18045 | dlopen_self_static=$enable_dlopen_self_static | |
18046 | ||
18047 | # Compiler flag to prevent dynamic linking. | |
18048 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
18049 | ||
18050 | # Compiler flag to turn off builtin functions. | |
18051 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
18052 | ||
18053 | # Compiler flag to allow reflexive dlopens. | |
18054 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
18055 | ||
18056 | # Compiler flag to generate shared objects directly from archives. | |
18057 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
18058 | ||
18059 | # Compiler flag to generate thread-safe objects. | |
18060 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
18061 | ||
18062 | # Library versioning type. | |
18063 | version_type=$version_type | |
18064 | ||
18065 | # Format of library name prefix. | |
18066 | libname_spec=$lt_libname_spec | |
18067 | ||
18068 | # List of archive names. First name is the real one, the rest are links. | |
18069 | # The last name is the one that the linker finds with -lNAME. | |
18070 | library_names_spec=$lt_library_names_spec | |
18071 | ||
18072 | # The coded name of the library, if different from the real name. | |
18073 | soname_spec=$lt_soname_spec | |
18074 | ||
18075 | # Commands used to build and install an old-style archive. | |
18076 | RANLIB=$lt_RANLIB | |
18077 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
18078 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18079 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18080 | ||
18081 | # Create an old-style archive from a shared archive. | |
18082 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
18083 | ||
18084 | # Create a temporary old-style archive to link instead of a shared archive. | |
18085 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
18086 | ||
18087 | # Commands used to build and install a shared archive. | |
18088 | archive_cmds=$lt_archive_cmds_F77 | |
18089 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
18090 | postinstall_cmds=$lt_postinstall_cmds | |
18091 | postuninstall_cmds=$lt_postuninstall_cmds | |
18092 | ||
18093 | # Commands used to build a loadable module (assumed same as above if empty) | |
18094 | module_cmds=$lt_module_cmds_F77 | |
18095 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
18096 | ||
18097 | # Commands to strip libraries. | |
18098 | old_striplib=$lt_old_striplib | |
18099 | striplib=$lt_striplib | |
18100 | ||
18101 | # Dependencies to place before the objects being linked to create a | |
18102 | # shared library. | |
18103 | predep_objects=$lt_predep_objects_F77 | |
18104 | ||
18105 | # Dependencies to place after the objects being linked to create a | |
18106 | # shared library. | |
18107 | postdep_objects=$lt_postdep_objects_F77 | |
18108 | ||
18109 | # Dependencies to place before the objects being linked to create a | |
18110 | # shared library. | |
18111 | predeps=$lt_predeps_F77 | |
18112 | ||
18113 | # Dependencies to place after the objects being linked to create a | |
18114 | # shared library. | |
18115 | postdeps=$lt_postdeps_F77 | |
18116 | ||
b676ea3b AC |
18117 | # The directories searched by this compiler when creating a shared |
18118 | # library | |
18119 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 | |
18120 | ||
db137867 AC |
18121 | # The library search path used internally by the compiler when linking |
18122 | # a shared library. | |
18123 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
18124 | ||
18125 | # Method to check whether dependent libraries are shared objects. | |
18126 | deplibs_check_method=$lt_deplibs_check_method | |
18127 | ||
18128 | # Command to use when deplibs_check_method == file_magic. | |
18129 | file_magic_cmd=$lt_file_magic_cmd | |
18130 | ||
18131 | # Flag that allows shared libraries with undefined symbols to be built. | |
18132 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
18133 | ||
18134 | # Flag that forces no undefined symbols. | |
18135 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
18136 | ||
18137 | # Commands used to finish a libtool library installation in a directory. | |
18138 | finish_cmds=$lt_finish_cmds | |
18139 | ||
18140 | # Same as above, but a single script fragment to be evaled but not shown. | |
18141 | finish_eval=$lt_finish_eval | |
18142 | ||
18143 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18144 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18145 | ||
18146 | # Transform the output of nm in a proper C declaration | |
18147 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18148 | ||
18149 | # Transform the output of nm in a C name address pair | |
18150 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18151 | ||
18152 | # This is the shared library runtime path variable. | |
18153 | runpath_var=$runpath_var | |
18154 | ||
18155 | # This is the shared library path variable. | |
18156 | shlibpath_var=$shlibpath_var | |
18157 | ||
18158 | # Is shlibpath searched before the hard-coded library search path? | |
18159 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18160 | ||
18161 | # How to hardcode a shared library path into an executable. | |
18162 | hardcode_action=$hardcode_action_F77 | |
18163 | ||
18164 | # Whether we should hardcode library paths into libraries. | |
18165 | hardcode_into_libs=$hardcode_into_libs | |
18166 | ||
18167 | # Flag to hardcode \$libdir into a binary during linking. | |
18168 | # This must work even if \$libdir does not exist. | |
18169 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
18170 | ||
18171 | # If ld is used when linking, flag to hardcode \$libdir into | |
18172 | # a binary during linking. This must work even if \$libdir does | |
18173 | # not exist. | |
18174 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
18175 | ||
18176 | # Whether we need a single -rpath flag with a separated argument. | |
18177 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
18178 | ||
18179 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18180 | # resulting binary. | |
18181 | hardcode_direct=$hardcode_direct_F77 | |
18182 | ||
18183 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18184 | # resulting binary. | |
18185 | hardcode_minus_L=$hardcode_minus_L_F77 | |
18186 | ||
18187 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18188 | # the resulting binary. | |
18189 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
18190 | ||
18191 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18192 | # and all subsequent libraries and executables linked against it. | |
18193 | hardcode_automatic=$hardcode_automatic_F77 | |
18194 | ||
18195 | # Variables whose values should be saved in libtool wrapper scripts and | |
18196 | # restored at relink time. | |
18197 | variables_saved_for_relink="$variables_saved_for_relink" | |
18198 | ||
18199 | # Whether libtool must link a program against all its dependency libraries. | |
18200 | link_all_deplibs=$link_all_deplibs_F77 | |
18201 | ||
18202 | # Compile-time system search path for libraries | |
18203 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18204 | ||
18205 | # Run-time system search path for libraries | |
18206 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18207 | ||
18208 | # Fix the shell variable \$srcfile for the compiler. | |
18209 | fix_srcfile_path=$lt_fix_srcfile_path | |
18210 | ||
18211 | # Set to yes if exported symbols are required. | |
18212 | always_export_symbols=$always_export_symbols_F77 | |
18213 | ||
18214 | # The commands to list exported symbols. | |
18215 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
18216 | ||
18217 | # The commands to extract the exported symbol list from a shared archive. | |
18218 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18219 | ||
18220 | # Symbols that should not be listed in the preloaded symbols. | |
18221 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
18222 | ||
18223 | # Symbols that must always be exported. | |
18224 | include_expsyms=$lt_include_expsyms_F77 | |
18225 | ||
18226 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18227 | ||
18228 | __EOF__ | |
18229 | ||
18230 | ||
18231 | else | |
18232 | # If there is no Makefile yet, we rely on a make rule to execute | |
18233 | # `config.status --recheck' to rerun these tests and create the | |
18234 | # libtool script then. | |
18235 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18236 | if test -f "$ltmain_in"; then | |
18237 | test -f Makefile && make "$ltmain" | |
18238 | fi | |
18239 | fi | |
18240 | ||
18241 | ||
18242 | ac_ext=c | |
18243 | ac_cpp='$CPP $CPPFLAGS' | |
18244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18247 | ||
18248 | CC="$lt_save_CC" | |
18249 | ||
18250 | else | |
18251 | tagname="" | |
18252 | fi | |
18253 | ;; | |
18254 | ||
18255 | GCJ) | |
18256 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
18257 | ||
18258 | ||
18259 | # Source file extension for Java test sources. | |
18260 | ac_ext=java | |
18261 | ||
18262 | # Object file extension for compiled Java test sources. | |
18263 | objext=o | |
18264 | objext_GCJ=$objext | |
18265 | ||
18266 | # Code to be used in simple compile tests | |
18267 | lt_simple_compile_test_code="class foo {}" | |
18268 | ||
18269 | # Code to be used in simple link tests | |
18270 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' | |
18271 | ||
18272 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18273 | ||
18274 | # If no C compiler was specified, use CC. | |
18275 | LTCC=${LTCC-"$CC"} | |
18276 | ||
18277 | # If no C compiler flags were specified, use CFLAGS. | |
18278 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18279 | ||
18280 | # Allow CC to be a program name with arguments. | |
18281 | compiler=$CC | |
18282 | ||
18283 | ||
18284 | # save warnings/boilerplate of simple test code | |
18285 | ac_outfile=conftest.$ac_objext | |
18286 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18287 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18288 | _lt_compiler_boilerplate=`cat conftest.err` | |
18289 | $rm conftest* | |
18290 | ||
18291 | ac_outfile=conftest.$ac_objext | |
18292 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
18293 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18294 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 18295 | $rm -r conftest* |
db137867 AC |
18296 | |
18297 | ||
18298 | # Allow CC to be a program name with arguments. | |
18299 | lt_save_CC="$CC" | |
18300 | CC=${GCJ-"gcj"} | |
18301 | compiler=$CC | |
18302 | compiler_GCJ=$CC | |
18303 | for cc_temp in $compiler""; do | |
18304 | case $cc_temp in | |
18305 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18306 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18307 | \-*) ;; | |
18308 | *) break;; | |
18309 | esac | |
18310 | done | |
18311 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18312 | ||
18313 | ||
18314 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
18315 | archive_cmds_need_lc_GCJ=no | |
18316 | ||
18317 | old_archive_cmds_GCJ=$old_archive_cmds | |
18318 | ||
18319 | ||
18320 | lt_prog_compiler_no_builtin_flag_GCJ= | |
18321 | ||
18322 | if test "$GCC" = yes; then | |
18323 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
18324 | ||
18325 | ||
030272f3 VY |
18326 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
18327 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
db137867 | 18328 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
030272f3 | 18329 | $as_echo_n "(cached) " >&6 |
db137867 AC |
18330 | else |
18331 | lt_cv_prog_compiler_rtti_exceptions=no | |
18332 | ac_outfile=conftest.$ac_objext | |
18333 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18334 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
18335 | # Insert the option either (1) after the last *FLAGS variable, or | |
18336 | # (2) before a word containing "conftest.", or (3) at the end. | |
18337 | # Note that $ac_compile itself does not contain backslashes and begins | |
18338 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18339 | # The option is referenced via a variable to avoid confusing sed. | |
18340 | lt_compile=`echo "$ac_compile" | $SED \ | |
18341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18343 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 18344 | (eval echo "\"\$as_me:18344: $lt_compile\"" >&5) |
db137867 AC |
18345 | (eval "$lt_compile" 2>conftest.err) |
18346 | ac_status=$? | |
18347 | cat conftest.err >&5 | |
030272f3 | 18348 | echo "$as_me:18348: \$? = $ac_status" >&5 |
db137867 AC |
18349 | if (exit $ac_status) && test -s "$ac_outfile"; then |
18350 | # The compiler can only warn and ignore the option if not recognized | |
18351 | # So say no if there are warnings other than the usual output. | |
18352 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
18353 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18354 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
18355 | lt_cv_prog_compiler_rtti_exceptions=yes | |
18356 | fi | |
18357 | fi | |
18358 | $rm conftest* | |
18359 | ||
18360 | fi | |
030272f3 VY |
18361 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
18362 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
db137867 AC |
18363 | |
18364 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
18365 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
18366 | else | |
18367 | : | |
18368 | fi | |
18369 | ||
18370 | fi | |
18371 | ||
18372 | lt_prog_compiler_wl_GCJ= | |
18373 | lt_prog_compiler_pic_GCJ= | |
18374 | lt_prog_compiler_static_GCJ= | |
18375 | ||
030272f3 VY |
18376 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
18377 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
db137867 AC |
18378 | |
18379 | if test "$GCC" = yes; then | |
18380 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18381 | lt_prog_compiler_static_GCJ='-static' | |
18382 | ||
18383 | case $host_os in | |
18384 | aix*) | |
18385 | # All AIX code is PIC. | |
18386 | if test "$host_cpu" = ia64; then | |
18387 | # AIX 5 now supports IA64 processor | |
18388 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18389 | fi | |
18390 | ;; | |
18391 | ||
18392 | amigaos*) | |
18393 | # FIXME: we need at least 68020 code to build shared libraries, but | |
18394 | # adding the `-m68020' flag to GCC prevents building anything better, | |
18395 | # like `-m68040'. | |
18396 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
18397 | ;; | |
18398 | ||
18399 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
18400 | # PIC is the default for these OSes. | |
18401 | ;; | |
18402 | ||
18403 | mingw* | cygwin* | pw32* | os2*) | |
18404 | # This hack is so that the source file can tell whether it is being | |
18405 | # built for inclusion in a dll (and should export symbols for example). | |
18406 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
18407 | # (--disable-auto-import) libraries | |
b676ea3b | 18408 | |
db137867 AC |
18409 | ;; |
18410 | ||
18411 | darwin* | rhapsody*) | |
18412 | # PIC is the default on this platform | |
18413 | # Common symbols not allowed in MH_DYLIB files | |
18414 | lt_prog_compiler_pic_GCJ='-fno-common' | |
18415 | ;; | |
18416 | ||
18417 | interix[3-9]*) | |
18418 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
18419 | # Instead, we relocate shared libraries at runtime. | |
18420 | ;; | |
18421 | ||
18422 | msdosdjgpp*) | |
18423 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
18424 | # on systems that don't support them. | |
18425 | lt_prog_compiler_can_build_shared_GCJ=no | |
18426 | enable_shared=no | |
18427 | ;; | |
18428 | ||
18429 | sysv4*MP*) | |
18430 | if test -d /usr/nec; then | |
18431 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
18432 | fi | |
18433 | ;; | |
18434 | ||
18435 | hpux*) | |
18436 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
18437 | # not for PA HP-UX. | |
18438 | case $host_cpu in | |
18439 | hppa*64*|ia64*) | |
18440 | # +Z the default | |
18441 | ;; | |
18442 | *) | |
18443 | lt_prog_compiler_pic_GCJ='-fPIC' | |
18444 | ;; | |
18445 | esac | |
18446 | ;; | |
18447 | ||
18448 | *) | |
18449 | lt_prog_compiler_pic_GCJ='-fPIC' | |
18450 | ;; | |
18451 | esac | |
18452 | else | |
18453 | # PORTME Check for flag to pass linker flags through the system compiler. | |
18454 | case $host_os in | |
18455 | aix*) | |
18456 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18457 | if test "$host_cpu" = ia64; then | |
18458 | # AIX 5 now supports IA64 processor | |
18459 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18460 | else | |
18461 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
18462 | fi | |
18463 | ;; | |
18464 | darwin*) | |
18465 | # PIC is the default on this platform | |
18466 | # Common symbols not allowed in MH_DYLIB files | |
18467 | case $cc_basename in | |
18468 | xlc*) | |
18469 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
18470 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18471 | ;; | |
18472 | esac | |
18473 | ;; | |
18474 | ||
18475 | mingw* | cygwin* | pw32* | os2*) | |
18476 | # This hack is so that the source file can tell whether it is being | |
18477 | # built for inclusion in a dll (and should export symbols for example). | |
b676ea3b | 18478 | |
db137867 AC |
18479 | ;; |
18480 | ||
18481 | hpux9* | hpux10* | hpux11*) | |
18482 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18483 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
18484 | # not for PA HP-UX. | |
18485 | case $host_cpu in | |
18486 | hppa*64*|ia64*) | |
18487 | # +Z the default | |
18488 | ;; | |
18489 | *) | |
18490 | lt_prog_compiler_pic_GCJ='+Z' | |
18491 | ;; | |
18492 | esac | |
18493 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
18494 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
18495 | ;; | |
18496 | ||
18497 | irix5* | irix6* | nonstopux*) | |
18498 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18499 | # PIC (with -KPIC) is the default. | |
18500 | lt_prog_compiler_static_GCJ='-non_shared' | |
18501 | ;; | |
18502 | ||
18503 | newsos6) | |
18504 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18505 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18506 | ;; | |
18507 | ||
18508 | linux* | k*bsd*-gnu) | |
18509 | case $cc_basename in | |
18510 | icc* | ecc*) | |
18511 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18512 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18513 | lt_prog_compiler_static_GCJ='-static' | |
18514 | ;; | |
18515 | pgcc* | pgf77* | pgf90* | pgf95*) | |
18516 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
18517 | # which looks to be a dead project) | |
18518 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18519 | lt_prog_compiler_pic_GCJ='-fpic' | |
18520 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18521 | ;; | |
18522 | ccc*) | |
18523 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18524 | # All Alpha code is PIC. | |
18525 | lt_prog_compiler_static_GCJ='-non_shared' | |
18526 | ;; | |
18527 | *) | |
18528 | case `$CC -V 2>&1 | sed 5q` in | |
18529 | *Sun\ C*) | |
18530 | # Sun C 5.9 | |
18531 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18532 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18533 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18534 | ;; | |
18535 | *Sun\ F*) | |
18536 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
18537 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18538 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18539 | lt_prog_compiler_wl_GCJ='' | |
18540 | ;; | |
18541 | esac | |
18542 | ;; | |
18543 | esac | |
18544 | ;; | |
18545 | ||
18546 | osf3* | osf4* | osf5*) | |
18547 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18548 | # All OSF/1 code is PIC. | |
18549 | lt_prog_compiler_static_GCJ='-non_shared' | |
18550 | ;; | |
18551 | ||
18552 | rdos*) | |
18553 | lt_prog_compiler_static_GCJ='-non_shared' | |
18554 | ;; | |
18555 | ||
18556 | solaris*) | |
18557 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18558 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18559 | case $cc_basename in | |
18560 | f77* | f90* | f95*) | |
18561 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
18562 | *) | |
18563 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
18564 | esac | |
18565 | ;; | |
18566 | ||
18567 | sunos4*) | |
18568 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
18569 | lt_prog_compiler_pic_GCJ='-PIC' | |
18570 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18571 | ;; | |
18572 | ||
18573 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
18574 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18575 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18576 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18577 | ;; | |
18578 | ||
18579 | sysv4*MP*) | |
18580 | if test -d /usr/nec ;then | |
18581 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
18582 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18583 | fi | |
18584 | ;; | |
18585 | ||
18586 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
18587 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18588 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18589 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18590 | ;; | |
18591 | ||
18592 | unicos*) | |
18593 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18594 | lt_prog_compiler_can_build_shared_GCJ=no | |
18595 | ;; | |
18596 | ||
18597 | uts4*) | |
18598 | lt_prog_compiler_pic_GCJ='-pic' | |
18599 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18600 | ;; | |
18601 | ||
18602 | *) | |
18603 | lt_prog_compiler_can_build_shared_GCJ=no | |
18604 | ;; | |
18605 | esac | |
18606 | fi | |
18607 | ||
030272f3 VY |
18608 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
18609 | $as_echo "$lt_prog_compiler_pic_GCJ" >&6; } | |
db137867 AC |
18610 | |
18611 | # | |
18612 | # Check to make sure the PIC flag actually works. | |
18613 | # | |
18614 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
18615 | ||
030272f3 VY |
18616 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
18617 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } | |
b676ea3b | 18618 | if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then |
030272f3 | 18619 | $as_echo_n "(cached) " >&6 |
db137867 | 18620 | else |
b676ea3b | 18621 | lt_cv_prog_compiler_pic_works_GCJ=no |
db137867 AC |
18622 | ac_outfile=conftest.$ac_objext |
18623 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18624 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
18625 | # Insert the option either (1) after the last *FLAGS variable, or | |
18626 | # (2) before a word containing "conftest.", or (3) at the end. | |
18627 | # Note that $ac_compile itself does not contain backslashes and begins | |
18628 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18629 | # The option is referenced via a variable to avoid confusing sed. | |
18630 | lt_compile=`echo "$ac_compile" | $SED \ | |
18631 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18632 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18633 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 18634 | (eval echo "\"\$as_me:18634: $lt_compile\"" >&5) |
db137867 AC |
18635 | (eval "$lt_compile" 2>conftest.err) |
18636 | ac_status=$? | |
18637 | cat conftest.err >&5 | |
030272f3 | 18638 | echo "$as_me:18638: \$? = $ac_status" >&5 |
db137867 AC |
18639 | if (exit $ac_status) && test -s "$ac_outfile"; then |
18640 | # The compiler can only warn and ignore the option if not recognized | |
18641 | # So say no if there are warnings other than the usual output. | |
18642 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
18643 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18644 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 18645 | lt_cv_prog_compiler_pic_works_GCJ=yes |
db137867 AC |
18646 | fi |
18647 | fi | |
18648 | $rm conftest* | |
18649 | ||
18650 | fi | |
030272f3 VY |
18651 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 |
18652 | $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } | |
db137867 | 18653 | |
b676ea3b | 18654 | if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then |
db137867 AC |
18655 | case $lt_prog_compiler_pic_GCJ in |
18656 | "" | " "*) ;; | |
18657 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
18658 | esac | |
18659 | else | |
18660 | lt_prog_compiler_pic_GCJ= | |
18661 | lt_prog_compiler_can_build_shared_GCJ=no | |
18662 | fi | |
18663 | ||
18664 | fi | |
18665 | case $host_os in | |
18666 | # For platforms which do not support PIC, -DPIC is meaningless: | |
18667 | *djgpp*) | |
18668 | lt_prog_compiler_pic_GCJ= | |
18669 | ;; | |
18670 | *) | |
18671 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
18672 | ;; | |
18673 | esac | |
18674 | ||
18675 | # | |
18676 | # Check to make sure the static flag actually works. | |
18677 | # | |
18678 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
030272f3 VY |
18679 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
18680 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
b676ea3b | 18681 | if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then |
030272f3 | 18682 | $as_echo_n "(cached) " >&6 |
db137867 | 18683 | else |
b676ea3b | 18684 | lt_cv_prog_compiler_static_works_GCJ=no |
db137867 AC |
18685 | save_LDFLAGS="$LDFLAGS" |
18686 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
18687 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
18688 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
18689 | # The linker can only warn and ignore the option if not recognized | |
18690 | # So say no if there are warnings | |
18691 | if test -s conftest.err; then | |
18692 | # Append any errors to the config.log. | |
18693 | cat conftest.err 1>&5 | |
18694 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
18695 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18696 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b676ea3b | 18697 | lt_cv_prog_compiler_static_works_GCJ=yes |
db137867 AC |
18698 | fi |
18699 | else | |
b676ea3b | 18700 | lt_cv_prog_compiler_static_works_GCJ=yes |
db137867 AC |
18701 | fi |
18702 | fi | |
b676ea3b | 18703 | $rm -r conftest* |
db137867 AC |
18704 | LDFLAGS="$save_LDFLAGS" |
18705 | ||
18706 | fi | |
030272f3 VY |
18707 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 |
18708 | $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } | |
db137867 | 18709 | |
b676ea3b | 18710 | if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then |
db137867 AC |
18711 | : |
18712 | else | |
18713 | lt_prog_compiler_static_GCJ= | |
18714 | fi | |
18715 | ||
18716 | ||
030272f3 VY |
18717 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
18718 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
db137867 | 18719 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
030272f3 | 18720 | $as_echo_n "(cached) " >&6 |
db137867 AC |
18721 | else |
18722 | lt_cv_prog_compiler_c_o_GCJ=no | |
18723 | $rm -r conftest 2>/dev/null | |
18724 | mkdir conftest | |
18725 | cd conftest | |
18726 | mkdir out | |
18727 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18728 | ||
18729 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
18730 | # Insert the option either (1) after the last *FLAGS variable, or | |
18731 | # (2) before a word containing "conftest.", or (3) at the end. | |
18732 | # Note that $ac_compile itself does not contain backslashes and begins | |
18733 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18734 | lt_compile=`echo "$ac_compile" | $SED \ | |
18735 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18736 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18737 | -e 's:$: $lt_compiler_flag:'` | |
030272f3 | 18738 | (eval echo "\"\$as_me:18738: $lt_compile\"" >&5) |
db137867 AC |
18739 | (eval "$lt_compile" 2>out/conftest.err) |
18740 | ac_status=$? | |
18741 | cat out/conftest.err >&5 | |
030272f3 | 18742 | echo "$as_me:18742: \$? = $ac_status" >&5 |
db137867 AC |
18743 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
18744 | then | |
18745 | # The compiler can only warn and ignore the option if not recognized | |
18746 | # So say no if there are warnings | |
18747 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
18748 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
18749 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
18750 | lt_cv_prog_compiler_c_o_GCJ=yes | |
18751 | fi | |
18752 | fi | |
18753 | chmod u+w . 2>&5 | |
18754 | $rm conftest* | |
18755 | # SGI C++ compiler will create directory out/ii_files/ for | |
18756 | # template instantiation | |
18757 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
18758 | $rm out/* && rmdir out | |
18759 | cd .. | |
18760 | rmdir conftest | |
18761 | $rm conftest* | |
18762 | ||
18763 | fi | |
030272f3 VY |
18764 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
18765 | $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
db137867 AC |
18766 | |
18767 | ||
18768 | hard_links="nottested" | |
18769 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
18770 | # do not overwrite the value of need_locks provided by the user | |
030272f3 VY |
18771 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
18772 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
db137867 AC |
18773 | hard_links=yes |
18774 | $rm conftest* | |
18775 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18776 | touch conftest.a | |
18777 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
18778 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
030272f3 VY |
18779 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
18780 | $as_echo "$hard_links" >&6; } | |
db137867 | 18781 | if test "$hard_links" = no; then |
030272f3 VY |
18782 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
18783 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
db137867 AC |
18784 | need_locks=warn |
18785 | fi | |
18786 | else | |
18787 | need_locks=no | |
18788 | fi | |
18789 | ||
030272f3 VY |
18790 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
18791 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
db137867 AC |
18792 | |
18793 | runpath_var= | |
18794 | allow_undefined_flag_GCJ= | |
18795 | enable_shared_with_static_runtimes_GCJ=no | |
18796 | archive_cmds_GCJ= | |
18797 | archive_expsym_cmds_GCJ= | |
18798 | old_archive_From_new_cmds_GCJ= | |
18799 | old_archive_from_expsyms_cmds_GCJ= | |
18800 | export_dynamic_flag_spec_GCJ= | |
18801 | whole_archive_flag_spec_GCJ= | |
18802 | thread_safe_flag_spec_GCJ= | |
18803 | hardcode_libdir_flag_spec_GCJ= | |
18804 | hardcode_libdir_flag_spec_ld_GCJ= | |
18805 | hardcode_libdir_separator_GCJ= | |
18806 | hardcode_direct_GCJ=no | |
18807 | hardcode_minus_L_GCJ=no | |
18808 | hardcode_shlibpath_var_GCJ=unsupported | |
18809 | link_all_deplibs_GCJ=unknown | |
18810 | hardcode_automatic_GCJ=no | |
18811 | module_cmds_GCJ= | |
18812 | module_expsym_cmds_GCJ= | |
18813 | always_export_symbols_GCJ=no | |
18814 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
18815 | # include_expsyms should be a list of space-separated symbols to be *always* | |
18816 | # included in the symbol list | |
18817 | include_expsyms_GCJ= | |
18818 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
18819 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
18820 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
18821 | # as well as any symbol that contains `d'. | |
b676ea3b | 18822 | exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
db137867 AC |
18823 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
18824 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
18825 | # the symbol is explicitly referenced. Since portable code cannot | |
18826 | # rely on this symbol name, it's probably fine to never include it in | |
18827 | # preloaded symbol tables. | |
b676ea3b | 18828 | # Exclude shared library initialization/finalization symbols. |
db137867 AC |
18829 | extract_expsyms_cmds= |
18830 | # Just being paranoid about ensuring that cc_basename is set. | |
18831 | for cc_temp in $compiler""; do | |
18832 | case $cc_temp in | |
18833 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18834 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18835 | \-*) ;; | |
18836 | *) break;; | |
18837 | esac | |
18838 | done | |
18839 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18840 | ||
18841 | case $host_os in | |
18842 | cygwin* | mingw* | pw32*) | |
18843 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
18844 | # When not using gcc, we currently assume that we are using | |
18845 | # Microsoft Visual C++. | |
18846 | if test "$GCC" != yes; then | |
18847 | with_gnu_ld=no | |
18848 | fi | |
18849 | ;; | |
18850 | interix*) | |
18851 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
18852 | with_gnu_ld=yes | |
18853 | ;; | |
18854 | openbsd*) | |
18855 | with_gnu_ld=no | |
18856 | ;; | |
18857 | esac | |
18858 | ||
18859 | ld_shlibs_GCJ=yes | |
18860 | if test "$with_gnu_ld" = yes; then | |
18861 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
18862 | wlarc='${wl}' | |
18863 | ||
18864 | # Set some defaults for GNU ld with shared library support. These | |
18865 | # are reset later if shared libraries are not supported. Putting them | |
18866 | # here allows them to be overridden if necessary. | |
18867 | runpath_var=LD_RUN_PATH | |
18868 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
18869 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
18870 | # ancient GNU ld didn't support --whole-archive et. al. | |
18871 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
18872 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18873 | else | |
18874 | whole_archive_flag_spec_GCJ= | |
18875 | fi | |
18876 | supports_anon_versioning=no | |
18877 | case `$LD -v 2>/dev/null` in | |
18878 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
18879 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
18880 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
18881 | *\ 2.11.*) ;; # other 2.11 versions | |
18882 | *) supports_anon_versioning=yes ;; | |
18883 | esac | |
18884 | ||
18885 | # See if GNU ld supports shared libraries. | |
18886 | case $host_os in | |
b676ea3b | 18887 | aix[3-9]*) |
db137867 AC |
18888 | # On AIX/PPC, the GNU linker is very broken |
18889 | if test "$host_cpu" != ia64; then | |
18890 | ld_shlibs_GCJ=no | |
18891 | cat <<EOF 1>&2 | |
18892 | ||
18893 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
18894 | *** to be unable to reliably create shared libraries on AIX. | |
18895 | *** Therefore, libtool is disabling shared libraries support. If you | |
18896 | *** really care for shared libraries, you may want to modify your PATH | |
18897 | *** so that a non-GNU linker is found, and then restart. | |
18898 | ||
18899 | EOF | |
18900 | fi | |
18901 | ;; | |
18902 | ||
18903 | amigaos*) | |
18904 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
18905 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18906 | hardcode_minus_L_GCJ=yes | |
18907 | ||
18908 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
18909 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
18910 | # to version 4, is to share data among multiple programs linked | |
18911 | # with the same dynamic library. Since this doesn't match the | |
18912 | # behavior of shared libraries on other platforms, we can't use | |
18913 | # them. | |
18914 | ld_shlibs_GCJ=no | |
18915 | ;; | |
18916 | ||
18917 | beos*) | |
18918 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18919 | allow_undefined_flag_GCJ=unsupported | |
18920 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
18921 | # support --undefined. This deserves some investigation. FIXME | |
18922 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18923 | else | |
18924 | ld_shlibs_GCJ=no | |
18925 | fi | |
18926 | ;; | |
18927 | ||
18928 | cygwin* | mingw* | pw32*) | |
18929 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
18930 | # as there is no search path for DLLs. | |
18931 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18932 | allow_undefined_flag_GCJ=unsupported | |
18933 | always_export_symbols_GCJ=no | |
18934 | enable_shared_with_static_runtimes_GCJ=yes | |
18935 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
18936 | ||
18937 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
18938 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18939 | # If the export-symbols file already is a .def file (1st line | |
18940 | # is EXPORTS), use it as is; otherwise, prepend... | |
18941 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18942 | cp $export_symbols $output_objdir/$soname.def; | |
18943 | else | |
18944 | echo EXPORTS > $output_objdir/$soname.def; | |
18945 | cat $export_symbols >> $output_objdir/$soname.def; | |
18946 | fi~ | |
18947 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18948 | else | |
18949 | ld_shlibs_GCJ=no | |
18950 | fi | |
18951 | ;; | |
18952 | ||
18953 | interix[3-9]*) | |
18954 | hardcode_direct_GCJ=no | |
18955 | hardcode_shlibpath_var_GCJ=no | |
18956 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
18957 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18958 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
18959 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
18960 | # default) and relocated if they conflict, which is a slow very memory | |
18961 | # consuming and fragmenting process. To avoid this, we pick a random, | |
18962 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18963 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18964 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18965 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18966 | ;; | |
18967 | ||
18968 | gnu* | linux* | k*bsd*-gnu) | |
18969 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18970 | tmp_addflag= | |
18971 | case $cc_basename,$host_cpu in | |
18972 | pgcc*) # Portland Group C compiler | |
18973 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18974 | tmp_addflag=' $pic_flag' | |
18975 | ;; | |
18976 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
18977 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18978 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
18979 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
18980 | tmp_addflag=' -i_dynamic' ;; | |
18981 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
18982 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
18983 | ifc* | ifort*) # Intel Fortran compiler | |
18984 | tmp_addflag=' -nofor_main' ;; | |
18985 | esac | |
18986 | case `$CC -V 2>&1 | sed 5q` in | |
18987 | *Sun\ C*) # Sun C 5.9 | |
18988 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18989 | tmp_sharedflag='-G' ;; | |
18990 | *Sun\ F*) # Sun Fortran 8.3 | |
18991 | tmp_sharedflag='-G' ;; | |
18992 | *) | |
18993 | tmp_sharedflag='-shared' ;; | |
18994 | esac | |
18995 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18996 | ||
18997 | if test $supports_anon_versioning = yes; then | |
18998 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
18999 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
19000 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
19001 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
19002 | fi | |
19003 | link_all_deplibs_GCJ=no | |
19004 | else | |
19005 | ld_shlibs_GCJ=no | |
19006 | fi | |
19007 | ;; | |
19008 | ||
19009 | netbsd* | netbsdelf*-gnu) | |
19010 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19011 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
19012 | wlarc= | |
19013 | else | |
19014 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
19015 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
19016 | fi | |
19017 | ;; | |
19018 | ||
19019 | solaris*) | |
19020 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
19021 | ld_shlibs_GCJ=no | |
19022 | cat <<EOF 1>&2 | |
19023 | ||
19024 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
19025 | *** create shared libraries on Solaris systems. Therefore, libtool | |
19026 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
19027 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
19028 | *** your PATH or compiler configuration so that the native linker is | |
19029 | *** used, and then restart. | |
19030 | ||
19031 | EOF | |
19032 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
19033 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
19034 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
19035 | else | |
19036 | ld_shlibs_GCJ=no | |
19037 | fi | |
19038 | ;; | |
19039 | ||
19040 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
19041 | case `$LD -v 2>&1` in | |
19042 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
19043 | ld_shlibs_GCJ=no | |
19044 | cat <<_LT_EOF 1>&2 | |
19045 | ||
19046 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
19047 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
19048 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
19049 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
19050 | *** your PATH or compiler configuration so that the native linker is | |
19051 | *** used, and then restart. | |
19052 | ||
19053 | _LT_EOF | |
19054 | ;; | |
19055 | *) | |
19056 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
19057 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
19058 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
19059 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
19060 | else | |
19061 | ld_shlibs_GCJ=no | |
19062 | fi | |
19063 | ;; | |
19064 | esac | |
19065 | ;; | |
19066 | ||
19067 | sunos4*) | |
19068 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19069 | wlarc= | |
19070 | hardcode_direct_GCJ=yes | |
19071 | hardcode_shlibpath_var_GCJ=no | |
19072 | ;; | |
19073 | ||
19074 | *) | |
19075 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
19076 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
19077 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
19078 | else | |
19079 | ld_shlibs_GCJ=no | |
19080 | fi | |
19081 | ;; | |
19082 | esac | |
19083 | ||
19084 | if test "$ld_shlibs_GCJ" = no; then | |
19085 | runpath_var= | |
19086 | hardcode_libdir_flag_spec_GCJ= | |
19087 | export_dynamic_flag_spec_GCJ= | |
19088 | whole_archive_flag_spec_GCJ= | |
19089 | fi | |
19090 | else | |
19091 | # PORTME fill in a description of your system's linker (not GNU ld) | |
19092 | case $host_os in | |
19093 | aix3*) | |
19094 | allow_undefined_flag_GCJ=unsupported | |
19095 | always_export_symbols_GCJ=yes | |
19096 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
19097 | # Note: this linker hardcodes the directories in LIBPATH if there | |
19098 | # are no directories specified by -L. | |
19099 | hardcode_minus_L_GCJ=yes | |
19100 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
19101 | # Neither direct hardcoding nor static linking is supported with a | |
19102 | # broken collect2. | |
19103 | hardcode_direct_GCJ=unsupported | |
19104 | fi | |
19105 | ;; | |
19106 | ||
b676ea3b | 19107 | aix[4-9]*) |
db137867 AC |
19108 | if test "$host_cpu" = ia64; then |
19109 | # On IA64, the linker does run time linking by default, so we don't | |
19110 | # have to do anything special. | |
19111 | aix_use_runtimelinking=no | |
19112 | exp_sym_flag='-Bexport' | |
19113 | no_entry_flag="" | |
19114 | else | |
19115 | # If we're using GNU nm, then we don't want the "-C" option. | |
19116 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
19117 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
19118 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
19119 | else | |
19120 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
19121 | fi | |
19122 | aix_use_runtimelinking=no | |
19123 | ||
19124 | # Test if we are trying to use run time linking or normal | |
19125 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
19126 | # need to do runtime linking. | |
b676ea3b | 19127 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 AC |
19128 | for ld_flag in $LDFLAGS; do |
19129 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
19130 | aix_use_runtimelinking=yes | |
19131 | break | |
19132 | fi | |
19133 | done | |
19134 | ;; | |
19135 | esac | |
19136 | ||
19137 | exp_sym_flag='-bexport' | |
19138 | no_entry_flag='-bnoentry' | |
19139 | fi | |
19140 | ||
19141 | # When large executables or shared objects are built, AIX ld can | |
19142 | # have problems creating the table of contents. If linking a library | |
19143 | # or program results in "error TOC overflow" add -mminimal-toc to | |
19144 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
19145 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
19146 | ||
19147 | archive_cmds_GCJ='' | |
19148 | hardcode_direct_GCJ=yes | |
19149 | hardcode_libdir_separator_GCJ=':' | |
19150 | link_all_deplibs_GCJ=yes | |
19151 | ||
19152 | if test "$GCC" = yes; then | |
19153 | case $host_os in aix4.[012]|aix4.[012].*) | |
19154 | # We only want to do this on AIX 4.2 and lower, the check | |
19155 | # below for broken collect2 doesn't work under 4.3+ | |
19156 | collect2name=`${CC} -print-prog-name=collect2` | |
19157 | if test -f "$collect2name" && \ | |
19158 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
19159 | then | |
19160 | # We have reworked collect2 | |
19161 | : | |
19162 | else | |
19163 | # We have old collect2 | |
19164 | hardcode_direct_GCJ=unsupported | |
19165 | # It fails to find uninstalled libraries when the uninstalled | |
19166 | # path is not listed in the libpath. Setting hardcode_minus_L | |
19167 | # to unsupported forces relinking | |
19168 | hardcode_minus_L_GCJ=yes | |
19169 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19170 | hardcode_libdir_separator_GCJ= | |
19171 | fi | |
19172 | ;; | |
19173 | esac | |
19174 | shared_flag='-shared' | |
19175 | if test "$aix_use_runtimelinking" = yes; then | |
19176 | shared_flag="$shared_flag "'${wl}-G' | |
19177 | fi | |
19178 | else | |
19179 | # not using gcc | |
19180 | if test "$host_cpu" = ia64; then | |
19181 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
19182 | # chokes on -Wl,-G. The following line is correct: | |
19183 | shared_flag='-G' | |
19184 | else | |
19185 | if test "$aix_use_runtimelinking" = yes; then | |
19186 | shared_flag='${wl}-G' | |
19187 | else | |
19188 | shared_flag='${wl}-bM:SRE' | |
19189 | fi | |
19190 | fi | |
19191 | fi | |
19192 | ||
19193 | # It seems that -bexpall does not export symbols beginning with | |
19194 | # underscore (_), so it is better to generate a list of symbols to export. | |
19195 | always_export_symbols_GCJ=yes | |
19196 | if test "$aix_use_runtimelinking" = yes; then | |
19197 | # Warning - without using the other runtime loading flags (-brtl), | |
19198 | # -berok will link without error, but may produce a broken library. | |
19199 | allow_undefined_flag_GCJ='-berok' | |
19200 | # Determine the default libpath from the value encoded in an empty executable. | |
19201 | cat >conftest.$ac_ext <<_ACEOF | |
19202 | /* confdefs.h. */ | |
19203 | _ACEOF | |
19204 | cat confdefs.h >>conftest.$ac_ext | |
19205 | cat >>conftest.$ac_ext <<_ACEOF | |
19206 | /* end confdefs.h. */ | |
19207 | ||
19208 | int | |
19209 | main () | |
19210 | { | |
19211 | ||
19212 | ; | |
19213 | return 0; | |
19214 | } | |
19215 | _ACEOF | |
19216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19217 | if { (ac_try="$ac_link" | |
19218 | case "(($ac_try" in | |
19219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19220 | *) ac_try_echo=$ac_try;; | |
19221 | esac | |
030272f3 VY |
19222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19223 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
19224 | (eval "$ac_link") 2>conftest.er1 |
19225 | ac_status=$? | |
19226 | grep -v '^ *+' conftest.er1 >conftest.err | |
19227 | rm -f conftest.er1 | |
19228 | cat conftest.err >&5 | |
030272f3 | 19229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
19230 | (exit $ac_status); } && { |
19231 | test -z "$ac_c_werror_flag" || | |
19232 | test ! -s conftest.err | |
030272f3 VY |
19233 | } && test -s conftest$ac_exeext && { |
19234 | test "$cross_compiling" = yes || | |
19235 | $as_test_x conftest$ac_exeext | |
19236 | }; then | |
db137867 AC |
19237 | |
19238 | lt_aix_libpath_sed=' | |
19239 | /Import File Strings/,/^$/ { | |
19240 | /^0/ { | |
19241 | s/^0 *\(.*\)$/\1/ | |
19242 | p | |
19243 | } | |
19244 | }' | |
19245 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
19246 | # Check for a 64-bit object if we didn't find anything. | |
19247 | if test -z "$aix_libpath"; then | |
19248 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
19249 | fi | |
19250 | else | |
030272f3 | 19251 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 |
19253 | ||
19254 | ||
19255 | fi | |
19256 | ||
030272f3 | 19257 | rm -rf conftest.dSYM |
db137867 AC |
19258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19259 | conftest$ac_exeext conftest.$ac_ext | |
19260 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19261 | ||
19262 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19263 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
19264 | else | |
19265 | if test "$host_cpu" = ia64; then | |
19266 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
19267 | allow_undefined_flag_GCJ="-z nodefs" | |
19268 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
19269 | else | |
19270 | # Determine the default libpath from the value encoded in an empty executable. | |
19271 | cat >conftest.$ac_ext <<_ACEOF | |
19272 | /* confdefs.h. */ | |
19273 | _ACEOF | |
19274 | cat confdefs.h >>conftest.$ac_ext | |
19275 | cat >>conftest.$ac_ext <<_ACEOF | |
19276 | /* end confdefs.h. */ | |
19277 | ||
19278 | int | |
19279 | main () | |
19280 | { | |
19281 | ||
19282 | ; | |
19283 | return 0; | |
19284 | } | |
19285 | _ACEOF | |
19286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19287 | if { (ac_try="$ac_link" | |
19288 | case "(($ac_try" in | |
19289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19290 | *) ac_try_echo=$ac_try;; | |
19291 | esac | |
030272f3 VY |
19292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19293 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
19294 | (eval "$ac_link") 2>conftest.er1 |
19295 | ac_status=$? | |
19296 | grep -v '^ *+' conftest.er1 >conftest.err | |
19297 | rm -f conftest.er1 | |
19298 | cat conftest.err >&5 | |
030272f3 | 19299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
19300 | (exit $ac_status); } && { |
19301 | test -z "$ac_c_werror_flag" || | |
19302 | test ! -s conftest.err | |
030272f3 VY |
19303 | } && test -s conftest$ac_exeext && { |
19304 | test "$cross_compiling" = yes || | |
19305 | $as_test_x conftest$ac_exeext | |
19306 | }; then | |
db137867 AC |
19307 | |
19308 | lt_aix_libpath_sed=' | |
19309 | /Import File Strings/,/^$/ { | |
19310 | /^0/ { | |
19311 | s/^0 *\(.*\)$/\1/ | |
19312 | p | |
19313 | } | |
19314 | }' | |
19315 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
19316 | # Check for a 64-bit object if we didn't find anything. | |
19317 | if test -z "$aix_libpath"; then | |
19318 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
19319 | fi | |
19320 | else | |
030272f3 | 19321 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
19322 | sed 's/^/| /' conftest.$ac_ext >&5 |
19323 | ||
19324 | ||
19325 | fi | |
19326 | ||
030272f3 | 19327 | rm -rf conftest.dSYM |
db137867 AC |
19328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19329 | conftest$ac_exeext conftest.$ac_ext | |
19330 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19331 | ||
19332 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19333 | # Warning - without using the other run time loading flags, | |
19334 | # -berok will link without error, but may produce a broken library. | |
19335 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
19336 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
19337 | # Exported symbols can be pulled into shared objects from archives | |
19338 | whole_archive_flag_spec_GCJ='$convenience' | |
19339 | archive_cmds_need_lc_GCJ=yes | |
19340 | # This is similar to how AIX traditionally builds its shared libraries. | |
19341 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
19342 | fi | |
19343 | fi | |
19344 | ;; | |
19345 | ||
19346 | amigaos*) | |
19347 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
19348 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19349 | hardcode_minus_L_GCJ=yes | |
19350 | # see comment about different semantics on the GNU ld section | |
19351 | ld_shlibs_GCJ=no | |
19352 | ;; | |
19353 | ||
19354 | bsdi[45]*) | |
19355 | export_dynamic_flag_spec_GCJ=-rdynamic | |
19356 | ;; | |
19357 | ||
19358 | cygwin* | mingw* | pw32*) | |
19359 | # When not using gcc, we currently assume that we are using | |
19360 | # Microsoft Visual C++. | |
19361 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
19362 | # no search path for DLLs. | |
19363 | hardcode_libdir_flag_spec_GCJ=' ' | |
19364 | allow_undefined_flag_GCJ=unsupported | |
19365 | # Tell ltmain to make .lib files, not .a files. | |
19366 | libext=lib | |
19367 | # Tell ltmain to make .dll files, not .so files. | |
19368 | shrext_cmds=".dll" | |
19369 | # FIXME: Setting linknames here is a bad hack. | |
19370 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
19371 | # The linker will automatically build a .lib file if we build a DLL. | |
19372 | old_archive_From_new_cmds_GCJ='true' | |
19373 | # FIXME: Should let the user specify the lib program. | |
19374 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
19375 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
19376 | enable_shared_with_static_runtimes_GCJ=yes | |
19377 | ;; | |
19378 | ||
19379 | darwin* | rhapsody*) | |
19380 | case $host_os in | |
19381 | rhapsody* | darwin1.[012]) | |
19382 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
19383 | ;; | |
19384 | *) # Darwin 1.3 on | |
19385 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
19386 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
19387 | else | |
19388 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
19389 | 10.[012]) | |
19390 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
19391 | ;; | |
19392 | 10.*) | |
19393 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
19394 | ;; | |
19395 | esac | |
19396 | fi | |
19397 | ;; | |
19398 | esac | |
19399 | archive_cmds_need_lc_GCJ=no | |
19400 | hardcode_direct_GCJ=no | |
19401 | hardcode_automatic_GCJ=yes | |
19402 | hardcode_shlibpath_var_GCJ=unsupported | |
19403 | whole_archive_flag_spec_GCJ='' | |
19404 | link_all_deplibs_GCJ=yes | |
19405 | if test "$GCC" = yes ; then | |
19406 | output_verbose_link_cmd='echo' | |
b676ea3b AC |
19407 | archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
19408 | module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
19409 | archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
19410 | module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
db137867 AC |
19411 | else |
19412 | case $cc_basename in | |
19413 | xlc*) | |
19414 | output_verbose_link_cmd='echo' | |
19415 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' | |
19416 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
19417 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
19418 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
19419 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
19420 | ;; | |
19421 | *) | |
19422 | ld_shlibs_GCJ=no | |
19423 | ;; | |
19424 | esac | |
19425 | fi | |
19426 | ;; | |
19427 | ||
19428 | dgux*) | |
19429 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19430 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19431 | hardcode_shlibpath_var_GCJ=no | |
19432 | ;; | |
19433 | ||
19434 | freebsd1*) | |
19435 | ld_shlibs_GCJ=no | |
19436 | ;; | |
19437 | ||
19438 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
19439 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
19440 | # does not break anything, and helps significantly (at the cost of a little | |
19441 | # extra space). | |
19442 | freebsd2.2*) | |
19443 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
19444 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19445 | hardcode_direct_GCJ=yes | |
19446 | hardcode_shlibpath_var_GCJ=no | |
19447 | ;; | |
19448 | ||
19449 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
19450 | freebsd2*) | |
19451 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19452 | hardcode_direct_GCJ=yes | |
19453 | hardcode_minus_L_GCJ=yes | |
19454 | hardcode_shlibpath_var_GCJ=no | |
19455 | ;; | |
19456 | ||
19457 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
19458 | freebsd* | dragonfly*) | |
19459 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
19460 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19461 | hardcode_direct_GCJ=yes | |
19462 | hardcode_shlibpath_var_GCJ=no | |
19463 | ;; | |
19464 | ||
19465 | hpux9*) | |
19466 | if test "$GCC" = yes; then | |
19467 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
19468 | else | |
19469 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
19470 | fi | |
19471 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19472 | hardcode_libdir_separator_GCJ=: | |
19473 | hardcode_direct_GCJ=yes | |
19474 | ||
19475 | # hardcode_minus_L: Not really in the search PATH, | |
19476 | # but as the default location of the library. | |
19477 | hardcode_minus_L_GCJ=yes | |
19478 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19479 | ;; | |
19480 | ||
19481 | hpux10*) | |
19482 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
19483 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19484 | else | |
19485 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
19486 | fi | |
19487 | if test "$with_gnu_ld" = no; then | |
19488 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19489 | hardcode_libdir_separator_GCJ=: | |
19490 | ||
19491 | hardcode_direct_GCJ=yes | |
19492 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19493 | ||
19494 | # hardcode_minus_L: Not really in the search PATH, | |
19495 | # but as the default location of the library. | |
19496 | hardcode_minus_L_GCJ=yes | |
19497 | fi | |
19498 | ;; | |
19499 | ||
19500 | hpux11*) | |
19501 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
19502 | case $host_cpu in | |
19503 | hppa*64*) | |
19504 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19505 | ;; | |
19506 | ia64*) | |
19507 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19508 | ;; | |
19509 | *) | |
19510 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19511 | ;; | |
19512 | esac | |
19513 | else | |
19514 | case $host_cpu in | |
19515 | hppa*64*) | |
19516 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19517 | ;; | |
19518 | ia64*) | |
19519 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19520 | ;; | |
19521 | *) | |
19522 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19523 | ;; | |
19524 | esac | |
19525 | fi | |
19526 | if test "$with_gnu_ld" = no; then | |
19527 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19528 | hardcode_libdir_separator_GCJ=: | |
19529 | ||
19530 | case $host_cpu in | |
19531 | hppa*64*|ia64*) | |
19532 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
19533 | hardcode_direct_GCJ=no | |
19534 | hardcode_shlibpath_var_GCJ=no | |
19535 | ;; | |
19536 | *) | |
19537 | hardcode_direct_GCJ=yes | |
19538 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19539 | ||
19540 | # hardcode_minus_L: Not really in the search PATH, | |
19541 | # but as the default location of the library. | |
19542 | hardcode_minus_L_GCJ=yes | |
19543 | ;; | |
19544 | esac | |
19545 | fi | |
19546 | ;; | |
19547 | ||
19548 | irix5* | irix6* | nonstopux*) | |
19549 | if test "$GCC" = yes; then | |
19550 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19551 | else | |
19552 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19553 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
19554 | fi | |
19555 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19556 | hardcode_libdir_separator_GCJ=: | |
19557 | link_all_deplibs_GCJ=yes | |
19558 | ;; | |
19559 | ||
19560 | netbsd* | netbsdelf*-gnu) | |
19561 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19562 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
19563 | else | |
19564 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
19565 | fi | |
19566 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19567 | hardcode_direct_GCJ=yes | |
19568 | hardcode_shlibpath_var_GCJ=no | |
19569 | ;; | |
19570 | ||
19571 | newsos6) | |
19572 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19573 | hardcode_direct_GCJ=yes | |
19574 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19575 | hardcode_libdir_separator_GCJ=: | |
19576 | hardcode_shlibpath_var_GCJ=no | |
19577 | ;; | |
19578 | ||
19579 | openbsd*) | |
19580 | if test -f /usr/libexec/ld.so; then | |
19581 | hardcode_direct_GCJ=yes | |
19582 | hardcode_shlibpath_var_GCJ=no | |
19583 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19584 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19585 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
19586 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19587 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19588 | else | |
19589 | case $host_os in | |
19590 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
19591 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19592 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19593 | ;; | |
19594 | *) | |
19595 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19596 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19597 | ;; | |
19598 | esac | |
19599 | fi | |
19600 | else | |
19601 | ld_shlibs_GCJ=no | |
19602 | fi | |
19603 | ;; | |
19604 | ||
19605 | os2*) | |
19606 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19607 | hardcode_minus_L_GCJ=yes | |
19608 | allow_undefined_flag_GCJ=unsupported | |
19609 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
19610 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
19611 | ;; | |
19612 | ||
19613 | osf3*) | |
19614 | if test "$GCC" = yes; then | |
19615 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19616 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19617 | else | |
19618 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19619 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19620 | fi | |
19621 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19622 | hardcode_libdir_separator_GCJ=: | |
19623 | ;; | |
19624 | ||
19625 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
19626 | if test "$GCC" = yes; then | |
19627 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19628 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
19629 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19630 | else | |
19631 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19632 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
19633 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
19634 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
19635 | ||
19636 | # Both c and cxx compiler support -rpath directly | |
19637 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
19638 | fi | |
19639 | hardcode_libdir_separator_GCJ=: | |
19640 | ;; | |
19641 | ||
19642 | solaris*) | |
19643 | no_undefined_flag_GCJ=' -z text' | |
19644 | if test "$GCC" = yes; then | |
19645 | wlarc='${wl}' | |
19646 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19647 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19648 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
19649 | else | |
19650 | wlarc='' | |
19651 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19652 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19653 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
19654 | fi | |
19655 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19656 | hardcode_shlibpath_var_GCJ=no | |
19657 | case $host_os in | |
19658 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
19659 | *) | |
19660 | # The compiler driver will combine and reorder linker options, | |
19661 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
19662 | # but is careful enough not to reorder. | |
19663 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
19664 | if test "$GCC" = yes; then | |
19665 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
19666 | else | |
19667 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' | |
19668 | fi | |
19669 | ;; | |
19670 | esac | |
19671 | link_all_deplibs_GCJ=yes | |
19672 | ;; | |
19673 | ||
19674 | sunos4*) | |
19675 | if test "x$host_vendor" = xsequent; then | |
19676 | # Use $CC to link under sequent, because it throws in some extra .o | |
19677 | # files that make .init and .fini sections work. | |
19678 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
19679 | else | |
19680 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
19681 | fi | |
19682 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19683 | hardcode_direct_GCJ=yes | |
19684 | hardcode_minus_L_GCJ=yes | |
19685 | hardcode_shlibpath_var_GCJ=no | |
19686 | ;; | |
19687 | ||
19688 | sysv4) | |
19689 | case $host_vendor in | |
19690 | sni) | |
19691 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19692 | hardcode_direct_GCJ=yes # is this really true??? | |
19693 | ;; | |
19694 | siemens) | |
19695 | ## LD is ld it makes a PLAMLIB | |
19696 | ## CC just makes a GrossModule. | |
19697 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
19698 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
19699 | hardcode_direct_GCJ=no | |
19700 | ;; | |
19701 | motorola) | |
19702 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19703 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
19704 | ;; | |
19705 | esac | |
19706 | runpath_var='LD_RUN_PATH' | |
19707 | hardcode_shlibpath_var_GCJ=no | |
19708 | ;; | |
19709 | ||
19710 | sysv4.3*) | |
19711 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19712 | hardcode_shlibpath_var_GCJ=no | |
19713 | export_dynamic_flag_spec_GCJ='-Bexport' | |
19714 | ;; | |
19715 | ||
19716 | sysv4*MP*) | |
19717 | if test -d /usr/nec; then | |
19718 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19719 | hardcode_shlibpath_var_GCJ=no | |
19720 | runpath_var=LD_RUN_PATH | |
19721 | hardcode_runpath_var=yes | |
19722 | ld_shlibs_GCJ=yes | |
19723 | fi | |
19724 | ;; | |
19725 | ||
19726 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
19727 | no_undefined_flag_GCJ='${wl}-z,text' | |
19728 | archive_cmds_need_lc_GCJ=no | |
19729 | hardcode_shlibpath_var_GCJ=no | |
19730 | runpath_var='LD_RUN_PATH' | |
19731 | ||
19732 | if test "$GCC" = yes; then | |
19733 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19734 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19735 | else | |
19736 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19737 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19738 | fi | |
19739 | ;; | |
19740 | ||
19741 | sysv5* | sco3.2v5* | sco5v6*) | |
19742 | # Note: We can NOT use -z defs as we might desire, because we do not | |
19743 | # link with -lc, and that would cause any symbols used from libc to | |
19744 | # always be unresolved, which means just about no library would | |
19745 | # ever link correctly. If we're not using GNU ld we use -z text | |
19746 | # though, which does catch some bad symbols but isn't as heavy-handed | |
19747 | # as -z defs. | |
19748 | no_undefined_flag_GCJ='${wl}-z,text' | |
19749 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
19750 | archive_cmds_need_lc_GCJ=no | |
19751 | hardcode_shlibpath_var_GCJ=no | |
19752 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
19753 | hardcode_libdir_separator_GCJ=':' | |
19754 | link_all_deplibs_GCJ=yes | |
19755 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
19756 | runpath_var='LD_RUN_PATH' | |
19757 | ||
19758 | if test "$GCC" = yes; then | |
19759 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19760 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19761 | else | |
19762 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19763 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19764 | fi | |
19765 | ;; | |
19766 | ||
19767 | uts4*) | |
19768 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19769 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19770 | hardcode_shlibpath_var_GCJ=no | |
19771 | ;; | |
19772 | ||
19773 | *) | |
19774 | ld_shlibs_GCJ=no | |
19775 | ;; | |
19776 | esac | |
19777 | fi | |
19778 | ||
030272f3 VY |
19779 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
19780 | $as_echo "$ld_shlibs_GCJ" >&6; } | |
db137867 AC |
19781 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
19782 | ||
19783 | # | |
19784 | # Do we need to explicitly link libc? | |
19785 | # | |
19786 | case "x$archive_cmds_need_lc_GCJ" in | |
19787 | x|xyes) | |
19788 | # Assume -lc should be added | |
19789 | archive_cmds_need_lc_GCJ=yes | |
19790 | ||
19791 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19792 | case $archive_cmds_GCJ in | |
19793 | *'~'*) | |
19794 | # FIXME: we may have to deal with multi-command sequences. | |
19795 | ;; | |
19796 | '$CC '*) | |
19797 | # Test whether the compiler implicitly links with -lc since on some | |
19798 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19799 | # to ld, don't add -lc before -lgcc. | |
030272f3 VY |
19800 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
19801 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
db137867 AC |
19802 | $rm conftest* |
19803 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19804 | ||
19805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19806 | (eval $ac_compile) 2>&5 | |
19807 | ac_status=$? | |
030272f3 | 19808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
19809 | (exit $ac_status); } 2>conftest.err; then |
19810 | soname=conftest | |
19811 | lib=conftest | |
19812 | libobjs=conftest.$ac_objext | |
19813 | deplibs= | |
19814 | wl=$lt_prog_compiler_wl_GCJ | |
19815 | pic_flag=$lt_prog_compiler_pic_GCJ | |
19816 | compiler_flags=-v | |
19817 | linker_flags=-v | |
19818 | verstring= | |
19819 | output_objdir=. | |
19820 | libname=conftest | |
19821 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
19822 | allow_undefined_flag_GCJ= | |
19823 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
19824 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
19825 | ac_status=$? | |
030272f3 | 19826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
19827 | (exit $ac_status); } |
19828 | then | |
19829 | archive_cmds_need_lc_GCJ=no | |
19830 | else | |
19831 | archive_cmds_need_lc_GCJ=yes | |
19832 | fi | |
19833 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
19834 | else | |
19835 | cat conftest.err 1>&5 | |
19836 | fi | |
19837 | $rm conftest* | |
030272f3 VY |
19838 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
19839 | $as_echo "$archive_cmds_need_lc_GCJ" >&6; } | |
db137867 AC |
19840 | ;; |
19841 | esac | |
19842 | fi | |
19843 | ;; | |
19844 | esac | |
19845 | ||
030272f3 VY |
19846 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
19847 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
db137867 AC |
19848 | library_names_spec= |
19849 | libname_spec='lib$name' | |
19850 | soname_spec= | |
19851 | shrext_cmds=".so" | |
19852 | postinstall_cmds= | |
19853 | postuninstall_cmds= | |
19854 | finish_cmds= | |
19855 | finish_eval= | |
19856 | shlibpath_var= | |
19857 | shlibpath_overrides_runpath=unknown | |
19858 | version_type=none | |
19859 | dynamic_linker="$host_os ld.so" | |
19860 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19861 | ||
19862 | need_lib_prefix=unknown | |
19863 | hardcode_into_libs=no | |
19864 | ||
19865 | # when you set need_version to no, make sure it does not cause -set_version | |
19866 | # flags to be left without arguments | |
19867 | need_version=unknown | |
19868 | ||
19869 | case $host_os in | |
19870 | aix3*) | |
19871 | version_type=linux | |
19872 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
19873 | shlibpath_var=LIBPATH | |
19874 | ||
19875 | # AIX 3 has no versioning support, so we append a major version to the name. | |
19876 | soname_spec='${libname}${release}${shared_ext}$major' | |
19877 | ;; | |
19878 | ||
b676ea3b | 19879 | aix[4-9]*) |
db137867 AC |
19880 | version_type=linux |
19881 | need_lib_prefix=no | |
19882 | need_version=no | |
19883 | hardcode_into_libs=yes | |
19884 | if test "$host_cpu" = ia64; then | |
19885 | # AIX 5 supports IA64 | |
19886 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
19887 | shlibpath_var=LD_LIBRARY_PATH | |
19888 | else | |
19889 | # With GCC up to 2.95.x, collect2 would create an import file | |
19890 | # for dependence libraries. The import file would start with | |
19891 | # the line `#! .'. This would cause the generated library to | |
19892 | # depend on `.', always an invalid library. This was fixed in | |
19893 | # development snapshots of GCC prior to 3.0. | |
19894 | case $host_os in | |
19895 | aix4 | aix4.[01] | aix4.[01].*) | |
19896 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19897 | echo ' yes ' | |
19898 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
19899 | : | |
19900 | else | |
19901 | can_build_shared=no | |
19902 | fi | |
19903 | ;; | |
19904 | esac | |
19905 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19906 | # soname into executable. Probably we can add versioning support to | |
19907 | # collect2, so additional links can be useful in future. | |
19908 | if test "$aix_use_runtimelinking" = yes; then | |
19909 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19910 | # instead of lib<name>.a to let people know that these are not | |
19911 | # typical AIX shared libraries. | |
19912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19913 | else | |
19914 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19915 | # and later when we are not doing run time linking. | |
19916 | library_names_spec='${libname}${release}.a $libname.a' | |
19917 | soname_spec='${libname}${release}${shared_ext}$major' | |
19918 | fi | |
19919 | shlibpath_var=LIBPATH | |
19920 | fi | |
19921 | ;; | |
19922 | ||
19923 | amigaos*) | |
19924 | library_names_spec='$libname.ixlibrary $libname.a' | |
19925 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19926 | 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' | |
19927 | ;; | |
19928 | ||
19929 | beos*) | |
19930 | library_names_spec='${libname}${shared_ext}' | |
19931 | dynamic_linker="$host_os ld.so" | |
19932 | shlibpath_var=LIBRARY_PATH | |
19933 | ;; | |
19934 | ||
19935 | bsdi[45]*) | |
19936 | version_type=linux | |
19937 | need_version=no | |
19938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19939 | soname_spec='${libname}${release}${shared_ext}$major' | |
19940 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19941 | shlibpath_var=LD_LIBRARY_PATH | |
19942 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19943 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19944 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19945 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19946 | # libtool to hard-code these into programs | |
19947 | ;; | |
19948 | ||
19949 | cygwin* | mingw* | pw32*) | |
19950 | version_type=windows | |
19951 | shrext_cmds=".dll" | |
19952 | need_version=no | |
19953 | need_lib_prefix=no | |
19954 | ||
19955 | case $GCC,$host_os in | |
19956 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
19957 | library_names_spec='$libname.dll.a' | |
19958 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19959 | postinstall_cmds='base_file=`basename \${file}`~ | |
19960 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
19961 | dldir=$destdir/`dirname \$dlpath`~ | |
19962 | test -d \$dldir || mkdir -p \$dldir~ | |
19963 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
19964 | chmod a+x \$dldir/$dlname' | |
19965 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19966 | dlpath=$dir/\$dldll~ | |
19967 | $rm \$dlpath' | |
19968 | shlibpath_overrides_runpath=yes | |
19969 | ||
19970 | case $host_os in | |
19971 | cygwin*) | |
19972 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19973 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19974 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
19975 | ;; | |
19976 | mingw*) | |
19977 | # MinGW DLLs use traditional 'lib' prefix | |
19978 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19979 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19980 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
19981 | # It is most probably a Windows format PATH printed by | |
19982 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
19983 | # path with ; separators, and with drive letters. We can handle the | |
19984 | # drive letters (cygwin fileutils understands them), so leave them, | |
19985 | # especially as we might pass files found there to a mingw objdump, | |
19986 | # which wouldn't understand a cygwinified path. Ahh. | |
19987 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19988 | else | |
19989 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19990 | fi | |
19991 | ;; | |
19992 | pw32*) | |
19993 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19994 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19995 | ;; | |
19996 | esac | |
19997 | ;; | |
19998 | ||
19999 | *) | |
20000 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
20001 | ;; | |
20002 | esac | |
20003 | dynamic_linker='Win32 ld.exe' | |
20004 | # FIXME: first we should search . and the directory the executable is in | |
20005 | shlibpath_var=PATH | |
20006 | ;; | |
20007 | ||
20008 | darwin* | rhapsody*) | |
20009 | dynamic_linker="$host_os dyld" | |
20010 | version_type=darwin | |
20011 | need_lib_prefix=no | |
20012 | need_version=no | |
20013 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
20014 | soname_spec='${libname}${release}${major}$shared_ext' | |
20015 | shlibpath_overrides_runpath=yes | |
20016 | shlibpath_var=DYLD_LIBRARY_PATH | |
20017 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
20018 | ||
20019 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
20020 | ;; | |
20021 | ||
20022 | dgux*) | |
20023 | version_type=linux | |
20024 | need_lib_prefix=no | |
20025 | need_version=no | |
20026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
20027 | soname_spec='${libname}${release}${shared_ext}$major' | |
20028 | shlibpath_var=LD_LIBRARY_PATH | |
20029 | ;; | |
20030 | ||
20031 | freebsd1*) | |
20032 | dynamic_linker=no | |
20033 | ;; | |
20034 | ||
20035 | freebsd* | dragonfly*) | |
20036 | # DragonFly does not have aout. When/if they implement a new | |
20037 | # versioning mechanism, adjust this. | |
20038 | if test -x /usr/bin/objformat; then | |
20039 | objformat=`/usr/bin/objformat` | |
20040 | else | |
20041 | case $host_os in | |
20042 | freebsd[123]*) objformat=aout ;; | |
20043 | *) objformat=elf ;; | |
20044 | esac | |
20045 | fi | |
20046 | version_type=freebsd-$objformat | |
20047 | case $version_type in | |
20048 | freebsd-elf*) | |
20049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20050 | need_version=no | |
20051 | need_lib_prefix=no | |
20052 | ;; | |
20053 | freebsd-*) | |
20054 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
20055 | need_version=yes | |
20056 | ;; | |
20057 | esac | |
20058 | shlibpath_var=LD_LIBRARY_PATH | |
20059 | case $host_os in | |
20060 | freebsd2*) | |
20061 | shlibpath_overrides_runpath=yes | |
20062 | ;; | |
20063 | freebsd3.[01]* | freebsdelf3.[01]*) | |
20064 | shlibpath_overrides_runpath=yes | |
20065 | hardcode_into_libs=yes | |
20066 | ;; | |
20067 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
20068 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
20069 | shlibpath_overrides_runpath=no | |
20070 | hardcode_into_libs=yes | |
20071 | ;; | |
20072 | *) # from 4.6 on, and DragonFly | |
20073 | shlibpath_overrides_runpath=yes | |
20074 | hardcode_into_libs=yes | |
20075 | ;; | |
20076 | esac | |
20077 | ;; | |
20078 | ||
20079 | gnu*) | |
20080 | version_type=linux | |
20081 | need_lib_prefix=no | |
20082 | need_version=no | |
20083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
20084 | soname_spec='${libname}${release}${shared_ext}$major' | |
20085 | shlibpath_var=LD_LIBRARY_PATH | |
20086 | hardcode_into_libs=yes | |
20087 | ;; | |
20088 | ||
20089 | hpux9* | hpux10* | hpux11*) | |
20090 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
20091 | # link against other versions. | |
20092 | version_type=sunos | |
20093 | need_lib_prefix=no | |
20094 | need_version=no | |
20095 | case $host_cpu in | |
20096 | ia64*) | |
20097 | shrext_cmds='.so' | |
20098 | hardcode_into_libs=yes | |
20099 | dynamic_linker="$host_os dld.so" | |
20100 | shlibpath_var=LD_LIBRARY_PATH | |
20101 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20103 | soname_spec='${libname}${release}${shared_ext}$major' | |
20104 | if test "X$HPUX_IA64_MODE" = X32; then | |
20105 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
20106 | else | |
20107 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
20108 | fi | |
20109 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20110 | ;; | |
20111 | hppa*64*) | |
20112 | shrext_cmds='.sl' | |
20113 | hardcode_into_libs=yes | |
20114 | dynamic_linker="$host_os dld.sl" | |
20115 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
20116 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20118 | soname_spec='${libname}${release}${shared_ext}$major' | |
20119 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
20120 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20121 | ;; | |
20122 | *) | |
20123 | shrext_cmds='.sl' | |
20124 | dynamic_linker="$host_os dld.sl" | |
20125 | shlibpath_var=SHLIB_PATH | |
20126 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
20127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20128 | soname_spec='${libname}${release}${shared_ext}$major' | |
20129 | ;; | |
20130 | esac | |
20131 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
20132 | postinstall_cmds='chmod 555 $lib' | |
20133 | ;; | |
20134 | ||
20135 | interix[3-9]*) | |
20136 | version_type=linux | |
20137 | need_lib_prefix=no | |
20138 | need_version=no | |
20139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20140 | soname_spec='${libname}${release}${shared_ext}$major' | |
20141 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
20142 | shlibpath_var=LD_LIBRARY_PATH | |
20143 | shlibpath_overrides_runpath=no | |
20144 | hardcode_into_libs=yes | |
20145 | ;; | |
20146 | ||
20147 | irix5* | irix6* | nonstopux*) | |
20148 | case $host_os in | |
20149 | nonstopux*) version_type=nonstopux ;; | |
20150 | *) | |
20151 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
20152 | version_type=linux | |
20153 | else | |
20154 | version_type=irix | |
20155 | fi ;; | |
20156 | esac | |
20157 | need_lib_prefix=no | |
20158 | need_version=no | |
20159 | soname_spec='${libname}${release}${shared_ext}$major' | |
20160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20161 | case $host_os in | |
20162 | irix5* | nonstopux*) | |
20163 | libsuff= shlibsuff= | |
20164 | ;; | |
20165 | *) | |
20166 | case $LD in # libtool.m4 will add one of these switches to LD | |
20167 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
20168 | libsuff= shlibsuff= libmagic=32-bit;; | |
20169 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
20170 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
20171 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
20172 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
20173 | *) libsuff= shlibsuff= libmagic=never-match;; | |
20174 | esac | |
20175 | ;; | |
20176 | esac | |
20177 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
20178 | shlibpath_overrides_runpath=no | |
20179 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
20180 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
20181 | hardcode_into_libs=yes | |
20182 | ;; | |
20183 | ||
20184 | # No shared lib support for Linux oldld, aout, or coff. | |
20185 | linux*oldld* | linux*aout* | linux*coff*) | |
20186 | dynamic_linker=no | |
20187 | ;; | |
20188 | ||
20189 | # This must be Linux ELF. | |
20190 | linux* | k*bsd*-gnu) | |
20191 | version_type=linux | |
20192 | need_lib_prefix=no | |
20193 | need_version=no | |
20194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20195 | soname_spec='${libname}${release}${shared_ext}$major' | |
20196 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
20197 | shlibpath_var=LD_LIBRARY_PATH | |
20198 | shlibpath_overrides_runpath=no | |
20199 | # This implies no fast_install, which is unacceptable. | |
20200 | # Some rework will be needed to allow for fast_install | |
20201 | # before this can be enabled. | |
20202 | hardcode_into_libs=yes | |
20203 | ||
20204 | # Append ld.so.conf contents to the search path | |
20205 | if test -f /etc/ld.so.conf; then | |
20206 | 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' ' '` | |
20207 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
20208 | fi | |
20209 | ||
20210 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
20211 | # powerpc, because MkLinux only supported shared libraries with the | |
20212 | # GNU dynamic linker. Since this was broken with cross compilers, | |
20213 | # most powerpc-linux boxes support dynamic linking these days and | |
20214 | # people can always --disable-shared, the test was removed, and we | |
20215 | # assume the GNU/Linux dynamic linker is in use. | |
20216 | dynamic_linker='GNU/Linux ld.so' | |
20217 | ;; | |
20218 | ||
20219 | netbsdelf*-gnu) | |
20220 | version_type=linux | |
20221 | need_lib_prefix=no | |
20222 | need_version=no | |
20223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20224 | soname_spec='${libname}${release}${shared_ext}$major' | |
20225 | shlibpath_var=LD_LIBRARY_PATH | |
20226 | shlibpath_overrides_runpath=no | |
20227 | hardcode_into_libs=yes | |
20228 | dynamic_linker='NetBSD ld.elf_so' | |
20229 | ;; | |
20230 | ||
20231 | netbsd*) | |
20232 | version_type=sunos | |
20233 | need_lib_prefix=no | |
20234 | need_version=no | |
20235 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
20236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20238 | dynamic_linker='NetBSD (a.out) ld.so' | |
20239 | else | |
20240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20241 | soname_spec='${libname}${release}${shared_ext}$major' | |
20242 | dynamic_linker='NetBSD ld.elf_so' | |
20243 | fi | |
20244 | shlibpath_var=LD_LIBRARY_PATH | |
20245 | shlibpath_overrides_runpath=yes | |
20246 | hardcode_into_libs=yes | |
20247 | ;; | |
20248 | ||
20249 | newsos6) | |
20250 | version_type=linux | |
20251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20252 | shlibpath_var=LD_LIBRARY_PATH | |
20253 | shlibpath_overrides_runpath=yes | |
20254 | ;; | |
20255 | ||
20256 | nto-qnx*) | |
20257 | version_type=linux | |
20258 | need_lib_prefix=no | |
20259 | need_version=no | |
20260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20261 | soname_spec='${libname}${release}${shared_ext}$major' | |
20262 | shlibpath_var=LD_LIBRARY_PATH | |
20263 | shlibpath_overrides_runpath=yes | |
20264 | ;; | |
20265 | ||
20266 | openbsd*) | |
20267 | version_type=sunos | |
20268 | sys_lib_dlsearch_path_spec="/usr/lib" | |
20269 | need_lib_prefix=no | |
20270 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
20271 | case $host_os in | |
20272 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
20273 | *) need_version=no ;; | |
20274 | esac | |
20275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20277 | shlibpath_var=LD_LIBRARY_PATH | |
20278 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
20279 | case $host_os in | |
20280 | openbsd2.[89] | openbsd2.[89].*) | |
20281 | shlibpath_overrides_runpath=no | |
20282 | ;; | |
20283 | *) | |
20284 | shlibpath_overrides_runpath=yes | |
20285 | ;; | |
20286 | esac | |
20287 | else | |
20288 | shlibpath_overrides_runpath=yes | |
20289 | fi | |
20290 | ;; | |
20291 | ||
20292 | os2*) | |
20293 | libname_spec='$name' | |
20294 | shrext_cmds=".dll" | |
20295 | need_lib_prefix=no | |
20296 | library_names_spec='$libname${shared_ext} $libname.a' | |
20297 | dynamic_linker='OS/2 ld.exe' | |
20298 | shlibpath_var=LIBPATH | |
20299 | ;; | |
20300 | ||
20301 | osf3* | osf4* | osf5*) | |
20302 | version_type=osf | |
20303 | need_lib_prefix=no | |
20304 | need_version=no | |
20305 | soname_spec='${libname}${release}${shared_ext}$major' | |
20306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20307 | shlibpath_var=LD_LIBRARY_PATH | |
20308 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
20309 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
20310 | ;; | |
20311 | ||
20312 | rdos*) | |
20313 | dynamic_linker=no | |
20314 | ;; | |
20315 | ||
20316 | solaris*) | |
20317 | version_type=linux | |
20318 | need_lib_prefix=no | |
20319 | need_version=no | |
20320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20321 | soname_spec='${libname}${release}${shared_ext}$major' | |
20322 | shlibpath_var=LD_LIBRARY_PATH | |
20323 | shlibpath_overrides_runpath=yes | |
20324 | hardcode_into_libs=yes | |
20325 | # ldd complains unless libraries are executable | |
20326 | postinstall_cmds='chmod +x $lib' | |
20327 | ;; | |
20328 | ||
20329 | sunos4*) | |
20330 | version_type=sunos | |
20331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20332 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
20333 | shlibpath_var=LD_LIBRARY_PATH | |
20334 | shlibpath_overrides_runpath=yes | |
20335 | if test "$with_gnu_ld" = yes; then | |
20336 | need_lib_prefix=no | |
20337 | fi | |
20338 | need_version=yes | |
20339 | ;; | |
20340 | ||
20341 | sysv4 | sysv4.3*) | |
20342 | version_type=linux | |
20343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20344 | soname_spec='${libname}${release}${shared_ext}$major' | |
20345 | shlibpath_var=LD_LIBRARY_PATH | |
20346 | case $host_vendor in | |
20347 | sni) | |
20348 | shlibpath_overrides_runpath=no | |
20349 | need_lib_prefix=no | |
20350 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
20351 | runpath_var=LD_RUN_PATH | |
20352 | ;; | |
20353 | siemens) | |
20354 | need_lib_prefix=no | |
20355 | ;; | |
20356 | motorola) | |
20357 | need_lib_prefix=no | |
20358 | need_version=no | |
20359 | shlibpath_overrides_runpath=no | |
20360 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
20361 | ;; | |
20362 | esac | |
20363 | ;; | |
20364 | ||
20365 | sysv4*MP*) | |
20366 | if test -d /usr/nec ;then | |
20367 | version_type=linux | |
20368 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
20369 | soname_spec='$libname${shared_ext}.$major' | |
20370 | shlibpath_var=LD_LIBRARY_PATH | |
20371 | fi | |
20372 | ;; | |
20373 | ||
20374 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
20375 | version_type=freebsd-elf | |
20376 | need_lib_prefix=no | |
20377 | need_version=no | |
20378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20379 | soname_spec='${libname}${release}${shared_ext}$major' | |
20380 | shlibpath_var=LD_LIBRARY_PATH | |
20381 | hardcode_into_libs=yes | |
20382 | if test "$with_gnu_ld" = yes; then | |
20383 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
20384 | shlibpath_overrides_runpath=no | |
20385 | else | |
20386 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
20387 | shlibpath_overrides_runpath=yes | |
20388 | case $host_os in | |
20389 | sco3.2v5*) | |
20390 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
20391 | ;; | |
20392 | esac | |
20393 | fi | |
20394 | sys_lib_dlsearch_path_spec='/usr/lib' | |
20395 | ;; | |
20396 | ||
20397 | uts4*) | |
20398 | version_type=linux | |
20399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20400 | soname_spec='${libname}${release}${shared_ext}$major' | |
20401 | shlibpath_var=LD_LIBRARY_PATH | |
20402 | ;; | |
20403 | ||
20404 | *) | |
20405 | dynamic_linker=no | |
20406 | ;; | |
20407 | esac | |
030272f3 VY |
20408 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
20409 | $as_echo "$dynamic_linker" >&6; } | |
db137867 AC |
20410 | test "$dynamic_linker" = no && can_build_shared=no |
20411 | ||
b676ea3b | 20412 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
030272f3 | 20413 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
20414 | else |
20415 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" | |
20416 | fi | |
20417 | ||
20418 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
20419 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
030272f3 | 20420 | $as_echo_n "(cached) " >&6 |
b676ea3b AC |
20421 | else |
20422 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" | |
20423 | fi | |
20424 | ||
20425 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
20426 | ||
db137867 AC |
20427 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
20428 | if test "$GCC" = yes; then | |
20429 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
20430 | fi | |
20431 | ||
030272f3 VY |
20432 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
20433 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
db137867 AC |
20434 | hardcode_action_GCJ= |
20435 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
20436 | test -n "$runpath_var_GCJ" || \ | |
20437 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
20438 | ||
20439 | # We can hardcode non-existant directories. | |
20440 | if test "$hardcode_direct_GCJ" != no && | |
20441 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
20442 | # have to relink, otherwise we might link with an installed library | |
20443 | # when we should be linking with a yet-to-be-installed one | |
20444 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
20445 | test "$hardcode_minus_L_GCJ" != no; then | |
20446 | # Linking always hardcodes the temporary library directory. | |
20447 | hardcode_action_GCJ=relink | |
20448 | else | |
20449 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
20450 | hardcode_action_GCJ=immediate | |
20451 | fi | |
20452 | else | |
20453 | # We cannot hardcode anything, or else we can only hardcode existing | |
20454 | # directories. | |
20455 | hardcode_action_GCJ=unsupported | |
20456 | fi | |
030272f3 VY |
20457 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
20458 | $as_echo "$hardcode_action_GCJ" >&6; } | |
db137867 AC |
20459 | |
20460 | if test "$hardcode_action_GCJ" = relink; then | |
20461 | # Fast installation is not supported | |
20462 | enable_fast_install=no | |
20463 | elif test "$shlibpath_overrides_runpath" = yes || | |
20464 | test "$enable_shared" = no; then | |
20465 | # Fast installation is not necessary | |
20466 | enable_fast_install=needless | |
20467 | fi | |
20468 | ||
20469 | ||
20470 | # The else clause should only fire when bootstrapping the | |
20471 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20472 | # with your package, and you will get complaints that there are | |
20473 | # no rules to generate ltmain.sh. | |
20474 | if test -f "$ltmain"; then | |
20475 | # See if we are running on zsh, and set the options which allow our commands through | |
20476 | # without removal of \ escapes. | |
20477 | if test -n "${ZSH_VERSION+set}" ; then | |
20478 | setopt NO_GLOB_SUBST | |
20479 | fi | |
20480 | # Now quote all the things that may contain metacharacters while being | |
20481 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20482 | # variables and quote the copies for generation of the libtool script. | |
20483 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
20484 | SED SHELL STRIP \ | |
20485 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20486 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20487 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20488 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20489 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20490 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20491 | old_postinstall_cmds old_postuninstall_cmds \ | |
20492 | compiler_GCJ \ | |
20493 | CC_GCJ \ | |
20494 | LD_GCJ \ | |
20495 | lt_prog_compiler_wl_GCJ \ | |
20496 | lt_prog_compiler_pic_GCJ \ | |
20497 | lt_prog_compiler_static_GCJ \ | |
20498 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
20499 | export_dynamic_flag_spec_GCJ \ | |
20500 | thread_safe_flag_spec_GCJ \ | |
20501 | whole_archive_flag_spec_GCJ \ | |
20502 | enable_shared_with_static_runtimes_GCJ \ | |
20503 | old_archive_cmds_GCJ \ | |
20504 | old_archive_from_new_cmds_GCJ \ | |
20505 | predep_objects_GCJ \ | |
20506 | postdep_objects_GCJ \ | |
20507 | predeps_GCJ \ | |
20508 | postdeps_GCJ \ | |
20509 | compiler_lib_search_path_GCJ \ | |
b676ea3b | 20510 | compiler_lib_search_dirs_GCJ \ |
db137867 AC |
20511 | archive_cmds_GCJ \ |
20512 | archive_expsym_cmds_GCJ \ | |
20513 | postinstall_cmds_GCJ \ | |
20514 | postuninstall_cmds_GCJ \ | |
20515 | old_archive_from_expsyms_cmds_GCJ \ | |
20516 | allow_undefined_flag_GCJ \ | |
20517 | no_undefined_flag_GCJ \ | |
20518 | export_symbols_cmds_GCJ \ | |
20519 | hardcode_libdir_flag_spec_GCJ \ | |
20520 | hardcode_libdir_flag_spec_ld_GCJ \ | |
20521 | hardcode_libdir_separator_GCJ \ | |
20522 | hardcode_automatic_GCJ \ | |
20523 | module_cmds_GCJ \ | |
20524 | module_expsym_cmds_GCJ \ | |
20525 | lt_cv_prog_compiler_c_o_GCJ \ | |
20526 | fix_srcfile_path_GCJ \ | |
20527 | exclude_expsyms_GCJ \ | |
20528 | include_expsyms_GCJ; do | |
20529 | ||
20530 | case $var in | |
20531 | old_archive_cmds_GCJ | \ | |
20532 | old_archive_from_new_cmds_GCJ | \ | |
20533 | archive_cmds_GCJ | \ | |
20534 | archive_expsym_cmds_GCJ | \ | |
20535 | module_cmds_GCJ | \ | |
20536 | module_expsym_cmds_GCJ | \ | |
20537 | old_archive_from_expsyms_cmds_GCJ | \ | |
20538 | export_symbols_cmds_GCJ | \ | |
20539 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20540 | postinstall_cmds | postuninstall_cmds | \ | |
20541 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20542 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20543 | # Double-quote double-evaled strings. | |
20544 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20545 | ;; | |
20546 | *) | |
20547 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20548 | ;; | |
20549 | esac | |
20550 | done | |
20551 | ||
20552 | case $lt_echo in | |
20553 | *'\$0 --fallback-echo"') | |
20554 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20555 | ;; | |
20556 | esac | |
20557 | ||
20558 | cfgfile="$ofile" | |
20559 | ||
20560 | cat <<__EOF__ >> "$cfgfile" | |
20561 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20562 | ||
20563 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20564 | ||
20565 | # Shell to use when invoking shell scripts. | |
20566 | SHELL=$lt_SHELL | |
20567 | ||
20568 | # Whether or not to build shared libraries. | |
20569 | build_libtool_libs=$enable_shared | |
20570 | ||
20571 | # Whether or not to build static libraries. | |
20572 | build_old_libs=$enable_static | |
20573 | ||
20574 | # Whether or not to add -lc for building shared libraries. | |
20575 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
20576 | ||
20577 | # Whether or not to disallow shared libs when runtime libs are static | |
20578 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
20579 | ||
20580 | # Whether or not to optimize for fast installation. | |
20581 | fast_install=$enable_fast_install | |
20582 | ||
20583 | # The host system. | |
20584 | host_alias=$host_alias | |
20585 | host=$host | |
20586 | host_os=$host_os | |
20587 | ||
20588 | # The build system. | |
20589 | build_alias=$build_alias | |
20590 | build=$build | |
20591 | build_os=$build_os | |
20592 | ||
20593 | # An echo program that does not interpret backslashes. | |
20594 | echo=$lt_echo | |
20595 | ||
20596 | # The archiver. | |
20597 | AR=$lt_AR | |
20598 | AR_FLAGS=$lt_AR_FLAGS | |
20599 | ||
20600 | # A C compiler. | |
20601 | LTCC=$lt_LTCC | |
20602 | ||
20603 | # LTCC compiler flags. | |
20604 | LTCFLAGS=$lt_LTCFLAGS | |
20605 | ||
20606 | # A language-specific compiler. | |
20607 | CC=$lt_compiler_GCJ | |
20608 | ||
20609 | # Is the compiler the GNU C compiler? | |
20610 | with_gcc=$GCC_GCJ | |
20611 | ||
20612 | # An ERE matcher. | |
20613 | EGREP=$lt_EGREP | |
20614 | ||
20615 | # The linker used to build libraries. | |
20616 | LD=$lt_LD_GCJ | |
20617 | ||
20618 | # Whether we need hard or soft links. | |
20619 | LN_S=$lt_LN_S | |
20620 | ||
20621 | # A BSD-compatible nm program. | |
20622 | NM=$lt_NM | |
20623 | ||
20624 | # A symbol stripping program | |
20625 | STRIP=$lt_STRIP | |
20626 | ||
20627 | # Used to examine libraries when file_magic_cmd begins "file" | |
20628 | MAGIC_CMD=$MAGIC_CMD | |
20629 | ||
20630 | # Used on cygwin: DLL creation program. | |
20631 | DLLTOOL="$DLLTOOL" | |
20632 | ||
20633 | # Used on cygwin: object dumper. | |
20634 | OBJDUMP="$OBJDUMP" | |
20635 | ||
20636 | # Used on cygwin: assembler. | |
20637 | AS="$AS" | |
20638 | ||
20639 | # The name of the directory that contains temporary libtool files. | |
20640 | objdir=$objdir | |
20641 | ||
20642 | # How to create reloadable object files. | |
20643 | reload_flag=$lt_reload_flag | |
20644 | reload_cmds=$lt_reload_cmds | |
20645 | ||
20646 | # How to pass a linker flag through the compiler. | |
20647 | wl=$lt_lt_prog_compiler_wl_GCJ | |
20648 | ||
20649 | # Object file suffix (normally "o"). | |
20650 | objext="$ac_objext" | |
20651 | ||
20652 | # Old archive suffix (normally "a"). | |
20653 | libext="$libext" | |
20654 | ||
20655 | # Shared library suffix (normally ".so"). | |
20656 | shrext_cmds='$shrext_cmds' | |
20657 | ||
20658 | # Executable file suffix (normally ""). | |
20659 | exeext="$exeext" | |
20660 | ||
20661 | # Additional compiler flags for building library objects. | |
20662 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
20663 | pic_mode=$pic_mode | |
20664 | ||
20665 | # What is the maximum length of a command? | |
20666 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20667 | ||
20668 | # Does compiler simultaneously support -c and -o options? | |
20669 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
20670 | ||
20671 | # Must we lock files when doing compilation? | |
20672 | need_locks=$lt_need_locks | |
20673 | ||
20674 | # Do we need the lib prefix for modules? | |
20675 | need_lib_prefix=$need_lib_prefix | |
20676 | ||
20677 | # Do we need a version for libraries? | |
20678 | need_version=$need_version | |
20679 | ||
20680 | # Whether dlopen is supported. | |
20681 | dlopen_support=$enable_dlopen | |
20682 | ||
20683 | # Whether dlopen of programs is supported. | |
20684 | dlopen_self=$enable_dlopen_self | |
20685 | ||
20686 | # Whether dlopen of statically linked programs is supported. | |
20687 | dlopen_self_static=$enable_dlopen_self_static | |
20688 | ||
20689 | # Compiler flag to prevent dynamic linking. | |
20690 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
20691 | ||
20692 | # Compiler flag to turn off builtin functions. | |
20693 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
20694 | ||
20695 | # Compiler flag to allow reflexive dlopens. | |
20696 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
20697 | ||
20698 | # Compiler flag to generate shared objects directly from archives. | |
20699 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
20700 | ||
20701 | # Compiler flag to generate thread-safe objects. | |
20702 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
20703 | ||
20704 | # Library versioning type. | |
20705 | version_type=$version_type | |
20706 | ||
20707 | # Format of library name prefix. | |
20708 | libname_spec=$lt_libname_spec | |
20709 | ||
20710 | # List of archive names. First name is the real one, the rest are links. | |
20711 | # The last name is the one that the linker finds with -lNAME. | |
20712 | library_names_spec=$lt_library_names_spec | |
20713 | ||
20714 | # The coded name of the library, if different from the real name. | |
20715 | soname_spec=$lt_soname_spec | |
20716 | ||
20717 | # Commands used to build and install an old-style archive. | |
20718 | RANLIB=$lt_RANLIB | |
20719 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
20720 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20721 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20722 | ||
20723 | # Create an old-style archive from a shared archive. | |
20724 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
20725 | ||
20726 | # Create a temporary old-style archive to link instead of a shared archive. | |
20727 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
20728 | ||
20729 | # Commands used to build and install a shared archive. | |
20730 | archive_cmds=$lt_archive_cmds_GCJ | |
20731 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
20732 | postinstall_cmds=$lt_postinstall_cmds | |
20733 | postuninstall_cmds=$lt_postuninstall_cmds | |
20734 | ||
20735 | # Commands used to build a loadable module (assumed same as above if empty) | |
20736 | module_cmds=$lt_module_cmds_GCJ | |
20737 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
20738 | ||
20739 | # Commands to strip libraries. | |
20740 | old_striplib=$lt_old_striplib | |
20741 | striplib=$lt_striplib | |
20742 | ||
20743 | # Dependencies to place before the objects being linked to create a | |
20744 | # shared library. | |
20745 | predep_objects=$lt_predep_objects_GCJ | |
20746 | ||
20747 | # Dependencies to place after the objects being linked to create a | |
20748 | # shared library. | |
20749 | postdep_objects=$lt_postdep_objects_GCJ | |
20750 | ||
20751 | # Dependencies to place before the objects being linked to create a | |
20752 | # shared library. | |
20753 | predeps=$lt_predeps_GCJ | |
20754 | ||
20755 | # Dependencies to place after the objects being linked to create a | |
20756 | # shared library. | |
20757 | postdeps=$lt_postdeps_GCJ | |
20758 | ||
b676ea3b AC |
20759 | # The directories searched by this compiler when creating a shared |
20760 | # library | |
20761 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ | |
20762 | ||
db137867 AC |
20763 | # The library search path used internally by the compiler when linking |
20764 | # a shared library. | |
20765 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
20766 | ||
20767 | # Method to check whether dependent libraries are shared objects. | |
20768 | deplibs_check_method=$lt_deplibs_check_method | |
20769 | ||
20770 | # Command to use when deplibs_check_method == file_magic. | |
20771 | file_magic_cmd=$lt_file_magic_cmd | |
20772 | ||
20773 | # Flag that allows shared libraries with undefined symbols to be built. | |
20774 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
20775 | ||
20776 | # Flag that forces no undefined symbols. | |
20777 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
20778 | ||
20779 | # Commands used to finish a libtool library installation in a directory. | |
20780 | finish_cmds=$lt_finish_cmds | |
20781 | ||
20782 | # Same as above, but a single script fragment to be evaled but not shown. | |
20783 | finish_eval=$lt_finish_eval | |
20784 | ||
20785 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20786 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20787 | ||
20788 | # Transform the output of nm in a proper C declaration | |
20789 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20790 | ||
20791 | # Transform the output of nm in a C name address pair | |
20792 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20793 | ||
20794 | # This is the shared library runtime path variable. | |
20795 | runpath_var=$runpath_var | |
20796 | ||
20797 | # This is the shared library path variable. | |
20798 | shlibpath_var=$shlibpath_var | |
20799 | ||
20800 | # Is shlibpath searched before the hard-coded library search path? | |
20801 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20802 | ||
20803 | # How to hardcode a shared library path into an executable. | |
20804 | hardcode_action=$hardcode_action_GCJ | |
20805 | ||
20806 | # Whether we should hardcode library paths into libraries. | |
20807 | hardcode_into_libs=$hardcode_into_libs | |
20808 | ||
20809 | # Flag to hardcode \$libdir into a binary during linking. | |
20810 | # This must work even if \$libdir does not exist. | |
20811 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
20812 | ||
20813 | # If ld is used when linking, flag to hardcode \$libdir into | |
20814 | # a binary during linking. This must work even if \$libdir does | |
20815 | # not exist. | |
20816 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
20817 | ||
20818 | # Whether we need a single -rpath flag with a separated argument. | |
20819 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
20820 | ||
20821 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
20822 | # resulting binary. | |
20823 | hardcode_direct=$hardcode_direct_GCJ | |
20824 | ||
20825 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
20826 | # resulting binary. | |
20827 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
20828 | ||
20829 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
20830 | # the resulting binary. | |
20831 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
20832 | ||
20833 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
20834 | # and all subsequent libraries and executables linked against it. | |
20835 | hardcode_automatic=$hardcode_automatic_GCJ | |
20836 | ||
20837 | # Variables whose values should be saved in libtool wrapper scripts and | |
20838 | # restored at relink time. | |
20839 | variables_saved_for_relink="$variables_saved_for_relink" | |
20840 | ||
20841 | # Whether libtool must link a program against all its dependency libraries. | |
20842 | link_all_deplibs=$link_all_deplibs_GCJ | |
20843 | ||
20844 | # Compile-time system search path for libraries | |
20845 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20846 | ||
20847 | # Run-time system search path for libraries | |
20848 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20849 | ||
20850 | # Fix the shell variable \$srcfile for the compiler. | |
20851 | fix_srcfile_path=$lt_fix_srcfile_path | |
20852 | ||
20853 | # Set to yes if exported symbols are required. | |
20854 | always_export_symbols=$always_export_symbols_GCJ | |
20855 | ||
20856 | # The commands to list exported symbols. | |
20857 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
20858 | ||
20859 | # The commands to extract the exported symbol list from a shared archive. | |
20860 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20861 | ||
20862 | # Symbols that should not be listed in the preloaded symbols. | |
20863 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
20864 | ||
20865 | # Symbols that must always be exported. | |
20866 | include_expsyms=$lt_include_expsyms_GCJ | |
20867 | ||
20868 | # ### END LIBTOOL TAG CONFIG: $tagname | |
20869 | ||
20870 | __EOF__ | |
20871 | ||
20872 | ||
20873 | else | |
20874 | # If there is no Makefile yet, we rely on a make rule to execute | |
20875 | # `config.status --recheck' to rerun these tests and create the | |
20876 | # libtool script then. | |
20877 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
20878 | if test -f "$ltmain_in"; then | |
20879 | test -f Makefile && make "$ltmain" | |
20880 | fi | |
20881 | fi | |
20882 | ||
20883 | ||
20884 | ac_ext=c | |
20885 | ac_cpp='$CPP $CPPFLAGS' | |
20886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20889 | ||
20890 | CC="$lt_save_CC" | |
20891 | ||
20892 | else | |
20893 | tagname="" | |
20894 | fi | |
20895 | ;; | |
20896 | ||
20897 | RC) | |
20898 | ||
20899 | ||
20900 | # Source file extension for RC test sources. | |
20901 | ac_ext=rc | |
20902 | ||
20903 | # Object file extension for compiled RC test sources. | |
20904 | objext=o | |
20905 | objext_RC=$objext | |
20906 | ||
20907 | # Code to be used in simple compile tests | |
20908 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
20909 | ||
20910 | # Code to be used in simple link tests | |
20911 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
20912 | ||
20913 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
20914 | ||
20915 | # If no C compiler was specified, use CC. | |
20916 | LTCC=${LTCC-"$CC"} | |
20917 | ||
20918 | # If no C compiler flags were specified, use CFLAGS. | |
20919 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
20920 | ||
20921 | # Allow CC to be a program name with arguments. | |
20922 | compiler=$CC | |
20923 | ||
20924 | ||
20925 | # save warnings/boilerplate of simple test code | |
20926 | ac_outfile=conftest.$ac_objext | |
20927 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
20928 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20929 | _lt_compiler_boilerplate=`cat conftest.err` | |
20930 | $rm conftest* | |
20931 | ||
20932 | ac_outfile=conftest.$ac_objext | |
20933 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
20934 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20935 | _lt_linker_boilerplate=`cat conftest.err` | |
b676ea3b | 20936 | $rm -r conftest* |
db137867 AC |
20937 | |
20938 | ||
20939 | # Allow CC to be a program name with arguments. | |
20940 | lt_save_CC="$CC" | |
20941 | CC=${RC-"windres"} | |
20942 | compiler=$CC | |
20943 | compiler_RC=$CC | |
20944 | for cc_temp in $compiler""; do | |
20945 | case $cc_temp in | |
20946 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
20947 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
20948 | \-*) ;; | |
20949 | *) break;; | |
20950 | esac | |
20951 | done | |
20952 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
20953 | ||
20954 | lt_cv_prog_compiler_c_o_RC=yes | |
20955 | ||
20956 | # The else clause should only fire when bootstrapping the | |
20957 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20958 | # with your package, and you will get complaints that there are | |
20959 | # no rules to generate ltmain.sh. | |
20960 | if test -f "$ltmain"; then | |
20961 | # See if we are running on zsh, and set the options which allow our commands through | |
20962 | # without removal of \ escapes. | |
20963 | if test -n "${ZSH_VERSION+set}" ; then | |
20964 | setopt NO_GLOB_SUBST | |
20965 | fi | |
20966 | # Now quote all the things that may contain metacharacters while being | |
20967 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20968 | # variables and quote the copies for generation of the libtool script. | |
20969 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
20970 | SED SHELL STRIP \ | |
20971 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20972 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20973 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20974 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20975 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20976 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20977 | old_postinstall_cmds old_postuninstall_cmds \ | |
20978 | compiler_RC \ | |
20979 | CC_RC \ | |
20980 | LD_RC \ | |
20981 | lt_prog_compiler_wl_RC \ | |
20982 | lt_prog_compiler_pic_RC \ | |
20983 | lt_prog_compiler_static_RC \ | |
20984 | lt_prog_compiler_no_builtin_flag_RC \ | |
20985 | export_dynamic_flag_spec_RC \ | |
20986 | thread_safe_flag_spec_RC \ | |
20987 | whole_archive_flag_spec_RC \ | |
20988 | enable_shared_with_static_runtimes_RC \ | |
20989 | old_archive_cmds_RC \ | |
20990 | old_archive_from_new_cmds_RC \ | |
20991 | predep_objects_RC \ | |
20992 | postdep_objects_RC \ | |
20993 | predeps_RC \ | |
20994 | postdeps_RC \ | |
20995 | compiler_lib_search_path_RC \ | |
b676ea3b | 20996 | compiler_lib_search_dirs_RC \ |
db137867 AC |
20997 | archive_cmds_RC \ |
20998 | archive_expsym_cmds_RC \ | |
20999 | postinstall_cmds_RC \ | |
21000 | postuninstall_cmds_RC \ | |
21001 | old_archive_from_expsyms_cmds_RC \ | |
21002 | allow_undefined_flag_RC \ | |
21003 | no_undefined_flag_RC \ | |
21004 | export_symbols_cmds_RC \ | |
21005 | hardcode_libdir_flag_spec_RC \ | |
21006 | hardcode_libdir_flag_spec_ld_RC \ | |
21007 | hardcode_libdir_separator_RC \ | |
21008 | hardcode_automatic_RC \ | |
21009 | module_cmds_RC \ | |
21010 | module_expsym_cmds_RC \ | |
21011 | lt_cv_prog_compiler_c_o_RC \ | |
21012 | fix_srcfile_path_RC \ | |
21013 | exclude_expsyms_RC \ | |
21014 | include_expsyms_RC; do | |
21015 | ||
21016 | case $var in | |
21017 | old_archive_cmds_RC | \ | |
21018 | old_archive_from_new_cmds_RC | \ | |
21019 | archive_cmds_RC | \ | |
21020 | archive_expsym_cmds_RC | \ | |
21021 | module_cmds_RC | \ | |
21022 | module_expsym_cmds_RC | \ | |
21023 | old_archive_from_expsyms_cmds_RC | \ | |
21024 | export_symbols_cmds_RC | \ | |
21025 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
21026 | postinstall_cmds | postuninstall_cmds | \ | |
21027 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
21028 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
21029 | # Double-quote double-evaled strings. | |
21030 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
21031 | ;; | |
21032 | *) | |
21033 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
21034 | ;; | |
21035 | esac | |
21036 | done | |
21037 | ||
21038 | case $lt_echo in | |
21039 | *'\$0 --fallback-echo"') | |
21040 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
21041 | ;; | |
21042 | esac | |
21043 | ||
21044 | cfgfile="$ofile" | |
21045 | ||
21046 | cat <<__EOF__ >> "$cfgfile" | |
21047 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
21048 | ||
21049 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21050 | ||
21051 | # Shell to use when invoking shell scripts. | |
21052 | SHELL=$lt_SHELL | |
21053 | ||
21054 | # Whether or not to build shared libraries. | |
21055 | build_libtool_libs=$enable_shared | |
21056 | ||
21057 | # Whether or not to build static libraries. | |
21058 | build_old_libs=$enable_static | |
21059 | ||
21060 | # Whether or not to add -lc for building shared libraries. | |
21061 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
21062 | ||
21063 | # Whether or not to disallow shared libs when runtime libs are static | |
21064 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
21065 | ||
21066 | # Whether or not to optimize for fast installation. | |
21067 | fast_install=$enable_fast_install | |
21068 | ||
21069 | # The host system. | |
21070 | host_alias=$host_alias | |
21071 | host=$host | |
21072 | host_os=$host_os | |
21073 | ||
21074 | # The build system. | |
21075 | build_alias=$build_alias | |
21076 | build=$build | |
21077 | build_os=$build_os | |
21078 | ||
21079 | # An echo program that does not interpret backslashes. | |
21080 | echo=$lt_echo | |
21081 | ||
21082 | # The archiver. | |
21083 | AR=$lt_AR | |
21084 | AR_FLAGS=$lt_AR_FLAGS | |
21085 | ||
21086 | # A C compiler. | |
21087 | LTCC=$lt_LTCC | |
21088 | ||
21089 | # LTCC compiler flags. | |
21090 | LTCFLAGS=$lt_LTCFLAGS | |
21091 | ||
21092 | # A language-specific compiler. | |
21093 | CC=$lt_compiler_RC | |
21094 | ||
21095 | # Is the compiler the GNU C compiler? | |
21096 | with_gcc=$GCC_RC | |
21097 | ||
21098 | # An ERE matcher. | |
21099 | EGREP=$lt_EGREP | |
21100 | ||
21101 | # The linker used to build libraries. | |
21102 | LD=$lt_LD_RC | |
21103 | ||
21104 | # Whether we need hard or soft links. | |
21105 | LN_S=$lt_LN_S | |
21106 | ||
21107 | # A BSD-compatible nm program. | |
21108 | NM=$lt_NM | |
21109 | ||
21110 | # A symbol stripping program | |
21111 | STRIP=$lt_STRIP | |
21112 | ||
21113 | # Used to examine libraries when file_magic_cmd begins "file" | |
21114 | MAGIC_CMD=$MAGIC_CMD | |
21115 | ||
21116 | # Used on cygwin: DLL creation program. | |
21117 | DLLTOOL="$DLLTOOL" | |
21118 | ||
21119 | # Used on cygwin: object dumper. | |
21120 | OBJDUMP="$OBJDUMP" | |
21121 | ||
21122 | # Used on cygwin: assembler. | |
21123 | AS="$AS" | |
21124 | ||
21125 | # The name of the directory that contains temporary libtool files. | |
21126 | objdir=$objdir | |
21127 | ||
21128 | # How to create reloadable object files. | |
21129 | reload_flag=$lt_reload_flag | |
21130 | reload_cmds=$lt_reload_cmds | |
21131 | ||
21132 | # How to pass a linker flag through the compiler. | |
21133 | wl=$lt_lt_prog_compiler_wl_RC | |
21134 | ||
21135 | # Object file suffix (normally "o"). | |
21136 | objext="$ac_objext" | |
21137 | ||
21138 | # Old archive suffix (normally "a"). | |
21139 | libext="$libext" | |
21140 | ||
21141 | # Shared library suffix (normally ".so"). | |
21142 | shrext_cmds='$shrext_cmds' | |
21143 | ||
21144 | # Executable file suffix (normally ""). | |
21145 | exeext="$exeext" | |
21146 | ||
21147 | # Additional compiler flags for building library objects. | |
21148 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
21149 | pic_mode=$pic_mode | |
21150 | ||
21151 | # What is the maximum length of a command? | |
21152 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
21153 | ||
21154 | # Does compiler simultaneously support -c and -o options? | |
21155 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
21156 | ||
21157 | # Must we lock files when doing compilation? | |
21158 | need_locks=$lt_need_locks | |
21159 | ||
21160 | # Do we need the lib prefix for modules? | |
21161 | need_lib_prefix=$need_lib_prefix | |
21162 | ||
21163 | # Do we need a version for libraries? | |
21164 | need_version=$need_version | |
21165 | ||
21166 | # Whether dlopen is supported. | |
21167 | dlopen_support=$enable_dlopen | |
21168 | ||
21169 | # Whether dlopen of programs is supported. | |
21170 | dlopen_self=$enable_dlopen_self | |
21171 | ||
21172 | # Whether dlopen of statically linked programs is supported. | |
21173 | dlopen_self_static=$enable_dlopen_self_static | |
21174 | ||
21175 | # Compiler flag to prevent dynamic linking. | |
21176 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
21177 | ||
21178 | # Compiler flag to turn off builtin functions. | |
21179 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
21180 | ||
21181 | # Compiler flag to allow reflexive dlopens. | |
21182 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
21183 | ||
21184 | # Compiler flag to generate shared objects directly from archives. | |
21185 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
21186 | ||
21187 | # Compiler flag to generate thread-safe objects. | |
21188 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
21189 | ||
21190 | # Library versioning type. | |
21191 | version_type=$version_type | |
21192 | ||
21193 | # Format of library name prefix. | |
21194 | libname_spec=$lt_libname_spec | |
21195 | ||
21196 | # List of archive names. First name is the real one, the rest are links. | |
21197 | # The last name is the one that the linker finds with -lNAME. | |
21198 | library_names_spec=$lt_library_names_spec | |
21199 | ||
21200 | # The coded name of the library, if different from the real name. | |
21201 | soname_spec=$lt_soname_spec | |
21202 | ||
21203 | # Commands used to build and install an old-style archive. | |
21204 | RANLIB=$lt_RANLIB | |
21205 | old_archive_cmds=$lt_old_archive_cmds_RC | |
21206 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21207 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21208 | ||
21209 | # Create an old-style archive from a shared archive. | |
21210 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
21211 | ||
21212 | # Create a temporary old-style archive to link instead of a shared archive. | |
21213 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
21214 | ||
21215 | # Commands used to build and install a shared archive. | |
21216 | archive_cmds=$lt_archive_cmds_RC | |
21217 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
21218 | postinstall_cmds=$lt_postinstall_cmds | |
21219 | postuninstall_cmds=$lt_postuninstall_cmds | |
21220 | ||
21221 | # Commands used to build a loadable module (assumed same as above if empty) | |
21222 | module_cmds=$lt_module_cmds_RC | |
21223 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
21224 | ||
21225 | # Commands to strip libraries. | |
21226 | old_striplib=$lt_old_striplib | |
21227 | striplib=$lt_striplib | |
21228 | ||
21229 | # Dependencies to place before the objects being linked to create a | |
21230 | # shared library. | |
21231 | predep_objects=$lt_predep_objects_RC | |
21232 | ||
21233 | # Dependencies to place after the objects being linked to create a | |
21234 | # shared library. | |
21235 | postdep_objects=$lt_postdep_objects_RC | |
21236 | ||
21237 | # Dependencies to place before the objects being linked to create a | |
21238 | # shared library. | |
21239 | predeps=$lt_predeps_RC | |
21240 | ||
21241 | # Dependencies to place after the objects being linked to create a | |
21242 | # shared library. | |
21243 | postdeps=$lt_postdeps_RC | |
21244 | ||
b676ea3b AC |
21245 | # The directories searched by this compiler when creating a shared |
21246 | # library | |
21247 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC | |
21248 | ||
db137867 AC |
21249 | # The library search path used internally by the compiler when linking |
21250 | # a shared library. | |
21251 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
21252 | ||
21253 | # Method to check whether dependent libraries are shared objects. | |
21254 | deplibs_check_method=$lt_deplibs_check_method | |
21255 | ||
21256 | # Command to use when deplibs_check_method == file_magic. | |
21257 | file_magic_cmd=$lt_file_magic_cmd | |
21258 | ||
21259 | # Flag that allows shared libraries with undefined symbols to be built. | |
21260 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
21261 | ||
21262 | # Flag that forces no undefined symbols. | |
21263 | no_undefined_flag=$lt_no_undefined_flag_RC | |
21264 | ||
21265 | # Commands used to finish a libtool library installation in a directory. | |
21266 | finish_cmds=$lt_finish_cmds | |
21267 | ||
21268 | # Same as above, but a single script fragment to be evaled but not shown. | |
21269 | finish_eval=$lt_finish_eval | |
21270 | ||
21271 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21272 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21273 | ||
21274 | # Transform the output of nm in a proper C declaration | |
21275 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21276 | ||
21277 | # Transform the output of nm in a C name address pair | |
21278 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21279 | ||
21280 | # This is the shared library runtime path variable. | |
21281 | runpath_var=$runpath_var | |
21282 | ||
21283 | # This is the shared library path variable. | |
21284 | shlibpath_var=$shlibpath_var | |
21285 | ||
21286 | # Is shlibpath searched before the hard-coded library search path? | |
21287 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21288 | ||
21289 | # How to hardcode a shared library path into an executable. | |
21290 | hardcode_action=$hardcode_action_RC | |
21291 | ||
21292 | # Whether we should hardcode library paths into libraries. | |
21293 | hardcode_into_libs=$hardcode_into_libs | |
21294 | ||
21295 | # Flag to hardcode \$libdir into a binary during linking. | |
21296 | # This must work even if \$libdir does not exist. | |
21297 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
21298 | ||
21299 | # If ld is used when linking, flag to hardcode \$libdir into | |
21300 | # a binary during linking. This must work even if \$libdir does | |
21301 | # not exist. | |
21302 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
21303 | ||
21304 | # Whether we need a single -rpath flag with a separated argument. | |
21305 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
21306 | ||
21307 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
21308 | # resulting binary. | |
21309 | hardcode_direct=$hardcode_direct_RC | |
21310 | ||
21311 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
21312 | # resulting binary. | |
21313 | hardcode_minus_L=$hardcode_minus_L_RC | |
21314 | ||
21315 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
21316 | # the resulting binary. | |
21317 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
21318 | ||
21319 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
21320 | # and all subsequent libraries and executables linked against it. | |
21321 | hardcode_automatic=$hardcode_automatic_RC | |
21322 | ||
21323 | # Variables whose values should be saved in libtool wrapper scripts and | |
21324 | # restored at relink time. | |
21325 | variables_saved_for_relink="$variables_saved_for_relink" | |
21326 | ||
21327 | # Whether libtool must link a program against all its dependency libraries. | |
21328 | link_all_deplibs=$link_all_deplibs_RC | |
21329 | ||
21330 | # Compile-time system search path for libraries | |
21331 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21332 | ||
21333 | # Run-time system search path for libraries | |
21334 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
21335 | ||
21336 | # Fix the shell variable \$srcfile for the compiler. | |
21337 | fix_srcfile_path=$lt_fix_srcfile_path | |
21338 | ||
21339 | # Set to yes if exported symbols are required. | |
21340 | always_export_symbols=$always_export_symbols_RC | |
21341 | ||
21342 | # The commands to list exported symbols. | |
21343 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
21344 | ||
21345 | # The commands to extract the exported symbol list from a shared archive. | |
21346 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21347 | ||
21348 | # Symbols that should not be listed in the preloaded symbols. | |
21349 | exclude_expsyms=$lt_exclude_expsyms_RC | |
21350 | ||
21351 | # Symbols that must always be exported. | |
21352 | include_expsyms=$lt_include_expsyms_RC | |
21353 | ||
21354 | # ### END LIBTOOL TAG CONFIG: $tagname | |
21355 | ||
21356 | __EOF__ | |
21357 | ||
21358 | ||
21359 | else | |
21360 | # If there is no Makefile yet, we rely on a make rule to execute | |
21361 | # `config.status --recheck' to rerun these tests and create the | |
21362 | # libtool script then. | |
21363 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
21364 | if test -f "$ltmain_in"; then | |
21365 | test -f Makefile && make "$ltmain" | |
21366 | fi | |
21367 | fi | |
21368 | ||
21369 | ||
21370 | ac_ext=c | |
21371 | ac_cpp='$CPP $CPPFLAGS' | |
21372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21375 | ||
21376 | CC="$lt_save_CC" | |
21377 | ||
21378 | ;; | |
21379 | ||
21380 | *) | |
030272f3 VY |
21381 | { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
21382 | $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
db137867 AC |
21383 | { (exit 1); exit 1; }; } |
21384 | ;; | |
21385 | esac | |
21386 | ||
21387 | # Append the new tag name to the list of available tags. | |
21388 | if test -n "$tagname" ; then | |
21389 | available_tags="$available_tags $tagname" | |
21390 | fi | |
21391 | fi | |
21392 | done | |
21393 | IFS="$lt_save_ifs" | |
21394 | ||
21395 | # Now substitute the updated list of available tags. | |
21396 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
21397 | mv "${ofile}T" "$ofile" | |
21398 | chmod +x "$ofile" | |
21399 | else | |
21400 | rm -f "${ofile}T" | |
030272f3 VY |
21401 | { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
21402 | $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
db137867 AC |
21403 | { (exit 1); exit 1; }; } |
21404 | fi | |
21405 | fi | |
21406 | ||
21407 | ||
21408 | ||
21409 | # This can be used to rebuild libtool when needed | |
21410 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
21411 | ||
21412 | # Always use our own libtool. | |
21413 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
21414 | ||
21415 | # Prevent multiple expansion | |
21416 | ||
21417 | ||
21418 | ||
21419 | ||
21420 | ||
21421 | ||
21422 | ||
21423 | ||
21424 | ||
21425 | ||
21426 | ||
21427 | ||
21428 | ||
21429 | ||
21430 | ||
21431 | ||
21432 | ||
21433 | ||
21434 | ||
21435 | ||
21436 | ||
21437 | LIBTOOL="$LIBTOOL --silent" | |
21438 | ||
db137867 AC |
21439 | case "$host_os" in |
21440 | *cygwin*) | |
21441 | ||
21442 | cat >>confdefs.h <<_ACEOF | |
21443 | #define CYGWIN 1 | |
21444 | _ACEOF | |
21445 | ||
21446 | ||
21447 | cat >>confdefs.h <<_ACEOF | |
21448 | #define WINDOWS 1 | |
21449 | _ACEOF | |
21450 | ||
21451 | ;; | |
21452 | *mingw*) | |
21453 | ||
21454 | cat >>confdefs.h <<_ACEOF | |
21455 | #define MINGW 1 | |
21456 | _ACEOF | |
21457 | ||
21458 | ||
21459 | cat >>confdefs.h <<_ACEOF | |
21460 | #define WINDOWS 1 | |
21461 | _ACEOF | |
21462 | ||
21463 | if test "${ac_cv_header_windows_h+set}" = set; then | |
030272f3 VY |
21464 | { $as_echo "$as_me:$LINENO: checking for windows.h" >&5 |
21465 | $as_echo_n "checking for windows.h... " >&6; } | |
db137867 | 21466 | if test "${ac_cv_header_windows_h+set}" = set; then |
030272f3 | 21467 | $as_echo_n "(cached) " >&6 |
db137867 | 21468 | fi |
030272f3 VY |
21469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21470 | $as_echo "$ac_cv_header_windows_h" >&6; } | |
db137867 AC |
21471 | else |
21472 | # Is the header compilable? | |
030272f3 VY |
21473 | { $as_echo "$as_me:$LINENO: checking windows.h usability" >&5 |
21474 | $as_echo_n "checking windows.h usability... " >&6; } | |
db137867 AC |
21475 | cat >conftest.$ac_ext <<_ACEOF |
21476 | /* confdefs.h. */ | |
21477 | _ACEOF | |
21478 | cat confdefs.h >>conftest.$ac_ext | |
21479 | cat >>conftest.$ac_ext <<_ACEOF | |
21480 | /* end confdefs.h. */ | |
21481 | $ac_includes_default | |
21482 | #include <windows.h> | |
21483 | _ACEOF | |
21484 | rm -f conftest.$ac_objext | |
21485 | if { (ac_try="$ac_compile" | |
21486 | case "(($ac_try" in | |
21487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21488 | *) ac_try_echo=$ac_try;; | |
21489 | esac | |
030272f3 VY |
21490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21491 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21492 | (eval "$ac_compile") 2>conftest.er1 |
21493 | ac_status=$? | |
21494 | grep -v '^ *+' conftest.er1 >conftest.err | |
21495 | rm -f conftest.er1 | |
21496 | cat conftest.err >&5 | |
030272f3 | 21497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21498 | (exit $ac_status); } && { |
21499 | test -z "$ac_c_werror_flag" || | |
21500 | test ! -s conftest.err | |
21501 | } && test -s conftest.$ac_objext; then | |
21502 | ac_header_compiler=yes | |
21503 | else | |
030272f3 | 21504 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21505 | sed 's/^/| /' conftest.$ac_ext >&5 |
21506 | ||
21507 | ac_header_compiler=no | |
21508 | fi | |
21509 | ||
21510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
21511 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21512 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
21513 | |
21514 | # Is the header present? | |
030272f3 VY |
21515 | { $as_echo "$as_me:$LINENO: checking windows.h presence" >&5 |
21516 | $as_echo_n "checking windows.h presence... " >&6; } | |
db137867 AC |
21517 | cat >conftest.$ac_ext <<_ACEOF |
21518 | /* confdefs.h. */ | |
21519 | _ACEOF | |
21520 | cat confdefs.h >>conftest.$ac_ext | |
21521 | cat >>conftest.$ac_ext <<_ACEOF | |
21522 | /* end confdefs.h. */ | |
21523 | #include <windows.h> | |
21524 | _ACEOF | |
21525 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21526 | case "(($ac_try" in | |
21527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21528 | *) ac_try_echo=$ac_try;; | |
21529 | esac | |
030272f3 VY |
21530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21531 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
21533 | ac_status=$? | |
21534 | grep -v '^ *+' conftest.er1 >conftest.err | |
21535 | rm -f conftest.er1 | |
21536 | cat conftest.err >&5 | |
030272f3 | 21537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21538 | (exit $ac_status); } >/dev/null && { |
21539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21540 | test ! -s conftest.err | |
21541 | }; then | |
21542 | ac_header_preproc=yes | |
21543 | else | |
030272f3 | 21544 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21545 | sed 's/^/| /' conftest.$ac_ext >&5 |
21546 | ||
21547 | ac_header_preproc=no | |
21548 | fi | |
21549 | ||
21550 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
21551 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21552 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
21553 | |
21554 | # So? What about this header? | |
21555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21556 | yes:no: ) | |
030272f3 VY |
21557 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21558 | $as_echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21559 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 | |
21560 | $as_echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
db137867 AC |
21561 | ac_header_preproc=yes |
21562 | ;; | |
21563 | no:yes:* ) | |
030272f3 VY |
21564 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21565 | $as_echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
21566 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
21567 | $as_echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21568 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21569 | $as_echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21570 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21571 | $as_echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21572 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
21573 | $as_echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
21574 | { $as_echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 | |
21575 | $as_echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
21576 | |
21577 | ;; | |
21578 | esac | |
030272f3 VY |
21579 | { $as_echo "$as_me:$LINENO: checking for windows.h" >&5 |
21580 | $as_echo_n "checking for windows.h... " >&6; } | |
db137867 | 21581 | if test "${ac_cv_header_windows_h+set}" = set; then |
030272f3 | 21582 | $as_echo_n "(cached) " >&6 |
db137867 AC |
21583 | else |
21584 | ac_cv_header_windows_h=$ac_header_preproc | |
21585 | fi | |
030272f3 VY |
21586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21587 | $as_echo "$ac_cv_header_windows_h" >&6; } | |
db137867 AC |
21588 | |
21589 | fi | |
030272f3 | 21590 | if test "x$ac_cv_header_windows_h" = x""yes; then |
db137867 AC |
21591 | : |
21592 | else | |
030272f3 VY |
21593 | { { $as_echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5 |
21594 | $as_echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;} | |
db137867 AC |
21595 | { (exit 1); exit 1; }; } |
21596 | fi | |
21597 | ||
21598 | ||
21599 | if test "${ac_cv_header_winsock2_h+set}" = set; then | |
030272f3 VY |
21600 | { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
21601 | $as_echo_n "checking for winsock2.h... " >&6; } | |
db137867 | 21602 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
030272f3 | 21603 | $as_echo_n "(cached) " >&6 |
db137867 | 21604 | fi |
030272f3 VY |
21605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
21606 | $as_echo "$ac_cv_header_winsock2_h" >&6; } | |
db137867 AC |
21607 | else |
21608 | # Is the header compilable? | |
030272f3 VY |
21609 | { $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
21610 | $as_echo_n "checking winsock2.h usability... " >&6; } | |
db137867 AC |
21611 | cat >conftest.$ac_ext <<_ACEOF |
21612 | /* confdefs.h. */ | |
21613 | _ACEOF | |
21614 | cat confdefs.h >>conftest.$ac_ext | |
21615 | cat >>conftest.$ac_ext <<_ACEOF | |
21616 | /* end confdefs.h. */ | |
21617 | $ac_includes_default | |
21618 | #include <winsock2.h> | |
21619 | _ACEOF | |
21620 | rm -f conftest.$ac_objext | |
21621 | if { (ac_try="$ac_compile" | |
21622 | case "(($ac_try" in | |
21623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21624 | *) ac_try_echo=$ac_try;; | |
21625 | esac | |
030272f3 VY |
21626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21627 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21628 | (eval "$ac_compile") 2>conftest.er1 |
21629 | ac_status=$? | |
21630 | grep -v '^ *+' conftest.er1 >conftest.err | |
21631 | rm -f conftest.er1 | |
21632 | cat conftest.err >&5 | |
030272f3 | 21633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21634 | (exit $ac_status); } && { |
21635 | test -z "$ac_c_werror_flag" || | |
21636 | test ! -s conftest.err | |
21637 | } && test -s conftest.$ac_objext; then | |
21638 | ac_header_compiler=yes | |
21639 | else | |
030272f3 | 21640 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21641 | sed 's/^/| /' conftest.$ac_ext >&5 |
21642 | ||
21643 | ac_header_compiler=no | |
21644 | fi | |
21645 | ||
21646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
21647 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21648 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
21649 | |
21650 | # Is the header present? | |
030272f3 VY |
21651 | { $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
21652 | $as_echo_n "checking winsock2.h presence... " >&6; } | |
db137867 AC |
21653 | cat >conftest.$ac_ext <<_ACEOF |
21654 | /* confdefs.h. */ | |
21655 | _ACEOF | |
21656 | cat confdefs.h >>conftest.$ac_ext | |
21657 | cat >>conftest.$ac_ext <<_ACEOF | |
21658 | /* end confdefs.h. */ | |
21659 | #include <winsock2.h> | |
21660 | _ACEOF | |
21661 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21662 | case "(($ac_try" in | |
21663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21664 | *) ac_try_echo=$ac_try;; | |
21665 | esac | |
030272f3 VY |
21666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21667 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
21669 | ac_status=$? | |
21670 | grep -v '^ *+' conftest.er1 >conftest.err | |
21671 | rm -f conftest.er1 | |
21672 | cat conftest.err >&5 | |
030272f3 | 21673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21674 | (exit $ac_status); } >/dev/null && { |
21675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21676 | test ! -s conftest.err | |
21677 | }; then | |
21678 | ac_header_preproc=yes | |
21679 | else | |
030272f3 | 21680 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21681 | sed 's/^/| /' conftest.$ac_ext >&5 |
21682 | ||
21683 | ac_header_preproc=no | |
21684 | fi | |
21685 | ||
21686 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
21687 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21688 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
21689 | |
21690 | # So? What about this header? | |
21691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21692 | yes:no: ) | |
030272f3 VY |
21693 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21694 | $as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21695 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 | |
21696 | $as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} | |
db137867 AC |
21697 | ac_header_preproc=yes |
21698 | ;; | |
21699 | no:yes:* ) | |
030272f3 VY |
21700 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
21701 | $as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} | |
21702 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 | |
21703 | $as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} | |
21704 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 | |
21705 | $as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} | |
21706 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21707 | $as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21708 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 | |
21709 | $as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} | |
21710 | { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 | |
21711 | $as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
21712 | |
21713 | ;; | |
21714 | esac | |
030272f3 VY |
21715 | { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
21716 | $as_echo_n "checking for winsock2.h... " >&6; } | |
db137867 | 21717 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
030272f3 | 21718 | $as_echo_n "(cached) " >&6 |
db137867 AC |
21719 | else |
21720 | ac_cv_header_winsock2_h=$ac_header_preproc | |
21721 | fi | |
030272f3 VY |
21722 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
21723 | $as_echo "$ac_cv_header_winsock2_h" >&6; } | |
db137867 AC |
21724 | |
21725 | fi | |
030272f3 | 21726 | if test "x$ac_cv_header_winsock2_h" = x""yes; then |
db137867 AC |
21727 | : |
21728 | else | |
030272f3 VY |
21729 | { { $as_echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5 |
21730 | $as_echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;} | |
db137867 AC |
21731 | { (exit 1); exit 1; }; } |
21732 | fi | |
21733 | ||
21734 | ||
3202e249 VY |
21735 | |
21736 | cat >>confdefs.h <<_ACEOF | |
21737 | #define HAVE_WINSOCK2_H 1 | |
21738 | _ACEOF | |
21739 | ||
21740 | ||
21741 | cat >>confdefs.h <<_ACEOF | |
21742 | #define HAVE_WINSOCK_H 1 | |
21743 | _ACEOF | |
21744 | ||
db137867 AC |
21745 | LIBS="$LIBS -lws2_32 -liphlpapi" |
21746 | is_mingw="yes" | |
21747 | ;; | |
21748 | *interix*) | |
21749 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
21750 | ;; | |
030272f3 VY |
21751 | *solaris*) |
21752 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2" | |
db137867 AC |
21753 | ;; |
21754 | *) | |
21755 | ;; | |
21756 | esac | |
21757 | ||
21758 | if test "$is_mingw" = "yes"; then | |
21759 | MINGW_TRUE= | |
21760 | MINGW_FALSE='#' | |
21761 | else | |
21762 | MINGW_TRUE='#' | |
21763 | MINGW_FALSE= | |
21764 | fi | |
21765 | ||
21766 | ||
21767 | ||
21768 | # backwards support for IRC_CFLAGS | |
3202e249 | 21769 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" |
db137867 AC |
21770 | |
21771 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
21772 | test "$localstatedir" = '${prefix}/var'; then | |
21773 | libexecdir='${bindir}' | |
21774 | localstatedir='${prefix}' | |
21775 | fi | |
21776 | ||
030272f3 VY |
21777 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
21778 | $as_echo_n "checking for pid_t... " >&6; } | |
db137867 | 21779 | if test "${ac_cv_type_pid_t+set}" = set; then |
030272f3 | 21780 | $as_echo_n "(cached) " >&6 |
db137867 | 21781 | else |
030272f3 VY |
21782 | ac_cv_type_pid_t=no |
21783 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
21784 | /* confdefs.h. */ |
21785 | _ACEOF | |
21786 | cat confdefs.h >>conftest.$ac_ext | |
21787 | cat >>conftest.$ac_ext <<_ACEOF | |
21788 | /* end confdefs.h. */ | |
21789 | $ac_includes_default | |
db137867 AC |
21790 | int |
21791 | main () | |
21792 | { | |
030272f3 VY |
21793 | if (sizeof (pid_t)) |
21794 | return 0; | |
21795 | ; | |
db137867 | 21796 | return 0; |
030272f3 VY |
21797 | } |
21798 | _ACEOF | |
21799 | rm -f conftest.$ac_objext | |
21800 | if { (ac_try="$ac_compile" | |
21801 | case "(($ac_try" in | |
21802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21803 | *) ac_try_echo=$ac_try;; | |
21804 | esac | |
21805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21806 | $as_echo "$ac_try_echo") >&5 | |
21807 | (eval "$ac_compile") 2>conftest.er1 | |
21808 | ac_status=$? | |
21809 | grep -v '^ *+' conftest.er1 >conftest.err | |
21810 | rm -f conftest.er1 | |
21811 | cat conftest.err >&5 | |
21812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21813 | (exit $ac_status); } && { | |
21814 | test -z "$ac_c_werror_flag" || | |
21815 | test ! -s conftest.err | |
21816 | } && test -s conftest.$ac_objext; then | |
21817 | cat >conftest.$ac_ext <<_ACEOF | |
21818 | /* confdefs.h. */ | |
21819 | _ACEOF | |
21820 | cat confdefs.h >>conftest.$ac_ext | |
21821 | cat >>conftest.$ac_ext <<_ACEOF | |
21822 | /* end confdefs.h. */ | |
21823 | $ac_includes_default | |
21824 | int | |
21825 | main () | |
21826 | { | |
21827 | if (sizeof ((pid_t))) | |
21828 | return 0; | |
db137867 AC |
21829 | ; |
21830 | return 0; | |
21831 | } | |
21832 | _ACEOF | |
21833 | rm -f conftest.$ac_objext | |
21834 | if { (ac_try="$ac_compile" | |
21835 | case "(($ac_try" in | |
21836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21837 | *) ac_try_echo=$ac_try;; | |
21838 | esac | |
030272f3 VY |
21839 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21840 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21841 | (eval "$ac_compile") 2>conftest.er1 |
21842 | ac_status=$? | |
21843 | grep -v '^ *+' conftest.er1 >conftest.err | |
21844 | rm -f conftest.er1 | |
21845 | cat conftest.err >&5 | |
030272f3 | 21846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21847 | (exit $ac_status); } && { |
21848 | test -z "$ac_c_werror_flag" || | |
21849 | test ! -s conftest.err | |
21850 | } && test -s conftest.$ac_objext; then | |
030272f3 | 21851 | : |
db137867 | 21852 | else |
030272f3 | 21853 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 |
21855 | ||
030272f3 | 21856 | ac_cv_type_pid_t=yes |
db137867 AC |
21857 | fi |
21858 | ||
21859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
21860 | else |
21861 | $as_echo "$as_me: failed program was:" >&5 | |
21862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21863 | ||
21864 | ||
db137867 | 21865 | fi |
030272f3 VY |
21866 | |
21867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21868 | fi | |
21869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
21870 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
21871 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
db137867 AC |
21872 | : |
21873 | else | |
21874 | ||
21875 | cat >>confdefs.h <<_ACEOF | |
21876 | #define pid_t int | |
21877 | _ACEOF | |
21878 | ||
21879 | fi | |
21880 | ||
030272f3 VY |
21881 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
21882 | $as_echo_n "checking for size_t... " >&6; } | |
db137867 | 21883 | if test "${ac_cv_type_size_t+set}" = set; then |
030272f3 | 21884 | $as_echo_n "(cached) " >&6 |
db137867 | 21885 | else |
030272f3 VY |
21886 | ac_cv_type_size_t=no |
21887 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
21888 | /* confdefs.h. */ |
21889 | _ACEOF | |
21890 | cat confdefs.h >>conftest.$ac_ext | |
21891 | cat >>conftest.$ac_ext <<_ACEOF | |
21892 | /* end confdefs.h. */ | |
21893 | $ac_includes_default | |
db137867 AC |
21894 | int |
21895 | main () | |
21896 | { | |
030272f3 VY |
21897 | if (sizeof (size_t)) |
21898 | return 0; | |
21899 | ; | |
db137867 | 21900 | return 0; |
030272f3 VY |
21901 | } |
21902 | _ACEOF | |
21903 | rm -f conftest.$ac_objext | |
21904 | if { (ac_try="$ac_compile" | |
21905 | case "(($ac_try" in | |
21906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21907 | *) ac_try_echo=$ac_try;; | |
21908 | esac | |
21909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21910 | $as_echo "$ac_try_echo") >&5 | |
21911 | (eval "$ac_compile") 2>conftest.er1 | |
21912 | ac_status=$? | |
21913 | grep -v '^ *+' conftest.er1 >conftest.err | |
21914 | rm -f conftest.er1 | |
21915 | cat conftest.err >&5 | |
21916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21917 | (exit $ac_status); } && { | |
21918 | test -z "$ac_c_werror_flag" || | |
21919 | test ! -s conftest.err | |
21920 | } && test -s conftest.$ac_objext; then | |
21921 | cat >conftest.$ac_ext <<_ACEOF | |
21922 | /* confdefs.h. */ | |
21923 | _ACEOF | |
21924 | cat confdefs.h >>conftest.$ac_ext | |
21925 | cat >>conftest.$ac_ext <<_ACEOF | |
21926 | /* end confdefs.h. */ | |
21927 | $ac_includes_default | |
21928 | int | |
21929 | main () | |
21930 | { | |
21931 | if (sizeof ((size_t))) | |
21932 | return 0; | |
db137867 AC |
21933 | ; |
21934 | return 0; | |
21935 | } | |
21936 | _ACEOF | |
21937 | rm -f conftest.$ac_objext | |
21938 | if { (ac_try="$ac_compile" | |
21939 | case "(($ac_try" in | |
21940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21941 | *) ac_try_echo=$ac_try;; | |
21942 | esac | |
030272f3 VY |
21943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21944 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
21945 | (eval "$ac_compile") 2>conftest.er1 |
21946 | ac_status=$? | |
21947 | grep -v '^ *+' conftest.er1 >conftest.err | |
21948 | rm -f conftest.er1 | |
21949 | cat conftest.err >&5 | |
030272f3 | 21950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
21951 | (exit $ac_status); } && { |
21952 | test -z "$ac_c_werror_flag" || | |
21953 | test ! -s conftest.err | |
21954 | } && test -s conftest.$ac_objext; then | |
030272f3 VY |
21955 | : |
21956 | else | |
21957 | $as_echo "$as_me: failed program was:" >&5 | |
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21959 | ||
21960 | ac_cv_type_size_t=yes | |
21961 | fi | |
21962 | ||
21963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 21964 | else |
030272f3 | 21965 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
21966 | sed 's/^/| /' conftest.$ac_ext >&5 |
21967 | ||
030272f3 | 21968 | |
db137867 AC |
21969 | fi |
21970 | ||
21971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21972 | fi | |
030272f3 VY |
21973 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
21974 | $as_echo "$ac_cv_type_size_t" >&6; } | |
21975 | if test "x$ac_cv_type_size_t" = x""yes; then | |
db137867 AC |
21976 | : |
21977 | else | |
21978 | ||
21979 | cat >>confdefs.h <<_ACEOF | |
21980 | #define size_t unsigned int | |
21981 | _ACEOF | |
21982 | ||
21983 | fi | |
21984 | ||
030272f3 VY |
21985 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
21986 | $as_echo_n "checking for ssize_t... " >&6; } | |
db137867 | 21987 | if test "${ac_cv_type_ssize_t+set}" = set; then |
030272f3 | 21988 | $as_echo_n "(cached) " >&6 |
db137867 | 21989 | else |
030272f3 VY |
21990 | ac_cv_type_ssize_t=no |
21991 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
21992 | /* confdefs.h. */ |
21993 | _ACEOF | |
21994 | cat confdefs.h >>conftest.$ac_ext | |
21995 | cat >>conftest.$ac_ext <<_ACEOF | |
21996 | /* end confdefs.h. */ | |
21997 | $ac_includes_default | |
db137867 AC |
21998 | int |
21999 | main () | |
22000 | { | |
030272f3 VY |
22001 | if (sizeof (ssize_t)) |
22002 | return 0; | |
22003 | ; | |
db137867 | 22004 | return 0; |
030272f3 VY |
22005 | } |
22006 | _ACEOF | |
22007 | rm -f conftest.$ac_objext | |
22008 | if { (ac_try="$ac_compile" | |
22009 | case "(($ac_try" in | |
22010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22011 | *) ac_try_echo=$ac_try;; | |
22012 | esac | |
22013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22014 | $as_echo "$ac_try_echo") >&5 | |
22015 | (eval "$ac_compile") 2>conftest.er1 | |
22016 | ac_status=$? | |
22017 | grep -v '^ *+' conftest.er1 >conftest.err | |
22018 | rm -f conftest.er1 | |
22019 | cat conftest.err >&5 | |
22020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22021 | (exit $ac_status); } && { | |
22022 | test -z "$ac_c_werror_flag" || | |
22023 | test ! -s conftest.err | |
22024 | } && test -s conftest.$ac_objext; then | |
22025 | cat >conftest.$ac_ext <<_ACEOF | |
22026 | /* confdefs.h. */ | |
22027 | _ACEOF | |
22028 | cat confdefs.h >>conftest.$ac_ext | |
22029 | cat >>conftest.$ac_ext <<_ACEOF | |
22030 | /* end confdefs.h. */ | |
22031 | $ac_includes_default | |
22032 | int | |
22033 | main () | |
22034 | { | |
22035 | if (sizeof ((ssize_t))) | |
22036 | return 0; | |
db137867 AC |
22037 | ; |
22038 | return 0; | |
22039 | } | |
22040 | _ACEOF | |
22041 | rm -f conftest.$ac_objext | |
22042 | if { (ac_try="$ac_compile" | |
22043 | case "(($ac_try" in | |
22044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22045 | *) ac_try_echo=$ac_try;; | |
22046 | esac | |
030272f3 VY |
22047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22048 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22049 | (eval "$ac_compile") 2>conftest.er1 |
22050 | ac_status=$? | |
22051 | grep -v '^ *+' conftest.er1 >conftest.err | |
22052 | rm -f conftest.er1 | |
22053 | cat conftest.err >&5 | |
030272f3 | 22054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22055 | (exit $ac_status); } && { |
22056 | test -z "$ac_c_werror_flag" || | |
22057 | test ! -s conftest.err | |
22058 | } && test -s conftest.$ac_objext; then | |
030272f3 VY |
22059 | : |
22060 | else | |
22061 | $as_echo "$as_me: failed program was:" >&5 | |
22062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22063 | ||
22064 | ac_cv_type_ssize_t=yes | |
22065 | fi | |
22066 | ||
22067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 22068 | else |
030272f3 | 22069 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22070 | sed 's/^/| /' conftest.$ac_ext >&5 |
22071 | ||
030272f3 | 22072 | |
db137867 AC |
22073 | fi |
22074 | ||
22075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22076 | fi | |
030272f3 VY |
22077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
22078 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
22079 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
db137867 AC |
22080 | : |
22081 | else | |
22082 | ||
22083 | cat >>confdefs.h <<_ACEOF | |
22084 | #define ssize_t int | |
22085 | _ACEOF | |
22086 | ||
22087 | fi | |
22088 | ||
030272f3 VY |
22089 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
22090 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
db137867 | 22091 | if test "${ac_cv_type_uid_t+set}" = set; then |
030272f3 | 22092 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22093 | else |
22094 | cat >conftest.$ac_ext <<_ACEOF | |
22095 | /* confdefs.h. */ | |
22096 | _ACEOF | |
22097 | cat confdefs.h >>conftest.$ac_ext | |
22098 | cat >>conftest.$ac_ext <<_ACEOF | |
22099 | /* end confdefs.h. */ | |
22100 | #include <sys/types.h> | |
22101 | ||
22102 | _ACEOF | |
22103 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22104 | $EGREP "uid_t" >/dev/null 2>&1; then | |
22105 | ac_cv_type_uid_t=yes | |
22106 | else | |
22107 | ac_cv_type_uid_t=no | |
22108 | fi | |
22109 | rm -f conftest* | |
22110 | ||
22111 | fi | |
030272f3 VY |
22112 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
22113 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
db137867 AC |
22114 | if test $ac_cv_type_uid_t = no; then |
22115 | ||
22116 | cat >>confdefs.h <<\_ACEOF | |
22117 | #define uid_t int | |
22118 | _ACEOF | |
22119 | ||
22120 | ||
22121 | cat >>confdefs.h <<\_ACEOF | |
22122 | #define gid_t int | |
22123 | _ACEOF | |
22124 | ||
22125 | fi | |
22126 | ||
22127 | ||
22128 | ||
030272f3 VY |
22129 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
22130 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
db137867 | 22131 | if test "${ac_cv_header_stdc+set}" = set; then |
030272f3 | 22132 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22133 | else |
22134 | cat >conftest.$ac_ext <<_ACEOF | |
22135 | /* confdefs.h. */ | |
22136 | _ACEOF | |
22137 | cat confdefs.h >>conftest.$ac_ext | |
22138 | cat >>conftest.$ac_ext <<_ACEOF | |
22139 | /* end confdefs.h. */ | |
22140 | #include <stdlib.h> | |
22141 | #include <stdarg.h> | |
22142 | #include <string.h> | |
22143 | #include <float.h> | |
22144 | ||
22145 | int | |
22146 | main () | |
22147 | { | |
22148 | ||
22149 | ; | |
22150 | return 0; | |
22151 | } | |
22152 | _ACEOF | |
22153 | rm -f conftest.$ac_objext | |
22154 | if { (ac_try="$ac_compile" | |
22155 | case "(($ac_try" in | |
22156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22157 | *) ac_try_echo=$ac_try;; | |
22158 | esac | |
030272f3 VY |
22159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22160 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22161 | (eval "$ac_compile") 2>conftest.er1 |
22162 | ac_status=$? | |
22163 | grep -v '^ *+' conftest.er1 >conftest.err | |
22164 | rm -f conftest.er1 | |
22165 | cat conftest.err >&5 | |
030272f3 | 22166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22167 | (exit $ac_status); } && { |
22168 | test -z "$ac_c_werror_flag" || | |
22169 | test ! -s conftest.err | |
22170 | } && test -s conftest.$ac_objext; then | |
22171 | ac_cv_header_stdc=yes | |
22172 | else | |
030272f3 | 22173 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22174 | sed 's/^/| /' conftest.$ac_ext >&5 |
22175 | ||
22176 | ac_cv_header_stdc=no | |
22177 | fi | |
22178 | ||
22179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22180 | ||
22181 | if test $ac_cv_header_stdc = yes; then | |
22182 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
22183 | cat >conftest.$ac_ext <<_ACEOF | |
22184 | /* confdefs.h. */ | |
22185 | _ACEOF | |
22186 | cat confdefs.h >>conftest.$ac_ext | |
22187 | cat >>conftest.$ac_ext <<_ACEOF | |
22188 | /* end confdefs.h. */ | |
22189 | #include <string.h> | |
22190 | ||
22191 | _ACEOF | |
22192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22193 | $EGREP "memchr" >/dev/null 2>&1; then | |
22194 | : | |
22195 | else | |
22196 | ac_cv_header_stdc=no | |
22197 | fi | |
22198 | rm -f conftest* | |
22199 | ||
22200 | fi | |
22201 | ||
22202 | if test $ac_cv_header_stdc = yes; then | |
22203 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
22204 | cat >conftest.$ac_ext <<_ACEOF | |
22205 | /* confdefs.h. */ | |
22206 | _ACEOF | |
22207 | cat confdefs.h >>conftest.$ac_ext | |
22208 | cat >>conftest.$ac_ext <<_ACEOF | |
22209 | /* end confdefs.h. */ | |
22210 | #include <stdlib.h> | |
22211 | ||
22212 | _ACEOF | |
22213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22214 | $EGREP "free" >/dev/null 2>&1; then | |
22215 | : | |
22216 | else | |
22217 | ac_cv_header_stdc=no | |
22218 | fi | |
22219 | rm -f conftest* | |
22220 | ||
22221 | fi | |
22222 | ||
22223 | if test $ac_cv_header_stdc = yes; then | |
22224 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
22225 | if test "$cross_compiling" = yes; then | |
22226 | : | |
22227 | else | |
22228 | cat >conftest.$ac_ext <<_ACEOF | |
22229 | /* confdefs.h. */ | |
22230 | _ACEOF | |
22231 | cat confdefs.h >>conftest.$ac_ext | |
22232 | cat >>conftest.$ac_ext <<_ACEOF | |
22233 | /* end confdefs.h. */ | |
22234 | #include <ctype.h> | |
22235 | #include <stdlib.h> | |
22236 | #if ((' ' & 0x0FF) == 0x020) | |
22237 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
22238 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
22239 | #else | |
22240 | # define ISLOWER(c) \ | |
22241 | (('a' <= (c) && (c) <= 'i') \ | |
22242 | || ('j' <= (c) && (c) <= 'r') \ | |
22243 | || ('s' <= (c) && (c) <= 'z')) | |
22244 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
22245 | #endif | |
22246 | ||
22247 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
22248 | int | |
22249 | main () | |
22250 | { | |
22251 | int i; | |
22252 | for (i = 0; i < 256; i++) | |
22253 | if (XOR (islower (i), ISLOWER (i)) | |
22254 | || toupper (i) != TOUPPER (i)) | |
22255 | return 2; | |
22256 | return 0; | |
22257 | } | |
22258 | _ACEOF | |
22259 | rm -f conftest$ac_exeext | |
22260 | if { (ac_try="$ac_link" | |
22261 | case "(($ac_try" in | |
22262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22263 | *) ac_try_echo=$ac_try;; | |
22264 | esac | |
030272f3 VY |
22265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22266 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22267 | (eval "$ac_link") 2>&5 |
22268 | ac_status=$? | |
030272f3 | 22269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22271 | { (case "(($ac_try" in | |
22272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22273 | *) ac_try_echo=$ac_try;; | |
22274 | esac | |
030272f3 VY |
22275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22276 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22277 | (eval "$ac_try") 2>&5 |
22278 | ac_status=$? | |
030272f3 | 22279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22280 | (exit $ac_status); }; }; then |
22281 | : | |
22282 | else | |
030272f3 VY |
22283 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22284 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
22285 | sed 's/^/| /' conftest.$ac_ext >&5 |
22286 | ||
22287 | ( exit $ac_status ) | |
22288 | ac_cv_header_stdc=no | |
22289 | fi | |
030272f3 | 22290 | rm -rf conftest.dSYM |
db137867 AC |
22291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22292 | fi | |
22293 | ||
22294 | ||
22295 | fi | |
22296 | fi | |
030272f3 VY |
22297 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
22298 | $as_echo "$ac_cv_header_stdc" >&6; } | |
db137867 AC |
22299 | if test $ac_cv_header_stdc = yes; then |
22300 | ||
22301 | cat >>confdefs.h <<\_ACEOF | |
22302 | #define STDC_HEADERS 1 | |
22303 | _ACEOF | |
22304 | ||
22305 | fi | |
22306 | ||
22307 | ||
22308 | ||
22309 | ||
22310 | ||
22311 | ||
22312 | ||
22313 | ||
22314 | ||
22315 | ||
22316 | ||
22317 | ||
22318 | ||
22319 | ||
22320 | ||
22321 | ||
22322 | ||
22323 | ||
22324 | ||
22325 | ||
22326 | ||
3202e249 VY |
22327 | |
22328 | for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h | |
db137867 | 22329 | do |
030272f3 | 22330 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
db137867 | 22331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 VY |
22332 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22333 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 22334 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 22335 | $as_echo_n "(cached) " >&6 |
db137867 | 22336 | fi |
030272f3 VY |
22337 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22338 | $as_echo "$as_val"'` | |
22339 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22340 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
22341 | else |
22342 | # Is the header compilable? | |
030272f3 VY |
22343 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22344 | $as_echo_n "checking $ac_header usability... " >&6; } | |
db137867 AC |
22345 | cat >conftest.$ac_ext <<_ACEOF |
22346 | /* confdefs.h. */ | |
22347 | _ACEOF | |
22348 | cat confdefs.h >>conftest.$ac_ext | |
22349 | cat >>conftest.$ac_ext <<_ACEOF | |
22350 | /* end confdefs.h. */ | |
22351 | $ac_includes_default | |
22352 | #include <$ac_header> | |
22353 | _ACEOF | |
22354 | rm -f conftest.$ac_objext | |
22355 | if { (ac_try="$ac_compile" | |
22356 | case "(($ac_try" in | |
22357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22358 | *) ac_try_echo=$ac_try;; | |
22359 | esac | |
030272f3 VY |
22360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22361 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22362 | (eval "$ac_compile") 2>conftest.er1 |
22363 | ac_status=$? | |
22364 | grep -v '^ *+' conftest.er1 >conftest.err | |
22365 | rm -f conftest.er1 | |
22366 | cat conftest.err >&5 | |
030272f3 | 22367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22368 | (exit $ac_status); } && { |
22369 | test -z "$ac_c_werror_flag" || | |
22370 | test ! -s conftest.err | |
22371 | } && test -s conftest.$ac_objext; then | |
22372 | ac_header_compiler=yes | |
22373 | else | |
030272f3 | 22374 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22375 | sed 's/^/| /' conftest.$ac_ext >&5 |
22376 | ||
22377 | ac_header_compiler=no | |
22378 | fi | |
22379 | ||
22380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
22381 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22382 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
22383 | |
22384 | # Is the header present? | |
030272f3 VY |
22385 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22386 | $as_echo_n "checking $ac_header presence... " >&6; } | |
db137867 AC |
22387 | cat >conftest.$ac_ext <<_ACEOF |
22388 | /* confdefs.h. */ | |
22389 | _ACEOF | |
22390 | cat confdefs.h >>conftest.$ac_ext | |
22391 | cat >>conftest.$ac_ext <<_ACEOF | |
22392 | /* end confdefs.h. */ | |
22393 | #include <$ac_header> | |
22394 | _ACEOF | |
22395 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22396 | case "(($ac_try" in | |
22397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22398 | *) ac_try_echo=$ac_try;; | |
22399 | esac | |
030272f3 VY |
22400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22401 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22402 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22403 | ac_status=$? | |
22404 | grep -v '^ *+' conftest.er1 >conftest.err | |
22405 | rm -f conftest.er1 | |
22406 | cat conftest.err >&5 | |
030272f3 | 22407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22408 | (exit $ac_status); } >/dev/null && { |
22409 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22410 | test ! -s conftest.err | |
22411 | }; then | |
22412 | ac_header_preproc=yes | |
22413 | else | |
030272f3 | 22414 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22415 | sed 's/^/| /' conftest.$ac_ext >&5 |
22416 | ||
22417 | ac_header_preproc=no | |
22418 | fi | |
22419 | ||
22420 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
22421 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22422 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
22423 | |
22424 | # So? What about this header? | |
22425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22426 | yes:no: ) | |
030272f3 VY |
22427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22428 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22430 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
db137867 AC |
22431 | ac_header_preproc=yes |
22432 | ;; | |
22433 | no:yes:* ) | |
030272f3 VY |
22434 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22435 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22437 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22439 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22441 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22443 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22445 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
22446 | |
22447 | ;; | |
22448 | esac | |
030272f3 VY |
22449 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22450 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 22451 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 22452 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22453 | else |
22454 | eval "$as_ac_Header=\$ac_header_preproc" | |
22455 | fi | |
030272f3 VY |
22456 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22457 | $as_echo "$as_val"'` | |
22458 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22459 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
22460 | |
22461 | fi | |
030272f3 VY |
22462 | as_val=`eval 'as_val=${'$as_ac_Header'} |
22463 | $as_echo "$as_val"'` | |
22464 | if test "x$as_val" = x""yes; then | |
db137867 | 22465 | cat >>confdefs.h <<_ACEOF |
030272f3 | 22466 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
db137867 AC |
22467 | _ACEOF |
22468 | ||
22469 | fi | |
22470 | ||
22471 | done | |
22472 | ||
030272f3 VY |
22473 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
22474 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
db137867 | 22475 | if test "${ac_cv_header_time+set}" = set; then |
030272f3 | 22476 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22477 | else |
22478 | cat >conftest.$ac_ext <<_ACEOF | |
22479 | /* confdefs.h. */ | |
22480 | _ACEOF | |
22481 | cat confdefs.h >>conftest.$ac_ext | |
22482 | cat >>conftest.$ac_ext <<_ACEOF | |
22483 | /* end confdefs.h. */ | |
22484 | #include <sys/types.h> | |
22485 | #include <sys/time.h> | |
22486 | #include <time.h> | |
22487 | ||
22488 | int | |
22489 | main () | |
22490 | { | |
22491 | if ((struct tm *) 0) | |
22492 | return 0; | |
22493 | ; | |
22494 | return 0; | |
22495 | } | |
22496 | _ACEOF | |
22497 | rm -f conftest.$ac_objext | |
22498 | if { (ac_try="$ac_compile" | |
22499 | case "(($ac_try" in | |
22500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22501 | *) ac_try_echo=$ac_try;; | |
22502 | esac | |
030272f3 VY |
22503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22504 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22505 | (eval "$ac_compile") 2>conftest.er1 |
22506 | ac_status=$? | |
22507 | grep -v '^ *+' conftest.er1 >conftest.err | |
22508 | rm -f conftest.er1 | |
22509 | cat conftest.err >&5 | |
030272f3 | 22510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22511 | (exit $ac_status); } && { |
22512 | test -z "$ac_c_werror_flag" || | |
22513 | test ! -s conftest.err | |
22514 | } && test -s conftest.$ac_objext; then | |
22515 | ac_cv_header_time=yes | |
22516 | else | |
030272f3 | 22517 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22518 | sed 's/^/| /' conftest.$ac_ext >&5 |
22519 | ||
22520 | ac_cv_header_time=no | |
22521 | fi | |
22522 | ||
22523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22524 | fi | |
030272f3 VY |
22525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
22526 | $as_echo "$ac_cv_header_time" >&6; } | |
db137867 AC |
22527 | if test $ac_cv_header_time = yes; then |
22528 | ||
22529 | cat >>confdefs.h <<\_ACEOF | |
22530 | #define TIME_WITH_SYS_TIME 1 | |
22531 | _ACEOF | |
22532 | ||
22533 | fi | |
22534 | ||
22535 | ||
22536 | ||
030272f3 VY |
22537 | { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5 |
22538 | $as_echo_n "checking for library containing socket... " >&6; } | |
db137867 | 22539 | if test "${ac_cv_search_socket+set}" = set; then |
030272f3 | 22540 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22541 | else |
22542 | ac_func_search_save_LIBS=$LIBS | |
22543 | cat >conftest.$ac_ext <<_ACEOF | |
22544 | /* confdefs.h. */ | |
22545 | _ACEOF | |
22546 | cat confdefs.h >>conftest.$ac_ext | |
22547 | cat >>conftest.$ac_ext <<_ACEOF | |
22548 | /* end confdefs.h. */ | |
22549 | ||
22550 | /* Override any GCC internal prototype to avoid an error. | |
22551 | Use char because int might match the return type of a GCC | |
22552 | builtin and then its argument prototype would still apply. */ | |
22553 | #ifdef __cplusplus | |
22554 | extern "C" | |
22555 | #endif | |
22556 | char socket (); | |
22557 | int | |
22558 | main () | |
22559 | { | |
22560 | return socket (); | |
22561 | ; | |
22562 | return 0; | |
22563 | } | |
22564 | _ACEOF | |
22565 | for ac_lib in '' socket; do | |
22566 | if test -z "$ac_lib"; then | |
22567 | ac_res="none required" | |
22568 | else | |
22569 | ac_res=-l$ac_lib | |
22570 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22571 | fi | |
22572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22573 | if { (ac_try="$ac_link" | |
22574 | case "(($ac_try" in | |
22575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22576 | *) ac_try_echo=$ac_try;; | |
22577 | esac | |
030272f3 VY |
22578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22579 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22580 | (eval "$ac_link") 2>conftest.er1 |
22581 | ac_status=$? | |
22582 | grep -v '^ *+' conftest.er1 >conftest.err | |
22583 | rm -f conftest.er1 | |
22584 | cat conftest.err >&5 | |
030272f3 | 22585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22586 | (exit $ac_status); } && { |
22587 | test -z "$ac_c_werror_flag" || | |
22588 | test ! -s conftest.err | |
030272f3 VY |
22589 | } && test -s conftest$ac_exeext && { |
22590 | test "$cross_compiling" = yes || | |
22591 | $as_test_x conftest$ac_exeext | |
22592 | }; then | |
db137867 AC |
22593 | ac_cv_search_socket=$ac_res |
22594 | else | |
030272f3 | 22595 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22596 | sed 's/^/| /' conftest.$ac_ext >&5 |
22597 | ||
22598 | ||
22599 | fi | |
22600 | ||
030272f3 | 22601 | rm -rf conftest.dSYM |
db137867 AC |
22602 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22603 | conftest$ac_exeext | |
22604 | if test "${ac_cv_search_socket+set}" = set; then | |
22605 | break | |
22606 | fi | |
22607 | done | |
22608 | if test "${ac_cv_search_socket+set}" = set; then | |
22609 | : | |
22610 | else | |
22611 | ac_cv_search_socket=no | |
22612 | fi | |
22613 | rm conftest.$ac_ext | |
22614 | LIBS=$ac_func_search_save_LIBS | |
22615 | fi | |
030272f3 VY |
22616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
22617 | $as_echo "$ac_cv_search_socket" >&6; } | |
db137867 AC |
22618 | ac_res=$ac_cv_search_socket |
22619 | if test "$ac_res" != no; then | |
22620 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22621 | ||
22622 | fi | |
22623 | ||
22624 | ||
22625 | ||
030272f3 VY |
22626 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
22627 | $as_echo_n "checking for struct sockaddr.sa_len... " >&6; } | |
db137867 | 22628 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
030272f3 | 22629 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22630 | else |
22631 | cat >conftest.$ac_ext <<_ACEOF | |
22632 | /* confdefs.h. */ | |
22633 | _ACEOF | |
22634 | cat confdefs.h >>conftest.$ac_ext | |
22635 | cat >>conftest.$ac_ext <<_ACEOF | |
22636 | /* end confdefs.h. */ | |
22637 | ||
22638 | #ifdef HAVE_SYS_TYPES_H | |
22639 | #include <sys/types.h> | |
22640 | #endif | |
22641 | #ifdef HAVE_SYS_SOCKET_H | |
22642 | #include <sys/socket.h> | |
22643 | #endif | |
22644 | #ifdef HAVE_WINSOCK2_H | |
22645 | #include <winsock2.h> | |
22646 | #endif | |
22647 | ||
22648 | ||
22649 | int | |
22650 | main () | |
22651 | { | |
22652 | static struct sockaddr ac_aggr; | |
22653 | if (ac_aggr.sa_len) | |
22654 | return 0; | |
22655 | ; | |
22656 | return 0; | |
22657 | } | |
22658 | _ACEOF | |
22659 | rm -f conftest.$ac_objext | |
22660 | if { (ac_try="$ac_compile" | |
22661 | case "(($ac_try" in | |
22662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22663 | *) ac_try_echo=$ac_try;; | |
22664 | esac | |
030272f3 VY |
22665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22666 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22667 | (eval "$ac_compile") 2>conftest.er1 |
22668 | ac_status=$? | |
22669 | grep -v '^ *+' conftest.er1 >conftest.err | |
22670 | rm -f conftest.er1 | |
22671 | cat conftest.err >&5 | |
030272f3 | 22672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22673 | (exit $ac_status); } && { |
22674 | test -z "$ac_c_werror_flag" || | |
22675 | test ! -s conftest.err | |
22676 | } && test -s conftest.$ac_objext; then | |
22677 | ac_cv_member_struct_sockaddr_sa_len=yes | |
22678 | else | |
030272f3 | 22679 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22680 | sed 's/^/| /' conftest.$ac_ext >&5 |
22681 | ||
22682 | cat >conftest.$ac_ext <<_ACEOF | |
22683 | /* confdefs.h. */ | |
22684 | _ACEOF | |
22685 | cat confdefs.h >>conftest.$ac_ext | |
22686 | cat >>conftest.$ac_ext <<_ACEOF | |
22687 | /* end confdefs.h. */ | |
22688 | ||
22689 | #ifdef HAVE_SYS_TYPES_H | |
22690 | #include <sys/types.h> | |
22691 | #endif | |
22692 | #ifdef HAVE_SYS_SOCKET_H | |
22693 | #include <sys/socket.h> | |
22694 | #endif | |
22695 | #ifdef HAVE_WINSOCK2_H | |
22696 | #include <winsock2.h> | |
22697 | #endif | |
22698 | ||
22699 | ||
22700 | int | |
22701 | main () | |
22702 | { | |
22703 | static struct sockaddr ac_aggr; | |
22704 | if (sizeof ac_aggr.sa_len) | |
22705 | return 0; | |
22706 | ; | |
22707 | return 0; | |
22708 | } | |
22709 | _ACEOF | |
22710 | rm -f conftest.$ac_objext | |
22711 | if { (ac_try="$ac_compile" | |
22712 | case "(($ac_try" in | |
22713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22714 | *) ac_try_echo=$ac_try;; | |
22715 | esac | |
030272f3 VY |
22716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22717 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22718 | (eval "$ac_compile") 2>conftest.er1 |
22719 | ac_status=$? | |
22720 | grep -v '^ *+' conftest.er1 >conftest.err | |
22721 | rm -f conftest.er1 | |
22722 | cat conftest.err >&5 | |
030272f3 | 22723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22724 | (exit $ac_status); } && { |
22725 | test -z "$ac_c_werror_flag" || | |
22726 | test ! -s conftest.err | |
22727 | } && test -s conftest.$ac_objext; then | |
22728 | ac_cv_member_struct_sockaddr_sa_len=yes | |
22729 | else | |
030272f3 | 22730 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22731 | sed 's/^/| /' conftest.$ac_ext >&5 |
22732 | ||
22733 | ac_cv_member_struct_sockaddr_sa_len=no | |
22734 | fi | |
22735 | ||
22736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22737 | fi | |
22738 | ||
22739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22740 | fi | |
030272f3 VY |
22741 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
22742 | $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
22743 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then | |
db137867 AC |
22744 | |
22745 | cat >>confdefs.h <<\_ACEOF | |
22746 | #define SOCKADDR_IN_HAS_LEN 1 | |
22747 | _ACEOF | |
22748 | ||
22749 | fi | |
22750 | ||
22751 | ||
030272f3 VY |
22752 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
22753 | $as_echo_n "checking for socklen_t... " >&6; } | |
db137867 | 22754 | if test "${ac_cv_type_socklen_t+set}" = set; then |
030272f3 | 22755 | $as_echo_n "(cached) " >&6 |
db137867 | 22756 | else |
030272f3 VY |
22757 | ac_cv_type_socklen_t=no |
22758 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
22759 | /* confdefs.h. */ |
22760 | _ACEOF | |
22761 | cat confdefs.h >>conftest.$ac_ext | |
22762 | cat >>conftest.$ac_ext <<_ACEOF | |
22763 | /* end confdefs.h. */ | |
db137867 | 22764 | #include <sys/types.h> |
db137867 | 22765 | #include <sys/socket.h> |
db137867 | 22766 | |
db137867 AC |
22767 | int |
22768 | main () | |
22769 | { | |
030272f3 VY |
22770 | if (sizeof (socklen_t)) |
22771 | return 0; | |
22772 | ; | |
db137867 | 22773 | return 0; |
030272f3 VY |
22774 | } |
22775 | _ACEOF | |
22776 | rm -f conftest.$ac_objext | |
22777 | if { (ac_try="$ac_compile" | |
22778 | case "(($ac_try" in | |
22779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22780 | *) ac_try_echo=$ac_try;; | |
22781 | esac | |
22782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22783 | $as_echo "$ac_try_echo") >&5 | |
22784 | (eval "$ac_compile") 2>conftest.er1 | |
22785 | ac_status=$? | |
22786 | grep -v '^ *+' conftest.er1 >conftest.err | |
22787 | rm -f conftest.er1 | |
22788 | cat conftest.err >&5 | |
22789 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22790 | (exit $ac_status); } && { | |
22791 | test -z "$ac_c_werror_flag" || | |
22792 | test ! -s conftest.err | |
22793 | } && test -s conftest.$ac_objext; then | |
22794 | cat >conftest.$ac_ext <<_ACEOF | |
22795 | /* confdefs.h. */ | |
22796 | _ACEOF | |
22797 | cat confdefs.h >>conftest.$ac_ext | |
22798 | cat >>conftest.$ac_ext <<_ACEOF | |
22799 | /* end confdefs.h. */ | |
22800 | #include <sys/types.h> | |
22801 | #include <sys/socket.h> | |
22802 | ||
22803 | int | |
22804 | main () | |
22805 | { | |
22806 | if (sizeof ((socklen_t))) | |
22807 | return 0; | |
db137867 AC |
22808 | ; |
22809 | return 0; | |
22810 | } | |
22811 | _ACEOF | |
22812 | rm -f conftest.$ac_objext | |
22813 | if { (ac_try="$ac_compile" | |
22814 | case "(($ac_try" in | |
22815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22816 | *) ac_try_echo=$ac_try;; | |
22817 | esac | |
030272f3 VY |
22818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22819 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22820 | (eval "$ac_compile") 2>conftest.er1 |
22821 | ac_status=$? | |
22822 | grep -v '^ *+' conftest.er1 >conftest.err | |
22823 | rm -f conftest.er1 | |
22824 | cat conftest.err >&5 | |
030272f3 | 22825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22826 | (exit $ac_status); } && { |
22827 | test -z "$ac_c_werror_flag" || | |
22828 | test ! -s conftest.err | |
22829 | } && test -s conftest.$ac_objext; then | |
030272f3 | 22830 | : |
db137867 | 22831 | else |
030272f3 | 22832 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
22833 | sed 's/^/| /' conftest.$ac_ext >&5 |
22834 | ||
030272f3 | 22835 | ac_cv_type_socklen_t=yes |
db137867 AC |
22836 | fi |
22837 | ||
22838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
22839 | else |
22840 | $as_echo "$as_me: failed program was:" >&5 | |
22841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22842 | ||
22843 | ||
db137867 | 22844 | fi |
030272f3 VY |
22845 | |
22846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22847 | fi | |
22848 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
22849 | $as_echo "$ac_cv_type_socklen_t" >&6; } | |
22850 | if test "x$ac_cv_type_socklen_t" = x""yes; then | |
22851 | rb_cv_socklen_t=socklen_t | |
db137867 AC |
22852 | else |
22853 | ||
030272f3 VY |
22854 | { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 |
22855 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | |
22856 | if test "${rb_cv_socklen_t+set}" = set; then | |
22857 | $as_echo_n "(cached) " >&6 | |
a9fb3ed0 VY |
22858 | else |
22859 | ||
22860 | # Systems have either "struct sockaddr *" or | |
22861 | # "void *" as the second argument to getpeername | |
030272f3 | 22862 | rb_cv_socklen_t= |
a9fb3ed0 VY |
22863 | for arg2 in "struct sockaddr" void; do |
22864 | for t in int size_t unsigned long "unsigned long"; do | |
22865 | cat >conftest.$ac_ext <<_ACEOF | |
22866 | /* confdefs.h. */ | |
22867 | _ACEOF | |
22868 | cat confdefs.h >>conftest.$ac_ext | |
22869 | cat >>conftest.$ac_ext <<_ACEOF | |
22870 | /* end confdefs.h. */ | |
22871 | ||
3202e249 | 22872 | #ifdef HAVE_SYS_TYPES_H |
a9fb3ed0 | 22873 | #include <sys/types.h> |
3202e249 VY |
22874 | #endif |
22875 | #ifdef HAVE_SYS_SOCKET_H | |
a9fb3ed0 | 22876 | #include <sys/socket.h> |
3202e249 VY |
22877 | #endif |
22878 | #ifdef HAVE_WINSOCK2_H | |
22879 | #include <winsock2.h> | |
22880 | #endif | |
a9fb3ed0 VY |
22881 | int getpeername (int, $arg2 *, $t *); |
22882 | ||
22883 | int | |
22884 | main () | |
22885 | { | |
22886 | ||
22887 | $t len; | |
22888 | getpeername(0,0,&len); | |
22889 | ||
22890 | ; | |
22891 | return 0; | |
22892 | } | |
db137867 | 22893 | _ACEOF |
a9fb3ed0 VY |
22894 | rm -f conftest.$ac_objext |
22895 | if { (ac_try="$ac_compile" | |
22896 | case "(($ac_try" in | |
22897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22898 | *) ac_try_echo=$ac_try;; | |
22899 | esac | |
030272f3 VY |
22900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22901 | $as_echo "$ac_try_echo") >&5 | |
a9fb3ed0 VY |
22902 | (eval "$ac_compile") 2>conftest.er1 |
22903 | ac_status=$? | |
22904 | grep -v '^ *+' conftest.er1 >conftest.err | |
22905 | rm -f conftest.er1 | |
22906 | cat conftest.err >&5 | |
030272f3 | 22907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a9fb3ed0 VY |
22908 | (exit $ac_status); } && { |
22909 | test -z "$ac_c_werror_flag" || | |
22910 | test ! -s conftest.err | |
22911 | } && test -s conftest.$ac_objext; then | |
22912 | ||
030272f3 | 22913 | rb_cv_socklen_t="$t" |
a9fb3ed0 VY |
22914 | break |
22915 | ||
22916 | else | |
030272f3 | 22917 | $as_echo "$as_me: failed program was:" >&5 |
a9fb3ed0 | 22918 | sed 's/^/| /' conftest.$ac_ext >&5 |
db137867 | 22919 | |
a9fb3ed0 VY |
22920 | |
22921 | fi | |
22922 | ||
22923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22924 | done | |
22925 | done | |
22926 | ||
030272f3 VY |
22927 | if test "x$rb_cv_socklen_t" = x; then |
22928 | { $as_echo "$as_me:$LINENO: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 | |
22929 | $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} | |
22930 | rb_cv_socklen_t=int | |
a9fb3ed0 VY |
22931 | fi |
22932 | ||
22933 | fi | |
22934 | ||
030272f3 VY |
22935 | { $as_echo "$as_me:$LINENO: result: $rb_cv_socklen_t" >&5 |
22936 | $as_echo "$rb_cv_socklen_t" >&6; } | |
db137867 AC |
22937 | fi |
22938 | ||
22939 | ||
030272f3 VY |
22940 | rb_socklen_t=$rb_cv_socklen_t |
22941 | ||
a9fb3ed0 VY |
22942 | |
22943 | ||
22944 | ||
22945 | ||
db137867 AC |
22946 | # Check whether --enable-ipv6 was given. |
22947 | if test "${enable_ipv6+set}" = set; then | |
22948 | enableval=$enable_ipv6; ipv6=$enableval | |
22949 | else | |
22950 | ipv6=yes | |
22951 | fi | |
22952 | ||
22953 | ||
22954 | if test x$ipv6 != xyes; then | |
22955 | have_v6="no" | |
22956 | else | |
22957 | ||
22958 | have_v6=yes | |
22959 | ||
030272f3 VY |
22960 | { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5 |
22961 | $as_echo_n "checking for INET6 protocol support... " >&6; } | |
db137867 | 22962 | if test "${rb_cv_proto_inet6+set}" = set; then |
030272f3 | 22963 | $as_echo_n "(cached) " >&6 |
db137867 AC |
22964 | else |
22965 | ||
22966 | cat >conftest.$ac_ext <<_ACEOF | |
22967 | /* confdefs.h. */ | |
22968 | _ACEOF | |
22969 | cat confdefs.h >>conftest.$ac_ext | |
22970 | cat >>conftest.$ac_ext <<_ACEOF | |
22971 | /* end confdefs.h. */ | |
22972 | ||
22973 | #include <sys/types.h> | |
22974 | #include <sys/socket.h> | |
22975 | ||
22976 | #ifndef PF_INET6 | |
22977 | #error Missing PF_INET6 | |
22978 | #endif | |
22979 | #ifndef AF_INET6 | |
22980 | #error Mlssing AF_INET6 | |
22981 | #endif | |
22982 | ||
22983 | _ACEOF | |
22984 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22985 | case "(($ac_try" in | |
22986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22987 | *) ac_try_echo=$ac_try;; | |
22988 | esac | |
030272f3 VY |
22989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22990 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
22991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22992 | ac_status=$? | |
22993 | grep -v '^ *+' conftest.er1 >conftest.err | |
22994 | rm -f conftest.er1 | |
22995 | cat conftest.err >&5 | |
030272f3 | 22996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
22997 | (exit $ac_status); } >/dev/null && { |
22998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22999 | test ! -s conftest.err | |
23000 | }; then | |
23001 | ||
23002 | rb_cv_proto_inet6=yes | |
23003 | ||
23004 | else | |
030272f3 | 23005 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23006 | sed 's/^/| /' conftest.$ac_ext >&5 |
23007 | ||
23008 | ||
23009 | rb_cv_proto_inet6=no | |
23010 | ||
23011 | fi | |
23012 | ||
23013 | rm -f conftest.err conftest.$ac_ext | |
23014 | ||
23015 | fi | |
030272f3 VY |
23016 | { $as_echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5 |
23017 | $as_echo "$rb_cv_proto_inet6" >&6; } | |
db137867 AC |
23018 | |
23019 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
23020 | ||
23021 | else : | |
23022 | ||
030272f3 VY |
23023 | { $as_echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5 |
23024 | $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
db137867 AC |
23025 | have_v6=no |
23026 | ||
23027 | fi | |
23028 | ||
23029 | ||
23030 | if test "X$have_v6" = "Xyes"; then | |
23031 | ||
23032 | rb_have_sockaddr_in6= | |
030272f3 VY |
23033 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 |
23034 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | |
db137867 | 23035 | if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then |
030272f3 | 23036 | $as_echo_n "(cached) " >&6 |
db137867 | 23037 | else |
030272f3 VY |
23038 | ac_cv_type_struct_sockaddr_in6=no |
23039 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
23040 | /* confdefs.h. */ |
23041 | _ACEOF | |
23042 | cat confdefs.h >>conftest.$ac_ext | |
23043 | cat >>conftest.$ac_ext <<_ACEOF | |
23044 | /* end confdefs.h. */ | |
23045 | ||
23046 | #include <sys/types.h> | |
23047 | #include <sys/socket.h> | |
23048 | #include <netinet/in.h> | |
23049 | ||
23050 | ||
db137867 AC |
23051 | int |
23052 | main () | |
23053 | { | |
030272f3 VY |
23054 | if (sizeof (struct sockaddr_in6)) |
23055 | return 0; | |
23056 | ; | |
db137867 | 23057 | return 0; |
030272f3 VY |
23058 | } |
23059 | _ACEOF | |
23060 | rm -f conftest.$ac_objext | |
23061 | if { (ac_try="$ac_compile" | |
23062 | case "(($ac_try" in | |
23063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23064 | *) ac_try_echo=$ac_try;; | |
23065 | esac | |
23066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23067 | $as_echo "$ac_try_echo") >&5 | |
23068 | (eval "$ac_compile") 2>conftest.er1 | |
23069 | ac_status=$? | |
23070 | grep -v '^ *+' conftest.er1 >conftest.err | |
23071 | rm -f conftest.er1 | |
23072 | cat conftest.err >&5 | |
23073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23074 | (exit $ac_status); } && { | |
23075 | test -z "$ac_c_werror_flag" || | |
23076 | test ! -s conftest.err | |
23077 | } && test -s conftest.$ac_objext; then | |
23078 | cat >conftest.$ac_ext <<_ACEOF | |
23079 | /* confdefs.h. */ | |
23080 | _ACEOF | |
23081 | cat confdefs.h >>conftest.$ac_ext | |
23082 | cat >>conftest.$ac_ext <<_ACEOF | |
23083 | /* end confdefs.h. */ | |
23084 | ||
23085 | #include <sys/types.h> | |
23086 | #include <sys/socket.h> | |
23087 | #include <netinet/in.h> | |
23088 | ||
23089 | ||
23090 | int | |
23091 | main () | |
23092 | { | |
23093 | if (sizeof ((struct sockaddr_in6))) | |
23094 | return 0; | |
db137867 AC |
23095 | ; |
23096 | return 0; | |
23097 | } | |
23098 | _ACEOF | |
23099 | rm -f conftest.$ac_objext | |
23100 | if { (ac_try="$ac_compile" | |
23101 | case "(($ac_try" in | |
23102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23103 | *) ac_try_echo=$ac_try;; | |
23104 | esac | |
030272f3 VY |
23105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23106 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23107 | (eval "$ac_compile") 2>conftest.er1 |
23108 | ac_status=$? | |
23109 | grep -v '^ *+' conftest.er1 >conftest.err | |
23110 | rm -f conftest.er1 | |
23111 | cat conftest.err >&5 | |
030272f3 | 23112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23113 | (exit $ac_status); } && { |
23114 | test -z "$ac_c_werror_flag" || | |
23115 | test ! -s conftest.err | |
23116 | } && test -s conftest.$ac_objext; then | |
030272f3 VY |
23117 | : |
23118 | else | |
23119 | $as_echo "$as_me: failed program was:" >&5 | |
23120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23121 | ||
23122 | ac_cv_type_struct_sockaddr_in6=yes | |
23123 | fi | |
23124 | ||
23125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 23126 | else |
030272f3 | 23127 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23128 | sed 's/^/| /' conftest.$ac_ext >&5 |
23129 | ||
030272f3 | 23130 | |
db137867 AC |
23131 | fi |
23132 | ||
23133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23134 | fi | |
030272f3 VY |
23135 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5 |
23136 | $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; } | |
23137 | if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then | |
db137867 AC |
23138 | |
23139 | cat >>confdefs.h <<_ACEOF | |
23140 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
23141 | _ACEOF | |
23142 | ||
23143 | ||
23144 | rb_have_sockaddr_in6=yes | |
23145 | ||
23146 | else | |
23147 | ||
23148 | rb_have_sockaddr_in6=no | |
23149 | ||
23150 | fi | |
23151 | ||
23152 | ||
23153 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
23154 | ||
23155 | else : | |
23156 | ||
030272f3 VY |
23157 | { $as_echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 |
23158 | $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
db137867 AC |
23159 | have_v6=no |
23160 | ||
23161 | fi | |
23162 | ||
23163 | fi | |
23164 | ||
23165 | fi | |
23166 | ||
030272f3 VY |
23167 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 |
23168 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | |
db137867 | 23169 | if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then |
030272f3 | 23170 | $as_echo_n "(cached) " >&6 |
db137867 | 23171 | else |
030272f3 VY |
23172 | ac_cv_type_struct_sockaddr_storage=no |
23173 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
23174 | /* confdefs.h. */ |
23175 | _ACEOF | |
23176 | cat confdefs.h >>conftest.$ac_ext | |
23177 | cat >>conftest.$ac_ext <<_ACEOF | |
23178 | /* end confdefs.h. */ | |
23179 | ||
23180 | #include <sys/types.h> | |
23181 | #include <sys/socket.h> | |
23182 | ||
23183 | ||
db137867 AC |
23184 | int |
23185 | main () | |
23186 | { | |
030272f3 VY |
23187 | if (sizeof (struct sockaddr_storage)) |
23188 | return 0; | |
23189 | ; | |
db137867 | 23190 | return 0; |
030272f3 VY |
23191 | } |
23192 | _ACEOF | |
23193 | rm -f conftest.$ac_objext | |
23194 | if { (ac_try="$ac_compile" | |
23195 | case "(($ac_try" in | |
23196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23197 | *) ac_try_echo=$ac_try;; | |
23198 | esac | |
23199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23200 | $as_echo "$ac_try_echo") >&5 | |
23201 | (eval "$ac_compile") 2>conftest.er1 | |
23202 | ac_status=$? | |
23203 | grep -v '^ *+' conftest.er1 >conftest.err | |
23204 | rm -f conftest.er1 | |
23205 | cat conftest.err >&5 | |
23206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23207 | (exit $ac_status); } && { | |
23208 | test -z "$ac_c_werror_flag" || | |
23209 | test ! -s conftest.err | |
23210 | } && test -s conftest.$ac_objext; then | |
23211 | cat >conftest.$ac_ext <<_ACEOF | |
23212 | /* confdefs.h. */ | |
23213 | _ACEOF | |
23214 | cat confdefs.h >>conftest.$ac_ext | |
23215 | cat >>conftest.$ac_ext <<_ACEOF | |
23216 | /* end confdefs.h. */ | |
23217 | ||
23218 | #include <sys/types.h> | |
23219 | #include <sys/socket.h> | |
23220 | ||
23221 | ||
23222 | int | |
23223 | main () | |
23224 | { | |
23225 | if (sizeof ((struct sockaddr_storage))) | |
23226 | return 0; | |
db137867 AC |
23227 | ; |
23228 | return 0; | |
23229 | } | |
23230 | _ACEOF | |
23231 | rm -f conftest.$ac_objext | |
23232 | if { (ac_try="$ac_compile" | |
23233 | case "(($ac_try" in | |
23234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23235 | *) ac_try_echo=$ac_try;; | |
23236 | esac | |
030272f3 VY |
23237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23238 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23239 | (eval "$ac_compile") 2>conftest.er1 |
23240 | ac_status=$? | |
23241 | grep -v '^ *+' conftest.er1 >conftest.err | |
23242 | rm -f conftest.er1 | |
23243 | cat conftest.err >&5 | |
030272f3 | 23244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23245 | (exit $ac_status); } && { |
23246 | test -z "$ac_c_werror_flag" || | |
23247 | test ! -s conftest.err | |
23248 | } && test -s conftest.$ac_objext; then | |
030272f3 | 23249 | : |
db137867 | 23250 | else |
030272f3 | 23251 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23252 | sed 's/^/| /' conftest.$ac_ext >&5 |
23253 | ||
030272f3 | 23254 | ac_cv_type_struct_sockaddr_storage=yes |
db137867 AC |
23255 | fi |
23256 | ||
23257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
23258 | else |
23259 | $as_echo "$as_me: failed program was:" >&5 | |
23260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23261 | ||
23262 | ||
db137867 | 23263 | fi |
030272f3 VY |
23264 | |
23265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23266 | fi | |
23267 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 | |
23268 | $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; } | |
23269 | if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then | |
db137867 AC |
23270 | |
23271 | cat >>confdefs.h <<_ACEOF | |
23272 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
23273 | _ACEOF | |
23274 | ||
23275 | ||
23276 | rb_have_sockaddr_storage=yes | |
23277 | ||
23278 | fi | |
23279 | ||
23280 | ||
23281 | ||
23282 | save_LIBS=$LIBS | |
030272f3 VY |
23283 | { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
23284 | $as_echo_n "checking for library containing crypt... " >&6; } | |
db137867 | 23285 | if test "${ac_cv_search_crypt+set}" = set; then |
030272f3 | 23286 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23287 | else |
23288 | ac_func_search_save_LIBS=$LIBS | |
23289 | cat >conftest.$ac_ext <<_ACEOF | |
23290 | /* confdefs.h. */ | |
23291 | _ACEOF | |
23292 | cat confdefs.h >>conftest.$ac_ext | |
23293 | cat >>conftest.$ac_ext <<_ACEOF | |
23294 | /* end confdefs.h. */ | |
23295 | ||
23296 | /* Override any GCC internal prototype to avoid an error. | |
23297 | Use char because int might match the return type of a GCC | |
23298 | builtin and then its argument prototype would still apply. */ | |
23299 | #ifdef __cplusplus | |
23300 | extern "C" | |
23301 | #endif | |
23302 | char crypt (); | |
23303 | int | |
23304 | main () | |
23305 | { | |
23306 | return crypt (); | |
23307 | ; | |
23308 | return 0; | |
23309 | } | |
23310 | _ACEOF | |
23311 | for ac_lib in '' crypt descrypt; do | |
23312 | if test -z "$ac_lib"; then | |
23313 | ac_res="none required" | |
23314 | else | |
23315 | ac_res=-l$ac_lib | |
23316 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23317 | fi | |
23318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23319 | if { (ac_try="$ac_link" | |
23320 | case "(($ac_try" in | |
23321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23322 | *) ac_try_echo=$ac_try;; | |
23323 | esac | |
030272f3 VY |
23324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23325 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23326 | (eval "$ac_link") 2>conftest.er1 |
23327 | ac_status=$? | |
23328 | grep -v '^ *+' conftest.er1 >conftest.err | |
23329 | rm -f conftest.er1 | |
23330 | cat conftest.err >&5 | |
030272f3 | 23331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23332 | (exit $ac_status); } && { |
23333 | test -z "$ac_c_werror_flag" || | |
23334 | test ! -s conftest.err | |
030272f3 VY |
23335 | } && test -s conftest$ac_exeext && { |
23336 | test "$cross_compiling" = yes || | |
23337 | $as_test_x conftest$ac_exeext | |
23338 | }; then | |
db137867 AC |
23339 | ac_cv_search_crypt=$ac_res |
23340 | else | |
030272f3 | 23341 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23342 | sed 's/^/| /' conftest.$ac_ext >&5 |
23343 | ||
23344 | ||
23345 | fi | |
23346 | ||
030272f3 | 23347 | rm -rf conftest.dSYM |
db137867 AC |
23348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23349 | conftest$ac_exeext | |
23350 | if test "${ac_cv_search_crypt+set}" = set; then | |
23351 | break | |
23352 | fi | |
23353 | done | |
23354 | if test "${ac_cv_search_crypt+set}" = set; then | |
23355 | : | |
23356 | else | |
23357 | ac_cv_search_crypt=no | |
23358 | fi | |
23359 | rm conftest.$ac_ext | |
23360 | LIBS=$ac_func_search_save_LIBS | |
23361 | fi | |
030272f3 VY |
23362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
23363 | $as_echo "$ac_cv_search_crypt" >&6; } | |
db137867 AC |
23364 | ac_res=$ac_cv_search_crypt |
23365 | if test "$ac_res" != no; then | |
23366 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23367 | ||
23368 | fi | |
23369 | ||
23370 | LIBS=$save_LIBS | |
23371 | ||
23372 | CRYPT_LIB=$ac_cv_search_crypt | |
23373 | ||
23374 | if test "$CRYPT_LIB" = "none required"; then | |
23375 | unset CRYPT_LIB | |
23376 | elif test "$CRYPT_LIB" = no; then | |
23377 | need_crypt=yes; | |
23378 | ||
23379 | cat >>confdefs.h <<\_ACEOF | |
23380 | #define NEED_CRYPT 1 | |
23381 | _ACEOF | |
23382 | ||
23383 | unset CRYPT_LIB | |
23384 | fi | |
23385 | ||
b69b8b08 | 23386 | if test x"$need_crypt" = "xyes"; then |
db137867 AC |
23387 | NEED_CRYPT_TRUE= |
23388 | NEED_CRYPT_FALSE='#' | |
23389 | else | |
23390 | NEED_CRYPT_TRUE='#' | |
23391 | NEED_CRYPT_FALSE= | |
23392 | fi | |
23393 | ||
23394 | ||
23395 | ||
23396 | ||
23397 | ||
23398 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
030272f3 VY |
23399 | { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
23400 | $as_echo_n "checking for stdarg.h... " >&6; } | |
db137867 | 23401 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
030272f3 | 23402 | $as_echo_n "(cached) " >&6 |
db137867 | 23403 | fi |
030272f3 VY |
23404 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
23405 | $as_echo "$ac_cv_header_stdarg_h" >&6; } | |
db137867 AC |
23406 | else |
23407 | # Is the header compilable? | |
030272f3 VY |
23408 | { $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
23409 | $as_echo_n "checking stdarg.h usability... " >&6; } | |
db137867 AC |
23410 | cat >conftest.$ac_ext <<_ACEOF |
23411 | /* confdefs.h. */ | |
23412 | _ACEOF | |
23413 | cat confdefs.h >>conftest.$ac_ext | |
23414 | cat >>conftest.$ac_ext <<_ACEOF | |
23415 | /* end confdefs.h. */ | |
23416 | $ac_includes_default | |
23417 | #include <stdarg.h> | |
23418 | _ACEOF | |
23419 | rm -f conftest.$ac_objext | |
23420 | if { (ac_try="$ac_compile" | |
23421 | case "(($ac_try" in | |
23422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23423 | *) ac_try_echo=$ac_try;; | |
23424 | esac | |
030272f3 VY |
23425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23426 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23427 | (eval "$ac_compile") 2>conftest.er1 |
23428 | ac_status=$? | |
23429 | grep -v '^ *+' conftest.er1 >conftest.err | |
23430 | rm -f conftest.er1 | |
23431 | cat conftest.err >&5 | |
030272f3 | 23432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23433 | (exit $ac_status); } && { |
23434 | test -z "$ac_c_werror_flag" || | |
23435 | test ! -s conftest.err | |
23436 | } && test -s conftest.$ac_objext; then | |
23437 | ac_header_compiler=yes | |
23438 | else | |
030272f3 | 23439 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23440 | sed 's/^/| /' conftest.$ac_ext >&5 |
23441 | ||
23442 | ac_header_compiler=no | |
23443 | fi | |
23444 | ||
23445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
23446 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23447 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
23448 | |
23449 | # Is the header present? | |
030272f3 VY |
23450 | { $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
23451 | $as_echo_n "checking stdarg.h presence... " >&6; } | |
db137867 AC |
23452 | cat >conftest.$ac_ext <<_ACEOF |
23453 | /* confdefs.h. */ | |
23454 | _ACEOF | |
23455 | cat confdefs.h >>conftest.$ac_ext | |
23456 | cat >>conftest.$ac_ext <<_ACEOF | |
23457 | /* end confdefs.h. */ | |
23458 | #include <stdarg.h> | |
23459 | _ACEOF | |
23460 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23461 | case "(($ac_try" in | |
23462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23463 | *) ac_try_echo=$ac_try;; | |
23464 | esac | |
030272f3 VY |
23465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23466 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
23468 | ac_status=$? | |
23469 | grep -v '^ *+' conftest.er1 >conftest.err | |
23470 | rm -f conftest.er1 | |
23471 | cat conftest.err >&5 | |
030272f3 | 23472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23473 | (exit $ac_status); } >/dev/null && { |
23474 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23475 | test ! -s conftest.err | |
23476 | }; then | |
23477 | ac_header_preproc=yes | |
23478 | else | |
030272f3 | 23479 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23480 | sed 's/^/| /' conftest.$ac_ext >&5 |
23481 | ||
23482 | ac_header_preproc=no | |
23483 | fi | |
23484 | ||
23485 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
23486 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23487 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
23488 | |
23489 | # So? What about this header? | |
23490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23491 | yes:no: ) | |
030272f3 VY |
23492 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23493 | $as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23494 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
23495 | $as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
db137867 AC |
23496 | ac_header_preproc=yes |
23497 | ;; | |
23498 | no:yes:* ) | |
030272f3 VY |
23499 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
23500 | $as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
23501 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
23502 | $as_echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
23503 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
23504 | $as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
23505 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23506 | $as_echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
23507 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
23508 | $as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
23509 | { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
23510 | $as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
23511 | |
23512 | ;; | |
23513 | esac | |
030272f3 VY |
23514 | { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
23515 | $as_echo_n "checking for stdarg.h... " >&6; } | |
db137867 | 23516 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
030272f3 | 23517 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23518 | else |
23519 | ac_cv_header_stdarg_h=$ac_header_preproc | |
23520 | fi | |
030272f3 VY |
23521 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
23522 | $as_echo "$ac_cv_header_stdarg_h" >&6; } | |
db137867 AC |
23523 | |
23524 | fi | |
030272f3 | 23525 | if test "x$ac_cv_header_stdarg_h" = x""yes; then |
db137867 AC |
23526 | : |
23527 | else | |
030272f3 VY |
23528 | { { $as_echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5 |
23529 | $as_echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;} | |
db137867 AC |
23530 | { (exit 1); exit 1; }; } |
23531 | fi | |
23532 | ||
23533 | ||
23534 | ||
030272f3 VY |
23535 | { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
23536 | $as_echo_n "checking for sa_family_t... " >&6; } | |
db137867 | 23537 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
030272f3 | 23538 | $as_echo_n "(cached) " >&6 |
db137867 | 23539 | else |
030272f3 VY |
23540 | ac_cv_type_sa_family_t=no |
23541 | cat >conftest.$ac_ext <<_ACEOF | |
db137867 AC |
23542 | /* confdefs.h. */ |
23543 | _ACEOF | |
23544 | cat confdefs.h >>conftest.$ac_ext | |
23545 | cat >>conftest.$ac_ext <<_ACEOF | |
23546 | /* end confdefs.h. */ | |
23547 | #include <sys/types.h> | |
23548 | #include <sys/socket.h> | |
23549 | ||
db137867 AC |
23550 | int |
23551 | main () | |
23552 | { | |
030272f3 VY |
23553 | if (sizeof (sa_family_t)) |
23554 | return 0; | |
23555 | ; | |
db137867 | 23556 | return 0; |
030272f3 VY |
23557 | } |
23558 | _ACEOF | |
23559 | rm -f conftest.$ac_objext | |
23560 | if { (ac_try="$ac_compile" | |
23561 | case "(($ac_try" in | |
23562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23563 | *) ac_try_echo=$ac_try;; | |
23564 | esac | |
23565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23566 | $as_echo "$ac_try_echo") >&5 | |
23567 | (eval "$ac_compile") 2>conftest.er1 | |
23568 | ac_status=$? | |
23569 | grep -v '^ *+' conftest.er1 >conftest.err | |
23570 | rm -f conftest.er1 | |
23571 | cat conftest.err >&5 | |
23572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23573 | (exit $ac_status); } && { | |
23574 | test -z "$ac_c_werror_flag" || | |
23575 | test ! -s conftest.err | |
23576 | } && test -s conftest.$ac_objext; then | |
23577 | cat >conftest.$ac_ext <<_ACEOF | |
23578 | /* confdefs.h. */ | |
23579 | _ACEOF | |
23580 | cat confdefs.h >>conftest.$ac_ext | |
23581 | cat >>conftest.$ac_ext <<_ACEOF | |
23582 | /* end confdefs.h. */ | |
23583 | #include <sys/types.h> | |
23584 | #include <sys/socket.h> | |
23585 | ||
23586 | int | |
23587 | main () | |
23588 | { | |
23589 | if (sizeof ((sa_family_t))) | |
23590 | return 0; | |
db137867 AC |
23591 | ; |
23592 | return 0; | |
23593 | } | |
23594 | _ACEOF | |
23595 | rm -f conftest.$ac_objext | |
23596 | if { (ac_try="$ac_compile" | |
23597 | case "(($ac_try" in | |
23598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23599 | *) ac_try_echo=$ac_try;; | |
23600 | esac | |
030272f3 VY |
23601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23602 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23603 | (eval "$ac_compile") 2>conftest.er1 |
23604 | ac_status=$? | |
23605 | grep -v '^ *+' conftest.er1 >conftest.err | |
23606 | rm -f conftest.er1 | |
23607 | cat conftest.err >&5 | |
030272f3 | 23608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23609 | (exit $ac_status); } && { |
23610 | test -z "$ac_c_werror_flag" || | |
23611 | test ! -s conftest.err | |
23612 | } && test -s conftest.$ac_objext; then | |
030272f3 VY |
23613 | : |
23614 | else | |
23615 | $as_echo "$as_me: failed program was:" >&5 | |
23616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23617 | ||
23618 | ac_cv_type_sa_family_t=yes | |
23619 | fi | |
23620 | ||
23621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 23622 | else |
030272f3 | 23623 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23624 | sed 's/^/| /' conftest.$ac_ext >&5 |
23625 | ||
030272f3 | 23626 | |
db137867 AC |
23627 | fi |
23628 | ||
23629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23630 | fi | |
030272f3 VY |
23631 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
23632 | $as_echo "$ac_cv_type_sa_family_t" >&6; } | |
23633 | if test "x$ac_cv_type_sa_family_t" = x""yes; then | |
db137867 AC |
23634 | : |
23635 | else | |
23636 | ||
23637 | cat >>confdefs.h <<\_ACEOF | |
23638 | #define sa_family_t u_int16_t | |
23639 | _ACEOF | |
23640 | ||
23641 | fi | |
23642 | ||
23643 | ||
23644 | ||
23645 | ||
23646 | ||
23647 | ||
23648 | ||
23649 | ||
23650 | ||
23651 | ||
23652 | ||
23653 | ||
23654 | ||
23655 | ||
23656 | ||
23657 | ||
23658 | ||
23659 | ||
23660 | ||
23661 | ||
23662 | ||
a9fb3ed0 VY |
23663 | |
23664 | ||
3202e249 VY |
23665 | |
23666 | for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create | |
db137867 | 23667 | do |
030272f3 VY |
23668 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23669 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23670 | $as_echo_n "checking for $ac_func... " >&6; } | |
db137867 | 23671 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 23672 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23673 | else |
23674 | cat >conftest.$ac_ext <<_ACEOF | |
23675 | /* confdefs.h. */ | |
23676 | _ACEOF | |
23677 | cat confdefs.h >>conftest.$ac_ext | |
23678 | cat >>conftest.$ac_ext <<_ACEOF | |
23679 | /* end confdefs.h. */ | |
23680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23682 | #define $ac_func innocuous_$ac_func | |
23683 | ||
23684 | /* System header to define __stub macros and hopefully few prototypes, | |
23685 | which can conflict with char $ac_func (); below. | |
23686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23687 | <limits.h> exists even on freestanding compilers. */ | |
23688 | ||
23689 | #ifdef __STDC__ | |
23690 | # include <limits.h> | |
23691 | #else | |
23692 | # include <assert.h> | |
23693 | #endif | |
23694 | ||
23695 | #undef $ac_func | |
23696 | ||
23697 | /* Override any GCC internal prototype to avoid an error. | |
23698 | Use char because int might match the return type of a GCC | |
23699 | builtin and then its argument prototype would still apply. */ | |
23700 | #ifdef __cplusplus | |
23701 | extern "C" | |
23702 | #endif | |
23703 | char $ac_func (); | |
23704 | /* The GNU C library defines this for functions which it implements | |
23705 | to always fail with ENOSYS. Some functions are actually named | |
23706 | something starting with __ and the normal name is an alias. */ | |
23707 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
23708 | choke me | |
23709 | #endif | |
23710 | ||
23711 | int | |
23712 | main () | |
23713 | { | |
23714 | return $ac_func (); | |
23715 | ; | |
23716 | return 0; | |
23717 | } | |
23718 | _ACEOF | |
23719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23720 | if { (ac_try="$ac_link" | |
23721 | case "(($ac_try" in | |
23722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23723 | *) ac_try_echo=$ac_try;; | |
23724 | esac | |
030272f3 VY |
23725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23726 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23727 | (eval "$ac_link") 2>conftest.er1 |
23728 | ac_status=$? | |
23729 | grep -v '^ *+' conftest.er1 >conftest.err | |
23730 | rm -f conftest.er1 | |
23731 | cat conftest.err >&5 | |
030272f3 | 23732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23733 | (exit $ac_status); } && { |
23734 | test -z "$ac_c_werror_flag" || | |
23735 | test ! -s conftest.err | |
030272f3 VY |
23736 | } && test -s conftest$ac_exeext && { |
23737 | test "$cross_compiling" = yes || | |
23738 | $as_test_x conftest$ac_exeext | |
23739 | }; then | |
db137867 AC |
23740 | eval "$as_ac_var=yes" |
23741 | else | |
030272f3 | 23742 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23743 | sed 's/^/| /' conftest.$ac_ext >&5 |
23744 | ||
23745 | eval "$as_ac_var=no" | |
23746 | fi | |
23747 | ||
030272f3 | 23748 | rm -rf conftest.dSYM |
db137867 AC |
23749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23750 | conftest$ac_exeext conftest.$ac_ext | |
23751 | fi | |
030272f3 VY |
23752 | ac_res=`eval 'as_val=${'$as_ac_var'} |
23753 | $as_echo "$as_val"'` | |
23754 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23755 | $as_echo "$ac_res" >&6; } | |
23756 | as_val=`eval 'as_val=${'$as_ac_var'} | |
23757 | $as_echo "$as_val"'` | |
23758 | if test "x$as_val" = x""yes; then | |
db137867 | 23759 | cat >>confdefs.h <<_ACEOF |
030272f3 | 23760 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
db137867 AC |
23761 | _ACEOF |
23762 | ||
23763 | fi | |
23764 | done | |
23765 | ||
23766 | ||
030272f3 VY |
23767 | { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 |
23768 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
db137867 | 23769 | if test "${ac_cv_search_nanosleep+set}" = set; then |
030272f3 | 23770 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23771 | else |
23772 | ac_func_search_save_LIBS=$LIBS | |
23773 | cat >conftest.$ac_ext <<_ACEOF | |
23774 | /* confdefs.h. */ | |
23775 | _ACEOF | |
23776 | cat confdefs.h >>conftest.$ac_ext | |
23777 | cat >>conftest.$ac_ext <<_ACEOF | |
23778 | /* end confdefs.h. */ | |
23779 | ||
23780 | /* Override any GCC internal prototype to avoid an error. | |
23781 | Use char because int might match the return type of a GCC | |
23782 | builtin and then its argument prototype would still apply. */ | |
23783 | #ifdef __cplusplus | |
23784 | extern "C" | |
23785 | #endif | |
23786 | char nanosleep (); | |
23787 | int | |
23788 | main () | |
23789 | { | |
23790 | return nanosleep (); | |
23791 | ; | |
23792 | return 0; | |
23793 | } | |
23794 | _ACEOF | |
23795 | for ac_lib in '' rt posix4; do | |
23796 | if test -z "$ac_lib"; then | |
23797 | ac_res="none required" | |
23798 | else | |
23799 | ac_res=-l$ac_lib | |
23800 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23801 | fi | |
23802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23803 | if { (ac_try="$ac_link" | |
23804 | case "(($ac_try" in | |
23805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23806 | *) ac_try_echo=$ac_try;; | |
23807 | esac | |
030272f3 VY |
23808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23809 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23810 | (eval "$ac_link") 2>conftest.er1 |
23811 | ac_status=$? | |
23812 | grep -v '^ *+' conftest.er1 >conftest.err | |
23813 | rm -f conftest.er1 | |
23814 | cat conftest.err >&5 | |
030272f3 | 23815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23816 | (exit $ac_status); } && { |
23817 | test -z "$ac_c_werror_flag" || | |
23818 | test ! -s conftest.err | |
030272f3 VY |
23819 | } && test -s conftest$ac_exeext && { |
23820 | test "$cross_compiling" = yes || | |
23821 | $as_test_x conftest$ac_exeext | |
23822 | }; then | |
db137867 AC |
23823 | ac_cv_search_nanosleep=$ac_res |
23824 | else | |
030272f3 | 23825 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23826 | sed 's/^/| /' conftest.$ac_ext >&5 |
23827 | ||
23828 | ||
23829 | fi | |
23830 | ||
030272f3 | 23831 | rm -rf conftest.dSYM |
db137867 AC |
23832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23833 | conftest$ac_exeext | |
23834 | if test "${ac_cv_search_nanosleep+set}" = set; then | |
23835 | break | |
23836 | fi | |
23837 | done | |
23838 | if test "${ac_cv_search_nanosleep+set}" = set; then | |
23839 | : | |
23840 | else | |
23841 | ac_cv_search_nanosleep=no | |
23842 | fi | |
23843 | rm conftest.$ac_ext | |
23844 | LIBS=$ac_func_search_save_LIBS | |
23845 | fi | |
030272f3 VY |
23846 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 |
23847 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
db137867 AC |
23848 | ac_res=$ac_cv_search_nanosleep |
23849 | if test "$ac_res" != no; then | |
23850 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23851 | ||
23852 | cat >>confdefs.h <<\_ACEOF | |
23853 | #define HAVE_NANOSLEEP 1 | |
23854 | _ACEOF | |
23855 | ||
23856 | fi | |
23857 | ||
030272f3 VY |
23858 | { $as_echo "$as_me:$LINENO: checking for library containing timer_create" >&5 |
23859 | $as_echo_n "checking for library containing timer_create... " >&6; } | |
db137867 | 23860 | if test "${ac_cv_search_timer_create+set}" = set; then |
030272f3 | 23861 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23862 | else |
23863 | ac_func_search_save_LIBS=$LIBS | |
23864 | cat >conftest.$ac_ext <<_ACEOF | |
23865 | /* confdefs.h. */ | |
23866 | _ACEOF | |
23867 | cat confdefs.h >>conftest.$ac_ext | |
23868 | cat >>conftest.$ac_ext <<_ACEOF | |
23869 | /* end confdefs.h. */ | |
23870 | ||
23871 | /* Override any GCC internal prototype to avoid an error. | |
23872 | Use char because int might match the return type of a GCC | |
23873 | builtin and then its argument prototype would still apply. */ | |
23874 | #ifdef __cplusplus | |
23875 | extern "C" | |
23876 | #endif | |
23877 | char timer_create (); | |
23878 | int | |
23879 | main () | |
23880 | { | |
23881 | return timer_create (); | |
23882 | ; | |
23883 | return 0; | |
23884 | } | |
23885 | _ACEOF | |
23886 | for ac_lib in '' rt; do | |
23887 | if test -z "$ac_lib"; then | |
23888 | ac_res="none required" | |
23889 | else | |
23890 | ac_res=-l$ac_lib | |
23891 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23892 | fi | |
23893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23894 | if { (ac_try="$ac_link" | |
23895 | case "(($ac_try" in | |
23896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23897 | *) ac_try_echo=$ac_try;; | |
23898 | esac | |
030272f3 VY |
23899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23900 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
23901 | (eval "$ac_link") 2>conftest.er1 |
23902 | ac_status=$? | |
23903 | grep -v '^ *+' conftest.er1 >conftest.err | |
23904 | rm -f conftest.er1 | |
23905 | cat conftest.err >&5 | |
030272f3 | 23906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
23907 | (exit $ac_status); } && { |
23908 | test -z "$ac_c_werror_flag" || | |
23909 | test ! -s conftest.err | |
030272f3 VY |
23910 | } && test -s conftest$ac_exeext && { |
23911 | test "$cross_compiling" = yes || | |
23912 | $as_test_x conftest$ac_exeext | |
23913 | }; then | |
db137867 AC |
23914 | ac_cv_search_timer_create=$ac_res |
23915 | else | |
030272f3 | 23916 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
23917 | sed 's/^/| /' conftest.$ac_ext >&5 |
23918 | ||
23919 | ||
23920 | fi | |
23921 | ||
030272f3 | 23922 | rm -rf conftest.dSYM |
db137867 AC |
23923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23924 | conftest$ac_exeext | |
23925 | if test "${ac_cv_search_timer_create+set}" = set; then | |
23926 | break | |
23927 | fi | |
23928 | done | |
23929 | if test "${ac_cv_search_timer_create+set}" = set; then | |
23930 | : | |
23931 | else | |
23932 | ac_cv_search_timer_create=no | |
23933 | fi | |
23934 | rm conftest.$ac_ext | |
23935 | LIBS=$ac_func_search_save_LIBS | |
23936 | fi | |
030272f3 VY |
23937 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5 |
23938 | $as_echo "$ac_cv_search_timer_create" >&6; } | |
db137867 AC |
23939 | ac_res=$ac_cv_search_timer_create |
23940 | if test "$ac_res" != no; then | |
23941 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23942 | ||
23943 | cat >>confdefs.h <<\_ACEOF | |
23944 | #define HAVE_TIMER_CREATE 1 | |
23945 | _ACEOF | |
23946 | ||
23947 | fi | |
23948 | ||
030272f3 VY |
23949 | { $as_echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5 |
23950 | $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; } | |
db137867 | 23951 | if test "${rb__cv_timer_create_works+set}" = set; then |
030272f3 | 23952 | $as_echo_n "(cached) " >&6 |
db137867 AC |
23953 | else |
23954 | if test "$cross_compiling" = yes; then | |
030272f3 VY |
23955 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
23956 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
23957 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
db137867 | 23958 | See \`config.log' for more details." >&5 |
030272f3 | 23959 | $as_echo "$as_me: error: cannot run test program while cross compiling |
db137867 | 23960 | See \`config.log' for more details." >&2;} |
030272f3 | 23961 | { (exit 1); exit 1; }; }; } |
db137867 AC |
23962 | else |
23963 | cat >conftest.$ac_ext <<_ACEOF | |
23964 | /* confdefs.h. */ | |
23965 | _ACEOF | |
23966 | cat confdefs.h >>conftest.$ac_ext | |
23967 | cat >>conftest.$ac_ext <<_ACEOF | |
23968 | /* end confdefs.h. */ | |
23969 | ||
23970 | #ifdef HAVE_TIME_H | |
23971 | #include <time.h> | |
23972 | #endif | |
23973 | #ifdef HAVE_SIGNAL_H | |
23974 | #include <signal.h> | |
23975 | #endif | |
23976 | #ifdef HAVE_UNISTD_H | |
23977 | #include <unistd.h> | |
23978 | #endif | |
23979 | int main(int argc, char *argv[]) | |
23980 | { | |
23981 | #if HAVE_TIMER_CREATE | |
23982 | struct sigevent ev; | |
23983 | timer_t timer; | |
23984 | ev.sigev_notify = SIGEV_SIGNAL; | |
23985 | ev.sigev_signo = SIGVTALRM; | |
23986 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
23987 | return 1; | |
23988 | } | |
23989 | #else | |
23990 | return 1; | |
23991 | #endif | |
23992 | return 0; | |
23993 | } | |
23994 | ||
23995 | _ACEOF | |
23996 | rm -f conftest$ac_exeext | |
23997 | if { (ac_try="$ac_link" | |
23998 | case "(($ac_try" in | |
23999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24000 | *) ac_try_echo=$ac_try;; | |
24001 | esac | |
030272f3 VY |
24002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24003 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24004 | (eval "$ac_link") 2>&5 |
24005 | ac_status=$? | |
030272f3 | 24006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24008 | { (case "(($ac_try" in | |
24009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24010 | *) ac_try_echo=$ac_try;; | |
24011 | esac | |
030272f3 VY |
24012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24013 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24014 | (eval "$ac_try") 2>&5 |
24015 | ac_status=$? | |
030272f3 | 24016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24017 | (exit $ac_status); }; }; then |
24018 | rb__cv_timer_create_works=yes | |
24019 | else | |
030272f3 VY |
24020 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24021 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
24022 | sed 's/^/| /' conftest.$ac_ext >&5 |
24023 | ||
24024 | ( exit $ac_status ) | |
24025 | rb__cv_timer_create_works=no | |
24026 | fi | |
030272f3 | 24027 | rm -rf conftest.dSYM |
db137867 AC |
24028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24029 | fi | |
24030 | ||
24031 | ||
24032 | ||
24033 | fi | |
030272f3 VY |
24034 | { $as_echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5 |
24035 | $as_echo "$rb__cv_timer_create_works" >&6; } | |
db137867 AC |
24036 | case $rb__cv_timer_create_works in |
24037 | yes) | |
24038 | cat >>confdefs.h <<\_ACEOF | |
24039 | #define USE_TIMER_CREATE 1 | |
24040 | _ACEOF | |
24041 | ;; | |
24042 | esac | |
24043 | ||
030272f3 VY |
24044 | { $as_echo "$as_me:$LINENO: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
24045 | $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; } | |
3202e249 | 24046 | if test "${rb__cv_timerfd_create_works+set}" = set; then |
030272f3 | 24047 | $as_echo_n "(cached) " >&6 |
3202e249 VY |
24048 | else |
24049 | if test "$cross_compiling" = yes; then | |
030272f3 VY |
24050 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
24051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
24052 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
3202e249 | 24053 | See \`config.log' for more details." >&5 |
030272f3 | 24054 | $as_echo "$as_me: error: cannot run test program while cross compiling |
3202e249 | 24055 | See \`config.log' for more details." >&2;} |
030272f3 | 24056 | { (exit 1); exit 1; }; }; } |
3202e249 VY |
24057 | else |
24058 | cat >conftest.$ac_ext <<_ACEOF | |
24059 | /* confdefs.h. */ | |
24060 | _ACEOF | |
24061 | cat confdefs.h >>conftest.$ac_ext | |
24062 | cat >>conftest.$ac_ext <<_ACEOF | |
24063 | /* end confdefs.h. */ | |
24064 | ||
24065 | #ifdef HAVE_TIME_H | |
24066 | #include <time.h> | |
24067 | #endif | |
24068 | #ifdef HAVE_SIGNAL_H | |
24069 | #include <signal.h> | |
24070 | #endif | |
24071 | #ifdef HAVE_UNISTD_H | |
24072 | #include <unistd.h> | |
24073 | #endif | |
24074 | #ifdef HAVE_SYS_TIMERFD_H | |
24075 | #include <sys/timerfd.h> | |
24076 | #endif | |
24077 | int main(int argc, char *argv[]) | |
24078 | { | |
24079 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
24080 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
24081 | return 1; | |
24082 | } | |
24083 | #else | |
24084 | return 1; | |
24085 | #endif | |
24086 | return 0; | |
24087 | } | |
24088 | ||
24089 | _ACEOF | |
24090 | rm -f conftest$ac_exeext | |
24091 | if { (ac_try="$ac_link" | |
24092 | case "(($ac_try" in | |
24093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24094 | *) ac_try_echo=$ac_try;; | |
24095 | esac | |
030272f3 VY |
24096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24097 | $as_echo "$ac_try_echo") >&5 | |
3202e249 VY |
24098 | (eval "$ac_link") 2>&5 |
24099 | ac_status=$? | |
030272f3 | 24100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3202e249 VY |
24101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24102 | { (case "(($ac_try" in | |
24103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24104 | *) ac_try_echo=$ac_try;; | |
24105 | esac | |
030272f3 VY |
24106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24107 | $as_echo "$ac_try_echo") >&5 | |
3202e249 VY |
24108 | (eval "$ac_try") 2>&5 |
24109 | ac_status=$? | |
030272f3 | 24110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3202e249 VY |
24111 | (exit $ac_status); }; }; then |
24112 | rb__cv_timerfd_create_works=yes | |
24113 | else | |
030272f3 VY |
24114 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24115 | $as_echo "$as_me: failed program was:" >&5 | |
3202e249 VY |
24116 | sed 's/^/| /' conftest.$ac_ext >&5 |
24117 | ||
24118 | ( exit $ac_status ) | |
24119 | rb__cv_timerfd_create_works=no | |
24120 | fi | |
030272f3 | 24121 | rm -rf conftest.dSYM |
3202e249 VY |
24122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24123 | fi | |
24124 | ||
24125 | ||
24126 | ||
24127 | fi | |
030272f3 VY |
24128 | { $as_echo "$as_me:$LINENO: result: $rb__cv_timerfd_create_works" >&5 |
24129 | $as_echo "$rb__cv_timerfd_create_works" >&6; } | |
3202e249 VY |
24130 | case $rb__cv_timerfd_create_works in |
24131 | yes) | |
24132 | cat >>confdefs.h <<\_ACEOF | |
24133 | #define USE_TIMERFD_CREATE 1 | |
24134 | _ACEOF | |
24135 | ;; | |
24136 | esac | |
24137 | ||
db137867 AC |
24138 | |
24139 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
24140 | # for constant arguments. Useless! | |
030272f3 VY |
24141 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
24142 | $as_echo_n "checking for working alloca.h... " >&6; } | |
db137867 | 24143 | if test "${ac_cv_working_alloca_h+set}" = set; then |
030272f3 | 24144 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24145 | else |
24146 | cat >conftest.$ac_ext <<_ACEOF | |
24147 | /* confdefs.h. */ | |
24148 | _ACEOF | |
24149 | cat confdefs.h >>conftest.$ac_ext | |
24150 | cat >>conftest.$ac_ext <<_ACEOF | |
24151 | /* end confdefs.h. */ | |
24152 | #include <alloca.h> | |
24153 | int | |
24154 | main () | |
24155 | { | |
24156 | char *p = (char *) alloca (2 * sizeof (int)); | |
24157 | if (p) return 0; | |
24158 | ; | |
24159 | return 0; | |
24160 | } | |
24161 | _ACEOF | |
24162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24163 | if { (ac_try="$ac_link" | |
24164 | case "(($ac_try" in | |
24165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24166 | *) ac_try_echo=$ac_try;; | |
24167 | esac | |
030272f3 VY |
24168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24169 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24170 | (eval "$ac_link") 2>conftest.er1 |
24171 | ac_status=$? | |
24172 | grep -v '^ *+' conftest.er1 >conftest.err | |
24173 | rm -f conftest.er1 | |
24174 | cat conftest.err >&5 | |
030272f3 | 24175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24176 | (exit $ac_status); } && { |
24177 | test -z "$ac_c_werror_flag" || | |
24178 | test ! -s conftest.err | |
030272f3 VY |
24179 | } && test -s conftest$ac_exeext && { |
24180 | test "$cross_compiling" = yes || | |
24181 | $as_test_x conftest$ac_exeext | |
24182 | }; then | |
db137867 AC |
24183 | ac_cv_working_alloca_h=yes |
24184 | else | |
030272f3 | 24185 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24186 | sed 's/^/| /' conftest.$ac_ext >&5 |
24187 | ||
24188 | ac_cv_working_alloca_h=no | |
24189 | fi | |
24190 | ||
030272f3 | 24191 | rm -rf conftest.dSYM |
db137867 AC |
24192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24193 | conftest$ac_exeext conftest.$ac_ext | |
24194 | fi | |
030272f3 VY |
24195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
24196 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
db137867 AC |
24197 | if test $ac_cv_working_alloca_h = yes; then |
24198 | ||
24199 | cat >>confdefs.h <<\_ACEOF | |
24200 | #define HAVE_ALLOCA_H 1 | |
24201 | _ACEOF | |
24202 | ||
24203 | fi | |
24204 | ||
030272f3 VY |
24205 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
24206 | $as_echo_n "checking for alloca... " >&6; } | |
db137867 | 24207 | if test "${ac_cv_func_alloca_works+set}" = set; then |
030272f3 | 24208 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24209 | else |
24210 | cat >conftest.$ac_ext <<_ACEOF | |
24211 | /* confdefs.h. */ | |
24212 | _ACEOF | |
24213 | cat confdefs.h >>conftest.$ac_ext | |
24214 | cat >>conftest.$ac_ext <<_ACEOF | |
24215 | /* end confdefs.h. */ | |
24216 | #ifdef __GNUC__ | |
24217 | # define alloca __builtin_alloca | |
24218 | #else | |
24219 | # ifdef _MSC_VER | |
24220 | # include <malloc.h> | |
24221 | # define alloca _alloca | |
24222 | # else | |
24223 | # ifdef HAVE_ALLOCA_H | |
24224 | # include <alloca.h> | |
24225 | # else | |
24226 | # ifdef _AIX | |
24227 | #pragma alloca | |
24228 | # else | |
24229 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
24230 | char *alloca (); | |
24231 | # endif | |
24232 | # endif | |
24233 | # endif | |
24234 | # endif | |
24235 | #endif | |
24236 | ||
24237 | int | |
24238 | main () | |
24239 | { | |
24240 | char *p = (char *) alloca (1); | |
24241 | if (p) return 0; | |
24242 | ; | |
24243 | return 0; | |
24244 | } | |
24245 | _ACEOF | |
24246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24247 | if { (ac_try="$ac_link" | |
24248 | case "(($ac_try" in | |
24249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24250 | *) ac_try_echo=$ac_try;; | |
24251 | esac | |
030272f3 VY |
24252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24253 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24254 | (eval "$ac_link") 2>conftest.er1 |
24255 | ac_status=$? | |
24256 | grep -v '^ *+' conftest.er1 >conftest.err | |
24257 | rm -f conftest.er1 | |
24258 | cat conftest.err >&5 | |
030272f3 | 24259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24260 | (exit $ac_status); } && { |
24261 | test -z "$ac_c_werror_flag" || | |
24262 | test ! -s conftest.err | |
030272f3 VY |
24263 | } && test -s conftest$ac_exeext && { |
24264 | test "$cross_compiling" = yes || | |
24265 | $as_test_x conftest$ac_exeext | |
24266 | }; then | |
db137867 AC |
24267 | ac_cv_func_alloca_works=yes |
24268 | else | |
030272f3 | 24269 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24270 | sed 's/^/| /' conftest.$ac_ext >&5 |
24271 | ||
24272 | ac_cv_func_alloca_works=no | |
24273 | fi | |
24274 | ||
030272f3 | 24275 | rm -rf conftest.dSYM |
db137867 AC |
24276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24277 | conftest$ac_exeext conftest.$ac_ext | |
24278 | fi | |
030272f3 VY |
24279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
24280 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
db137867 AC |
24281 | |
24282 | if test $ac_cv_func_alloca_works = yes; then | |
24283 | ||
24284 | cat >>confdefs.h <<\_ACEOF | |
24285 | #define HAVE_ALLOCA 1 | |
24286 | _ACEOF | |
24287 | ||
24288 | else | |
24289 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
24290 | # that cause trouble. Some versions do not even contain alloca or | |
24291 | # contain a buggy version. If you still want to use their alloca, | |
24292 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
24293 | ||
24294 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
24295 | ||
24296 | cat >>confdefs.h <<\_ACEOF | |
24297 | #define C_ALLOCA 1 | |
24298 | _ACEOF | |
24299 | ||
24300 | ||
030272f3 VY |
24301 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
24302 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
db137867 | 24303 | if test "${ac_cv_os_cray+set}" = set; then |
030272f3 | 24304 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24305 | else |
24306 | cat >conftest.$ac_ext <<_ACEOF | |
24307 | /* confdefs.h. */ | |
24308 | _ACEOF | |
24309 | cat confdefs.h >>conftest.$ac_ext | |
24310 | cat >>conftest.$ac_ext <<_ACEOF | |
24311 | /* end confdefs.h. */ | |
24312 | #if defined CRAY && ! defined CRAY2 | |
24313 | webecray | |
24314 | #else | |
24315 | wenotbecray | |
24316 | #endif | |
24317 | ||
24318 | _ACEOF | |
24319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
24320 | $EGREP "webecray" >/dev/null 2>&1; then | |
24321 | ac_cv_os_cray=yes | |
24322 | else | |
24323 | ac_cv_os_cray=no | |
24324 | fi | |
24325 | rm -f conftest* | |
24326 | ||
24327 | fi | |
030272f3 VY |
24328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
24329 | $as_echo "$ac_cv_os_cray" >&6; } | |
db137867 AC |
24330 | if test $ac_cv_os_cray = yes; then |
24331 | for ac_func in _getb67 GETB67 getb67; do | |
030272f3 VY |
24332 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24333 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24334 | $as_echo_n "checking for $ac_func... " >&6; } | |
db137867 | 24335 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 24336 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24337 | else |
24338 | cat >conftest.$ac_ext <<_ACEOF | |
24339 | /* confdefs.h. */ | |
24340 | _ACEOF | |
24341 | cat confdefs.h >>conftest.$ac_ext | |
24342 | cat >>conftest.$ac_ext <<_ACEOF | |
24343 | /* end confdefs.h. */ | |
24344 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24346 | #define $ac_func innocuous_$ac_func | |
24347 | ||
24348 | /* System header to define __stub macros and hopefully few prototypes, | |
24349 | which can conflict with char $ac_func (); below. | |
24350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24351 | <limits.h> exists even on freestanding compilers. */ | |
24352 | ||
24353 | #ifdef __STDC__ | |
24354 | # include <limits.h> | |
24355 | #else | |
24356 | # include <assert.h> | |
24357 | #endif | |
24358 | ||
24359 | #undef $ac_func | |
24360 | ||
24361 | /* Override any GCC internal prototype to avoid an error. | |
24362 | Use char because int might match the return type of a GCC | |
24363 | builtin and then its argument prototype would still apply. */ | |
24364 | #ifdef __cplusplus | |
24365 | extern "C" | |
24366 | #endif | |
24367 | char $ac_func (); | |
24368 | /* The GNU C library defines this for functions which it implements | |
24369 | to always fail with ENOSYS. Some functions are actually named | |
24370 | something starting with __ and the normal name is an alias. */ | |
24371 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
24372 | choke me | |
24373 | #endif | |
24374 | ||
24375 | int | |
24376 | main () | |
24377 | { | |
24378 | return $ac_func (); | |
24379 | ; | |
24380 | return 0; | |
24381 | } | |
24382 | _ACEOF | |
24383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24384 | if { (ac_try="$ac_link" | |
24385 | case "(($ac_try" in | |
24386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24387 | *) ac_try_echo=$ac_try;; | |
24388 | esac | |
030272f3 VY |
24389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24390 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24391 | (eval "$ac_link") 2>conftest.er1 |
24392 | ac_status=$? | |
24393 | grep -v '^ *+' conftest.er1 >conftest.err | |
24394 | rm -f conftest.er1 | |
24395 | cat conftest.err >&5 | |
030272f3 | 24396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24397 | (exit $ac_status); } && { |
24398 | test -z "$ac_c_werror_flag" || | |
24399 | test ! -s conftest.err | |
030272f3 VY |
24400 | } && test -s conftest$ac_exeext && { |
24401 | test "$cross_compiling" = yes || | |
24402 | $as_test_x conftest$ac_exeext | |
24403 | }; then | |
db137867 AC |
24404 | eval "$as_ac_var=yes" |
24405 | else | |
030272f3 | 24406 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24407 | sed 's/^/| /' conftest.$ac_ext >&5 |
24408 | ||
24409 | eval "$as_ac_var=no" | |
24410 | fi | |
24411 | ||
030272f3 | 24412 | rm -rf conftest.dSYM |
db137867 AC |
24413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24414 | conftest$ac_exeext conftest.$ac_ext | |
24415 | fi | |
030272f3 VY |
24416 | ac_res=`eval 'as_val=${'$as_ac_var'} |
24417 | $as_echo "$as_val"'` | |
24418 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24419 | $as_echo "$ac_res" >&6; } | |
24420 | as_val=`eval 'as_val=${'$as_ac_var'} | |
24421 | $as_echo "$as_val"'` | |
24422 | if test "x$as_val" = x""yes; then | |
db137867 AC |
24423 | |
24424 | cat >>confdefs.h <<_ACEOF | |
24425 | #define CRAY_STACKSEG_END $ac_func | |
24426 | _ACEOF | |
24427 | ||
24428 | break | |
24429 | fi | |
24430 | ||
24431 | done | |
24432 | fi | |
24433 | ||
030272f3 VY |
24434 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
24435 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
db137867 | 24436 | if test "${ac_cv_c_stack_direction+set}" = set; then |
030272f3 | 24437 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24438 | else |
24439 | if test "$cross_compiling" = yes; then | |
24440 | ac_cv_c_stack_direction=0 | |
24441 | else | |
24442 | cat >conftest.$ac_ext <<_ACEOF | |
24443 | /* confdefs.h. */ | |
24444 | _ACEOF | |
24445 | cat confdefs.h >>conftest.$ac_ext | |
24446 | cat >>conftest.$ac_ext <<_ACEOF | |
24447 | /* end confdefs.h. */ | |
24448 | $ac_includes_default | |
24449 | int | |
24450 | find_stack_direction () | |
24451 | { | |
24452 | static char *addr = 0; | |
24453 | auto char dummy; | |
24454 | if (addr == 0) | |
24455 | { | |
24456 | addr = &dummy; | |
24457 | return find_stack_direction (); | |
24458 | } | |
24459 | else | |
24460 | return (&dummy > addr) ? 1 : -1; | |
24461 | } | |
24462 | ||
24463 | int | |
24464 | main () | |
24465 | { | |
24466 | return find_stack_direction () < 0; | |
24467 | } | |
24468 | _ACEOF | |
24469 | rm -f conftest$ac_exeext | |
24470 | if { (ac_try="$ac_link" | |
24471 | case "(($ac_try" in | |
24472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24473 | *) ac_try_echo=$ac_try;; | |
24474 | esac | |
030272f3 VY |
24475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24476 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24477 | (eval "$ac_link") 2>&5 |
24478 | ac_status=$? | |
030272f3 | 24479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24481 | { (case "(($ac_try" in | |
24482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24483 | *) ac_try_echo=$ac_try;; | |
24484 | esac | |
030272f3 VY |
24485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24486 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24487 | (eval "$ac_try") 2>&5 |
24488 | ac_status=$? | |
030272f3 | 24489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24490 | (exit $ac_status); }; }; then |
24491 | ac_cv_c_stack_direction=1 | |
24492 | else | |
030272f3 VY |
24493 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24494 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
24495 | sed 's/^/| /' conftest.$ac_ext >&5 |
24496 | ||
24497 | ( exit $ac_status ) | |
24498 | ac_cv_c_stack_direction=-1 | |
24499 | fi | |
030272f3 | 24500 | rm -rf conftest.dSYM |
db137867 AC |
24501 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24502 | fi | |
24503 | ||
24504 | ||
24505 | fi | |
030272f3 VY |
24506 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
24507 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
db137867 AC |
24508 | |
24509 | cat >>confdefs.h <<_ACEOF | |
24510 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
24511 | _ACEOF | |
24512 | ||
24513 | ||
24514 | fi | |
24515 | ||
24516 | ||
24517 | for ac_header in vfork.h | |
24518 | do | |
030272f3 | 24519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
db137867 | 24520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 VY |
24521 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24522 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 24523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 24524 | $as_echo_n "(cached) " >&6 |
db137867 | 24525 | fi |
030272f3 VY |
24526 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
24527 | $as_echo "$as_val"'` | |
24528 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24529 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
24530 | else |
24531 | # Is the header compilable? | |
030272f3 VY |
24532 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
24533 | $as_echo_n "checking $ac_header usability... " >&6; } | |
db137867 AC |
24534 | cat >conftest.$ac_ext <<_ACEOF |
24535 | /* confdefs.h. */ | |
24536 | _ACEOF | |
24537 | cat confdefs.h >>conftest.$ac_ext | |
24538 | cat >>conftest.$ac_ext <<_ACEOF | |
24539 | /* end confdefs.h. */ | |
24540 | $ac_includes_default | |
24541 | #include <$ac_header> | |
24542 | _ACEOF | |
24543 | rm -f conftest.$ac_objext | |
24544 | if { (ac_try="$ac_compile" | |
24545 | case "(($ac_try" in | |
24546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24547 | *) ac_try_echo=$ac_try;; | |
24548 | esac | |
030272f3 VY |
24549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24550 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24551 | (eval "$ac_compile") 2>conftest.er1 |
24552 | ac_status=$? | |
24553 | grep -v '^ *+' conftest.er1 >conftest.err | |
24554 | rm -f conftest.er1 | |
24555 | cat conftest.err >&5 | |
030272f3 | 24556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24557 | (exit $ac_status); } && { |
24558 | test -z "$ac_c_werror_flag" || | |
24559 | test ! -s conftest.err | |
24560 | } && test -s conftest.$ac_objext; then | |
24561 | ac_header_compiler=yes | |
24562 | else | |
030272f3 | 24563 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24564 | sed 's/^/| /' conftest.$ac_ext >&5 |
24565 | ||
24566 | ac_header_compiler=no | |
24567 | fi | |
24568 | ||
24569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
24570 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24571 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
24572 | |
24573 | # Is the header present? | |
030272f3 VY |
24574 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
24575 | $as_echo_n "checking $ac_header presence... " >&6; } | |
db137867 AC |
24576 | cat >conftest.$ac_ext <<_ACEOF |
24577 | /* confdefs.h. */ | |
24578 | _ACEOF | |
24579 | cat confdefs.h >>conftest.$ac_ext | |
24580 | cat >>conftest.$ac_ext <<_ACEOF | |
24581 | /* end confdefs.h. */ | |
24582 | #include <$ac_header> | |
24583 | _ACEOF | |
24584 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24585 | case "(($ac_try" in | |
24586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24587 | *) ac_try_echo=$ac_try;; | |
24588 | esac | |
030272f3 VY |
24589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24590 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
24592 | ac_status=$? | |
24593 | grep -v '^ *+' conftest.er1 >conftest.err | |
24594 | rm -f conftest.er1 | |
24595 | cat conftest.err >&5 | |
030272f3 | 24596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24597 | (exit $ac_status); } >/dev/null && { |
24598 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24599 | test ! -s conftest.err | |
24600 | }; then | |
24601 | ac_header_preproc=yes | |
24602 | else | |
030272f3 | 24603 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24604 | sed 's/^/| /' conftest.$ac_ext >&5 |
24605 | ||
24606 | ac_header_preproc=no | |
24607 | fi | |
24608 | ||
24609 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
24610 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
24611 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
24612 | |
24613 | # So? What about this header? | |
24614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24615 | yes:no: ) | |
030272f3 VY |
24616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24617 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24619 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
db137867 AC |
24620 | ac_header_preproc=yes |
24621 | ;; | |
24622 | no:yes:* ) | |
030272f3 VY |
24623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24624 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24626 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24628 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24630 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24632 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24634 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
24635 | |
24636 | ;; | |
24637 | esac | |
030272f3 VY |
24638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24639 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 24640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 24641 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24642 | else |
24643 | eval "$as_ac_Header=\$ac_header_preproc" | |
24644 | fi | |
030272f3 VY |
24645 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
24646 | $as_echo "$as_val"'` | |
24647 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24648 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
24649 | |
24650 | fi | |
030272f3 VY |
24651 | as_val=`eval 'as_val=${'$as_ac_Header'} |
24652 | $as_echo "$as_val"'` | |
24653 | if test "x$as_val" = x""yes; then | |
db137867 | 24654 | cat >>confdefs.h <<_ACEOF |
030272f3 | 24655 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
db137867 AC |
24656 | _ACEOF |
24657 | ||
24658 | fi | |
24659 | ||
24660 | done | |
24661 | ||
24662 | ||
24663 | ||
24664 | for ac_func in fork vfork | |
24665 | do | |
030272f3 VY |
24666 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24667 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24668 | $as_echo_n "checking for $ac_func... " >&6; } | |
db137867 | 24669 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 24670 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24671 | else |
24672 | cat >conftest.$ac_ext <<_ACEOF | |
24673 | /* confdefs.h. */ | |
24674 | _ACEOF | |
24675 | cat confdefs.h >>conftest.$ac_ext | |
24676 | cat >>conftest.$ac_ext <<_ACEOF | |
24677 | /* end confdefs.h. */ | |
24678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24680 | #define $ac_func innocuous_$ac_func | |
24681 | ||
24682 | /* System header to define __stub macros and hopefully few prototypes, | |
24683 | which can conflict with char $ac_func (); below. | |
24684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24685 | <limits.h> exists even on freestanding compilers. */ | |
24686 | ||
24687 | #ifdef __STDC__ | |
24688 | # include <limits.h> | |
24689 | #else | |
24690 | # include <assert.h> | |
24691 | #endif | |
24692 | ||
24693 | #undef $ac_func | |
24694 | ||
24695 | /* Override any GCC internal prototype to avoid an error. | |
24696 | Use char because int might match the return type of a GCC | |
24697 | builtin and then its argument prototype would still apply. */ | |
24698 | #ifdef __cplusplus | |
24699 | extern "C" | |
24700 | #endif | |
24701 | char $ac_func (); | |
24702 | /* The GNU C library defines this for functions which it implements | |
24703 | to always fail with ENOSYS. Some functions are actually named | |
24704 | something starting with __ and the normal name is an alias. */ | |
24705 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
24706 | choke me | |
24707 | #endif | |
24708 | ||
24709 | int | |
24710 | main () | |
24711 | { | |
24712 | return $ac_func (); | |
24713 | ; | |
24714 | return 0; | |
24715 | } | |
24716 | _ACEOF | |
24717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24718 | if { (ac_try="$ac_link" | |
24719 | case "(($ac_try" in | |
24720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24721 | *) ac_try_echo=$ac_try;; | |
24722 | esac | |
030272f3 VY |
24723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24724 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24725 | (eval "$ac_link") 2>conftest.er1 |
24726 | ac_status=$? | |
24727 | grep -v '^ *+' conftest.er1 >conftest.err | |
24728 | rm -f conftest.er1 | |
24729 | cat conftest.err >&5 | |
030272f3 | 24730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24731 | (exit $ac_status); } && { |
24732 | test -z "$ac_c_werror_flag" || | |
24733 | test ! -s conftest.err | |
030272f3 VY |
24734 | } && test -s conftest$ac_exeext && { |
24735 | test "$cross_compiling" = yes || | |
24736 | $as_test_x conftest$ac_exeext | |
24737 | }; then | |
db137867 AC |
24738 | eval "$as_ac_var=yes" |
24739 | else | |
030272f3 | 24740 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
24741 | sed 's/^/| /' conftest.$ac_ext >&5 |
24742 | ||
24743 | eval "$as_ac_var=no" | |
24744 | fi | |
24745 | ||
030272f3 | 24746 | rm -rf conftest.dSYM |
db137867 AC |
24747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24748 | conftest$ac_exeext conftest.$ac_ext | |
24749 | fi | |
030272f3 VY |
24750 | ac_res=`eval 'as_val=${'$as_ac_var'} |
24751 | $as_echo "$as_val"'` | |
24752 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24753 | $as_echo "$ac_res" >&6; } | |
24754 | as_val=`eval 'as_val=${'$as_ac_var'} | |
24755 | $as_echo "$as_val"'` | |
24756 | if test "x$as_val" = x""yes; then | |
db137867 | 24757 | cat >>confdefs.h <<_ACEOF |
030272f3 | 24758 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
db137867 AC |
24759 | _ACEOF |
24760 | ||
24761 | fi | |
24762 | done | |
24763 | ||
24764 | if test "x$ac_cv_func_fork" = xyes; then | |
030272f3 VY |
24765 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
24766 | $as_echo_n "checking for working fork... " >&6; } | |
db137867 | 24767 | if test "${ac_cv_func_fork_works+set}" = set; then |
030272f3 | 24768 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24769 | else |
24770 | if test "$cross_compiling" = yes; then | |
24771 | ac_cv_func_fork_works=cross | |
24772 | else | |
24773 | cat >conftest.$ac_ext <<_ACEOF | |
24774 | /* confdefs.h. */ | |
24775 | _ACEOF | |
24776 | cat confdefs.h >>conftest.$ac_ext | |
24777 | cat >>conftest.$ac_ext <<_ACEOF | |
24778 | /* end confdefs.h. */ | |
24779 | $ac_includes_default | |
24780 | int | |
24781 | main () | |
24782 | { | |
24783 | ||
24784 | /* By Ruediger Kuhlmann. */ | |
24785 | return fork () < 0; | |
24786 | ||
24787 | ; | |
24788 | return 0; | |
24789 | } | |
24790 | _ACEOF | |
24791 | rm -f conftest$ac_exeext | |
24792 | if { (ac_try="$ac_link" | |
24793 | case "(($ac_try" in | |
24794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24795 | *) ac_try_echo=$ac_try;; | |
24796 | esac | |
030272f3 VY |
24797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24798 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24799 | (eval "$ac_link") 2>&5 |
24800 | ac_status=$? | |
030272f3 | 24801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24803 | { (case "(($ac_try" in | |
24804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24805 | *) ac_try_echo=$ac_try;; | |
24806 | esac | |
030272f3 VY |
24807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24808 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24809 | (eval "$ac_try") 2>&5 |
24810 | ac_status=$? | |
030272f3 | 24811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24812 | (exit $ac_status); }; }; then |
24813 | ac_cv_func_fork_works=yes | |
24814 | else | |
030272f3 VY |
24815 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24816 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
24817 | sed 's/^/| /' conftest.$ac_ext >&5 |
24818 | ||
24819 | ( exit $ac_status ) | |
24820 | ac_cv_func_fork_works=no | |
24821 | fi | |
030272f3 | 24822 | rm -rf conftest.dSYM |
db137867 AC |
24823 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24824 | fi | |
24825 | ||
24826 | ||
24827 | fi | |
030272f3 VY |
24828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
24829 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
db137867 AC |
24830 | |
24831 | else | |
24832 | ac_cv_func_fork_works=$ac_cv_func_fork | |
24833 | fi | |
24834 | if test "x$ac_cv_func_fork_works" = xcross; then | |
24835 | case $host in | |
24836 | *-*-amigaos* | *-*-msdosdjgpp*) | |
24837 | # Override, as these systems have only a dummy fork() stub | |
24838 | ac_cv_func_fork_works=no | |
24839 | ;; | |
24840 | *) | |
24841 | ac_cv_func_fork_works=yes | |
24842 | ;; | |
24843 | esac | |
030272f3 VY |
24844 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
24845 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
db137867 AC |
24846 | fi |
24847 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
24848 | if test "x$ac_cv_func_vfork" = xyes; then | |
030272f3 VY |
24849 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
24850 | $as_echo_n "checking for working vfork... " >&6; } | |
db137867 | 24851 | if test "${ac_cv_func_vfork_works+set}" = set; then |
030272f3 | 24852 | $as_echo_n "(cached) " >&6 |
db137867 AC |
24853 | else |
24854 | if test "$cross_compiling" = yes; then | |
24855 | ac_cv_func_vfork_works=cross | |
24856 | else | |
24857 | cat >conftest.$ac_ext <<_ACEOF | |
24858 | /* confdefs.h. */ | |
24859 | _ACEOF | |
24860 | cat confdefs.h >>conftest.$ac_ext | |
24861 | cat >>conftest.$ac_ext <<_ACEOF | |
24862 | /* end confdefs.h. */ | |
24863 | /* Thanks to Paul Eggert for this test. */ | |
24864 | $ac_includes_default | |
24865 | #include <sys/wait.h> | |
24866 | #ifdef HAVE_VFORK_H | |
24867 | # include <vfork.h> | |
24868 | #endif | |
24869 | /* On some sparc systems, changes by the child to local and incoming | |
24870 | argument registers are propagated back to the parent. The compiler | |
24871 | is told about this with #include <vfork.h>, but some compilers | |
24872 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
24873 | static variable whose address is put into a register that is | |
24874 | clobbered by the vfork. */ | |
24875 | static void | |
24876 | #ifdef __cplusplus | |
24877 | sparc_address_test (int arg) | |
24878 | # else | |
24879 | sparc_address_test (arg) int arg; | |
24880 | #endif | |
24881 | { | |
24882 | static pid_t child; | |
24883 | if (!child) { | |
24884 | child = vfork (); | |
24885 | if (child < 0) { | |
24886 | perror ("vfork"); | |
24887 | _exit(2); | |
24888 | } | |
24889 | if (!child) { | |
24890 | arg = getpid(); | |
24891 | write(-1, "", 0); | |
24892 | _exit (arg); | |
24893 | } | |
24894 | } | |
24895 | } | |
24896 | ||
24897 | int | |
24898 | main () | |
24899 | { | |
24900 | pid_t parent = getpid (); | |
24901 | pid_t child; | |
24902 | ||
24903 | sparc_address_test (0); | |
24904 | ||
24905 | child = vfork (); | |
24906 | ||
24907 | if (child == 0) { | |
24908 | /* Here is another test for sparc vfork register problems. This | |
24909 | test uses lots of local variables, at least as many local | |
24910 | variables as main has allocated so far including compiler | |
24911 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
24912 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
24913 | reuse the register of parent for one of the local variables, | |
24914 | since it will think that parent can't possibly be used any more | |
24915 | in this routine. Assigning to the local variable will thus | |
24916 | munge parent in the parent process. */ | |
24917 | pid_t | |
24918 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
24919 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
24920 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
24921 | use the same hardware register for all 8 local variables. */ | |
24922 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
24923 | || p != p5 || p != p6 || p != p7) | |
24924 | _exit(1); | |
24925 | ||
24926 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
24927 | from child file descriptors. If the child closes a descriptor | |
24928 | before it execs or exits, this munges the parent's descriptor | |
24929 | as well. Test for this by closing stdout in the child. */ | |
24930 | _exit(close(fileno(stdout)) != 0); | |
24931 | } else { | |
24932 | int status; | |
24933 | struct stat st; | |
24934 | ||
24935 | while (wait(&status) != child) | |
24936 | ; | |
24937 | return ( | |
24938 | /* Was there some problem with vforking? */ | |
24939 | child < 0 | |
24940 | ||
24941 | /* Did the child fail? (This shouldn't happen.) */ | |
24942 | || status | |
24943 | ||
24944 | /* Did the vfork/compiler bug occur? */ | |
24945 | || parent != getpid() | |
24946 | ||
24947 | /* Did the file descriptor bug occur? */ | |
24948 | || fstat(fileno(stdout), &st) != 0 | |
24949 | ); | |
24950 | } | |
24951 | } | |
24952 | _ACEOF | |
24953 | rm -f conftest$ac_exeext | |
24954 | if { (ac_try="$ac_link" | |
24955 | case "(($ac_try" in | |
24956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24957 | *) ac_try_echo=$ac_try;; | |
24958 | esac | |
030272f3 VY |
24959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24960 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24961 | (eval "$ac_link") 2>&5 |
24962 | ac_status=$? | |
030272f3 | 24963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24965 | { (case "(($ac_try" in | |
24966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24967 | *) ac_try_echo=$ac_try;; | |
24968 | esac | |
030272f3 VY |
24969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24970 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
24971 | (eval "$ac_try") 2>&5 |
24972 | ac_status=$? | |
030272f3 | 24973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
24974 | (exit $ac_status); }; }; then |
24975 | ac_cv_func_vfork_works=yes | |
24976 | else | |
030272f3 VY |
24977 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24978 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
24979 | sed 's/^/| /' conftest.$ac_ext >&5 |
24980 | ||
24981 | ( exit $ac_status ) | |
24982 | ac_cv_func_vfork_works=no | |
24983 | fi | |
030272f3 | 24984 | rm -rf conftest.dSYM |
db137867 AC |
24985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24986 | fi | |
24987 | ||
24988 | ||
24989 | fi | |
030272f3 VY |
24990 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
24991 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
db137867 AC |
24992 | |
24993 | fi; | |
24994 | if test "x$ac_cv_func_fork_works" = xcross; then | |
24995 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
030272f3 VY |
24996 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
24997 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
db137867 AC |
24998 | fi |
24999 | ||
25000 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
25001 | ||
25002 | cat >>confdefs.h <<\_ACEOF | |
25003 | #define HAVE_WORKING_VFORK 1 | |
25004 | _ACEOF | |
25005 | ||
25006 | else | |
25007 | ||
25008 | cat >>confdefs.h <<\_ACEOF | |
25009 | #define vfork fork | |
25010 | _ACEOF | |
25011 | ||
25012 | fi | |
25013 | if test "x$ac_cv_func_fork_works" = xyes; then | |
25014 | ||
25015 | cat >>confdefs.h <<\_ACEOF | |
25016 | #define HAVE_WORKING_FORK 1 | |
25017 | _ACEOF | |
25018 | ||
25019 | fi | |
25020 | ||
25021 | ||
25022 | ||
25023 | for ac_header in stdlib.h unistd.h | |
25024 | do | |
030272f3 | 25025 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
db137867 | 25026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 VY |
25027 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
25028 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 25029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 25030 | $as_echo_n "(cached) " >&6 |
db137867 | 25031 | fi |
030272f3 VY |
25032 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
25033 | $as_echo "$as_val"'` | |
25034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25035 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
25036 | else |
25037 | # Is the header compilable? | |
030272f3 VY |
25038 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
25039 | $as_echo_n "checking $ac_header usability... " >&6; } | |
db137867 AC |
25040 | cat >conftest.$ac_ext <<_ACEOF |
25041 | /* confdefs.h. */ | |
25042 | _ACEOF | |
25043 | cat confdefs.h >>conftest.$ac_ext | |
25044 | cat >>conftest.$ac_ext <<_ACEOF | |
25045 | /* end confdefs.h. */ | |
25046 | $ac_includes_default | |
25047 | #include <$ac_header> | |
25048 | _ACEOF | |
25049 | rm -f conftest.$ac_objext | |
25050 | if { (ac_try="$ac_compile" | |
25051 | case "(($ac_try" in | |
25052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25053 | *) ac_try_echo=$ac_try;; | |
25054 | esac | |
030272f3 VY |
25055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25056 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25057 | (eval "$ac_compile") 2>conftest.er1 |
25058 | ac_status=$? | |
25059 | grep -v '^ *+' conftest.er1 >conftest.err | |
25060 | rm -f conftest.er1 | |
25061 | cat conftest.err >&5 | |
030272f3 | 25062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25063 | (exit $ac_status); } && { |
25064 | test -z "$ac_c_werror_flag" || | |
25065 | test ! -s conftest.err | |
25066 | } && test -s conftest.$ac_objext; then | |
25067 | ac_header_compiler=yes | |
25068 | else | |
030272f3 | 25069 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
25070 | sed 's/^/| /' conftest.$ac_ext >&5 |
25071 | ||
25072 | ac_header_compiler=no | |
25073 | fi | |
25074 | ||
25075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
030272f3 VY |
25076 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25077 | $as_echo "$ac_header_compiler" >&6; } | |
db137867 AC |
25078 | |
25079 | # Is the header present? | |
030272f3 VY |
25080 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
25081 | $as_echo_n "checking $ac_header presence... " >&6; } | |
db137867 AC |
25082 | cat >conftest.$ac_ext <<_ACEOF |
25083 | /* confdefs.h. */ | |
25084 | _ACEOF | |
25085 | cat confdefs.h >>conftest.$ac_ext | |
25086 | cat >>conftest.$ac_ext <<_ACEOF | |
25087 | /* end confdefs.h. */ | |
25088 | #include <$ac_header> | |
25089 | _ACEOF | |
25090 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
25091 | case "(($ac_try" in | |
25092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25093 | *) ac_try_echo=$ac_try;; | |
25094 | esac | |
030272f3 VY |
25095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25096 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
25098 | ac_status=$? | |
25099 | grep -v '^ *+' conftest.er1 >conftest.err | |
25100 | rm -f conftest.er1 | |
25101 | cat conftest.err >&5 | |
030272f3 | 25102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25103 | (exit $ac_status); } >/dev/null && { |
25104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
25105 | test ! -s conftest.err | |
25106 | }; then | |
25107 | ac_header_preproc=yes | |
25108 | else | |
030272f3 | 25109 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
25110 | sed 's/^/| /' conftest.$ac_ext >&5 |
25111 | ||
25112 | ac_header_preproc=no | |
25113 | fi | |
25114 | ||
25115 | rm -f conftest.err conftest.$ac_ext | |
030272f3 VY |
25116 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
25117 | $as_echo "$ac_header_preproc" >&6; } | |
db137867 AC |
25118 | |
25119 | # So? What about this header? | |
25120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25121 | yes:no: ) | |
030272f3 VY |
25122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25123 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25125 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
db137867 AC |
25126 | ac_header_preproc=yes |
25127 | ;; | |
25128 | no:yes:* ) | |
030272f3 VY |
25129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25130 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25132 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25134 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25136 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25138 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25140 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
db137867 AC |
25141 | |
25142 | ;; | |
25143 | esac | |
030272f3 VY |
25144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
25145 | $as_echo_n "checking for $ac_header... " >&6; } | |
db137867 | 25146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 25147 | $as_echo_n "(cached) " >&6 |
db137867 AC |
25148 | else |
25149 | eval "$as_ac_Header=\$ac_header_preproc" | |
25150 | fi | |
030272f3 VY |
25151 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
25152 | $as_echo "$as_val"'` | |
25153 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25154 | $as_echo "$ac_res" >&6; } | |
db137867 AC |
25155 | |
25156 | fi | |
030272f3 VY |
25157 | as_val=`eval 'as_val=${'$as_ac_Header'} |
25158 | $as_echo "$as_val"'` | |
25159 | if test "x$as_val" = x""yes; then | |
db137867 | 25160 | cat >>confdefs.h <<_ACEOF |
030272f3 | 25161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
db137867 AC |
25162 | _ACEOF |
25163 | ||
25164 | fi | |
25165 | ||
25166 | done | |
25167 | ||
25168 | ||
25169 | for ac_func in getpagesize | |
25170 | do | |
030272f3 VY |
25171 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25172 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25173 | $as_echo_n "checking for $ac_func... " >&6; } | |
db137867 | 25174 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
030272f3 | 25175 | $as_echo_n "(cached) " >&6 |
db137867 AC |
25176 | else |
25177 | cat >conftest.$ac_ext <<_ACEOF | |
25178 | /* confdefs.h. */ | |
25179 | _ACEOF | |
25180 | cat confdefs.h >>conftest.$ac_ext | |
25181 | cat >>conftest.$ac_ext <<_ACEOF | |
25182 | /* end confdefs.h. */ | |
25183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25185 | #define $ac_func innocuous_$ac_func | |
25186 | ||
25187 | /* System header to define __stub macros and hopefully few prototypes, | |
25188 | which can conflict with char $ac_func (); below. | |
25189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25190 | <limits.h> exists even on freestanding compilers. */ | |
25191 | ||
25192 | #ifdef __STDC__ | |
25193 | # include <limits.h> | |
25194 | #else | |
25195 | # include <assert.h> | |
25196 | #endif | |
25197 | ||
25198 | #undef $ac_func | |
25199 | ||
25200 | /* Override any GCC internal prototype to avoid an error. | |
25201 | Use char because int might match the return type of a GCC | |
25202 | builtin and then its argument prototype would still apply. */ | |
25203 | #ifdef __cplusplus | |
25204 | extern "C" | |
25205 | #endif | |
25206 | char $ac_func (); | |
25207 | /* The GNU C library defines this for functions which it implements | |
25208 | to always fail with ENOSYS. Some functions are actually named | |
25209 | something starting with __ and the normal name is an alias. */ | |
25210 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
25211 | choke me | |
25212 | #endif | |
25213 | ||
25214 | int | |
25215 | main () | |
25216 | { | |
25217 | return $ac_func (); | |
25218 | ; | |
25219 | return 0; | |
25220 | } | |
25221 | _ACEOF | |
25222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25223 | if { (ac_try="$ac_link" | |
25224 | case "(($ac_try" in | |
25225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25226 | *) ac_try_echo=$ac_try;; | |
25227 | esac | |
030272f3 VY |
25228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25229 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25230 | (eval "$ac_link") 2>conftest.er1 |
25231 | ac_status=$? | |
25232 | grep -v '^ *+' conftest.er1 >conftest.err | |
25233 | rm -f conftest.er1 | |
25234 | cat conftest.err >&5 | |
030272f3 | 25235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25236 | (exit $ac_status); } && { |
25237 | test -z "$ac_c_werror_flag" || | |
25238 | test ! -s conftest.err | |
030272f3 VY |
25239 | } && test -s conftest$ac_exeext && { |
25240 | test "$cross_compiling" = yes || | |
25241 | $as_test_x conftest$ac_exeext | |
25242 | }; then | |
db137867 AC |
25243 | eval "$as_ac_var=yes" |
25244 | else | |
030272f3 | 25245 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
25246 | sed 's/^/| /' conftest.$ac_ext >&5 |
25247 | ||
25248 | eval "$as_ac_var=no" | |
25249 | fi | |
25250 | ||
030272f3 | 25251 | rm -rf conftest.dSYM |
db137867 AC |
25252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
25253 | conftest$ac_exeext conftest.$ac_ext | |
25254 | fi | |
030272f3 VY |
25255 | ac_res=`eval 'as_val=${'$as_ac_var'} |
25256 | $as_echo "$as_val"'` | |
25257 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25258 | $as_echo "$ac_res" >&6; } | |
25259 | as_val=`eval 'as_val=${'$as_ac_var'} | |
25260 | $as_echo "$as_val"'` | |
25261 | if test "x$as_val" = x""yes; then | |
db137867 | 25262 | cat >>confdefs.h <<_ACEOF |
030272f3 | 25263 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
db137867 AC |
25264 | _ACEOF |
25265 | ||
25266 | fi | |
25267 | done | |
25268 | ||
030272f3 VY |
25269 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
25270 | $as_echo_n "checking for working mmap... " >&6; } | |
db137867 | 25271 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
030272f3 | 25272 | $as_echo_n "(cached) " >&6 |
db137867 AC |
25273 | else |
25274 | if test "$cross_compiling" = yes; then | |
25275 | ac_cv_func_mmap_fixed_mapped=no | |
25276 | else | |
25277 | cat >conftest.$ac_ext <<_ACEOF | |
25278 | /* confdefs.h. */ | |
25279 | _ACEOF | |
25280 | cat confdefs.h >>conftest.$ac_ext | |
25281 | cat >>conftest.$ac_ext <<_ACEOF | |
25282 | /* end confdefs.h. */ | |
25283 | $ac_includes_default | |
25284 | /* malloc might have been renamed as rpl_malloc. */ | |
25285 | #undef malloc | |
25286 | ||
25287 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
25288 | Here is a matrix of mmap possibilities: | |
25289 | mmap private not fixed | |
25290 | mmap private fixed at somewhere currently unmapped | |
25291 | mmap private fixed at somewhere already mapped | |
25292 | mmap shared not fixed | |
25293 | mmap shared fixed at somewhere currently unmapped | |
25294 | mmap shared fixed at somewhere already mapped | |
25295 | For private mappings, we should verify that changes cannot be read() | |
25296 | back from the file, nor mmap's back from the file at a different | |
25297 | address. (There have been systems where private was not correctly | |
25298 | implemented like the infamous i386 svr4.0, and systems where the | |
25299 | VM page cache was not coherent with the file system buffer cache | |
25300 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
25301 | For shared mappings, we should conversely verify that changes get | |
25302 | propagated back to all the places they're supposed to be. | |
25303 | ||
25304 | Grep wants private fixed already mapped. | |
25305 | The main things grep needs to know about mmap are: | |
25306 | * does it exist and is it safe to write into the mmap'd area | |
25307 | * how to use it (BSD variants) */ | |
25308 | ||
25309 | #include <fcntl.h> | |
25310 | #include <sys/mman.h> | |
25311 | ||
25312 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
25313 | char *malloc (); | |
25314 | #endif | |
25315 | ||
25316 | /* This mess was copied from the GNU getpagesize.h. */ | |
25317 | #ifndef HAVE_GETPAGESIZE | |
25318 | /* Assume that all systems that can run configure have sys/param.h. */ | |
25319 | # ifndef HAVE_SYS_PARAM_H | |
25320 | # define HAVE_SYS_PARAM_H 1 | |
25321 | # endif | |
25322 | ||
25323 | # ifdef _SC_PAGESIZE | |
25324 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
25325 | # else /* no _SC_PAGESIZE */ | |
25326 | # ifdef HAVE_SYS_PARAM_H | |
25327 | # include <sys/param.h> | |
25328 | # ifdef EXEC_PAGESIZE | |
25329 | # define getpagesize() EXEC_PAGESIZE | |
25330 | # else /* no EXEC_PAGESIZE */ | |
25331 | # ifdef NBPG | |
25332 | # define getpagesize() NBPG * CLSIZE | |
25333 | # ifndef CLSIZE | |
25334 | # define CLSIZE 1 | |
25335 | # endif /* no CLSIZE */ | |
25336 | # else /* no NBPG */ | |
25337 | # ifdef NBPC | |
25338 | # define getpagesize() NBPC | |
25339 | # else /* no NBPC */ | |
25340 | # ifdef PAGESIZE | |
25341 | # define getpagesize() PAGESIZE | |
25342 | # endif /* PAGESIZE */ | |
25343 | # endif /* no NBPC */ | |
25344 | # endif /* no NBPG */ | |
25345 | # endif /* no EXEC_PAGESIZE */ | |
25346 | # else /* no HAVE_SYS_PARAM_H */ | |
25347 | # define getpagesize() 8192 /* punt totally */ | |
25348 | # endif /* no HAVE_SYS_PARAM_H */ | |
25349 | # endif /* no _SC_PAGESIZE */ | |
25350 | ||
25351 | #endif /* no HAVE_GETPAGESIZE */ | |
25352 | ||
25353 | int | |
25354 | main () | |
25355 | { | |
25356 | char *data, *data2, *data3; | |
25357 | int i, pagesize; | |
25358 | int fd; | |
25359 | ||
25360 | pagesize = getpagesize (); | |
25361 | ||
25362 | /* First, make a file with some known garbage in it. */ | |
25363 | data = (char *) malloc (pagesize); | |
25364 | if (!data) | |
25365 | return 1; | |
25366 | for (i = 0; i < pagesize; ++i) | |
25367 | *(data + i) = rand (); | |
25368 | umask (0); | |
25369 | fd = creat ("conftest.mmap", 0600); | |
25370 | if (fd < 0) | |
25371 | return 1; | |
25372 | if (write (fd, data, pagesize) != pagesize) | |
25373 | return 1; | |
25374 | close (fd); | |
25375 | ||
25376 | /* Next, try to mmap the file at a fixed address which already has | |
25377 | something else allocated at it. If we can, also make sure that | |
25378 | we see the same garbage. */ | |
25379 | fd = open ("conftest.mmap", O_RDWR); | |
25380 | if (fd < 0) | |
25381 | return 1; | |
25382 | data2 = (char *) malloc (2 * pagesize); | |
25383 | if (!data2) | |
25384 | return 1; | |
25385 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
25386 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
25387 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
25388 | return 1; | |
25389 | for (i = 0; i < pagesize; ++i) | |
25390 | if (*(data + i) != *(data2 + i)) | |
25391 | return 1; | |
25392 | ||
25393 | /* Finally, make sure that changes to the mapped area do not | |
25394 | percolate back to the file as seen by read(). (This is a bug on | |
25395 | some variants of i386 svr4.0.) */ | |
25396 | for (i = 0; i < pagesize; ++i) | |
25397 | *(data2 + i) = *(data2 + i) + 1; | |
25398 | data3 = (char *) malloc (pagesize); | |
25399 | if (!data3) | |
25400 | return 1; | |
25401 | if (read (fd, data3, pagesize) != pagesize) | |
25402 | return 1; | |
25403 | for (i = 0; i < pagesize; ++i) | |
25404 | if (*(data + i) != *(data3 + i)) | |
25405 | return 1; | |
25406 | close (fd); | |
25407 | return 0; | |
25408 | } | |
25409 | _ACEOF | |
25410 | rm -f conftest$ac_exeext | |
25411 | if { (ac_try="$ac_link" | |
25412 | case "(($ac_try" in | |
25413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25414 | *) ac_try_echo=$ac_try;; | |
25415 | esac | |
030272f3 VY |
25416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25417 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25418 | (eval "$ac_link") 2>&5 |
25419 | ac_status=$? | |
030272f3 | 25420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25422 | { (case "(($ac_try" in | |
25423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25424 | *) ac_try_echo=$ac_try;; | |
25425 | esac | |
030272f3 VY |
25426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25427 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25428 | (eval "$ac_try") 2>&5 |
25429 | ac_status=$? | |
030272f3 | 25430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25431 | (exit $ac_status); }; }; then |
25432 | ac_cv_func_mmap_fixed_mapped=yes | |
25433 | else | |
030272f3 VY |
25434 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25435 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
25436 | sed 's/^/| /' conftest.$ac_ext >&5 |
25437 | ||
25438 | ( exit $ac_status ) | |
25439 | ac_cv_func_mmap_fixed_mapped=no | |
25440 | fi | |
030272f3 | 25441 | rm -rf conftest.dSYM |
db137867 AC |
25442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25443 | fi | |
25444 | ||
25445 | ||
25446 | fi | |
030272f3 VY |
25447 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
25448 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
db137867 AC |
25449 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
25450 | ||
25451 | cat >>confdefs.h <<\_ACEOF | |
25452 | #define HAVE_MMAP 1 | |
25453 | _ACEOF | |
25454 | ||
25455 | fi | |
25456 | rm -f conftest.mmap | |
25457 | ||
25458 | ||
030272f3 VY |
25459 | { $as_echo "$as_me:$LINENO: checking for /dev/poll" >&5 |
25460 | $as_echo_n "checking for /dev/poll... " >&6; } | |
db137867 | 25461 | if test -c "/dev/poll"; then |
030272f3 VY |
25462 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
25463 | $as_echo "yes" >&6; } | |
db137867 AC |
25464 | |
25465 | cat >>confdefs.h <<\_ACEOF | |
25466 | #define HAVE_DEVPOLL 1 | |
25467 | _ACEOF | |
25468 | ||
25469 | else | |
030272f3 VY |
25470 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
25471 | $as_echo "no" >&6; } | |
db137867 AC |
25472 | fi |
25473 | ||
25474 | ||
25475 | if test "$is_mingw" = "yes"; then | |
25476 | ||
25477 | cat >>confdefs.h <<\_ACEOF | |
25478 | #define HAVE_WIN32 1 | |
25479 | _ACEOF | |
25480 | ||
25481 | fi | |
25482 | ||
25483 | ||
030272f3 VY |
25484 | { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
25485 | $as_echo_n "checking for OpenSSL... " >&6; } | |
db137867 AC |
25486 | # Check whether --enable-openssl was given. |
25487 | if test "${enable_openssl+set}" = set; then | |
25488 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
25489 | else | |
25490 | cf_enable_openssl="auto" | |
25491 | fi | |
25492 | ||
25493 | ||
25494 | if test "$cf_enable_openssl" != "no" ; then | |
25495 | cf_openssl_basedir="" | |
25496 | if test "$cf_enable_openssl" != "auto" && | |
25497 | test "$cf_enable_openssl" != "yes" ; then | |
25498 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
25499 | else | |
25500 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
25501 | /usr/local/openssl ; do | |
25502 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
25503 | cf_openssl_basedir="${dirs}" | |
25504 | break | |
25505 | fi | |
25506 | done | |
25507 | unset dirs | |
25508 | fi | |
25509 | if test ! -z "$cf_openssl_basedir"; then | |
25510 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
c2ac22cc | 25511 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" |
db137867 AC |
25512 | SSL_LIBS="-L${cf_openssl_basedir}/lib" |
25513 | else | |
25514 | cf_openssl_basedir="" | |
25515 | fi | |
25516 | else | |
25517 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
25518 | cf_openssl_basedir="/usr" | |
25519 | fi | |
25520 | fi | |
25521 | ||
25522 | if test ! -z "$cf_openssl_basedir"; then | |
030272f3 VY |
25523 | { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
25524 | $as_echo "$cf_openssl_basedir" >&6; } | |
db137867 AC |
25525 | cf_enable_openssl="yes" |
25526 | else | |
030272f3 VY |
25527 | { $as_echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
25528 | $as_echo "not found. Specify a correct path?" >&6; } | |
db137867 AC |
25529 | cf_enable_openssl="no" |
25530 | fi | |
25531 | unset cf_openssl_basedir | |
25532 | else | |
030272f3 VY |
25533 | { $as_echo "$as_me:$LINENO: result: disabled" >&5 |
25534 | $as_echo "disabled" >&6; } | |
db137867 AC |
25535 | fi |
25536 | ||
25537 | save_CPPFLAGS="$CPPFLAGS" | |
c2ac22cc | 25538 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" |
db137867 AC |
25539 | save_LIBS="$LIBS" |
25540 | LIBS="$LIBS $SSL_LIBS" | |
25541 | if test "$cf_enable_openssl" != no; then | |
030272f3 VY |
25542 | { $as_echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5 |
25543 | $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } | |
db137867 AC |
25544 | if test "$cross_compiling" = yes; then |
25545 | cf_enable_openssl=no | |
25546 | else | |
25547 | cat >conftest.$ac_ext <<_ACEOF | |
25548 | /* confdefs.h. */ | |
25549 | _ACEOF | |
25550 | cat confdefs.h >>conftest.$ac_ext | |
25551 | cat >>conftest.$ac_ext <<_ACEOF | |
25552 | /* end confdefs.h. */ | |
25553 | #include <openssl/opensslv.h> | |
25554 | #include <stdlib.h> | |
25555 | int | |
25556 | main () | |
25557 | { | |
25558 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) | |
25559 | exit(0); else exit(1); | |
25560 | ; | |
25561 | return 0; | |
25562 | } | |
25563 | _ACEOF | |
25564 | rm -f conftest$ac_exeext | |
25565 | if { (ac_try="$ac_link" | |
25566 | case "(($ac_try" in | |
25567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25568 | *) ac_try_echo=$ac_try;; | |
25569 | esac | |
030272f3 VY |
25570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25571 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25572 | (eval "$ac_link") 2>&5 |
25573 | ac_status=$? | |
030272f3 | 25574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25576 | { (case "(($ac_try" in | |
25577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25578 | *) ac_try_echo=$ac_try;; | |
25579 | esac | |
030272f3 VY |
25580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25581 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25582 | (eval "$ac_try") 2>&5 |
25583 | ac_status=$? | |
030272f3 | 25584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25585 | (exit $ac_status); }; }; then |
25586 | cf_enable_openssl=yes | |
25587 | else | |
030272f3 VY |
25588 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25589 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
25590 | sed 's/^/| /' conftest.$ac_ext >&5 |
25591 | ||
25592 | ( exit $ac_status ) | |
25593 | cf_enable_openssl=no | |
25594 | fi | |
030272f3 | 25595 | rm -rf conftest.dSYM |
db137867 AC |
25596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25597 | fi | |
25598 | ||
25599 | ||
25600 | ||
25601 | if test "$cf_enable_openssl" != no; then | |
030272f3 VY |
25602 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
25603 | $as_echo "found" >&6; } | |
db137867 | 25604 | else |
030272f3 VY |
25605 | { $as_echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
25606 | $as_echo "no - OpenSSL support disabled" >&6; } | |
db137867 AC |
25607 | fi |
25608 | ||
25609 | fi | |
25610 | ||
25611 | ||
25612 | if test "$cf_enable_openssl" != no; then | |
25613 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
030272f3 VY |
25614 | { $as_echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5 |
25615 | $as_echo_n "checking for RAND_status in -lcrypto... " >&6; } | |
db137867 | 25616 | if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then |
030272f3 | 25617 | $as_echo_n "(cached) " >&6 |
db137867 AC |
25618 | else |
25619 | ac_check_lib_save_LIBS=$LIBS | |
25620 | LIBS="-lcrypto $LIBS" | |
25621 | cat >conftest.$ac_ext <<_ACEOF | |
25622 | /* confdefs.h. */ | |
25623 | _ACEOF | |
25624 | cat confdefs.h >>conftest.$ac_ext | |
25625 | cat >>conftest.$ac_ext <<_ACEOF | |
25626 | /* end confdefs.h. */ | |
25627 | ||
25628 | /* Override any GCC internal prototype to avoid an error. | |
25629 | Use char because int might match the return type of a GCC | |
25630 | builtin and then its argument prototype would still apply. */ | |
25631 | #ifdef __cplusplus | |
25632 | extern "C" | |
25633 | #endif | |
25634 | char RAND_status (); | |
25635 | int | |
25636 | main () | |
25637 | { | |
25638 | return RAND_status (); | |
25639 | ; | |
25640 | return 0; | |
25641 | } | |
25642 | _ACEOF | |
25643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25644 | if { (ac_try="$ac_link" | |
25645 | case "(($ac_try" in | |
25646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25647 | *) ac_try_echo=$ac_try;; | |
25648 | esac | |
030272f3 VY |
25649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25650 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25651 | (eval "$ac_link") 2>conftest.er1 |
25652 | ac_status=$? | |
25653 | grep -v '^ *+' conftest.er1 >conftest.err | |
25654 | rm -f conftest.er1 | |
25655 | cat conftest.err >&5 | |
030272f3 | 25656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25657 | (exit $ac_status); } && { |
25658 | test -z "$ac_c_werror_flag" || | |
25659 | test ! -s conftest.err | |
030272f3 VY |
25660 | } && test -s conftest$ac_exeext && { |
25661 | test "$cross_compiling" = yes || | |
25662 | $as_test_x conftest$ac_exeext | |
25663 | }; then | |
db137867 AC |
25664 | ac_cv_lib_crypto_RAND_status=yes |
25665 | else | |
030272f3 | 25666 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
25667 | sed 's/^/| /' conftest.$ac_ext >&5 |
25668 | ||
25669 | ac_cv_lib_crypto_RAND_status=no | |
25670 | fi | |
25671 | ||
030272f3 | 25672 | rm -rf conftest.dSYM |
db137867 AC |
25673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
25674 | conftest$ac_exeext conftest.$ac_ext | |
25675 | LIBS=$ac_check_lib_save_LIBS | |
25676 | fi | |
030272f3 VY |
25677 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5 |
25678 | $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; } | |
25679 | if test "x$ac_cv_lib_crypto_RAND_status" = x""yes; then | |
db137867 AC |
25680 | cf_enable_openssl=yes |
25681 | else | |
25682 | cf_enable_openssl=no | |
25683 | fi | |
25684 | ||
25685 | fi | |
25686 | ||
db137867 AC |
25687 | if test "$cf_enable_openssl" != no; then |
25688 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
030272f3 VY |
25689 | { $as_echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5 |
25690 | $as_echo_n "checking for SSL_read in -lssl... " >&6; } | |
db137867 | 25691 | if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then |
030272f3 | 25692 | $as_echo_n "(cached) " >&6 |
db137867 AC |
25693 | else |
25694 | ac_check_lib_save_LIBS=$LIBS | |
25695 | LIBS="-lssl -lcrypto $LIBS" | |
25696 | cat >conftest.$ac_ext <<_ACEOF | |
25697 | /* confdefs.h. */ | |
25698 | _ACEOF | |
25699 | cat confdefs.h >>conftest.$ac_ext | |
25700 | cat >>conftest.$ac_ext <<_ACEOF | |
25701 | /* end confdefs.h. */ | |
25702 | ||
25703 | /* Override any GCC internal prototype to avoid an error. | |
25704 | Use char because int might match the return type of a GCC | |
25705 | builtin and then its argument prototype would still apply. */ | |
25706 | #ifdef __cplusplus | |
25707 | extern "C" | |
25708 | #endif | |
25709 | char SSL_read (); | |
25710 | int | |
25711 | main () | |
25712 | { | |
25713 | return SSL_read (); | |
25714 | ; | |
25715 | return 0; | |
25716 | } | |
25717 | _ACEOF | |
25718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25719 | if { (ac_try="$ac_link" | |
25720 | case "(($ac_try" in | |
25721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25722 | *) ac_try_echo=$ac_try;; | |
25723 | esac | |
030272f3 VY |
25724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25725 | $as_echo "$ac_try_echo") >&5 | |
db137867 AC |
25726 | (eval "$ac_link") 2>conftest.er1 |
25727 | ac_status=$? | |
25728 | grep -v '^ *+' conftest.er1 >conftest.err | |
25729 | rm -f conftest.er1 | |
25730 | cat conftest.err >&5 | |
030272f3 | 25731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
db137867 AC |
25732 | (exit $ac_status); } && { |
25733 | test -z "$ac_c_werror_flag" || | |
25734 | test ! -s conftest.err | |
030272f3 VY |
25735 | } && test -s conftest$ac_exeext && { |
25736 | test "$cross_compiling" = yes || | |
25737 | $as_test_x conftest$ac_exeext | |
25738 | }; then | |
db137867 AC |
25739 | ac_cv_lib_ssl_SSL_read=yes |
25740 | else | |
030272f3 | 25741 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
25742 | sed 's/^/| /' conftest.$ac_ext >&5 |
25743 | ||
25744 | ac_cv_lib_ssl_SSL_read=no | |
25745 | fi | |
25746 | ||
030272f3 | 25747 | rm -rf conftest.dSYM |
db137867 AC |
25748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
25749 | conftest$ac_exeext conftest.$ac_ext | |
25750 | LIBS=$ac_check_lib_save_LIBS | |
25751 | fi | |
030272f3 VY |
25752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5 |
25753 | $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; } | |
25754 | if test "x$ac_cv_lib_ssl_SSL_read" = x""yes; then | |
3202e249 | 25755 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
db137867 AC |
25756 | else |
25757 | cf_enable_openssl=no | |
25758 | fi | |
25759 | ||
25760 | fi | |
25761 | ||
c2ac22cc VY |
25762 | |
25763 | ||
030272f3 VY |
25764 | { $as_echo "$as_me:$LINENO: checking for GnuTLS" >&5 |
25765 | $as_echo_n "checking for GnuTLS... " >&6; } | |
c2ac22cc VY |
25766 | # Check whether --enable-gnutls was given. |
25767 | if test "${enable_gnutls+set}" = set; then | |
25768 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
25769 | else | |
25770 | cf_enable_gnutls="auto" | |
25771 | fi | |
25772 | ||
25773 | ||
25774 | if test "$cf_enable_gnutls" != no; then | |
25775 | ||
25776 | ||
25777 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
25778 | if test -n "$ac_tool_prefix"; then | |
25779 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
25780 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
030272f3 VY |
25781 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25782 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2ac22cc | 25783 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
030272f3 | 25784 | $as_echo_n "(cached) " >&6 |
c2ac22cc VY |
25785 | else |
25786 | case $PKG_CONFIG in | |
25787 | [\\/]* | ?:[\\/]*) | |
25788 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25789 | ;; | |
25790 | *) | |
25791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25792 | for as_dir in $PATH | |
25793 | do | |
25794 | IFS=$as_save_IFS | |
25795 | test -z "$as_dir" && as_dir=. | |
25796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25798 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
030272f3 | 25799 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c2ac22cc VY |
25800 | break 2 |
25801 | fi | |
25802 | done | |
25803 | done | |
25804 | IFS=$as_save_IFS | |
25805 | ||
25806 | ;; | |
25807 | esac | |
25808 | fi | |
25809 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25810 | if test -n "$PKG_CONFIG"; then | |
030272f3 VY |
25811 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
25812 | $as_echo "$PKG_CONFIG" >&6; } | |
c2ac22cc | 25813 | else |
030272f3 VY |
25814 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
25815 | $as_echo "no" >&6; } | |
c2ac22cc VY |
25816 | fi |
25817 | ||
25818 | ||
25819 | fi | |
25820 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
25821 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
25822 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25823 | set dummy pkg-config; ac_word=$2 | |
030272f3 VY |
25824 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25825 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2ac22cc | 25826 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
030272f3 | 25827 | $as_echo_n "(cached) " >&6 |
c2ac22cc VY |
25828 | else |
25829 | case $ac_pt_PKG_CONFIG in | |
25830 | [\\/]* | ?:[\\/]*) | |
25831 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
25832 | ;; | |
25833 | *) | |
25834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25835 | for as_dir in $PATH | |
25836 | do | |
25837 | IFS=$as_save_IFS | |
25838 | test -z "$as_dir" && as_dir=. | |
25839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
25841 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
030272f3 | 25842 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c2ac22cc VY |
25843 | break 2 |
25844 | fi | |
25845 | done | |
25846 | done | |
25847 | IFS=$as_save_IFS | |
25848 | ||
25849 | ;; | |
25850 | esac | |
25851 | fi | |
25852 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
25853 | if test -n "$ac_pt_PKG_CONFIG"; then | |
030272f3 VY |
25854 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
25855 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
c2ac22cc | 25856 | else |
030272f3 VY |
25857 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
25858 | $as_echo "no" >&6; } | |
c2ac22cc VY |
25859 | fi |
25860 | ||
25861 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
25862 | PKG_CONFIG="" | |
25863 | else | |
25864 | case $cross_compiling:$ac_tool_warned in | |
25865 | yes:) | |
030272f3 VY |
25866 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
25867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
c2ac22cc VY |
25868 | ac_tool_warned=yes ;; |
25869 | esac | |
25870 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
25871 | fi | |
25872 | else | |
25873 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
25874 | fi | |
25875 | ||
25876 | fi | |
25877 | if test -n "$PKG_CONFIG"; then | |
25878 | _pkg_min_version=0.9.0 | |
030272f3 VY |
25879 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
25880 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
c2ac22cc | 25881 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
030272f3 VY |
25882 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
25883 | $as_echo "yes" >&6; } | |
c2ac22cc | 25884 | else |
030272f3 VY |
25885 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
25886 | $as_echo "no" >&6; } | |
c2ac22cc VY |
25887 | PKG_CONFIG="" |
25888 | fi | |
25889 | ||
25890 | fi | |
25891 | ||
25892 | pkg_failed=no | |
030272f3 VY |
25893 | { $as_echo "$as_me:$LINENO: checking for GNUTLS" >&5 |
25894 | $as_echo_n "checking for GNUTLS... " >&6; } | |
c2ac22cc VY |
25895 | |
25896 | if test -n "$PKG_CONFIG"; then | |
25897 | if test -n "$GNUTLS_CFLAGS"; then | |
25898 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
25899 | else | |
25900 | if test -n "$PKG_CONFIG" && \ | |
030272f3 | 25901 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5 |
c2ac22cc VY |
25902 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 |
25903 | ac_status=$? | |
030272f3 | 25904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c2ac22cc VY |
25905 | (exit $ac_status); }; then |
25906 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
25907 | else | |
25908 | pkg_failed=yes | |
25909 | fi | |
25910 | fi | |
25911 | else | |
25912 | pkg_failed=untried | |
25913 | fi | |
25914 | if test -n "$PKG_CONFIG"; then | |
25915 | if test -n "$GNUTLS_LIBS"; then | |
25916 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
25917 | else | |
25918 | if test -n "$PKG_CONFIG" && \ | |
030272f3 | 25919 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5 |
c2ac22cc VY |
25920 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 |
25921 | ac_status=$? | |
030272f3 | 25922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c2ac22cc VY |
25923 | (exit $ac_status); }; then |
25924 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
25925 | else | |
25926 | pkg_failed=yes | |
25927 | fi | |
25928 | fi | |
25929 | else | |
25930 | pkg_failed=untried | |
25931 | fi | |
25932 | ||
25933 | ||
25934 | ||
25935 | if test $pkg_failed = yes; then | |
25936 | ||
25937 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25938 | _pkg_short_errors_supported=yes | |
25939 | else | |
25940 | _pkg_short_errors_supported=no | |
25941 | fi | |
25942 | if test $_pkg_short_errors_supported = yes; then | |
25943 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"` | |
25944 | else | |
25945 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"` | |
25946 | fi | |
25947 | # Put the nasty error message in config.log where it belongs | |
25948 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
25949 | ||
030272f3 VY |
25950 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
25951 | $as_echo "no" >&6; } | |
c2ac22cc VY |
25952 | cf_enable_gnutls="no" |
25953 | elif test $pkg_failed = untried; then | |
25954 | cf_enable_gnutls="no" | |
25955 | else | |
25956 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
25957 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
030272f3 VY |
25958 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
25959 | $as_echo "yes" >&6; } | |
c2ac22cc VY |
25960 | |
25961 | cf_enable_gnutls="yes" | |
25962 | ||
25963 | fi | |
25964 | fi | |
25965 | ||
25966 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then | |
25967 | cf_enable_gnutls="no" | |
25968 | fi | |
25969 | ||
25970 | if test x"$cf_enable_openssl" != xno; then | |
db137867 AC |
25971 | |
25972 | cat >>confdefs.h <<\_ACEOF | |
25973 | #define HAVE_OPENSSL 1 | |
25974 | _ACEOF | |
25975 | ||
c2ac22cc VY |
25976 | GNUTLS_CFLAGS="" |
25977 | GNUTLS_LIBS="" | |
25978 | SSL_TYPE="openssl" | |
25979 | elif test x"$cf_enable_gnutls" != xno; then | |
25980 | ||
25981 | cat >>confdefs.h <<\_ACEOF | |
25982 | #define HAVE_GNUTLS 1 | |
25983 | _ACEOF | |
25984 | ||
25985 | SSL_LIBS="" | |
25986 | SSL_CFLAGS="" | |
25987 | SSL_TYPE="gnutls" | |
db137867 AC |
25988 | fi |
25989 | ||
25990 | ||
c2ac22cc VY |
25991 | |
25992 | ||
db137867 AC |
25993 | CPPFLAGS="$save_CPPFLAGS" |
25994 | LIBS="$save_LIBS" | |
25995 | ||
25996 | ||
25997 | ||
25998 | ||
25999 | ||
26000 | ||
26001 | # Check whether --enable-assert was given. | |
26002 | if test "${enable_assert+set}" = set; then | |
26003 | enableval=$enable_assert; assert=$enableval | |
26004 | else | |
26005 | assert=no | |
26006 | fi | |
26007 | ||
26008 | ||
26009 | if test "$assert" = no; then | |
26010 | ||
26011 | cat >>confdefs.h <<\_ACEOF | |
26012 | #define NDEBUG 1 | |
26013 | _ACEOF | |
26014 | ||
26015 | elif test "$assert" = soft; then | |
26016 | ||
26017 | cat >>confdefs.h <<\_ACEOF | |
26018 | #define SOFT_ASSERT 1 | |
26019 | _ACEOF | |
26020 | ||
26021 | ||
26022 | cat >>confdefs.h <<\_ACEOF | |
26023 | #define NDEBUG 1 | |
26024 | _ACEOF | |
26025 | ||
26026 | elif test "$assert" = yes; then | |
26027 | assert = "hard"; | |
26028 | fi | |
26029 | ||
030272f3 VY |
26030 | { $as_echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
26031 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
db137867 AC |
26032 | # Check whether --enable-profile was given. |
26033 | if test "${enable_profile+set}" = set; then | |
26034 | enableval=$enable_profile; profile=$enableval | |
26035 | else | |
26036 | profile=no | |
26037 | fi | |
26038 | ||
26039 | ||
26040 | if test "$profile" = yes; then | |
26041 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
26042 | CFLAGS="$CFLAGS -pg -static" | |
030272f3 VY |
26043 | { $as_echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5 |
26044 | $as_echo "yes, adding -pg -static" >&6; } | |
db137867 AC |
26045 | |
26046 | cat >>confdefs.h <<\_ACEOF | |
26047 | #define RATBOX_PROFILE 1 | |
26048 | _ACEOF | |
26049 | ||
26050 | else | |
030272f3 VY |
26051 | { $as_echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
26052 | $as_echo "no, profile builds only work with gcc" >&6; } | |
db137867 AC |
26053 | fi |
26054 | else | |
030272f3 VY |
26055 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
26056 | $as_echo "no" >&6; } | |
db137867 AC |
26057 | fi |
26058 | ||
26059 | # Check whether --enable-balloc was given. | |
26060 | if test "${enable_balloc+set}" = set; then | |
26061 | enableval=$enable_balloc; balloc=$enableval | |
26062 | else | |
26063 | balloc=yes | |
26064 | fi | |
26065 | ||
26066 | ||
26067 | if test "$balloc" = no; then | |
26068 | ||
26069 | cat >>confdefs.h <<\_ACEOF | |
26070 | #define NOBALLOC 1 | |
26071 | _ACEOF | |
26072 | ||
26073 | fi | |
26074 | ||
26075 | # Check whether --enable-warnings was given. | |
26076 | if test "${enable_warnings+set}" = set; then | |
26077 | enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable" | |
26078 | fi | |
26079 | ||
26080 | ||
26081 | ||
26082 | ||
26083 | ||
26084 | ||
26085 | ||
26086 | ||
26087 | ||
26088 | ||
c2ac22cc | 26089 | |
db137867 AC |
26090 | if test "$prefix" = "NONE"; then |
26091 | ||
26092 | cat >>confdefs.h <<_ACEOF | |
26093 | #define RB_PREFIX "$ac_default_prefix" | |
26094 | _ACEOF | |
26095 | ||
26096 | ||
26097 | else | |
26098 | ||
26099 | ||
26100 | prefix=`echo $prefix | sed 's/\/$//'` | |
26101 | ||
26102 | cat >>confdefs.h <<_ACEOF | |
26103 | #define RB_PREFIX "$prefix" | |
26104 | _ACEOF | |
26105 | ||
26106 | ||
26107 | fi | |
26108 | ||
26109 | ||
26110 | ||
db137867 AC |
26111 | ac_config_commands="$ac_config_commands include/librb-config.h" |
26112 | ||
26113 | ||
c2ac22cc | 26114 | |
b69b8b08 | 26115 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
db137867 AC |
26116 | |
26117 | ||
26118 | cat >confcache <<\_ACEOF | |
26119 | # This file is a shell script that caches the results of configure | |
26120 | # tests run on this system so they can be shared between configure | |
26121 | # scripts and configure runs, see configure's option --config-cache. | |
26122 | # It is not useful on other systems. If it contains results you don't | |
26123 | # want to keep, you may remove or edit it. | |
26124 | # | |
26125 | # config.status only pays attention to the cache file if you give it | |
26126 | # the --recheck option to rerun configure. | |
26127 | # | |
26128 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26129 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26130 | # following values. | |
26131 | ||
26132 | _ACEOF | |
26133 | ||
26134 | # The following way of writing the cache mishandles newlines in values, | |
26135 | # but we know of no workaround that is simple, portable, and efficient. | |
26136 | # So, we kill variables containing newlines. | |
26137 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
26138 | # and sets the high bit in the cache file unless we assign to the vars. | |
26139 | ( | |
26140 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26141 | eval ac_val=\$$ac_var | |
26142 | case $ac_val in #( | |
26143 | *${as_nl}*) | |
26144 | case $ac_var in #( | |
030272f3 VY |
26145 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
26146 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
db137867 AC |
26147 | esac |
26148 | case $ac_var in #( | |
26149 | _ | IFS | as_nl) ;; #( | |
030272f3 | 26150 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
db137867 AC |
26151 | *) $as_unset $ac_var ;; |
26152 | esac ;; | |
26153 | esac | |
26154 | done | |
26155 | ||
26156 | (set) 2>&1 | | |
26157 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
26158 | *${as_nl}ac_space=\ *) | |
26159 | # `set' does not quote correctly, so add quotes (double-quote | |
26160 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
26161 | sed -n \ | |
26162 | "s/'/'\\\\''/g; | |
26163 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26164 | ;; #( | |
26165 | *) | |
26166 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26167 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
26168 | ;; | |
26169 | esac | | |
26170 | sort | |
26171 | ) | | |
26172 | sed ' | |
26173 | /^ac_cv_env_/b end | |
26174 | t clear | |
26175 | :clear | |
26176 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
26177 | t end | |
26178 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
26179 | :end' >>confcache | |
26180 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26181 | if test -w "$cache_file"; then | |
26182 | test "x$cache_file" != "x/dev/null" && | |
030272f3 VY |
26183 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
26184 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
db137867 AC |
26185 | cat confcache >$cache_file |
26186 | else | |
030272f3 VY |
26187 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
26188 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
db137867 AC |
26189 | fi |
26190 | fi | |
26191 | rm -f confcache | |
26192 | ||
26193 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26194 | # Let make expand exec_prefix. | |
26195 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26196 | ||
26197 | DEFS=-DHAVE_CONFIG_H | |
26198 | ||
26199 | ac_libobjs= | |
26200 | ac_ltlibobjs= | |
26201 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
26202 | # 1. Remove the extension, and $U if already installed. | |
26203 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
030272f3 | 26204 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
db137867 AC |
26205 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
26206 | # will be set to the directory where LIBOBJS objects are built. | |
26207 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26208 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
26209 | done | |
26210 | LIBOBJS=$ac_libobjs | |
26211 | ||
26212 | LTLIBOBJS=$ac_ltlibobjs | |
26213 | ||
26214 | ||
26215 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
030272f3 | 26216 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
db137867 | 26217 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26218 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
db137867 AC |
26219 | Usually this means the macro was only invoked conditionally." >&2;} |
26220 | { (exit 1); exit 1; }; } | |
26221 | fi | |
26222 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
030272f3 | 26223 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
db137867 | 26224 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26225 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
db137867 AC |
26226 | Usually this means the macro was only invoked conditionally." >&2;} |
26227 | { (exit 1); exit 1; }; } | |
26228 | fi | |
26229 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
030272f3 | 26230 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
db137867 | 26231 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26232 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
db137867 AC |
26233 | Usually this means the macro was only invoked conditionally." >&2;} |
26234 | { (exit 1); exit 1; }; } | |
26235 | fi | |
26236 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
030272f3 | 26237 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
db137867 | 26238 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26239 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
db137867 AC |
26240 | Usually this means the macro was only invoked conditionally." >&2;} |
26241 | { (exit 1); exit 1; }; } | |
26242 | fi | |
26243 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then | |
030272f3 | 26244 | { { $as_echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined. |
db137867 | 26245 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26246 | $as_echo "$as_me: error: conditional \"MINGW\" was never defined. |
db137867 AC |
26247 | Usually this means the macro was only invoked conditionally." >&2;} |
26248 | { (exit 1); exit 1; }; } | |
26249 | fi | |
26250 | if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then | |
030272f3 | 26251 | { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined. |
db137867 | 26252 | Usually this means the macro was only invoked conditionally." >&5 |
030272f3 | 26253 | $as_echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined. |
db137867 AC |
26254 | Usually this means the macro was only invoked conditionally." >&2;} |
26255 | { (exit 1); exit 1; }; } | |
26256 | fi | |
26257 | ||
26258 | : ${CONFIG_STATUS=./config.status} | |
030272f3 | 26259 | ac_write_fail=0 |
db137867 AC |
26260 | ac_clean_files_save=$ac_clean_files |
26261 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
030272f3 VY |
26262 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
26263 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
26264 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db137867 AC |
26265 | #! $SHELL |
26266 | # Generated by $as_me. | |
26267 | # Run this file to recreate the current configuration. | |
26268 | # Compiler output produced by configure, useful for debugging | |
26269 | # configure, is in config.log if it exists. | |
26270 | ||
26271 | debug=false | |
26272 | ac_cs_recheck=false | |
26273 | ac_cs_silent=false | |
26274 | SHELL=\${CONFIG_SHELL-$SHELL} | |
26275 | _ACEOF | |
26276 | ||
030272f3 | 26277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
26278 | ## --------------------- ## |
26279 | ## M4sh Initialization. ## | |
26280 | ## --------------------- ## | |
26281 | ||
26282 | # Be more Bourne compatible | |
26283 | DUALCASE=1; export DUALCASE # for MKS sh | |
26284 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
26285 | emulate sh | |
26286 | NULLCMD=: | |
030272f3 | 26287 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
26288 | # is contrary to our usage. Disable this feature. |
26289 | alias -g '${1+"$@"}'='"$@"' | |
26290 | setopt NO_GLOB_SUBST | |
26291 | else | |
26292 | case `(set -o) 2>/dev/null` in | |
26293 | *posix*) set -o posix ;; | |
26294 | esac | |
26295 | ||
26296 | fi | |
26297 | ||
26298 | ||
26299 | ||
26300 | ||
26301 | # PATH needs CR | |
26302 | # Avoid depending upon Character Ranges. | |
26303 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26304 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26305 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
26306 | as_cr_digits='0123456789' | |
26307 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26308 | ||
030272f3 VY |
26309 | as_nl=' |
26310 | ' | |
26311 | export as_nl | |
26312 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
26313 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
26314 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
26315 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
26316 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26317 | as_echo='printf %s\n' | |
26318 | as_echo_n='printf %s' | |
26319 | else | |
26320 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
26321 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
26322 | as_echo_n='/usr/ucb/echo -n' | |
db137867 | 26323 | else |
030272f3 VY |
26324 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
26325 | as_echo_n_body='eval | |
26326 | arg=$1; | |
26327 | case $arg in | |
26328 | *"$as_nl"*) | |
26329 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
26330 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
26331 | esac; | |
26332 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
26333 | ' | |
26334 | export as_echo_n_body | |
26335 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
db137867 | 26336 | fi |
030272f3 VY |
26337 | export as_echo_body |
26338 | as_echo='sh -c $as_echo_body as_echo' | |
26339 | fi | |
26340 | ||
26341 | # The user is always right. | |
26342 | if test "${PATH_SEPARATOR+set}" != set; then | |
26343 | PATH_SEPARATOR=: | |
26344 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
26345 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
26346 | PATH_SEPARATOR=';' | |
26347 | } | |
db137867 AC |
26348 | fi |
26349 | ||
26350 | # Support unset when possible. | |
26351 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26352 | as_unset=unset | |
26353 | else | |
26354 | as_unset=false | |
26355 | fi | |
26356 | ||
26357 | ||
26358 | # IFS | |
26359 | # We need space, tab and new line, in precisely that order. Quoting is | |
26360 | # there to prevent editors from complaining about space-tab. | |
26361 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
26362 | # splitting by setting IFS to empty value.) | |
db137867 AC |
26363 | IFS=" "" $as_nl" |
26364 | ||
26365 | # Find who we are. Look in the path if we contain no directory separator. | |
26366 | case $0 in | |
26367 | *[\\/]* ) as_myself=$0 ;; | |
26368 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26369 | for as_dir in $PATH | |
26370 | do | |
26371 | IFS=$as_save_IFS | |
26372 | test -z "$as_dir" && as_dir=. | |
26373 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
26374 | done | |
26375 | IFS=$as_save_IFS | |
26376 | ||
26377 | ;; | |
26378 | esac | |
26379 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
26380 | # in which case we are not to be found in the path. | |
26381 | if test "x$as_myself" = x; then | |
26382 | as_myself=$0 | |
26383 | fi | |
26384 | if test ! -f "$as_myself"; then | |
030272f3 | 26385 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
db137867 AC |
26386 | { (exit 1); exit 1; } |
26387 | fi | |
26388 | ||
26389 | # Work around bugs in pre-3.0 UWIN ksh. | |
26390 | for as_var in ENV MAIL MAILPATH | |
26391 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
26392 | done | |
26393 | PS1='$ ' | |
26394 | PS2='> ' | |
26395 | PS4='+ ' | |
26396 | ||
26397 | # NLS nuisances. | |
030272f3 VY |
26398 | LC_ALL=C |
26399 | export LC_ALL | |
26400 | LANGUAGE=C | |
26401 | export LANGUAGE | |
db137867 AC |
26402 | |
26403 | # Required to use basename. | |
26404 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
26405 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
26406 | as_expr=expr | |
26407 | else | |
26408 | as_expr=false | |
26409 | fi | |
26410 | ||
26411 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
26412 | as_basename=basename | |
26413 | else | |
26414 | as_basename=false | |
26415 | fi | |
26416 | ||
26417 | ||
26418 | # Name of the executable. | |
26419 | as_me=`$as_basename -- "$0" || | |
26420 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
26421 | X"$0" : 'X\(//\)$' \| \ | |
26422 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 26423 | $as_echo X/"$0" | |
db137867 AC |
26424 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
26425 | s//\1/ | |
26426 | q | |
26427 | } | |
26428 | /^X\/\(\/\/\)$/{ | |
26429 | s//\1/ | |
26430 | q | |
26431 | } | |
26432 | /^X\/\(\/\).*/{ | |
26433 | s//\1/ | |
26434 | q | |
26435 | } | |
26436 | s/.*/./; q'` | |
26437 | ||
26438 | # CDPATH. | |
26439 | $as_unset CDPATH | |
26440 | ||
26441 | ||
26442 | ||
26443 | as_lineno_1=$LINENO | |
26444 | as_lineno_2=$LINENO | |
26445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
26446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
26447 | ||
26448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
26449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
26450 | # line-number line after each line using $LINENO; the second 'sed' | |
26451 | # does the real work. The second script uses 'N' to pair each | |
26452 | # line-number line with the line containing $LINENO, and appends | |
26453 | # trailing '-' during substitution so that $LINENO is not a special | |
26454 | # case at line end. | |
26455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
26456 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
26457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
26458 | sed -n ' | |
26459 | p | |
26460 | /[$]LINENO/= | |
26461 | ' <$as_myself | | |
26462 | sed ' | |
26463 | s/[$]LINENO.*/&-/ | |
26464 | t lineno | |
26465 | b | |
26466 | :lineno | |
26467 | N | |
26468 | :loop | |
26469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
26470 | t loop | |
26471 | s/-\n.*// | |
26472 | ' >$as_me.lineno && | |
26473 | chmod +x "$as_me.lineno" || | |
030272f3 | 26474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
db137867 AC |
26475 | { (exit 1); exit 1; }; } |
26476 | ||
26477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
26478 | # (the dirname of $[0] is not the place where we might find the | |
26479 | # original and so on. Autoconf is especially sensitive to this). | |
26480 | . "./$as_me.lineno" | |
26481 | # Exit status is that of the last command. | |
26482 | exit | |
26483 | } | |
26484 | ||
26485 | ||
26486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
26487 | as_dirname=dirname | |
26488 | else | |
26489 | as_dirname=false | |
26490 | fi | |
26491 | ||
26492 | ECHO_C= ECHO_N= ECHO_T= | |
26493 | case `echo -n x` in | |
26494 | -n*) | |
26495 | case `echo 'x\c'` in | |
26496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
26497 | *) ECHO_C='\c';; | |
26498 | esac;; | |
26499 | *) | |
26500 | ECHO_N='-n';; | |
26501 | esac | |
db137867 AC |
26502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
26503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
26504 | as_expr=expr | |
26505 | else | |
26506 | as_expr=false | |
26507 | fi | |
26508 | ||
26509 | rm -f conf$$ conf$$.exe conf$$.file | |
26510 | if test -d conf$$.dir; then | |
26511 | rm -f conf$$.dir/conf$$.file | |
26512 | else | |
26513 | rm -f conf$$.dir | |
030272f3 VY |
26514 | mkdir conf$$.dir 2>/dev/null |
26515 | fi | |
26516 | if (echo >conf$$.file) 2>/dev/null; then | |
26517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
26518 | as_ln_s='ln -s' | |
26519 | # ... but there are two gotchas: | |
26520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
26521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
26522 | # In both cases, we have to default to `cp -p'. | |
26523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
26524 | as_ln_s='cp -p' | |
26525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
26526 | as_ln_s=ln | |
26527 | else | |
db137867 | 26528 | as_ln_s='cp -p' |
030272f3 | 26529 | fi |
db137867 AC |
26530 | else |
26531 | as_ln_s='cp -p' | |
26532 | fi | |
26533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
26534 | rmdir conf$$.dir 2>/dev/null | |
26535 | ||
26536 | if mkdir -p . 2>/dev/null; then | |
26537 | as_mkdir_p=: | |
26538 | else | |
26539 | test -d ./-p && rmdir ./-p | |
26540 | as_mkdir_p=false | |
26541 | fi | |
26542 | ||
26543 | if test -x / >/dev/null 2>&1; then | |
26544 | as_test_x='test -x' | |
26545 | else | |
26546 | if ls -dL / >/dev/null 2>&1; then | |
26547 | as_ls_L_option=L | |
26548 | else | |
26549 | as_ls_L_option= | |
26550 | fi | |
26551 | as_test_x=' | |
26552 | eval sh -c '\'' | |
26553 | if test -d "$1"; then | |
030272f3 | 26554 | test -d "$1/."; |
db137867 AC |
26555 | else |
26556 | case $1 in | |
030272f3 | 26557 | -*)set "./$1";; |
db137867 AC |
26558 | esac; |
26559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
26560 | ???[sx]*):;;*)false;;esac;fi | |
26561 | '\'' sh | |
26562 | ' | |
26563 | fi | |
26564 | as_executable_p=$as_test_x | |
26565 | ||
26566 | # Sed expression to map a string onto a valid CPP name. | |
26567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26568 | ||
26569 | # Sed expression to map a string onto a valid variable name. | |
26570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26571 | ||
26572 | ||
26573 | exec 6>&1 | |
26574 | ||
26575 | # Save the log message, to keep $[0] and so on meaningful, and to | |
26576 | # report actual input values of CONFIG_FILES etc. instead of their | |
26577 | # values after options handling. | |
26578 | ac_log=" | |
26579 | This file was extended by libratbox $as_me devel, which was | |
030272f3 | 26580 | generated by GNU Autoconf 2.63. Invocation command line was |
db137867 AC |
26581 | |
26582 | CONFIG_FILES = $CONFIG_FILES | |
26583 | CONFIG_HEADERS = $CONFIG_HEADERS | |
26584 | CONFIG_LINKS = $CONFIG_LINKS | |
26585 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
26586 | $ $0 $@ | |
26587 | ||
26588 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
26589 | " | |
26590 | ||
26591 | _ACEOF | |
26592 | ||
030272f3 VY |
26593 | case $ac_config_files in *" |
26594 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
26595 | esac | |
26596 | ||
26597 | case $ac_config_headers in *" | |
26598 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
26599 | esac | |
26600 | ||
26601 | ||
26602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db137867 AC |
26603 | # Files that config.status was made for. |
26604 | config_files="$ac_config_files" | |
26605 | config_headers="$ac_config_headers" | |
26606 | config_commands="$ac_config_commands" | |
26607 | ||
26608 | _ACEOF | |
26609 | ||
030272f3 | 26610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
26611 | ac_cs_usage="\ |
26612 | \`$as_me' instantiates files from templates according to the | |
26613 | current configuration. | |
26614 | ||
030272f3 | 26615 | Usage: $0 [OPTION]... [FILE]... |
db137867 AC |
26616 | |
26617 | -h, --help print this help, then exit | |
26618 | -V, --version print version number and configuration settings, then exit | |
030272f3 VY |
26619 | -q, --quiet, --silent |
26620 | do not print progress messages | |
db137867 AC |
26621 | -d, --debug don't remove temporary files |
26622 | --recheck update $as_me by reconfiguring in the same conditions | |
030272f3 VY |
26623 | --file=FILE[:TEMPLATE] |
26624 | instantiate the configuration file FILE | |
26625 | --header=FILE[:TEMPLATE] | |
26626 | instantiate the configuration header FILE | |
db137867 AC |
26627 | |
26628 | Configuration files: | |
26629 | $config_files | |
26630 | ||
26631 | Configuration headers: | |
26632 | $config_headers | |
26633 | ||
26634 | Configuration commands: | |
26635 | $config_commands | |
26636 | ||
26637 | Report bugs to <bug-autoconf@gnu.org>." | |
26638 | ||
26639 | _ACEOF | |
030272f3 | 26640 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
db137867 AC |
26641 | ac_cs_version="\\ |
26642 | libratbox config.status devel | |
030272f3 VY |
26643 | configured by $0, generated by GNU Autoconf 2.63, |
26644 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
db137867 | 26645 | |
030272f3 | 26646 | Copyright (C) 2008 Free Software Foundation, Inc. |
db137867 AC |
26647 | This config.status script is free software; the Free Software Foundation |
26648 | gives unlimited permission to copy, distribute and modify it." | |
26649 | ||
26650 | ac_pwd='$ac_pwd' | |
26651 | srcdir='$srcdir' | |
26652 | INSTALL='$INSTALL' | |
26653 | MKDIR_P='$MKDIR_P' | |
030272f3 VY |
26654 | AWK='$AWK' |
26655 | test -n "\$AWK" || AWK=awk | |
db137867 AC |
26656 | _ACEOF |
26657 | ||
030272f3 VY |
26658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26659 | # The default lists apply if the user does not specify any file. | |
db137867 AC |
26660 | ac_need_defaults=: |
26661 | while test $# != 0 | |
26662 | do | |
26663 | case $1 in | |
26664 | --*=*) | |
26665 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
26666 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
26667 | ac_shift=: | |
26668 | ;; | |
26669 | *) | |
26670 | ac_option=$1 | |
26671 | ac_optarg=$2 | |
26672 | ac_shift=shift | |
26673 | ;; | |
26674 | esac | |
26675 | ||
26676 | case $ac_option in | |
26677 | # Handling of the options. | |
26678 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
26679 | ac_cs_recheck=: ;; | |
26680 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
030272f3 | 26681 | $as_echo "$ac_cs_version"; exit ;; |
db137867 AC |
26682 | --debug | --debu | --deb | --de | --d | -d ) |
26683 | debug=: ;; | |
26684 | --file | --fil | --fi | --f ) | |
26685 | $ac_shift | |
030272f3 VY |
26686 | case $ac_optarg in |
26687 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26688 | esac | |
26689 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
db137867 AC |
26690 | ac_need_defaults=false;; |
26691 | --header | --heade | --head | --hea ) | |
26692 | $ac_shift | |
030272f3 VY |
26693 | case $ac_optarg in |
26694 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26695 | esac | |
26696 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
db137867 AC |
26697 | ac_need_defaults=false;; |
26698 | --he | --h) | |
26699 | # Conflict between --help and --header | |
030272f3 | 26700 | { $as_echo "$as_me: error: ambiguous option: $1 |
db137867 AC |
26701 | Try \`$0 --help' for more information." >&2 |
26702 | { (exit 1); exit 1; }; };; | |
26703 | --help | --hel | -h ) | |
030272f3 | 26704 | $as_echo "$ac_cs_usage"; exit ;; |
db137867 AC |
26705 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26706 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
26707 | ac_cs_silent=: ;; | |
26708 | ||
26709 | # This is an error. | |
030272f3 | 26710 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
db137867 AC |
26711 | Try \`$0 --help' for more information." >&2 |
26712 | { (exit 1); exit 1; }; } ;; | |
26713 | ||
26714 | *) ac_config_targets="$ac_config_targets $1" | |
26715 | ac_need_defaults=false ;; | |
26716 | ||
26717 | esac | |
26718 | shift | |
26719 | done | |
26720 | ||
26721 | ac_configure_extra_args= | |
26722 | ||
26723 | if $ac_cs_silent; then | |
26724 | exec 6>/dev/null | |
26725 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
26726 | fi | |
26727 | ||
26728 | _ACEOF | |
030272f3 | 26729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
db137867 | 26730 | if \$ac_cs_recheck; then |
030272f3 VY |
26731 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
26732 | shift | |
26733 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
26734 | CONFIG_SHELL='$SHELL' | |
db137867 | 26735 | export CONFIG_SHELL |
030272f3 | 26736 | exec "\$@" |
db137867 AC |
26737 | fi |
26738 | ||
26739 | _ACEOF | |
030272f3 | 26740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
26741 | exec 5>>config.log |
26742 | { | |
26743 | echo | |
26744 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
26745 | ## Running $as_me. ## | |
26746 | _ASBOX | |
030272f3 | 26747 | $as_echo "$ac_log" |
db137867 AC |
26748 | } >&5 |
26749 | ||
26750 | _ACEOF | |
030272f3 | 26751 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
db137867 AC |
26752 | # |
26753 | # INIT-COMMANDS | |
26754 | # | |
26755 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
26756 | ||
db137867 AC |
26757 | if test x$ac_cv_header_stdc = xyes; then |
26758 | rb_header_stdc=yes | |
26759 | fi | |
26760 | if test x$ac_cv_header_stdlib_h = xyes; then | |
26761 | rb_header_stdlib_h=yes | |
26762 | fi | |
26763 | if test x$ac_cv_header_string_h = xyes; then | |
26764 | rb_header_string_h=yes | |
26765 | fi | |
26766 | if test x$ac_cv_header_memory_h = xyes; then | |
26767 | rb_header_memory_h=yes | |
26768 | fi | |
26769 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
26770 | rb_alloca_h="$ac_cv_working_alloca_h" | |
26771 | else | |
26772 | rb_alloc_h="$ac_cv_header_alloca_h" | |
26773 | fi | |
26774 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
26775 | rb_sockaddr_sa_len=yes | |
26776 | fi | |
26777 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
26778 | rb_sys_socket_h=yes | |
26779 | fi | |
26780 | if test x$ac_cv_header_sys_types_h = xyes; then | |
26781 | rb_sys_types_h=yes | |
26782 | fi | |
26783 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
26784 | rb_sys_stat_h=yes | |
26785 | fi | |
26786 | if test x$ac_cv_header_sys_time_h = xyes; then | |
26787 | rb_sys_time_h=yes | |
26788 | fi | |
26789 | if test x$ac_cv_header_time = xyes; then | |
26790 | rb_time_h=yes | |
26791 | fi | |
26792 | ||
26793 | if test x$ac_cv_header_stdint_h = xyes; then | |
26794 | rb_stdint_h=yes | |
26795 | fi | |
26796 | if test x$ac_cv_header_inttypes_h = xyes; then | |
26797 | rb_inttypes_h=yes | |
26798 | fi | |
26799 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
26800 | rb_netinet_in_h=yes | |
26801 | fi | |
26802 | ||
26803 | if test x$ac_cv_header_crypt_h = xyes; then | |
26804 | rb_crypt_h=yes | |
26805 | fi | |
26806 | if test x$ac_cv_header_errno_h = xyes; then | |
26807 | rb_errno_h=yes | |
26808 | fi | |
26809 | if test x$ac_cv_header_unistd_h = xyes; then | |
26810 | rb_unistd_h=yes | |
26811 | fi | |
26812 | if test x$ac_cv_header_windows_h = xyes; then | |
26813 | rb_windows_h=yes | |
26814 | fi | |
26815 | if test x$ac_cv_header_winsock2_h = xyes; then | |
26816 | rb_winsock2_h=yes | |
26817 | fi | |
a9fb3ed0 VY |
26818 | |
26819 | rb_socklen_t=$rb_socklen_t | |
26820 | ||
db137867 AC |
26821 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
26822 | rb_sockaddr_storage="yes" | |
26823 | else | |
26824 | rb_sockaddr_storage="no" | |
26825 | fi | |
26826 | ||
26827 | rb_have_ipv6="$have_v6" | |
26828 | ||
26829 | rb_mv="$MV" | |
26830 | rb_rm="$RM" | |
26831 | ||
26832 | ||
26833 | ||
26834 | ||
26835 | ||
26836 | ||
26837 | _ACEOF | |
26838 | ||
030272f3 | 26839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
26840 | |
26841 | # Handling of arguments. | |
26842 | for ac_config_target in $ac_config_targets | |
26843 | do | |
26844 | case $ac_config_target in | |
26845 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
26846 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
26847 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
26848 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
26849 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
b69b8b08 | 26850 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; |
db137867 | 26851 | |
030272f3 VY |
26852 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
26853 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
db137867 AC |
26854 | { (exit 1); exit 1; }; };; |
26855 | esac | |
26856 | done | |
26857 | ||
26858 | ||
26859 | # If the user did not use the arguments to specify the items to instantiate, | |
26860 | # then the envvar interface is used. Set only those that are not. | |
26861 | # We use the long form for the default assignment because of an extremely | |
26862 | # bizarre bug on SunOS 4.1.3. | |
26863 | if $ac_need_defaults; then | |
26864 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
26865 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
26866 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
26867 | fi | |
26868 | ||
26869 | # Have a temporary directory for convenience. Make it in the build tree | |
26870 | # simply because there is no reason against having it here, and in addition, | |
26871 | # creating and moving files from /tmp can sometimes cause problems. | |
26872 | # Hook for its removal unless debugging. | |
26873 | # Note that there is a small window in which the directory will not be cleaned: | |
26874 | # after its creation but before its name has been assigned to `$tmp'. | |
26875 | $debug || | |
26876 | { | |
26877 | tmp= | |
26878 | trap 'exit_status=$? | |
26879 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
26880 | ' 0 | |
26881 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
26882 | } | |
26883 | # Create a (secure) tmp directory for tmp files. | |
26884 | ||
26885 | { | |
26886 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
26887 | test -n "$tmp" && test -d "$tmp" | |
26888 | } || | |
26889 | { | |
26890 | tmp=./conf$$-$RANDOM | |
26891 | (umask 077 && mkdir "$tmp") | |
26892 | } || | |
26893 | { | |
030272f3 | 26894 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
db137867 AC |
26895 | { (exit 1); exit 1; } |
26896 | } | |
26897 | ||
030272f3 VY |
26898 | # Set up the scripts for CONFIG_FILES section. |
26899 | # No need to generate them if there are no CONFIG_FILES. | |
26900 | # This happens for instance with `./config.status config.h'. | |
db137867 AC |
26901 | if test -n "$CONFIG_FILES"; then |
26902 | ||
db137867 | 26903 | |
030272f3 VY |
26904 | ac_cr='\r' |
26905 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
26906 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
26907 | ac_cs_awk_cr='\\r' | |
26908 | else | |
26909 | ac_cs_awk_cr=$ac_cr | |
db137867 AC |
26910 | fi |
26911 | ||
030272f3 | 26912 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
db137867 AC |
26913 | _ACEOF |
26914 | ||
26915 | ||
030272f3 VY |
26916 | { |
26917 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
26918 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
26919 | echo "_ACEOF" | |
26920 | } >conf$$subs.sh || | |
26921 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
26922 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26923 | { (exit 1); exit 1; }; } | |
26924 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
db137867 AC |
26925 | ac_delim='%!_!# ' |
26926 | for ac_last_try in false false false false false :; do | |
030272f3 VY |
26927 | . ./conf$$subs.sh || |
26928 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
26929 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26930 | { (exit 1); exit 1; }; } | |
26931 | ||
26932 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
26933 | if test $ac_delim_n = $ac_delim_num; then | |
db137867 AC |
26934 | break |
26935 | elif $ac_last_try; then | |
030272f3 VY |
26936 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26937 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
db137867 AC |
26938 | { (exit 1); exit 1; }; } |
26939 | else | |
26940 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26941 | fi | |
26942 | done | |
030272f3 VY |
26943 | rm -f conf$$subs.sh |
26944 | ||
26945 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26946 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
26947 | _ACEOF | |
26948 | sed -n ' | |
26949 | h | |
26950 | s/^/S["/; s/!.*/"]=/ | |
26951 | p | |
26952 | g | |
26953 | s/^[^!]*!// | |
26954 | :repl | |
26955 | t repl | |
26956 | s/'"$ac_delim"'$// | |
26957 | t delim | |
26958 | :nl | |
26959 | h | |
26960 | s/\(.\{148\}\).*/\1/ | |
26961 | t more1 | |
26962 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
26963 | p | |
26964 | n | |
26965 | b repl | |
26966 | :more1 | |
26967 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26968 | p | |
26969 | g | |
26970 | s/.\{148\}// | |
26971 | t nl | |
26972 | :delim | |
26973 | h | |
26974 | s/\(.\{148\}\).*/\1/ | |
26975 | t more2 | |
26976 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
26977 | p | |
26978 | b | |
26979 | :more2 | |
26980 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26981 | p | |
26982 | g | |
26983 | s/.\{148\}// | |
26984 | t delim | |
26985 | ' <conf$$subs.awk | sed ' | |
26986 | /^[^""]/{ | |
26987 | N | |
26988 | s/\n// | |
26989 | } | |
26990 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
26991 | rm -f conf$$subs.awk | |
26992 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26993 | _ACAWK | |
26994 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
26995 | for (key in S) S_is_set[key] = 1 | |
26996 | FS = "\a" | |
db137867 | 26997 | |
030272f3 VY |
26998 | } |
26999 | { | |
27000 | line = $ 0 | |
27001 | nfields = split(line, field, "@") | |
27002 | substed = 0 | |
27003 | len = length(field[1]) | |
27004 | for (i = 2; i < nfields; i++) { | |
27005 | key = field[i] | |
27006 | keylen = length(key) | |
27007 | if (S_is_set[key]) { | |
27008 | value = S[key] | |
27009 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
27010 | len += length(value) + length(field[++i]) | |
27011 | substed = 1 | |
27012 | } else | |
27013 | len += 1 + keylen | |
27014 | } | |
27015 | ||
27016 | print line | |
27017 | } | |
db137867 | 27018 | |
030272f3 | 27019 | _ACAWK |
db137867 | 27020 | _ACEOF |
030272f3 VY |
27021 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27022 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
27023 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
27024 | else | |
27025 | cat | |
27026 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
27027 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
27028 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
27029 | { (exit 1); exit 1; }; } | |
db137867 AC |
27030 | _ACEOF |
27031 | ||
db137867 AC |
27032 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
27033 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
27034 | # trailing colons and then remove the whole line if VPATH becomes empty | |
27035 | # (actually we leave an empty line to preserve line numbers). | |
27036 | if test "x$srcdir" = x.; then | |
27037 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
27038 | s/:*\$(srcdir):*/:/ | |
27039 | s/:*\${srcdir}:*/:/ | |
27040 | s/:*@srcdir@:*/:/ | |
27041 | s/^\([^=]*=[ ]*\):*/\1/ | |
27042 | s/:*$// | |
27043 | s/^[^=]*=[ ]*$// | |
27044 | }' | |
27045 | fi | |
27046 | ||
030272f3 | 27047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
27048 | fi # test -n "$CONFIG_FILES" |
27049 | ||
030272f3 VY |
27050 | # Set up the scripts for CONFIG_HEADERS section. |
27051 | # No need to generate them if there are no CONFIG_HEADERS. | |
27052 | # This happens for instance with `./config.status Makefile'. | |
27053 | if test -n "$CONFIG_HEADERS"; then | |
27054 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
27055 | BEGIN { | |
27056 | _ACEOF | |
27057 | ||
27058 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
27059 | # here-document in config.status, that substitutes the proper values into | |
27060 | # config.h.in to produce config.h. | |
27061 | ||
27062 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
27063 | # handling of long lines. | |
27064 | ac_delim='%!_!# ' | |
27065 | for ac_last_try in false false :; do | |
27066 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
27067 | if test -z "$ac_t"; then | |
27068 | break | |
27069 | elif $ac_last_try; then | |
27070 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
27071 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
27072 | { (exit 1); exit 1; }; } | |
27073 | else | |
27074 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
27075 | fi | |
27076 | done | |
27077 | ||
27078 | # For the awk script, D is an array of macro values keyed by name, | |
27079 | # likewise P contains macro parameters if any. Preserve backslash | |
27080 | # newline sequences. | |
27081 | ||
27082 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
27083 | sed -n ' | |
27084 | s/.\{148\}/&'"$ac_delim"'/g | |
27085 | t rset | |
27086 | :rset | |
27087 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
27088 | t def | |
27089 | d | |
27090 | :def | |
27091 | s/\\$// | |
27092 | t bsnl | |
27093 | s/["\\]/\\&/g | |
27094 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27095 | D["\1"]=" \3"/p | |
27096 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
27097 | d | |
27098 | :bsnl | |
27099 | s/["\\]/\\&/g | |
27100 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27101 | D["\1"]=" \3\\\\\\n"\\/p | |
27102 | t cont | |
27103 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
27104 | t cont | |
27105 | d | |
27106 | :cont | |
27107 | n | |
27108 | s/.\{148\}/&'"$ac_delim"'/g | |
27109 | t clear | |
27110 | :clear | |
27111 | s/\\$// | |
27112 | t bsnlc | |
27113 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
27114 | d | |
27115 | :bsnlc | |
27116 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
27117 | b cont | |
27118 | ' <confdefs.h | sed ' | |
27119 | s/'"$ac_delim"'/"\\\ | |
27120 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
27121 | ||
27122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27123 | for (key in D) D_is_set[key] = 1 | |
27124 | FS = "\a" | |
27125 | } | |
27126 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
27127 | line = \$ 0 | |
27128 | split(line, arg, " ") | |
27129 | if (arg[1] == "#") { | |
27130 | defundef = arg[2] | |
27131 | mac1 = arg[3] | |
27132 | } else { | |
27133 | defundef = substr(arg[1], 2) | |
27134 | mac1 = arg[2] | |
27135 | } | |
27136 | split(mac1, mac2, "(") #) | |
27137 | macro = mac2[1] | |
27138 | prefix = substr(line, 1, index(line, defundef) - 1) | |
27139 | if (D_is_set[macro]) { | |
27140 | # Preserve the white space surrounding the "#". | |
27141 | print prefix "define", macro P[macro] D[macro] | |
27142 | next | |
27143 | } else { | |
27144 | # Replace #undef with comments. This is necessary, for example, | |
27145 | # in the case of _POSIX_SOURCE, which is predefined and required | |
27146 | # on some systems where configure will not decide to define it. | |
27147 | if (defundef == "undef") { | |
27148 | print "/*", prefix defundef, macro, "*/" | |
27149 | next | |
27150 | } | |
27151 | } | |
27152 | } | |
27153 | { print } | |
27154 | _ACAWK | |
27155 | _ACEOF | |
27156 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27157 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
27158 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
27159 | { (exit 1); exit 1; }; } | |
27160 | fi # test -n "$CONFIG_HEADERS" | |
27161 | ||
db137867 | 27162 | |
030272f3 VY |
27163 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
27164 | shift | |
27165 | for ac_tag | |
db137867 AC |
27166 | do |
27167 | case $ac_tag in | |
27168 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
27169 | esac | |
27170 | case $ac_mode$ac_tag in | |
27171 | :[FHL]*:*);; | |
030272f3 VY |
27172 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
27173 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
db137867 AC |
27174 | { (exit 1); exit 1; }; };; |
27175 | :[FH]-) ac_tag=-:-;; | |
27176 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
27177 | esac | |
27178 | ac_save_IFS=$IFS | |
27179 | IFS=: | |
27180 | set x $ac_tag | |
27181 | IFS=$ac_save_IFS | |
27182 | shift | |
27183 | ac_file=$1 | |
27184 | shift | |
27185 | ||
27186 | case $ac_mode in | |
27187 | :L) ac_source=$1;; | |
27188 | :[FH]) | |
27189 | ac_file_inputs= | |
27190 | for ac_f | |
27191 | do | |
27192 | case $ac_f in | |
27193 | -) ac_f="$tmp/stdin";; | |
27194 | *) # Look for the file first in the build tree, then in the source tree | |
27195 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
27196 | # because $ac_f cannot contain `:'. | |
27197 | test -f "$ac_f" || | |
27198 | case $ac_f in | |
27199 | [\\/$]*) false;; | |
27200 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
27201 | esac || | |
030272f3 VY |
27202 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
27203 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
db137867 AC |
27204 | { (exit 1); exit 1; }; };; |
27205 | esac | |
030272f3 VY |
27206 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
27207 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
db137867 AC |
27208 | done |
27209 | ||
27210 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27211 | # use $as_me), people would be surprised to read: | |
27212 | # /* config.h. Generated by config.status. */ | |
030272f3 VY |
27213 | configure_input='Generated from '` |
27214 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
27215 | `' by configure.' | |
db137867 AC |
27216 | if test x"$ac_file" != x-; then |
27217 | configure_input="$ac_file. $configure_input" | |
030272f3 VY |
27218 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
27219 | $as_echo "$as_me: creating $ac_file" >&6;} | |
db137867 | 27220 | fi |
030272f3 VY |
27221 | # Neutralize special characters interpreted by sed in replacement strings. |
27222 | case $configure_input in #( | |
27223 | *\&* | *\|* | *\\* ) | |
27224 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
27225 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
27226 | *) ac_sed_conf_input=$configure_input;; | |
27227 | esac | |
db137867 AC |
27228 | |
27229 | case $ac_tag in | |
030272f3 VY |
27230 | *:-:* | *:-) cat >"$tmp/stdin" \ |
27231 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
27232 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27233 | { (exit 1); exit 1; }; } ;; | |
db137867 AC |
27234 | esac |
27235 | ;; | |
27236 | esac | |
27237 | ||
27238 | ac_dir=`$as_dirname -- "$ac_file" || | |
27239 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27240 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
27241 | X"$ac_file" : 'X\(//\)$' \| \ | |
27242 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27243 | $as_echo X"$ac_file" | |
db137867 AC |
27244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27245 | s//\1/ | |
27246 | q | |
27247 | } | |
27248 | /^X\(\/\/\)[^/].*/{ | |
27249 | s//\1/ | |
27250 | q | |
27251 | } | |
27252 | /^X\(\/\/\)$/{ | |
27253 | s//\1/ | |
27254 | q | |
27255 | } | |
27256 | /^X\(\/\).*/{ | |
27257 | s//\1/ | |
27258 | q | |
27259 | } | |
27260 | s/.*/./; q'` | |
27261 | { as_dir="$ac_dir" | |
27262 | case $as_dir in #( | |
27263 | -*) as_dir=./$as_dir;; | |
27264 | esac | |
27265 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
27266 | as_dirs= | |
27267 | while :; do | |
27268 | case $as_dir in #( | |
030272f3 | 27269 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
db137867 AC |
27270 | *) as_qdir=$as_dir;; |
27271 | esac | |
27272 | as_dirs="'$as_qdir' $as_dirs" | |
27273 | as_dir=`$as_dirname -- "$as_dir" || | |
27274 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27275 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27276 | X"$as_dir" : 'X\(//\)$' \| \ | |
27277 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27278 | $as_echo X"$as_dir" | |
db137867 AC |
27279 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27280 | s//\1/ | |
27281 | q | |
27282 | } | |
27283 | /^X\(\/\/\)[^/].*/{ | |
27284 | s//\1/ | |
27285 | q | |
27286 | } | |
27287 | /^X\(\/\/\)$/{ | |
27288 | s//\1/ | |
27289 | q | |
27290 | } | |
27291 | /^X\(\/\).*/{ | |
27292 | s//\1/ | |
27293 | q | |
27294 | } | |
27295 | s/.*/./; q'` | |
27296 | test -d "$as_dir" && break | |
27297 | done | |
27298 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
030272f3 VY |
27299 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
27300 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
db137867 AC |
27301 | { (exit 1); exit 1; }; }; } |
27302 | ac_builddir=. | |
27303 | ||
27304 | case "$ac_dir" in | |
27305 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27306 | *) | |
030272f3 | 27307 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
db137867 | 27308 | # A ".." for each directory in $ac_dir_suffix. |
030272f3 | 27309 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
db137867 AC |
27310 | case $ac_top_builddir_sub in |
27311 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27312 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
27313 | esac ;; | |
27314 | esac | |
27315 | ac_abs_top_builddir=$ac_pwd | |
27316 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
27317 | # for backward compatibility: | |
27318 | ac_top_builddir=$ac_top_build_prefix | |
27319 | ||
27320 | case $srcdir in | |
27321 | .) # We are building in place. | |
27322 | ac_srcdir=. | |
27323 | ac_top_srcdir=$ac_top_builddir_sub | |
27324 | ac_abs_top_srcdir=$ac_pwd ;; | |
27325 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
27326 | ac_srcdir=$srcdir$ac_dir_suffix; | |
27327 | ac_top_srcdir=$srcdir | |
27328 | ac_abs_top_srcdir=$srcdir ;; | |
27329 | *) # Relative name. | |
27330 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
27331 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
27332 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
27333 | esac | |
27334 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
27335 | ||
27336 | ||
27337 | case $ac_mode in | |
27338 | :F) | |
27339 | # | |
27340 | # CONFIG_FILE | |
27341 | # | |
27342 | ||
27343 | case $INSTALL in | |
27344 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
27345 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
27346 | esac | |
27347 | ac_MKDIR_P=$MKDIR_P | |
27348 | case $MKDIR_P in | |
27349 | [\\/$]* | ?:[\\/]* ) ;; | |
27350 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
27351 | esac | |
27352 | _ACEOF | |
27353 | ||
030272f3 | 27354 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
27355 | # If the template does not know about datarootdir, expand it. |
27356 | # FIXME: This hack should be removed a few years after 2.60. | |
27357 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
27358 | ||
030272f3 VY |
27359 | ac_sed_dataroot=' |
27360 | /datarootdir/ { | |
db137867 AC |
27361 | p |
27362 | q | |
27363 | } | |
27364 | /@datadir@/p | |
27365 | /@docdir@/p | |
27366 | /@infodir@/p | |
27367 | /@localedir@/p | |
27368 | /@mandir@/p | |
030272f3 VY |
27369 | ' |
27370 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
db137867 AC |
27371 | *datarootdir*) ac_datarootdir_seen=yes;; |
27372 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
030272f3 VY |
27373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
27374 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
db137867 | 27375 | _ACEOF |
030272f3 | 27376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
db137867 AC |
27377 | ac_datarootdir_hack=' |
27378 | s&@datadir@&$datadir&g | |
27379 | s&@docdir@&$docdir&g | |
27380 | s&@infodir@&$infodir&g | |
27381 | s&@localedir@&$localedir&g | |
27382 | s&@mandir@&$mandir&g | |
27383 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
27384 | esac | |
27385 | _ACEOF | |
27386 | ||
27387 | # Neutralize VPATH when `$srcdir' = `.'. | |
27388 | # Shell code in configure.ac might set extrasub. | |
27389 | # FIXME: do we really want to maintain this feature? | |
030272f3 VY |
27390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27391 | ac_sed_extra="$ac_vpsub | |
db137867 AC |
27392 | $extrasub |
27393 | _ACEOF | |
030272f3 | 27394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 AC |
27395 | :t |
27396 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
030272f3 | 27397 | s|@configure_input@|$ac_sed_conf_input|;t t |
db137867 | 27398 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
030272f3 | 27399 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
db137867 AC |
27400 | s&@srcdir@&$ac_srcdir&;t t |
27401 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
27402 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
27403 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
27404 | s&@builddir@&$ac_builddir&;t t | |
27405 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
27406 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
27407 | s&@INSTALL@&$ac_INSTALL&;t t | |
27408 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
27409 | $ac_datarootdir_hack | |
030272f3 VY |
27410 | " |
27411 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
27412 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
27413 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27414 | { (exit 1); exit 1; }; } | |
db137867 AC |
27415 | |
27416 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
27417 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
27418 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
030272f3 | 27419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
db137867 | 27420 | which seems to be undefined. Please make sure it is defined." >&5 |
030272f3 | 27421 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
db137867 AC |
27422 | which seems to be undefined. Please make sure it is defined." >&2;} |
27423 | ||
27424 | rm -f "$tmp/stdin" | |
27425 | case $ac_file in | |
030272f3 VY |
27426 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
27427 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
27428 | esac \ | |
27429 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
27430 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27431 | { (exit 1); exit 1; }; } | |
db137867 AC |
27432 | ;; |
27433 | :H) | |
27434 | # | |
27435 | # CONFIG_HEADER | |
27436 | # | |
db137867 | 27437 | if test x"$ac_file" != x-; then |
030272f3 VY |
27438 | { |
27439 | $as_echo "/* $configure_input */" \ | |
27440 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
27441 | } >"$tmp/config.h" \ | |
27442 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
27443 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27444 | { (exit 1); exit 1; }; } | |
27445 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
27446 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
27447 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
db137867 | 27448 | else |
030272f3 VY |
27449 | rm -f "$ac_file" |
27450 | mv "$tmp/config.h" "$ac_file" \ | |
27451 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
27452 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27453 | { (exit 1); exit 1; }; } | |
db137867 AC |
27454 | fi |
27455 | else | |
030272f3 VY |
27456 | $as_echo "/* $configure_input */" \ |
27457 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
27458 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
27459 | $as_echo "$as_me: error: could not create -" >&2;} | |
27460 | { (exit 1); exit 1; }; } | |
db137867 | 27461 | fi |
030272f3 VY |
27462 | # Compute "$ac_file"'s index in $config_headers. |
27463 | _am_arg="$ac_file" | |
db137867 AC |
27464 | _am_stamp_count=1 |
27465 | for _am_header in $config_headers :; do | |
27466 | case $_am_header in | |
b676ea3b | 27467 | $_am_arg | $_am_arg:* ) |
db137867 AC |
27468 | break ;; |
27469 | * ) | |
27470 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
27471 | esac | |
27472 | done | |
b676ea3b AC |
27473 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
27474 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27475 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
27476 | X"$_am_arg" : 'X\(//\)$' \| \ | |
27477 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27478 | $as_echo X"$_am_arg" | |
db137867 AC |
27479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27480 | s//\1/ | |
27481 | q | |
27482 | } | |
27483 | /^X\(\/\/\)[^/].*/{ | |
27484 | s//\1/ | |
27485 | q | |
27486 | } | |
27487 | /^X\(\/\/\)$/{ | |
27488 | s//\1/ | |
27489 | q | |
27490 | } | |
27491 | /^X\(\/\).*/{ | |
27492 | s//\1/ | |
27493 | q | |
27494 | } | |
27495 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
27496 | ;; | |
27497 | ||
030272f3 VY |
27498 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
27499 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
db137867 AC |
27500 | ;; |
27501 | esac | |
27502 | ||
27503 | ||
27504 | case $ac_file$ac_mode in | |
030272f3 VY |
27505 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files |
27506 | # are listed without --file. Let's play safe and only enable the eval | |
27507 | # if we detect the quoting. | |
27508 | case $CONFIG_FILES in | |
27509 | *\'*) eval set x "$CONFIG_FILES" ;; | |
27510 | *) set x $CONFIG_FILES ;; | |
27511 | esac | |
27512 | shift | |
27513 | for mf | |
27514 | do | |
db137867 AC |
27515 | # Strip MF so we end up with the name of the file. |
27516 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
27517 | # Check whether this is an Automake generated Makefile or not. | |
27518 | # We used to match only the files named `Makefile.in', but | |
27519 | # some people rename them; so instead we look at the file content. | |
27520 | # Grep'ing the first line is not enough: some people post-process | |
27521 | # each Makefile.in and add a new line on top of each file to say so. | |
27522 | # Grep'ing the whole file is not good either: AIX grep has a line | |
27523 | # limit of 2048, but all sed's we know have understand at least 4000. | |
b676ea3b | 27524 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
db137867 AC |
27525 | dirpart=`$as_dirname -- "$mf" || |
27526 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27527 | X"$mf" : 'X\(//\)[^/]' \| \ | |
27528 | X"$mf" : 'X\(//\)$' \| \ | |
27529 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27530 | $as_echo X"$mf" | |
db137867 AC |
27531 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27532 | s//\1/ | |
27533 | q | |
27534 | } | |
27535 | /^X\(\/\/\)[^/].*/{ | |
27536 | s//\1/ | |
27537 | q | |
27538 | } | |
27539 | /^X\(\/\/\)$/{ | |
27540 | s//\1/ | |
27541 | q | |
27542 | } | |
27543 | /^X\(\/\).*/{ | |
27544 | s//\1/ | |
27545 | q | |
27546 | } | |
27547 | s/.*/./; q'` | |
27548 | else | |
27549 | continue | |
27550 | fi | |
27551 | # Extract the definition of DEPDIR, am__include, and am__quote | |
27552 | # from the Makefile without running `make'. | |
27553 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
27554 | test -z "$DEPDIR" && continue | |
27555 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
27556 | test -z "am__include" && continue | |
27557 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
27558 | # When using ansi2knr, U may be empty or an underscore; expand it | |
27559 | U=`sed -n 's/^U = //p' < "$mf"` | |
27560 | # Find all dependency output files, they are included files with | |
27561 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
27562 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
27563 | # expansion. | |
27564 | for file in `sed -n " | |
27565 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
27566 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
27567 | # Make sure the directory exists. | |
27568 | test -f "$dirpart/$file" && continue | |
27569 | fdir=`$as_dirname -- "$file" || | |
27570 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27571 | X"$file" : 'X\(//\)[^/]' \| \ | |
27572 | X"$file" : 'X\(//\)$' \| \ | |
27573 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27574 | $as_echo X"$file" | |
db137867 AC |
27575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27576 | s//\1/ | |
27577 | q | |
27578 | } | |
27579 | /^X\(\/\/\)[^/].*/{ | |
27580 | s//\1/ | |
27581 | q | |
27582 | } | |
27583 | /^X\(\/\/\)$/{ | |
27584 | s//\1/ | |
27585 | q | |
27586 | } | |
27587 | /^X\(\/\).*/{ | |
27588 | s//\1/ | |
27589 | q | |
27590 | } | |
27591 | s/.*/./; q'` | |
27592 | { as_dir=$dirpart/$fdir | |
27593 | case $as_dir in #( | |
27594 | -*) as_dir=./$as_dir;; | |
27595 | esac | |
27596 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
27597 | as_dirs= | |
27598 | while :; do | |
27599 | case $as_dir in #( | |
030272f3 | 27600 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
db137867 AC |
27601 | *) as_qdir=$as_dir;; |
27602 | esac | |
27603 | as_dirs="'$as_qdir' $as_dirs" | |
27604 | as_dir=`$as_dirname -- "$as_dir" || | |
27605 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27606 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27607 | X"$as_dir" : 'X\(//\)$' \| \ | |
27608 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 27609 | $as_echo X"$as_dir" | |
db137867 AC |
27610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27611 | s//\1/ | |
27612 | q | |
27613 | } | |
27614 | /^X\(\/\/\)[^/].*/{ | |
27615 | s//\1/ | |
27616 | q | |
27617 | } | |
27618 | /^X\(\/\/\)$/{ | |
27619 | s//\1/ | |
27620 | q | |
27621 | } | |
27622 | /^X\(\/\).*/{ | |
27623 | s//\1/ | |
27624 | q | |
27625 | } | |
27626 | s/.*/./; q'` | |
27627 | test -d "$as_dir" && break | |
27628 | done | |
27629 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
030272f3 VY |
27630 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
27631 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
db137867 AC |
27632 | { (exit 1); exit 1; }; }; } |
27633 | # echo "creating $dirpart/$file" | |
27634 | echo '# dummy' > "$dirpart/$file" | |
27635 | done | |
27636 | done | |
27637 | ;; | |
27638 | "include/librb-config.h":C) | |
27639 | outfile=include/librb-config.h.tmp | |
27640 | cat > $outfile <<\_______EOF | |
27641 | /* | |
27642 | * librb-config.h: libratbox config file. Please modify configure.ac | |
27643 | */ | |
27644 | ||
27645 | #ifndef __LIBRB_CONFIG_H | |
27646 | #define __LIBRB_CONFIG_H | |
27647 | ||
27648 | _______EOF | |
27649 | ||
27650 | if test "x$rb_have_ipv6" = "xyes"; then | |
27651 | echo "#define RB_IPV6 1" >> $outfile | |
27652 | fi | |
27653 | ||
27654 | if test "x$rb_windows_h" = "xyes"; then | |
27655 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
27656 | echo '#include <windows.h>' >> $outfile | |
27657 | echo '#include <winsock2.h>' >> $outfile | |
27658 | echo '#include <iphlpapi.h>' >> $outfile | |
27659 | fi | |
27660 | ||
27661 | if test "x$rb_alloca_h" = "xyes"; then | |
27662 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
27663 | fi | |
27664 | ||
27665 | if test "x$rb_header_stdc" = "xyes"; then | |
27666 | echo '#include <stdlib.h>' >> $outfile | |
27667 | echo '#include <stddef.h>' >> $outfile | |
27668 | elif test "x$rb_header_stdlib" = "xyes"; then | |
27669 | echo '#include <stdlib.h>' >> $outfile | |
27670 | fi | |
27671 | ||
27672 | if test "x$rb_header_string_h" = "xyes"; then | |
27673 | echo '#include <string.h>' >> $outfile | |
27674 | fi | |
27675 | ||
27676 | if test "x$rb_stdint_h" = "xyes"; then | |
27677 | echo '#include <stdint.h>' >> $outfile | |
27678 | fi | |
27679 | ||
27680 | if test "x$rb_inttypes_h" = "xyes"; then | |
27681 | echo '#include <inttypes.h>' >> $outfile | |
27682 | fi | |
27683 | ||
27684 | if test "x$rb_sys_types_h" = "xyes"; then | |
27685 | echo '#include <sys/types.h>' >> $outfile | |
27686 | fi | |
27687 | if test "x$rb_sys_time_h" = "xyes"; then | |
27688 | echo '#include <sys/time.h>' >> $outfile | |
27689 | fi | |
27690 | if test "x$rb_sys_stat_h" = "xyes"; then | |
27691 | echo '#include <sys/stat.h>' >> $outfile | |
27692 | fi | |
27693 | if test "x$rb_time_h" = "xyes"; then | |
27694 | echo '#include <time.h>' >> $outfile | |
27695 | fi | |
27696 | ||
27697 | if test "x$rb_sys_socket_h" = "xyes"; then | |
27698 | echo '#include <sys/socket.h>' >> $outfile | |
27699 | fi | |
27700 | ||
27701 | if test "x$rb_netinet_in_h" = "xyes"; then | |
27702 | echo '#include <netinet/in.h>' >> $outfile | |
27703 | fi | |
27704 | ||
27705 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
27706 | echo '#include <arpa/inet.h>' >> $outfile | |
27707 | fi | |
27708 | ||
27709 | if test "x$rb_unistd_h" = "xyes"; then | |
27710 | echo '#include <unistd.h>' >> $outfile | |
27711 | fi | |
27712 | ||
27713 | if test "x$rb_crypt_h" = "xyes"; then | |
27714 | echo '#include <crypt.h>' >> $outfile | |
27715 | fi | |
27716 | ||
27717 | if test "x$rb_errno_h" = "xyes"; then | |
27718 | echo '#include <errno.h>' >> $outfile | |
27719 | fi | |
27720 | ||
a9fb3ed0 VY |
27721 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
27722 | ||
27723 | ||
db137867 AC |
27724 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
27725 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
27726 | fi | |
27727 | ||
db137867 AC |
27728 | if test "x$rb_sockaddr_storage" = "xyes"; then |
27729 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
27730 | else | |
3202e249 | 27731 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
db137867 AC |
27732 | fi |
27733 | ||
27734 | cat >> $outfile <<\_______EOF | |
27735 | #endif /* __LIBRB_CONFIG_H */ | |
27736 | _______EOF | |
27737 | ||
27738 | if cmp -s $outfile include/librb-config.h; then | |
030272f3 VY |
27739 | { $as_echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5 |
27740 | $as_echo "$as_me: include/librb-config.h is unchanged" >&6;} | |
db137867 AC |
27741 | ${rb_rm} -f $outfile |
27742 | else | |
27743 | ${rb_mv} $outfile include/librb-config.h | |
27744 | fi | |
27745 | ||
27746 | ;; | |
27747 | ||
27748 | esac | |
27749 | done # for ac_tag | |
27750 | ||
27751 | ||
27752 | { (exit 0); exit 0; } | |
27753 | _ACEOF | |
27754 | chmod +x $CONFIG_STATUS | |
27755 | ac_clean_files=$ac_clean_files_save | |
27756 | ||
030272f3 VY |
27757 | test $ac_write_fail = 0 || |
27758 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
27759 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
27760 | { (exit 1); exit 1; }; } | |
27761 | ||
db137867 AC |
27762 | |
27763 | # configure is writing to config.log, and then calls config.status. | |
27764 | # config.status does its own redirection, appending to config.log. | |
27765 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
27766 | # by configure, so config.status won't be able to write to it; its | |
27767 | # output is simply discarded. So we exec the FD to /dev/null, | |
27768 | # effectively closing config.log, so it can be properly (re)opened and | |
27769 | # appended to by config.status. When coming back to configure, we | |
27770 | # need to make the FD available again. | |
27771 | if test "$no_create" != yes; then | |
27772 | ac_cs_success=: | |
27773 | ac_config_status_args= | |
27774 | test "$silent" = yes && | |
27775 | ac_config_status_args="$ac_config_status_args --quiet" | |
27776 | exec 5>/dev/null | |
27777 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
27778 | exec 5>>config.log | |
27779 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
27780 | # would make configure fail if this is the last instruction. | |
27781 | $ac_cs_success || { (exit 1); exit 1; } | |
27782 | fi | |
030272f3 VY |
27783 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
27784 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
27785 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
27786 | fi | |
db137867 | 27787 | |
db137867 AC |
27788 | |
27789 | ||
27790 | echo | |
27791 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
27792 | echo | |
27793 | ||
27794 | echo "Installing into: $prefix" | |
27795 | ||
27796 | echo "IPv6 support ................... $have_v6" | |
27797 | echo "Assert debugging ............... $assert" | |
27798 | echo "Block allocator ................ $balloc" | |
c2ac22cc | 27799 | echo "SSL Type........................ $SSL_TYPE" |
db137867 AC |
27800 | echo |
27801 |