Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8d138742 | 3 | # Generated by GNU Autoconf 2.63 for libmd5 1.21. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
dd184caf | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
dd184caf | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
d9898ee8 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
8d138742 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
8d138742 CE |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
dd184caf | 91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
dd184caf | 96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
8d138742 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
dd184caf | 119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
d9898ee8 | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf | 123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
d9898ee8 | 126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
8d138742 CE |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
d9898ee8 | 135 | |
136 | # Required to use basename. | |
dd184caf | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
dd184caf | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
dd184caf | 152 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 156 | $as_echo X/"$0" | |
dd184caf | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
d9898ee8 | 170 | |
dd184caf | 171 | # CDPATH. |
172 | $as_unset CDPATH | |
d9898ee8 | 173 | |
d9898ee8 | 174 | |
dd184caf | 175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
d9898ee8 | 180 | fi |
181 | ||
8d138742 | 182 | if test $as_have_required = yes && (eval ": |
dd184caf | 183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
d9898ee8 | 198 | |
dd184caf | 199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
d9898ee8 | 206 | |
dd184caf | 207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
d9898ee8 | 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
dd184caf | 247 | case $as_dir in |
d9898ee8 | 248 | /*) |
dd184caf | 249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
8d138742 | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
8d138742 | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
d9898ee8 | 349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
d9898ee8 | 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf | 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
8d138742 CE |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
dd184caf | 369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
8d138742 CE |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
dd184caf | 441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
dd184caf | 452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
d9898ee8 | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf | 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
d9898ee8 | 464 | sed ' |
dd184caf | 465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
d9898ee8 | 469 | N |
dd184caf | 470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 472 | t loop |
dd184caf | 473 | s/-\n.*// |
d9898ee8 | 474 | ' >$as_me.lineno && |
dd184caf | 475 | chmod +x "$as_me.lineno" || |
8d138742 | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 | 477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
d9898ee8 | 483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
dd184caf | 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
d9898ee8 | 503 | esac |
dd184caf | 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
8d138742 CE |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
d9898ee8 | 530 | as_ln_s='cp -p' |
8d138742 | 531 | fi |
d9898ee8 | 532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
dd184caf | 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
dd184caf | 545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
8d138742 | 556 | test -d "$1/."; |
dd184caf | 557 | else |
558 | case $1 in | |
8d138742 | 559 | -*)set "./$1";; |
dd184caf | 560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
d9898ee8 | 567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
d9898ee8 | 575 | |
576 | ||
577 | # Check that we are running under the correct shell. | |
578 | SHELL=${CONFIG_SHELL-/bin/sh} | |
579 | ||
8d138742 | 580 | case X$lt_ECHO in |
d9898ee8 | 581 | X*--fallback-echo) |
582 | # Remove one level of quotation (which was required for Make). | |
8d138742 | 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
d9898ee8 | 584 | ;; |
585 | esac | |
586 | ||
8d138742 | 587 | ECHO=${lt_ECHO-echo} |
d9898ee8 | 588 | if test "X$1" = X--no-reexec; then |
589 | # Discard the --no-reexec flag, and continue. | |
590 | shift | |
591 | elif test "X$1" = X--fallback-echo; then | |
592 | # Avoid inline document here, it may be left over | |
593 | : | |
8d138742 CE |
594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
595 | # Yippee, $ECHO works! | |
d9898ee8 | 596 | : |
597 | else | |
598 | # Restart under the correct shell. | |
599 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
600 | fi | |
601 | ||
602 | if test "X$1" = X--fallback-echo; then | |
603 | # used as fallback echo | |
604 | shift | |
8d138742 | 605 | cat <<_LT_EOF |
d9898ee8 | 606 | $* |
8d138742 | 607 | _LT_EOF |
d9898ee8 | 608 | exit 0 |
609 | fi | |
610 | ||
611 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
612 | # if CDPATH is set. | |
613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
614 | ||
8d138742 CE |
615 | if test -z "$lt_ECHO"; then |
616 | if test "X${echo_test_string+set}" != Xset; then | |
617 | # find a string as large as possible, as long as the shell can cope with it | |
618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
622 | then | |
623 | break | |
624 | fi | |
625 | done | |
626 | fi | |
d9898ee8 | 627 | |
8d138742 CE |
628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
630 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
631 | : | |
632 | else | |
633 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
634 | # backslashes. This makes it impossible to quote backslashes using | |
635 | # echo "$something" | sed 's/\\/\\\\/g' | |
636 | # | |
637 | # So, first we look for a working echo in the user's PATH. | |
d9898ee8 | 638 | |
8d138742 CE |
639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
640 | for dir in $PATH /usr/ucb; do | |
641 | IFS="$lt_save_ifs" | |
642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
645 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
646 | ECHO="$dir/echo" | |
647 | break | |
648 | fi | |
649 | done | |
d9898ee8 | 650 | IFS="$lt_save_ifs" |
d9898ee8 | 651 | |
8d138742 CE |
652 | if test "X$ECHO" = Xecho; then |
653 | # We didn't find a better echo, so look for alternatives. | |
654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
656 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
657 | # This shell has a builtin print -r that does the trick. | |
658 | ECHO='print -r' | |
659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
660 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
661 | # If we have ksh, try running configure again with it. | |
662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
663 | export ORIGINAL_CONFIG_SHELL | |
664 | CONFIG_SHELL=/bin/ksh | |
665 | export CONFIG_SHELL | |
666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
d9898ee8 | 667 | else |
8d138742 CE |
668 | # Try using printf. |
669 | ECHO='printf %s\n' | |
670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
672 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
673 | # Cool, printf works | |
674 | : | |
675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
676 | test "X$echo_testing_string" = 'X\t' && | |
677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
678 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
680 | export CONFIG_SHELL | |
681 | SHELL="$CONFIG_SHELL" | |
682 | export SHELL | |
683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
685 | test "X$echo_testing_string" = 'X\t' && | |
686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
687 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
689 | else | |
690 | # maybe with a smaller string... | |
691 | prev=: | |
d9898ee8 | 692 | |
8d138742 CE |
693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
695 | then | |
696 | break | |
697 | fi | |
698 | prev="$cmd" | |
699 | done | |
d9898ee8 | 700 | |
8d138742 CE |
701 | if test "$prev" != 'sed 50q "$0"'; then |
702 | echo_test_string=`eval $prev` | |
703 | export echo_test_string | |
704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
705 | else | |
706 | # Oops. We lost completely, so just stick with echo. | |
707 | ECHO=echo | |
708 | fi | |
709 | fi | |
d9898ee8 | 710 | fi |
711 | fi | |
712 | fi | |
713 | fi | |
d9898ee8 | 714 | |
715 | # Copy echo and quote the copy suitably for passing to libtool from | |
716 | # the Makefile, instead of quoting the original, which is used later. | |
8d138742 CE |
717 | lt_ECHO=$ECHO |
718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
d9898ee8 | 720 | fi |
721 | ||
722 | ||
723 | ||
724 | ||
dd184caf | 725 | exec 7<&0 </dev/null 6>&1 |
726 | ||
d9898ee8 | 727 | # Name of the host. |
728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
729 | # so uname gets run too. | |
730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
731 | ||
d9898ee8 | 732 | # |
733 | # Initializations. | |
734 | # | |
735 | ac_default_prefix=/usr/local | |
dd184caf | 736 | ac_clean_files= |
d9898ee8 | 737 | ac_config_libobj_dir=. |
dd184caf | 738 | LIBOBJS= |
d9898ee8 | 739 | cross_compiling=no |
740 | subdirs= | |
741 | MFLAGS= | |
742 | MAKEFLAGS= | |
743 | SHELL=${CONFIG_SHELL-/bin/sh} | |
744 | ||
d9898ee8 | 745 | # Identity of this package. |
746 | PACKAGE_NAME='libmd5' | |
747 | PACKAGE_TARNAME='libmd5' | |
748 | PACKAGE_VERSION='1.21' | |
749 | PACKAGE_STRING='libmd5 1.21' | |
750 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
751 | ||
752 | ac_unique_file="hmac.c" | |
753 | # Factoring default headers for most tests. | |
754 | ac_includes_default="\ | |
755 | #include <stdio.h> | |
dd184caf | 756 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 757 | # include <sys/types.h> |
758 | #endif | |
dd184caf | 759 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 760 | # include <sys/stat.h> |
761 | #endif | |
dd184caf | 762 | #ifdef STDC_HEADERS |
d9898ee8 | 763 | # include <stdlib.h> |
764 | # include <stddef.h> | |
765 | #else | |
dd184caf | 766 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 767 | # include <stdlib.h> |
768 | # endif | |
769 | #endif | |
dd184caf | 770 | #ifdef HAVE_STRING_H |
771 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 772 | # include <memory.h> |
773 | # endif | |
774 | # include <string.h> | |
775 | #endif | |
dd184caf | 776 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 777 | # include <strings.h> |
778 | #endif | |
dd184caf | 779 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 780 | # include <inttypes.h> |
d9898ee8 | 781 | #endif |
dd184caf | 782 | #ifdef HAVE_STDINT_H |
783 | # include <stdint.h> | |
784 | #endif | |
785 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 786 | # include <unistd.h> |
787 | #endif" | |
788 | ||
8d138742 CE |
789 | ac_subst_vars='am__EXEEXT_FALSE |
790 | am__EXEEXT_TRUE | |
791 | LTLIBOBJS | |
792 | LIBOBJS | |
dd184caf | 793 | CPP |
8d138742 CE |
794 | OTOOL64 |
795 | OTOOL | |
796 | LIPO | |
797 | NMEDIT | |
798 | DSYMUTIL | |
799 | lt_ECHO | |
800 | RANLIB | |
801 | AR | |
802 | OBJDUMP | |
803 | NM | |
804 | ac_ct_DUMPBIN | |
805 | DUMPBIN | |
806 | LD | |
807 | FGREP | |
808 | EGREP | |
809 | GREP | |
810 | SED | |
811 | host_os | |
812 | host_vendor | |
813 | host_cpu | |
814 | host | |
815 | build_os | |
816 | build_vendor | |
817 | build_cpu | |
818 | build | |
dd184caf | 819 | LIBTOOL |
8d138742 CE |
820 | am__fastdepCC_FALSE |
821 | am__fastdepCC_TRUE | |
822 | CCDEPMODE | |
823 | AMDEPBACKSLASH | |
824 | AMDEP_FALSE | |
825 | AMDEP_TRUE | |
826 | am__quote | |
827 | am__include | |
828 | DEPDIR | |
829 | OBJEXT | |
830 | EXEEXT | |
831 | ac_ct_CC | |
832 | CPPFLAGS | |
833 | LDFLAGS | |
834 | CFLAGS | |
835 | CC | |
836 | LN_S | |
837 | HMACC_FALSE | |
838 | HMACC_TRUE | |
839 | am__untar | |
840 | am__tar | |
841 | AMTAR | |
842 | am__leading_dot | |
843 | SET_MAKE | |
844 | AWK | |
845 | mkdir_p | |
846 | MKDIR_P | |
847 | INSTALL_STRIP_PROGRAM | |
848 | STRIP | |
849 | install_sh | |
850 | MAKEINFO | |
851 | AUTOHEADER | |
852 | AUTOMAKE | |
853 | AUTOCONF | |
854 | ACLOCAL | |
855 | VERSION | |
856 | PACKAGE | |
857 | CYGPATH_W | |
858 | am__isrc | |
859 | INSTALL_DATA | |
860 | INSTALL_SCRIPT | |
861 | INSTALL_PROGRAM | |
862 | target_alias | |
863 | host_alias | |
864 | build_alias | |
865 | LIBS | |
866 | ECHO_T | |
867 | ECHO_N | |
868 | ECHO_C | |
869 | DEFS | |
870 | mandir | |
871 | localedir | |
872 | libdir | |
873 | psdir | |
874 | pdfdir | |
875 | dvidir | |
876 | htmldir | |
877 | infodir | |
878 | docdir | |
879 | oldincludedir | |
880 | includedir | |
881 | localstatedir | |
882 | sharedstatedir | |
883 | sysconfdir | |
884 | datadir | |
885 | datarootdir | |
886 | libexecdir | |
887 | sbindir | |
888 | bindir | |
889 | program_transform_name | |
890 | prefix | |
891 | exec_prefix | |
892 | PACKAGE_BUGREPORT | |
893 | PACKAGE_STRING | |
894 | PACKAGE_VERSION | |
895 | PACKAGE_TARNAME | |
896 | PACKAGE_NAME | |
897 | PATH_SEPARATOR | |
898 | SHELL' | |
d9898ee8 | 899 | ac_subst_files='' |
8d138742 CE |
900 | ac_user_opts=' |
901 | enable_option_checking | |
902 | enable_dependency_tracking | |
903 | enable_shared | |
904 | enable_static | |
905 | with_pic | |
906 | enable_fast_install | |
907 | with_gnu_ld | |
908 | enable_libtool_lock | |
909 | with_int32 | |
910 | ' | |
dd184caf | 911 | ac_precious_vars='build_alias |
912 | host_alias | |
913 | target_alias | |
914 | CC | |
915 | CFLAGS | |
916 | LDFLAGS | |
917 | LIBS | |
918 | CPPFLAGS | |
8d138742 | 919 | CPP' |
dd184caf | 920 | |
d9898ee8 | 921 | |
922 | # Initialize some variables set by options. | |
923 | ac_init_help= | |
924 | ac_init_version=false | |
8d138742 CE |
925 | ac_unrecognized_opts= |
926 | ac_unrecognized_sep= | |
d9898ee8 | 927 | # The variables have the same names as the options, with |
928 | # dashes changed to underlines. | |
929 | cache_file=/dev/null | |
930 | exec_prefix=NONE | |
931 | no_create= | |
932 | no_recursion= | |
933 | prefix=NONE | |
934 | program_prefix=NONE | |
935 | program_suffix=NONE | |
936 | program_transform_name=s,x,x, | |
937 | silent= | |
938 | site= | |
939 | srcdir= | |
940 | verbose= | |
941 | x_includes=NONE | |
942 | x_libraries=NONE | |
943 | ||
944 | # Installation directory options. | |
945 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
946 | # and all the variables that are supposed to be based on exec_prefix | |
947 | # by default will actually change. | |
948 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 949 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 950 | bindir='${exec_prefix}/bin' |
951 | sbindir='${exec_prefix}/sbin' | |
952 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 953 | datarootdir='${prefix}/share' |
954 | datadir='${datarootdir}' | |
d9898ee8 | 955 | sysconfdir='${prefix}/etc' |
956 | sharedstatedir='${prefix}/com' | |
957 | localstatedir='${prefix}/var' | |
d9898ee8 | 958 | includedir='${prefix}/include' |
959 | oldincludedir='/usr/include' | |
dd184caf | 960 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
961 | infodir='${datarootdir}/info' | |
962 | htmldir='${docdir}' | |
963 | dvidir='${docdir}' | |
964 | pdfdir='${docdir}' | |
965 | psdir='${docdir}' | |
966 | libdir='${exec_prefix}/lib' | |
967 | localedir='${datarootdir}/locale' | |
968 | mandir='${datarootdir}/man' | |
d9898ee8 | 969 | |
970 | ac_prev= | |
dd184caf | 971 | ac_dashdash= |
d9898ee8 | 972 | for ac_option |
973 | do | |
974 | # If the previous option needs an argument, assign it. | |
975 | if test -n "$ac_prev"; then | |
dd184caf | 976 | eval $ac_prev=\$ac_option |
d9898ee8 | 977 | ac_prev= |
978 | continue | |
979 | fi | |
980 | ||
dd184caf | 981 | case $ac_option in |
982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
d9898ee8 | 985 | |
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
dd184caf | 988 | case $ac_dashdash$ac_option in |
989 | --) | |
990 | ac_dashdash=yes ;; | |
d9898ee8 | 991 | |
992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
993 | ac_prev=bindir ;; | |
994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
995 | bindir=$ac_optarg ;; | |
996 | ||
997 | -build | --build | --buil | --bui | --bu) | |
998 | ac_prev=build_alias ;; | |
999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1000 | build_alias=$ac_optarg ;; | |
1001 | ||
1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1004 | ac_prev=cache_file ;; | |
1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1007 | cache_file=$ac_optarg ;; | |
1008 | ||
1009 | --config-cache | -C) | |
1010 | cache_file=config.cache ;; | |
1011 | ||
dd184caf | 1012 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1013 | ac_prev=datadir ;; |
dd184caf | 1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1015 | datadir=$ac_optarg ;; |
1016 | ||
dd184caf | 1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1018 | | --dataroo | --dataro | --datar) | |
1019 | ac_prev=datarootdir ;; | |
1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1022 | datarootdir=$ac_optarg ;; | |
1023 | ||
d9898ee8 | 1024 | -disable-* | --disable-*) |
8d138742 | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1026 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1028 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1029 | { (exit 1); exit 1; }; } |
8d138742 CE |
1030 | ac_useropt_orig=$ac_useropt |
1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1032 | case $ac_user_opts in | |
1033 | *" | |
1034 | "enable_$ac_useropt" | |
1035 | "*) ;; | |
1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1037 | ac_unrecognized_sep=', ';; | |
1038 | esac | |
1039 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1040 | |
1041 | -docdir | --docdir | --docdi | --doc | --do) | |
1042 | ac_prev=docdir ;; | |
1043 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1044 | docdir=$ac_optarg ;; | |
1045 | ||
1046 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1047 | ac_prev=dvidir ;; | |
1048 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1049 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1050 | |
1051 | -enable-* | --enable-*) | |
8d138742 | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1053 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1055 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1056 | { (exit 1); exit 1; }; } |
8d138742 CE |
1057 | ac_useropt_orig=$ac_useropt |
1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1059 | case $ac_user_opts in | |
1060 | *" | |
1061 | "enable_$ac_useropt" | |
1062 | "*) ;; | |
1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1064 | ac_unrecognized_sep=', ';; | |
1065 | esac | |
1066 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1067 | |
1068 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1069 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1070 | | --exec | --exe | --ex) | |
1071 | ac_prev=exec_prefix ;; | |
1072 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1073 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1074 | | --exec=* | --exe=* | --ex=*) | |
1075 | exec_prefix=$ac_optarg ;; | |
1076 | ||
1077 | -gas | --gas | --ga | --g) | |
1078 | # Obsolete; use --with-gas. | |
1079 | with_gas=yes ;; | |
1080 | ||
1081 | -help | --help | --hel | --he | -h) | |
1082 | ac_init_help=long ;; | |
1083 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1084 | ac_init_help=recursive ;; | |
1085 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1086 | ac_init_help=short ;; | |
1087 | ||
1088 | -host | --host | --hos | --ho) | |
1089 | ac_prev=host_alias ;; | |
1090 | -host=* | --host=* | --hos=* | --ho=*) | |
1091 | host_alias=$ac_optarg ;; | |
1092 | ||
dd184caf | 1093 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1094 | ac_prev=htmldir ;; | |
1095 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1096 | | --ht=*) | |
1097 | htmldir=$ac_optarg ;; | |
1098 | ||
d9898ee8 | 1099 | -includedir | --includedir | --includedi | --included | --include \ |
1100 | | --includ | --inclu | --incl | --inc) | |
1101 | ac_prev=includedir ;; | |
1102 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1103 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1104 | includedir=$ac_optarg ;; | |
1105 | ||
1106 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1107 | ac_prev=infodir ;; | |
1108 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1109 | infodir=$ac_optarg ;; | |
1110 | ||
1111 | -libdir | --libdir | --libdi | --libd) | |
1112 | ac_prev=libdir ;; | |
1113 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1114 | libdir=$ac_optarg ;; | |
1115 | ||
1116 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1117 | | --libexe | --libex | --libe) | |
1118 | ac_prev=libexecdir ;; | |
1119 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1120 | | --libexe=* | --libex=* | --libe=*) | |
1121 | libexecdir=$ac_optarg ;; | |
1122 | ||
dd184caf | 1123 | -localedir | --localedir | --localedi | --localed | --locale) |
1124 | ac_prev=localedir ;; | |
1125 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1126 | localedir=$ac_optarg ;; | |
1127 | ||
d9898ee8 | 1128 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1129 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1130 | ac_prev=localstatedir ;; |
1131 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1132 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1133 | localstatedir=$ac_optarg ;; |
1134 | ||
1135 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1136 | ac_prev=mandir ;; | |
1137 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1138 | mandir=$ac_optarg ;; | |
1139 | ||
1140 | -nfp | --nfp | --nf) | |
1141 | # Obsolete; use --without-fp. | |
1142 | with_fp=no ;; | |
1143 | ||
1144 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1145 | | --no-cr | --no-c | -n) | |
1146 | no_create=yes ;; | |
1147 | ||
1148 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1149 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1150 | no_recursion=yes ;; | |
1151 | ||
1152 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1153 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1154 | | --oldin | --oldi | --old | --ol | --o) | |
1155 | ac_prev=oldincludedir ;; | |
1156 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1157 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1158 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1159 | oldincludedir=$ac_optarg ;; | |
1160 | ||
1161 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1162 | ac_prev=prefix ;; | |
1163 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1164 | prefix=$ac_optarg ;; | |
1165 | ||
1166 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1167 | | --program-pre | --program-pr | --program-p) | |
1168 | ac_prev=program_prefix ;; | |
1169 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1170 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1171 | program_prefix=$ac_optarg ;; | |
1172 | ||
1173 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1174 | | --program-suf | --program-su | --program-s) | |
1175 | ac_prev=program_suffix ;; | |
1176 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1177 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1178 | program_suffix=$ac_optarg ;; | |
1179 | ||
1180 | -program-transform-name | --program-transform-name \ | |
1181 | | --program-transform-nam | --program-transform-na \ | |
1182 | | --program-transform-n | --program-transform- \ | |
1183 | | --program-transform | --program-transfor \ | |
1184 | | --program-transfo | --program-transf \ | |
1185 | | --program-trans | --program-tran \ | |
1186 | | --progr-tra | --program-tr | --program-t) | |
1187 | ac_prev=program_transform_name ;; | |
1188 | -program-transform-name=* | --program-transform-name=* \ | |
1189 | | --program-transform-nam=* | --program-transform-na=* \ | |
1190 | | --program-transform-n=* | --program-transform-=* \ | |
1191 | | --program-transform=* | --program-transfor=* \ | |
1192 | | --program-transfo=* | --program-transf=* \ | |
1193 | | --program-trans=* | --program-tran=* \ | |
1194 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1195 | program_transform_name=$ac_optarg ;; | |
1196 | ||
dd184caf | 1197 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1198 | ac_prev=pdfdir ;; | |
1199 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1200 | pdfdir=$ac_optarg ;; | |
1201 | ||
1202 | -psdir | --psdir | --psdi | --psd | --ps) | |
1203 | ac_prev=psdir ;; | |
1204 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1205 | psdir=$ac_optarg ;; | |
1206 | ||
d9898ee8 | 1207 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1208 | | -silent | --silent | --silen | --sile | --sil) | |
1209 | silent=yes ;; | |
1210 | ||
1211 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1212 | ac_prev=sbindir ;; | |
1213 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1214 | | --sbi=* | --sb=*) | |
1215 | sbindir=$ac_optarg ;; | |
1216 | ||
1217 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1218 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1219 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1220 | | --sha | --sh) | |
1221 | ac_prev=sharedstatedir ;; | |
1222 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1223 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1224 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1225 | | --sha=* | --sh=*) | |
1226 | sharedstatedir=$ac_optarg ;; | |
1227 | ||
1228 | -site | --site | --sit) | |
1229 | ac_prev=site ;; | |
1230 | -site=* | --site=* | --sit=*) | |
1231 | site=$ac_optarg ;; | |
1232 | ||
1233 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1234 | ac_prev=srcdir ;; | |
1235 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1236 | srcdir=$ac_optarg ;; | |
1237 | ||
1238 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1239 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1240 | ac_prev=sysconfdir ;; | |
1241 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1242 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1243 | sysconfdir=$ac_optarg ;; | |
1244 | ||
1245 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1246 | ac_prev=target_alias ;; | |
1247 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1248 | target_alias=$ac_optarg ;; | |
1249 | ||
1250 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1251 | verbose=yes ;; | |
1252 | ||
1253 | -version | --version | --versio | --versi | --vers | -V) | |
1254 | ac_init_version=: ;; | |
1255 | ||
1256 | -with-* | --with-*) | |
8d138742 | 1257 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1258 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1259 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1260 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1261 | { (exit 1); exit 1; }; } |
8d138742 CE |
1262 | ac_useropt_orig=$ac_useropt |
1263 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1264 | case $ac_user_opts in | |
1265 | *" | |
1266 | "with_$ac_useropt" | |
1267 | "*) ;; | |
1268 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1269 | ac_unrecognized_sep=', ';; | |
1270 | esac | |
1271 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1272 | |
1273 | -without-* | --without-*) | |
8d138742 | 1274 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1275 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1276 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1277 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1278 | { (exit 1); exit 1; }; } |
8d138742 CE |
1279 | ac_useropt_orig=$ac_useropt |
1280 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1281 | case $ac_user_opts in | |
1282 | *" | |
1283 | "with_$ac_useropt" | |
1284 | "*) ;; | |
1285 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1286 | ac_unrecognized_sep=', ';; | |
1287 | esac | |
1288 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1289 | |
1290 | --x) | |
1291 | # Obsolete; use --with-x. | |
1292 | with_x=yes ;; | |
1293 | ||
1294 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1295 | | --x-incl | --x-inc | --x-in | --x-i) | |
1296 | ac_prev=x_includes ;; | |
1297 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1298 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1299 | x_includes=$ac_optarg ;; | |
1300 | ||
1301 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1302 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1303 | ac_prev=x_libraries ;; | |
1304 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1305 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1306 | x_libraries=$ac_optarg ;; | |
1307 | ||
8d138742 | 1308 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1309 | Try \`$0 --help' for more information." >&2 |
1310 | { (exit 1); exit 1; }; } | |
1311 | ;; | |
1312 | ||
1313 | *=*) | |
1314 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1315 | # Reject names that are not valid shell variable names. | |
1316 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1317 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1318 | { (exit 1); exit 1; }; } |
dd184caf | 1319 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1320 | export $ac_envvar ;; |
1321 | ||
1322 | *) | |
1323 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1324 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1325 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1326 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1327 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1328 | ;; | |
1329 | ||
1330 | esac | |
1331 | done | |
1332 | ||
1333 | if test -n "$ac_prev"; then | |
1334 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1335 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1336 | { (exit 1); exit 1; }; } |
1337 | fi | |
1338 | ||
8d138742 CE |
1339 | if test -n "$ac_unrecognized_opts"; then |
1340 | case $enable_option_checking in | |
1341 | no) ;; | |
1342 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1343 | { (exit 1); exit 1; }; } ;; | |
1344 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1345 | esac | |
1346 | fi | |
1347 | ||
1348 | # Check all directory arguments for consistency. | |
dd184caf | 1349 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1350 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1351 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1352 | libdir localedir mandir | |
d9898ee8 | 1353 | do |
dd184caf | 1354 | eval ac_val=\$$ac_var |
8d138742 CE |
1355 | # Remove trailing slashes. |
1356 | case $ac_val in | |
1357 | */ ) | |
1358 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1359 | eval $ac_var=\$ac_val;; | |
1360 | esac | |
1361 | # Be sure to have absolute directory names. | |
d9898ee8 | 1362 | case $ac_val in |
dd184caf | 1363 | [\\/$]* | ?:[\\/]* ) continue;; |
1364 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1365 | esac |
8d138742 | 1366 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1367 | { (exit 1); exit 1; }; } |
d9898ee8 | 1368 | done |
1369 | ||
1370 | # There might be people who depend on the old broken behavior: `$host' | |
1371 | # used to hold the argument of --host etc. | |
1372 | # FIXME: To remove some day. | |
1373 | build=$build_alias | |
1374 | host=$host_alias | |
1375 | target=$target_alias | |
1376 | ||
1377 | # FIXME: To remove some day. | |
1378 | if test "x$host_alias" != x; then | |
1379 | if test "x$build_alias" = x; then | |
1380 | cross_compiling=maybe | |
8d138742 | 1381 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1382 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1383 | elif test "x$build_alias" != "x$host_alias"; then | |
1384 | cross_compiling=yes | |
1385 | fi | |
1386 | fi | |
1387 | ||
1388 | ac_tool_prefix= | |
1389 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1390 | ||
1391 | test "$silent" = yes && exec 6>/dev/null | |
1392 | ||
1393 | ||
dd184caf | 1394 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1395 | ac_ls_di=`ls -di .` && | |
1396 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1397 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1398 | { (exit 1); exit 1; }; } |
1399 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1400 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1401 | { (exit 1); exit 1; }; } |
1402 | ||
1403 | ||
d9898ee8 | 1404 | # Find the source files, if location was not specified. |
1405 | if test -z "$srcdir"; then | |
1406 | ac_srcdir_defaulted=yes | |
dd184caf | 1407 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1408 | ac_confdir=`$as_dirname -- "$as_myself" || |
1409 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1410 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1411 | X"$as_myself" : 'X\(//\)$' \| \ | |
1412 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1413 | $as_echo X"$as_myself" | | |
dd184caf | 1414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1415 | s//\1/ | |
1416 | q | |
1417 | } | |
1418 | /^X\(\/\/\)[^/].*/{ | |
1419 | s//\1/ | |
1420 | q | |
1421 | } | |
1422 | /^X\(\/\/\)$/{ | |
1423 | s//\1/ | |
1424 | q | |
1425 | } | |
1426 | /^X\(\/\).*/{ | |
1427 | s//\1/ | |
1428 | q | |
1429 | } | |
1430 | s/.*/./; q'` | |
d9898ee8 | 1431 | srcdir=$ac_confdir |
dd184caf | 1432 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1433 | srcdir=.. |
1434 | fi | |
1435 | else | |
1436 | ac_srcdir_defaulted=no | |
1437 | fi | |
dd184caf | 1438 | if test ! -r "$srcdir/$ac_unique_file"; then |
1439 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1440 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1441 | { (exit 1); exit 1; }; } |
d9898ee8 | 1442 | fi |
dd184caf | 1443 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1444 | ac_abs_confdir=`( | |
8d138742 | 1445 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1446 | { (exit 1); exit 1; }; } |
dd184caf | 1447 | pwd)` |
1448 | # When building in place, set srcdir=. | |
1449 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1450 | srcdir=. | |
1451 | fi | |
1452 | # Remove unnecessary trailing slashes from srcdir. | |
1453 | # Double slashes in file names in object file debugging info | |
1454 | # mess up M-x gdb in Emacs. | |
1455 | case $srcdir in | |
1456 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1457 | esac | |
1458 | for ac_var in $ac_precious_vars; do | |
1459 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1460 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1461 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1462 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1463 | done | |
d9898ee8 | 1464 | |
1465 | # | |
1466 | # Report the --help message. | |
1467 | # | |
1468 | if test "$ac_init_help" = "long"; then | |
1469 | # Omit some internal or obsolete options to make the list less imposing. | |
1470 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1471 | cat <<_ACEOF | |
1472 | \`configure' configures libmd5 1.21 to adapt to many kinds of systems. | |
1473 | ||
1474 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1475 | ||
1476 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1477 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1478 | ||
1479 | Defaults for the options are specified in brackets. | |
1480 | ||
1481 | Configuration: | |
1482 | -h, --help display this help and exit | |
1483 | --help=short display options specific to this package | |
1484 | --help=recursive display the short help of all the included packages | |
1485 | -V, --version display version information and exit | |
1486 | -q, --quiet, --silent do not print \`checking...' messages | |
1487 | --cache-file=FILE cache test results in FILE [disabled] | |
1488 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1489 | -n, --no-create do not create output files | |
1490 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1491 | ||
d9898ee8 | 1492 | Installation directories: |
1493 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1494 | [$ac_default_prefix] |
d9898ee8 | 1495 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1496 | [PREFIX] |
d9898ee8 | 1497 | |
1498 | By default, \`make install' will install all the files in | |
1499 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1500 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1501 | for instance \`--prefix=\$HOME'. | |
1502 | ||
1503 | For better control, use the options below. | |
1504 | ||
1505 | Fine tuning of the installation directories: | |
8d138742 CE |
1506 | --bindir=DIR user executables [EPREFIX/bin] |
1507 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1508 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1509 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1510 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1511 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1512 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1513 | --includedir=DIR C header files [PREFIX/include] | |
1514 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1515 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1516 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1517 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1518 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1519 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1520 | --docdir=DIR documentation root [DATAROOTDIR/doc/libmd5] | |
1521 | --htmldir=DIR html documentation [DOCDIR] | |
1522 | --dvidir=DIR dvi documentation [DOCDIR] | |
1523 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1524 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1525 | _ACEOF |
1526 | ||
1527 | cat <<\_ACEOF | |
1528 | ||
1529 | Program names: | |
1530 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1531 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1532 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1533 | ||
1534 | System types: | |
1535 | --build=BUILD configure for building on BUILD [guessed] | |
1536 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1537 | _ACEOF | |
1538 | fi | |
1539 | ||
1540 | if test -n "$ac_init_help"; then | |
1541 | case $ac_init_help in | |
1542 | short | recursive ) echo "Configuration of libmd5 1.21:";; | |
1543 | esac | |
1544 | cat <<\_ACEOF | |
1545 | ||
1546 | Optional Features: | |
8d138742 | 1547 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1548 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1549 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1550 | --disable-dependency-tracking speeds up one-time build | |
1551 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1552 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1553 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1554 | --enable-fast-install[=PKGS] |
1555 | optimize for fast installation [default=yes] | |
1556 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1557 | ||
1558 | Optional Packages: | |
1559 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1560 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1561 | --with-pic try to use only PIC/non-PIC objects [default=use |
1562 | both] | |
8d138742 | 1563 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d9898ee8 | 1564 | --with-int32='type' use 'type' for an unsigned 32 bit integer type |
1565 | ( default is 'unsigned') | |
1566 | ||
1567 | Some influential environment variables: | |
1568 | CC C compiler command | |
1569 | CFLAGS C compiler flags | |
1570 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1571 | nonstandard directory <lib dir> | |
dd184caf | 1572 | LIBS libraries to pass to the linker, e.g. -l<library> |
1573 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1574 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1575 | CPP C preprocessor |
d9898ee8 | 1576 | |
1577 | Use these variables to override the choices made by `configure' or to help | |
1578 | it to find libraries and programs with nonstandard names/locations. | |
1579 | ||
1580 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1581 | _ACEOF | |
dd184caf | 1582 | ac_status=$? |
d9898ee8 | 1583 | fi |
1584 | ||
1585 | if test "$ac_init_help" = "recursive"; then | |
1586 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1587 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1588 | test -d "$ac_dir" || |
1589 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1590 | continue | |
d9898ee8 | 1591 | ac_builddir=. |
1592 | ||
dd184caf | 1593 | case "$ac_dir" in |
1594 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) | |
8d138742 | 1596 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1597 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1598 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1599 | case $ac_top_builddir_sub in |
1600 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1601 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1602 | esac ;; | |
1603 | esac | |
1604 | ac_abs_top_builddir=$ac_pwd | |
1605 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1606 | # for backward compatibility: | |
1607 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1608 | |
1609 | case $srcdir in | |
dd184caf | 1610 | .) # We are building in place. |
d9898ee8 | 1611 | ac_srcdir=. |
dd184caf | 1612 | ac_top_srcdir=$ac_top_builddir_sub |
1613 | ac_abs_top_srcdir=$ac_pwd ;; | |
1614 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1615 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1616 | ac_top_srcdir=$srcdir |
1617 | ac_abs_top_srcdir=$srcdir ;; | |
1618 | *) # Relative name. | |
1619 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1620 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1621 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1622 | esac |
dd184caf | 1623 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1624 | ||
1625 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1626 | # Check for guested configure. | |
1627 | if test -f "$ac_srcdir/configure.gnu"; then | |
1628 | echo && | |
1629 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1630 | elif test -f "$ac_srcdir/configure"; then | |
1631 | echo && | |
1632 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1633 | else |
8d138742 | 1634 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1635 | fi || ac_status=$? |
1636 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1637 | done |
1638 | fi | |
1639 | ||
dd184caf | 1640 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1641 | if $ac_init_version; then |
1642 | cat <<\_ACEOF | |
1643 | libmd5 configure 1.21 | |
8d138742 | 1644 | generated by GNU Autoconf 2.63 |
d9898ee8 | 1645 | |
dd184caf | 1646 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1647 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1648 | This configure script is free software; the Free Software Foundation |
1649 | gives unlimited permission to copy, distribute and modify it. | |
1650 | _ACEOF | |
dd184caf | 1651 | exit |
d9898ee8 | 1652 | fi |
dd184caf | 1653 | cat >config.log <<_ACEOF |
d9898ee8 | 1654 | This file contains any messages produced by compilers while |
1655 | running configure, to aid debugging if configure makes a mistake. | |
1656 | ||
1657 | It was created by libmd5 $as_me 1.21, which was | |
8d138742 | 1658 | generated by GNU Autoconf 2.63. Invocation command line was |
d9898ee8 | 1659 | |
1660 | $ $0 $@ | |
1661 | ||
1662 | _ACEOF | |
dd184caf | 1663 | exec 5>>config.log |
d9898ee8 | 1664 | { |
1665 | cat <<_ASUNAME | |
1666 | ## --------- ## | |
1667 | ## Platform. ## | |
1668 | ## --------- ## | |
1669 | ||
1670 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1671 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1672 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1673 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1674 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1675 | ||
1676 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1677 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1678 | ||
1679 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1680 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1681 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1682 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1683 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1684 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1685 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1686 | ||
1687 | _ASUNAME | |
1688 | ||
1689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1690 | for as_dir in $PATH | |
1691 | do | |
1692 | IFS=$as_save_IFS | |
1693 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1694 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1695 | done |
dd184caf | 1696 | IFS=$as_save_IFS |
d9898ee8 | 1697 | |
1698 | } >&5 | |
1699 | ||
1700 | cat >&5 <<_ACEOF | |
1701 | ||
1702 | ||
1703 | ## ----------- ## | |
1704 | ## Core tests. ## | |
1705 | ## ----------- ## | |
1706 | ||
1707 | _ACEOF | |
1708 | ||
1709 | ||
1710 | # Keep a trace of the command line. | |
1711 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1712 | # Strip out --silent because we don't want to record it for future runs. | |
1713 | # Also quote any args containing shell meta-characters. | |
1714 | # Make two passes to allow for proper duplicate-argument suppression. | |
1715 | ac_configure_args= | |
1716 | ac_configure_args0= | |
1717 | ac_configure_args1= | |
d9898ee8 | 1718 | ac_must_keep_next=false |
1719 | for ac_pass in 1 2 | |
1720 | do | |
1721 | for ac_arg | |
1722 | do | |
1723 | case $ac_arg in | |
1724 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1725 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1726 | | -silent | --silent | --silen | --sile | --sil) | |
1727 | continue ;; | |
dd184caf | 1728 | *\'*) |
8d138742 | 1729 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1730 | esac |
1731 | case $ac_pass in | |
1732 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1733 | 2) | |
1734 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1735 | if test $ac_must_keep_next = true; then | |
1736 | ac_must_keep_next=false # Got value, back to normal. | |
1737 | else | |
1738 | case $ac_arg in | |
1739 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1740 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1741 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1742 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1743 | case "$ac_configure_args0 " in | |
1744 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1745 | esac | |
1746 | ;; | |
1747 | -* ) ac_must_keep_next=true ;; | |
1748 | esac | |
1749 | fi | |
dd184caf | 1750 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1751 | ;; |
1752 | esac | |
1753 | done | |
1754 | done | |
1755 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1756 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1757 | ||
1758 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1759 | # config.log. We remove comments because anyway the quotes in there | |
1760 | # would cause problems or look ugly. | |
dd184caf | 1761 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1762 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1763 | trap 'exit_status=$? |
1764 | # Save into config.log some information that might help in debugging. | |
1765 | { | |
1766 | echo | |
1767 | ||
1768 | cat <<\_ASBOX | |
1769 | ## ---------------- ## | |
1770 | ## Cache variables. ## | |
1771 | ## ---------------- ## | |
1772 | _ASBOX | |
1773 | echo | |
1774 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1775 | ( |
1776 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1777 | eval ac_val=\$$ac_var | |
1778 | case $ac_val in #( | |
1779 | *${as_nl}*) | |
1780 | case $ac_var in #( | |
8d138742 CE |
1781 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1782 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1783 | esac |
1784 | case $ac_var in #( | |
1785 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1786 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1787 | *) $as_unset $ac_var ;; |
1788 | esac ;; | |
1789 | esac | |
1790 | done | |
d9898ee8 | 1791 | (set) 2>&1 | |
dd184caf | 1792 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1793 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1794 | sed -n \ |
dd184caf | 1795 | "s/'\''/'\''\\\\'\'''\''/g; |
1796 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1797 | ;; #( | |
d9898ee8 | 1798 | *) |
dd184caf | 1799 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1800 | ;; |
dd184caf | 1801 | esac | |
1802 | sort | |
1803 | ) | |
d9898ee8 | 1804 | echo |
1805 | ||
1806 | cat <<\_ASBOX | |
1807 | ## ----------------- ## | |
1808 | ## Output variables. ## | |
1809 | ## ----------------- ## | |
1810 | _ASBOX | |
1811 | echo | |
1812 | for ac_var in $ac_subst_vars | |
1813 | do | |
dd184caf | 1814 | eval ac_val=\$$ac_var |
1815 | case $ac_val in | |
8d138742 | 1816 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1817 | esac |
8d138742 | 1818 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1819 | done | sort |
1820 | echo | |
1821 | ||
1822 | if test -n "$ac_subst_files"; then | |
1823 | cat <<\_ASBOX | |
dd184caf | 1824 | ## ------------------- ## |
1825 | ## File substitutions. ## | |
1826 | ## ------------------- ## | |
d9898ee8 | 1827 | _ASBOX |
1828 | echo | |
1829 | for ac_var in $ac_subst_files | |
1830 | do | |
dd184caf | 1831 | eval ac_val=\$$ac_var |
1832 | case $ac_val in | |
8d138742 | 1833 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1834 | esac |
8d138742 | 1835 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1836 | done | sort |
1837 | echo | |
1838 | fi | |
1839 | ||
1840 | if test -s confdefs.h; then | |
1841 | cat <<\_ASBOX | |
1842 | ## ----------- ## | |
1843 | ## confdefs.h. ## | |
1844 | ## ----------- ## | |
1845 | _ASBOX | |
1846 | echo | |
dd184caf | 1847 | cat confdefs.h |
d9898ee8 | 1848 | echo |
1849 | fi | |
1850 | test "$ac_signal" != 0 && | |
8d138742 CE |
1851 | $as_echo "$as_me: caught signal $ac_signal" |
1852 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1853 | } >&5 |
dd184caf | 1854 | rm -f core *.core core.conftest.* && |
1855 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 1856 | exit $exit_status |
dd184caf | 1857 | ' 0 |
d9898ee8 | 1858 | for ac_signal in 1 2 13 15; do |
1859 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1860 | done | |
1861 | ac_signal=0 | |
1862 | ||
1863 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 1864 | rm -f -r conftest* confdefs.h |
d9898ee8 | 1865 | |
1866 | # Predefined preprocessor variables. | |
1867 | ||
1868 | cat >>confdefs.h <<_ACEOF | |
1869 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1870 | _ACEOF | |
1871 | ||
1872 | ||
1873 | cat >>confdefs.h <<_ACEOF | |
1874 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1875 | _ACEOF | |
1876 | ||
1877 | ||
1878 | cat >>confdefs.h <<_ACEOF | |
1879 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1880 | _ACEOF | |
1881 | ||
1882 | ||
1883 | cat >>confdefs.h <<_ACEOF | |
1884 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1885 | _ACEOF | |
1886 | ||
1887 | ||
1888 | cat >>confdefs.h <<_ACEOF | |
1889 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1890 | _ACEOF | |
1891 | ||
1892 | ||
1893 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
1894 | # Prefer an explicitly selected file to automatically selected ones. |
1895 | ac_site_file1=NONE | |
1896 | ac_site_file2=NONE | |
dd184caf | 1897 | if test -n "$CONFIG_SITE"; then |
8d138742 | 1898 | ac_site_file1=$CONFIG_SITE |
dd184caf | 1899 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
1900 | ac_site_file1=$prefix/share/config.site |
1901 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 1902 | else |
8d138742 CE |
1903 | ac_site_file1=$ac_default_prefix/share/config.site |
1904 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 1905 | fi |
8d138742 | 1906 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 1907 | do |
8d138742 | 1908 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 1909 | if test -r "$ac_site_file"; then |
8d138742 CE |
1910 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1911 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 1912 | sed 's/^/| /' "$ac_site_file" >&5 |
1913 | . "$ac_site_file" | |
1914 | fi | |
1915 | done | |
1916 | ||
1917 | if test -r "$cache_file"; then | |
1918 | # Some versions of bash will fail to source /dev/null (special | |
1919 | # files actually), so we avoid doing that. | |
1920 | if test -f "$cache_file"; then | |
8d138742 CE |
1921 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1922 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 1923 | case $cache_file in |
dd184caf | 1924 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1925 | *) . "./$cache_file";; | |
d9898ee8 | 1926 | esac |
1927 | fi | |
1928 | else | |
8d138742 CE |
1929 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1930 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 1931 | >$cache_file |
1932 | fi | |
1933 | ||
1934 | # Check that the precious variables saved in the cache have kept the same | |
1935 | # value. | |
1936 | ac_cache_corrupted=false | |
dd184caf | 1937 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 1938 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1939 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 1940 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1941 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 1942 | case $ac_old_set,$ac_new_set in |
1943 | set,) | |
8d138742 CE |
1944 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1945 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 1946 | ac_cache_corrupted=: ;; |
1947 | ,set) | |
8d138742 CE |
1948 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1949 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 1950 | ac_cache_corrupted=: ;; |
1951 | ,);; | |
1952 | *) | |
1953 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
1954 | # differences in whitespace do not lead to failure. |
1955 | ac_old_val_w=`echo x $ac_old_val` | |
1956 | ac_new_val_w=`echo x $ac_new_val` | |
1957 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1958 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1959 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1960 | ac_cache_corrupted=: | |
1961 | else | |
1962 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1963 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1964 | eval $ac_var=\$ac_old_val | |
1965 | fi | |
1966 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1967 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1968 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1969 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 1970 | fi;; |
1971 | esac | |
1972 | # Pass precious variables to config.status. | |
1973 | if test "$ac_new_set" = set; then | |
1974 | case $ac_new_val in | |
8d138742 | 1975 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1976 | *) ac_arg=$ac_var=$ac_new_val ;; |
1977 | esac | |
1978 | case " $ac_configure_args " in | |
1979 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1980 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1981 | esac | |
1982 | fi | |
1983 | done | |
1984 | if $ac_cache_corrupted; then | |
8d138742 CE |
1985 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1986 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1987 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1988 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1989 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1990 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 1991 | { (exit 1); exit 1; }; } |
1992 | fi | |
1993 | ||
d9898ee8 | 1994 | |
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
dd184caf | 2018 | ac_ext=c |
2019 | ac_cpp='$CPP $CPPFLAGS' | |
2020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2023 | |
2024 | ||
2025 | ||
2026 | >confdefs.h # Kill PACKAGE_ macros | |
2027 | ||
2028 | ||
dd184caf | 2029 | ac_config_headers="$ac_config_headers config.h" |
2030 | ||
8d138742 | 2031 | am__api_version='1.11' |
d9898ee8 | 2032 | |
d9898ee8 | 2033 | ac_aux_dir= |
dd184caf | 2034 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2035 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2036 | ac_aux_dir=$ac_dir |
2037 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2038 | break | |
dd184caf | 2039 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2040 | ac_aux_dir=$ac_dir |
2041 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2042 | break | |
dd184caf | 2043 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2044 | ac_aux_dir=$ac_dir |
2045 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2046 | break | |
2047 | fi | |
2048 | done | |
2049 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2050 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2051 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2052 | { (exit 1); exit 1; }; } |
2053 | fi | |
dd184caf | 2054 | |
2055 | # These three variables are undocumented and unsupported, | |
2056 | # and are intended to be withdrawn in a future Autoconf release. | |
2057 | # They can cause serious problems if a builder's source tree is in a directory | |
2058 | # whose full name contains unusual characters. | |
2059 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2060 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2061 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2062 | ||
d9898ee8 | 2063 | |
2064 | # Find a good install program. We prefer a C program (faster), | |
2065 | # so one script is as good as another. But avoid the broken or | |
2066 | # incompatible versions: | |
2067 | # SysV /etc/install, /usr/sbin/install | |
2068 | # SunOS /usr/etc/install | |
2069 | # IRIX /sbin/install | |
2070 | # AIX /bin/install | |
2071 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2072 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2073 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2074 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2075 | # OS/2's system install, which has a completely different semantic | |
2076 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2077 | # Reject install programs that cannot install multiple files. |
2078 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2079 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2080 | if test -z "$INSTALL"; then |
2081 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2082 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2083 | else |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2085 | for as_dir in $PATH | |
2086 | do | |
2087 | IFS=$as_save_IFS | |
2088 | test -z "$as_dir" && as_dir=. | |
2089 | # Account for people who put trailing slashes in PATH elements. | |
2090 | case $as_dir/ in | |
2091 | ./ | .// | /cC/* | \ | |
2092 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2093 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2094 | /usr/ucb/* ) ;; | |
2095 | *) | |
2096 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2097 | # Don't use installbsd from OSF since it installs stuff as root | |
2098 | # by default. | |
2099 | for ac_prog in ginstall scoinst install; do | |
2100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2101 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2102 | if test $ac_prog = install && |
2103 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2104 | # AIX install. It has an incompatible calling convention. | |
2105 | : | |
2106 | elif test $ac_prog = install && | |
2107 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2108 | # program-specific install script used by HP pwplus--don't use. | |
2109 | : | |
2110 | else | |
8d138742 CE |
2111 | rm -rf conftest.one conftest.two conftest.dir |
2112 | echo one > conftest.one | |
2113 | echo two > conftest.two | |
2114 | mkdir conftest.dir | |
2115 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2116 | test -s conftest.one && test -s conftest.two && | |
2117 | test -s conftest.dir/conftest.one && | |
2118 | test -s conftest.dir/conftest.two | |
2119 | then | |
2120 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2121 | break 3 | |
2122 | fi | |
d9898ee8 | 2123 | fi |
2124 | fi | |
2125 | done | |
2126 | done | |
2127 | ;; | |
2128 | esac | |
8d138742 | 2129 | |
d9898ee8 | 2130 | done |
dd184caf | 2131 | IFS=$as_save_IFS |
d9898ee8 | 2132 | |
8d138742 | 2133 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2134 | |
2135 | fi | |
2136 | if test "${ac_cv_path_install+set}" = set; then | |
2137 | INSTALL=$ac_cv_path_install | |
2138 | else | |
dd184caf | 2139 | # As a last resort, use the slow shell script. Don't cache a |
2140 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2141 | # break other packages using the cache if that directory is |
dd184caf | 2142 | # removed, or if the value is a relative name. |
d9898ee8 | 2143 | INSTALL=$ac_install_sh |
2144 | fi | |
2145 | fi | |
8d138742 CE |
2146 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2147 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2148 | |
2149 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2150 | # It thinks the first close brace ends the variable substitution. | |
2151 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2152 | ||
2153 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2154 | ||
2155 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2156 | ||
8d138742 CE |
2157 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2158 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2159 | # Just in case |
2160 | sleep 1 | |
2161 | echo timestamp > conftest.file | |
8d138742 CE |
2162 | # Reject unsafe characters in $srcdir or the absolute working directory |
2163 | # name. Accept space and tab only in the latter. | |
2164 | am_lf=' | |
2165 | ' | |
2166 | case `pwd` in | |
2167 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2168 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2169 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2170 | { (exit 1); exit 1; }; };; | |
2171 | esac | |
2172 | case $srcdir in | |
2173 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2174 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2175 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2176 | { (exit 1); exit 1; }; };; | |
2177 | esac | |
2178 | ||
d9898ee8 | 2179 | # Do `set' in a subshell so we don't clobber the current shell's |
2180 | # arguments. Must try -L first in case configure is actually a | |
2181 | # symlink; some systems play weird games with the mod time of symlinks | |
2182 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2183 | # directory). | |
2184 | if ( | |
8d138742 | 2185 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2186 | if test "$*" = "X"; then |
2187 | # -L didn't work. | |
8d138742 | 2188 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2189 | fi |
2190 | rm -f conftest.file | |
2191 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2192 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2193 | ||
2194 | # If neither matched, then we have a broken ls. This can happen | |
2195 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2196 | # broken ls alias from the environment. This has actually | |
2197 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2198 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2199 | alias in your environment" >&5 |
8d138742 | 2200 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2201 | alias in your environment" >&2;} |
2202 | { (exit 1); exit 1; }; } | |
2203 | fi | |
2204 | ||
2205 | test "$2" = conftest.file | |
2206 | ) | |
2207 | then | |
2208 | # Ok. | |
2209 | : | |
2210 | else | |
8d138742 | 2211 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2212 | Check your system clock" >&5 |
8d138742 | 2213 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2214 | Check your system clock" >&2;} |
2215 | { (exit 1); exit 1; }; } | |
2216 | fi | |
8d138742 CE |
2217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2218 | $as_echo "yes" >&6; } | |
d9898ee8 | 2219 | test "$program_prefix" != NONE && |
dd184caf | 2220 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2221 | # Use a double $ so make ignores it. |
2222 | test "$program_suffix" != NONE && | |
dd184caf | 2223 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2224 | # Double any \ or $. |
d9898ee8 | 2225 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2226 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2227 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2228 | |
2229 | # expand $ac_aux_dir to an absolute path | |
2230 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2231 | ||
8d138742 CE |
2232 | if test x"${MISSING+set}" != xset; then |
2233 | case $am_aux_dir in | |
2234 | *\ * | *\ *) | |
2235 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2236 | *) | |
2237 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2238 | esac | |
2239 | fi | |
d9898ee8 | 2240 | # Use eval to expand $SHELL |
2241 | if eval "$MISSING --run true"; then | |
2242 | am_missing_run="$MISSING --run " | |
2243 | else | |
2244 | am_missing_run= | |
8d138742 CE |
2245 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2246 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2247 | fi | |
2248 | ||
2249 | if test x"${install_sh}" != xset; then | |
2250 | case $am_aux_dir in | |
2251 | *\ * | *\ *) | |
2252 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2253 | *) | |
2254 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2255 | esac | |
2256 | fi | |
2257 | ||
2258 | # Installed binaries are usually stripped using `strip' when the user | |
2259 | # run `make install-strip'. However `strip' might not be the right | |
2260 | # tool to use in cross-compilation environments, therefore Automake | |
2261 | # will honor the `STRIP' environment variable to overrule this program. | |
2262 | if test "$cross_compiling" != no; then | |
2263 | if test -n "$ac_tool_prefix"; then | |
2264 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2265 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2266 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2267 | $as_echo_n "checking for $ac_word... " >&6; } | |
2268 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2269 | $as_echo_n "(cached) " >&6 | |
2270 | else | |
2271 | if test -n "$STRIP"; then | |
2272 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2273 | else | |
2274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2275 | for as_dir in $PATH | |
2276 | do | |
2277 | IFS=$as_save_IFS | |
2278 | test -z "$as_dir" && as_dir=. | |
2279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2281 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2282 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2283 | break 2 | |
2284 | fi | |
2285 | done | |
2286 | done | |
2287 | IFS=$as_save_IFS | |
2288 | ||
2289 | fi | |
2290 | fi | |
2291 | STRIP=$ac_cv_prog_STRIP | |
2292 | if test -n "$STRIP"; then | |
2293 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2294 | $as_echo "$STRIP" >&6; } | |
2295 | else | |
2296 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2297 | $as_echo "no" >&6; } | |
d9898ee8 | 2298 | fi |
2299 | ||
8d138742 CE |
2300 | |
2301 | fi | |
2302 | if test -z "$ac_cv_prog_STRIP"; then | |
2303 | ac_ct_STRIP=$STRIP | |
2304 | # Extract the first word of "strip", so it can be a program name with args. | |
2305 | set dummy strip; ac_word=$2 | |
2306 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2307 | $as_echo_n "checking for $ac_word... " >&6; } | |
2308 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2309 | $as_echo_n "(cached) " >&6 | |
2310 | else | |
2311 | if test -n "$ac_ct_STRIP"; then | |
2312 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2313 | else | |
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2315 | for as_dir in $PATH | |
2316 | do | |
2317 | IFS=$as_save_IFS | |
2318 | test -z "$as_dir" && as_dir=. | |
2319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2321 | ac_cv_prog_ac_ct_STRIP="strip" | |
2322 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2323 | break 2 | |
2324 | fi | |
2325 | done | |
2326 | done | |
2327 | IFS=$as_save_IFS | |
2328 | ||
2329 | fi | |
2330 | fi | |
2331 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2332 | if test -n "$ac_ct_STRIP"; then | |
2333 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2334 | $as_echo "$ac_ct_STRIP" >&6; } | |
2335 | else | |
2336 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2337 | $as_echo "no" >&6; } | |
2338 | fi | |
2339 | ||
2340 | if test "x$ac_ct_STRIP" = x; then | |
2341 | STRIP=":" | |
2342 | else | |
2343 | case $cross_compiling:$ac_tool_warned in | |
2344 | yes:) | |
2345 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2347 | ac_tool_warned=yes ;; | |
2348 | esac | |
2349 | STRIP=$ac_ct_STRIP | |
2350 | fi | |
2351 | else | |
2352 | STRIP="$ac_cv_prog_STRIP" | |
2353 | fi | |
2354 | ||
2355 | fi | |
2356 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2357 | ||
2358 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2359 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2360 | if test -z "$MKDIR_P"; then |
2361 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2362 | $as_echo_n "(cached) " >&6 |
dd184caf | 2363 | else |
2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2365 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2366 | do | |
2367 | IFS=$as_save_IFS | |
2368 | test -z "$as_dir" && as_dir=. | |
2369 | for ac_prog in mkdir gmkdir; do | |
2370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2371 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2372 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2373 | 'mkdir (GNU coreutils) '* | \ | |
2374 | 'mkdir (coreutils) '* | \ | |
2375 | 'mkdir (fileutils) '4.1*) | |
2376 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2377 | break 3;; | |
2378 | esac | |
2379 | done | |
2380 | done | |
2381 | done | |
2382 | IFS=$as_save_IFS | |
2383 | ||
2384 | fi | |
2385 | ||
2386 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2387 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2388 | else |
dd184caf | 2389 | # As a last resort, use the slow shell script. Don't cache a |
2390 | # value for MKDIR_P within a source directory, because that will | |
2391 | # break other packages using the cache if that directory is | |
2392 | # removed, or if the value is a relative name. | |
2393 | test -d ./--version && rmdir ./--version | |
2394 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2395 | fi |
2396 | fi | |
8d138742 CE |
2397 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2398 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2399 | |
2400 | mkdir_p="$MKDIR_P" | |
2401 | case $mkdir_p in | |
2402 | [\\/$]* | ?:[\\/]*) ;; | |
2403 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2404 | esac | |
d9898ee8 | 2405 | |
2406 | for ac_prog in gawk mawk nawk awk | |
2407 | do | |
2408 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2409 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2411 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2412 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2413 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2414 | else |
2415 | if test -n "$AWK"; then | |
2416 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2417 | else | |
2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2419 | for as_dir in $PATH | |
2420 | do | |
2421 | IFS=$as_save_IFS | |
2422 | test -z "$as_dir" && as_dir=. | |
2423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2425 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2426 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2427 | break 2 |
2428 | fi | |
2429 | done | |
2430 | done | |
dd184caf | 2431 | IFS=$as_save_IFS |
d9898ee8 | 2432 | |
2433 | fi | |
2434 | fi | |
2435 | AWK=$ac_cv_prog_AWK | |
2436 | if test -n "$AWK"; then | |
8d138742 CE |
2437 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2438 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2439 | else |
8d138742 CE |
2440 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2441 | $as_echo "no" >&6; } | |
d9898ee8 | 2442 | fi |
2443 | ||
dd184caf | 2444 | |
d9898ee8 | 2445 | test -n "$AWK" && break |
2446 | done | |
2447 | ||
8d138742 CE |
2448 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2449 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2450 | set x ${MAKE-make} | |
2451 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2452 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2453 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2454 | else |
2455 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2456 | SHELL = /bin/sh |
d9898ee8 | 2457 | all: |
dd184caf | 2458 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2459 | _ACEOF |
2460 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2461 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2462 | *@@@%%%=?*=@@@%%%*) | |
2463 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2464 | *) | |
2465 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2466 | esac | |
d9898ee8 | 2467 | rm -f conftest.make |
2468 | fi | |
dd184caf | 2469 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2470 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2471 | $as_echo "yes" >&6; } | |
d9898ee8 | 2472 | SET_MAKE= |
2473 | else | |
8d138742 CE |
2474 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2475 | $as_echo "no" >&6; } | |
d9898ee8 | 2476 | SET_MAKE="MAKE=${MAKE-make}" |
2477 | fi | |
2478 | ||
2479 | rm -rf .tst 2>/dev/null | |
2480 | mkdir .tst 2>/dev/null | |
2481 | if test -d .tst; then | |
2482 | am__leading_dot=. | |
2483 | else | |
2484 | am__leading_dot=_ | |
2485 | fi | |
2486 | rmdir .tst 2>/dev/null | |
2487 | ||
dd184caf | 2488 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2489 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2490 | # is not polluted with repeated "-I." | |
2491 | am__isrc=' -I$(srcdir)' | |
2492 | # test to see if srcdir already configured | |
2493 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2494 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2495 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2496 | { (exit 1); exit 1; }; } |
dd184caf | 2497 | fi |
d9898ee8 | 2498 | fi |
2499 | ||
2500 | # test whether we have cygpath | |
2501 | if test -z "$CYGPATH_W"; then | |
2502 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2503 | CYGPATH_W='cygpath -w' | |
2504 | else | |
2505 | CYGPATH_W=echo | |
2506 | fi | |
2507 | fi | |
2508 | ||
2509 | ||
2510 | # Define the identity of the package. | |
2511 | PACKAGE='libmd5' | |
2512 | VERSION='1.21' | |
2513 | ||
2514 | ||
2515 | # Some tools Automake needs. | |
2516 | ||
2517 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2518 | ||
2519 | ||
2520 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2521 | ||
2522 | ||
2523 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2524 | ||
2525 | ||
2526 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2527 | ||
2528 | ||
2529 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2530 | ||
d9898ee8 | 2531 | # We need awk for the "check" target. The system "awk" is bad on |
2532 | # some platforms. | |
2533 | # Always define AMTAR for backward compatibility. | |
2534 | ||
2535 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2536 | ||
2537 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | ||
2543 | ||
dd184caf | 2544 | if test -d ${srcdir}/../libhmac; then |
d9898ee8 | 2545 | HMACC_TRUE= |
2546 | HMACC_FALSE='#' | |
2547 | else | |
2548 | HMACC_TRUE='#' | |
2549 | HMACC_FALSE= | |
2550 | fi | |
2551 | ||
2552 | ||
2553 | for ac_prog in gawk mawk nawk awk | |
2554 | do | |
2555 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2556 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2557 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2558 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2559 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2560 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2561 | else |
2562 | if test -n "$AWK"; then | |
2563 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2564 | else | |
2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2566 | for as_dir in $PATH | |
2567 | do | |
2568 | IFS=$as_save_IFS | |
2569 | test -z "$as_dir" && as_dir=. | |
2570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2572 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2573 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2574 | break 2 |
2575 | fi | |
2576 | done | |
2577 | done | |
dd184caf | 2578 | IFS=$as_save_IFS |
d9898ee8 | 2579 | |
2580 | fi | |
2581 | fi | |
2582 | AWK=$ac_cv_prog_AWK | |
2583 | if test -n "$AWK"; then | |
8d138742 CE |
2584 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2585 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2586 | else |
8d138742 CE |
2587 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2588 | $as_echo "no" >&6; } | |
d9898ee8 | 2589 | fi |
2590 | ||
dd184caf | 2591 | |
d9898ee8 | 2592 | test -n "$AWK" && break |
2593 | done | |
2594 | ||
2595 | # Find a good install program. We prefer a C program (faster), | |
2596 | # so one script is as good as another. But avoid the broken or | |
2597 | # incompatible versions: | |
2598 | # SysV /etc/install, /usr/sbin/install | |
2599 | # SunOS /usr/etc/install | |
2600 | # IRIX /sbin/install | |
2601 | # AIX /bin/install | |
2602 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2603 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2604 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2605 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2606 | # OS/2's system install, which has a completely different semantic | |
2607 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2608 | # Reject install programs that cannot install multiple files. |
2609 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2610 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2611 | if test -z "$INSTALL"; then |
2612 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2613 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2614 | else |
2615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2616 | for as_dir in $PATH | |
2617 | do | |
2618 | IFS=$as_save_IFS | |
2619 | test -z "$as_dir" && as_dir=. | |
2620 | # Account for people who put trailing slashes in PATH elements. | |
2621 | case $as_dir/ in | |
2622 | ./ | .// | /cC/* | \ | |
2623 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2624 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2625 | /usr/ucb/* ) ;; | |
2626 | *) | |
2627 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2628 | # Don't use installbsd from OSF since it installs stuff as root | |
2629 | # by default. | |
2630 | for ac_prog in ginstall scoinst install; do | |
2631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2632 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2633 | if test $ac_prog = install && |
2634 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2635 | # AIX install. It has an incompatible calling convention. | |
2636 | : | |
2637 | elif test $ac_prog = install && | |
2638 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2639 | # program-specific install script used by HP pwplus--don't use. | |
2640 | : | |
2641 | else | |
8d138742 CE |
2642 | rm -rf conftest.one conftest.two conftest.dir |
2643 | echo one > conftest.one | |
2644 | echo two > conftest.two | |
2645 | mkdir conftest.dir | |
2646 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2647 | test -s conftest.one && test -s conftest.two && | |
2648 | test -s conftest.dir/conftest.one && | |
2649 | test -s conftest.dir/conftest.two | |
2650 | then | |
2651 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2652 | break 3 | |
2653 | fi | |
d9898ee8 | 2654 | fi |
2655 | fi | |
2656 | done | |
2657 | done | |
2658 | ;; | |
2659 | esac | |
8d138742 | 2660 | |
d9898ee8 | 2661 | done |
dd184caf | 2662 | IFS=$as_save_IFS |
d9898ee8 | 2663 | |
8d138742 | 2664 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2665 | |
2666 | fi | |
2667 | if test "${ac_cv_path_install+set}" = set; then | |
2668 | INSTALL=$ac_cv_path_install | |
2669 | else | |
dd184caf | 2670 | # As a last resort, use the slow shell script. Don't cache a |
2671 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2672 | # break other packages using the cache if that directory is |
dd184caf | 2673 | # removed, or if the value is a relative name. |
d9898ee8 | 2674 | INSTALL=$ac_install_sh |
2675 | fi | |
2676 | fi | |
8d138742 CE |
2677 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2678 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2679 | |
2680 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2681 | # It thinks the first close brace ends the variable substitution. | |
2682 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2683 | ||
2684 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2685 | ||
2686 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2687 | ||
8d138742 CE |
2688 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2689 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d9898ee8 | 2690 | LN_S=$as_ln_s |
2691 | if test "$LN_S" = "ln -s"; then | |
8d138742 CE |
2692 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2693 | $as_echo "yes" >&6; } | |
d9898ee8 | 2694 | else |
8d138742 CE |
2695 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2696 | $as_echo "no, using $LN_S" >&6; } | |
d9898ee8 | 2697 | fi |
2698 | ||
2699 | ac_ext=c | |
2700 | ac_cpp='$CPP $CPPFLAGS' | |
2701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2704 | if test -n "$ac_tool_prefix"; then | |
2705 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2706 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8d138742 CE |
2707 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2709 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2710 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2711 | else |
2712 | if test -n "$CC"; then | |
2713 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2714 | else | |
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2716 | for as_dir in $PATH | |
2717 | do | |
2718 | IFS=$as_save_IFS | |
2719 | test -z "$as_dir" && as_dir=. | |
2720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2722 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8d138742 | 2723 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2724 | break 2 |
2725 | fi | |
2726 | done | |
2727 | done | |
dd184caf | 2728 | IFS=$as_save_IFS |
d9898ee8 | 2729 | |
2730 | fi | |
2731 | fi | |
2732 | CC=$ac_cv_prog_CC | |
2733 | if test -n "$CC"; then | |
8d138742 CE |
2734 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2735 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2736 | else |
8d138742 CE |
2737 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2738 | $as_echo "no" >&6; } | |
d9898ee8 | 2739 | fi |
2740 | ||
dd184caf | 2741 | |
d9898ee8 | 2742 | fi |
2743 | if test -z "$ac_cv_prog_CC"; then | |
2744 | ac_ct_CC=$CC | |
2745 | # Extract the first word of "gcc", so it can be a program name with args. | |
2746 | set dummy gcc; ac_word=$2 | |
8d138742 CE |
2747 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2748 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2749 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2750 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2751 | else |
2752 | if test -n "$ac_ct_CC"; then | |
2753 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2754 | else | |
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2756 | for as_dir in $PATH | |
2757 | do | |
2758 | IFS=$as_save_IFS | |
2759 | test -z "$as_dir" && as_dir=. | |
2760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2762 | ac_cv_prog_ac_ct_CC="gcc" |
8d138742 | 2763 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2764 | break 2 |
2765 | fi | |
2766 | done | |
2767 | done | |
dd184caf | 2768 | IFS=$as_save_IFS |
d9898ee8 | 2769 | |
2770 | fi | |
2771 | fi | |
2772 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2773 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2774 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2775 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2776 | else |
8d138742 CE |
2777 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2778 | $as_echo "no" >&6; } | |
d9898ee8 | 2779 | fi |
2780 | ||
dd184caf | 2781 | if test "x$ac_ct_CC" = x; then |
2782 | CC="" | |
2783 | else | |
2784 | case $cross_compiling:$ac_tool_warned in | |
2785 | yes:) | |
8d138742 CE |
2786 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2788 | ac_tool_warned=yes ;; |
2789 | esac | |
2790 | CC=$ac_ct_CC | |
2791 | fi | |
d9898ee8 | 2792 | else |
2793 | CC="$ac_cv_prog_CC" | |
2794 | fi | |
2795 | ||
2796 | if test -z "$CC"; then | |
dd184caf | 2797 | if test -n "$ac_tool_prefix"; then |
2798 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2799 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2800 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2801 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2802 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2803 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2804 | else |
2805 | if test -n "$CC"; then | |
2806 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2807 | else | |
2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2809 | for as_dir in $PATH | |
2810 | do | |
2811 | IFS=$as_save_IFS | |
2812 | test -z "$as_dir" && as_dir=. | |
2813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2815 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2816 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2817 | break 2 |
2818 | fi | |
2819 | done | |
2820 | done | |
dd184caf | 2821 | IFS=$as_save_IFS |
d9898ee8 | 2822 | |
2823 | fi | |
2824 | fi | |
2825 | CC=$ac_cv_prog_CC | |
2826 | if test -n "$CC"; then | |
8d138742 CE |
2827 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2828 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2829 | else |
8d138742 CE |
2830 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2831 | $as_echo "no" >&6; } | |
d9898ee8 | 2832 | fi |
2833 | ||
d9898ee8 | 2834 | |
dd184caf | 2835 | fi |
d9898ee8 | 2836 | fi |
2837 | if test -z "$CC"; then | |
2838 | # Extract the first word of "cc", so it can be a program name with args. | |
2839 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2840 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2841 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2842 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2843 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2844 | else |
2845 | if test -n "$CC"; then | |
2846 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2847 | else | |
2848 | ac_prog_rejected=no | |
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2850 | for as_dir in $PATH | |
2851 | do | |
2852 | IFS=$as_save_IFS | |
2853 | test -z "$as_dir" && as_dir=. | |
2854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2856 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2857 | ac_prog_rejected=yes | |
2858 | continue | |
2859 | fi | |
2860 | ac_cv_prog_CC="cc" | |
8d138742 | 2861 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2862 | break 2 |
2863 | fi | |
2864 | done | |
2865 | done | |
dd184caf | 2866 | IFS=$as_save_IFS |
d9898ee8 | 2867 | |
2868 | if test $ac_prog_rejected = yes; then | |
2869 | # We found a bogon in the path, so make sure we never use it. | |
2870 | set dummy $ac_cv_prog_CC | |
2871 | shift | |
2872 | if test $# != 0; then | |
2873 | # We chose a different compiler from the bogus one. | |
2874 | # However, it has the same basename, so the bogon will be chosen | |
2875 | # first if we set CC to just the basename; use the full file name. | |
2876 | shift | |
2877 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2878 | fi | |
2879 | fi | |
2880 | fi | |
2881 | fi | |
2882 | CC=$ac_cv_prog_CC | |
2883 | if test -n "$CC"; then | |
8d138742 CE |
2884 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2885 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2886 | else |
8d138742 CE |
2887 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2888 | $as_echo "no" >&6; } | |
d9898ee8 | 2889 | fi |
2890 | ||
dd184caf | 2891 | |
d9898ee8 | 2892 | fi |
2893 | if test -z "$CC"; then | |
2894 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2895 | for ac_prog in cl.exe |
d9898ee8 | 2896 | do |
2897 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2898 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2899 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2900 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2901 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2902 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2903 | else |
2904 | if test -n "$CC"; then | |
2905 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2906 | else | |
2907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2908 | for as_dir in $PATH | |
2909 | do | |
2910 | IFS=$as_save_IFS | |
2911 | test -z "$as_dir" && as_dir=. | |
2912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2914 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2915 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2916 | break 2 |
2917 | fi | |
2918 | done | |
2919 | done | |
dd184caf | 2920 | IFS=$as_save_IFS |
d9898ee8 | 2921 | |
2922 | fi | |
2923 | fi | |
2924 | CC=$ac_cv_prog_CC | |
2925 | if test -n "$CC"; then | |
8d138742 CE |
2926 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2927 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2928 | else |
8d138742 CE |
2929 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2930 | $as_echo "no" >&6; } | |
d9898ee8 | 2931 | fi |
2932 | ||
dd184caf | 2933 | |
d9898ee8 | 2934 | test -n "$CC" && break |
2935 | done | |
2936 | fi | |
2937 | if test -z "$CC"; then | |
2938 | ac_ct_CC=$CC | |
dd184caf | 2939 | for ac_prog in cl.exe |
d9898ee8 | 2940 | do |
2941 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2942 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2943 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2944 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2945 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2946 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2947 | else |
2948 | if test -n "$ac_ct_CC"; then | |
2949 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2950 | else | |
2951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2952 | for as_dir in $PATH | |
2953 | do | |
2954 | IFS=$as_save_IFS | |
2955 | test -z "$as_dir" && as_dir=. | |
2956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2958 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 2959 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2960 | break 2 |
2961 | fi | |
2962 | done | |
2963 | done | |
dd184caf | 2964 | IFS=$as_save_IFS |
d9898ee8 | 2965 | |
2966 | fi | |
2967 | fi | |
2968 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2969 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2970 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2971 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2972 | else |
8d138742 CE |
2973 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2974 | $as_echo "no" >&6; } | |
d9898ee8 | 2975 | fi |
2976 | ||
dd184caf | 2977 | |
d9898ee8 | 2978 | test -n "$ac_ct_CC" && break |
2979 | done | |
2980 | ||
dd184caf | 2981 | if test "x$ac_ct_CC" = x; then |
2982 | CC="" | |
2983 | else | |
2984 | case $cross_compiling:$ac_tool_warned in | |
2985 | yes:) | |
8d138742 CE |
2986 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2988 | ac_tool_warned=yes ;; |
2989 | esac | |
2990 | CC=$ac_ct_CC | |
2991 | fi | |
d9898ee8 | 2992 | fi |
2993 | ||
2994 | fi | |
2995 | ||
2996 | ||
8d138742 CE |
2997 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2999 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 3000 | See \`config.log' for more details." >&5 |
8d138742 | 3001 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 3002 | See \`config.log' for more details." >&2;} |
8d138742 | 3003 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3004 | |
3005 | # Provide some information about the compiler. | |
8d138742 CE |
3006 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3007 | set X $ac_compile | |
3008 | ac_compiler=$2 | |
dd184caf | 3009 | { (ac_try="$ac_compiler --version >&5" |
3010 | case "(($ac_try" in | |
3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3012 | *) ac_try_echo=$ac_try;; | |
3013 | esac | |
8d138742 CE |
3014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3015 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3016 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 3017 | ac_status=$? |
8d138742 | 3018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3019 | (exit $ac_status); } |
dd184caf | 3020 | { (ac_try="$ac_compiler -v >&5" |
3021 | case "(($ac_try" in | |
3022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3023 | *) ac_try_echo=$ac_try;; | |
3024 | esac | |
8d138742 CE |
3025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3026 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3027 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 3028 | ac_status=$? |
8d138742 | 3029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3030 | (exit $ac_status); } |
dd184caf | 3031 | { (ac_try="$ac_compiler -V >&5" |
3032 | case "(($ac_try" in | |
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3034 | *) ac_try_echo=$ac_try;; | |
3035 | esac | |
8d138742 CE |
3036 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3037 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3038 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 3039 | ac_status=$? |
8d138742 | 3040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3041 | (exit $ac_status); } |
3042 | ||
3043 | cat >conftest.$ac_ext <<_ACEOF | |
3044 | /* confdefs.h. */ | |
3045 | _ACEOF | |
3046 | cat confdefs.h >>conftest.$ac_ext | |
3047 | cat >>conftest.$ac_ext <<_ACEOF | |
3048 | /* end confdefs.h. */ | |
3049 | ||
3050 | int | |
3051 | main () | |
3052 | { | |
3053 | ||
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3059 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3060 | # Try to create an executable without -o first, disregard a.out. |
3061 | # It will help us diagnose broken compilers, and finding out an intuition | |
3062 | # of exeext. | |
8d138742 CE |
3063 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3064 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3065 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3066 | ||
3067 | # The possible output files: | |
3068 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3069 | ||
dd184caf | 3070 | ac_rmfiles= |
3071 | for ac_file in $ac_files | |
3072 | do | |
3073 | case $ac_file in | |
8d138742 | 3074 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3075 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3076 | esac | |
3077 | done | |
3078 | rm -f $ac_rmfiles | |
3079 | ||
3080 | if { (ac_try="$ac_link_default" | |
3081 | case "(($ac_try" in | |
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | *) ac_try_echo=$ac_try;; | |
3084 | esac | |
8d138742 CE |
3085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3086 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3087 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3088 | ac_status=$? |
8d138742 | 3089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3090 | (exit $ac_status); }; then |
dd184caf | 3091 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3092 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3093 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3094 | # so that the user can short-circuit this test for compilers unknown to | |
3095 | # Autoconf. | |
3096 | for ac_file in $ac_files '' | |
d9898ee8 | 3097 | do |
3098 | test -f "$ac_file" || continue | |
3099 | case $ac_file in | |
8d138742 | 3100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3101 | ;; |
3102 | [ab].out ) | |
3103 | # We found the default executable, but exeext='' is most | |
3104 | # certainly right. | |
3105 | break;; | |
3106 | *.* ) | |
dd184caf | 3107 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3108 | then :; else | |
3109 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3110 | fi | |
3111 | # We set ac_cv_exeext here because the later test for it is not | |
3112 | # safe: cross compilers may not add the suffix if given an `-o' | |
3113 | # argument, so we may need to know it at that point already. | |
3114 | # Even if this section looks crufty: it has the advantage of | |
3115 | # actually working. | |
d9898ee8 | 3116 | break;; |
3117 | * ) | |
3118 | break;; | |
3119 | esac | |
3120 | done | |
dd184caf | 3121 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3122 | ||
d9898ee8 | 3123 | else |
dd184caf | 3124 | ac_file='' |
3125 | fi | |
3126 | ||
8d138742 CE |
3127 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3128 | $as_echo "$ac_file" >&6; } | |
dd184caf | 3129 | if test -z "$ac_file"; then |
8d138742 | 3130 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3131 | sed 's/^/| /' conftest.$ac_ext >&5 |
3132 | ||
8d138742 CE |
3133 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3135 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 3136 | See \`config.log' for more details." >&5 |
8d138742 | 3137 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 3138 | See \`config.log' for more details." >&2;} |
8d138742 | 3139 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 3140 | fi |
3141 | ||
3142 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3143 | |
dd184caf | 3144 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3145 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3146 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3147 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 3148 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3149 | # If not cross compiling, check that we can run a simple program. | |
3150 | if test "$cross_compiling" != yes; then | |
3151 | if { ac_try='./$ac_file' | |
dd184caf | 3152 | { (case "(($ac_try" in |
3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3154 | *) ac_try_echo=$ac_try;; | |
3155 | esac | |
8d138742 CE |
3156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3157 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3158 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3159 | ac_status=$? |
8d138742 | 3160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3161 | (exit $ac_status); }; }; then |
3162 | cross_compiling=no | |
3163 | else | |
3164 | if test "$cross_compiling" = maybe; then | |
3165 | cross_compiling=yes | |
3166 | else | |
8d138742 CE |
3167 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3168 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3169 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3170 | If you meant to cross compile, use \`--host'. |
3171 | See \`config.log' for more details." >&5 | |
8d138742 | 3172 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3173 | If you meant to cross compile, use \`--host'. |
3174 | See \`config.log' for more details." >&2;} | |
8d138742 | 3175 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3176 | fi |
3177 | fi | |
3178 | fi | |
8d138742 CE |
3179 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3180 | $as_echo "yes" >&6; } | |
d9898ee8 | 3181 | |
8d138742 | 3182 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3183 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3184 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3185 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3186 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3187 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3188 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3189 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3190 | |
8d138742 CE |
3191 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3192 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3193 | if { (ac_try="$ac_link" |
3194 | case "(($ac_try" in | |
3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3196 | *) ac_try_echo=$ac_try;; | |
3197 | esac | |
8d138742 CE |
3198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3199 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3200 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3201 | ac_status=$? |
8d138742 | 3202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3203 | (exit $ac_status); }; then |
3204 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3205 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3206 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3207 | # `rm'. | |
3208 | for ac_file in conftest.exe conftest conftest.*; do | |
3209 | test -f "$ac_file" || continue | |
3210 | case $ac_file in | |
8d138742 | 3211 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3212 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3213 | break;; |
3214 | * ) break;; | |
3215 | esac | |
3216 | done | |
3217 | else | |
8d138742 CE |
3218 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3220 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3221 | See \`config.log' for more details." >&5 |
8d138742 | 3222 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3223 | See \`config.log' for more details." >&2;} |
8d138742 | 3224 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3225 | fi |
3226 | ||
3227 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3228 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3229 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3230 | |
3231 | rm -f conftest.$ac_ext | |
3232 | EXEEXT=$ac_cv_exeext | |
3233 | ac_exeext=$EXEEXT | |
8d138742 CE |
3234 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3235 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3236 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3237 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3238 | else |
3239 | cat >conftest.$ac_ext <<_ACEOF | |
3240 | /* confdefs.h. */ | |
3241 | _ACEOF | |
3242 | cat confdefs.h >>conftest.$ac_ext | |
3243 | cat >>conftest.$ac_ext <<_ACEOF | |
3244 | /* end confdefs.h. */ | |
3245 | ||
3246 | int | |
3247 | main () | |
3248 | { | |
3249 | ||
3250 | ; | |
3251 | return 0; | |
3252 | } | |
3253 | _ACEOF | |
3254 | rm -f conftest.o conftest.obj | |
dd184caf | 3255 | if { (ac_try="$ac_compile" |
3256 | case "(($ac_try" in | |
3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3258 | *) ac_try_echo=$ac_try;; | |
3259 | esac | |
8d138742 CE |
3260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3261 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3262 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3263 | ac_status=$? |
8d138742 | 3264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3265 | (exit $ac_status); }; then |
dd184caf | 3266 | for ac_file in conftest.o conftest.obj conftest.*; do |
3267 | test -f "$ac_file" || continue; | |
d9898ee8 | 3268 | case $ac_file in |
8d138742 | 3269 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3270 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3271 | break;; | |
3272 | esac | |
3273 | done | |
3274 | else | |
8d138742 | 3275 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3276 | sed 's/^/| /' conftest.$ac_ext >&5 |
3277 | ||
8d138742 CE |
3278 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3280 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3281 | See \`config.log' for more details." >&5 |
8d138742 | 3282 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3283 | See \`config.log' for more details." >&2;} |
8d138742 | 3284 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3285 | fi |
3286 | ||
3287 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3288 | fi | |
8d138742 CE |
3289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3290 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3291 | OBJEXT=$ac_cv_objext |
3292 | ac_objext=$OBJEXT | |
8d138742 CE |
3293 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3294 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3295 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3296 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3297 | else |
3298 | cat >conftest.$ac_ext <<_ACEOF | |
3299 | /* confdefs.h. */ | |
3300 | _ACEOF | |
3301 | cat confdefs.h >>conftest.$ac_ext | |
3302 | cat >>conftest.$ac_ext <<_ACEOF | |
3303 | /* end confdefs.h. */ | |
3304 | ||
3305 | int | |
3306 | main () | |
3307 | { | |
3308 | #ifndef __GNUC__ | |
3309 | choke me | |
3310 | #endif | |
3311 | ||
3312 | ; | |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
3316 | rm -f conftest.$ac_objext | |
dd184caf | 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 | |
8d138742 CE |
3322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3323 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3324 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3325 | ac_status=$? |
3326 | grep -v '^ *+' conftest.er1 >conftest.err | |
3327 | rm -f conftest.er1 | |
3328 | cat conftest.err >&5 | |
8d138742 | 3329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3330 | (exit $ac_status); } && { |
3331 | test -z "$ac_c_werror_flag" || | |
3332 | test ! -s conftest.err | |
3333 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3334 | ac_compiler_gnu=yes |
3335 | else | |
8d138742 | 3336 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
3338 | ||
dd184caf | 3339 | ac_compiler_gnu=no |
d9898ee8 | 3340 | fi |
dd184caf | 3341 | |
3342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3343 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3344 | ||
3345 | fi | |
8d138742 CE |
3346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3347 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3348 | if test $ac_compiler_gnu = yes; then | |
3349 | GCC=yes | |
3350 | else | |
3351 | GCC= | |
3352 | fi | |
d9898ee8 | 3353 | ac_test_CFLAGS=${CFLAGS+set} |
3354 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3355 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3356 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3357 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3358 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3359 | else |
dd184caf | 3360 | ac_save_c_werror_flag=$ac_c_werror_flag |
3361 | ac_c_werror_flag=yes | |
3362 | ac_cv_prog_cc_g=no | |
3363 | CFLAGS="-g" | |
3364 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3365 | /* confdefs.h. */ |
3366 | _ACEOF | |
3367 | cat confdefs.h >>conftest.$ac_ext | |
3368 | cat >>conftest.$ac_ext <<_ACEOF | |
3369 | /* end confdefs.h. */ | |
3370 | ||
3371 | int | |
3372 | main () | |
3373 | { | |
3374 | ||
3375 | ; | |
3376 | return 0; | |
3377 | } | |
3378 | _ACEOF | |
3379 | rm -f conftest.$ac_objext | |
dd184caf | 3380 | if { (ac_try="$ac_compile" |
3381 | case "(($ac_try" in | |
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3383 | *) ac_try_echo=$ac_try;; | |
3384 | esac | |
8d138742 CE |
3385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3386 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3387 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3388 | ac_status=$? |
3389 | grep -v '^ *+' conftest.er1 >conftest.err | |
3390 | rm -f conftest.er1 | |
3391 | cat conftest.err >&5 | |
8d138742 | 3392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3393 | (exit $ac_status); } && { |
3394 | test -z "$ac_c_werror_flag" || | |
3395 | test ! -s conftest.err | |
3396 | } && test -s conftest.$ac_objext; then | |
3397 | ac_cv_prog_cc_g=yes | |
3398 | else | |
8d138742 | 3399 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
3401 | ||
3402 | CFLAGS="" | |
3403 | cat >conftest.$ac_ext <<_ACEOF | |
3404 | /* confdefs.h. */ | |
3405 | _ACEOF | |
3406 | cat confdefs.h >>conftest.$ac_ext | |
3407 | cat >>conftest.$ac_ext <<_ACEOF | |
3408 | /* end confdefs.h. */ | |
3409 | ||
3410 | int | |
3411 | main () | |
3412 | { | |
3413 | ||
3414 | ; | |
3415 | return 0; | |
3416 | } | |
3417 | _ACEOF | |
3418 | rm -f conftest.$ac_objext | |
3419 | if { (ac_try="$ac_compile" | |
3420 | case "(($ac_try" in | |
3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3422 | *) ac_try_echo=$ac_try;; | |
3423 | esac | |
8d138742 CE |
3424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3425 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3426 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3427 | ac_status=$? |
dd184caf | 3428 | grep -v '^ *+' conftest.er1 >conftest.err |
3429 | rm -f conftest.er1 | |
3430 | cat conftest.err >&5 | |
8d138742 | 3431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3432 | (exit $ac_status); } && { |
3433 | test -z "$ac_c_werror_flag" || | |
3434 | test ! -s conftest.err | |
3435 | } && test -s conftest.$ac_objext; then | |
3436 | : | |
3437 | else | |
8d138742 | 3438 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3439 | sed 's/^/| /' conftest.$ac_ext >&5 |
3440 | ||
3441 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3442 | CFLAGS="-g" | |
3443 | cat >conftest.$ac_ext <<_ACEOF | |
3444 | /* confdefs.h. */ | |
3445 | _ACEOF | |
3446 | cat confdefs.h >>conftest.$ac_ext | |
3447 | cat >>conftest.$ac_ext <<_ACEOF | |
3448 | /* end confdefs.h. */ | |
3449 | ||
3450 | int | |
3451 | main () | |
3452 | { | |
3453 | ||
3454 | ; | |
3455 | return 0; | |
3456 | } | |
3457 | _ACEOF | |
3458 | rm -f conftest.$ac_objext | |
3459 | if { (ac_try="$ac_compile" | |
3460 | case "(($ac_try" in | |
3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3462 | *) ac_try_echo=$ac_try;; | |
3463 | esac | |
8d138742 CE |
3464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3465 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3466 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3467 | ac_status=$? |
dd184caf | 3468 | grep -v '^ *+' conftest.er1 >conftest.err |
3469 | rm -f conftest.er1 | |
3470 | cat conftest.err >&5 | |
8d138742 | 3471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3472 | (exit $ac_status); } && { |
3473 | test -z "$ac_c_werror_flag" || | |
3474 | test ! -s conftest.err | |
3475 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3476 | ac_cv_prog_cc_g=yes |
3477 | else | |
8d138742 | 3478 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3479 | sed 's/^/| /' conftest.$ac_ext >&5 |
3480 | ||
dd184caf | 3481 | |
3482 | fi | |
3483 | ||
3484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3485 | fi | |
3486 | ||
3487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3488 | fi |
dd184caf | 3489 | |
3490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3491 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3492 | fi |
8d138742 CE |
3493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3494 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3495 | if test "$ac_test_CFLAGS" = set; then |
3496 | CFLAGS=$ac_save_CFLAGS | |
3497 | elif test $ac_cv_prog_cc_g = yes; then | |
3498 | if test "$GCC" = yes; then | |
3499 | CFLAGS="-g -O2" | |
3500 | else | |
3501 | CFLAGS="-g" | |
3502 | fi | |
3503 | else | |
3504 | if test "$GCC" = yes; then | |
3505 | CFLAGS="-O2" | |
3506 | else | |
3507 | CFLAGS= | |
3508 | fi | |
3509 | fi | |
8d138742 CE |
3510 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3511 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3512 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3513 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3514 | else |
dd184caf | 3515 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3516 | ac_save_CC=$CC |
3517 | cat >conftest.$ac_ext <<_ACEOF | |
3518 | /* confdefs.h. */ | |
3519 | _ACEOF | |
3520 | cat confdefs.h >>conftest.$ac_ext | |
3521 | cat >>conftest.$ac_ext <<_ACEOF | |
3522 | /* end confdefs.h. */ | |
3523 | #include <stdarg.h> | |
3524 | #include <stdio.h> | |
3525 | #include <sys/types.h> | |
3526 | #include <sys/stat.h> | |
3527 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3528 | struct buf { int x; }; | |
3529 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3530 | static char *e (p, i) | |
3531 | char **p; | |
3532 | int i; | |
3533 | { | |
3534 | return p[i]; | |
3535 | } | |
3536 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3537 | { | |
3538 | char *s; | |
3539 | va_list v; | |
3540 | va_start (v,p); | |
3541 | s = g (p, va_arg (v,int)); | |
3542 | va_end (v); | |
3543 | return s; | |
3544 | } | |
3545 | ||
3546 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3547 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3548 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3549 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3550 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3551 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3552 | that's true only with -std. */ |
d9898ee8 | 3553 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3554 | ||
dd184caf | 3555 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3556 | inside strings and character constants. */ | |
3557 | #define FOO(x) 'x' | |
3558 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3559 | ||
d9898ee8 | 3560 | int test (int i, double x); |
3561 | struct s1 {int (*f) (int a);}; | |
3562 | struct s2 {int (*f) (double a);}; | |
3563 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3564 | int argc; | |
3565 | char **argv; | |
3566 | int | |
3567 | main () | |
3568 | { | |
3569 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3570 | ; | |
3571 | return 0; | |
3572 | } | |
3573 | _ACEOF | |
dd184caf | 3574 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3575 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3576 | do |
3577 | CC="$ac_save_CC $ac_arg" | |
3578 | rm -f conftest.$ac_objext | |
dd184caf | 3579 | if { (ac_try="$ac_compile" |
3580 | case "(($ac_try" in | |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
8d138742 CE |
3584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3585 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3586 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3587 | ac_status=$? |
3588 | grep -v '^ *+' conftest.er1 >conftest.err | |
3589 | rm -f conftest.er1 | |
3590 | cat conftest.err >&5 | |
8d138742 | 3591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3592 | (exit $ac_status); } && { |
3593 | test -z "$ac_c_werror_flag" || | |
3594 | test ! -s conftest.err | |
3595 | } && test -s conftest.$ac_objext; then | |
3596 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3597 | else |
8d138742 | 3598 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3599 | sed 's/^/| /' conftest.$ac_ext >&5 |
3600 | ||
dd184caf | 3601 | |
d9898ee8 | 3602 | fi |
dd184caf | 3603 | |
3604 | rm -f core conftest.err conftest.$ac_objext | |
3605 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3606 | done |
dd184caf | 3607 | rm -f conftest.$ac_ext |
d9898ee8 | 3608 | CC=$ac_save_CC |
3609 | ||
3610 | fi | |
dd184caf | 3611 | # AC_CACHE_VAL |
3612 | case "x$ac_cv_prog_cc_c89" in | |
3613 | x) | |
8d138742 CE |
3614 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3615 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3616 | xno) |
8d138742 CE |
3617 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3618 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3619 | *) |
dd184caf | 3620 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3621 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3622 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3623 | esac |
3624 | ||
d9898ee8 | 3625 | |
d9898ee8 | 3626 | ac_ext=c |
3627 | ac_cpp='$CPP $CPPFLAGS' | |
3628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3631 | DEPDIR="${am__leading_dot}deps" | |
3632 | ||
dd184caf | 3633 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3634 | |
3635 | ||
3636 | am_make=${MAKE-make} | |
3637 | cat > confinc << 'END' | |
3638 | am__doit: | |
8d138742 | 3639 | @echo this is the am__doit target |
d9898ee8 | 3640 | .PHONY: am__doit |
3641 | END | |
3642 | # If we don't find an include directive, just comment out the code. | |
8d138742 CE |
3643 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3644 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
d9898ee8 | 3645 | am__include="#" |
3646 | am__quote= | |
3647 | _am_result=none | |
3648 | # First try GNU make style include. | |
3649 | echo "include confinc" > confmf | |
8d138742 CE |
3650 | # Ignore all kinds of additional output from `make'. |
3651 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3652 | *the\ am__doit\ target*) | |
3653 | am__include=include | |
3654 | am__quote= | |
3655 | _am_result=GNU | |
3656 | ;; | |
3657 | esac | |
d9898ee8 | 3658 | # Now try BSD make style include. |
3659 | if test "$am__include" = "#"; then | |
3660 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3661 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3662 | *the\ am__doit\ target*) | |
3663 | am__include=.include | |
3664 | am__quote="\"" | |
3665 | _am_result=BSD | |
3666 | ;; | |
3667 | esac | |
d9898ee8 | 3668 | fi |
3669 | ||
3670 | ||
8d138742 CE |
3671 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3672 | $as_echo "$_am_result" >&6; } | |
d9898ee8 | 3673 | rm -f confinc confmf |
3674 | ||
dd184caf | 3675 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 | 3676 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf | 3677 | enableval=$enable_dependency_tracking; |
3678 | fi | |
d9898ee8 | 3679 | |
d9898ee8 | 3680 | if test "x$enable_dependency_tracking" != xno; then |
3681 | am_depcomp="$ac_aux_dir/depcomp" | |
3682 | AMDEPBACKSLASH='\' | |
3683 | fi | |
dd184caf | 3684 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3685 | AMDEP_TRUE= |
3686 | AMDEP_FALSE='#' | |
3687 | else | |
3688 | AMDEP_TRUE='#' | |
3689 | AMDEP_FALSE= | |
3690 | fi | |
3691 | ||
3692 | ||
3693 | ||
d9898ee8 | 3694 | depcc="$CC" am_compiler_list= |
3695 | ||
8d138742 CE |
3696 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3697 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3698 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3699 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3700 | else |
3701 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3702 | # We make a subdir and do the tests there. Otherwise we can end up | |
3703 | # making bogus files that we don't know about and never remove. For | |
3704 | # instance it was reported that on HP-UX the gcc test will end up | |
3705 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3706 | # in D'. | |
3707 | mkdir conftest.dir | |
3708 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3709 | # using a relative directory. | |
3710 | cp "$am_depcomp" conftest.dir | |
3711 | cd conftest.dir | |
3712 | # We will build objects and dependencies in a subdirectory because | |
3713 | # it helps to detect inapplicable dependency modes. For instance | |
3714 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3715 | # side effect of compilation, but ICC will put the dependencies in | |
3716 | # the current directory while Tru64 will put them in the object | |
3717 | # directory. | |
3718 | mkdir sub | |
3719 | ||
3720 | am_cv_CC_dependencies_compiler_type=none | |
3721 | if test "$am_compiler_list" = ""; then | |
3722 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3723 | fi | |
8d138742 CE |
3724 | am__universal=false |
3725 | case " $depcc " in #( | |
3726 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3727 | esac | |
3728 | ||
d9898ee8 | 3729 | for depmode in $am_compiler_list; do |
3730 | # Setup a source with many dependencies, because some compilers | |
3731 | # like to wrap large dependency lists on column 80 (with \), and | |
3732 | # we should not choose a depcomp mode which is confused by this. | |
3733 | # | |
3734 | # We need to recreate these files for each test, as the compiler may | |
3735 | # overwrite some of them when testing with obscure command lines. | |
3736 | # This happens at least with the AIX C compiler. | |
3737 | : > sub/conftest.c | |
3738 | for i in 1 2 3 4 5 6; do | |
3739 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3740 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3741 | # Solaris 8's {/usr,}/bin/sh. | |
3742 | touch sub/conftst$i.h | |
3743 | done | |
3744 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3745 | ||
8d138742 CE |
3746 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3747 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3748 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3749 | # versions had trouble with output in subdirs | |
3750 | am__obj=sub/conftest.${OBJEXT-o} | |
3751 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3752 | case $depmode in |
8d138742 CE |
3753 | gcc) |
3754 | # This depmode causes a compiler race in universal mode. | |
3755 | test "$am__universal" = false || continue | |
3756 | ;; | |
d9898ee8 | 3757 | nosideeffect) |
3758 | # after this tag, mechanisms are not by side-effect, so they'll | |
3759 | # only be used when explicitly requested | |
3760 | if test "x$enable_dependency_tracking" = xyes; then | |
3761 | continue | |
3762 | else | |
3763 | break | |
3764 | fi | |
3765 | ;; | |
8d138742 CE |
3766 | msvisualcpp | msvcmsys) |
3767 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3768 | # not run yet. These depmodes are late enough in the game, and | |
3769 | # so weak that their functioning should not be impacted. | |
3770 | am__obj=conftest.${OBJEXT-o} | |
3771 | am__minus_obj= | |
3772 | ;; | |
d9898ee8 | 3773 | none) break ;; |
3774 | esac | |
d9898ee8 | 3775 | if depmode=$depmode \ |
8d138742 | 3776 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3777 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3778 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3779 | >/dev/null 2>conftest.err && |
dd184caf | 3780 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3781 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3782 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3783 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3784 | # icc doesn't choke on unknown options, it will just issue warnings | |
3785 | # or remarks (even with -Werror). So we grep stderr for any message | |
3786 | # that says an option was ignored or not supported. | |
3787 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3788 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3789 | # The diagnosis changed in icc 8.0: | |
3790 | # icc: Command line remark: option '-MP' not supported | |
3791 | if (grep 'ignoring option' conftest.err || | |
3792 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3793 | am_cv_CC_dependencies_compiler_type=$depmode | |
3794 | break | |
3795 | fi | |
3796 | fi | |
3797 | done | |
3798 | ||
3799 | cd .. | |
3800 | rm -rf conftest.dir | |
3801 | else | |
3802 | am_cv_CC_dependencies_compiler_type=none | |
3803 | fi | |
3804 | ||
3805 | fi | |
8d138742 CE |
3806 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3807 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3808 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3809 | ||
dd184caf | 3810 | if |
d9898ee8 | 3811 | test "x$enable_dependency_tracking" != xno \ |
3812 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3813 | am__fastdepCC_TRUE= | |
3814 | am__fastdepCC_FALSE='#' | |
3815 | else | |
3816 | am__fastdepCC_TRUE='#' | |
3817 | am__fastdepCC_FALSE= | |
3818 | fi | |
3819 | ||
3820 | ||
8d138742 CE |
3821 | case `pwd` in |
3822 | *\ * | *\ *) | |
3823 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3824 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3825 | esac | |
3826 | ||
3827 | ||
3828 | ||
3829 | macro_version='2.2.6' | |
3830 | macro_revision='1.3012' | |
3831 | ||
3832 | ||
3833 | ||
3834 | ||
d9898ee8 | 3835 | |
dd184caf | 3836 | |
d9898ee8 | 3837 | |
dd184caf | 3838 | |
dd184caf | 3839 | |
d9898ee8 | 3840 | |
8d138742 CE |
3841 | |
3842 | ||
3843 | ||
3844 | ltmain="$ac_aux_dir/ltmain.sh" | |
3845 | ||
d9898ee8 | 3846 | # Make sure we can run config.sub. |
dd184caf | 3847 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
8d138742 CE |
3848 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3849 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
d9898ee8 | 3850 | { (exit 1); exit 1; }; } |
3851 | ||
8d138742 CE |
3852 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
3853 | $as_echo_n "checking build system type... " >&6; } | |
d9898ee8 | 3854 | if test "${ac_cv_build+set}" = set; then |
8d138742 | 3855 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3856 | else |
dd184caf | 3857 | ac_build_alias=$build_alias |
3858 | test "x$ac_build_alias" = x && | |
3859 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3860 | test "x$ac_build_alias" = x && | |
8d138742 CE |
3861 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3862 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
d9898ee8 | 3863 | { (exit 1); exit 1; }; } |
dd184caf | 3864 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
8d138742 CE |
3865 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3866 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
d9898ee8 | 3867 | { (exit 1); exit 1; }; } |
3868 | ||
3869 | fi | |
8d138742 CE |
3870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3871 | $as_echo "$ac_cv_build" >&6; } | |
dd184caf | 3872 | case $ac_cv_build in |
3873 | *-*-*) ;; | |
8d138742 CE |
3874 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3875 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
dd184caf | 3876 | { (exit 1); exit 1; }; };; |
3877 | esac | |
d9898ee8 | 3878 | build=$ac_cv_build |
dd184caf | 3879 | ac_save_IFS=$IFS; IFS='-' |
3880 | set x $ac_cv_build | |
3881 | shift | |
3882 | build_cpu=$1 | |
3883 | build_vendor=$2 | |
3884 | shift; shift | |
3885 | # Remember, the first character of IFS is used to create $*, | |
3886 | # except with old shells: | |
3887 | build_os=$* | |
3888 | IFS=$ac_save_IFS | |
3889 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3890 | ||
3891 | ||
8d138742 CE |
3892 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
3893 | $as_echo_n "checking host system type... " >&6; } | |
d9898ee8 | 3894 | if test "${ac_cv_host+set}" = set; then |
8d138742 | 3895 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3896 | else |
dd184caf | 3897 | if test "x$host_alias" = x; then |
3898 | ac_cv_host=$ac_cv_build | |
3899 | else | |
3900 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
8d138742 CE |
3901 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3902 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
d9898ee8 | 3903 | { (exit 1); exit 1; }; } |
dd184caf | 3904 | fi |
d9898ee8 | 3905 | |
3906 | fi | |
8d138742 CE |
3907 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3908 | $as_echo "$ac_cv_host" >&6; } | |
dd184caf | 3909 | case $ac_cv_host in |
3910 | *-*-*) ;; | |
8d138742 CE |
3911 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3912 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
dd184caf | 3913 | { (exit 1); exit 1; }; };; |
3914 | esac | |
d9898ee8 | 3915 | host=$ac_cv_host |
dd184caf | 3916 | ac_save_IFS=$IFS; IFS='-' |
3917 | set x $ac_cv_host | |
3918 | shift | |
3919 | host_cpu=$1 | |
3920 | host_vendor=$2 | |
3921 | shift; shift | |
3922 | # Remember, the first character of IFS is used to create $*, | |
3923 | # except with old shells: | |
3924 | host_os=$* | |
3925 | IFS=$ac_save_IFS | |
3926 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3927 | ||
3928 | ||
8d138742 CE |
3929 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3930 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3931 | if test "${ac_cv_path_SED+set}" = set; then | |
3932 | $as_echo_n "(cached) " >&6 | |
3933 | else | |
3934 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3935 | for ac_i in 1 2 3 4 5 6 7; do | |
3936 | ac_script="$ac_script$as_nl$ac_script" | |
3937 | done | |
3938 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3939 | $as_unset ac_script || ac_script= | |
3940 | if test -z "$SED"; then | |
3941 | ac_path_SED_found=false | |
3942 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 3944 | for as_dir in $PATH |
3945 | do | |
3946 | IFS=$as_save_IFS | |
3947 | test -z "$as_dir" && as_dir=. | |
8d138742 | 3948 | for ac_prog in sed gsed; do |
d9898ee8 | 3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 CE |
3950 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3951 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3952 | # Check for GNU ac_path_SED and select it if it is found. | |
3953 | # Check for GNU $ac_path_SED | |
3954 | case `"$ac_path_SED" --version 2>&1` in | |
3955 | *GNU*) | |
3956 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3957 | *) | |
3958 | ac_count=0 | |
3959 | $as_echo_n 0123456789 >"conftest.in" | |
3960 | while : | |
3961 | do | |
3962 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3963 | mv "conftest.tmp" "conftest.in" | |
3964 | cp "conftest.in" "conftest.nl" | |
3965 | $as_echo '' >> "conftest.nl" | |
3966 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3967 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3968 | ac_count=`expr $ac_count + 1` | |
3969 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3970 | # Best one so far, save it but keep looking for a better one | |
3971 | ac_cv_path_SED="$ac_path_SED" | |
3972 | ac_path_SED_max=$ac_count | |
3973 | fi | |
3974 | # 10*(2^10) chars as input seems more than enough | |
3975 | test $ac_count -gt 10 && break | |
3976 | done | |
3977 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3978 | esac | |
3979 | ||
3980 | $ac_path_SED_found && break 3 | |
d9898ee8 | 3981 | done |
3982 | done | |
3983 | done | |
3984 | IFS=$as_save_IFS | |
8d138742 CE |
3985 | if test -z "$ac_cv_path_SED"; then |
3986 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
3987 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
3988 | { (exit 1); exit 1; }; } | |
d9898ee8 | 3989 | fi |
8d138742 CE |
3990 | else |
3991 | ac_cv_path_SED=$SED | |
3992 | fi | |
d9898ee8 | 3993 | |
3994 | fi | |
8d138742 CE |
3995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
3996 | $as_echo "$ac_cv_path_SED" >&6; } | |
3997 | SED="$ac_cv_path_SED" | |
3998 | rm -f conftest.sed | |
3999 | ||
4000 | test -z "$SED" && SED=sed | |
4001 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4002 | |
d9898ee8 | 4003 | |
dd184caf | 4004 | |
8d138742 CE |
4005 | |
4006 | ||
4007 | ||
4008 | ||
4009 | ||
4010 | ||
4011 | ||
4012 | ||
4013 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4014 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
dd184caf | 4015 | if test "${ac_cv_path_GREP+set}" = set; then |
8d138742 | 4016 | $as_echo_n "(cached) " >&6 |
dd184caf | 4017 | else |
8d138742 | 4018 | if test -z "$GREP"; then |
dd184caf | 4019 | ac_path_GREP_found=false |
8d138742 CE |
4020 | # Loop through the user's path and test for each of PROGNAME-LIST |
4021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4022 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4023 | do | |
4024 | IFS=$as_save_IFS | |
4025 | test -z "$as_dir" && as_dir=. | |
4026 | for ac_prog in grep ggrep; do | |
8d138742 CE |
4027 | for ac_exec_ext in '' $ac_executable_extensions; do |
4028 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4029 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4030 | # Check for GNU ac_path_GREP and select it if it is found. | |
dd184caf | 4031 | # Check for GNU $ac_path_GREP |
4032 | case `"$ac_path_GREP" --version 2>&1` in | |
4033 | *GNU*) | |
4034 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4035 | *) | |
4036 | ac_count=0 | |
8d138742 | 4037 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4038 | while : |
4039 | do | |
4040 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4041 | mv "conftest.tmp" "conftest.in" | |
4042 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4043 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4044 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4045 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4046 | ac_count=`expr $ac_count + 1` | |
4047 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4048 | # Best one so far, save it but keep looking for a better one | |
4049 | ac_cv_path_GREP="$ac_path_GREP" | |
4050 | ac_path_GREP_max=$ac_count | |
4051 | fi | |
4052 | # 10*(2^10) chars as input seems more than enough | |
4053 | test $ac_count -gt 10 && break | |
4054 | done | |
4055 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4056 | esac | |
4057 | ||
8d138742 CE |
4058 | $ac_path_GREP_found && break 3 |
4059 | done | |
dd184caf | 4060 | done |
4061 | done | |
dd184caf | 4062 | IFS=$as_save_IFS |
8d138742 CE |
4063 | if test -z "$ac_cv_path_GREP"; then |
4064 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4065 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 4066 | { (exit 1); exit 1; }; } |
8d138742 | 4067 | fi |
dd184caf | 4068 | else |
4069 | ac_cv_path_GREP=$GREP | |
4070 | fi | |
4071 | ||
dd184caf | 4072 | fi |
8d138742 CE |
4073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4074 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 4075 | GREP="$ac_cv_path_GREP" |
4076 | ||
d9898ee8 | 4077 | |
8d138742 CE |
4078 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4079 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 4080 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 4081 | $as_echo_n "(cached) " >&6 |
dd184caf | 4082 | else |
4083 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4084 | then ac_cv_path_EGREP="$GREP -E" | |
4085 | else | |
8d138742 | 4086 | if test -z "$EGREP"; then |
dd184caf | 4087 | ac_path_EGREP_found=false |
8d138742 CE |
4088 | # Loop through the user's path and test for each of PROGNAME-LIST |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4090 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
4094 | for ac_prog in egrep; do | |
8d138742 CE |
4095 | for ac_exec_ext in '' $ac_executable_extensions; do |
4096 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4097 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4098 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 4099 | # Check for GNU $ac_path_EGREP |
4100 | case `"$ac_path_EGREP" --version 2>&1` in | |
4101 | *GNU*) | |
4102 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4103 | *) | |
4104 | ac_count=0 | |
8d138742 | 4105 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4106 | while : |
4107 | do | |
4108 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4109 | mv "conftest.tmp" "conftest.in" | |
4110 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4111 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4112 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4113 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4114 | ac_count=`expr $ac_count + 1` | |
4115 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4116 | # Best one so far, save it but keep looking for a better one | |
4117 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4118 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4119 | fi |
dd184caf | 4120 | # 10*(2^10) chars as input seems more than enough |
4121 | test $ac_count -gt 10 && break | |
4122 | done | |
4123 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4124 | esac | |
4125 | ||
8d138742 CE |
4126 | $ac_path_EGREP_found && break 3 |
4127 | done | |
dd184caf | 4128 | done |
4129 | done | |
dd184caf | 4130 | IFS=$as_save_IFS |
8d138742 CE |
4131 | if test -z "$ac_cv_path_EGREP"; then |
4132 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4133 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4134 | { (exit 1); exit 1; }; } | |
4135 | fi | |
4136 | else | |
4137 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4138 | fi |
4139 | ||
8d138742 | 4140 | fi |
dd184caf | 4141 | fi |
8d138742 CE |
4142 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4143 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4144 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4145 | |
8d138742 CE |
4146 | |
4147 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4148 | $as_echo_n "checking for fgrep... " >&6; } | |
4149 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4150 | $as_echo_n "(cached) " >&6 | |
dd184caf | 4151 | else |
8d138742 CE |
4152 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4153 | then ac_cv_path_FGREP="$GREP -F" | |
4154 | else | |
4155 | if test -z "$FGREP"; then | |
4156 | ac_path_FGREP_found=false | |
4157 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4159 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4160 | do | |
4161 | IFS=$as_save_IFS | |
4162 | test -z "$as_dir" && as_dir=. | |
4163 | for ac_prog in fgrep; do | |
4164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4165 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4166 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4167 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4168 | # Check for GNU $ac_path_FGREP | |
4169 | case `"$ac_path_FGREP" --version 2>&1` in | |
4170 | *GNU*) | |
4171 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4172 | *) | |
4173 | ac_count=0 | |
4174 | $as_echo_n 0123456789 >"conftest.in" | |
4175 | while : | |
4176 | do | |
4177 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4178 | mv "conftest.tmp" "conftest.in" | |
4179 | cp "conftest.in" "conftest.nl" | |
4180 | $as_echo 'FGREP' >> "conftest.nl" | |
4181 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4182 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4183 | ac_count=`expr $ac_count + 1` | |
4184 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4185 | # Best one so far, save it but keep looking for a better one | |
4186 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4187 | ac_path_FGREP_max=$ac_count | |
4188 | fi | |
4189 | # 10*(2^10) chars as input seems more than enough | |
4190 | test $ac_count -gt 10 && break | |
4191 | done | |
4192 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4193 | esac | |
dd184caf | 4194 | |
8d138742 CE |
4195 | $ac_path_FGREP_found && break 3 |
4196 | done | |
4197 | done | |
4198 | done | |
4199 | IFS=$as_save_IFS | |
4200 | if test -z "$ac_cv_path_FGREP"; then | |
4201 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4202 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4203 | { (exit 1); exit 1; }; } | |
4204 | fi | |
4205 | else | |
4206 | ac_cv_path_FGREP=$FGREP | |
4207 | fi | |
dd184caf | 4208 | |
4209 | fi | |
d9898ee8 | 4210 | fi |
8d138742 CE |
4211 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
4212 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4213 | FGREP="$ac_cv_path_FGREP" | |
4214 | ||
4215 | ||
4216 | test -z "$GREP" && GREP=grep | |
4217 | ||
4218 | ||
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | ||
4231 | ||
4232 | ||
d9898ee8 | 4233 | |
4234 | ||
4235 | ||
dd184caf | 4236 | # Check whether --with-gnu-ld was given. |
d9898ee8 | 4237 | if test "${with_gnu_ld+set}" = set; then |
dd184caf | 4238 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4239 | else |
4240 | with_gnu_ld=no | |
dd184caf | 4241 | fi |
4242 | ||
d9898ee8 | 4243 | ac_prog=ld |
4244 | if test "$GCC" = yes; then | |
4245 | # Check if gcc -print-prog-name=ld gives a path. | |
8d138742 CE |
4246 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4247 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
d9898ee8 | 4248 | case $host in |
4249 | *-*-mingw*) | |
4250 | # gcc leaves a trailing carriage return which upsets mingw | |
4251 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4252 | *) | |
4253 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4254 | esac | |
4255 | case $ac_prog in | |
4256 | # Accept absolute paths. | |
4257 | [\\/]* | ?:[\\/]*) | |
4258 | re_direlt='/[^/][^/]*/\.\./' | |
4259 | # Canonicalize the pathname of ld | |
8d138742 CE |
4260 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4261 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4262 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4263 | done |
4264 | test -z "$LD" && LD="$ac_prog" | |
4265 | ;; | |
4266 | "") | |
4267 | # If it fails, then pretend we aren't using GCC. | |
4268 | ac_prog=ld | |
4269 | ;; | |
4270 | *) | |
4271 | # If it is relative, then search for the first ld in PATH. | |
4272 | with_gnu_ld=unknown | |
4273 | ;; | |
4274 | esac | |
4275 | elif test "$with_gnu_ld" = yes; then | |
8d138742 CE |
4276 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4277 | $as_echo_n "checking for GNU ld... " >&6; } | |
d9898ee8 | 4278 | else |
8d138742 CE |
4279 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4280 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d9898ee8 | 4281 | fi |
4282 | if test "${lt_cv_path_LD+set}" = set; then | |
8d138742 | 4283 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4284 | else |
4285 | if test -z "$LD"; then | |
4286 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4287 | for ac_dir in $PATH; do | |
4288 | IFS="$lt_save_ifs" | |
4289 | test -z "$ac_dir" && ac_dir=. | |
4290 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4291 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4292 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4293 | # but apparently some variants of GNU ld only accept -v. | |
4294 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4295 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4296 | *GNU* | *'with BFD'*) | |
4297 | test "$with_gnu_ld" != no && break | |
4298 | ;; | |
4299 | *) | |
4300 | test "$with_gnu_ld" != yes && break | |
4301 | ;; | |
4302 | esac | |
4303 | fi | |
4304 | done | |
4305 | IFS="$lt_save_ifs" | |
4306 | else | |
4307 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4308 | fi | |
4309 | fi | |
4310 | ||
4311 | LD="$lt_cv_path_LD" | |
4312 | if test -n "$LD"; then | |
8d138742 CE |
4313 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4314 | $as_echo "$LD" >&6; } | |
d9898ee8 | 4315 | else |
8d138742 CE |
4316 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4317 | $as_echo "no" >&6; } | |
d9898ee8 | 4318 | fi |
8d138742 CE |
4319 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4320 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d9898ee8 | 4321 | { (exit 1); exit 1; }; } |
8d138742 CE |
4322 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4323 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d9898ee8 | 4324 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8d138742 | 4325 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4326 | else |
4327 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4328 | case `$LD -v 2>&1 </dev/null` in | |
4329 | *GNU* | *'with BFD'*) | |
4330 | lt_cv_prog_gnu_ld=yes | |
4331 | ;; | |
4332 | *) | |
4333 | lt_cv_prog_gnu_ld=no | |
4334 | ;; | |
4335 | esac | |
4336 | fi | |
8d138742 CE |
4337 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4338 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
d9898ee8 | 4339 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4340 | ||
4341 | ||
d9898ee8 | 4342 | |
8d138742 CE |
4343 | |
4344 | ||
4345 | ||
4346 | ||
4347 | ||
4348 | ||
4349 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4350 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d9898ee8 | 4351 | if test "${lt_cv_path_NM+set}" = set; then |
8d138742 | 4352 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4353 | else |
4354 | if test -n "$NM"; then | |
4355 | # Let the user override the test. | |
4356 | lt_cv_path_NM="$NM" | |
4357 | else | |
4358 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4359 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4360 | lt_nm_to_check="$lt_nm_to_check nm" | |
4361 | fi | |
4362 | for lt_tmp_nm in $lt_nm_to_check; do | |
4363 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4364 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4365 | IFS="$lt_save_ifs" | |
4366 | test -z "$ac_dir" && ac_dir=. | |
4367 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4368 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4369 | # Check to see if the nm accepts a BSD-compat flag. | |
4370 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4371 | # nm: unknown option "B" ignored | |
4372 | # Tru64's nm complains that /dev/null is an invalid object file | |
4373 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4374 | */dev/null* | *'Invalid file or object type'*) | |
4375 | lt_cv_path_NM="$tmp_nm -B" | |
4376 | break | |
4377 | ;; | |
4378 | *) | |
4379 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4380 | */dev/null*) | |
4381 | lt_cv_path_NM="$tmp_nm -p" | |
4382 | break | |
4383 | ;; | |
4384 | *) | |
4385 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4386 | continue # so that we can try to find one that supports BSD flags | |
4387 | ;; | |
4388 | esac | |
4389 | ;; | |
4390 | esac | |
4391 | fi | |
4392 | done | |
4393 | IFS="$lt_save_ifs" | |
4394 | done | |
8d138742 | 4395 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4396 | fi |
4397 | fi | |
8d138742 CE |
4398 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4399 | $as_echo "$lt_cv_path_NM" >&6; } | |
4400 | if test "$lt_cv_path_NM" != "no"; then | |
4401 | NM="$lt_cv_path_NM" | |
d9898ee8 | 4402 | else |
8d138742 CE |
4403 | # Didn't find any BSD compatible name lister, look for dumpbin. |
4404 | if test -n "$ac_tool_prefix"; then | |
4405 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4406 | do | |
4407 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4408 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4409 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4410 | $as_echo_n "checking for $ac_word... " >&6; } | |
4411 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4412 | $as_echo_n "(cached) " >&6 | |
4413 | else | |
4414 | if test -n "$DUMPBIN"; then | |
4415 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4416 | else | |
4417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4418 | for as_dir in $PATH | |
4419 | do | |
4420 | IFS=$as_save_IFS | |
4421 | test -z "$as_dir" && as_dir=. | |
4422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4424 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4425 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4426 | break 2 | |
4427 | fi | |
4428 | done | |
4429 | done | |
4430 | IFS=$as_save_IFS | |
d9898ee8 | 4431 | |
8d138742 CE |
4432 | fi |
4433 | fi | |
4434 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4435 | if test -n "$DUMPBIN"; then | |
4436 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4437 | $as_echo "$DUMPBIN" >&6; } | |
4438 | else | |
4439 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4440 | $as_echo "no" >&6; } | |
4441 | fi | |
d9898ee8 | 4442 | |
d9898ee8 | 4443 | |
8d138742 CE |
4444 | test -n "$DUMPBIN" && break |
4445 | done | |
4446 | fi | |
4447 | if test -z "$DUMPBIN"; then | |
4448 | ac_ct_DUMPBIN=$DUMPBIN | |
4449 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4450 | do | |
4451 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4452 | set dummy $ac_prog; ac_word=$2 | |
4453 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4454 | $as_echo_n "checking for $ac_word... " >&6; } | |
4455 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4456 | $as_echo_n "(cached) " >&6 | |
4457 | else | |
4458 | if test -n "$ac_ct_DUMPBIN"; then | |
4459 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4460 | else | |
4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 | for as_dir in $PATH | |
4463 | do | |
4464 | IFS=$as_save_IFS | |
4465 | test -z "$as_dir" && as_dir=. | |
4466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4468 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4469 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4470 | break 2 | |
ac40fd9e | 4471 | fi |
8d138742 CE |
4472 | done |
4473 | done | |
4474 | IFS=$as_save_IFS | |
d9898ee8 | 4475 | |
8d138742 CE |
4476 | fi |
4477 | fi | |
4478 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4479 | if test -n "$ac_ct_DUMPBIN"; then | |
4480 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4481 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4482 | else | |
4483 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4484 | $as_echo "no" >&6; } | |
4485 | fi | |
d9898ee8 | 4486 | |
8d138742 CE |
4487 | |
4488 | test -n "$ac_ct_DUMPBIN" && break | |
4489 | done | |
4490 | ||
4491 | if test "x$ac_ct_DUMPBIN" = x; then | |
4492 | DUMPBIN=":" | |
d9898ee8 | 4493 | else |
8d138742 CE |
4494 | case $cross_compiling:$ac_tool_warned in |
4495 | yes:) | |
4496 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4498 | ac_tool_warned=yes ;; | |
4499 | esac | |
4500 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4501 | fi |
8d138742 | 4502 | fi |
d9898ee8 | 4503 | |
d9898ee8 | 4504 | |
8d138742 CE |
4505 | if test "$DUMPBIN" != ":"; then |
4506 | NM="$DUMPBIN" | |
4507 | fi | |
4508 | fi | |
4509 | test -z "$NM" && NM=nm | |
d9898ee8 | 4510 | |
d9898ee8 | 4511 | |
d9898ee8 | 4512 | |
d9898ee8 | 4513 | |
d9898ee8 | 4514 | |
d9898ee8 | 4515 | |
8d138742 CE |
4516 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4517 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4518 | if test "${lt_cv_nm_interface+set}" = set; then | |
4519 | $as_echo_n "(cached) " >&6 | |
4520 | else | |
4521 | lt_cv_nm_interface="BSD nm" | |
4522 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4523 | (eval echo "\"\$as_me:4523: $ac_compile\"" >&5) | |
4524 | (eval "$ac_compile" 2>conftest.err) | |
4525 | cat conftest.err >&5 | |
4526 | (eval echo "\"\$as_me:4526: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4527 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4528 | cat conftest.err >&5 | |
4529 | (eval echo "\"\$as_me:4529: output\"" >&5) | |
4530 | cat conftest.out >&5 | |
4531 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4532 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4533 | fi |
8d138742 CE |
4534 | rm -f conftest* |
4535 | fi | |
4536 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4537 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d9898ee8 | 4538 | |
8d138742 CE |
4539 | # find the maximum length of command line arguments |
4540 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4541 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4542 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4543 | $as_echo_n "(cached) " >&6 | |
4544 | else | |
4545 | i=0 | |
4546 | teststring="ABCD" | |
d9898ee8 | 4547 | |
8d138742 CE |
4548 | case $build_os in |
4549 | msdosdjgpp*) | |
4550 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4551 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4552 | # during glob expansion). Even if it were fixed, the result of this | |
4553 | # check would be larger than it should be. | |
4554 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4555 | ;; | |
ac40fd9e | 4556 | |
8d138742 CE |
4557 | gnu*) |
4558 | # Under GNU Hurd, this test is not required because there is | |
4559 | # no limit to the length of command line arguments. | |
4560 | # Libtool will interpret -1 as no limit whatsoever | |
4561 | lt_cv_sys_max_cmd_len=-1; | |
4562 | ;; | |
d9898ee8 | 4563 | |
8d138742 CE |
4564 | cygwin* | mingw* | cegcc*) |
4565 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4566 | # about 5 minutes as the teststring grows exponentially. | |
4567 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4568 | # you end up with a "frozen" computer, even though with patience | |
4569 | # the test eventually succeeds (with a max line length of 256k). | |
4570 | # Instead, let's just punt: use the minimum linelength reported by | |
4571 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4572 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4573 | ;; |
8d138742 CE |
4574 | |
4575 | amigaos*) | |
4576 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4577 | # So we just punt and use a minimum line length of 8192. | |
4578 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4579 | ;; |
8d138742 CE |
4580 | |
4581 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4582 | # This has been around since 386BSD, at least. Likely further. | |
4583 | if test -x /sbin/sysctl; then | |
4584 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4585 | elif test -x /usr/sbin/sysctl; then | |
4586 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4587 | else | |
4588 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4589 | fi | |
4590 | # And add a safety zone | |
4591 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4592 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4593 | ;; |
8d138742 CE |
4594 | |
4595 | interix*) | |
4596 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4597 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4598 | ;; |
8d138742 CE |
4599 | |
4600 | osf*) | |
4601 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4602 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4603 | # nice to cause kernel panics so lets avoid the loop below. | |
4604 | # First set a reasonable default. | |
4605 | lt_cv_sys_max_cmd_len=16384 | |
4606 | # | |
4607 | if test -x /sbin/sysconfig; then | |
4608 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4609 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4610 | esac | |
4611 | fi | |
d9898ee8 | 4612 | ;; |
8d138742 CE |
4613 | sco3.2v5*) |
4614 | lt_cv_sys_max_cmd_len=102400 | |
4615 | ;; | |
4616 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4617 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4618 | if test -n "$kargmax"; then | |
4619 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4620 | else | |
4621 | lt_cv_sys_max_cmd_len=32768 | |
4622 | fi | |
4623 | ;; | |
4624 | *) | |
4625 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4626 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4627 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4628 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4629 | else | |
4630 | # Make teststring a little bigger before we do anything with it. | |
4631 | # a 1K string should be a reasonable start. | |
4632 | for i in 1 2 3 4 5 6 7 8 ; do | |
4633 | teststring=$teststring$teststring | |
4634 | done | |
4635 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4636 | # If test is not a shell built-in, we'll probably end up computing a | |
4637 | # maximum length that is only half of the actual maximum length, but | |
4638 | # we can't tell. | |
4639 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4640 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4641 | test $i != 17 # 1/2 MB should be enough | |
4642 | do | |
4643 | i=`expr $i + 1` | |
4644 | teststring=$teststring$teststring | |
4645 | done | |
4646 | # Only check the string length outside the loop. | |
4647 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4648 | teststring= | |
4649 | # Add a significant safety factor because C++ compilers can tack on | |
4650 | # massive amounts of additional arguments before passing them to the | |
4651 | # linker. It appears as though 1/2 is a usable value. | |
4652 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4653 | fi | |
d9898ee8 | 4654 | ;; |
4655 | esac | |
d9898ee8 | 4656 | |
8d138742 | 4657 | fi |
d9898ee8 | 4658 | |
8d138742 CE |
4659 | if test -n $lt_cv_sys_max_cmd_len ; then |
4660 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4661 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4662 | else | |
4663 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4664 | $as_echo "none" >&6; } | |
d9898ee8 | 4665 | fi |
8d138742 | 4666 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4667 | |
4668 | ||
4669 | ||
4670 | ||
d9898ee8 | 4671 | |
d9898ee8 | 4672 | |
8d138742 CE |
4673 | : ${CP="cp -f"} |
4674 | : ${MV="mv -f"} | |
4675 | : ${RM="rm -f"} | |
d9898ee8 | 4676 | |
8d138742 CE |
4677 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4678 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4679 | # Try some XSI features | |
4680 | xsi_shell=no | |
4681 | ( _lt_dummy="a/b/c" | |
4682 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4683 | = c,a/b,, \ | |
4684 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4685 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4686 | && xsi_shell=yes | |
4687 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4688 | $as_echo "$xsi_shell" >&6; } | |
d9898ee8 | 4689 | |
d9898ee8 | 4690 | |
8d138742 CE |
4691 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4692 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4693 | lt_shell_append=no | |
4694 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4695 | >/dev/null 2>&1 \ | |
4696 | && lt_shell_append=yes | |
4697 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4698 | $as_echo "$lt_shell_append" >&6; } | |
d9898ee8 | 4699 | |
d9898ee8 | 4700 | |
8d138742 CE |
4701 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4702 | lt_unset=unset | |
d9898ee8 | 4703 | else |
8d138742 CE |
4704 | lt_unset=false |
4705 | fi | |
d9898ee8 | 4706 | |
d9898ee8 | 4707 | |
d9898ee8 | 4708 | |
dd184caf | 4709 | |
d9898ee8 | 4710 | |
8d138742 CE |
4711 | # test EBCDIC or ASCII |
4712 | case `echo X|tr X '\101'` in | |
4713 | A) # ASCII based system | |
4714 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4715 | lt_SP2NL='tr \040 \012' | |
4716 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4717 | ;; |
8d138742 CE |
4718 | *) # EBCDIC based system |
4719 | lt_SP2NL='tr \100 \n' | |
4720 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4721 | ;; |
8d138742 | 4722 | esac |
d9898ee8 | 4723 | |
4724 | ||
d9898ee8 | 4725 | |
d9898ee8 | 4726 | |
4727 | ||
8d138742 CE |
4728 | |
4729 | ||
4730 | ||
4731 | ||
4732 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4733 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4734 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4735 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4736 | else |
8d138742 CE |
4737 | lt_cv_ld_reload_flag='-r' |
4738 | fi | |
4739 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4740 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4741 | reload_flag=$lt_cv_ld_reload_flag | |
4742 | case $reload_flag in | |
4743 | "" | " "*) ;; | |
4744 | *) reload_flag=" $reload_flag" ;; | |
4745 | esac | |
4746 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4747 | case $host_os in | |
4748 | darwin*) | |
4749 | if test "$GCC" = yes; then | |
4750 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4751 | else | |
4752 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4753 | fi | |
4754 | ;; | |
dd184caf | 4755 | esac |
d9898ee8 | 4756 | |
dd184caf | 4757 | |
d9898ee8 | 4758 | |
d9898ee8 | 4759 | |
dd184caf | 4760 | |
d9898ee8 | 4761 | |
d9898ee8 | 4762 | |
d9898ee8 | 4763 | |
8d138742 CE |
4764 | |
4765 | if test -n "$ac_tool_prefix"; then | |
4766 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4767 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4768 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4769 | $as_echo_n "checking for $ac_word... " >&6; } | |
4770 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4771 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4772 | else |
8d138742 CE |
4773 | if test -n "$OBJDUMP"; then |
4774 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 4775 | else |
8d138742 CE |
4776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4777 | for as_dir in $PATH | |
4778 | do | |
4779 | IFS=$as_save_IFS | |
4780 | test -z "$as_dir" && as_dir=. | |
4781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4783 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4784 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4785 | break 2 | |
4786 | fi | |
4787 | done | |
4788 | done | |
4789 | IFS=$as_save_IFS | |
d9898ee8 | 4790 | |
8d138742 CE |
4791 | fi |
4792 | fi | |
4793 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4794 | if test -n "$OBJDUMP"; then | |
4795 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4796 | $as_echo "$OBJDUMP" >&6; } | |
4797 | else | |
4798 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4799 | $as_echo "no" >&6; } | |
d9898ee8 | 4800 | fi |
dd184caf | 4801 | |
d9898ee8 | 4802 | |
8d138742 CE |
4803 | fi |
4804 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4805 | ac_ct_OBJDUMP=$OBJDUMP | |
4806 | # Extract the first word of "objdump", so it can be a program name with args. | |
4807 | set dummy objdump; ac_word=$2 | |
4808 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4809 | $as_echo_n "checking for $ac_word... " >&6; } | |
4810 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4811 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4812 | else |
8d138742 CE |
4813 | if test -n "$ac_ct_OBJDUMP"; then |
4814 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4815 | else | |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
4818 | do | |
4819 | IFS=$as_save_IFS | |
4820 | test -z "$as_dir" && as_dir=. | |
4821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4823 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4824 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4825 | break 2 | |
4826 | fi | |
4827 | done | |
4828 | done | |
4829 | IFS=$as_save_IFS | |
d9898ee8 | 4830 | |
8d138742 CE |
4831 | fi |
4832 | fi | |
4833 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4834 | if test -n "$ac_ct_OBJDUMP"; then | |
4835 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4836 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4837 | else | |
4838 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4839 | $as_echo "no" >&6; } | |
d9898ee8 | 4840 | fi |
dd184caf | 4841 | |
8d138742 CE |
4842 | if test "x$ac_ct_OBJDUMP" = x; then |
4843 | OBJDUMP="false" | |
4844 | else | |
4845 | case $cross_compiling:$ac_tool_warned in | |
4846 | yes:) | |
4847 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4849 | ac_tool_warned=yes ;; | |
4850 | esac | |
4851 | OBJDUMP=$ac_ct_OBJDUMP | |
4852 | fi | |
d9898ee8 | 4853 | else |
8d138742 | 4854 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 4855 | fi |
4856 | ||
8d138742 | 4857 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 4858 | |
4859 | ||
d9898ee8 | 4860 | |
d9898ee8 | 4861 | |
d9898ee8 | 4862 | |
dd184caf | 4863 | |
d9898ee8 | 4864 | |
d9898ee8 | 4865 | |
8d138742 CE |
4866 | |
4867 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4868 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4869 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4870 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4871 | else |
8d138742 CE |
4872 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4873 | lt_cv_file_magic_test_file= | |
4874 | lt_cv_deplibs_check_method='unknown' | |
4875 | # Need to set the preceding variable on all platforms that support | |
4876 | # interlibrary dependencies. | |
4877 | # 'none' -- dependencies not supported. | |
4878 | # `unknown' -- same as none, but documents that we really don't know. | |
4879 | # 'pass_all' -- all dependencies passed with no checks. | |
4880 | # 'test_compile' -- check by making test program. | |
4881 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4882 | # which responds to the $file_magic_cmd with a given extended regex. | |
4883 | # If you have `file' or equivalent on your system and you're not sure | |
4884 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 4885 | |
8d138742 CE |
4886 | case $host_os in |
4887 | aix[4-9]*) | |
4888 | lt_cv_deplibs_check_method=pass_all | |
4889 | ;; | |
d9898ee8 | 4890 | |
8d138742 CE |
4891 | beos*) |
4892 | lt_cv_deplibs_check_method=pass_all | |
4893 | ;; | |
d9898ee8 | 4894 | |
8d138742 CE |
4895 | bsdi[45]*) |
4896 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4897 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4898 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4899 | ;; | |
d9898ee8 | 4900 | |
8d138742 CE |
4901 | cygwin*) |
4902 | # func_win32_libid is a shell function defined in ltmain.sh | |
4903 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4904 | lt_cv_file_magic_cmd='func_win32_libid' | |
4905 | ;; | |
d9898ee8 | 4906 | |
8d138742 CE |
4907 | mingw* | pw32*) |
4908 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4909 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4910 | # unless we find 'file', for example because we are cross-compiling. | |
4911 | if ( file / ) >/dev/null 2>&1; then | |
4912 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4913 | lt_cv_file_magic_cmd='func_win32_libid' | |
4914 | else | |
4915 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4916 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4917 | fi | |
4918 | ;; | |
d9898ee8 | 4919 | |
8d138742 CE |
4920 | cegcc) |
4921 | # use the weaker test based on 'objdump'. See mingw*. | |
4922 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4923 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4924 | ;; | |
d9898ee8 | 4925 | |
8d138742 CE |
4926 | darwin* | rhapsody*) |
4927 | lt_cv_deplibs_check_method=pass_all | |
4928 | ;; | |
4929 | ||
4930 | freebsd* | dragonfly*) | |
4931 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4932 | case $host_cpu in | |
4933 | i*86 ) | |
4934 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4935 | # Let's accept both of them until this is cleared up. | |
4936 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4937 | lt_cv_file_magic_cmd=/usr/bin/file | |
4938 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4939 | ;; | |
4940 | esac | |
4941 | else | |
4942 | lt_cv_deplibs_check_method=pass_all | |
4943 | fi | |
4944 | ;; | |
dd184caf | 4945 | |
8d138742 CE |
4946 | gnu*) |
4947 | lt_cv_deplibs_check_method=pass_all | |
4948 | ;; | |
dd184caf | 4949 | |
8d138742 CE |
4950 | hpux10.20* | hpux11*) |
4951 | lt_cv_file_magic_cmd=/usr/bin/file | |
4952 | case $host_cpu in | |
4953 | ia64*) | |
4954 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4955 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4956 | ;; | |
4957 | hppa*64*) | |
4958 | 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]' | |
4959 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4960 | ;; | |
4961 | *) | |
4962 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4963 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4964 | ;; | |
4965 | esac | |
4966 | ;; | |
d9898ee8 | 4967 | |
8d138742 CE |
4968 | interix[3-9]*) |
4969 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4970 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4971 | ;; | |
d9898ee8 | 4972 | |
8d138742 CE |
4973 | irix5* | irix6* | nonstopux*) |
4974 | case $LD in | |
4975 | *-32|*"-32 ") libmagic=32-bit;; | |
4976 | *-n32|*"-n32 ") libmagic=N32;; | |
4977 | *-64|*"-64 ") libmagic=64-bit;; | |
4978 | *) libmagic=never-match;; | |
4979 | esac | |
4980 | lt_cv_deplibs_check_method=pass_all | |
4981 | ;; | |
d9898ee8 | 4982 | |
8d138742 CE |
4983 | # This must be Linux ELF. |
4984 | linux* | k*bsd*-gnu) | |
4985 | lt_cv_deplibs_check_method=pass_all | |
4986 | ;; | |
d9898ee8 | 4987 | |
8d138742 CE |
4988 | netbsd*) |
4989 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4990 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4991 | else | |
4992 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4993 | fi | |
4994 | ;; | |
d9898ee8 | 4995 | |
8d138742 CE |
4996 | newos6*) |
4997 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4998 | lt_cv_file_magic_cmd=/usr/bin/file | |
4999 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5000 | ;; | |
d9898ee8 | 5001 | |
8d138742 CE |
5002 | *nto* | *qnx*) |
5003 | lt_cv_deplibs_check_method=pass_all | |
5004 | ;; | |
d9898ee8 | 5005 | |
8d138742 CE |
5006 | openbsd*) |
5007 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5008 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5009 | else | |
5010 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5011 | fi | |
5012 | ;; | |
d9898ee8 | 5013 | |
8d138742 CE |
5014 | osf3* | osf4* | osf5*) |
5015 | lt_cv_deplibs_check_method=pass_all | |
5016 | ;; | |
d9898ee8 | 5017 | |
8d138742 CE |
5018 | rdos*) |
5019 | lt_cv_deplibs_check_method=pass_all | |
5020 | ;; | |
d9898ee8 | 5021 | |
8d138742 CE |
5022 | solaris*) |
5023 | lt_cv_deplibs_check_method=pass_all | |
5024 | ;; | |
d9898ee8 | 5025 | |
8d138742 CE |
5026 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5027 | lt_cv_deplibs_check_method=pass_all | |
5028 | ;; | |
d9898ee8 | 5029 | |
8d138742 CE |
5030 | sysv4 | sysv4.3*) |
5031 | case $host_vendor in | |
5032 | motorola) | |
5033 | 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]' | |
5034 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5035 | ;; | |
5036 | ncr) | |
5037 | lt_cv_deplibs_check_method=pass_all | |
5038 | ;; | |
5039 | sequent) | |
5040 | lt_cv_file_magic_cmd='/bin/file' | |
5041 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5042 | ;; | |
5043 | sni) | |
5044 | lt_cv_file_magic_cmd='/bin/file' | |
5045 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5046 | lt_cv_file_magic_test_file=/lib/libc.so | |
5047 | ;; | |
5048 | siemens) | |
5049 | lt_cv_deplibs_check_method=pass_all | |
5050 | ;; | |
5051 | pc) | |
5052 | lt_cv_deplibs_check_method=pass_all | |
5053 | ;; | |
5054 | esac | |
5055 | ;; | |
d9898ee8 | 5056 | |
8d138742 CE |
5057 | tpf*) |
5058 | lt_cv_deplibs_check_method=pass_all | |
5059 | ;; | |
dd184caf | 5060 | esac |
d9898ee8 | 5061 | |
d9898ee8 | 5062 | fi |
8d138742 CE |
5063 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5064 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5065 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5066 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5067 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5068 | |
d9898ee8 | 5069 | |
d9898ee8 | 5070 | |
d9898ee8 | 5071 | |
5072 | ||
5073 | ||
d9898ee8 | 5074 | |
dd184caf | 5075 | |
d9898ee8 | 5076 | |
8d138742 CE |
5077 | |
5078 | ||
5079 | ||
5080 | if test -n "$ac_tool_prefix"; then | |
5081 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5082 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5083 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5084 | $as_echo_n "checking for $ac_word... " >&6; } | |
5085 | if test "${ac_cv_prog_AR+set}" = set; then | |
5086 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5087 | else |
8d138742 CE |
5088 | if test -n "$AR"; then |
5089 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5090 | else | |
5091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5092 | for as_dir in $PATH | |
5093 | do | |
5094 | IFS=$as_save_IFS | |
5095 | test -z "$as_dir" && as_dir=. | |
5096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5098 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5099 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5100 | break 2 | |
5101 | fi | |
5102 | done | |
5103 | done | |
5104 | IFS=$as_save_IFS | |
d9898ee8 | 5105 | |
8d138742 CE |
5106 | fi |
5107 | fi | |
5108 | AR=$ac_cv_prog_AR | |
5109 | if test -n "$AR"; then | |
5110 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5111 | $as_echo "$AR" >&6; } | |
5112 | else | |
5113 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5114 | $as_echo "no" >&6; } | |
d9898ee8 | 5115 | fi |
dd184caf | 5116 | |
d9898ee8 | 5117 | |
d9898ee8 | 5118 | fi |
8d138742 CE |
5119 | if test -z "$ac_cv_prog_AR"; then |
5120 | ac_ct_AR=$AR | |
5121 | # Extract the first word of "ar", so it can be a program name with args. | |
5122 | set dummy ar; ac_word=$2 | |
5123 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5124 | $as_echo_n "checking for $ac_word... " >&6; } | |
5125 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5126 | $as_echo_n "(cached) " >&6 | |
5127 | else | |
5128 | if test -n "$ac_ct_AR"; then | |
5129 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5130 | else | |
5131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5132 | for as_dir in $PATH | |
5133 | do | |
5134 | IFS=$as_save_IFS | |
5135 | test -z "$as_dir" && as_dir=. | |
5136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5138 | ac_cv_prog_ac_ct_AR="ar" | |
5139 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5140 | break 2 | |
5141 | fi | |
5142 | done | |
5143 | done | |
5144 | IFS=$as_save_IFS | |
d9898ee8 | 5145 | |
5146 | fi | |
8d138742 CE |
5147 | fi |
5148 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5149 | if test -n "$ac_ct_AR"; then | |
5150 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5151 | $as_echo "$ac_ct_AR" >&6; } | |
5152 | else | |
5153 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5154 | $as_echo "no" >&6; } | |
5155 | fi | |
d9898ee8 | 5156 | |
8d138742 CE |
5157 | if test "x$ac_ct_AR" = x; then |
5158 | AR="false" | |
5159 | else | |
5160 | case $cross_compiling:$ac_tool_warned in | |
5161 | yes:) | |
5162 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5164 | ac_tool_warned=yes ;; | |
5165 | esac | |
5166 | AR=$ac_ct_AR | |
5167 | fi | |
5168 | else | |
5169 | AR="$ac_cv_prog_AR" | |
d9898ee8 | 5170 | fi |
5171 | ||
8d138742 CE |
5172 | test -z "$AR" && AR=ar |
5173 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d9898ee8 | 5174 | |
8d138742 CE |
5175 | |
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | if test -n "$ac_tool_prefix"; then | |
5186 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5187 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5188 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5189 | $as_echo_n "checking for $ac_word... " >&6; } | |
5190 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5191 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5192 | else |
8d138742 CE |
5193 | if test -n "$STRIP"; then |
5194 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5195 | else |
5196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5197 | for as_dir in $PATH | |
5198 | do | |
5199 | IFS=$as_save_IFS | |
5200 | test -z "$as_dir" && as_dir=. | |
5201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5203 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5204 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5205 | break 2 |
5206 | fi | |
5207 | done | |
5208 | done | |
dd184caf | 5209 | IFS=$as_save_IFS |
d9898ee8 | 5210 | |
5211 | fi | |
5212 | fi | |
8d138742 CE |
5213 | STRIP=$ac_cv_prog_STRIP |
5214 | if test -n "$STRIP"; then | |
5215 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5216 | $as_echo "$STRIP" >&6; } | |
d9898ee8 | 5217 | else |
8d138742 CE |
5218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5219 | $as_echo "no" >&6; } | |
d9898ee8 | 5220 | fi |
5221 | ||
dd184caf | 5222 | |
d9898ee8 | 5223 | fi |
8d138742 CE |
5224 | if test -z "$ac_cv_prog_STRIP"; then |
5225 | ac_ct_STRIP=$STRIP | |
5226 | # Extract the first word of "strip", so it can be a program name with args. | |
5227 | set dummy strip; ac_word=$2 | |
5228 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5229 | $as_echo_n "checking for $ac_word... " >&6; } | |
5230 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5231 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5232 | else |
8d138742 CE |
5233 | if test -n "$ac_ct_STRIP"; then |
5234 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5235 | else |
5236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5237 | for as_dir in $PATH | |
5238 | do | |
5239 | IFS=$as_save_IFS | |
5240 | test -z "$as_dir" && as_dir=. | |
5241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5243 | ac_cv_prog_ac_ct_STRIP="strip" |
5244 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5245 | break 2 |
5246 | fi | |
5247 | done | |
5248 | done | |
dd184caf | 5249 | IFS=$as_save_IFS |
d9898ee8 | 5250 | |
5251 | fi | |
5252 | fi | |
8d138742 CE |
5253 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5254 | if test -n "$ac_ct_STRIP"; then | |
5255 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5256 | $as_echo "$ac_ct_STRIP" >&6; } | |
d9898ee8 | 5257 | else |
8d138742 CE |
5258 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5259 | $as_echo "no" >&6; } | |
d9898ee8 | 5260 | fi |
5261 | ||
8d138742 CE |
5262 | if test "x$ac_ct_STRIP" = x; then |
5263 | STRIP=":" | |
dd184caf | 5264 | else |
5265 | case $cross_compiling:$ac_tool_warned in | |
5266 | yes:) | |
8d138742 CE |
5267 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 5269 | ac_tool_warned=yes ;; |
5270 | esac | |
8d138742 | 5271 | STRIP=$ac_ct_STRIP |
dd184caf | 5272 | fi |
8d138742 CE |
5273 | else |
5274 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5275 | fi |
5276 | ||
8d138742 | 5277 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5278 | |
d9898ee8 | 5279 | |
d9898ee8 | 5280 | |
8d138742 CE |
5281 | |
5282 | ||
5283 | ||
5284 | if test -n "$ac_tool_prefix"; then | |
5285 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5286 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5287 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5288 | $as_echo_n "checking for $ac_word... " >&6; } | |
5289 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5290 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5291 | else |
8d138742 CE |
5292 | if test -n "$RANLIB"; then |
5293 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5294 | else | |
5295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5296 | for as_dir in $PATH | |
5297 | do | |
5298 | IFS=$as_save_IFS | |
5299 | test -z "$as_dir" && as_dir=. | |
5300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5302 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5303 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5304 | break 2 | |
5305 | fi | |
5306 | done | |
5307 | done | |
5308 | IFS=$as_save_IFS | |
d9898ee8 | 5309 | |
8d138742 CE |
5310 | fi |
5311 | fi | |
5312 | RANLIB=$ac_cv_prog_RANLIB | |
5313 | if test -n "$RANLIB"; then | |
5314 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5315 | $as_echo "$RANLIB" >&6; } | |
5316 | else | |
5317 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5318 | $as_echo "no" >&6; } | |
d9898ee8 | 5319 | fi |
dd184caf | 5320 | |
d9898ee8 | 5321 | |
8d138742 CE |
5322 | fi |
5323 | if test -z "$ac_cv_prog_RANLIB"; then | |
5324 | ac_ct_RANLIB=$RANLIB | |
5325 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5326 | set dummy ranlib; ac_word=$2 | |
5327 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5328 | $as_echo_n "checking for $ac_word... " >&6; } | |
5329 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5330 | $as_echo_n "(cached) " >&6 | |
5331 | else | |
5332 | if test -n "$ac_ct_RANLIB"; then | |
5333 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5334 | else | |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
5340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5342 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5343 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5344 | break 2 | |
5345 | fi | |
5346 | done | |
5347 | done | |
5348 | IFS=$as_save_IFS | |
d9898ee8 | 5349 | |
8d138742 CE |
5350 | fi |
5351 | fi | |
5352 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5353 | if test -n "$ac_ct_RANLIB"; then | |
5354 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5355 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5356 | else | |
5357 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5358 | $as_echo "no" >&6; } | |
5359 | fi | |
5360 | ||
5361 | if test "x$ac_ct_RANLIB" = x; then | |
5362 | RANLIB=":" | |
5363 | else | |
5364 | case $cross_compiling:$ac_tool_warned in | |
5365 | yes:) | |
5366 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5367 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5368 | ac_tool_warned=yes ;; | |
dd184caf | 5369 | esac |
8d138742 CE |
5370 | RANLIB=$ac_ct_RANLIB |
5371 | fi | |
d9898ee8 | 5372 | else |
8d138742 CE |
5373 | RANLIB="$ac_cv_prog_RANLIB" |
5374 | fi | |
d9898ee8 | 5375 | |
8d138742 | 5376 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 5377 | |
dd184caf | 5378 | |
d9898ee8 | 5379 | |
dd184caf | 5380 | |
dd184caf | 5381 | |
d9898ee8 | 5382 | |
8d138742 CE |
5383 | # Determine commands to create old-style static archives. |
5384 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5385 | old_postinstall_cmds='chmod 644 $oldlib' | |
5386 | old_postuninstall_cmds= | |
dd184caf | 5387 | |
8d138742 CE |
5388 | if test -n "$RANLIB"; then |
5389 | case $host_os in | |
5390 | openbsd*) | |
5391 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5392 | ;; | |
5393 | *) | |
5394 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5395 | ;; | |
5396 | esac | |
5397 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d9898ee8 | 5398 | fi |
dd184caf | 5399 | |
d9898ee8 | 5400 | |
dd184caf | 5401 | |
d9898ee8 | 5402 | |
d9898ee8 | 5403 | |
d9898ee8 | 5404 | |
d9898ee8 | 5405 | |
d9898ee8 | 5406 | |
d9898ee8 | 5407 | |
d9898ee8 | 5408 | |
d9898ee8 | 5409 | |
5410 | ||
5411 | ||
5412 | ||
d9898ee8 | 5413 | |
dd184caf | 5414 | |
d9898ee8 | 5415 | |
d9898ee8 | 5416 | |
dd184caf | 5417 | |
d9898ee8 | 5418 | |
d9898ee8 | 5419 | |
d9898ee8 | 5420 | |
d9898ee8 | 5421 | |
dd184caf | 5422 | |
d9898ee8 | 5423 | |
d9898ee8 | 5424 | |
dd184caf | 5425 | |
d9898ee8 | 5426 | |
d9898ee8 | 5427 | |
d9898ee8 | 5428 | |
d9898ee8 | 5429 | |
5430 | ||
d9898ee8 | 5431 | |
d9898ee8 | 5432 | |
8d138742 CE |
5433 | # If no C compiler was specified, use CC. |
5434 | LTCC=${LTCC-"$CC"} | |
dd184caf | 5435 | |
8d138742 CE |
5436 | # If no C compiler flags were specified, use CFLAGS. |
5437 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5438 | |
8d138742 CE |
5439 | # Allow CC to be a program name with arguments. |
5440 | compiler=$CC | |
5441 | ||
5442 | ||
5443 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5444 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5445 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5446 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5447 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5448 | else |
d9898ee8 | 5449 | |
8d138742 CE |
5450 | # These are sane defaults that work on at least a few old systems. |
5451 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 5452 | |
8d138742 CE |
5453 | # Character class describing NM global symbol codes. |
5454 | symcode='[BCDEGRST]' | |
d9898ee8 | 5455 | |
8d138742 CE |
5456 | # Regexp to match symbols that can be accessed directly from C. |
5457 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5458 | ||
5459 | # Define system-specific variables. | |
5460 | case $host_os in | |
5461 | aix*) | |
5462 | symcode='[BCDT]' | |
5463 | ;; | |
5464 | cygwin* | mingw* | pw32* | cegcc*) | |
5465 | symcode='[ABCDGISTW]' | |
5466 | ;; | |
5467 | hpux*) | |
5468 | if test "$host_cpu" = ia64; then | |
5469 | symcode='[ABCDEGRST]' | |
dd184caf | 5470 | fi |
8d138742 CE |
5471 | ;; |
5472 | irix* | nonstopux*) | |
5473 | symcode='[BCDEGRST]' | |
5474 | ;; | |
5475 | osf*) | |
5476 | symcode='[BCDEGQRST]' | |
5477 | ;; | |
5478 | solaris*) | |
5479 | symcode='[BDRT]' | |
5480 | ;; | |
5481 | sco3.2v5*) | |
5482 | symcode='[DT]' | |
5483 | ;; | |
5484 | sysv4.2uw2*) | |
5485 | symcode='[DT]' | |
5486 | ;; | |
5487 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5488 | symcode='[ABDT]' | |
5489 | ;; | |
5490 | sysv4) | |
5491 | symcode='[DFNSTU]' | |
5492 | ;; | |
5493 | esac | |
5494 | ||
5495 | # If we're using GNU nm, then use its standard symbol codes. | |
5496 | case `$NM -V 2>&1` in | |
5497 | *GNU* | *'with BFD'*) | |
5498 | symcode='[ABCDGIRSTW]' ;; | |
5499 | esac | |
d9898ee8 | 5500 | |
8d138742 CE |
5501 | # Transform an extracted symbol line into a proper C declaration. |
5502 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5503 | # so use this general approach. | |
5504 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 5505 | |
8d138742 CE |
5506 | # Transform an extracted symbol line into symbol name and symbol address |
5507 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5508 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5509 | ||
5510 | # Handle CRLF in mingw tool chain | |
5511 | opt_cr= | |
5512 | case $build_os in | |
5513 | mingw*) | |
5514 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5515 | ;; | |
dd184caf | 5516 | esac |
8d138742 CE |
5517 | |
5518 | # Try without a prefix underscore, then with it. | |
5519 | for ac_symprfx in "" "_"; do | |
5520 | ||
5521 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5522 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5523 | ||
5524 | # Write the raw and C identifiers. | |
5525 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5526 | # Fake it for dumpbin and say T for any non-static function | |
5527 | # and D for any global variable. | |
5528 | # Also find C++ and __fastcall symbols from MSVC++, | |
5529 | # which start with @ or ?. | |
5530 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5531 | " {last_section=section; section=\$ 3};"\ | |
5532 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5533 | " \$ 0!~/External *\|/{next};"\ | |
5534 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5535 | " {if(hide[section]) next};"\ | |
5536 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5537 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5538 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5539 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5540 | " ' prfx=^$ac_symprfx" | |
5541 | else | |
5542 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5543 | fi | |
5544 | ||
5545 | # Check to see that the pipe works correctly. | |
5546 | pipe_works=no | |
5547 | ||
5548 | rm -f conftest* | |
5549 | cat > conftest.$ac_ext <<_LT_EOF | |
5550 | #ifdef __cplusplus | |
5551 | extern "C" { | |
5552 | #endif | |
5553 | char nm_test_var; | |
5554 | void nm_test_func(void); | |
5555 | void nm_test_func(void){} | |
5556 | #ifdef __cplusplus | |
5557 | } | |
5558 | #endif | |
5559 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5560 | _LT_EOF | |
5561 | ||
5562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5563 | (eval $ac_compile) 2>&5 | |
d9898ee8 | 5564 | ac_status=$? |
8d138742 CE |
5565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5566 | (exit $ac_status); }; then | |
5567 | # Now try to grab the symbols. | |
5568 | nlist=conftest.nm | |
5569 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5570 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
d9898ee8 | 5571 | ac_status=$? |
8d138742 CE |
5572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5573 | (exit $ac_status); } && test -s "$nlist"; then | |
5574 | # Try sorting and uniquifying the output. | |
5575 | if sort "$nlist" | uniq > "$nlist"T; then | |
5576 | mv -f "$nlist"T "$nlist" | |
5577 | else | |
5578 | rm -f "$nlist"T | |
5579 | fi | |
d9898ee8 | 5580 | |
8d138742 CE |
5581 | # Make sure that we snagged all the symbols we need. |
5582 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5583 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5584 | cat <<_LT_EOF > conftest.$ac_ext | |
5585 | #ifdef __cplusplus | |
5586 | extern "C" { | |
d9898ee8 | 5587 | #endif |
5588 | ||
8d138742 CE |
5589 | _LT_EOF |
5590 | # Now generate the symbol file. | |
5591 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 5592 | |
8d138742 | 5593 | cat <<_LT_EOF >> conftest.$ac_ext |
dd184caf | 5594 | |
8d138742 CE |
5595 | /* The mapping between symbol names and symbols. */ |
5596 | const struct { | |
5597 | const char *name; | |
5598 | void *address; | |
5599 | } | |
5600 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5601 | { | |
5602 | { "@PROGRAM@", (void *) 0 }, | |
5603 | _LT_EOF | |
5604 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5605 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5606 | {0, (void *) 0} | |
5607 | }; | |
d9898ee8 | 5608 | |
8d138742 CE |
5609 | /* This works around a problem in FreeBSD linker */ |
5610 | #ifdef FREEBSD_WORKAROUND | |
5611 | static const void *lt_preloaded_setup() { | |
5612 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5613 | } | |
5614 | #endif | |
d9898ee8 | 5615 | |
8d138742 CE |
5616 | #ifdef __cplusplus |
5617 | } | |
5618 | #endif | |
5619 | _LT_EOF | |
5620 | # Now try linking the two files. | |
5621 | mv conftest.$ac_objext conftstm.$ac_objext | |
5622 | lt_save_LIBS="$LIBS" | |
5623 | lt_save_CFLAGS="$CFLAGS" | |
5624 | LIBS="conftstm.$ac_objext" | |
5625 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5627 | (eval $ac_link) 2>&5 | |
d9898ee8 | 5628 | ac_status=$? |
8d138742 CE |
5629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5630 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5631 | pipe_works=yes | |
5632 | fi | |
5633 | LIBS="$lt_save_LIBS" | |
5634 | CFLAGS="$lt_save_CFLAGS" | |
5635 | else | |
5636 | echo "cannot find nm_test_func in $nlist" >&5 | |
5637 | fi | |
5638 | else | |
5639 | echo "cannot find nm_test_var in $nlist" >&5 | |
5640 | fi | |
5641 | else | |
5642 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5643 | fi | |
5644 | else | |
5645 | echo "$progname: failed program was:" >&5 | |
5646 | cat conftest.$ac_ext >&5 | |
5647 | fi | |
5648 | rm -rf conftest* conftst* | |
d9898ee8 | 5649 | |
8d138742 CE |
5650 | # Do not use the global_symbol_pipe unless it works. |
5651 | if test "$pipe_works" = yes; then | |
5652 | break | |
5653 | else | |
5654 | lt_cv_sys_global_symbol_pipe= | |
5655 | fi | |
5656 | done | |
dd184caf | 5657 | |
8d138742 | 5658 | fi |
d9898ee8 | 5659 | |
8d138742 CE |
5660 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5661 | lt_cv_sys_global_symbol_to_cdecl= | |
d9898ee8 | 5662 | fi |
8d138742 CE |
5663 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5664 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
5665 | $as_echo "failed" >&6; } | |
d9898ee8 | 5666 | else |
8d138742 CE |
5667 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
5668 | $as_echo "ok" >&6; } | |
d9898ee8 | 5669 | fi |
5670 | ||
d9898ee8 | 5671 | |
5672 | ||
5673 | ||
d9898ee8 | 5674 | |
d9898ee8 | 5675 | |
d9898ee8 | 5676 | |
d9898ee8 | 5677 | |
d9898ee8 | 5678 | |
d9898ee8 | 5679 | |
d9898ee8 | 5680 | |
d9898ee8 | 5681 | |
d9898ee8 | 5682 | |
d9898ee8 | 5683 | |
d9898ee8 | 5684 | |
5685 | ||
5686 | ||
5687 | ||
ac40fd9e | 5688 | |
d9898ee8 | 5689 | |
d9898ee8 | 5690 | |
d9898ee8 | 5691 | |
d9898ee8 | 5692 | |
8d138742 CE |
5693 | # Check whether --enable-libtool-lock was given. |
5694 | if test "${enable_libtool_lock+set}" = set; then | |
5695 | enableval=$enable_libtool_lock; | |
5696 | fi | |
d9898ee8 | 5697 | |
8d138742 | 5698 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
d9898ee8 | 5699 | |
8d138742 CE |
5700 | # Some flags need to be propagated to the compiler or linker for good |
5701 | # libtool support. | |
5702 | case $host in | |
5703 | ia64-*-hpux*) | |
5704 | # Find out which ABI we are using. | |
5705 | echo 'int i;' > conftest.$ac_ext | |
5706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5707 | (eval $ac_compile) 2>&5 | |
5708 | ac_status=$? | |
5709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5710 | (exit $ac_status); }; then | |
5711 | case `/usr/bin/file conftest.$ac_objext` in | |
5712 | *ELF-32*) | |
5713 | HPUX_IA64_MODE="32" | |
5714 | ;; | |
5715 | *ELF-64*) | |
5716 | HPUX_IA64_MODE="64" | |
5717 | ;; | |
5718 | esac | |
d9898ee8 | 5719 | fi |
8d138742 | 5720 | rm -rf conftest* |
d9898ee8 | 5721 | ;; |
8d138742 CE |
5722 | *-*-irix6*) |
5723 | # Find out which ABI we are using. | |
5724 | echo '#line 5724 "configure"' > conftest.$ac_ext | |
5725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5726 | (eval $ac_compile) 2>&5 | |
5727 | ac_status=$? | |
5728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); }; then | |
5730 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5731 | case `/usr/bin/file conftest.$ac_objext` in | |
5732 | *32-bit*) | |
5733 | LD="${LD-ld} -melf32bsmip" | |
5734 | ;; | |
5735 | *N32*) | |
5736 | LD="${LD-ld} -melf32bmipn32" | |
5737 | ;; | |
5738 | *64-bit*) | |
5739 | LD="${LD-ld} -melf64bmip" | |
5740 | ;; | |
5741 | esac | |
5742 | else | |
5743 | case `/usr/bin/file conftest.$ac_objext` in | |
5744 | *32-bit*) | |
5745 | LD="${LD-ld} -32" | |
5746 | ;; | |
5747 | *N32*) | |
5748 | LD="${LD-ld} -n32" | |
5749 | ;; | |
5750 | *64-bit*) | |
5751 | LD="${LD-ld} -64" | |
5752 | ;; | |
5753 | esac | |
5754 | fi | |
d9898ee8 | 5755 | fi |
8d138742 | 5756 | rm -rf conftest* |
d9898ee8 | 5757 | ;; |
d9898ee8 | 5758 | |
8d138742 CE |
5759 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5760 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5761 | # Find out which ABI we are using. | |
5762 | echo 'int i;' > conftest.$ac_ext | |
5763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5764 | (eval $ac_compile) 2>&5 | |
5765 | ac_status=$? | |
5766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5767 | (exit $ac_status); }; then | |
5768 | case `/usr/bin/file conftest.o` in | |
5769 | *32-bit*) | |
5770 | case $host in | |
5771 | x86_64-*kfreebsd*-gnu) | |
5772 | LD="${LD-ld} -m elf_i386_fbsd" | |
5773 | ;; | |
5774 | x86_64-*linux*) | |
5775 | LD="${LD-ld} -m elf_i386" | |
5776 | ;; | |
5777 | ppc64-*linux*|powerpc64-*linux*) | |
5778 | LD="${LD-ld} -m elf32ppclinux" | |
5779 | ;; | |
5780 | s390x-*linux*) | |
5781 | LD="${LD-ld} -m elf_s390" | |
5782 | ;; | |
5783 | sparc64-*linux*) | |
5784 | LD="${LD-ld} -m elf32_sparc" | |
5785 | ;; | |
5786 | esac | |
5787 | ;; | |
5788 | *64-bit*) | |
5789 | case $host in | |
5790 | x86_64-*kfreebsd*-gnu) | |
5791 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5792 | ;; | |
5793 | x86_64-*linux*) | |
5794 | LD="${LD-ld} -m elf_x86_64" | |
5795 | ;; | |
5796 | ppc*-*linux*|powerpc*-*linux*) | |
5797 | LD="${LD-ld} -m elf64ppc" | |
5798 | ;; | |
5799 | s390*-*linux*|s390*-*tpf*) | |
5800 | LD="${LD-ld} -m elf64_s390" | |
5801 | ;; | |
5802 | sparc*-*linux*) | |
5803 | LD="${LD-ld} -m elf64_sparc" | |
5804 | ;; | |
5805 | esac | |
5806 | ;; | |
5807 | esac | |
5808 | fi | |
5809 | rm -rf conftest* | |
d9898ee8 | 5810 | ;; |
d9898ee8 | 5811 | |
8d138742 CE |
5812 | *-*-sco3.2v5*) |
5813 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5814 | SAVE_CFLAGS="$CFLAGS" | |
5815 | CFLAGS="$CFLAGS -belf" | |
5816 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5817 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5818 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5819 | $as_echo_n "(cached) " >&6 | |
5820 | else | |
5821 | ac_ext=c | |
5822 | ac_cpp='$CPP $CPPFLAGS' | |
5823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 5826 | |
8d138742 CE |
5827 | cat >conftest.$ac_ext <<_ACEOF |
5828 | /* confdefs.h. */ | |
5829 | _ACEOF | |
5830 | cat confdefs.h >>conftest.$ac_ext | |
5831 | cat >>conftest.$ac_ext <<_ACEOF | |
5832 | /* end confdefs.h. */ | |
d9898ee8 | 5833 | |
8d138742 CE |
5834 | int |
5835 | main () | |
5836 | { | |
d9898ee8 | 5837 | |
8d138742 CE |
5838 | ; |
5839 | return 0; | |
5840 | } | |
5841 | _ACEOF | |
5842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5843 | if { (ac_try="$ac_link" | |
5844 | case "(($ac_try" in | |
5845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5846 | *) ac_try_echo=$ac_try;; | |
5847 | esac | |
5848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5849 | $as_echo "$ac_try_echo") >&5 | |
5850 | (eval "$ac_link") 2>conftest.er1 | |
5851 | ac_status=$? | |
5852 | grep -v '^ *+' conftest.er1 >conftest.err | |
5853 | rm -f conftest.er1 | |
5854 | cat conftest.err >&5 | |
5855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5856 | (exit $ac_status); } && { | |
5857 | test -z "$ac_c_werror_flag" || | |
5858 | test ! -s conftest.err | |
5859 | } && test -s conftest$ac_exeext && { | |
5860 | test "$cross_compiling" = yes || | |
5861 | $as_test_x conftest$ac_exeext | |
5862 | }; then | |
5863 | lt_cv_cc_needs_belf=yes | |
5864 | else | |
5865 | $as_echo "$as_me: failed program was:" >&5 | |
5866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 5867 | |
8d138742 CE |
5868 | lt_cv_cc_needs_belf=no |
5869 | fi | |
d9898ee8 | 5870 | |
8d138742 CE |
5871 | rm -rf conftest.dSYM |
5872 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5873 | conftest$ac_exeext conftest.$ac_ext | |
5874 | ac_ext=c | |
5875 | ac_cpp='$CPP $CPPFLAGS' | |
5876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 5879 | |
8d138742 CE |
5880 | fi |
5881 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5882 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5883 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5884 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5885 | CFLAGS="$SAVE_CFLAGS" | |
5886 | fi | |
5887 | ;; | |
5888 | sparc*-*solaris*) | |
5889 | # Find out which ABI we are using. | |
5890 | echo 'int i;' > conftest.$ac_ext | |
d9898ee8 | 5891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5892 | (eval $ac_compile) 2>&5 | |
5893 | ac_status=$? | |
8d138742 | 5894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 5895 | (exit $ac_status); }; then |
8d138742 CE |
5896 | case `/usr/bin/file conftest.o` in |
5897 | *64-bit*) | |
5898 | case $lt_cv_prog_gnu_ld in | |
5899 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5900 | *) | |
5901 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5902 | LD="${LD-ld} -64" | |
5903 | fi | |
5904 | ;; | |
5905 | esac | |
5906 | ;; | |
5907 | esac | |
5908 | fi | |
5909 | rm -rf conftest* | |
5910 | ;; | |
5911 | esac | |
d9898ee8 | 5912 | |
8d138742 | 5913 | need_locks="$enable_libtool_lock" |
d9898ee8 | 5914 | |
d9898ee8 | 5915 | |
8d138742 CE |
5916 | case $host_os in |
5917 | rhapsody* | darwin*) | |
5918 | if test -n "$ac_tool_prefix"; then | |
5919 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5920 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5921 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5922 | $as_echo_n "checking for $ac_word... " >&6; } | |
5923 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5924 | $as_echo_n "(cached) " >&6 | |
5925 | else | |
5926 | if test -n "$DSYMUTIL"; then | |
5927 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5928 | else | |
5929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5930 | for as_dir in $PATH | |
5931 | do | |
5932 | IFS=$as_save_IFS | |
5933 | test -z "$as_dir" && as_dir=. | |
5934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5936 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5937 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5938 | break 2 | |
5939 | fi | |
5940 | done | |
5941 | done | |
5942 | IFS=$as_save_IFS | |
d9898ee8 | 5943 | |
8d138742 CE |
5944 | fi |
5945 | fi | |
5946 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5947 | if test -n "$DSYMUTIL"; then | |
5948 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5949 | $as_echo "$DSYMUTIL" >&6; } | |
5950 | else | |
5951 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5952 | $as_echo "no" >&6; } | |
5953 | fi | |
d9898ee8 | 5954 | |
d9898ee8 | 5955 | |
8d138742 CE |
5956 | fi |
5957 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5958 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5959 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5960 | set dummy dsymutil; ac_word=$2 | |
5961 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5962 | $as_echo_n "checking for $ac_word... " >&6; } | |
5963 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5964 | $as_echo_n "(cached) " >&6 | |
5965 | else | |
5966 | if test -n "$ac_ct_DSYMUTIL"; then | |
5967 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5968 | else | |
5969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5970 | for as_dir in $PATH | |
5971 | do | |
5972 | IFS=$as_save_IFS | |
5973 | test -z "$as_dir" && as_dir=. | |
5974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5976 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5977 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5978 | break 2 | |
d9898ee8 | 5979 | fi |
5980 | done | |
8d138742 CE |
5981 | done |
5982 | IFS=$as_save_IFS | |
d9898ee8 | 5983 | |
5984 | fi | |
d9898ee8 | 5985 | fi |
8d138742 CE |
5986 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
5987 | if test -n "$ac_ct_DSYMUTIL"; then | |
5988 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5989 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d9898ee8 | 5990 | else |
8d138742 CE |
5991 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5992 | $as_echo "no" >&6; } | |
d9898ee8 | 5993 | fi |
5994 | ||
8d138742 CE |
5995 | if test "x$ac_ct_DSYMUTIL" = x; then |
5996 | DSYMUTIL=":" | |
5997 | else | |
5998 | case $cross_compiling:$ac_tool_warned in | |
5999 | yes:) | |
6000 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6002 | ac_tool_warned=yes ;; | |
6003 | esac | |
6004 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6005 | fi | |
d9898ee8 | 6006 | else |
8d138742 | 6007 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6008 | fi |
d9898ee8 | 6009 | |
8d138742 CE |
6010 | if test -n "$ac_tool_prefix"; then |
6011 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6012 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6013 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6014 | $as_echo_n "checking for $ac_word... " >&6; } | |
6015 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6016 | $as_echo_n "(cached) " >&6 | |
6017 | else | |
6018 | if test -n "$NMEDIT"; then | |
6019 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6020 | else | |
6021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6022 | for as_dir in $PATH | |
6023 | do | |
6024 | IFS=$as_save_IFS | |
6025 | test -z "$as_dir" && as_dir=. | |
6026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6028 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6029 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6030 | break 2 | |
d9898ee8 | 6031 | fi |
8d138742 CE |
6032 | done |
6033 | done | |
6034 | IFS=$as_save_IFS | |
d9898ee8 | 6035 | |
8d138742 CE |
6036 | fi |
6037 | fi | |
6038 | NMEDIT=$ac_cv_prog_NMEDIT | |
6039 | if test -n "$NMEDIT"; then | |
6040 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6041 | $as_echo "$NMEDIT" >&6; } | |
6042 | else | |
6043 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6044 | $as_echo "no" >&6; } | |
6045 | fi | |
d9898ee8 | 6046 | |
d9898ee8 | 6047 | |
8d138742 CE |
6048 | fi |
6049 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6050 | ac_ct_NMEDIT=$NMEDIT | |
6051 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6052 | set dummy nmedit; ac_word=$2 | |
6053 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6054 | $as_echo_n "checking for $ac_word... " >&6; } | |
6055 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6056 | $as_echo_n "(cached) " >&6 | |
6057 | else | |
6058 | if test -n "$ac_ct_NMEDIT"; then | |
6059 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6060 | else | |
6061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6062 | for as_dir in $PATH | |
6063 | do | |
6064 | IFS=$as_save_IFS | |
6065 | test -z "$as_dir" && as_dir=. | |
6066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6068 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6069 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6070 | break 2 | |
6071 | fi | |
6072 | done | |
6073 | done | |
6074 | IFS=$as_save_IFS | |
d9898ee8 | 6075 | |
8d138742 CE |
6076 | fi |
6077 | fi | |
6078 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6079 | if test -n "$ac_ct_NMEDIT"; then | |
6080 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6081 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6082 | else | |
6083 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6084 | $as_echo "no" >&6; } | |
6085 | fi | |
d9898ee8 | 6086 | |
8d138742 CE |
6087 | if test "x$ac_ct_NMEDIT" = x; then |
6088 | NMEDIT=":" | |
6089 | else | |
6090 | case $cross_compiling:$ac_tool_warned in | |
6091 | yes:) | |
6092 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6093 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6094 | ac_tool_warned=yes ;; | |
6095 | esac | |
6096 | NMEDIT=$ac_ct_NMEDIT | |
6097 | fi | |
6098 | else | |
6099 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6100 | fi | |
d9898ee8 | 6101 | |
8d138742 CE |
6102 | if test -n "$ac_tool_prefix"; then |
6103 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6104 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6105 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6106 | $as_echo_n "checking for $ac_word... " >&6; } | |
6107 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6108 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6109 | else |
8d138742 CE |
6110 | if test -n "$LIPO"; then |
6111 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6112 | else |
6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6114 | for as_dir in $PATH | |
6115 | do | |
6116 | IFS=$as_save_IFS | |
6117 | test -z "$as_dir" && as_dir=. | |
6118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6120 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
6121 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6122 | break 2 |
6123 | fi | |
6124 | done | |
6125 | done | |
dd184caf | 6126 | IFS=$as_save_IFS |
d9898ee8 | 6127 | |
6128 | fi | |
6129 | fi | |
8d138742 CE |
6130 | LIPO=$ac_cv_prog_LIPO |
6131 | if test -n "$LIPO"; then | |
6132 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6133 | $as_echo "$LIPO" >&6; } | |
d9898ee8 | 6134 | else |
8d138742 CE |
6135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6136 | $as_echo "no" >&6; } | |
d9898ee8 | 6137 | fi |
6138 | ||
dd184caf | 6139 | |
d9898ee8 | 6140 | fi |
8d138742 CE |
6141 | if test -z "$ac_cv_prog_LIPO"; then |
6142 | ac_ct_LIPO=$LIPO | |
6143 | # Extract the first word of "lipo", so it can be a program name with args. | |
6144 | set dummy lipo; ac_word=$2 | |
6145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6146 | $as_echo_n "checking for $ac_word... " >&6; } | |
6147 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6148 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6149 | else |
8d138742 CE |
6150 | if test -n "$ac_ct_LIPO"; then |
6151 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 6152 | else |
6153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6154 | for as_dir in $PATH | |
6155 | do | |
6156 | IFS=$as_save_IFS | |
6157 | test -z "$as_dir" && as_dir=. | |
6158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6160 | ac_cv_prog_ac_ct_LIPO="lipo" |
6161 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6162 | break 2 |
6163 | fi | |
6164 | done | |
6165 | done | |
dd184caf | 6166 | IFS=$as_save_IFS |
d9898ee8 | 6167 | |
d9898ee8 | 6168 | fi |
6169 | fi | |
8d138742 CE |
6170 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6171 | if test -n "$ac_ct_LIPO"; then | |
6172 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6173 | $as_echo "$ac_ct_LIPO" >&6; } | |
d9898ee8 | 6174 | else |
8d138742 CE |
6175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6176 | $as_echo "no" >&6; } | |
d9898ee8 | 6177 | fi |
6178 | ||
8d138742 CE |
6179 | if test "x$ac_ct_LIPO" = x; then |
6180 | LIPO=":" | |
dd184caf | 6181 | else |
6182 | case $cross_compiling:$ac_tool_warned in | |
6183 | yes:) | |
8d138742 CE |
6184 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6185 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6186 | ac_tool_warned=yes ;; |
6187 | esac | |
8d138742 | 6188 | LIPO=$ac_ct_LIPO |
dd184caf | 6189 | fi |
d9898ee8 | 6190 | else |
8d138742 | 6191 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 6192 | fi |
6193 | ||
8d138742 CE |
6194 | if test -n "$ac_tool_prefix"; then |
6195 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6196 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6197 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6198 | $as_echo_n "checking for $ac_word... " >&6; } | |
6199 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6200 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6201 | else |
8d138742 CE |
6202 | if test -n "$OTOOL"; then |
6203 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
d9898ee8 | 6204 | else |
6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6206 | for as_dir in $PATH | |
6207 | do | |
6208 | IFS=$as_save_IFS | |
6209 | test -z "$as_dir" && as_dir=. | |
6210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6212 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
6213 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6214 | break 2 |
6215 | fi | |
6216 | done | |
6217 | done | |
dd184caf | 6218 | IFS=$as_save_IFS |
d9898ee8 | 6219 | |
6220 | fi | |
6221 | fi | |
8d138742 CE |
6222 | OTOOL=$ac_cv_prog_OTOOL |
6223 | if test -n "$OTOOL"; then | |
6224 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6225 | $as_echo "$OTOOL" >&6; } | |
d9898ee8 | 6226 | else |
8d138742 CE |
6227 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6228 | $as_echo "no" >&6; } | |
d9898ee8 | 6229 | fi |
6230 | ||
dd184caf | 6231 | |
d9898ee8 | 6232 | fi |
8d138742 CE |
6233 | if test -z "$ac_cv_prog_OTOOL"; then |
6234 | ac_ct_OTOOL=$OTOOL | |
6235 | # Extract the first word of "otool", so it can be a program name with args. | |
6236 | set dummy otool; ac_word=$2 | |
6237 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6238 | $as_echo_n "checking for $ac_word... " >&6; } | |
6239 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6240 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6241 | else |
8d138742 CE |
6242 | if test -n "$ac_ct_OTOOL"; then |
6243 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
d9898ee8 | 6244 | else |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6246 | for as_dir in $PATH | |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6252 | ac_cv_prog_ac_ct_OTOOL="otool" |
6253 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6254 | break 2 |
6255 | fi | |
6256 | done | |
6257 | done | |
dd184caf | 6258 | IFS=$as_save_IFS |
d9898ee8 | 6259 | |
d9898ee8 | 6260 | fi |
6261 | fi | |
8d138742 CE |
6262 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
6263 | if test -n "$ac_ct_OTOOL"; then | |
6264 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6265 | $as_echo "$ac_ct_OTOOL" >&6; } | |
d9898ee8 | 6266 | else |
8d138742 CE |
6267 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6268 | $as_echo "no" >&6; } | |
d9898ee8 | 6269 | fi |
6270 | ||
8d138742 CE |
6271 | if test "x$ac_ct_OTOOL" = x; then |
6272 | OTOOL=":" | |
dd184caf | 6273 | else |
6274 | case $cross_compiling:$ac_tool_warned in | |
6275 | yes:) | |
8d138742 CE |
6276 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6277 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6278 | ac_tool_warned=yes ;; |
6279 | esac | |
8d138742 | 6280 | OTOOL=$ac_ct_OTOOL |
dd184caf | 6281 | fi |
d9898ee8 | 6282 | else |
8d138742 | 6283 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 6284 | fi |
6285 | ||
8d138742 CE |
6286 | if test -n "$ac_tool_prefix"; then |
6287 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6288 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6289 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6290 | $as_echo_n "checking for $ac_word... " >&6; } | |
6291 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6292 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6293 | else |
8d138742 CE |
6294 | if test -n "$OTOOL64"; then |
6295 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
d9898ee8 | 6296 | else |
6297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6298 | for as_dir in $PATH | |
6299 | do | |
6300 | IFS=$as_save_IFS | |
6301 | test -z "$as_dir" && as_dir=. | |
6302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6304 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
6305 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6306 | break 2 |
6307 | fi | |
6308 | done | |
6309 | done | |
dd184caf | 6310 | IFS=$as_save_IFS |
d9898ee8 | 6311 | |
6312 | fi | |
6313 | fi | |
8d138742 CE |
6314 | OTOOL64=$ac_cv_prog_OTOOL64 |
6315 | if test -n "$OTOOL64"; then | |
6316 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6317 | $as_echo "$OTOOL64" >&6; } | |
d9898ee8 | 6318 | else |
8d138742 CE |
6319 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6320 | $as_echo "no" >&6; } | |
d9898ee8 | 6321 | fi |
6322 | ||
dd184caf | 6323 | |
d9898ee8 | 6324 | fi |
8d138742 CE |
6325 | if test -z "$ac_cv_prog_OTOOL64"; then |
6326 | ac_ct_OTOOL64=$OTOOL64 | |
6327 | # Extract the first word of "otool64", so it can be a program name with args. | |
6328 | set dummy otool64; ac_word=$2 | |
6329 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6330 | $as_echo_n "checking for $ac_word... " >&6; } | |
6331 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6332 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6333 | else |
8d138742 CE |
6334 | if test -n "$ac_ct_OTOOL64"; then |
6335 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
d9898ee8 | 6336 | else |
6337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6338 | for as_dir in $PATH | |
6339 | do | |
6340 | IFS=$as_save_IFS | |
6341 | test -z "$as_dir" && as_dir=. | |
6342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6344 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
6345 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6346 | break 2 |
6347 | fi | |
6348 | done | |
6349 | done | |
dd184caf | 6350 | IFS=$as_save_IFS |
d9898ee8 | 6351 | |
d9898ee8 | 6352 | fi |
6353 | fi | |
8d138742 CE |
6354 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
6355 | if test -n "$ac_ct_OTOOL64"; then | |
6356 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6357 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
d9898ee8 | 6358 | else |
8d138742 CE |
6359 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6360 | $as_echo "no" >&6; } | |
d9898ee8 | 6361 | fi |
6362 | ||
8d138742 CE |
6363 | if test "x$ac_ct_OTOOL64" = x; then |
6364 | OTOOL64=":" | |
dd184caf | 6365 | else |
6366 | case $cross_compiling:$ac_tool_warned in | |
6367 | yes:) | |
8d138742 CE |
6368 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6369 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6370 | ac_tool_warned=yes ;; |
6371 | esac | |
8d138742 | 6372 | OTOOL64=$ac_ct_OTOOL64 |
dd184caf | 6373 | fi |
d9898ee8 | 6374 | else |
8d138742 | 6375 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 6376 | fi |
6377 | ||
6378 | ||
d9898ee8 | 6379 | |
d9898ee8 | 6380 | |
d9898ee8 | 6381 | |
d9898ee8 | 6382 | |
d9898ee8 | 6383 | |
6384 | ||
dd184caf | 6385 | |
d9898ee8 | 6386 | |
6387 | ||
d9898ee8 | 6388 | |
d9898ee8 | 6389 | |
d9898ee8 | 6390 | |
d9898ee8 | 6391 | |
6392 | ||
d9898ee8 | 6393 | |
d9898ee8 | 6394 | |
d9898ee8 | 6395 | |
6396 | ||
d9898ee8 | 6397 | |
d9898ee8 | 6398 | |
6399 | ||
6400 | ||
d9898ee8 | 6401 | |
d9898ee8 | 6402 | |
6403 | ||
8d138742 CE |
6404 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
6405 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6406 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6407 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6408 | else |
8d138742 CE |
6409 | lt_cv_apple_cc_single_mod=no |
6410 | if test -z "${LT_MULTI_MODULE}"; then | |
6411 | # By default we will add the -single_module flag. You can override | |
6412 | # by either setting the environment variable LT_MULTI_MODULE | |
6413 | # non-empty at configure time, or by adding -multi_module to the | |
6414 | # link flags. | |
6415 | rm -rf libconftest.dylib* | |
6416 | echo "int foo(void){return 1;}" > conftest.c | |
6417 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6418 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6419 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6420 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6421 | _lt_result=$? | |
6422 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6423 | lt_cv_apple_cc_single_mod=yes | |
6424 | else | |
6425 | cat conftest.err >&5 | |
6426 | fi | |
6427 | rm -rf libconftest.dylib* | |
6428 | rm -f conftest.* | |
6429 | fi | |
d9898ee8 | 6430 | fi |
8d138742 CE |
6431 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
6432 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6433 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6434 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6435 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6436 | $as_echo_n "(cached) " >&6 | |
6437 | else | |
6438 | lt_cv_ld_exported_symbols_list=no | |
6439 | save_LDFLAGS=$LDFLAGS | |
6440 | echo "_main" > conftest.sym | |
6441 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6442 | cat >conftest.$ac_ext <<_ACEOF | |
6443 | /* confdefs.h. */ | |
6444 | _ACEOF | |
6445 | cat confdefs.h >>conftest.$ac_ext | |
6446 | cat >>conftest.$ac_ext <<_ACEOF | |
6447 | /* end confdefs.h. */ | |
d9898ee8 | 6448 | |
8d138742 CE |
6449 | int |
6450 | main () | |
6451 | { | |
6452 | ||
6453 | ; | |
6454 | return 0; | |
6455 | } | |
6456 | _ACEOF | |
6457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6458 | if { (ac_try="$ac_link" | |
6459 | case "(($ac_try" in | |
6460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6461 | *) ac_try_echo=$ac_try;; | |
6462 | esac | |
6463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6464 | $as_echo "$ac_try_echo") >&5 | |
6465 | (eval "$ac_link") 2>conftest.er1 | |
6466 | ac_status=$? | |
6467 | grep -v '^ *+' conftest.er1 >conftest.err | |
6468 | rm -f conftest.er1 | |
6469 | cat conftest.err >&5 | |
6470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6471 | (exit $ac_status); } && { | |
6472 | test -z "$ac_c_werror_flag" || | |
6473 | test ! -s conftest.err | |
6474 | } && test -s conftest$ac_exeext && { | |
6475 | test "$cross_compiling" = yes || | |
6476 | $as_test_x conftest$ac_exeext | |
6477 | }; then | |
6478 | lt_cv_ld_exported_symbols_list=yes | |
d9898ee8 | 6479 | else |
8d138742 CE |
6480 | $as_echo "$as_me: failed program was:" >&5 |
6481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6482 | |
8d138742 | 6483 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 6484 | fi |
6485 | ||
8d138742 CE |
6486 | rm -rf conftest.dSYM |
6487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6488 | conftest$ac_exeext conftest.$ac_ext | |
6489 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 6490 | |
8d138742 CE |
6491 | fi |
6492 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6493 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
d9898ee8 | 6494 | case $host_os in |
8d138742 CE |
6495 | rhapsody* | darwin1.[012]) |
6496 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6497 | darwin1.*) | |
6498 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6499 | darwin*) # darwin 5.x on | |
6500 | # if running on 10.5 or later, the deployment target defaults | |
6501 | # to the OS version, if on x86, and 10.4, the deployment | |
6502 | # target defaults to 10.4. Don't you love it? | |
6503 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6504 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6505 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6506 | 10.[012]*) | |
6507 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6508 | 10.*) | |
6509 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6510 | esac | |
6511 | ;; | |
6512 | esac | |
6513 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6514 | _lt_dar_single_mod='$single_module' | |
6515 | fi | |
6516 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6517 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6518 | else | |
6519 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6520 | fi | |
6521 | if test "$DSYMUTIL" != ":"; then | |
6522 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6523 | else | |
6524 | _lt_dsymutil= | |
6525 | fi | |
6526 | ;; | |
6527 | esac | |
d9898ee8 | 6528 | |
8d138742 CE |
6529 | ac_ext=c |
6530 | ac_cpp='$CPP $CPPFLAGS' | |
6531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6534 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6535 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6536 | # On Suns, sometimes $CPP names a directory. | |
6537 | if test -n "$CPP" && test -d "$CPP"; then | |
6538 | CPP= | |
d9898ee8 | 6539 | fi |
8d138742 CE |
6540 | if test -z "$CPP"; then |
6541 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6542 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6543 | else |
8d138742 CE |
6544 | # Double quotes because CPP needs to be expanded |
6545 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6546 | do | |
6547 | ac_preproc_ok=false | |
6548 | for ac_c_preproc_warn_flag in '' yes | |
6549 | do | |
6550 | # Use a header file that comes with gcc, so configuring glibc | |
6551 | # with a fresh cross-compiler works. | |
6552 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6553 | # <limits.h> exists even on freestanding compilers. | |
6554 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6555 | # not just through cpp. "Syntax error" is here to catch this case. | |
6556 | cat >conftest.$ac_ext <<_ACEOF | |
6557 | /* confdefs.h. */ | |
6558 | _ACEOF | |
6559 | cat confdefs.h >>conftest.$ac_ext | |
6560 | cat >>conftest.$ac_ext <<_ACEOF | |
6561 | /* end confdefs.h. */ | |
6562 | #ifdef __STDC__ | |
6563 | # include <limits.h> | |
6564 | #else | |
6565 | # include <assert.h> | |
6566 | #endif | |
6567 | Syntax error | |
6568 | _ACEOF | |
6569 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6570 | case "(($ac_try" in | |
6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6572 | *) ac_try_echo=$ac_try;; | |
6573 | esac | |
6574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6575 | $as_echo "$ac_try_echo") >&5 | |
6576 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6577 | ac_status=$? | |
6578 | grep -v '^ *+' conftest.er1 >conftest.err | |
6579 | rm -f conftest.er1 | |
6580 | cat conftest.err >&5 | |
6581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6582 | (exit $ac_status); } >/dev/null && { | |
6583 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6584 | test ! -s conftest.err | |
6585 | }; then | |
6586 | : | |
6587 | else | |
6588 | $as_echo "$as_me: failed program was:" >&5 | |
6589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6590 | |
8d138742 CE |
6591 | # Broken: fails on valid input. |
6592 | continue | |
6593 | fi | |
d9898ee8 | 6594 | |
8d138742 | 6595 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6596 | |
8d138742 CE |
6597 | # OK, works on sane cases. Now check whether nonexistent headers |
6598 | # can be detected and how. | |
6599 | cat >conftest.$ac_ext <<_ACEOF | |
6600 | /* confdefs.h. */ | |
6601 | _ACEOF | |
6602 | cat confdefs.h >>conftest.$ac_ext | |
6603 | cat >>conftest.$ac_ext <<_ACEOF | |
6604 | /* end confdefs.h. */ | |
6605 | #include <ac_nonexistent.h> | |
6606 | _ACEOF | |
6607 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6608 | case "(($ac_try" in | |
6609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6610 | *) ac_try_echo=$ac_try;; | |
6611 | esac | |
6612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6613 | $as_echo "$ac_try_echo") >&5 | |
6614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6615 | ac_status=$? | |
6616 | grep -v '^ *+' conftest.er1 >conftest.err | |
6617 | rm -f conftest.er1 | |
6618 | cat conftest.err >&5 | |
6619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6620 | (exit $ac_status); } >/dev/null && { | |
6621 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6622 | test ! -s conftest.err | |
6623 | }; then | |
6624 | # Broken: success on invalid input. | |
6625 | continue | |
6626 | else | |
6627 | $as_echo "$as_me: failed program was:" >&5 | |
6628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6629 | |
8d138742 CE |
6630 | # Passes both tests. |
6631 | ac_preproc_ok=: | |
6632 | break | |
6633 | fi | |
d9898ee8 | 6634 | |
8d138742 | 6635 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6636 | |
8d138742 CE |
6637 | done |
6638 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6639 | rm -f conftest.err conftest.$ac_ext | |
6640 | if $ac_preproc_ok; then | |
6641 | break | |
6642 | fi | |
d9898ee8 | 6643 | |
8d138742 CE |
6644 | done |
6645 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 6646 | |
8d138742 CE |
6647 | fi |
6648 | CPP=$ac_cv_prog_CPP | |
6649 | else | |
6650 | ac_cv_prog_CPP=$CPP | |
6651 | fi | |
6652 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6653 | $as_echo "$CPP" >&6; } | |
6654 | ac_preproc_ok=false | |
6655 | for ac_c_preproc_warn_flag in '' yes | |
6656 | do | |
6657 | # Use a header file that comes with gcc, so configuring glibc | |
6658 | # with a fresh cross-compiler works. | |
6659 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6660 | # <limits.h> exists even on freestanding compilers. | |
6661 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6662 | # not just through cpp. "Syntax error" is here to catch this case. | |
6663 | cat >conftest.$ac_ext <<_ACEOF | |
6664 | /* confdefs.h. */ | |
6665 | _ACEOF | |
6666 | cat confdefs.h >>conftest.$ac_ext | |
6667 | cat >>conftest.$ac_ext <<_ACEOF | |
6668 | /* end confdefs.h. */ | |
6669 | #ifdef __STDC__ | |
6670 | # include <limits.h> | |
6671 | #else | |
6672 | # include <assert.h> | |
6673 | #endif | |
6674 | Syntax error | |
6675 | _ACEOF | |
6676 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6677 | case "(($ac_try" in | |
6678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6679 | *) ac_try_echo=$ac_try;; | |
6680 | esac | |
6681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6682 | $as_echo "$ac_try_echo") >&5 | |
6683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6684 | ac_status=$? | |
6685 | grep -v '^ *+' conftest.er1 >conftest.err | |
6686 | rm -f conftest.er1 | |
6687 | cat conftest.err >&5 | |
6688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6689 | (exit $ac_status); } >/dev/null && { | |
6690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6691 | test ! -s conftest.err | |
6692 | }; then | |
6693 | : | |
6694 | else | |
6695 | $as_echo "$as_me: failed program was:" >&5 | |
6696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6697 | |
8d138742 CE |
6698 | # Broken: fails on valid input. |
6699 | continue | |
6700 | fi | |
d9898ee8 | 6701 | |
8d138742 | 6702 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6703 | |
8d138742 CE |
6704 | # OK, works on sane cases. Now check whether nonexistent headers |
6705 | # can be detected and how. | |
6706 | cat >conftest.$ac_ext <<_ACEOF | |
6707 | /* confdefs.h. */ | |
6708 | _ACEOF | |
6709 | cat confdefs.h >>conftest.$ac_ext | |
6710 | cat >>conftest.$ac_ext <<_ACEOF | |
6711 | /* end confdefs.h. */ | |
6712 | #include <ac_nonexistent.h> | |
6713 | _ACEOF | |
6714 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6715 | case "(($ac_try" in | |
6716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6717 | *) ac_try_echo=$ac_try;; | |
6718 | esac | |
6719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6720 | $as_echo "$ac_try_echo") >&5 | |
6721 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6722 | ac_status=$? | |
6723 | grep -v '^ *+' conftest.er1 >conftest.err | |
6724 | rm -f conftest.er1 | |
6725 | cat conftest.err >&5 | |
6726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6727 | (exit $ac_status); } >/dev/null && { | |
6728 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6729 | test ! -s conftest.err | |
6730 | }; then | |
6731 | # Broken: success on invalid input. | |
6732 | continue | |
6733 | else | |
6734 | $as_echo "$as_me: failed program was:" >&5 | |
6735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6736 | |
8d138742 CE |
6737 | # Passes both tests. |
6738 | ac_preproc_ok=: | |
6739 | break | |
6740 | fi | |
d9898ee8 | 6741 | |
8d138742 | 6742 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6743 | |
8d138742 CE |
6744 | done |
6745 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6746 | rm -f conftest.err conftest.$ac_ext | |
6747 | if $ac_preproc_ok; then | |
6748 | : | |
6749 | else | |
6750 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
6751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6752 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6753 | See \`config.log' for more details." >&5 | |
6754 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6755 | See \`config.log' for more details." >&2;} | |
6756 | { (exit 1); exit 1; }; }; } | |
6757 | fi | |
d9898ee8 | 6758 | |
8d138742 CE |
6759 | ac_ext=c |
6760 | ac_cpp='$CPP $CPPFLAGS' | |
6761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6764 | |
d9898ee8 | 6765 | |
8d138742 CE |
6766 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6767 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6768 | if test "${ac_cv_header_stdc+set}" = set; then | |
6769 | $as_echo_n "(cached) " >&6 | |
6770 | else | |
6771 | cat >conftest.$ac_ext <<_ACEOF | |
6772 | /* confdefs.h. */ | |
6773 | _ACEOF | |
6774 | cat confdefs.h >>conftest.$ac_ext | |
6775 | cat >>conftest.$ac_ext <<_ACEOF | |
6776 | /* end confdefs.h. */ | |
6777 | #include <stdlib.h> | |
6778 | #include <stdarg.h> | |
6779 | #include <string.h> | |
6780 | #include <float.h> | |
d9898ee8 | 6781 | |
8d138742 CE |
6782 | int |
6783 | main () | |
6784 | { | |
d9898ee8 | 6785 | |
8d138742 CE |
6786 | ; |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest.$ac_objext | |
6791 | if { (ac_try="$ac_compile" | |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
6796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6797 | $as_echo "$ac_try_echo") >&5 | |
6798 | (eval "$ac_compile") 2>conftest.er1 | |
6799 | ac_status=$? | |
6800 | grep -v '^ *+' conftest.er1 >conftest.err | |
6801 | rm -f conftest.er1 | |
6802 | cat conftest.err >&5 | |
6803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6804 | (exit $ac_status); } && { | |
6805 | test -z "$ac_c_werror_flag" || | |
6806 | test ! -s conftest.err | |
6807 | } && test -s conftest.$ac_objext; then | |
6808 | ac_cv_header_stdc=yes | |
6809 | else | |
6810 | $as_echo "$as_me: failed program was:" >&5 | |
6811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6812 | |
8d138742 CE |
6813 | ac_cv_header_stdc=no |
6814 | fi | |
d9898ee8 | 6815 | |
8d138742 | 6816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 6817 | |
8d138742 CE |
6818 | if test $ac_cv_header_stdc = yes; then |
6819 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6820 | cat >conftest.$ac_ext <<_ACEOF | |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
6825 | /* end confdefs.h. */ | |
6826 | #include <string.h> | |
d9898ee8 | 6827 | |
8d138742 CE |
6828 | _ACEOF |
6829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6830 | $EGREP "memchr" >/dev/null 2>&1; then | |
6831 | : | |
6832 | else | |
6833 | ac_cv_header_stdc=no | |
6834 | fi | |
6835 | rm -f conftest* | |
d9898ee8 | 6836 | |
8d138742 | 6837 | fi |
d9898ee8 | 6838 | |
8d138742 CE |
6839 | if test $ac_cv_header_stdc = yes; then |
6840 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6841 | cat >conftest.$ac_ext <<_ACEOF | |
6842 | /* confdefs.h. */ | |
6843 | _ACEOF | |
6844 | cat confdefs.h >>conftest.$ac_ext | |
6845 | cat >>conftest.$ac_ext <<_ACEOF | |
6846 | /* end confdefs.h. */ | |
6847 | #include <stdlib.h> | |
d9898ee8 | 6848 | |
8d138742 CE |
6849 | _ACEOF |
6850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6851 | $EGREP "free" >/dev/null 2>&1; then | |
6852 | : | |
6853 | else | |
6854 | ac_cv_header_stdc=no | |
6855 | fi | |
6856 | rm -f conftest* | |
d9898ee8 | 6857 | |
8d138742 | 6858 | fi |
d9898ee8 | 6859 | |
8d138742 CE |
6860 | if test $ac_cv_header_stdc = yes; then |
6861 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6862 | if test "$cross_compiling" = yes; then | |
6863 | : | |
6864 | else | |
6865 | cat >conftest.$ac_ext <<_ACEOF | |
6866 | /* confdefs.h. */ | |
6867 | _ACEOF | |
6868 | cat confdefs.h >>conftest.$ac_ext | |
6869 | cat >>conftest.$ac_ext <<_ACEOF | |
6870 | /* end confdefs.h. */ | |
6871 | #include <ctype.h> | |
6872 | #include <stdlib.h> | |
6873 | #if ((' ' & 0x0FF) == 0x020) | |
6874 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6875 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6876 | #else | |
6877 | # define ISLOWER(c) \ | |
6878 | (('a' <= (c) && (c) <= 'i') \ | |
6879 | || ('j' <= (c) && (c) <= 'r') \ | |
6880 | || ('s' <= (c) && (c) <= 'z')) | |
6881 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6882 | #endif | |
d9898ee8 | 6883 | |
8d138742 CE |
6884 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6885 | int | |
6886 | main () | |
6887 | { | |
6888 | int i; | |
6889 | for (i = 0; i < 256; i++) | |
6890 | if (XOR (islower (i), ISLOWER (i)) | |
6891 | || toupper (i) != TOUPPER (i)) | |
6892 | return 2; | |
6893 | return 0; | |
6894 | } | |
6895 | _ACEOF | |
6896 | rm -f conftest$ac_exeext | |
6897 | if { (ac_try="$ac_link" | |
6898 | case "(($ac_try" in | |
6899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6900 | *) ac_try_echo=$ac_try;; | |
6901 | esac | |
6902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6903 | $as_echo "$ac_try_echo") >&5 | |
6904 | (eval "$ac_link") 2>&5 | |
6905 | ac_status=$? | |
6906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6907 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6908 | { (case "(($ac_try" in | |
6909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6910 | *) ac_try_echo=$ac_try;; | |
6911 | esac | |
6912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6913 | $as_echo "$ac_try_echo") >&5 | |
6914 | (eval "$ac_try") 2>&5 | |
6915 | ac_status=$? | |
6916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6917 | (exit $ac_status); }; }; then | |
6918 | : | |
6919 | else | |
6920 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6921 | $as_echo "$as_me: failed program was:" >&5 | |
6922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6923 | |
8d138742 CE |
6924 | ( exit $ac_status ) |
6925 | ac_cv_header_stdc=no | |
6926 | fi | |
6927 | rm -rf conftest.dSYM | |
6928 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6929 | fi | |
d9898ee8 | 6930 | |
d9898ee8 | 6931 | |
8d138742 CE |
6932 | fi |
6933 | fi | |
6934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6935 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6936 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 6937 | |
8d138742 CE |
6938 | cat >>confdefs.h <<\_ACEOF |
6939 | #define STDC_HEADERS 1 | |
6940 | _ACEOF | |
d9898ee8 | 6941 | |
8d138742 | 6942 | fi |
d9898ee8 | 6943 | |
8d138742 | 6944 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d9898ee8 | 6945 | |
d9898ee8 | 6946 | |
d9898ee8 | 6947 | |
d9898ee8 | 6948 | |
d9898ee8 | 6949 | |
d9898ee8 | 6950 | |
d9898ee8 | 6951 | |
d9898ee8 | 6952 | |
d9898ee8 | 6953 | |
8d138742 CE |
6954 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6955 | inttypes.h stdint.h unistd.h | |
6956 | do | |
6957 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6958 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6959 | $as_echo_n "checking for $ac_header... " >&6; } | |
6960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6961 | $as_echo_n "(cached) " >&6 | |
6962 | else | |
6963 | cat >conftest.$ac_ext <<_ACEOF | |
6964 | /* confdefs.h. */ | |
6965 | _ACEOF | |
6966 | cat confdefs.h >>conftest.$ac_ext | |
6967 | cat >>conftest.$ac_ext <<_ACEOF | |
6968 | /* end confdefs.h. */ | |
6969 | $ac_includes_default | |
d9898ee8 | 6970 | |
8d138742 CE |
6971 | #include <$ac_header> |
6972 | _ACEOF | |
6973 | rm -f conftest.$ac_objext | |
6974 | if { (ac_try="$ac_compile" | |
6975 | case "(($ac_try" in | |
6976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6977 | *) ac_try_echo=$ac_try;; | |
6978 | esac | |
6979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6980 | $as_echo "$ac_try_echo") >&5 | |
6981 | (eval "$ac_compile") 2>conftest.er1 | |
6982 | ac_status=$? | |
6983 | grep -v '^ *+' conftest.er1 >conftest.err | |
6984 | rm -f conftest.er1 | |
6985 | cat conftest.err >&5 | |
6986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6987 | (exit $ac_status); } && { | |
6988 | test -z "$ac_c_werror_flag" || | |
6989 | test ! -s conftest.err | |
6990 | } && test -s conftest.$ac_objext; then | |
6991 | eval "$as_ac_Header=yes" | |
6992 | else | |
6993 | $as_echo "$as_me: failed program was:" >&5 | |
6994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6995 | |
8d138742 CE |
6996 | eval "$as_ac_Header=no" |
6997 | fi | |
d9898ee8 | 6998 | |
8d138742 CE |
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7000 | fi | |
7001 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7002 | $as_echo "$as_val"'` | |
7003 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7004 | $as_echo "$ac_res" >&6; } | |
7005 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7006 | $as_echo "$as_val"'` | |
7007 | if test "x$as_val" = x""yes; then | |
7008 | cat >>confdefs.h <<_ACEOF | |
7009 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7010 | _ACEOF | |
d9898ee8 | 7011 | |
8d138742 | 7012 | fi |
d9898ee8 | 7013 | |
8d138742 | 7014 | done |
d9898ee8 | 7015 | |
d9898ee8 | 7016 | |
d9898ee8 | 7017 | |
8d138742 CE |
7018 | for ac_header in dlfcn.h |
7019 | do | |
7020 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7021 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7022 | $as_echo_n "checking for $ac_header... " >&6; } | |
7023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7024 | $as_echo_n "(cached) " >&6 | |
7025 | else | |
7026 | cat >conftest.$ac_ext <<_ACEOF | |
7027 | /* confdefs.h. */ | |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
7032 | $ac_includes_default | |
d9898ee8 | 7033 | |
8d138742 CE |
7034 | #include <$ac_header> |
7035 | _ACEOF | |
7036 | rm -f conftest.$ac_objext | |
7037 | if { (ac_try="$ac_compile" | |
7038 | case "(($ac_try" in | |
7039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7040 | *) ac_try_echo=$ac_try;; | |
7041 | esac | |
7042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7043 | $as_echo "$ac_try_echo") >&5 | |
7044 | (eval "$ac_compile") 2>conftest.er1 | |
7045 | ac_status=$? | |
7046 | grep -v '^ *+' conftest.er1 >conftest.err | |
7047 | rm -f conftest.er1 | |
7048 | cat conftest.err >&5 | |
7049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7050 | (exit $ac_status); } && { | |
7051 | test -z "$ac_c_werror_flag" || | |
7052 | test ! -s conftest.err | |
7053 | } && test -s conftest.$ac_objext; then | |
7054 | eval "$as_ac_Header=yes" | |
7055 | else | |
7056 | $as_echo "$as_me: failed program was:" >&5 | |
7057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7058 | |
8d138742 CE |
7059 | eval "$as_ac_Header=no" |
7060 | fi | |
d9898ee8 | 7061 | |
8d138742 CE |
7062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7063 | fi | |
7064 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7065 | $as_echo "$as_val"'` | |
7066 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7067 | $as_echo "$ac_res" >&6; } | |
7068 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7069 | $as_echo "$as_val"'` | |
7070 | if test "x$as_val" = x""yes; then | |
7071 | cat >>confdefs.h <<_ACEOF | |
7072 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7073 | _ACEOF | |
d9898ee8 | 7074 | |
8d138742 | 7075 | fi |
d9898ee8 | 7076 | |
8d138742 | 7077 | done |
d9898ee8 | 7078 | |
d9898ee8 | 7079 | |
d9898ee8 | 7080 | |
8d138742 | 7081 | # Set options |
d9898ee8 | 7082 | |
d9898ee8 | 7083 | |
d9898ee8 | 7084 | |
8d138742 | 7085 | enable_dlopen=no |
d9898ee8 | 7086 | |
d9898ee8 | 7087 | |
8d138742 | 7088 | enable_win32_dll=no |
d9898ee8 | 7089 | |
d9898ee8 | 7090 | |
8d138742 CE |
7091 | # Check whether --enable-shared was given. |
7092 | if test "${enable_shared+set}" = set; then | |
7093 | enableval=$enable_shared; p=${PACKAGE-default} | |
7094 | case $enableval in | |
7095 | yes) enable_shared=yes ;; | |
7096 | no) enable_shared=no ;; | |
7097 | *) | |
7098 | enable_shared=no | |
7099 | # Look at the argument we got. We use all the common list separators. | |
7100 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7101 | for pkg in $enableval; do | |
7102 | IFS="$lt_save_ifs" | |
7103 | if test "X$pkg" = "X$p"; then | |
7104 | enable_shared=yes | |
7105 | fi | |
7106 | done | |
7107 | IFS="$lt_save_ifs" | |
7108 | ;; | |
7109 | esac | |
7110 | else | |
7111 | enable_shared=yes | |
7112 | fi | |
d9898ee8 | 7113 | |
d9898ee8 | 7114 | |
d9898ee8 | 7115 | |
d9898ee8 | 7116 | |
d9898ee8 | 7117 | |
d9898ee8 | 7118 | |
d9898ee8 | 7119 | |
d9898ee8 | 7120 | |
7121 | ||
8d138742 CE |
7122 | # Check whether --enable-static was given. |
7123 | if test "${enable_static+set}" = set; then | |
7124 | enableval=$enable_static; p=${PACKAGE-default} | |
7125 | case $enableval in | |
7126 | yes) enable_static=yes ;; | |
7127 | no) enable_static=no ;; | |
7128 | *) | |
7129 | enable_static=no | |
7130 | # Look at the argument we got. We use all the common list separators. | |
7131 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7132 | for pkg in $enableval; do | |
7133 | IFS="$lt_save_ifs" | |
7134 | if test "X$pkg" = "X$p"; then | |
7135 | enable_static=yes | |
7136 | fi | |
7137 | done | |
7138 | IFS="$lt_save_ifs" | |
7139 | ;; | |
7140 | esac | |
d9898ee8 | 7141 | else |
8d138742 | 7142 | enable_static=yes |
d9898ee8 | 7143 | fi |
7144 | ||
7145 | ||
d9898ee8 | 7146 | |
d9898ee8 | 7147 | |
d9898ee8 | 7148 | |
d9898ee8 | 7149 | |
d9898ee8 | 7150 | |
d9898ee8 | 7151 | |
d9898ee8 | 7152 | |
d9898ee8 | 7153 | |
8d138742 CE |
7154 | # Check whether --with-pic was given. |
7155 | if test "${with_pic+set}" = set; then | |
7156 | withval=$with_pic; pic_mode="$withval" | |
7157 | else | |
7158 | pic_mode=default | |
7159 | fi | |
d9898ee8 | 7160 | |
7161 | ||
8d138742 | 7162 | test -z "$pic_mode" && pic_mode=default |
d9898ee8 | 7163 | |
d9898ee8 | 7164 | |
7165 | ||
d9898ee8 | 7166 | |
7167 | ||
d9898ee8 | 7168 | |
d9898ee8 | 7169 | |
8d138742 CE |
7170 | # Check whether --enable-fast-install was given. |
7171 | if test "${enable_fast_install+set}" = set; then | |
7172 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7173 | case $enableval in | |
7174 | yes) enable_fast_install=yes ;; | |
7175 | no) enable_fast_install=no ;; | |
7176 | *) | |
7177 | enable_fast_install=no | |
7178 | # Look at the argument we got. We use all the common list separators. | |
7179 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7180 | for pkg in $enableval; do | |
7181 | IFS="$lt_save_ifs" | |
7182 | if test "X$pkg" = "X$p"; then | |
7183 | enable_fast_install=yes | |
7184 | fi | |
7185 | done | |
7186 | IFS="$lt_save_ifs" | |
7187 | ;; | |
7188 | esac | |
7189 | else | |
7190 | enable_fast_install=yes | |
7191 | fi | |
d9898ee8 | 7192 | |
d9898ee8 | 7193 | |
d9898ee8 | 7194 | |
d9898ee8 | 7195 | |
d9898ee8 | 7196 | |
d9898ee8 | 7197 | |
d9898ee8 | 7198 | |
d9898ee8 | 7199 | |
d9898ee8 | 7200 | |
d9898ee8 | 7201 | |
d9898ee8 | 7202 | |
8d138742 CE |
7203 | # This can be used to rebuild libtool when needed |
7204 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7205 | |
8d138742 CE |
7206 | # Always use our own libtool. |
7207 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7208 | |
d9898ee8 | 7209 | |
d9898ee8 | 7210 | |
d9898ee8 | 7211 | |
d9898ee8 | 7212 | |
d9898ee8 | 7213 | |
d9898ee8 | 7214 | |
d9898ee8 | 7215 | |
d9898ee8 | 7216 | |
d9898ee8 | 7217 | |
ac40fd9e | 7218 | |
d9898ee8 | 7219 | |
d9898ee8 | 7220 | |
d9898ee8 | 7221 | |
d9898ee8 | 7222 | |
d9898ee8 | 7223 | |
d9898ee8 | 7224 | |
d9898ee8 | 7225 | |
d9898ee8 | 7226 | |
d9898ee8 | 7227 | |
d9898ee8 | 7228 | |
d9898ee8 | 7229 | |
d9898ee8 | 7230 | |
d9898ee8 | 7231 | |
d9898ee8 | 7232 | |
8d138742 CE |
7233 | test -z "$LN_S" && LN_S="ln -s" |
7234 | ||
d9898ee8 | 7235 | |
d9898ee8 | 7236 | |
d9898ee8 | 7237 | |
7238 | ||
d9898ee8 | 7239 | |
d9898ee8 | 7240 | |
d9898ee8 | 7241 | |
7242 | ||
8d138742 CE |
7243 | |
7244 | ||
7245 | ||
7246 | ||
7247 | ||
7248 | if test -n "${ZSH_VERSION+set}" ; then | |
7249 | setopt NO_GLOB_SUBST | |
7250 | fi | |
7251 | ||
7252 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 | |
7253 | $as_echo_n "checking for objdir... " >&6; } | |
7254 | if test "${lt_cv_objdir+set}" = set; then | |
7255 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7256 | else |
8d138742 CE |
7257 | rm -f .libs 2>/dev/null |
7258 | mkdir .libs 2>/dev/null | |
7259 | if test -d .libs; then | |
7260 | lt_cv_objdir=.libs | |
7261 | else | |
7262 | # MS-DOS does not allow filenames that begin with a dot. | |
7263 | lt_cv_objdir=_libs | |
d9898ee8 | 7264 | fi |
8d138742 CE |
7265 | rmdir .libs 2>/dev/null |
7266 | fi | |
7267 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7268 | $as_echo "$lt_cv_objdir" >&6; } | |
7269 | objdir=$lt_cv_objdir | |
d9898ee8 | 7270 | |
d9898ee8 | 7271 | |
d9898ee8 | 7272 | |
d9898ee8 | 7273 | |
d9898ee8 | 7274 | |
8d138742 CE |
7275 | cat >>confdefs.h <<_ACEOF |
7276 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7277 | _ACEOF | |
d9898ee8 | 7278 | |
d9898ee8 | 7279 | |
d9898ee8 | 7280 | |
d9898ee8 | 7281 | |
d9898ee8 | 7282 | |
d9898ee8 | 7283 | |
d9898ee8 | 7284 | |
d9898ee8 | 7285 | |
d9898ee8 | 7286 | |
d9898ee8 | 7287 | |
d9898ee8 | 7288 | |
d9898ee8 | 7289 | |
d9898ee8 | 7290 | |
d9898ee8 | 7291 | |
d9898ee8 | 7292 | |
d9898ee8 | 7293 | |
d9898ee8 | 7294 | |
8d138742 CE |
7295 | case $host_os in |
7296 | aix3*) | |
7297 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7298 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7299 | # vanish in a puff of smoke. | |
7300 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7301 | COLLECT_NAMES= | |
7302 | export COLLECT_NAMES | |
7303 | fi | |
7304 | ;; | |
7305 | esac | |
d9898ee8 | 7306 | |
8d138742 CE |
7307 | # Sed substitution that helps us do robust quoting. It backslashifies |
7308 | # metacharacters that are still active within double-quoted strings. | |
7309 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d9898ee8 | 7310 | |
8d138742 CE |
7311 | # Same as above, but do not quote variable references. |
7312 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7313 | ||
7314 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7315 | # double_quote_subst'ed string. | |
7316 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7317 | ||
7318 | # Sed substitution to delay expansion of an escaped single quote. | |
7319 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7320 | ||
7321 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7322 | no_glob_subst='s/\*/\\\*/g' | |
d9898ee8 | 7323 | |
8d138742 CE |
7324 | # Global variables: |
7325 | ofile=libtool | |
7326 | can_build_shared=yes | |
d9898ee8 | 7327 | |
8d138742 CE |
7328 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7329 | # which needs '.lib'). | |
7330 | libext=a | |
d9898ee8 | 7331 | |
8d138742 | 7332 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 7333 | |
8d138742 CE |
7334 | old_CC="$CC" |
7335 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 7336 | |
8d138742 CE |
7337 | # Set sane defaults for various variables |
7338 | test -z "$CC" && CC=cc | |
7339 | test -z "$LTCC" && LTCC=$CC | |
7340 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7341 | test -z "$LD" && LD=ld | |
7342 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 7343 | |
8d138742 CE |
7344 | for cc_temp in $compiler""; do |
7345 | case $cc_temp in | |
7346 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7347 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7348 | \-*) ;; | |
7349 | *) break;; | |
7350 | esac | |
7351 | done | |
7352 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7353 | ||
7354 | ||
7355 | # Only perform the check for file, if the check method requires it | |
7356 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7357 | case $deplibs_check_method in | |
7358 | file_magic*) | |
7359 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7360 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7361 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7362 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7363 | $as_echo_n "(cached) " >&6 | |
7364 | else | |
7365 | case $MAGIC_CMD in | |
7366 | [\\/*] | ?:[\\/]*) | |
7367 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7368 | ;; | |
7369 | *) | |
7370 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7371 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7372 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7373 | for ac_dir in $ac_dummy; do | |
7374 | IFS="$lt_save_ifs" | |
7375 | test -z "$ac_dir" && ac_dir=. | |
7376 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7377 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7378 | if test -n "$file_magic_test_file"; then | |
7379 | case $deplibs_check_method in | |
7380 | "file_magic "*) | |
7381 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7382 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7383 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7384 | $EGREP "$file_magic_regex" > /dev/null; then | |
7385 | : | |
d9898ee8 | 7386 | else |
8d138742 | 7387 | cat <<_LT_EOF 1>&2 |
d9898ee8 | 7388 | |
8d138742 CE |
7389 | *** Warning: the command libtool uses to detect shared libraries, |
7390 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7391 | *** The result is that libtool may fail to recognize shared libraries | |
7392 | *** as such. This will affect the creation of libtool libraries that | |
7393 | *** depend on shared libraries, but programs linked with such libtool | |
7394 | *** libraries will work regardless of this problem. Nevertheless, you | |
7395 | *** may want to report the problem to your system manager and/or to | |
7396 | *** bug-libtool@gnu.org | |
d9898ee8 | 7397 | |
8d138742 CE |
7398 | _LT_EOF |
7399 | fi ;; | |
7400 | esac | |
7401 | fi | |
7402 | break | |
7403 | fi | |
7404 | done | |
7405 | IFS="$lt_save_ifs" | |
7406 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7407 | ;; | |
dd184caf | 7408 | esac |
ac40fd9e | 7409 | fi |
8d138742 CE |
7410 | |
7411 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7412 | if test -n "$MAGIC_CMD"; then | |
7413 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7414 | $as_echo "$MAGIC_CMD" >&6; } | |
d9898ee8 | 7415 | else |
8d138742 CE |
7416 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7417 | $as_echo "no" >&6; } | |
7418 | fi | |
d9898ee8 | 7419 | |
dd184caf | 7420 | |
dd184caf | 7421 | |
d9898ee8 | 7422 | |
d9898ee8 | 7423 | |
8d138742 CE |
7424 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7425 | if test -n "$ac_tool_prefix"; then | |
7426 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7427 | $as_echo_n "checking for file... " >&6; } | |
7428 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7429 | $as_echo_n "(cached) " >&6 | |
7430 | else | |
7431 | case $MAGIC_CMD in | |
7432 | [\\/*] | ?:[\\/]*) | |
7433 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7434 | ;; | |
7435 | *) | |
7436 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7437 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7438 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7439 | for ac_dir in $ac_dummy; do | |
7440 | IFS="$lt_save_ifs" | |
7441 | test -z "$ac_dir" && ac_dir=. | |
7442 | if test -f $ac_dir/file; then | |
7443 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7444 | if test -n "$file_magic_test_file"; then | |
7445 | case $deplibs_check_method in | |
7446 | "file_magic "*) | |
7447 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7448 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7449 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7450 | $EGREP "$file_magic_regex" > /dev/null; then | |
7451 | : | |
7452 | else | |
7453 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7454 | |
8d138742 CE |
7455 | *** Warning: the command libtool uses to detect shared libraries, |
7456 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7457 | *** The result is that libtool may fail to recognize shared libraries | |
7458 | *** as such. This will affect the creation of libtool libraries that | |
7459 | *** depend on shared libraries, but programs linked with such libtool | |
7460 | *** libraries will work regardless of this problem. Nevertheless, you | |
7461 | *** may want to report the problem to your system manager and/or to | |
7462 | *** bug-libtool@gnu.org | |
7463 | ||
7464 | _LT_EOF | |
7465 | fi ;; | |
7466 | esac | |
7467 | fi | |
7468 | break | |
7469 | fi | |
7470 | done | |
7471 | IFS="$lt_save_ifs" | |
7472 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7473 | ;; | |
7474 | esac | |
ac40fd9e | 7475 | fi |
8d138742 CE |
7476 | |
7477 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7478 | if test -n "$MAGIC_CMD"; then | |
7479 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7480 | $as_echo "$MAGIC_CMD" >&6; } | |
d9898ee8 | 7481 | else |
8d138742 CE |
7482 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7483 | $as_echo "no" >&6; } | |
7484 | fi | |
d9898ee8 | 7485 | |
dd184caf | 7486 | |
8d138742 CE |
7487 | else |
7488 | MAGIC_CMD=: | |
7489 | fi | |
d9898ee8 | 7490 | fi |
dd184caf | 7491 | |
8d138742 CE |
7492 | fi |
7493 | ;; | |
7494 | esac | |
d9898ee8 | 7495 | |
8d138742 | 7496 | # Use C for the default configuration in the libtool script |
d9898ee8 | 7497 | |
8d138742 CE |
7498 | lt_save_CC="$CC" |
7499 | ac_ext=c | |
7500 | ac_cpp='$CPP $CPPFLAGS' | |
7501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7504 | |
d9898ee8 | 7505 | |
8d138742 CE |
7506 | # Source file extension for C test sources. |
7507 | ac_ext=c | |
d9898ee8 | 7508 | |
8d138742 CE |
7509 | # Object file extension for compiled C test sources. |
7510 | objext=o | |
7511 | objext=$objext | |
d9898ee8 | 7512 | |
8d138742 CE |
7513 | # Code to be used in simple compile tests |
7514 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 7515 | |
8d138742 CE |
7516 | # Code to be used in simple link tests |
7517 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 7518 | |
d9898ee8 | 7519 | |
d9898ee8 | 7520 | |
d9898ee8 | 7521 | |
d9898ee8 | 7522 | |
d9898ee8 | 7523 | |
d9898ee8 | 7524 | |
8d138742 CE |
7525 | # If no C compiler was specified, use CC. |
7526 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 7527 | |
8d138742 CE |
7528 | # If no C compiler flags were specified, use CFLAGS. |
7529 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 7530 | |
8d138742 CE |
7531 | # Allow CC to be a program name with arguments. |
7532 | compiler=$CC | |
d9898ee8 | 7533 | |
8d138742 CE |
7534 | # Save the default compiler, since it gets overwritten when the other |
7535 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7536 | compiler_DEFAULT=$CC | |
d9898ee8 | 7537 | |
8d138742 CE |
7538 | # save warnings/boilerplate of simple test code |
7539 | ac_outfile=conftest.$ac_objext | |
7540 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7541 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7542 | _lt_compiler_boilerplate=`cat conftest.err` | |
7543 | $RM conftest* | |
d9898ee8 | 7544 | |
8d138742 CE |
7545 | ac_outfile=conftest.$ac_objext |
7546 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7547 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7548 | _lt_linker_boilerplate=`cat conftest.err` | |
7549 | $RM -r conftest* | |
d9898ee8 | 7550 | |
d9898ee8 | 7551 | |
8d138742 | 7552 | if test -n "$compiler"; then |
d9898ee8 | 7553 | |
8d138742 | 7554 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 7555 | |
8d138742 CE |
7556 | if test "$GCC" = yes; then |
7557 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d9898ee8 | 7558 | |
8d138742 CE |
7559 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7560 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7561 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7562 | $as_echo_n "(cached) " >&6 | |
7563 | else | |
7564 | lt_cv_prog_compiler_rtti_exceptions=no | |
7565 | ac_outfile=conftest.$ac_objext | |
7566 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7567 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7568 | # Insert the option either (1) after the last *FLAGS variable, or | |
7569 | # (2) before a word containing "conftest.", or (3) at the end. | |
7570 | # Note that $ac_compile itself does not contain backslashes and begins | |
7571 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7572 | # The option is referenced via a variable to avoid confusing sed. | |
7573 | lt_compile=`echo "$ac_compile" | $SED \ | |
7574 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7575 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7576 | -e 's:$: $lt_compiler_flag:'` | |
7577 | (eval echo "\"\$as_me:7577: $lt_compile\"" >&5) | |
7578 | (eval "$lt_compile" 2>conftest.err) | |
7579 | ac_status=$? | |
7580 | cat conftest.err >&5 | |
7581 | echo "$as_me:7581: \$? = $ac_status" >&5 | |
7582 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7583 | # The compiler can only warn and ignore the option if not recognized | |
7584 | # So say no if there are warnings other than the usual output. | |
7585 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7586 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7587 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7588 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7589 | fi | |
7590 | fi | |
7591 | $RM conftest* | |
d9898ee8 | 7592 | |
8d138742 CE |
7593 | fi |
7594 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7595 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 7596 | |
8d138742 CE |
7597 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7598 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7599 | else | |
7600 | : | |
7601 | fi | |
d9898ee8 | 7602 | |
8d138742 | 7603 | fi |
d9898ee8 | 7604 | |
d9898ee8 | 7605 | |
d9898ee8 | 7606 | |
d9898ee8 | 7607 | |
d9898ee8 | 7608 | |
d9898ee8 | 7609 | |
8d138742 CE |
7610 | lt_prog_compiler_wl= |
7611 | lt_prog_compiler_pic= | |
7612 | lt_prog_compiler_static= | |
7613 | ||
7614 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7615 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7616 | ||
7617 | if test "$GCC" = yes; then | |
7618 | lt_prog_compiler_wl='-Wl,' | |
7619 | lt_prog_compiler_static='-static' | |
d9898ee8 | 7620 | |
8d138742 CE |
7621 | case $host_os in |
7622 | aix*) | |
7623 | # All AIX code is PIC. | |
7624 | if test "$host_cpu" = ia64; then | |
7625 | # AIX 5 now supports IA64 processor | |
7626 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7627 | fi |
7628 | ;; | |
7629 | ||
8d138742 CE |
7630 | amigaos*) |
7631 | case $host_cpu in | |
7632 | powerpc) | |
7633 | # see comment about AmigaOS4 .so support | |
7634 | lt_prog_compiler_pic='-fPIC' | |
7635 | ;; | |
7636 | m68k) | |
7637 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7638 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7639 | # like `-m68040'. | |
7640 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7641 | ;; | |
7642 | esac | |
d9898ee8 | 7643 | ;; |
7644 | ||
8d138742 CE |
7645 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7646 | # PIC is the default for these OSes. | |
d9898ee8 | 7647 | ;; |
d9898ee8 | 7648 | |
8d138742 CE |
7649 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7650 | # This hack is so that the source file can tell whether it is being | |
7651 | # built for inclusion in a dll (and should export symbols for example). | |
7652 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7653 | # (--disable-auto-import) libraries | |
7654 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d9898ee8 | 7655 | ;; |
d9898ee8 | 7656 | |
8d138742 CE |
7657 | darwin* | rhapsody*) |
7658 | # PIC is the default on this platform | |
7659 | # Common symbols not allowed in MH_DYLIB files | |
7660 | lt_prog_compiler_pic='-fno-common' | |
d9898ee8 | 7661 | ;; |
d9898ee8 | 7662 | |
8d138742 CE |
7663 | hpux*) |
7664 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7665 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7666 | # sets the default TLS model and affects inlining. | |
7667 | case $host_cpu in | |
7668 | hppa*64*) | |
7669 | # +Z the default | |
7670 | ;; | |
7671 | *) | |
7672 | lt_prog_compiler_pic='-fPIC' | |
7673 | ;; | |
7674 | esac | |
7675 | ;; | |
ac40fd9e | 7676 | |
8d138742 CE |
7677 | interix[3-9]*) |
7678 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7679 | # Instead, we relocate shared libraries at runtime. | |
7680 | ;; | |
d9898ee8 | 7681 | |
8d138742 CE |
7682 | msdosdjgpp*) |
7683 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7684 | # on systems that don't support them. | |
7685 | lt_prog_compiler_can_build_shared=no | |
7686 | enable_shared=no | |
7687 | ;; | |
d9898ee8 | 7688 | |
8d138742 CE |
7689 | *nto* | *qnx*) |
7690 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7691 | # it will coredump. | |
7692 | lt_prog_compiler_pic='-fPIC -shared' | |
7693 | ;; | |
d9898ee8 | 7694 | |
8d138742 CE |
7695 | sysv4*MP*) |
7696 | if test -d /usr/nec; then | |
7697 | lt_prog_compiler_pic=-Kconform_pic | |
7698 | fi | |
7699 | ;; | |
d9898ee8 | 7700 | |
8d138742 CE |
7701 | *) |
7702 | lt_prog_compiler_pic='-fPIC' | |
7703 | ;; | |
7704 | esac | |
d9898ee8 | 7705 | else |
8d138742 | 7706 | # PORTME Check for flag to pass linker flags through the system compiler. |
d9898ee8 | 7707 | case $host_os in |
8d138742 CE |
7708 | aix*) |
7709 | lt_prog_compiler_wl='-Wl,' | |
7710 | if test "$host_cpu" = ia64; then | |
7711 | # AIX 5 now supports IA64 processor | |
7712 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7713 | else |
8d138742 | 7714 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 7715 | fi |
7716 | ;; | |
d9898ee8 | 7717 | |
8d138742 CE |
7718 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7719 | # This hack is so that the source file can tell whether it is being | |
7720 | # built for inclusion in a dll (and should export symbols for example). | |
7721 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7722 | ;; | |
d9898ee8 | 7723 | |
8d138742 CE |
7724 | hpux9* | hpux10* | hpux11*) |
7725 | lt_prog_compiler_wl='-Wl,' | |
7726 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7727 | # not for PA HP-UX. | |
7728 | case $host_cpu in | |
7729 | hppa*64*|ia64*) | |
7730 | # +Z the default | |
7731 | ;; | |
7732 | *) | |
7733 | lt_prog_compiler_pic='+Z' | |
7734 | ;; | |
7735 | esac | |
7736 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7737 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7738 | ;; | |
d9898ee8 | 7739 | |
8d138742 CE |
7740 | irix5* | irix6* | nonstopux*) |
7741 | lt_prog_compiler_wl='-Wl,' | |
7742 | # PIC (with -KPIC) is the default. | |
7743 | lt_prog_compiler_static='-non_shared' | |
7744 | ;; | |
7745 | ||
7746 | linux* | k*bsd*-gnu) | |
7747 | case $cc_basename in | |
7748 | # old Intel for x86_64 which still supported -KPIC. | |
7749 | ecc*) | |
7750 | lt_prog_compiler_wl='-Wl,' | |
7751 | lt_prog_compiler_pic='-KPIC' | |
7752 | lt_prog_compiler_static='-static' | |
7753 | ;; | |
7754 | # icc used to be incompatible with GCC. | |
7755 | # ICC 10 doesn't accept -KPIC any more. | |
7756 | icc* | ifort*) | |
7757 | lt_prog_compiler_wl='-Wl,' | |
7758 | lt_prog_compiler_pic='-fPIC' | |
7759 | lt_prog_compiler_static='-static' | |
7760 | ;; | |
7761 | # Lahey Fortran 8.1. | |
7762 | lf95*) | |
7763 | lt_prog_compiler_wl='-Wl,' | |
7764 | lt_prog_compiler_pic='--shared' | |
7765 | lt_prog_compiler_static='--static' | |
7766 | ;; | |
7767 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7768 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7769 | # which looks to be a dead project) | |
7770 | lt_prog_compiler_wl='-Wl,' | |
7771 | lt_prog_compiler_pic='-fpic' | |
7772 | lt_prog_compiler_static='-Bstatic' | |
7773 | ;; | |
7774 | ccc*) | |
7775 | lt_prog_compiler_wl='-Wl,' | |
7776 | # All Alpha code is PIC. | |
7777 | lt_prog_compiler_static='-non_shared' | |
7778 | ;; | |
7779 | xl*) | |
7780 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7781 | lt_prog_compiler_wl='-Wl,' | |
7782 | lt_prog_compiler_pic='-qpic' | |
7783 | lt_prog_compiler_static='-qstaticlink' | |
7784 | ;; | |
7785 | *) | |
7786 | case `$CC -V 2>&1 | sed 5q` in | |
7787 | *Sun\ C*) | |
7788 | # Sun C 5.9 | |
7789 | lt_prog_compiler_pic='-KPIC' | |
7790 | lt_prog_compiler_static='-Bstatic' | |
7791 | lt_prog_compiler_wl='-Wl,' | |
7792 | ;; | |
7793 | *Sun\ F*) | |
7794 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7795 | lt_prog_compiler_pic='-KPIC' | |
7796 | lt_prog_compiler_static='-Bstatic' | |
7797 | lt_prog_compiler_wl='' | |
7798 | ;; | |
7799 | esac | |
7800 | ;; | |
7801 | esac | |
7802 | ;; | |
d9898ee8 | 7803 | |
8d138742 CE |
7804 | newsos6) |
7805 | lt_prog_compiler_pic='-KPIC' | |
7806 | lt_prog_compiler_static='-Bstatic' | |
7807 | ;; | |
d9898ee8 | 7808 | |
8d138742 CE |
7809 | *nto* | *qnx*) |
7810 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7811 | # it will coredump. | |
7812 | lt_prog_compiler_pic='-fPIC -shared' | |
7813 | ;; | |
d9898ee8 | 7814 | |
8d138742 CE |
7815 | osf3* | osf4* | osf5*) |
7816 | lt_prog_compiler_wl='-Wl,' | |
7817 | # All OSF/1 code is PIC. | |
7818 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 7819 | ;; |
8d138742 CE |
7820 | |
7821 | rdos*) | |
7822 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 7823 | ;; |
8d138742 CE |
7824 | |
7825 | solaris*) | |
7826 | lt_prog_compiler_pic='-KPIC' | |
7827 | lt_prog_compiler_static='-Bstatic' | |
7828 | case $cc_basename in | |
7829 | f77* | f90* | f95*) | |
7830 | lt_prog_compiler_wl='-Qoption ld ';; | |
7831 | *) | |
7832 | lt_prog_compiler_wl='-Wl,';; | |
7833 | esac | |
d9898ee8 | 7834 | ;; |
d9898ee8 | 7835 | |
8d138742 CE |
7836 | sunos4*) |
7837 | lt_prog_compiler_wl='-Qoption ld ' | |
7838 | lt_prog_compiler_pic='-PIC' | |
7839 | lt_prog_compiler_static='-Bstatic' | |
7840 | ;; | |
d9898ee8 | 7841 | |
8d138742 CE |
7842 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7843 | lt_prog_compiler_wl='-Wl,' | |
7844 | lt_prog_compiler_pic='-KPIC' | |
7845 | lt_prog_compiler_static='-Bstatic' | |
7846 | ;; | |
ac40fd9e | 7847 | |
8d138742 CE |
7848 | sysv4*MP*) |
7849 | if test -d /usr/nec ;then | |
7850 | lt_prog_compiler_pic='-Kconform_pic' | |
7851 | lt_prog_compiler_static='-Bstatic' | |
7852 | fi | |
7853 | ;; | |
d9898ee8 | 7854 | |
8d138742 CE |
7855 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7856 | lt_prog_compiler_wl='-Wl,' | |
7857 | lt_prog_compiler_pic='-KPIC' | |
7858 | lt_prog_compiler_static='-Bstatic' | |
7859 | ;; | |
d9898ee8 | 7860 | |
8d138742 CE |
7861 | unicos*) |
7862 | lt_prog_compiler_wl='-Wl,' | |
7863 | lt_prog_compiler_can_build_shared=no | |
7864 | ;; | |
d9898ee8 | 7865 | |
8d138742 CE |
7866 | uts4*) |
7867 | lt_prog_compiler_pic='-pic' | |
7868 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7869 | ;; |
8d138742 CE |
7870 | |
7871 | *) | |
7872 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 7873 | ;; |
8d138742 CE |
7874 | esac |
7875 | fi | |
7876 | ||
7877 | case $host_os in | |
7878 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7879 | *djgpp*) | |
7880 | lt_prog_compiler_pic= | |
d9898ee8 | 7881 | ;; |
8d138742 CE |
7882 | *) |
7883 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
d9898ee8 | 7884 | ;; |
8d138742 CE |
7885 | esac |
7886 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7887 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d9898ee8 | 7888 | |
d9898ee8 | 7889 | |
d9898ee8 | 7890 | |
d9898ee8 | 7891 | |
d9898ee8 | 7892 | |
d9898ee8 | 7893 | |
8d138742 CE |
7894 | # |
7895 | # Check to make sure the PIC flag actually works. | |
7896 | # | |
7897 | if test -n "$lt_prog_compiler_pic"; then | |
7898 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7899 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7900 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
7901 | $as_echo_n "(cached) " >&6 | |
7902 | else | |
7903 | lt_cv_prog_compiler_pic_works=no | |
7904 | ac_outfile=conftest.$ac_objext | |
7905 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7906 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7907 | # Insert the option either (1) after the last *FLAGS variable, or | |
7908 | # (2) before a word containing "conftest.", or (3) at the end. | |
7909 | # Note that $ac_compile itself does not contain backslashes and begins | |
7910 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7911 | # The option is referenced via a variable to avoid confusing sed. | |
7912 | lt_compile=`echo "$ac_compile" | $SED \ | |
7913 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7914 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7915 | -e 's:$: $lt_compiler_flag:'` | |
7916 | (eval echo "\"\$as_me:7916: $lt_compile\"" >&5) | |
7917 | (eval "$lt_compile" 2>conftest.err) | |
7918 | ac_status=$? | |
7919 | cat conftest.err >&5 | |
7920 | echo "$as_me:7920: \$? = $ac_status" >&5 | |
7921 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7922 | # The compiler can only warn and ignore the option if not recognized | |
7923 | # So say no if there are warnings other than the usual output. | |
7924 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7925 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7926 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7927 | lt_cv_prog_compiler_pic_works=yes | |
7928 | fi | |
7929 | fi | |
7930 | $RM conftest* | |
d9898ee8 | 7931 | |
8d138742 CE |
7932 | fi |
7933 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7934 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d9898ee8 | 7935 | |
8d138742 CE |
7936 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7937 | case $lt_prog_compiler_pic in | |
7938 | "" | " "*) ;; | |
7939 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7940 | esac | |
7941 | else | |
7942 | lt_prog_compiler_pic= | |
7943 | lt_prog_compiler_can_build_shared=no | |
7944 | fi | |
d9898ee8 | 7945 | |
8d138742 | 7946 | fi |
d9898ee8 | 7947 | |
d9898ee8 | 7948 | |
d9898ee8 | 7949 | |
d9898ee8 | 7950 | |
d9898ee8 | 7951 | |
d9898ee8 | 7952 | |
8d138742 CE |
7953 | # |
7954 | # Check to make sure the static flag actually works. | |
7955 | # | |
7956 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7957 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7958 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7959 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
7960 | $as_echo_n "(cached) " >&6 | |
7961 | else | |
7962 | lt_cv_prog_compiler_static_works=no | |
7963 | save_LDFLAGS="$LDFLAGS" | |
7964 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7965 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7966 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7967 | # The linker can only warn and ignore the option if not recognized | |
7968 | # So say no if there are warnings | |
7969 | if test -s conftest.err; then | |
7970 | # Append any errors to the config.log. | |
7971 | cat conftest.err 1>&5 | |
7972 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7973 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7974 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7975 | lt_cv_prog_compiler_static_works=yes | |
7976 | fi | |
7977 | else | |
7978 | lt_cv_prog_compiler_static_works=yes | |
7979 | fi | |
7980 | fi | |
7981 | $RM -r conftest* | |
7982 | LDFLAGS="$save_LDFLAGS" | |
ac40fd9e | 7983 | |
8d138742 CE |
7984 | fi |
7985 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
7986 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d9898ee8 | 7987 | |
8d138742 CE |
7988 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
7989 | : | |
7990 | else | |
7991 | lt_prog_compiler_static= | |
7992 | fi | |
d9898ee8 | 7993 | |
d9898ee8 | 7994 | |
d9898ee8 | 7995 | |
d9898ee8 | 7996 | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
8d138742 CE |
7999 | |
8000 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8001 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8002 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8003 | $as_echo_n "(cached) " >&6 | |
8004 | else | |
8005 | lt_cv_prog_compiler_c_o=no | |
8006 | $RM -r conftest 2>/dev/null | |
8007 | mkdir conftest | |
8008 | cd conftest | |
8009 | mkdir out | |
8010 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8011 | ||
8012 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8013 | # Insert the option either (1) after the last *FLAGS variable, or | |
8014 | # (2) before a word containing "conftest.", or (3) at the end. | |
8015 | # Note that $ac_compile itself does not contain backslashes and begins | |
8016 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8017 | lt_compile=`echo "$ac_compile" | $SED \ | |
8018 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8019 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8020 | -e 's:$: $lt_compiler_flag:'` | |
8021 | (eval echo "\"\$as_me:8021: $lt_compile\"" >&5) | |
8022 | (eval "$lt_compile" 2>out/conftest.err) | |
8023 | ac_status=$? | |
8024 | cat out/conftest.err >&5 | |
8025 | echo "$as_me:8025: \$? = $ac_status" >&5 | |
8026 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8027 | then | |
8028 | # The compiler can only warn and ignore the option if not recognized | |
8029 | # So say no if there are warnings | |
8030 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8031 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8032 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8033 | lt_cv_prog_compiler_c_o=yes | |
8034 | fi | |
8035 | fi | |
8036 | chmod u+w . 2>&5 | |
8037 | $RM conftest* | |
8038 | # SGI C++ compiler will create directory out/ii_files/ for | |
8039 | # template instantiation | |
8040 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8041 | $RM out/* && rmdir out | |
8042 | cd .. | |
8043 | $RM -r conftest | |
8044 | $RM conftest* | |
8045 | ||
d9898ee8 | 8046 | fi |
8d138742 CE |
8047 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8048 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8049 | |
d9898ee8 | 8050 | |
d9898ee8 | 8051 | |
d9898ee8 | 8052 | |
8053 | ||
d9898ee8 | 8054 | |
8d138742 CE |
8055 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8056 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8057 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8058 | $as_echo_n "(cached) " >&6 | |
8059 | else | |
8060 | lt_cv_prog_compiler_c_o=no | |
8061 | $RM -r conftest 2>/dev/null | |
8062 | mkdir conftest | |
8063 | cd conftest | |
8064 | mkdir out | |
8065 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8066 | |
8d138742 CE |
8067 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8068 | # Insert the option either (1) after the last *FLAGS variable, or | |
8069 | # (2) before a word containing "conftest.", or (3) at the end. | |
8070 | # Note that $ac_compile itself does not contain backslashes and begins | |
8071 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8072 | lt_compile=`echo "$ac_compile" | $SED \ | |
8073 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8074 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8075 | -e 's:$: $lt_compiler_flag:'` | |
8076 | (eval echo "\"\$as_me:8076: $lt_compile\"" >&5) | |
8077 | (eval "$lt_compile" 2>out/conftest.err) | |
8078 | ac_status=$? | |
8079 | cat out/conftest.err >&5 | |
8080 | echo "$as_me:8080: \$? = $ac_status" >&5 | |
8081 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8082 | then | |
8083 | # The compiler can only warn and ignore the option if not recognized | |
8084 | # So say no if there are warnings | |
8085 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8086 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8087 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8088 | lt_cv_prog_compiler_c_o=yes | |
8089 | fi | |
8090 | fi | |
8091 | chmod u+w . 2>&5 | |
8092 | $RM conftest* | |
8093 | # SGI C++ compiler will create directory out/ii_files/ for | |
8094 | # template instantiation | |
8095 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8096 | $RM out/* && rmdir out | |
8097 | cd .. | |
8098 | $RM -r conftest | |
8099 | $RM conftest* | |
d9898ee8 | 8100 | |
8d138742 CE |
8101 | fi |
8102 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8103 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8104 | |
d9898ee8 | 8105 | |
d9898ee8 | 8106 | |
d9898ee8 | 8107 | |
8d138742 CE |
8108 | hard_links="nottested" |
8109 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8110 | # do not overwrite the value of need_locks provided by the user | |
8111 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8112 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8113 | hard_links=yes | |
8114 | $RM conftest* | |
8115 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8116 | touch conftest.a | |
8117 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8118 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8119 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8120 | $as_echo "$hard_links" >&6; } | |
8121 | if test "$hard_links" = no; then | |
8122 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8123 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8124 | need_locks=warn | |
8125 | fi | |
8126 | else | |
8127 | need_locks=no | |
8128 | fi | |
d9898ee8 | 8129 | |
d9898ee8 | 8130 | |
d9898ee8 | 8131 | |
d9898ee8 | 8132 | |
d9898ee8 | 8133 | |
d9898ee8 | 8134 | |
8d138742 CE |
8135 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8136 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 8137 | |
8d138742 CE |
8138 | runpath_var= |
8139 | allow_undefined_flag= | |
8140 | always_export_symbols=no | |
8141 | archive_cmds= | |
8142 | archive_expsym_cmds= | |
8143 | compiler_needs_object=no | |
8144 | enable_shared_with_static_runtimes=no | |
8145 | export_dynamic_flag_spec= | |
8146 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8147 | hardcode_automatic=no | |
8148 | hardcode_direct=no | |
8149 | hardcode_direct_absolute=no | |
8150 | hardcode_libdir_flag_spec= | |
8151 | hardcode_libdir_flag_spec_ld= | |
8152 | hardcode_libdir_separator= | |
8153 | hardcode_minus_L=no | |
8154 | hardcode_shlibpath_var=unsupported | |
8155 | inherit_rpath=no | |
8156 | link_all_deplibs=unknown | |
8157 | module_cmds= | |
8158 | module_expsym_cmds= | |
8159 | old_archive_from_new_cmds= | |
8160 | old_archive_from_expsyms_cmds= | |
8161 | thread_safe_flag_spec= | |
8162 | whole_archive_flag_spec= | |
8163 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8164 | # included in the symbol list | |
8165 | include_expsyms= | |
8166 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8167 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8168 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8169 | # as well as any symbol that contains `d'. | |
8170 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8171 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8172 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8173 | # the symbol is explicitly referenced. Since portable code cannot | |
8174 | # rely on this symbol name, it's probably fine to never include it in | |
8175 | # preloaded symbol tables. | |
8176 | # Exclude shared library initialization/finalization symbols. | |
8177 | extract_expsyms_cmds= | |
d9898ee8 | 8178 | |
8d138742 CE |
8179 | case $host_os in |
8180 | cygwin* | mingw* | pw32* | cegcc*) | |
8181 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8182 | # When not using gcc, we currently assume that we are using | |
8183 | # Microsoft Visual C++. | |
8184 | if test "$GCC" != yes; then | |
8185 | with_gnu_ld=no | |
8186 | fi | |
8187 | ;; | |
8188 | interix*) | |
8189 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8190 | with_gnu_ld=yes | |
8191 | ;; | |
8192 | openbsd*) | |
8193 | with_gnu_ld=no | |
8194 | ;; | |
8195 | esac | |
d9898ee8 | 8196 | |
8d138742 CE |
8197 | ld_shlibs=yes |
8198 | if test "$with_gnu_ld" = yes; then | |
8199 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8200 | wlarc='${wl}' | |
8201 | ||
8202 | # Set some defaults for GNU ld with shared library support. These | |
8203 | # are reset later if shared libraries are not supported. Putting them | |
8204 | # here allows them to be overridden if necessary. | |
8205 | runpath_var=LD_RUN_PATH | |
8206 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8207 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8208 | # ancient GNU ld didn't support --whole-archive et. al. | |
8209 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8210 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8211 | else | |
8212 | whole_archive_flag_spec= | |
8213 | fi | |
8214 | supports_anon_versioning=no | |
8215 | case `$LD -v 2>&1` in | |
8216 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8217 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8218 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8219 | *\ 2.11.*) ;; # other 2.11 versions | |
8220 | *) supports_anon_versioning=yes ;; | |
8221 | esac | |
d9898ee8 | 8222 | |
8d138742 CE |
8223 | # See if GNU ld supports shared libraries. |
8224 | case $host_os in | |
8225 | aix[3-9]*) | |
8226 | # On AIX/PPC, the GNU linker is very broken | |
8227 | if test "$host_cpu" != ia64; then | |
8228 | ld_shlibs=no | |
8229 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8230 | |
8d138742 CE |
8231 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8232 | *** to be unable to reliably create shared libraries on AIX. | |
8233 | *** Therefore, libtool is disabling shared libraries support. If you | |
8234 | *** really care for shared libraries, you may want to modify your PATH | |
8235 | *** so that a non-GNU linker is found, and then restart. | |
d9898ee8 | 8236 | |
8d138742 CE |
8237 | _LT_EOF |
8238 | fi | |
8239 | ;; | |
d9898ee8 | 8240 | |
8d138742 CE |
8241 | amigaos*) |
8242 | case $host_cpu in | |
8243 | powerpc) | |
8244 | # see comment about AmigaOS4 .so support | |
8245 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8246 | archive_expsym_cmds='' | |
8247 | ;; | |
8248 | m68k) | |
8249 | 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)' | |
8250 | hardcode_libdir_flag_spec='-L$libdir' | |
8251 | hardcode_minus_L=yes | |
8252 | ;; | |
8253 | esac | |
8254 | ;; | |
d9898ee8 | 8255 | |
8d138742 CE |
8256 | beos*) |
8257 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8258 | allow_undefined_flag=unsupported | |
8259 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8260 | # support --undefined. This deserves some investigation. FIXME | |
8261 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8262 | else | |
8263 | ld_shlibs=no | |
8264 | fi | |
8265 | ;; | |
d9898ee8 | 8266 | |
8d138742 CE |
8267 | cygwin* | mingw* | pw32* | cegcc*) |
8268 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8269 | # as there is no search path for DLLs. | |
8270 | hardcode_libdir_flag_spec='-L$libdir' | |
8271 | allow_undefined_flag=unsupported | |
8272 | always_export_symbols=no | |
8273 | enable_shared_with_static_runtimes=yes | |
8274 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d9898ee8 | 8275 | |
8d138742 CE |
8276 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8277 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8278 | # If the export-symbols file already is a .def file (1st line | |
8279 | # is EXPORTS), use it as is; otherwise, prepend... | |
8280 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8281 | cp $export_symbols $output_objdir/$soname.def; | |
8282 | else | |
8283 | echo EXPORTS > $output_objdir/$soname.def; | |
8284 | cat $export_symbols >> $output_objdir/$soname.def; | |
8285 | fi~ | |
8286 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8287 | else | |
8288 | ld_shlibs=no | |
8289 | fi | |
8290 | ;; | |
d9898ee8 | 8291 | |
8d138742 CE |
8292 | interix[3-9]*) |
8293 | hardcode_direct=no | |
8294 | hardcode_shlibpath_var=no | |
8295 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8296 | export_dynamic_flag_spec='${wl}-E' | |
8297 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8298 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8299 | # default) and relocated if they conflict, which is a slow very memory | |
8300 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8301 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8302 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8303 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8304 | 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' | |
8305 | ;; | |
d9898ee8 | 8306 | |
8d138742 CE |
8307 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8308 | tmp_diet=no | |
8309 | if test "$host_os" = linux-dietlibc; then | |
8310 | case $cc_basename in | |
8311 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8312 | esac | |
8313 | fi | |
8314 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8315 | && test "$tmp_diet" = no | |
8316 | then | |
8317 | tmp_addflag= | |
8318 | tmp_sharedflag='-shared' | |
8319 | case $cc_basename,$host_cpu in | |
8320 | pgcc*) # Portland Group C compiler | |
8321 | 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' | |
8322 | tmp_addflag=' $pic_flag' | |
8323 | ;; | |
8324 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8325 | 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' | |
8326 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8327 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8328 | tmp_addflag=' -i_dynamic' ;; | |
8329 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8330 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8331 | ifc* | ifort*) # Intel Fortran compiler | |
8332 | tmp_addflag=' -nofor_main' ;; | |
8333 | lf95*) # Lahey Fortran 8.1 | |
8334 | whole_archive_flag_spec= | |
8335 | tmp_sharedflag='--shared' ;; | |
8336 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8337 | tmp_sharedflag='-qmkshrobj' | |
8338 | tmp_addflag= ;; | |
8339 | esac | |
8340 | case `$CC -V 2>&1 | sed 5q` in | |
8341 | *Sun\ C*) # Sun C 5.9 | |
8342 | 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' | |
8343 | compiler_needs_object=yes | |
8344 | tmp_sharedflag='-G' ;; | |
8345 | *Sun\ F*) # Sun Fortran 8.3 | |
8346 | tmp_sharedflag='-G' ;; | |
8347 | esac | |
8348 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d9898ee8 | 8349 | |
8d138742 CE |
8350 | if test "x$supports_anon_versioning" = xyes; then |
8351 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8352 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8353 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8354 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8355 | fi | |
d9898ee8 | 8356 | |
8d138742 CE |
8357 | case $cc_basename in |
8358 | xlf*) | |
8359 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8360 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8361 | hardcode_libdir_flag_spec= | |
8362 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8363 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8364 | if test "x$supports_anon_versioning" = xyes; then | |
8365 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8366 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8367 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8368 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8369 | fi | |
8370 | ;; | |
8371 | esac | |
8372 | else | |
8373 | ld_shlibs=no | |
8374 | fi | |
8375 | ;; | |
d9898ee8 | 8376 | |
8d138742 CE |
8377 | netbsd*) |
8378 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8379 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8380 | wlarc= | |
8381 | else | |
8382 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8383 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8384 | fi | |
8385 | ;; | |
d9898ee8 | 8386 | |
8d138742 CE |
8387 | solaris*) |
8388 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8389 | ld_shlibs=no | |
8390 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8391 | |
8d138742 CE |
8392 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8393 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8394 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8395 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8396 | *** your PATH or compiler configuration so that the native linker is | |
8397 | *** used, and then restart. | |
d9898ee8 | 8398 | |
8d138742 CE |
8399 | _LT_EOF |
8400 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8401 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8402 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8403 | else | |
8404 | ld_shlibs=no | |
8405 | fi | |
8406 | ;; | |
d9898ee8 | 8407 | |
8d138742 CE |
8408 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8409 | case `$LD -v 2>&1` in | |
8410 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8411 | ld_shlibs=no | |
8412 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8413 | |
8d138742 CE |
8414 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8415 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8416 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8417 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8418 | *** your PATH or compiler configuration so that the native linker is | |
8419 | *** used, and then restart. | |
d9898ee8 | 8420 | |
8d138742 CE |
8421 | _LT_EOF |
8422 | ;; | |
8423 | *) | |
8424 | # For security reasons, it is highly recommended that you always | |
8425 | # use absolute paths for naming shared libraries, and exclude the | |
8426 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8427 | # requires that you compile everything twice, which is a pain. | |
8428 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8429 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8430 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8431 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8432 | else | |
8433 | ld_shlibs=no | |
8434 | fi | |
8435 | ;; | |
8436 | esac | |
8437 | ;; | |
d9898ee8 | 8438 | |
8d138742 CE |
8439 | sunos4*) |
8440 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8441 | wlarc= | |
8442 | hardcode_direct=yes | |
8443 | hardcode_shlibpath_var=no | |
8444 | ;; | |
d9898ee8 | 8445 | |
8d138742 CE |
8446 | *) |
8447 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8448 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8449 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8450 | else | |
8451 | ld_shlibs=no | |
8452 | fi | |
8453 | ;; | |
8454 | esac | |
d9898ee8 | 8455 | |
8d138742 CE |
8456 | if test "$ld_shlibs" = no; then |
8457 | runpath_var= | |
8458 | hardcode_libdir_flag_spec= | |
8459 | export_dynamic_flag_spec= | |
8460 | whole_archive_flag_spec= | |
8461 | fi | |
8462 | else | |
8463 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8464 | case $host_os in | |
8465 | aix3*) | |
8466 | allow_undefined_flag=unsupported | |
8467 | always_export_symbols=yes | |
8468 | 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' | |
8469 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8470 | # are no directories specified by -L. | |
8471 | hardcode_minus_L=yes | |
8472 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8473 | # Neither direct hardcoding nor static linking is supported with a | |
8474 | # broken collect2. | |
8475 | hardcode_direct=unsupported | |
8476 | fi | |
8477 | ;; | |
d9898ee8 | 8478 | |
8d138742 CE |
8479 | aix[4-9]*) |
8480 | if test "$host_cpu" = ia64; then | |
8481 | # On IA64, the linker does run time linking by default, so we don't | |
8482 | # have to do anything special. | |
8483 | aix_use_runtimelinking=no | |
8484 | exp_sym_flag='-Bexport' | |
8485 | no_entry_flag="" | |
8486 | else | |
8487 | # If we're using GNU nm, then we don't want the "-C" option. | |
8488 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8489 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8490 | 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' | |
8491 | else | |
8492 | 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' | |
8493 | fi | |
8494 | aix_use_runtimelinking=no | |
d9898ee8 | 8495 | |
8d138742 CE |
8496 | # Test if we are trying to use run time linking or normal |
8497 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8498 | # need to do runtime linking. | |
8499 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8500 | for ld_flag in $LDFLAGS; do | |
8501 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8502 | aix_use_runtimelinking=yes | |
8503 | break | |
8504 | fi | |
8505 | done | |
8506 | ;; | |
8507 | esac | |
d9898ee8 | 8508 | |
8d138742 CE |
8509 | exp_sym_flag='-bexport' |
8510 | no_entry_flag='-bnoentry' | |
8511 | fi | |
d9898ee8 | 8512 | |
8d138742 CE |
8513 | # When large executables or shared objects are built, AIX ld can |
8514 | # have problems creating the table of contents. If linking a library | |
8515 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8516 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8517 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 8518 | |
8d138742 CE |
8519 | archive_cmds='' |
8520 | hardcode_direct=yes | |
8521 | hardcode_direct_absolute=yes | |
8522 | hardcode_libdir_separator=':' | |
8523 | link_all_deplibs=yes | |
8524 | file_list_spec='${wl}-f,' | |
d9898ee8 | 8525 | |
8d138742 CE |
8526 | if test "$GCC" = yes; then |
8527 | case $host_os in aix4.[012]|aix4.[012].*) | |
8528 | # We only want to do this on AIX 4.2 and lower, the check | |
8529 | # below for broken collect2 doesn't work under 4.3+ | |
8530 | collect2name=`${CC} -print-prog-name=collect2` | |
8531 | if test -f "$collect2name" && | |
8532 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8533 | then | |
8534 | # We have reworked collect2 | |
8535 | : | |
8536 | else | |
8537 | # We have old collect2 | |
8538 | hardcode_direct=unsupported | |
8539 | # It fails to find uninstalled libraries when the uninstalled | |
8540 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8541 | # to unsupported forces relinking | |
8542 | hardcode_minus_L=yes | |
8543 | hardcode_libdir_flag_spec='-L$libdir' | |
8544 | hardcode_libdir_separator= | |
8545 | fi | |
8546 | ;; | |
8547 | esac | |
8548 | shared_flag='-shared' | |
8549 | if test "$aix_use_runtimelinking" = yes; then | |
8550 | shared_flag="$shared_flag "'${wl}-G' | |
8551 | fi | |
8552 | else | |
8553 | # not using gcc | |
8554 | if test "$host_cpu" = ia64; then | |
8555 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8556 | # chokes on -Wl,-G. The following line is correct: | |
8557 | shared_flag='-G' | |
8558 | else | |
8559 | if test "$aix_use_runtimelinking" = yes; then | |
8560 | shared_flag='${wl}-G' | |
8561 | else | |
8562 | shared_flag='${wl}-bM:SRE' | |
8563 | fi | |
8564 | fi | |
8565 | fi | |
d9898ee8 | 8566 | |
8d138742 CE |
8567 | export_dynamic_flag_spec='${wl}-bexpall' |
8568 | # It seems that -bexpall does not export symbols beginning with | |
8569 | # underscore (_), so it is better to generate a list of symbols to export. | |
8570 | always_export_symbols=yes | |
8571 | if test "$aix_use_runtimelinking" = yes; then | |
8572 | # Warning - without using the other runtime loading flags (-brtl), | |
8573 | # -berok will link without error, but may produce a broken library. | |
8574 | allow_undefined_flag='-berok' | |
8575 | # Determine the default libpath from the value encoded in an | |
8576 | # empty executable. | |
8577 | cat >conftest.$ac_ext <<_ACEOF | |
8578 | /* confdefs.h. */ | |
8579 | _ACEOF | |
8580 | cat confdefs.h >>conftest.$ac_ext | |
8581 | cat >>conftest.$ac_ext <<_ACEOF | |
8582 | /* end confdefs.h. */ | |
d9898ee8 | 8583 | |
8d138742 CE |
8584 | int |
8585 | main () | |
8586 | { | |
d9898ee8 | 8587 | |
8d138742 CE |
8588 | ; |
8589 | return 0; | |
8590 | } | |
8591 | _ACEOF | |
8592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8593 | if { (ac_try="$ac_link" | |
8594 | case "(($ac_try" in | |
8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8596 | *) ac_try_echo=$ac_try;; | |
8597 | esac | |
8598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8599 | $as_echo "$ac_try_echo") >&5 | |
8600 | (eval "$ac_link") 2>conftest.er1 | |
8601 | ac_status=$? | |
8602 | grep -v '^ *+' conftest.er1 >conftest.err | |
8603 | rm -f conftest.er1 | |
8604 | cat conftest.err >&5 | |
8605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8606 | (exit $ac_status); } && { | |
8607 | test -z "$ac_c_werror_flag" || | |
8608 | test ! -s conftest.err | |
8609 | } && test -s conftest$ac_exeext && { | |
8610 | test "$cross_compiling" = yes || | |
8611 | $as_test_x conftest$ac_exeext | |
8612 | }; then | |
d9898ee8 | 8613 | |
8d138742 CE |
8614 | lt_aix_libpath_sed=' |
8615 | /Import File Strings/,/^$/ { | |
8616 | /^0/ { | |
8617 | s/^0 *\(.*\)$/\1/ | |
8618 | p | |
8619 | } | |
8620 | }' | |
8621 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8622 | # Check for a 64-bit object if we didn't find anything. | |
8623 | if test -z "$aix_libpath"; then | |
8624 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8625 | fi | |
8626 | else | |
8627 | $as_echo "$as_me: failed program was:" >&5 | |
8628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8629 | |
d9898ee8 | 8630 | |
8d138742 | 8631 | fi |
d9898ee8 | 8632 | |
8d138742 CE |
8633 | rm -rf conftest.dSYM |
8634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8635 | conftest$ac_exeext conftest.$ac_ext | |
8636 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8637 | |
8d138742 CE |
8638 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8639 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8640 | else | |
8641 | if test "$host_cpu" = ia64; then | |
8642 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8643 | allow_undefined_flag="-z nodefs" | |
8644 | 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" | |
8645 | else | |
8646 | # Determine the default libpath from the value encoded in an | |
8647 | # empty executable. | |
8648 | cat >conftest.$ac_ext <<_ACEOF | |
8649 | /* confdefs.h. */ | |
8650 | _ACEOF | |
8651 | cat confdefs.h >>conftest.$ac_ext | |
8652 | cat >>conftest.$ac_ext <<_ACEOF | |
8653 | /* end confdefs.h. */ | |
d9898ee8 | 8654 | |
8d138742 CE |
8655 | int |
8656 | main () | |
8657 | { | |
d9898ee8 | 8658 | |
8d138742 CE |
8659 | ; |
8660 | return 0; | |
8661 | } | |
8662 | _ACEOF | |
8663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8664 | if { (ac_try="$ac_link" | |
8665 | case "(($ac_try" in | |
8666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8667 | *) ac_try_echo=$ac_try;; | |
8668 | esac | |
8669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8670 | $as_echo "$ac_try_echo") >&5 | |
8671 | (eval "$ac_link") 2>conftest.er1 | |
8672 | ac_status=$? | |
8673 | grep -v '^ *+' conftest.er1 >conftest.err | |
8674 | rm -f conftest.er1 | |
8675 | cat conftest.err >&5 | |
8676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8677 | (exit $ac_status); } && { | |
8678 | test -z "$ac_c_werror_flag" || | |
8679 | test ! -s conftest.err | |
8680 | } && test -s conftest$ac_exeext && { | |
8681 | test "$cross_compiling" = yes || | |
8682 | $as_test_x conftest$ac_exeext | |
8683 | }; then | |
d9898ee8 | 8684 | |
8d138742 CE |
8685 | lt_aix_libpath_sed=' |
8686 | /Import File Strings/,/^$/ { | |
8687 | /^0/ { | |
8688 | s/^0 *\(.*\)$/\1/ | |
8689 | p | |
8690 | } | |
8691 | }' | |
8692 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8693 | # Check for a 64-bit object if we didn't find anything. | |
8694 | if test -z "$aix_libpath"; then | |
8695 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8696 | fi | |
8697 | else | |
8698 | $as_echo "$as_me: failed program was:" >&5 | |
8699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8700 | |
d9898ee8 | 8701 | |
8d138742 | 8702 | fi |
d9898ee8 | 8703 | |
8d138742 CE |
8704 | rm -rf conftest.dSYM |
8705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8706 | conftest$ac_exeext conftest.$ac_ext | |
8707 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8708 | |
8d138742 CE |
8709 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8710 | # Warning - without using the other run time loading flags, | |
8711 | # -berok will link without error, but may produce a broken library. | |
8712 | no_undefined_flag=' ${wl}-bernotok' | |
8713 | allow_undefined_flag=' ${wl}-berok' | |
8714 | # Exported symbols can be pulled into shared objects from archives | |
8715 | whole_archive_flag_spec='$convenience' | |
8716 | archive_cmds_need_lc=yes | |
8717 | # This is similar to how AIX traditionally builds its shared libraries. | |
8718 | 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' | |
8719 | fi | |
8720 | fi | |
8721 | ;; | |
d9898ee8 | 8722 | |
8d138742 CE |
8723 | amigaos*) |
8724 | case $host_cpu in | |
8725 | powerpc) | |
8726 | # see comment about AmigaOS4 .so support | |
8727 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8728 | archive_expsym_cmds='' | |
8729 | ;; | |
8730 | m68k) | |
8731 | 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)' | |
8732 | hardcode_libdir_flag_spec='-L$libdir' | |
8733 | hardcode_minus_L=yes | |
8734 | ;; | |
8735 | esac | |
8736 | ;; | |
d9898ee8 | 8737 | |
8d138742 CE |
8738 | bsdi[45]*) |
8739 | export_dynamic_flag_spec=-rdynamic | |
8740 | ;; | |
d9898ee8 | 8741 | |
8d138742 CE |
8742 | cygwin* | mingw* | pw32* | cegcc*) |
8743 | # When not using gcc, we currently assume that we are using | |
8744 | # Microsoft Visual C++. | |
8745 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8746 | # no search path for DLLs. | |
8747 | hardcode_libdir_flag_spec=' ' | |
8748 | allow_undefined_flag=unsupported | |
8749 | # Tell ltmain to make .lib files, not .a files. | |
8750 | libext=lib | |
8751 | # Tell ltmain to make .dll files, not .so files. | |
8752 | shrext_cmds=".dll" | |
8753 | # FIXME: Setting linknames here is a bad hack. | |
8754 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8755 | # The linker will automatically build a .lib file if we build a DLL. | |
8756 | old_archive_from_new_cmds='true' | |
8757 | # FIXME: Should let the user specify the lib program. | |
8758 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8759 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8760 | enable_shared_with_static_runtimes=yes | |
8761 | ;; | |
d9898ee8 | 8762 | |
8d138742 | 8763 | darwin* | rhapsody*) |
d9898ee8 | 8764 | |
d9898ee8 | 8765 | |
8d138742 CE |
8766 | archive_cmds_need_lc=no |
8767 | hardcode_direct=no | |
8768 | hardcode_automatic=yes | |
8769 | hardcode_shlibpath_var=unsupported | |
8770 | whole_archive_flag_spec='' | |
8771 | link_all_deplibs=yes | |
8772 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8773 | case $cc_basename in | |
8774 | ifort*) _lt_dar_can_shared=yes ;; | |
8775 | *) _lt_dar_can_shared=$GCC ;; | |
8776 | esac | |
8777 | if test "$_lt_dar_can_shared" = "yes"; then | |
8778 | output_verbose_link_cmd=echo | |
8779 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8780 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8781 | 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}" | |
8782 | 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}" | |
d9898ee8 | 8783 | |
8d138742 CE |
8784 | else |
8785 | ld_shlibs=no | |
8786 | fi | |
d9898ee8 | 8787 | |
8d138742 | 8788 | ;; |
d9898ee8 | 8789 | |
8d138742 CE |
8790 | dgux*) |
8791 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8792 | hardcode_libdir_flag_spec='-L$libdir' | |
8793 | hardcode_shlibpath_var=no | |
8794 | ;; | |
d9898ee8 | 8795 | |
8d138742 CE |
8796 | freebsd1*) |
8797 | ld_shlibs=no | |
8798 | ;; | |
d9898ee8 | 8799 | |
8d138742 CE |
8800 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8801 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8802 | # does not break anything, and helps significantly (at the cost of a little | |
8803 | # extra space). | |
8804 | freebsd2.2*) | |
8805 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8806 | hardcode_libdir_flag_spec='-R$libdir' | |
8807 | hardcode_direct=yes | |
8808 | hardcode_shlibpath_var=no | |
8809 | ;; | |
d9898ee8 | 8810 | |
8d138742 CE |
8811 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8812 | freebsd2*) | |
8813 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8814 | hardcode_direct=yes | |
8815 | hardcode_minus_L=yes | |
8816 | hardcode_shlibpath_var=no | |
8817 | ;; | |
d9898ee8 | 8818 | |
8d138742 CE |
8819 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8820 | freebsd* | dragonfly*) | |
8821 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8822 | hardcode_libdir_flag_spec='-R$libdir' | |
8823 | hardcode_direct=yes | |
8824 | hardcode_shlibpath_var=no | |
8825 | ;; | |
d9898ee8 | 8826 | |
8d138742 CE |
8827 | hpux9*) |
8828 | if test "$GCC" = yes; then | |
8829 | 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' | |
8830 | else | |
8831 | 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' | |
8832 | fi | |
8833 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8834 | hardcode_libdir_separator=: | |
8835 | hardcode_direct=yes | |
d9898ee8 | 8836 | |
8d138742 CE |
8837 | # hardcode_minus_L: Not really in the search PATH, |
8838 | # but as the default location of the library. | |
8839 | hardcode_minus_L=yes | |
8840 | export_dynamic_flag_spec='${wl}-E' | |
8841 | ;; | |
d9898ee8 | 8842 | |
8d138742 CE |
8843 | hpux10*) |
8844 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8845 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8846 | else | |
8847 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8848 | fi | |
8849 | if test "$with_gnu_ld" = no; then | |
8850 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8851 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8852 | hardcode_libdir_separator=: | |
8853 | hardcode_direct=yes | |
8854 | hardcode_direct_absolute=yes | |
8855 | export_dynamic_flag_spec='${wl}-E' | |
8856 | # hardcode_minus_L: Not really in the search PATH, | |
8857 | # but as the default location of the library. | |
8858 | hardcode_minus_L=yes | |
8859 | fi | |
8860 | ;; | |
d9898ee8 | 8861 | |
8d138742 CE |
8862 | hpux11*) |
8863 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8864 | case $host_cpu in | |
8865 | hppa*64*) | |
8866 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8867 | ;; | |
8868 | ia64*) | |
8869 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8870 | ;; | |
8871 | *) | |
8872 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8873 | ;; | |
8874 | esac | |
8875 | else | |
8876 | case $host_cpu in | |
8877 | hppa*64*) | |
8878 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8879 | ;; | |
8880 | ia64*) | |
8881 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8882 | ;; | |
8883 | *) | |
8884 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8885 | ;; | |
8886 | esac | |
8887 | fi | |
8888 | if test "$with_gnu_ld" = no; then | |
8889 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8890 | hardcode_libdir_separator=: | |
d9898ee8 | 8891 | |
8d138742 CE |
8892 | case $host_cpu in |
8893 | hppa*64*|ia64*) | |
8894 | hardcode_direct=no | |
8895 | hardcode_shlibpath_var=no | |
8896 | ;; | |
8897 | *) | |
8898 | hardcode_direct=yes | |
8899 | hardcode_direct_absolute=yes | |
8900 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8901 | |
8d138742 CE |
8902 | # hardcode_minus_L: Not really in the search PATH, |
8903 | # but as the default location of the library. | |
8904 | hardcode_minus_L=yes | |
8905 | ;; | |
8906 | esac | |
8907 | fi | |
8908 | ;; | |
d9898ee8 | 8909 | |
8d138742 CE |
8910 | irix5* | irix6* | nonstopux*) |
8911 | if test "$GCC" = yes; then | |
8912 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8913 | # Try to use the -exported_symbol ld option, if it does not | |
8914 | # work, assume that -exports_file does not work either and | |
8915 | # implicitly export all symbols. | |
8916 | save_LDFLAGS="$LDFLAGS" | |
8917 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8918 | cat >conftest.$ac_ext <<_ACEOF | |
8919 | int foo(void) {} | |
8920 | _ACEOF | |
8921 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8922 | if { (ac_try="$ac_link" | |
8923 | case "(($ac_try" in | |
8924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8925 | *) ac_try_echo=$ac_try;; | |
8926 | esac | |
8927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8928 | $as_echo "$ac_try_echo") >&5 | |
8929 | (eval "$ac_link") 2>conftest.er1 | |
8930 | ac_status=$? | |
8931 | grep -v '^ *+' conftest.er1 >conftest.err | |
8932 | rm -f conftest.er1 | |
8933 | cat conftest.err >&5 | |
8934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8935 | (exit $ac_status); } && { | |
8936 | test -z "$ac_c_werror_flag" || | |
8937 | test ! -s conftest.err | |
8938 | } && test -s conftest$ac_exeext && { | |
8939 | test "$cross_compiling" = yes || | |
8940 | $as_test_x conftest$ac_exeext | |
8941 | }; then | |
8942 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
d9898ee8 | 8943 | |
8d138742 CE |
8944 | else |
8945 | $as_echo "$as_me: failed program was:" >&5 | |
8946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8947 | |
d9898ee8 | 8948 | |
8d138742 | 8949 | fi |
d9898ee8 | 8950 | |
8d138742 CE |
8951 | rm -rf conftest.dSYM |
8952 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8953 | conftest$ac_exeext conftest.$ac_ext | |
8954 | LDFLAGS="$save_LDFLAGS" | |
8955 | else | |
8956 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8957 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8958 | fi | |
8959 | archive_cmds_need_lc='no' | |
8960 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8961 | hardcode_libdir_separator=: | |
8962 | inherit_rpath=yes | |
8963 | link_all_deplibs=yes | |
8964 | ;; | |
d9898ee8 | 8965 | |
8d138742 CE |
8966 | netbsd*) |
8967 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8968 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8969 | else | |
8970 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8971 | fi | |
8972 | hardcode_libdir_flag_spec='-R$libdir' | |
8973 | hardcode_direct=yes | |
8974 | hardcode_shlibpath_var=no | |
8975 | ;; | |
d9898ee8 | 8976 | |
8d138742 CE |
8977 | newsos6) |
8978 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8979 | hardcode_direct=yes | |
8980 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8981 | hardcode_libdir_separator=: | |
8982 | hardcode_shlibpath_var=no | |
8983 | ;; | |
d9898ee8 | 8984 | |
8d138742 CE |
8985 | *nto* | *qnx*) |
8986 | ;; | |
d9898ee8 | 8987 | |
8d138742 CE |
8988 | openbsd*) |
8989 | if test -f /usr/libexec/ld.so; then | |
8990 | hardcode_direct=yes | |
8991 | hardcode_shlibpath_var=no | |
8992 | hardcode_direct_absolute=yes | |
8993 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8994 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8995 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8996 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8997 | export_dynamic_flag_spec='${wl}-E' | |
8998 | else | |
8999 | case $host_os in | |
9000 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9001 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9002 | hardcode_libdir_flag_spec='-R$libdir' | |
9003 | ;; | |
9004 | *) | |
9005 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9006 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9007 | ;; | |
9008 | esac | |
9009 | fi | |
9010 | else | |
9011 | ld_shlibs=no | |
9012 | fi | |
9013 | ;; | |
d9898ee8 | 9014 | |
8d138742 CE |
9015 | os2*) |
9016 | hardcode_libdir_flag_spec='-L$libdir' | |
9017 | hardcode_minus_L=yes | |
9018 | allow_undefined_flag=unsupported | |
9019 | 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' | |
9020 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9021 | ;; | |
d9898ee8 | 9022 | |
8d138742 CE |
9023 | osf3*) |
9024 | if test "$GCC" = yes; then | |
9025 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9026 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9027 | else | |
9028 | allow_undefined_flag=' -expect_unresolved \*' | |
9029 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9030 | fi | |
9031 | archive_cmds_need_lc='no' | |
9032 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9033 | hardcode_libdir_separator=: | |
9034 | ;; | |
d9898ee8 | 9035 | |
8d138742 CE |
9036 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9037 | if test "$GCC" = yes; then | |
9038 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9039 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9040 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9041 | else | |
9042 | allow_undefined_flag=' -expect_unresolved \*' | |
9043 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9044 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9045 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d9898ee8 | 9046 | |
8d138742 CE |
9047 | # Both c and cxx compiler support -rpath directly |
9048 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9049 | fi | |
9050 | archive_cmds_need_lc='no' | |
9051 | hardcode_libdir_separator=: | |
9052 | ;; | |
d9898ee8 | 9053 | |
8d138742 CE |
9054 | solaris*) |
9055 | no_undefined_flag=' -z defs' | |
9056 | if test "$GCC" = yes; then | |
9057 | wlarc='${wl}' | |
9058 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9059 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9060 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9061 | else | |
9062 | case `$CC -V 2>&1` in | |
9063 | *"Compilers 5.0"*) | |
9064 | wlarc='' | |
9065 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9066 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9067 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9068 | ;; | |
9069 | *) | |
9070 | wlarc='${wl}' | |
9071 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9072 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9073 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9074 | ;; | |
9075 | esac | |
9076 | fi | |
9077 | hardcode_libdir_flag_spec='-R$libdir' | |
9078 | hardcode_shlibpath_var=no | |
9079 | case $host_os in | |
9080 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9081 | *) | |
9082 | # The compiler driver will combine and reorder linker options, | |
9083 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9084 | # but is careful enough not to reorder. | |
9085 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9086 | if test "$GCC" = yes; then | |
9087 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9088 | else | |
9089 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9090 | fi | |
9091 | ;; | |
9092 | esac | |
9093 | link_all_deplibs=yes | |
9094 | ;; | |
d9898ee8 | 9095 | |
8d138742 CE |
9096 | sunos4*) |
9097 | if test "x$host_vendor" = xsequent; then | |
9098 | # Use $CC to link under sequent, because it throws in some extra .o | |
9099 | # files that make .init and .fini sections work. | |
9100 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9101 | else | |
9102 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9103 | fi | |
9104 | hardcode_libdir_flag_spec='-L$libdir' | |
9105 | hardcode_direct=yes | |
9106 | hardcode_minus_L=yes | |
9107 | hardcode_shlibpath_var=no | |
9108 | ;; | |
d9898ee8 | 9109 | |
8d138742 CE |
9110 | sysv4) |
9111 | case $host_vendor in | |
9112 | sni) | |
9113 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9114 | hardcode_direct=yes # is this really true??? | |
9115 | ;; | |
9116 | siemens) | |
9117 | ## LD is ld it makes a PLAMLIB | |
9118 | ## CC just makes a GrossModule. | |
9119 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9120 | reload_cmds='$CC -r -o $output$reload_objs' | |
9121 | hardcode_direct=no | |
9122 | ;; | |
9123 | motorola) | |
9124 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9125 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9126 | ;; | |
9127 | esac | |
9128 | runpath_var='LD_RUN_PATH' | |
9129 | hardcode_shlibpath_var=no | |
9130 | ;; | |
d9898ee8 | 9131 | |
8d138742 CE |
9132 | sysv4.3*) |
9133 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9134 | hardcode_shlibpath_var=no | |
9135 | export_dynamic_flag_spec='-Bexport' | |
9136 | ;; | |
d9898ee8 | 9137 | |
8d138742 CE |
9138 | sysv4*MP*) |
9139 | if test -d /usr/nec; then | |
9140 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9141 | hardcode_shlibpath_var=no | |
9142 | runpath_var=LD_RUN_PATH | |
9143 | hardcode_runpath_var=yes | |
9144 | ld_shlibs=yes | |
9145 | fi | |
9146 | ;; | |
d9898ee8 | 9147 | |
8d138742 CE |
9148 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9149 | no_undefined_flag='${wl}-z,text' | |
9150 | archive_cmds_need_lc=no | |
9151 | hardcode_shlibpath_var=no | |
9152 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9153 | |
8d138742 CE |
9154 | if test "$GCC" = yes; then |
9155 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9156 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9157 | else | |
9158 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9159 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9160 | fi | |
9161 | ;; | |
d9898ee8 | 9162 | |
8d138742 CE |
9163 | sysv5* | sco3.2v5* | sco5v6*) |
9164 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9165 | # link with -lc, and that would cause any symbols used from libc to | |
9166 | # always be unresolved, which means just about no library would | |
9167 | # ever link correctly. If we're not using GNU ld we use -z text | |
9168 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9169 | # as -z defs. | |
9170 | no_undefined_flag='${wl}-z,text' | |
9171 | allow_undefined_flag='${wl}-z,nodefs' | |
9172 | archive_cmds_need_lc=no | |
9173 | hardcode_shlibpath_var=no | |
9174 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9175 | hardcode_libdir_separator=':' | |
9176 | link_all_deplibs=yes | |
9177 | export_dynamic_flag_spec='${wl}-Bexport' | |
9178 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9179 | |
8d138742 CE |
9180 | if test "$GCC" = yes; then |
9181 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9182 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9183 | else | |
9184 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9185 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9186 | fi | |
9187 | ;; | |
d9898ee8 | 9188 | |
8d138742 CE |
9189 | uts4*) |
9190 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9191 | hardcode_libdir_flag_spec='-L$libdir' | |
9192 | hardcode_shlibpath_var=no | |
9193 | ;; | |
d9898ee8 | 9194 | |
8d138742 CE |
9195 | *) |
9196 | ld_shlibs=no | |
9197 | ;; | |
9198 | esac | |
d9898ee8 | 9199 | |
8d138742 CE |
9200 | if test x$host_vendor = xsni; then |
9201 | case $host in | |
9202 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9203 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
d9898ee8 | 9204 | ;; |
8d138742 CE |
9205 | esac |
9206 | fi | |
9207 | fi | |
9208 | ||
9209 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9210 | $as_echo "$ld_shlibs" >&6; } | |
9211 | test "$ld_shlibs" = no && can_build_shared=no | |
9212 | ||
9213 | with_gnu_ld=$with_gnu_ld | |
9214 | ||
9215 | ||
9216 | ||
9217 | ||
9218 | ||
9219 | ||
9220 | ||
9221 | ||
9222 | ||
9223 | ||
9224 | ||
9225 | ||
9226 | ||
9227 | ||
9228 | ||
9229 | # | |
9230 | # Do we need to explicitly link libc? | |
9231 | # | |
9232 | case "x$archive_cmds_need_lc" in | |
9233 | x|xyes) | |
9234 | # Assume -lc should be added | |
9235 | archive_cmds_need_lc=yes | |
9236 | ||
9237 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9238 | case $archive_cmds in | |
9239 | *'~'*) | |
9240 | # FIXME: we may have to deal with multi-command sequences. | |
9241 | ;; | |
9242 | '$CC '*) | |
9243 | # Test whether the compiler implicitly links with -lc since on some | |
9244 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9245 | # to ld, don't add -lc before -lgcc. | |
9246 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9247 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9248 | $RM conftest* | |
9249 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9250 | ||
9251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9252 | (eval $ac_compile) 2>&5 | |
9253 | ac_status=$? | |
9254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9255 | (exit $ac_status); } 2>conftest.err; then | |
9256 | soname=conftest | |
9257 | lib=conftest | |
9258 | libobjs=conftest.$ac_objext | |
9259 | deplibs= | |
9260 | wl=$lt_prog_compiler_wl | |
9261 | pic_flag=$lt_prog_compiler_pic | |
9262 | compiler_flags=-v | |
9263 | linker_flags=-v | |
9264 | verstring= | |
9265 | output_objdir=. | |
9266 | libname=conftest | |
9267 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9268 | allow_undefined_flag= | |
9269 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9270 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9271 | ac_status=$? | |
9272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9273 | (exit $ac_status); } | |
9274 | then | |
9275 | archive_cmds_need_lc=no | |
9276 | else | |
9277 | archive_cmds_need_lc=yes | |
9278 | fi | |
9279 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9280 | else | |
9281 | cat conftest.err 1>&5 | |
9282 | fi | |
9283 | $RM conftest* | |
9284 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9285 | $as_echo "$archive_cmds_need_lc" >&6; } | |
9286 | ;; | |
9287 | esac | |
9288 | fi | |
9289 | ;; | |
9290 | esac | |
9291 | ||
9292 | ||
d9898ee8 | 9293 | |
d9898ee8 | 9294 | |
d9898ee8 | 9295 | |
d9898ee8 | 9296 | |
d9898ee8 | 9297 | |
d9898ee8 | 9298 | |
d9898ee8 | 9299 | |
d9898ee8 | 9300 | |
d9898ee8 | 9301 | |
d9898ee8 | 9302 | |
9303 | ||
d9898ee8 | 9304 | |
d9898ee8 | 9305 | |
9306 | ||
d9898ee8 | 9307 | |
9308 | ||
d9898ee8 | 9309 | |
d9898ee8 | 9310 | |
9311 | ||
d9898ee8 | 9312 | |
d9898ee8 | 9313 | |
9314 | ||
d9898ee8 | 9315 | |
d9898ee8 | 9316 | |
d9898ee8 | 9317 | |
d9898ee8 | 9318 | |
d9898ee8 | 9319 | |
d9898ee8 | 9320 | |
d9898ee8 | 9321 | |
d9898ee8 | 9322 | |
d9898ee8 | 9323 | |
d9898ee8 | 9324 | |
d9898ee8 | 9325 | |
d9898ee8 | 9326 | |
d9898ee8 | 9327 | |
d9898ee8 | 9328 | |
d9898ee8 | 9329 | |
d9898ee8 | 9330 | |
d9898ee8 | 9331 | |
d9898ee8 | 9332 | |
d9898ee8 | 9333 | |
d9898ee8 | 9334 | |
d9898ee8 | 9335 | |
d9898ee8 | 9336 | |
d9898ee8 | 9337 | |
ac40fd9e | 9338 | |
d9898ee8 | 9339 | |
d9898ee8 | 9340 | |
d9898ee8 | 9341 | |
d9898ee8 | 9342 | |
d9898ee8 | 9343 | |
d9898ee8 | 9344 | |
d9898ee8 | 9345 | |
d9898ee8 | 9346 | |
d9898ee8 | 9347 | |
d9898ee8 | 9348 | |
d9898ee8 | 9349 | |
d9898ee8 | 9350 | |
d9898ee8 | 9351 | |
d9898ee8 | 9352 | |
d9898ee8 | 9353 | |
d9898ee8 | 9354 | |
d9898ee8 | 9355 | |
9356 | ||
d9898ee8 | 9357 | |
d9898ee8 | 9358 | |
d9898ee8 | 9359 | |
9360 | ||
d9898ee8 | 9361 | |
d9898ee8 | 9362 | |
d9898ee8 | 9363 | |
d9898ee8 | 9364 | |
d9898ee8 | 9365 | |
d9898ee8 | 9366 | |
d9898ee8 | 9367 | |
d9898ee8 | 9368 | |
d9898ee8 | 9369 | |
d9898ee8 | 9370 | |
d9898ee8 | 9371 | |
d9898ee8 | 9372 | |
d9898ee8 | 9373 | |
d9898ee8 | 9374 | |
d9898ee8 | 9375 | |
d9898ee8 | 9376 | |
d9898ee8 | 9377 | |
d9898ee8 | 9378 | |
d9898ee8 | 9379 | |
d9898ee8 | 9380 | |
d9898ee8 | 9381 | |
d9898ee8 | 9382 | |
d9898ee8 | 9383 | |
d9898ee8 | 9384 | |
d9898ee8 | 9385 | |
d9898ee8 | 9386 | |
d9898ee8 | 9387 | |
d9898ee8 | 9388 | |
d9898ee8 | 9389 | |
d9898ee8 | 9390 | |
d9898ee8 | 9391 | |
d9898ee8 | 9392 | |
d9898ee8 | 9393 | |
d9898ee8 | 9394 | |
d9898ee8 | 9395 | |
dd184caf | 9396 | |
dd184caf | 9397 | |
d9898ee8 | 9398 | |
d9898ee8 | 9399 | |
d9898ee8 | 9400 | |
d9898ee8 | 9401 | |
d9898ee8 | 9402 | |
dd184caf | 9403 | |
dd184caf | 9404 | |
d9898ee8 | 9405 | |
d9898ee8 | 9406 | |
d9898ee8 | 9407 | |
d9898ee8 | 9408 | |
d9898ee8 | 9409 | |
d9898ee8 | 9410 | |
d9898ee8 | 9411 | |
d9898ee8 | 9412 | |
d9898ee8 | 9413 | |
d9898ee8 | 9414 | |
d9898ee8 | 9415 | |
d9898ee8 | 9416 | |
d9898ee8 | 9417 | |
d9898ee8 | 9418 | |
d9898ee8 | 9419 | |
d9898ee8 | 9420 | |
d9898ee8 | 9421 | |
d9898ee8 | 9422 | |
d9898ee8 | 9423 | |
d9898ee8 | 9424 | |
d9898ee8 | 9425 | |
d9898ee8 | 9426 | |
d9898ee8 | 9427 | |
d9898ee8 | 9428 | |
d9898ee8 | 9429 | |
d9898ee8 | 9430 | |
d9898ee8 | 9431 | |
d9898ee8 | 9432 | |
d9898ee8 | 9433 | |
d9898ee8 | 9434 | |
d9898ee8 | 9435 | |
d9898ee8 | 9436 | |
d9898ee8 | 9437 | |
d9898ee8 | 9438 | |
d9898ee8 | 9439 | |
d9898ee8 | 9440 | |
d9898ee8 | 9441 | |
d9898ee8 | 9442 | |
d9898ee8 | 9443 | |
d9898ee8 | 9444 | |
d9898ee8 | 9445 | |
d9898ee8 | 9446 | |
8d138742 CE |
9447 | |
9448 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9449 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9450 | ||
9451 | if test "$GCC" = yes; then | |
9452 | case $host_os in | |
9453 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9454 | *) lt_awk_arg="/^libraries:/" ;; | |
9455 | esac | |
9456 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9457 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9458 | # if the path contains ";" then we assume it to be the separator | |
9459 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9460 | # assumed that no part of a normal pathname contains ";" but that should | |
9461 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9462 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9463 | else | |
9464 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9465 | fi | |
9466 | # Ok, now we have the path, separated by spaces, we can step through it | |
9467 | # and add multilib dir if necessary. | |
9468 | lt_tmp_lt_search_path_spec= | |
9469 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9470 | for lt_sys_path in $lt_search_path_spec; do | |
9471 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9472 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9473 | else | |
9474 | test -d "$lt_sys_path" && \ | |
9475 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9476 | fi | |
9477 | done | |
9478 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9479 | BEGIN {RS=" "; FS="/|\n";} { | |
9480 | lt_foo=""; | |
9481 | lt_count=0; | |
9482 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9483 | if ($lt_i != "" && $lt_i != ".") { | |
9484 | if ($lt_i == "..") { | |
9485 | lt_count++; | |
9486 | } else { | |
9487 | if (lt_count == 0) { | |
9488 | lt_foo="/" $lt_i lt_foo; | |
9489 | } else { | |
9490 | lt_count--; | |
9491 | } | |
9492 | } | |
9493 | } | |
9494 | } | |
9495 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9496 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9497 | }'` | |
9498 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9499 | else | |
9500 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9501 | fi | |
d9898ee8 | 9502 | library_names_spec= |
9503 | libname_spec='lib$name' | |
9504 | soname_spec= | |
9505 | shrext_cmds=".so" | |
9506 | postinstall_cmds= | |
9507 | postuninstall_cmds= | |
9508 | finish_cmds= | |
9509 | finish_eval= | |
9510 | shlibpath_var= | |
9511 | shlibpath_overrides_runpath=unknown | |
9512 | version_type=none | |
9513 | dynamic_linker="$host_os ld.so" | |
9514 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 9515 | need_lib_prefix=unknown |
9516 | hardcode_into_libs=no | |
9517 | ||
9518 | # when you set need_version to no, make sure it does not cause -set_version | |
9519 | # flags to be left without arguments | |
9520 | need_version=unknown | |
9521 | ||
9522 | case $host_os in | |
9523 | aix3*) | |
9524 | version_type=linux | |
9525 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9526 | shlibpath_var=LIBPATH | |
9527 | ||
9528 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9529 | soname_spec='${libname}${release}${shared_ext}$major' | |
9530 | ;; | |
9531 | ||
8d138742 | 9532 | aix[4-9]*) |
d9898ee8 | 9533 | version_type=linux |
9534 | need_lib_prefix=no | |
9535 | need_version=no | |
9536 | hardcode_into_libs=yes | |
9537 | if test "$host_cpu" = ia64; then | |
9538 | # AIX 5 supports IA64 | |
9539 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9540 | shlibpath_var=LD_LIBRARY_PATH | |
9541 | else | |
9542 | # With GCC up to 2.95.x, collect2 would create an import file | |
9543 | # for dependence libraries. The import file would start with | |
9544 | # the line `#! .'. This would cause the generated library to | |
9545 | # depend on `.', always an invalid library. This was fixed in | |
9546 | # development snapshots of GCC prior to 3.0. | |
9547 | case $host_os in | |
9548 | aix4 | aix4.[01] | aix4.[01].*) | |
9549 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9550 | echo ' yes ' | |
8d138742 | 9551 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 9552 | : |
9553 | else | |
9554 | can_build_shared=no | |
9555 | fi | |
9556 | ;; | |
9557 | esac | |
9558 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9559 | # soname into executable. Probably we can add versioning support to | |
9560 | # collect2, so additional links can be useful in future. | |
9561 | if test "$aix_use_runtimelinking" = yes; then | |
9562 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9563 | # instead of lib<name>.a to let people know that these are not | |
9564 | # typical AIX shared libraries. | |
9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9566 | else | |
9567 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9568 | # and later when we are not doing run time linking. | |
9569 | library_names_spec='${libname}${release}.a $libname.a' | |
9570 | soname_spec='${libname}${release}${shared_ext}$major' | |
9571 | fi | |
9572 | shlibpath_var=LIBPATH | |
9573 | fi | |
9574 | ;; | |
9575 | ||
9576 | amigaos*) | |
8d138742 CE |
9577 | case $host_cpu in |
9578 | powerpc) | |
9579 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9580 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9582 | ;; | |
9583 | m68k) | |
9584 | library_names_spec='$libname.ixlibrary $libname.a' | |
9585 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9586 | 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' | |
9587 | ;; | |
9588 | esac | |
d9898ee8 | 9589 | ;; |
9590 | ||
9591 | beos*) | |
9592 | library_names_spec='${libname}${shared_ext}' | |
9593 | dynamic_linker="$host_os ld.so" | |
9594 | shlibpath_var=LIBRARY_PATH | |
9595 | ;; | |
9596 | ||
9597 | bsdi[45]*) | |
9598 | version_type=linux | |
9599 | need_version=no | |
9600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9601 | soname_spec='${libname}${release}${shared_ext}$major' | |
9602 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9603 | shlibpath_var=LD_LIBRARY_PATH | |
9604 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9605 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9606 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9607 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9608 | # libtool to hard-code these into programs | |
9609 | ;; | |
9610 | ||
8d138742 | 9611 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9612 | version_type=windows |
9613 | shrext_cmds=".dll" | |
9614 | need_version=no | |
9615 | need_lib_prefix=no | |
9616 | ||
9617 | case $GCC,$host_os in | |
8d138742 | 9618 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
d9898ee8 | 9619 | library_names_spec='$libname.dll.a' |
9620 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9621 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 9622 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 9623 | dldir=$destdir/`dirname \$dlpath`~ |
9624 | test -d \$dldir || mkdir -p \$dldir~ | |
9625 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
9626 | chmod a+x \$dldir/$dlname~ |
9627 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9628 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9629 | fi' | |
d9898ee8 | 9630 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9631 | dlpath=$dir/\$dldll~ | |
8d138742 | 9632 | $RM \$dlpath' |
d9898ee8 | 9633 | shlibpath_overrides_runpath=yes |
9634 | ||
9635 | case $host_os in | |
9636 | cygwin*) | |
9637 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9638 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9639 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9640 | ;; | |
8d138742 | 9641 | mingw* | cegcc*) |
d9898ee8 | 9642 | # MinGW DLLs use traditional 'lib' prefix |
9643 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8d138742 CE |
9644 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9645 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
d9898ee8 | 9646 | # It is most probably a Windows format PATH printed by |
9647 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9648 | # path with ; separators, and with drive letters. We can handle the | |
9649 | # drive letters (cygwin fileutils understands them), so leave them, | |
9650 | # especially as we might pass files found there to a mingw objdump, | |
9651 | # which wouldn't understand a cygwinified path. Ahh. | |
8d138742 | 9652 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 | 9653 | else |
8d138742 | 9654 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 | 9655 | fi |
9656 | ;; | |
9657 | pw32*) | |
9658 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9659 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9660 | ;; | |
9661 | esac | |
9662 | ;; | |
9663 | ||
9664 | *) | |
9665 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9666 | ;; | |
9667 | esac | |
9668 | dynamic_linker='Win32 ld.exe' | |
9669 | # FIXME: first we should search . and the directory the executable is in | |
9670 | shlibpath_var=PATH | |
9671 | ;; | |
9672 | ||
9673 | darwin* | rhapsody*) | |
9674 | dynamic_linker="$host_os dyld" | |
9675 | version_type=darwin | |
9676 | need_lib_prefix=no | |
9677 | need_version=no | |
8d138742 | 9678 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 9679 | soname_spec='${libname}${release}${major}$shared_ext' |
9680 | shlibpath_overrides_runpath=yes | |
9681 | shlibpath_var=DYLD_LIBRARY_PATH | |
9682 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 9683 | |
8d138742 | 9684 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 9685 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9686 | ;; | |
9687 | ||
9688 | dgux*) | |
9689 | version_type=linux | |
9690 | need_lib_prefix=no | |
9691 | need_version=no | |
9692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9693 | soname_spec='${libname}${release}${shared_ext}$major' | |
9694 | shlibpath_var=LD_LIBRARY_PATH | |
9695 | ;; | |
9696 | ||
9697 | freebsd1*) | |
9698 | dynamic_linker=no | |
9699 | ;; | |
9700 | ||
d9898ee8 | 9701 | freebsd* | dragonfly*) |
9702 | # DragonFly does not have aout. When/if they implement a new | |
9703 | # versioning mechanism, adjust this. | |
9704 | if test -x /usr/bin/objformat; then | |
9705 | objformat=`/usr/bin/objformat` | |
9706 | else | |
9707 | case $host_os in | |
9708 | freebsd[123]*) objformat=aout ;; | |
9709 | *) objformat=elf ;; | |
9710 | esac | |
9711 | fi | |
9712 | version_type=freebsd-$objformat | |
9713 | case $version_type in | |
9714 | freebsd-elf*) | |
9715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9716 | need_version=no | |
9717 | need_lib_prefix=no | |
9718 | ;; | |
9719 | freebsd-*) | |
9720 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9721 | need_version=yes | |
9722 | ;; | |
9723 | esac | |
9724 | shlibpath_var=LD_LIBRARY_PATH | |
9725 | case $host_os in | |
9726 | freebsd2*) | |
9727 | shlibpath_overrides_runpath=yes | |
9728 | ;; | |
9729 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9730 | shlibpath_overrides_runpath=yes | |
9731 | hardcode_into_libs=yes | |
9732 | ;; | |
9733 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9734 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9735 | shlibpath_overrides_runpath=no | |
9736 | hardcode_into_libs=yes | |
9737 | ;; | |
ac40fd9e | 9738 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 9739 | shlibpath_overrides_runpath=yes |
9740 | hardcode_into_libs=yes | |
9741 | ;; | |
9742 | esac | |
9743 | ;; | |
9744 | ||
9745 | gnu*) | |
9746 | version_type=linux | |
9747 | need_lib_prefix=no | |
9748 | need_version=no | |
9749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9750 | soname_spec='${libname}${release}${shared_ext}$major' | |
9751 | shlibpath_var=LD_LIBRARY_PATH | |
9752 | hardcode_into_libs=yes | |
9753 | ;; | |
9754 | ||
9755 | hpux9* | hpux10* | hpux11*) | |
9756 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9757 | # link against other versions. | |
9758 | version_type=sunos | |
9759 | need_lib_prefix=no | |
9760 | need_version=no | |
9761 | case $host_cpu in | |
9762 | ia64*) | |
9763 | shrext_cmds='.so' | |
9764 | hardcode_into_libs=yes | |
9765 | dynamic_linker="$host_os dld.so" | |
9766 | shlibpath_var=LD_LIBRARY_PATH | |
9767 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9769 | soname_spec='${libname}${release}${shared_ext}$major' | |
9770 | if test "X$HPUX_IA64_MODE" = X32; then | |
9771 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9772 | else | |
9773 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9774 | fi | |
9775 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9776 | ;; | |
8d138742 CE |
9777 | hppa*64*) |
9778 | shrext_cmds='.sl' | |
9779 | hardcode_into_libs=yes | |
9780 | dynamic_linker="$host_os dld.sl" | |
9781 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9782 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9784 | soname_spec='${libname}${release}${shared_ext}$major' | |
9785 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9786 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9787 | ;; | |
9788 | *) | |
d9898ee8 | 9789 | shrext_cmds='.sl' |
9790 | dynamic_linker="$host_os dld.sl" | |
9791 | shlibpath_var=SHLIB_PATH | |
9792 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9794 | soname_spec='${libname}${release}${shared_ext}$major' | |
9795 | ;; | |
9796 | esac | |
9797 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9798 | postinstall_cmds='chmod 555 $lib' | |
9799 | ;; | |
9800 | ||
ac40fd9e | 9801 | interix[3-9]*) |
d9898ee8 | 9802 | version_type=linux |
9803 | need_lib_prefix=no | |
9804 | need_version=no | |
9805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9806 | soname_spec='${libname}${release}${shared_ext}$major' | |
9807 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9808 | shlibpath_var=LD_LIBRARY_PATH | |
9809 | shlibpath_overrides_runpath=no | |
9810 | hardcode_into_libs=yes | |
9811 | ;; | |
9812 | ||
9813 | irix5* | irix6* | nonstopux*) | |
9814 | case $host_os in | |
9815 | nonstopux*) version_type=nonstopux ;; | |
9816 | *) | |
9817 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9818 | version_type=linux | |
9819 | else | |
9820 | version_type=irix | |
9821 | fi ;; | |
9822 | esac | |
9823 | need_lib_prefix=no | |
9824 | need_version=no | |
9825 | soname_spec='${libname}${release}${shared_ext}$major' | |
9826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9827 | case $host_os in | |
9828 | irix5* | nonstopux*) | |
9829 | libsuff= shlibsuff= | |
9830 | ;; | |
9831 | *) | |
9832 | case $LD in # libtool.m4 will add one of these switches to LD | |
9833 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9834 | libsuff= shlibsuff= libmagic=32-bit;; | |
9835 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9836 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9837 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9838 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9839 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9840 | esac | |
9841 | ;; | |
9842 | esac | |
9843 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9844 | shlibpath_overrides_runpath=no | |
9845 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9846 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9847 | hardcode_into_libs=yes | |
9848 | ;; | |
9849 | ||
8d138742 CE |
9850 | # No shared lib support for Linux oldld, aout, or coff. |
9851 | linux*oldld* | linux*aout* | linux*coff*) | |
9852 | dynamic_linker=no | |
9853 | ;; | |
9854 | ||
9855 | # This must be Linux ELF. | |
9856 | linux* | k*bsd*-gnu) | |
9857 | version_type=linux | |
9858 | need_lib_prefix=no | |
9859 | need_version=no | |
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9861 | soname_spec='${libname}${release}${shared_ext}$major' | |
9862 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9863 | shlibpath_var=LD_LIBRARY_PATH | |
9864 | shlibpath_overrides_runpath=no | |
9865 | # Some binutils ld are patched to set DT_RUNPATH | |
9866 | save_LDFLAGS=$LDFLAGS | |
9867 | save_libdir=$libdir | |
9868 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9869 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9870 | cat >conftest.$ac_ext <<_ACEOF | |
9871 | /* confdefs.h. */ | |
9872 | _ACEOF | |
9873 | cat confdefs.h >>conftest.$ac_ext | |
9874 | cat >>conftest.$ac_ext <<_ACEOF | |
9875 | /* end confdefs.h. */ | |
9876 | ||
9877 | int | |
9878 | main () | |
9879 | { | |
9880 | ||
9881 | ; | |
9882 | return 0; | |
9883 | } | |
9884 | _ACEOF | |
9885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9886 | if { (ac_try="$ac_link" | |
9887 | case "(($ac_try" in | |
9888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9889 | *) ac_try_echo=$ac_try;; | |
9890 | esac | |
9891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9892 | $as_echo "$ac_try_echo") >&5 | |
9893 | (eval "$ac_link") 2>conftest.er1 | |
9894 | ac_status=$? | |
9895 | grep -v '^ *+' conftest.er1 >conftest.err | |
9896 | rm -f conftest.er1 | |
9897 | cat conftest.err >&5 | |
9898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9899 | (exit $ac_status); } && { | |
9900 | test -z "$ac_c_werror_flag" || | |
9901 | test ! -s conftest.err | |
9902 | } && test -s conftest$ac_exeext && { | |
9903 | test "$cross_compiling" = yes || | |
9904 | $as_test_x conftest$ac_exeext | |
9905 | }; then | |
9906 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9907 | shlibpath_overrides_runpath=yes | |
9908 | fi | |
9909 | ||
9910 | else | |
9911 | $as_echo "$as_me: failed program was:" >&5 | |
9912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9913 | ||
9914 | ||
9915 | fi | |
9916 | ||
9917 | rm -rf conftest.dSYM | |
9918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9919 | conftest$ac_exeext conftest.$ac_ext | |
9920 | LDFLAGS=$save_LDFLAGS | |
9921 | libdir=$save_libdir | |
d9898ee8 | 9922 | |
d9898ee8 | 9923 | # This implies no fast_install, which is unacceptable. |
9924 | # Some rework will be needed to allow for fast_install | |
9925 | # before this can be enabled. | |
9926 | hardcode_into_libs=yes | |
8d138742 CE |
9927 | |
9928 | # Add ABI-specific directories to the system library path. | |
9929 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 9930 | |
9931 | # Append ld.so.conf contents to the search path | |
9932 | if test -f /etc/ld.so.conf; then | |
8d138742 | 9933 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ac40fd9e | 9934 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 9935 | fi |
9936 | ||
9937 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9938 | # powerpc, because MkLinux only supported shared libraries with the | |
9939 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9940 | # most powerpc-linux boxes support dynamic linking these days and | |
9941 | # people can always --disable-shared, the test was removed, and we | |
9942 | # assume the GNU/Linux dynamic linker is in use. | |
9943 | dynamic_linker='GNU/Linux ld.so' | |
9944 | ;; | |
9945 | ||
d9898ee8 | 9946 | netbsd*) |
9947 | version_type=sunos | |
9948 | need_lib_prefix=no | |
9949 | need_version=no | |
8d138742 | 9950 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 9951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9952 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9953 | dynamic_linker='NetBSD (a.out) ld.so' | |
9954 | else | |
9955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9956 | soname_spec='${libname}${release}${shared_ext}$major' | |
9957 | dynamic_linker='NetBSD ld.elf_so' | |
9958 | fi | |
9959 | shlibpath_var=LD_LIBRARY_PATH | |
9960 | shlibpath_overrides_runpath=yes | |
9961 | hardcode_into_libs=yes | |
9962 | ;; | |
9963 | ||
9964 | newsos6) | |
9965 | version_type=linux | |
9966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9967 | shlibpath_var=LD_LIBRARY_PATH | |
9968 | shlibpath_overrides_runpath=yes | |
9969 | ;; | |
9970 | ||
8d138742 CE |
9971 | *nto* | *qnx*) |
9972 | version_type=qnx | |
d9898ee8 | 9973 | need_lib_prefix=no |
9974 | need_version=no | |
9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9976 | soname_spec='${libname}${release}${shared_ext}$major' | |
9977 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
9978 | shlibpath_overrides_runpath=no |
9979 | hardcode_into_libs=yes | |
9980 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 9981 | ;; |
9982 | ||
9983 | openbsd*) | |
9984 | version_type=sunos | |
9985 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9986 | need_lib_prefix=no | |
9987 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9988 | case $host_os in | |
8d138742 CE |
9989 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9990 | *) need_version=no ;; | |
d9898ee8 | 9991 | esac |
9992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9993 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9994 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 9995 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 9996 | case $host_os in |
9997 | openbsd2.[89] | openbsd2.[89].*) | |
9998 | shlibpath_overrides_runpath=no | |
9999 | ;; | |
10000 | *) | |
10001 | shlibpath_overrides_runpath=yes | |
10002 | ;; | |
10003 | esac | |
10004 | else | |
10005 | shlibpath_overrides_runpath=yes | |
10006 | fi | |
10007 | ;; | |
10008 | ||
10009 | os2*) | |
10010 | libname_spec='$name' | |
10011 | shrext_cmds=".dll" | |
10012 | need_lib_prefix=no | |
10013 | library_names_spec='$libname${shared_ext} $libname.a' | |
10014 | dynamic_linker='OS/2 ld.exe' | |
10015 | shlibpath_var=LIBPATH | |
10016 | ;; | |
10017 | ||
10018 | osf3* | osf4* | osf5*) | |
10019 | version_type=osf | |
10020 | need_lib_prefix=no | |
10021 | need_version=no | |
10022 | soname_spec='${libname}${release}${shared_ext}$major' | |
10023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10024 | shlibpath_var=LD_LIBRARY_PATH | |
10025 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10026 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10027 | ;; | |
10028 | ||
ac40fd9e | 10029 | rdos*) |
10030 | dynamic_linker=no | |
10031 | ;; | |
10032 | ||
d9898ee8 | 10033 | solaris*) |
10034 | version_type=linux | |
10035 | need_lib_prefix=no | |
10036 | need_version=no | |
10037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10038 | soname_spec='${libname}${release}${shared_ext}$major' | |
10039 | shlibpath_var=LD_LIBRARY_PATH | |
10040 | shlibpath_overrides_runpath=yes | |
10041 | hardcode_into_libs=yes | |
10042 | # ldd complains unless libraries are executable | |
10043 | postinstall_cmds='chmod +x $lib' | |
10044 | ;; | |
10045 | ||
10046 | sunos4*) | |
10047 | version_type=sunos | |
10048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10049 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10050 | shlibpath_var=LD_LIBRARY_PATH | |
10051 | shlibpath_overrides_runpath=yes | |
10052 | if test "$with_gnu_ld" = yes; then | |
10053 | need_lib_prefix=no | |
10054 | fi | |
10055 | need_version=yes | |
10056 | ;; | |
10057 | ||
10058 | sysv4 | sysv4.3*) | |
10059 | version_type=linux | |
10060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10061 | soname_spec='${libname}${release}${shared_ext}$major' | |
10062 | shlibpath_var=LD_LIBRARY_PATH | |
10063 | case $host_vendor in | |
10064 | sni) | |
10065 | shlibpath_overrides_runpath=no | |
10066 | need_lib_prefix=no | |
d9898ee8 | 10067 | runpath_var=LD_RUN_PATH |
10068 | ;; | |
10069 | siemens) | |
10070 | need_lib_prefix=no | |
10071 | ;; | |
10072 | motorola) | |
10073 | need_lib_prefix=no | |
10074 | need_version=no | |
10075 | shlibpath_overrides_runpath=no | |
10076 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10077 | ;; | |
10078 | esac | |
10079 | ;; | |
10080 | ||
10081 | sysv4*MP*) | |
10082 | if test -d /usr/nec ;then | |
10083 | version_type=linux | |
10084 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10085 | soname_spec='$libname${shared_ext}.$major' | |
10086 | shlibpath_var=LD_LIBRARY_PATH | |
10087 | fi | |
10088 | ;; | |
10089 | ||
10090 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10091 | version_type=freebsd-elf | |
10092 | need_lib_prefix=no | |
10093 | need_version=no | |
10094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10095 | soname_spec='${libname}${release}${shared_ext}$major' | |
10096 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10097 | shlibpath_overrides_runpath=yes |
d9898ee8 | 10098 | hardcode_into_libs=yes |
10099 | if test "$with_gnu_ld" = yes; then | |
10100 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 10101 | else |
10102 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 10103 | case $host_os in |
10104 | sco3.2v5*) | |
10105 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10106 | ;; | |
10107 | esac | |
10108 | fi | |
10109 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10110 | ;; | |
10111 | ||
8d138742 CE |
10112 | tpf*) |
10113 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10114 | version_type=linux | |
10115 | need_lib_prefix=no | |
10116 | need_version=no | |
10117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10118 | shlibpath_var=LD_LIBRARY_PATH | |
10119 | shlibpath_overrides_runpath=no | |
10120 | hardcode_into_libs=yes | |
10121 | ;; | |
10122 | ||
d9898ee8 | 10123 | uts4*) |
10124 | version_type=linux | |
10125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10126 | soname_spec='${libname}${release}${shared_ext}$major' | |
10127 | shlibpath_var=LD_LIBRARY_PATH | |
10128 | ;; | |
10129 | ||
10130 | *) | |
10131 | dynamic_linker=no | |
10132 | ;; | |
10133 | esac | |
8d138742 CE |
10134 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10135 | $as_echo "$dynamic_linker" >&6; } | |
d9898ee8 | 10136 | test "$dynamic_linker" = no && can_build_shared=no |
10137 | ||
10138 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10139 | if test "$GCC" = yes; then | |
10140 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10141 | fi | |
10142 | ||
8d138742 CE |
10143 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10144 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
d9898ee8 | 10145 | fi |
8d138742 CE |
10146 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10147 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
d9898ee8 | 10148 | fi |
10149 | ||
10150 | ||
d9898ee8 | 10151 | |
d9898ee8 | 10152 | |
d9898ee8 | 10153 | |
d9898ee8 | 10154 | |
d9898ee8 | 10155 | |
d9898ee8 | 10156 | |
d9898ee8 | 10157 | |
d9898ee8 | 10158 | |
d9898ee8 | 10159 | |
d9898ee8 | 10160 | |
d9898ee8 | 10161 | |
d9898ee8 | 10162 | |
d9898ee8 | 10163 | |
d9898ee8 | 10164 | |
d9898ee8 | 10165 | |
d9898ee8 | 10166 | |
d9898ee8 | 10167 | |
d9898ee8 | 10168 | |
d9898ee8 | 10169 | |
d9898ee8 | 10170 | |
d9898ee8 | 10171 | |
d9898ee8 | 10172 | |
d9898ee8 | 10173 | |
d9898ee8 | 10174 | |
d9898ee8 | 10175 | |
d9898ee8 | 10176 | |
d9898ee8 | 10177 | |
d9898ee8 | 10178 | |
d9898ee8 | 10179 | |
d9898ee8 | 10180 | |
d9898ee8 | 10181 | |
d9898ee8 | 10182 | |
d9898ee8 | 10183 | |
d9898ee8 | 10184 | |
d9898ee8 | 10185 | |
d9898ee8 | 10186 | |
d9898ee8 | 10187 | |
d9898ee8 | 10188 | |
d9898ee8 | 10189 | |
d9898ee8 | 10190 | |
d9898ee8 | 10191 | |
d9898ee8 | 10192 | |
d9898ee8 | 10193 | |
d9898ee8 | 10194 | |
d9898ee8 | 10195 | |
d9898ee8 | 10196 | |
d9898ee8 | 10197 | |
d9898ee8 | 10198 | |
d9898ee8 | 10199 | |
d9898ee8 | 10200 | |
d9898ee8 | 10201 | |
d9898ee8 | 10202 | |
d9898ee8 | 10203 | |
d9898ee8 | 10204 | |
d9898ee8 | 10205 | |
d9898ee8 | 10206 | |
d9898ee8 | 10207 | |
d9898ee8 | 10208 | |
d9898ee8 | 10209 | |
d9898ee8 | 10210 | |
d9898ee8 | 10211 | |
d9898ee8 | 10212 | |
d9898ee8 | 10213 | |
d9898ee8 | 10214 | |
d9898ee8 | 10215 | |
d9898ee8 | 10216 | |
d9898ee8 | 10217 | |
d9898ee8 | 10218 | |
d9898ee8 | 10219 | |
d9898ee8 | 10220 | |
d9898ee8 | 10221 | |
d9898ee8 | 10222 | |
d9898ee8 | 10223 | |
d9898ee8 | 10224 | |
d9898ee8 | 10225 | |
d9898ee8 | 10226 | |
d9898ee8 | 10227 | |
d9898ee8 | 10228 | |
d9898ee8 | 10229 | |
d9898ee8 | 10230 | |
d9898ee8 | 10231 | |
d9898ee8 | 10232 | |
d9898ee8 | 10233 | |
d9898ee8 | 10234 | |
d9898ee8 | 10235 | |
8d138742 CE |
10236 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10237 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10238 | hardcode_action= | |
10239 | if test -n "$hardcode_libdir_flag_spec" || | |
10240 | test -n "$runpath_var" || | |
10241 | test "X$hardcode_automatic" = "Xyes" ; then | |
10242 | ||
10243 | # We can hardcode non-existent directories. | |
10244 | if test "$hardcode_direct" != no && | |
10245 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10246 | # have to relink, otherwise we might link with an installed library | |
10247 | # when we should be linking with a yet-to-be-installed one | |
10248 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10249 | test "$hardcode_minus_L" != no; then | |
10250 | # Linking always hardcodes the temporary library directory. | |
10251 | hardcode_action=relink | |
10252 | else | |
10253 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10254 | hardcode_action=immediate | |
10255 | fi | |
10256 | else | |
10257 | # We cannot hardcode anything, or else we can only hardcode existing | |
10258 | # directories. | |
10259 | hardcode_action=unsupported | |
10260 | fi | |
10261 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10262 | $as_echo "$hardcode_action" >&6; } | |
10263 | ||
10264 | if test "$hardcode_action" = relink || | |
10265 | test "$inherit_rpath" = yes; then | |
10266 | # Fast installation is not supported | |
10267 | enable_fast_install=no | |
10268 | elif test "$shlibpath_overrides_runpath" = yes || | |
10269 | test "$enable_shared" = no; then | |
10270 | # Fast installation is not necessary | |
10271 | enable_fast_install=needless | |
10272 | fi | |
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | if test "x$enable_dlopen" != xyes; then | |
10280 | enable_dlopen=unknown | |
10281 | enable_dlopen_self=unknown | |
10282 | enable_dlopen_self_static=unknown | |
10283 | else | |
10284 | lt_cv_dlopen=no | |
10285 | lt_cv_dlopen_libs= | |
10286 | ||
10287 | case $host_os in | |
10288 | beos*) | |
10289 | lt_cv_dlopen="load_add_on" | |
10290 | lt_cv_dlopen_libs= | |
10291 | lt_cv_dlopen_self=yes | |
10292 | ;; | |
10293 | ||
10294 | mingw* | pw32* | cegcc*) | |
10295 | lt_cv_dlopen="LoadLibrary" | |
10296 | lt_cv_dlopen_libs= | |
10297 | ;; | |
10298 | ||
10299 | cygwin*) | |
10300 | lt_cv_dlopen="dlopen" | |
10301 | lt_cv_dlopen_libs= | |
10302 | ;; | |
10303 | ||
10304 | darwin*) | |
10305 | # if libdl is installed we need to link against it | |
10306 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10307 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10308 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10309 | $as_echo_n "(cached) " >&6 | |
10310 | else | |
10311 | ac_check_lib_save_LIBS=$LIBS | |
10312 | LIBS="-ldl $LIBS" | |
10313 | cat >conftest.$ac_ext <<_ACEOF | |
10314 | /* confdefs.h. */ | |
10315 | _ACEOF | |
10316 | cat confdefs.h >>conftest.$ac_ext | |
10317 | cat >>conftest.$ac_ext <<_ACEOF | |
10318 | /* end confdefs.h. */ | |
10319 | ||
10320 | /* Override any GCC internal prototype to avoid an error. | |
10321 | Use char because int might match the return type of a GCC | |
10322 | builtin and then its argument prototype would still apply. */ | |
10323 | #ifdef __cplusplus | |
10324 | extern "C" | |
10325 | #endif | |
10326 | char dlopen (); | |
10327 | int | |
10328 | main () | |
10329 | { | |
10330 | return dlopen (); | |
10331 | ; | |
10332 | return 0; | |
10333 | } | |
10334 | _ACEOF | |
10335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10336 | if { (ac_try="$ac_link" | |
10337 | case "(($ac_try" in | |
10338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10339 | *) ac_try_echo=$ac_try;; | |
10340 | esac | |
10341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10342 | $as_echo "$ac_try_echo") >&5 | |
10343 | (eval "$ac_link") 2>conftest.er1 | |
10344 | ac_status=$? | |
10345 | grep -v '^ *+' conftest.er1 >conftest.err | |
10346 | rm -f conftest.er1 | |
10347 | cat conftest.err >&5 | |
10348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10349 | (exit $ac_status); } && { | |
10350 | test -z "$ac_c_werror_flag" || | |
10351 | test ! -s conftest.err | |
10352 | } && test -s conftest$ac_exeext && { | |
10353 | test "$cross_compiling" = yes || | |
10354 | $as_test_x conftest$ac_exeext | |
10355 | }; then | |
10356 | ac_cv_lib_dl_dlopen=yes | |
10357 | else | |
10358 | $as_echo "$as_me: failed program was:" >&5 | |
10359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10360 | ||
10361 | ac_cv_lib_dl_dlopen=no | |
10362 | fi | |
10363 | ||
10364 | rm -rf conftest.dSYM | |
10365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10366 | conftest$ac_exeext conftest.$ac_ext | |
10367 | LIBS=$ac_check_lib_save_LIBS | |
10368 | fi | |
10369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10370 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10371 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10372 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10373 | else | |
10374 | ||
10375 | lt_cv_dlopen="dyld" | |
10376 | lt_cv_dlopen_libs= | |
10377 | lt_cv_dlopen_self=yes | |
10378 | ||
10379 | fi | |
10380 | ||
10381 | ;; | |
10382 | ||
10383 | *) | |
10384 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10385 | $as_echo_n "checking for shl_load... " >&6; } | |
10386 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10387 | $as_echo_n "(cached) " >&6 | |
10388 | else | |
10389 | cat >conftest.$ac_ext <<_ACEOF | |
10390 | /* confdefs.h. */ | |
10391 | _ACEOF | |
10392 | cat confdefs.h >>conftest.$ac_ext | |
10393 | cat >>conftest.$ac_ext <<_ACEOF | |
10394 | /* end confdefs.h. */ | |
10395 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10397 | #define shl_load innocuous_shl_load | |
10398 | ||
10399 | /* System header to define __stub macros and hopefully few prototypes, | |
10400 | which can conflict with char shl_load (); below. | |
10401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10402 | <limits.h> exists even on freestanding compilers. */ | |
10403 | ||
10404 | #ifdef __STDC__ | |
10405 | # include <limits.h> | |
10406 | #else | |
10407 | # include <assert.h> | |
10408 | #endif | |
10409 | ||
10410 | #undef shl_load | |
10411 | ||
10412 | /* Override any GCC internal prototype to avoid an error. | |
10413 | Use char because int might match the return type of a GCC | |
10414 | builtin and then its argument prototype would still apply. */ | |
10415 | #ifdef __cplusplus | |
10416 | extern "C" | |
10417 | #endif | |
10418 | char shl_load (); | |
10419 | /* The GNU C library defines this for functions which it implements | |
10420 | to always fail with ENOSYS. Some functions are actually named | |
10421 | something starting with __ and the normal name is an alias. */ | |
10422 | #if defined __stub_shl_load || defined __stub___shl_load | |
10423 | choke me | |
10424 | #endif | |
10425 | ||
10426 | int | |
10427 | main () | |
10428 | { | |
10429 | return shl_load (); | |
10430 | ; | |
10431 | return 0; | |
10432 | } | |
10433 | _ACEOF | |
10434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10435 | if { (ac_try="$ac_link" | |
10436 | case "(($ac_try" in | |
10437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10438 | *) ac_try_echo=$ac_try;; | |
10439 | esac | |
10440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10441 | $as_echo "$ac_try_echo") >&5 | |
10442 | (eval "$ac_link") 2>conftest.er1 | |
10443 | ac_status=$? | |
10444 | grep -v '^ *+' conftest.er1 >conftest.err | |
10445 | rm -f conftest.er1 | |
10446 | cat conftest.err >&5 | |
10447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10448 | (exit $ac_status); } && { | |
10449 | test -z "$ac_c_werror_flag" || | |
10450 | test ! -s conftest.err | |
10451 | } && test -s conftest$ac_exeext && { | |
10452 | test "$cross_compiling" = yes || | |
10453 | $as_test_x conftest$ac_exeext | |
10454 | }; then | |
10455 | ac_cv_func_shl_load=yes | |
10456 | else | |
10457 | $as_echo "$as_me: failed program was:" >&5 | |
10458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10459 | ||
10460 | ac_cv_func_shl_load=no | |
10461 | fi | |
10462 | ||
10463 | rm -rf conftest.dSYM | |
10464 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10465 | conftest$ac_exeext conftest.$ac_ext | |
10466 | fi | |
10467 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10468 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10469 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10470 | lt_cv_dlopen="shl_load" | |
10471 | else | |
10472 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10473 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10474 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10475 | $as_echo_n "(cached) " >&6 | |
10476 | else | |
10477 | ac_check_lib_save_LIBS=$LIBS | |
10478 | LIBS="-ldld $LIBS" | |
10479 | cat >conftest.$ac_ext <<_ACEOF | |
10480 | /* confdefs.h. */ | |
10481 | _ACEOF | |
10482 | cat confdefs.h >>conftest.$ac_ext | |
10483 | cat >>conftest.$ac_ext <<_ACEOF | |
10484 | /* end confdefs.h. */ | |
10485 | ||
10486 | /* Override any GCC internal prototype to avoid an error. | |
10487 | Use char because int might match the return type of a GCC | |
10488 | builtin and then its argument prototype would still apply. */ | |
10489 | #ifdef __cplusplus | |
10490 | extern "C" | |
10491 | #endif | |
10492 | char shl_load (); | |
10493 | int | |
10494 | main () | |
10495 | { | |
10496 | return shl_load (); | |
10497 | ; | |
10498 | return 0; | |
10499 | } | |
10500 | _ACEOF | |
10501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10502 | if { (ac_try="$ac_link" | |
10503 | case "(($ac_try" in | |
10504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10505 | *) ac_try_echo=$ac_try;; | |
10506 | esac | |
10507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10508 | $as_echo "$ac_try_echo") >&5 | |
10509 | (eval "$ac_link") 2>conftest.er1 | |
10510 | ac_status=$? | |
10511 | grep -v '^ *+' conftest.er1 >conftest.err | |
10512 | rm -f conftest.er1 | |
10513 | cat conftest.err >&5 | |
10514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10515 | (exit $ac_status); } && { | |
10516 | test -z "$ac_c_werror_flag" || | |
10517 | test ! -s conftest.err | |
10518 | } && test -s conftest$ac_exeext && { | |
10519 | test "$cross_compiling" = yes || | |
10520 | $as_test_x conftest$ac_exeext | |
10521 | }; then | |
10522 | ac_cv_lib_dld_shl_load=yes | |
10523 | else | |
10524 | $as_echo "$as_me: failed program was:" >&5 | |
10525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10526 | ||
10527 | ac_cv_lib_dld_shl_load=no | |
10528 | fi | |
10529 | ||
10530 | rm -rf conftest.dSYM | |
10531 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10532 | conftest$ac_exeext conftest.$ac_ext | |
10533 | LIBS=$ac_check_lib_save_LIBS | |
10534 | fi | |
10535 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10536 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10537 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10538 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10539 | else | |
10540 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10541 | $as_echo_n "checking for dlopen... " >&6; } | |
10542 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10543 | $as_echo_n "(cached) " >&6 | |
10544 | else | |
10545 | cat >conftest.$ac_ext <<_ACEOF | |
10546 | /* confdefs.h. */ | |
10547 | _ACEOF | |
10548 | cat confdefs.h >>conftest.$ac_ext | |
10549 | cat >>conftest.$ac_ext <<_ACEOF | |
10550 | /* end confdefs.h. */ | |
10551 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10553 | #define dlopen innocuous_dlopen | |
10554 | ||
10555 | /* System header to define __stub macros and hopefully few prototypes, | |
10556 | which can conflict with char dlopen (); below. | |
10557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10558 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10559 | |
8d138742 CE |
10560 | #ifdef __STDC__ |
10561 | # include <limits.h> | |
10562 | #else | |
10563 | # include <assert.h> | |
10564 | #endif | |
d9898ee8 | 10565 | |
8d138742 | 10566 | #undef dlopen |
d9898ee8 | 10567 | |
8d138742 CE |
10568 | /* Override any GCC internal prototype to avoid an error. |
10569 | Use char because int might match the return type of a GCC | |
10570 | builtin and then its argument prototype would still apply. */ | |
10571 | #ifdef __cplusplus | |
10572 | extern "C" | |
10573 | #endif | |
10574 | char dlopen (); | |
10575 | /* The GNU C library defines this for functions which it implements | |
10576 | to always fail with ENOSYS. Some functions are actually named | |
10577 | something starting with __ and the normal name is an alias. */ | |
10578 | #if defined __stub_dlopen || defined __stub___dlopen | |
10579 | choke me | |
10580 | #endif | |
d9898ee8 | 10581 | |
8d138742 CE |
10582 | int |
10583 | main () | |
10584 | { | |
10585 | return dlopen (); | |
10586 | ; | |
10587 | return 0; | |
10588 | } | |
10589 | _ACEOF | |
10590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10591 | if { (ac_try="$ac_link" | |
10592 | case "(($ac_try" in | |
10593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10594 | *) ac_try_echo=$ac_try;; | |
10595 | esac | |
10596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10597 | $as_echo "$ac_try_echo") >&5 | |
10598 | (eval "$ac_link") 2>conftest.er1 | |
10599 | ac_status=$? | |
10600 | grep -v '^ *+' conftest.er1 >conftest.err | |
10601 | rm -f conftest.er1 | |
10602 | cat conftest.err >&5 | |
10603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10604 | (exit $ac_status); } && { | |
10605 | test -z "$ac_c_werror_flag" || | |
10606 | test ! -s conftest.err | |
10607 | } && test -s conftest$ac_exeext && { | |
10608 | test "$cross_compiling" = yes || | |
10609 | $as_test_x conftest$ac_exeext | |
10610 | }; then | |
10611 | ac_cv_func_dlopen=yes | |
10612 | else | |
10613 | $as_echo "$as_me: failed program was:" >&5 | |
10614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10615 | |
8d138742 CE |
10616 | ac_cv_func_dlopen=no |
10617 | fi | |
d9898ee8 | 10618 | |
8d138742 CE |
10619 | rm -rf conftest.dSYM |
10620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10621 | conftest$ac_exeext conftest.$ac_ext | |
10622 | fi | |
10623 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10624 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10625 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10626 | lt_cv_dlopen="dlopen" | |
10627 | else | |
10628 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10629 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10630 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10631 | $as_echo_n "(cached) " >&6 | |
10632 | else | |
10633 | ac_check_lib_save_LIBS=$LIBS | |
10634 | LIBS="-ldl $LIBS" | |
10635 | cat >conftest.$ac_ext <<_ACEOF | |
10636 | /* confdefs.h. */ | |
10637 | _ACEOF | |
10638 | cat confdefs.h >>conftest.$ac_ext | |
10639 | cat >>conftest.$ac_ext <<_ACEOF | |
10640 | /* end confdefs.h. */ | |
d9898ee8 | 10641 | |
8d138742 CE |
10642 | /* Override any GCC internal prototype to avoid an error. |
10643 | Use char because int might match the return type of a GCC | |
10644 | builtin and then its argument prototype would still apply. */ | |
10645 | #ifdef __cplusplus | |
10646 | extern "C" | |
10647 | #endif | |
10648 | char dlopen (); | |
10649 | int | |
10650 | main () | |
10651 | { | |
10652 | return dlopen (); | |
10653 | ; | |
10654 | return 0; | |
10655 | } | |
10656 | _ACEOF | |
10657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10658 | if { (ac_try="$ac_link" | |
10659 | case "(($ac_try" in | |
10660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10661 | *) ac_try_echo=$ac_try;; | |
10662 | esac | |
10663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10664 | $as_echo "$ac_try_echo") >&5 | |
10665 | (eval "$ac_link") 2>conftest.er1 | |
10666 | ac_status=$? | |
10667 | grep -v '^ *+' conftest.er1 >conftest.err | |
10668 | rm -f conftest.er1 | |
10669 | cat conftest.err >&5 | |
10670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10671 | (exit $ac_status); } && { | |
10672 | test -z "$ac_c_werror_flag" || | |
10673 | test ! -s conftest.err | |
10674 | } && test -s conftest$ac_exeext && { | |
10675 | test "$cross_compiling" = yes || | |
10676 | $as_test_x conftest$ac_exeext | |
10677 | }; then | |
10678 | ac_cv_lib_dl_dlopen=yes | |
10679 | else | |
10680 | $as_echo "$as_me: failed program was:" >&5 | |
10681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10682 | |
8d138742 CE |
10683 | ac_cv_lib_dl_dlopen=no |
10684 | fi | |
d9898ee8 | 10685 | |
8d138742 CE |
10686 | rm -rf conftest.dSYM |
10687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10688 | conftest$ac_exeext conftest.$ac_ext | |
10689 | LIBS=$ac_check_lib_save_LIBS | |
10690 | fi | |
10691 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10692 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10693 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10694 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10695 | else | |
10696 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10697 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10698 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10699 | $as_echo_n "(cached) " >&6 | |
10700 | else | |
10701 | ac_check_lib_save_LIBS=$LIBS | |
10702 | LIBS="-lsvld $LIBS" | |
10703 | cat >conftest.$ac_ext <<_ACEOF | |
10704 | /* confdefs.h. */ | |
10705 | _ACEOF | |
10706 | cat confdefs.h >>conftest.$ac_ext | |
10707 | cat >>conftest.$ac_ext <<_ACEOF | |
10708 | /* end confdefs.h. */ | |
d9898ee8 | 10709 | |
8d138742 CE |
10710 | /* Override any GCC internal prototype to avoid an error. |
10711 | Use char because int might match the return type of a GCC | |
10712 | builtin and then its argument prototype would still apply. */ | |
10713 | #ifdef __cplusplus | |
10714 | extern "C" | |
10715 | #endif | |
10716 | char dlopen (); | |
10717 | int | |
10718 | main () | |
10719 | { | |
10720 | return dlopen (); | |
10721 | ; | |
10722 | return 0; | |
10723 | } | |
10724 | _ACEOF | |
10725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10726 | if { (ac_try="$ac_link" | |
10727 | case "(($ac_try" in | |
10728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10729 | *) ac_try_echo=$ac_try;; | |
10730 | esac | |
10731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10732 | $as_echo "$ac_try_echo") >&5 | |
10733 | (eval "$ac_link") 2>conftest.er1 | |
10734 | ac_status=$? | |
10735 | grep -v '^ *+' conftest.er1 >conftest.err | |
10736 | rm -f conftest.er1 | |
10737 | cat conftest.err >&5 | |
10738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10739 | (exit $ac_status); } && { | |
10740 | test -z "$ac_c_werror_flag" || | |
10741 | test ! -s conftest.err | |
10742 | } && test -s conftest$ac_exeext && { | |
10743 | test "$cross_compiling" = yes || | |
10744 | $as_test_x conftest$ac_exeext | |
10745 | }; then | |
10746 | ac_cv_lib_svld_dlopen=yes | |
10747 | else | |
10748 | $as_echo "$as_me: failed program was:" >&5 | |
10749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10750 | |
8d138742 CE |
10751 | ac_cv_lib_svld_dlopen=no |
10752 | fi | |
d9898ee8 | 10753 | |
8d138742 CE |
10754 | rm -rf conftest.dSYM |
10755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10756 | conftest$ac_exeext conftest.$ac_ext | |
10757 | LIBS=$ac_check_lib_save_LIBS | |
10758 | fi | |
10759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10760 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10761 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
10762 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10763 | else | |
10764 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10765 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10766 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10767 | $as_echo_n "(cached) " >&6 | |
10768 | else | |
10769 | ac_check_lib_save_LIBS=$LIBS | |
10770 | LIBS="-ldld $LIBS" | |
10771 | cat >conftest.$ac_ext <<_ACEOF | |
10772 | /* confdefs.h. */ | |
10773 | _ACEOF | |
10774 | cat confdefs.h >>conftest.$ac_ext | |
10775 | cat >>conftest.$ac_ext <<_ACEOF | |
10776 | /* end confdefs.h. */ | |
d9898ee8 | 10777 | |
8d138742 CE |
10778 | /* Override any GCC internal prototype to avoid an error. |
10779 | Use char because int might match the return type of a GCC | |
10780 | builtin and then its argument prototype would still apply. */ | |
10781 | #ifdef __cplusplus | |
10782 | extern "C" | |
10783 | #endif | |
10784 | char dld_link (); | |
10785 | int | |
10786 | main () | |
10787 | { | |
10788 | return dld_link (); | |
10789 | ; | |
10790 | return 0; | |
10791 | } | |
10792 | _ACEOF | |
10793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10794 | if { (ac_try="$ac_link" | |
10795 | case "(($ac_try" in | |
10796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10797 | *) ac_try_echo=$ac_try;; | |
10798 | esac | |
10799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10800 | $as_echo "$ac_try_echo") >&5 | |
10801 | (eval "$ac_link") 2>conftest.er1 | |
10802 | ac_status=$? | |
10803 | grep -v '^ *+' conftest.er1 >conftest.err | |
10804 | rm -f conftest.er1 | |
10805 | cat conftest.err >&5 | |
10806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10807 | (exit $ac_status); } && { | |
10808 | test -z "$ac_c_werror_flag" || | |
10809 | test ! -s conftest.err | |
10810 | } && test -s conftest$ac_exeext && { | |
10811 | test "$cross_compiling" = yes || | |
10812 | $as_test_x conftest$ac_exeext | |
10813 | }; then | |
10814 | ac_cv_lib_dld_dld_link=yes | |
d9898ee8 | 10815 | else |
8d138742 CE |
10816 | $as_echo "$as_me: failed program was:" >&5 |
10817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10818 | ||
10819 | ac_cv_lib_dld_dld_link=no | |
d9898ee8 | 10820 | fi |
10821 | ||
8d138742 CE |
10822 | rm -rf conftest.dSYM |
10823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10824 | conftest$ac_exeext conftest.$ac_ext | |
10825 | LIBS=$ac_check_lib_save_LIBS | |
10826 | fi | |
10827 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10828 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10829 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
10830 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10831 | fi | |
d9898ee8 | 10832 | |
d9898ee8 | 10833 | |
8d138742 | 10834 | fi |
d9898ee8 | 10835 | |
d9898ee8 | 10836 | |
8d138742 | 10837 | fi |
d9898ee8 | 10838 | |
10839 | ||
8d138742 | 10840 | fi |
d9898ee8 | 10841 | |
d9898ee8 | 10842 | |
8d138742 | 10843 | fi |
d9898ee8 | 10844 | |
d9898ee8 | 10845 | |
8d138742 | 10846 | fi |
d9898ee8 | 10847 | |
8d138742 CE |
10848 | ;; |
10849 | esac | |
d9898ee8 | 10850 | |
8d138742 CE |
10851 | if test "x$lt_cv_dlopen" != xno; then |
10852 | enable_dlopen=yes | |
10853 | else | |
10854 | enable_dlopen=no | |
10855 | fi | |
d9898ee8 | 10856 | |
8d138742 CE |
10857 | case $lt_cv_dlopen in |
10858 | dlopen) | |
10859 | save_CPPFLAGS="$CPPFLAGS" | |
10860 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 10861 | |
8d138742 CE |
10862 | save_LDFLAGS="$LDFLAGS" |
10863 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 10864 | |
8d138742 CE |
10865 | save_LIBS="$LIBS" |
10866 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 10867 | |
8d138742 CE |
10868 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10869 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10870 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10871 | $as_echo_n "(cached) " >&6 | |
10872 | else | |
10873 | if test "$cross_compiling" = yes; then : | |
10874 | lt_cv_dlopen_self=cross | |
10875 | else | |
10876 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10877 | lt_status=$lt_dlunknown | |
10878 | cat > conftest.$ac_ext <<_LT_EOF | |
10879 | #line 10879 "configure" | |
10880 | #include "confdefs.h" | |
d9898ee8 | 10881 | |
8d138742 CE |
10882 | #if HAVE_DLFCN_H |
10883 | #include <dlfcn.h> | |
10884 | #endif | |
d9898ee8 | 10885 | |
8d138742 | 10886 | #include <stdio.h> |
d9898ee8 | 10887 | |
8d138742 CE |
10888 | #ifdef RTLD_GLOBAL |
10889 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10890 | #else | |
10891 | # ifdef DL_GLOBAL | |
10892 | # define LT_DLGLOBAL DL_GLOBAL | |
10893 | # else | |
10894 | # define LT_DLGLOBAL 0 | |
10895 | # endif | |
10896 | #endif | |
d9898ee8 | 10897 | |
8d138742 CE |
10898 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10899 | find out it does not work in some platform. */ | |
10900 | #ifndef LT_DLLAZY_OR_NOW | |
10901 | # ifdef RTLD_LAZY | |
10902 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10903 | # else | |
10904 | # ifdef DL_LAZY | |
10905 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10906 | # else | |
10907 | # ifdef RTLD_NOW | |
10908 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10909 | # else | |
10910 | # ifdef DL_NOW | |
10911 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10912 | # else | |
10913 | # define LT_DLLAZY_OR_NOW 0 | |
10914 | # endif | |
10915 | # endif | |
10916 | # endif | |
10917 | # endif | |
10918 | #endif | |
d9898ee8 | 10919 | |
8d138742 CE |
10920 | void fnord() { int i=42;} |
10921 | int main () | |
10922 | { | |
10923 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10924 | int status = $lt_dlunknown; | |
d9898ee8 | 10925 | |
8d138742 CE |
10926 | if (self) |
10927 | { | |
10928 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10929 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10930 | /* dlclose (self); */ | |
10931 | } | |
10932 | else | |
10933 | puts (dlerror ()); | |
d9898ee8 | 10934 | |
8d138742 CE |
10935 | return status; |
10936 | } | |
10937 | _LT_EOF | |
10938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10939 | (eval $ac_link) 2>&5 | |
10940 | ac_status=$? | |
10941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10942 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10943 | (./conftest; exit; ) >&5 2>/dev/null | |
10944 | lt_status=$? | |
10945 | case x$lt_status in | |
10946 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10947 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10948 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10949 | esac | |
10950 | else : | |
10951 | # compilation failed | |
10952 | lt_cv_dlopen_self=no | |
10953 | fi | |
10954 | fi | |
10955 | rm -fr conftest* | |
d9898ee8 | 10956 | |
d9898ee8 | 10957 | |
8d138742 CE |
10958 | fi |
10959 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10960 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 10961 | |
8d138742 CE |
10962 | if test "x$lt_cv_dlopen_self" = xyes; then |
10963 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10964 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10965 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10966 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10967 | $as_echo_n "(cached) " >&6 | |
10968 | else | |
10969 | if test "$cross_compiling" = yes; then : | |
10970 | lt_cv_dlopen_self_static=cross | |
10971 | else | |
10972 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10973 | lt_status=$lt_dlunknown | |
10974 | cat > conftest.$ac_ext <<_LT_EOF | |
10975 | #line 10975 "configure" | |
10976 | #include "confdefs.h" | |
d9898ee8 | 10977 | |
8d138742 CE |
10978 | #if HAVE_DLFCN_H |
10979 | #include <dlfcn.h> | |
10980 | #endif | |
d9898ee8 | 10981 | |
8d138742 | 10982 | #include <stdio.h> |
d9898ee8 | 10983 | |
8d138742 CE |
10984 | #ifdef RTLD_GLOBAL |
10985 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10986 | #else | |
10987 | # ifdef DL_GLOBAL | |
10988 | # define LT_DLGLOBAL DL_GLOBAL | |
10989 | # else | |
10990 | # define LT_DLGLOBAL 0 | |
10991 | # endif | |
10992 | #endif | |
d9898ee8 | 10993 | |
8d138742 CE |
10994 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10995 | find out it does not work in some platform. */ | |
10996 | #ifndef LT_DLLAZY_OR_NOW | |
10997 | # ifdef RTLD_LAZY | |
10998 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10999 | # else | |
11000 | # ifdef DL_LAZY | |
11001 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11002 | # else | |
11003 | # ifdef RTLD_NOW | |
11004 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11005 | # else | |
11006 | # ifdef DL_NOW | |
11007 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11008 | # else | |
11009 | # define LT_DLLAZY_OR_NOW 0 | |
11010 | # endif | |
11011 | # endif | |
11012 | # endif | |
11013 | # endif | |
11014 | #endif | |
d9898ee8 | 11015 | |
8d138742 CE |
11016 | void fnord() { int i=42;} |
11017 | int main () | |
11018 | { | |
11019 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11020 | int status = $lt_dlunknown; | |
d9898ee8 | 11021 | |
8d138742 CE |
11022 | if (self) |
11023 | { | |
11024 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11025 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11026 | /* dlclose (self); */ | |
11027 | } | |
11028 | else | |
11029 | puts (dlerror ()); | |
d9898ee8 | 11030 | |
8d138742 CE |
11031 | return status; |
11032 | } | |
11033 | _LT_EOF | |
11034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11035 | (eval $ac_link) 2>&5 | |
11036 | ac_status=$? | |
11037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11039 | (./conftest; exit; ) >&5 2>/dev/null | |
11040 | lt_status=$? | |
11041 | case x$lt_status in | |
11042 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11043 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11044 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11045 | esac | |
11046 | else : | |
11047 | # compilation failed | |
11048 | lt_cv_dlopen_self_static=no | |
11049 | fi | |
11050 | fi | |
11051 | rm -fr conftest* | |
d9898ee8 | 11052 | |
d9898ee8 | 11053 | |
8d138742 CE |
11054 | fi |
11055 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11056 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11057 | fi | |
d9898ee8 | 11058 | |
8d138742 CE |
11059 | CPPFLAGS="$save_CPPFLAGS" |
11060 | LDFLAGS="$save_LDFLAGS" | |
11061 | LIBS="$save_LIBS" | |
11062 | ;; | |
11063 | esac | |
d9898ee8 | 11064 | |
8d138742 CE |
11065 | case $lt_cv_dlopen_self in |
11066 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11067 | *) enable_dlopen_self=unknown ;; | |
11068 | esac | |
d9898ee8 | 11069 | |
8d138742 CE |
11070 | case $lt_cv_dlopen_self_static in |
11071 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11072 | *) enable_dlopen_self_static=unknown ;; | |
11073 | esac | |
11074 | fi | |
d9898ee8 | 11075 | |
d9898ee8 | 11076 | |
d9898ee8 | 11077 | |
d9898ee8 | 11078 | |
d9898ee8 | 11079 | |
d9898ee8 | 11080 | |
d9898ee8 | 11081 | |
d9898ee8 | 11082 | |
d9898ee8 | 11083 | |
d9898ee8 | 11084 | |
d9898ee8 | 11085 | |
d9898ee8 | 11086 | |
d9898ee8 | 11087 | |
d9898ee8 | 11088 | |
d9898ee8 | 11089 | |
d9898ee8 | 11090 | |
d9898ee8 | 11091 | |
8d138742 CE |
11092 | striplib= |
11093 | old_striplib= | |
11094 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11095 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11096 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11097 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11098 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11099 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11100 | $as_echo "yes" >&6; } | |
11101 | else | |
11102 | # FIXME - insert some real tests, host_os isn't really good enough | |
11103 | case $host_os in | |
11104 | darwin*) | |
11105 | if test -n "$STRIP" ; then | |
11106 | striplib="$STRIP -x" | |
11107 | old_striplib="$STRIP -S" | |
11108 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11109 | $as_echo "yes" >&6; } | |
11110 | else | |
11111 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11112 | $as_echo "no" >&6; } | |
11113 | fi | |
11114 | ;; | |
11115 | *) | |
11116 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11117 | $as_echo "no" >&6; } | |
11118 | ;; | |
11119 | esac | |
11120 | fi | |
d9898ee8 | 11121 | |
d9898ee8 | 11122 | |
d9898ee8 | 11123 | |
d9898ee8 | 11124 | |
d9898ee8 | 11125 | |
d9898ee8 | 11126 | |
d9898ee8 | 11127 | |
d9898ee8 | 11128 | |
d9898ee8 | 11129 | |
d9898ee8 | 11130 | |
d9898ee8 | 11131 | |
d9898ee8 | 11132 | |
8d138742 CE |
11133 | # Report which library types will actually be built |
11134 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11135 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11136 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11137 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 11138 | |
8d138742 CE |
11139 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11140 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11141 | test "$can_build_shared" = "no" && enable_shared=no | |
d9898ee8 | 11142 | |
8d138742 CE |
11143 | # On AIX, shared libraries and static libraries use the same namespace, and |
11144 | # are all built from PIC. | |
11145 | case $host_os in | |
11146 | aix3*) | |
11147 | test "$enable_shared" = yes && enable_static=no | |
11148 | if test -n "$RANLIB"; then | |
11149 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11150 | postinstall_cmds='$RANLIB $lib' | |
11151 | fi | |
11152 | ;; | |
d9898ee8 | 11153 | |
8d138742 CE |
11154 | aix[4-9]*) |
11155 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11156 | test "$enable_shared" = yes && enable_static=no | |
11157 | fi | |
11158 | ;; | |
11159 | esac | |
11160 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11161 | $as_echo "$enable_shared" >&6; } | |
d9898ee8 | 11162 | |
8d138742 CE |
11163 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11164 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11165 | # Make sure either enable_shared or enable_static is yes. | |
11166 | test "$enable_shared" = yes || enable_static=yes | |
11167 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11168 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 11169 | |
d9898ee8 | 11170 | |
d9898ee8 | 11171 | |
d9898ee8 | 11172 | |
8d138742 CE |
11173 | fi |
11174 | ac_ext=c | |
11175 | ac_cpp='$CPP $CPPFLAGS' | |
11176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 11179 | |
8d138742 | 11180 | CC="$lt_save_CC" |
d9898ee8 | 11181 | |
d9898ee8 | 11182 | |
d9898ee8 | 11183 | |
d9898ee8 | 11184 | |
d9898ee8 | 11185 | |
d9898ee8 | 11186 | |
d9898ee8 | 11187 | |
d9898ee8 | 11188 | |
d9898ee8 | 11189 | |
d9898ee8 | 11190 | |
d9898ee8 | 11191 | |
d9898ee8 | 11192 | |
d9898ee8 | 11193 | |
8d138742 | 11194 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11195 | |
d9898ee8 | 11196 | |
d9898ee8 | 11197 | |
d9898ee8 | 11198 | |
8d138742 | 11199 | # Only expand once: |
d9898ee8 | 11200 | |
d9898ee8 | 11201 | |
d9898ee8 | 11202 | |
8d138742 CE |
11203 | if test "$GCC" = yes |
11204 | then | |
11205 | CFLAGS="-Wall $CFLAGS" | |
11206 | fi | |
d9898ee8 | 11207 | |
8d138742 | 11208 | CFLAGS="$CFLAGS -I$srcdir/.. -I.." |
d9898ee8 | 11209 | |
d9898ee8 | 11210 | |
8d138742 CE |
11211 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
11212 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
11213 | if test "${ac_cv_header_stdc+set}" = set; then | |
11214 | $as_echo_n "(cached) " >&6 | |
11215 | else | |
11216 | cat >conftest.$ac_ext <<_ACEOF | |
11217 | /* confdefs.h. */ | |
11218 | _ACEOF | |
11219 | cat confdefs.h >>conftest.$ac_ext | |
11220 | cat >>conftest.$ac_ext <<_ACEOF | |
11221 | /* end confdefs.h. */ | |
11222 | #include <stdlib.h> | |
11223 | #include <stdarg.h> | |
11224 | #include <string.h> | |
11225 | #include <float.h> | |
d9898ee8 | 11226 | |
8d138742 CE |
11227 | int |
11228 | main () | |
11229 | { | |
d9898ee8 | 11230 | |
8d138742 CE |
11231 | ; |
11232 | return 0; | |
11233 | } | |
11234 | _ACEOF | |
11235 | rm -f conftest.$ac_objext | |
11236 | if { (ac_try="$ac_compile" | |
11237 | case "(($ac_try" in | |
11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11239 | *) ac_try_echo=$ac_try;; | |
11240 | esac | |
11241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11242 | $as_echo "$ac_try_echo") >&5 | |
11243 | (eval "$ac_compile") 2>conftest.er1 | |
11244 | ac_status=$? | |
11245 | grep -v '^ *+' conftest.er1 >conftest.err | |
11246 | rm -f conftest.er1 | |
11247 | cat conftest.err >&5 | |
11248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11249 | (exit $ac_status); } && { | |
11250 | test -z "$ac_c_werror_flag" || | |
11251 | test ! -s conftest.err | |
11252 | } && test -s conftest.$ac_objext; then | |
11253 | ac_cv_header_stdc=yes | |
11254 | else | |
11255 | $as_echo "$as_me: failed program was:" >&5 | |
11256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11257 | |
8d138742 CE |
11258 | ac_cv_header_stdc=no |
11259 | fi | |
d9898ee8 | 11260 | |
8d138742 | 11261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11262 | |
8d138742 CE |
11263 | if test $ac_cv_header_stdc = yes; then |
11264 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11265 | cat >conftest.$ac_ext <<_ACEOF | |
11266 | /* confdefs.h. */ | |
11267 | _ACEOF | |
11268 | cat confdefs.h >>conftest.$ac_ext | |
11269 | cat >>conftest.$ac_ext <<_ACEOF | |
11270 | /* end confdefs.h. */ | |
11271 | #include <string.h> | |
d9898ee8 | 11272 | |
8d138742 CE |
11273 | _ACEOF |
11274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11275 | $EGREP "memchr" >/dev/null 2>&1; then | |
11276 | : | |
11277 | else | |
11278 | ac_cv_header_stdc=no | |
11279 | fi | |
11280 | rm -f conftest* | |
d9898ee8 | 11281 | |
8d138742 | 11282 | fi |
d9898ee8 | 11283 | |
8d138742 CE |
11284 | if test $ac_cv_header_stdc = yes; then |
11285 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11286 | cat >conftest.$ac_ext <<_ACEOF | |
11287 | /* confdefs.h. */ | |
11288 | _ACEOF | |
11289 | cat confdefs.h >>conftest.$ac_ext | |
11290 | cat >>conftest.$ac_ext <<_ACEOF | |
11291 | /* end confdefs.h. */ | |
11292 | #include <stdlib.h> | |
d9898ee8 | 11293 | |
8d138742 CE |
11294 | _ACEOF |
11295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11296 | $EGREP "free" >/dev/null 2>&1; then | |
11297 | : | |
11298 | else | |
11299 | ac_cv_header_stdc=no | |
11300 | fi | |
11301 | rm -f conftest* | |
d9898ee8 | 11302 | |
8d138742 | 11303 | fi |
d9898ee8 | 11304 | |
8d138742 CE |
11305 | if test $ac_cv_header_stdc = yes; then |
11306 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11307 | if test "$cross_compiling" = yes; then | |
11308 | : | |
11309 | else | |
11310 | cat >conftest.$ac_ext <<_ACEOF | |
11311 | /* confdefs.h. */ | |
11312 | _ACEOF | |
11313 | cat confdefs.h >>conftest.$ac_ext | |
11314 | cat >>conftest.$ac_ext <<_ACEOF | |
11315 | /* end confdefs.h. */ | |
11316 | #include <ctype.h> | |
11317 | #include <stdlib.h> | |
11318 | #if ((' ' & 0x0FF) == 0x020) | |
11319 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11320 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11321 | #else | |
11322 | # define ISLOWER(c) \ | |
11323 | (('a' <= (c) && (c) <= 'i') \ | |
11324 | || ('j' <= (c) && (c) <= 'r') \ | |
11325 | || ('s' <= (c) && (c) <= 'z')) | |
11326 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11327 | #endif | |
d9898ee8 | 11328 | |
8d138742 CE |
11329 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
11330 | int | |
11331 | main () | |
11332 | { | |
11333 | int i; | |
11334 | for (i = 0; i < 256; i++) | |
11335 | if (XOR (islower (i), ISLOWER (i)) | |
11336 | || toupper (i) != TOUPPER (i)) | |
11337 | return 2; | |
11338 | return 0; | |
11339 | } | |
11340 | _ACEOF | |
11341 | rm -f conftest$ac_exeext | |
11342 | if { (ac_try="$ac_link" | |
11343 | case "(($ac_try" in | |
11344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11345 | *) ac_try_echo=$ac_try;; | |
11346 | esac | |
11347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11348 | $as_echo "$ac_try_echo") >&5 | |
11349 | (eval "$ac_link") 2>&5 | |
11350 | ac_status=$? | |
11351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11352 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11353 | { (case "(($ac_try" in | |
11354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11355 | *) ac_try_echo=$ac_try;; | |
11356 | esac | |
11357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11358 | $as_echo "$ac_try_echo") >&5 | |
11359 | (eval "$ac_try") 2>&5 | |
11360 | ac_status=$? | |
11361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11362 | (exit $ac_status); }; }; then | |
11363 | : | |
11364 | else | |
11365 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
11366 | $as_echo "$as_me: failed program was:" >&5 | |
11367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11368 | |
8d138742 CE |
11369 | ( exit $ac_status ) |
11370 | ac_cv_header_stdc=no | |
11371 | fi | |
11372 | rm -rf conftest.dSYM | |
11373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11374 | fi | |
d9898ee8 | 11375 | |
d9898ee8 | 11376 | |
8d138742 CE |
11377 | fi |
11378 | fi | |
11379 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11380 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11381 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 11382 | |
8d138742 CE |
11383 | cat >>confdefs.h <<\_ACEOF |
11384 | #define STDC_HEADERS 1 | |
11385 | _ACEOF | |
d9898ee8 | 11386 | |
d9898ee8 | 11387 | fi |
11388 | ||
11389 | ||
d9898ee8 | 11390 | |
8d138742 CE |
11391 | for ac_header in sys/types.h |
11392 | do | |
11393 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11394 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11395 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11396 | $as_echo_n "checking for $ac_header... " >&6; } | |
11397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11398 | $as_echo_n "(cached) " >&6 | |
11399 | fi | |
11400 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11401 | $as_echo "$as_val"'` | |
11402 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11403 | $as_echo "$ac_res" >&6; } | |
11404 | else | |
11405 | # Is the header compilable? | |
11406 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11407 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11408 | cat >conftest.$ac_ext <<_ACEOF | |
11409 | /* confdefs.h. */ | |
11410 | _ACEOF | |
11411 | cat confdefs.h >>conftest.$ac_ext | |
11412 | cat >>conftest.$ac_ext <<_ACEOF | |
11413 | /* end confdefs.h. */ | |
11414 | $ac_includes_default | |
11415 | #include <$ac_header> | |
11416 | _ACEOF | |
11417 | rm -f conftest.$ac_objext | |
11418 | if { (ac_try="$ac_compile" | |
11419 | case "(($ac_try" in | |
11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11421 | *) ac_try_echo=$ac_try;; | |
11422 | esac | |
11423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11424 | $as_echo "$ac_try_echo") >&5 | |
11425 | (eval "$ac_compile") 2>conftest.er1 | |
11426 | ac_status=$? | |
11427 | grep -v '^ *+' conftest.er1 >conftest.err | |
11428 | rm -f conftest.er1 | |
11429 | cat conftest.err >&5 | |
11430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11431 | (exit $ac_status); } && { | |
11432 | test -z "$ac_c_werror_flag" || | |
11433 | test ! -s conftest.err | |
11434 | } && test -s conftest.$ac_objext; then | |
11435 | ac_header_compiler=yes | |
11436 | else | |
11437 | $as_echo "$as_me: failed program was:" >&5 | |
11438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11439 | |
8d138742 CE |
11440 | ac_header_compiler=no |
11441 | fi | |
d9898ee8 | 11442 | |
8d138742 CE |
11443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11444 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11445 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 11446 | |
8d138742 CE |
11447 | # Is the header present? |
11448 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11449 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11450 | cat >conftest.$ac_ext <<_ACEOF | |
11451 | /* confdefs.h. */ | |
11452 | _ACEOF | |
11453 | cat confdefs.h >>conftest.$ac_ext | |
11454 | cat >>conftest.$ac_ext <<_ACEOF | |
11455 | /* end confdefs.h. */ | |
11456 | #include <$ac_header> | |
11457 | _ACEOF | |
11458 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11459 | case "(($ac_try" in | |
11460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11461 | *) ac_try_echo=$ac_try;; | |
11462 | esac | |
11463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11464 | $as_echo "$ac_try_echo") >&5 | |
11465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11466 | ac_status=$? | |
11467 | grep -v '^ *+' conftest.er1 >conftest.err | |
11468 | rm -f conftest.er1 | |
11469 | cat conftest.err >&5 | |
11470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11471 | (exit $ac_status); } >/dev/null && { | |
11472 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11473 | test ! -s conftest.err | |
11474 | }; then | |
11475 | ac_header_preproc=yes | |
11476 | else | |
11477 | $as_echo "$as_me: failed program was:" >&5 | |
11478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11479 | |
8d138742 | 11480 | ac_header_preproc=no |
d9898ee8 | 11481 | fi |
11482 | ||
8d138742 CE |
11483 | rm -f conftest.err conftest.$ac_ext |
11484 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11485 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 11486 | |
8d138742 CE |
11487 | # So? What about this header? |
11488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11489 | yes:no: ) | |
11490 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11491 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11492 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11493 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11494 | ac_header_preproc=yes | |
11495 | ;; | |
11496 | no:yes:* ) | |
11497 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11498 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11499 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11500 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11501 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11502 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11503 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11504 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11505 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11506 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11507 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11508 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11509 | ( cat <<\_ASBOX | |
11510 | ## -------------------------------------------------- ## | |
11511 | ## Report this to courier-users@lists.sourceforge.net ## | |
11512 | ## -------------------------------------------------- ## | |
11513 | _ASBOX | |
11514 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11515 | ;; | |
11516 | esac | |
11517 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11518 | $as_echo_n "checking for $ac_header... " >&6; } | |
11519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11520 | $as_echo_n "(cached) " >&6 | |
11521 | else | |
11522 | eval "$as_ac_Header=\$ac_header_preproc" | |
11523 | fi | |
11524 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11525 | $as_echo "$as_val"'` | |
11526 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11527 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 11528 | |
8d138742 CE |
11529 | fi |
11530 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11531 | $as_echo "$as_val"'` | |
11532 | if test "x$as_val" = x""yes; then | |
11533 | cat >>confdefs.h <<_ACEOF | |
11534 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11535 | _ACEOF | |
d9898ee8 | 11536 | |
8d138742 | 11537 | fi |
d9898ee8 | 11538 | |
8d138742 | 11539 | done |
d9898ee8 | 11540 | |
11541 | ||
11542 | ||
11543 | ||
8d138742 CE |
11544 | # Check whether --with-int32 was given. |
11545 | if test "${with_int32+set}" = set; then | |
11546 | withval=$with_int32; int32="$withval" | |
11547 | else | |
d9898ee8 | 11548 | |
11549 | ||
8d138742 CE |
11550 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11551 | $as_echo_n "checking for uint32_t... " >&6; } | |
d9898ee8 | 11552 | |
8d138742 CE |
11553 | cat >conftest.$ac_ext <<_ACEOF |
11554 | /* confdefs.h. */ | |
11555 | _ACEOF | |
11556 | cat confdefs.h >>conftest.$ac_ext | |
11557 | cat >>conftest.$ac_ext <<_ACEOF | |
11558 | /* end confdefs.h. */ | |
d9898ee8 | 11559 | |
8d138742 CE |
11560 | #if HAVE_SYS_TYPES_H |
11561 | #include <sys/types.h> | |
11562 | #endif | |
d9898ee8 | 11563 | |
8d138742 CE |
11564 | int |
11565 | main () | |
11566 | { | |
d9898ee8 | 11567 | |
8d138742 | 11568 | uint32_t i=0; |
d9898ee8 | 11569 | |
8d138742 CE |
11570 | ; |
11571 | return 0; | |
11572 | } | |
11573 | _ACEOF | |
11574 | rm -f conftest.$ac_objext | |
11575 | if { (ac_try="$ac_compile" | |
11576 | case "(($ac_try" in | |
11577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11578 | *) ac_try_echo=$ac_try;; | |
11579 | esac | |
11580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11581 | $as_echo "$ac_try_echo") >&5 | |
11582 | (eval "$ac_compile") 2>conftest.er1 | |
11583 | ac_status=$? | |
11584 | grep -v '^ *+' conftest.er1 >conftest.err | |
11585 | rm -f conftest.er1 | |
11586 | cat conftest.err >&5 | |
11587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11588 | (exit $ac_status); } && { | |
11589 | test -z "$ac_c_werror_flag" || | |
11590 | test ! -s conftest.err | |
11591 | } && test -s conftest.$ac_objext; then | |
11592 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11593 | $as_echo "yes" >&6; } ; int32="uint32_t" | |
11594 | else | |
11595 | $as_echo "$as_me: failed program was:" >&5 | |
11596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11597 | |
11598 | ||
11599 | ||
8d138742 CE |
11600 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11601 | $as_echo "no" >&6; } | |
11602 | { $as_echo "$as_me:$LINENO: checking for u_int_32_t" >&5 | |
11603 | $as_echo_n "checking for u_int_32_t... " >&6; } | |
d9898ee8 | 11604 | |
8d138742 CE |
11605 | cat >conftest.$ac_ext <<_ACEOF |
11606 | /* confdefs.h. */ | |
11607 | _ACEOF | |
11608 | cat confdefs.h >>conftest.$ac_ext | |
11609 | cat >>conftest.$ac_ext <<_ACEOF | |
11610 | /* end confdefs.h. */ | |
d9898ee8 | 11611 | |
8d138742 CE |
11612 | #if HAVE_SYS_TYPES_H |
11613 | #include <sys/types.h> | |
11614 | #endif | |
d9898ee8 | 11615 | |
8d138742 CE |
11616 | int |
11617 | main () | |
11618 | { | |
d9898ee8 | 11619 | |
8d138742 | 11620 | u_int32_t i=0; |
d9898ee8 | 11621 | |
8d138742 CE |
11622 | ; |
11623 | return 0; | |
11624 | } | |
11625 | _ACEOF | |
11626 | rm -f conftest.$ac_objext | |
11627 | if { (ac_try="$ac_compile" | |
11628 | case "(($ac_try" in | |
11629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11630 | *) ac_try_echo=$ac_try;; | |
11631 | esac | |
11632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11633 | $as_echo "$ac_try_echo") >&5 | |
11634 | (eval "$ac_compile") 2>conftest.er1 | |
11635 | ac_status=$? | |
11636 | grep -v '^ *+' conftest.er1 >conftest.err | |
11637 | rm -f conftest.er1 | |
11638 | cat conftest.err >&5 | |
11639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11640 | (exit $ac_status); } && { | |
11641 | test -z "$ac_c_werror_flag" || | |
11642 | test ! -s conftest.err | |
11643 | } && test -s conftest.$ac_objext; then | |
11644 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11645 | $as_echo "yes" >&6; }; int32="u_int32_t" | |
11646 | else | |
11647 | $as_echo "$as_me: failed program was:" >&5 | |
11648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11649 | |
d9898ee8 | 11650 | |
d9898ee8 | 11651 | |
8d138742 CE |
11652 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11653 | $as_echo "no" >&6; } | |
d9898ee8 | 11654 | |
8d138742 CE |
11655 | # The cast to long int works around a bug in the HP C Compiler |
11656 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11657 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11658 | # This bug is HP SR number 8606223364. | |
11659 | { $as_echo "$as_me:$LINENO: checking size of unsigned" >&5 | |
11660 | $as_echo_n "checking size of unsigned... " >&6; } | |
11661 | if test "${ac_cv_sizeof_unsigned+set}" = set; then | |
11662 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 11663 | else |
8d138742 CE |
11664 | if test "$cross_compiling" = yes; then |
11665 | # Depending upon the size, compute the lo and hi bounds. | |
11666 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 11667 | /* confdefs.h. */ |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
8d138742 CE |
11672 | $ac_includes_default |
11673 | int | |
11674 | main () | |
11675 | { | |
11676 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)]; | |
11677 | test_array [0] = 0 | |
d9898ee8 | 11678 | |
8d138742 CE |
11679 | ; |
11680 | return 0; | |
11681 | } | |
11682 | _ACEOF | |
11683 | rm -f conftest.$ac_objext | |
11684 | if { (ac_try="$ac_compile" | |
11685 | case "(($ac_try" in | |
11686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11687 | *) ac_try_echo=$ac_try;; | |
11688 | esac | |
11689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11690 | $as_echo "$ac_try_echo") >&5 | |
11691 | (eval "$ac_compile") 2>conftest.er1 | |
11692 | ac_status=$? | |
11693 | grep -v '^ *+' conftest.er1 >conftest.err | |
11694 | rm -f conftest.er1 | |
11695 | cat conftest.err >&5 | |
11696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11697 | (exit $ac_status); } && { | |
11698 | test -z "$ac_c_werror_flag" || | |
11699 | test ! -s conftest.err | |
11700 | } && test -s conftest.$ac_objext; then | |
11701 | ac_lo=0 ac_mid=0 | |
11702 | while :; do | |
11703 | cat >conftest.$ac_ext <<_ACEOF | |
11704 | /* confdefs.h. */ | |
11705 | _ACEOF | |
11706 | cat confdefs.h >>conftest.$ac_ext | |
11707 | cat >>conftest.$ac_ext <<_ACEOF | |
11708 | /* end confdefs.h. */ | |
11709 | $ac_includes_default | |
d9898ee8 | 11710 | int |
11711 | main () | |
11712 | { | |
8d138742 CE |
11713 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)]; |
11714 | test_array [0] = 0 | |
d9898ee8 | 11715 | |
11716 | ; | |
11717 | return 0; | |
11718 | } | |
11719 | _ACEOF | |
11720 | rm -f conftest.$ac_objext | |
dd184caf | 11721 | if { (ac_try="$ac_compile" |
11722 | case "(($ac_try" in | |
11723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11724 | *) ac_try_echo=$ac_try;; | |
11725 | esac | |
8d138742 CE |
11726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11727 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 11728 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 11729 | ac_status=$? |
11730 | grep -v '^ *+' conftest.er1 >conftest.err | |
11731 | rm -f conftest.er1 | |
11732 | cat conftest.err >&5 | |
8d138742 | 11733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 11734 | (exit $ac_status); } && { |
11735 | test -z "$ac_c_werror_flag" || | |
11736 | test ! -s conftest.err | |
11737 | } && test -s conftest.$ac_objext; then | |
8d138742 | 11738 | ac_hi=$ac_mid; break |
d9898ee8 | 11739 | else |
8d138742 | 11740 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 11741 | sed 's/^/| /' conftest.$ac_ext >&5 |
11742 | ||
8d138742 CE |
11743 | ac_lo=`expr $ac_mid + 1` |
11744 | if test $ac_lo -le $ac_mid; then | |
11745 | ac_lo= ac_hi= | |
11746 | break | |
11747 | fi | |
11748 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
d9898ee8 | 11749 | fi |
dd184caf | 11750 | |
11751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
11752 | done |
11753 | else | |
11754 | $as_echo "$as_me: failed program was:" >&5 | |
11755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11756 | |
8d138742 | 11757 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 11758 | /* confdefs.h. */ |
11759 | _ACEOF | |
11760 | cat confdefs.h >>conftest.$ac_ext | |
11761 | cat >>conftest.$ac_ext <<_ACEOF | |
11762 | /* end confdefs.h. */ | |
8d138742 CE |
11763 | $ac_includes_default |
11764 | int | |
11765 | main () | |
11766 | { | |
11767 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)]; | |
11768 | test_array [0] = 0 | |
d9898ee8 | 11769 | |
8d138742 CE |
11770 | ; |
11771 | return 0; | |
11772 | } | |
d9898ee8 | 11773 | _ACEOF |
8d138742 CE |
11774 | rm -f conftest.$ac_objext |
11775 | if { (ac_try="$ac_compile" | |
11776 | case "(($ac_try" in | |
11777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11778 | *) ac_try_echo=$ac_try;; | |
11779 | esac | |
11780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11781 | $as_echo "$ac_try_echo") >&5 | |
11782 | (eval "$ac_compile") 2>conftest.er1 | |
11783 | ac_status=$? | |
11784 | grep -v '^ *+' conftest.er1 >conftest.err | |
11785 | rm -f conftest.er1 | |
11786 | cat conftest.err >&5 | |
11787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11788 | (exit $ac_status); } && { | |
11789 | test -z "$ac_c_werror_flag" || | |
11790 | test ! -s conftest.err | |
11791 | } && test -s conftest.$ac_objext; then | |
11792 | ac_hi=-1 ac_mid=-1 | |
11793 | while :; do | |
11794 | cat >conftest.$ac_ext <<_ACEOF | |
11795 | /* confdefs.h. */ | |
11796 | _ACEOF | |
11797 | cat confdefs.h >>conftest.$ac_ext | |
11798 | cat >>conftest.$ac_ext <<_ACEOF | |
11799 | /* end confdefs.h. */ | |
11800 | $ac_includes_default | |
11801 | int | |
11802 | main () | |
11803 | { | |
11804 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)]; | |
11805 | test_array [0] = 0 | |
11806 | ||
11807 | ; | |
11808 | return 0; | |
11809 | } | |
11810 | _ACEOF | |
11811 | rm -f conftest.$ac_objext | |
11812 | if { (ac_try="$ac_compile" | |
11813 | case "(($ac_try" in | |
11814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11815 | *) ac_try_echo=$ac_try;; | |
11816 | esac | |
11817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11818 | $as_echo "$ac_try_echo") >&5 | |
11819 | (eval "$ac_compile") 2>conftest.er1 | |
11820 | ac_status=$? | |
11821 | grep -v '^ *+' conftest.er1 >conftest.err | |
11822 | rm -f conftest.er1 | |
11823 | cat conftest.err >&5 | |
11824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11825 | (exit $ac_status); } && { | |
11826 | test -z "$ac_c_werror_flag" || | |
11827 | test ! -s conftest.err | |
11828 | } && test -s conftest.$ac_objext; then | |
11829 | ac_lo=$ac_mid; break | |
d9898ee8 | 11830 | else |
8d138742 CE |
11831 | $as_echo "$as_me: failed program was:" >&5 |
11832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11833 | ||
11834 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11835 | if test $ac_mid -le $ac_hi; then | |
11836 | ac_lo= ac_hi= | |
11837 | break | |
11838 | fi | |
11839 | ac_mid=`expr 2 '*' $ac_mid` | |
11840 | fi | |
11841 | ||
11842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11843 | done | |
11844 | else | |
11845 | $as_echo "$as_me: failed program was:" >&5 | |
11846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11847 | ||
11848 | ac_lo= ac_hi= | |
d9898ee8 | 11849 | fi |
d9898ee8 | 11850 | |
8d138742 | 11851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11852 | fi |
11853 | ||
8d138742 CE |
11854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11855 | # Binary search between lo and hi bounds. | |
11856 | while test "x$ac_lo" != "x$ac_hi"; do | |
11857 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
d9898ee8 | 11858 | cat >conftest.$ac_ext <<_ACEOF |
11859 | /* confdefs.h. */ | |
11860 | _ACEOF | |
11861 | cat confdefs.h >>conftest.$ac_ext | |
11862 | cat >>conftest.$ac_ext <<_ACEOF | |
11863 | /* end confdefs.h. */ | |
8d138742 CE |
11864 | $ac_includes_default |
11865 | int | |
11866 | main () | |
11867 | { | |
11868 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)]; | |
11869 | test_array [0] = 0 | |
d9898ee8 | 11870 | |
8d138742 CE |
11871 | ; |
11872 | return 0; | |
11873 | } | |
d9898ee8 | 11874 | _ACEOF |
8d138742 CE |
11875 | rm -f conftest.$ac_objext |
11876 | if { (ac_try="$ac_compile" | |
11877 | case "(($ac_try" in | |
11878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11879 | *) ac_try_echo=$ac_try;; | |
11880 | esac | |
11881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11882 | $as_echo "$ac_try_echo") >&5 | |
11883 | (eval "$ac_compile") 2>conftest.er1 | |
11884 | ac_status=$? | |
11885 | grep -v '^ *+' conftest.er1 >conftest.err | |
11886 | rm -f conftest.er1 | |
11887 | cat conftest.err >&5 | |
11888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11889 | (exit $ac_status); } && { | |
11890 | test -z "$ac_c_werror_flag" || | |
11891 | test ! -s conftest.err | |
11892 | } && test -s conftest.$ac_objext; then | |
11893 | ac_hi=$ac_mid | |
11894 | else | |
11895 | $as_echo "$as_me: failed program was:" >&5 | |
11896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11897 | |
8d138742 | 11898 | ac_lo=`expr '(' $ac_mid ')' + 1` |
d9898ee8 | 11899 | fi |
11900 | ||
8d138742 CE |
11901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11902 | done | |
11903 | case $ac_lo in | |
11904 | ?*) ac_cv_sizeof_unsigned=$ac_lo;; | |
11905 | '') if test "$ac_cv_type_unsigned" = yes; then | |
11906 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11908 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned) | |
11909 | See \`config.log' for more details." >&5 | |
11910 | $as_echo "$as_me: error: cannot compute sizeof (unsigned) | |
11911 | See \`config.log' for more details." >&2;} | |
11912 | { (exit 77); exit 77; }; }; } | |
11913 | else | |
11914 | ac_cv_sizeof_unsigned=0 | |
11915 | fi ;; | |
11916 | esac | |
d9898ee8 | 11917 | else |
11918 | cat >conftest.$ac_ext <<_ACEOF | |
11919 | /* confdefs.h. */ | |
11920 | _ACEOF | |
11921 | cat confdefs.h >>conftest.$ac_ext | |
11922 | cat >>conftest.$ac_ext <<_ACEOF | |
11923 | /* end confdefs.h. */ | |
8d138742 CE |
11924 | $ac_includes_default |
11925 | static long int longval () { return (long int) (sizeof (unsigned)); } | |
11926 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); } | |
11927 | #include <stdio.h> | |
dd184caf | 11928 | #include <stdlib.h> |
d9898ee8 | 11929 | int |
11930 | main () | |
11931 | { | |
8d138742 CE |
11932 | |
11933 | FILE *f = fopen ("conftest.val", "w"); | |
11934 | if (! f) | |
11935 | return 1; | |
11936 | if (((long int) (sizeof (unsigned))) < 0) | |
11937 | { | |
11938 | long int i = longval (); | |
11939 | if (i != ((long int) (sizeof (unsigned)))) | |
11940 | return 1; | |
11941 | fprintf (f, "%ld", i); | |
11942 | } | |
11943 | else | |
11944 | { | |
11945 | unsigned long int i = ulongval (); | |
11946 | if (i != ((long int) (sizeof (unsigned)))) | |
11947 | return 1; | |
11948 | fprintf (f, "%lu", i); | |
11949 | } | |
11950 | /* Do not output a trailing newline, as this causes \r\n confusion | |
11951 | on some platforms. */ | |
11952 | return ferror (f) || fclose (f) != 0; | |
11953 | ||
11954 | ; | |
dd184caf | 11955 | return 0; |
d9898ee8 | 11956 | } |
11957 | _ACEOF | |
11958 | rm -f conftest$ac_exeext | |
dd184caf | 11959 | if { (ac_try="$ac_link" |
11960 | case "(($ac_try" in | |
11961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11962 | *) ac_try_echo=$ac_try;; | |
11963 | esac | |
8d138742 CE |
11964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11965 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 11966 | (eval "$ac_link") 2>&5 |
d9898ee8 | 11967 | ac_status=$? |
8d138742 | 11968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 11969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf | 11970 | { (case "(($ac_try" in |
11971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11972 | *) ac_try_echo=$ac_try;; | |
11973 | esac | |
8d138742 CE |
11974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11975 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 11976 | (eval "$ac_try") 2>&5 |
d9898ee8 | 11977 | ac_status=$? |
8d138742 | 11978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 11979 | (exit $ac_status); }; }; then |
8d138742 | 11980 | ac_cv_sizeof_unsigned=`cat conftest.val` |
d9898ee8 | 11981 | else |
8d138742 CE |
11982 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
11983 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 11984 | sed 's/^/| /' conftest.$ac_ext >&5 |
11985 | ||
11986 | ( exit $ac_status ) | |
8d138742 CE |
11987 | if test "$ac_cv_type_unsigned" = yes; then |
11988 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11990 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned) | |
11991 | See \`config.log' for more details." >&5 | |
11992 | $as_echo "$as_me: error: cannot compute sizeof (unsigned) | |
11993 | See \`config.log' for more details." >&2;} | |
11994 | { (exit 77); exit 77; }; }; } | |
11995 | else | |
11996 | ac_cv_sizeof_unsigned=0 | |
11997 | fi | |
d9898ee8 | 11998 | fi |
8d138742 | 11999 | rm -rf conftest.dSYM |
dd184caf | 12000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12001 | fi |
8d138742 | 12002 | rm -f conftest.val |
d9898ee8 | 12003 | fi |
8d138742 CE |
12004 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5 |
12005 | $as_echo "$ac_cv_sizeof_unsigned" >&6; } | |
d9898ee8 | 12006 | |
d9898ee8 | 12007 | |
d9898ee8 | 12008 | |
8d138742 CE |
12009 | cat >>confdefs.h <<_ACEOF |
12010 | #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned | |
12011 | _ACEOF | |
d9898ee8 | 12012 | |
12013 | ||
8d138742 CE |
12014 | if test "$ac_cv_sizeof_unsigned" != 4 |
12015 | then | |
12016 | # The cast to long int works around a bug in the HP C Compiler | |
12017 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12018 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12019 | # This bug is HP SR number 8606223364. | |
12020 | { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5 | |
12021 | $as_echo_n "checking size of unsigned long... " >&6; } | |
12022 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then | |
12023 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12024 | else |
8d138742 CE |
12025 | if test "$cross_compiling" = yes; then |
12026 | # Depending upon the size, compute the lo and hi bounds. | |
d9898ee8 | 12027 | cat >conftest.$ac_ext <<_ACEOF |
12028 | /* confdefs.h. */ | |
12029 | _ACEOF | |
12030 | cat confdefs.h >>conftest.$ac_ext | |
12031 | cat >>conftest.$ac_ext <<_ACEOF | |
12032 | /* end confdefs.h. */ | |
12033 | $ac_includes_default | |
8d138742 CE |
12034 | int |
12035 | main () | |
12036 | { | |
12037 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)]; | |
12038 | test_array [0] = 0 | |
12039 | ||
12040 | ; | |
12041 | return 0; | |
12042 | } | |
d9898ee8 | 12043 | _ACEOF |
12044 | rm -f conftest.$ac_objext | |
dd184caf | 12045 | if { (ac_try="$ac_compile" |
12046 | case "(($ac_try" in | |
12047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12048 | *) ac_try_echo=$ac_try;; | |
12049 | esac | |
8d138742 CE |
12050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12051 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12052 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12053 | ac_status=$? |
12054 | grep -v '^ *+' conftest.er1 >conftest.err | |
12055 | rm -f conftest.er1 | |
12056 | cat conftest.err >&5 | |
8d138742 | 12057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12058 | (exit $ac_status); } && { |
12059 | test -z "$ac_c_werror_flag" || | |
12060 | test ! -s conftest.err | |
12061 | } && test -s conftest.$ac_objext; then | |
8d138742 CE |
12062 | ac_lo=0 ac_mid=0 |
12063 | while :; do | |
12064 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 12065 | /* confdefs.h. */ |
12066 | _ACEOF | |
12067 | cat confdefs.h >>conftest.$ac_ext | |
12068 | cat >>conftest.$ac_ext <<_ACEOF | |
12069 | /* end confdefs.h. */ | |
8d138742 CE |
12070 | $ac_includes_default |
12071 | int | |
12072 | main () | |
12073 | { | |
12074 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)]; | |
12075 | test_array [0] = 0 | |
12076 | ||
12077 | ; | |
12078 | return 0; | |
12079 | } | |
d9898ee8 | 12080 | _ACEOF |
8d138742 CE |
12081 | rm -f conftest.$ac_objext |
12082 | if { (ac_try="$ac_compile" | |
dd184caf | 12083 | case "(($ac_try" in |
12084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12085 | *) ac_try_echo=$ac_try;; | |
12086 | esac | |
8d138742 CE |
12087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12088 | $as_echo "$ac_try_echo") >&5 | |
12089 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 12090 | ac_status=$? |
12091 | grep -v '^ *+' conftest.er1 >conftest.err | |
12092 | rm -f conftest.er1 | |
12093 | cat conftest.err >&5 | |
8d138742 CE |
12094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12095 | (exit $ac_status); } && { | |
12096 | test -z "$ac_c_werror_flag" || | |
dd184caf | 12097 | test ! -s conftest.err |
8d138742 CE |
12098 | } && test -s conftest.$ac_objext; then |
12099 | ac_hi=$ac_mid; break | |
d9898ee8 | 12100 | else |
8d138742 | 12101 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12102 | sed 's/^/| /' conftest.$ac_ext >&5 |
12103 | ||
8d138742 CE |
12104 | ac_lo=`expr $ac_mid + 1` |
12105 | if test $ac_lo -le $ac_mid; then | |
12106 | ac_lo= ac_hi= | |
12107 | break | |
12108 | fi | |
12109 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
d9898ee8 | 12110 | fi |
dd184caf | 12111 | |
8d138742 CE |
12112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12113 | done | |
d9898ee8 | 12114 | else |
8d138742 CE |
12115 | $as_echo "$as_me: failed program was:" >&5 |
12116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12117 | |
8d138742 CE |
12118 | cat >conftest.$ac_ext <<_ACEOF |
12119 | /* confdefs.h. */ | |
d9898ee8 | 12120 | _ACEOF |
8d138742 CE |
12121 | cat confdefs.h >>conftest.$ac_ext |
12122 | cat >>conftest.$ac_ext <<_ACEOF | |
12123 | /* end confdefs.h. */ | |
12124 | $ac_includes_default | |
12125 | int | |
12126 | main () | |
12127 | { | |
12128 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)]; | |
12129 | test_array [0] = 0 | |
d9898ee8 | 12130 | |
8d138742 CE |
12131 | ; |
12132 | return 0; | |
12133 | } | |
12134 | _ACEOF | |
12135 | rm -f conftest.$ac_objext | |
12136 | if { (ac_try="$ac_compile" | |
12137 | case "(($ac_try" in | |
12138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12139 | *) ac_try_echo=$ac_try;; | |
12140 | esac | |
12141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12142 | $as_echo "$ac_try_echo") >&5 | |
12143 | (eval "$ac_compile") 2>conftest.er1 | |
12144 | ac_status=$? | |
12145 | grep -v '^ *+' conftest.er1 >conftest.err | |
12146 | rm -f conftest.er1 | |
12147 | cat conftest.err >&5 | |
12148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12149 | (exit $ac_status); } && { | |
12150 | test -z "$ac_c_werror_flag" || | |
12151 | test ! -s conftest.err | |
12152 | } && test -s conftest.$ac_objext; then | |
12153 | ac_hi=-1 ac_mid=-1 | |
12154 | while :; do | |
12155 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 12156 | /* confdefs.h. */ |
12157 | _ACEOF | |
12158 | cat confdefs.h >>conftest.$ac_ext | |
12159 | cat >>conftest.$ac_ext <<_ACEOF | |
12160 | /* end confdefs.h. */ | |
8d138742 | 12161 | $ac_includes_default |
d9898ee8 | 12162 | int |
12163 | main () | |
12164 | { | |
8d138742 CE |
12165 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)]; |
12166 | test_array [0] = 0 | |
d9898ee8 | 12167 | |
12168 | ; | |
12169 | return 0; | |
12170 | } | |
12171 | _ACEOF | |
12172 | rm -f conftest.$ac_objext | |
dd184caf | 12173 | if { (ac_try="$ac_compile" |
12174 | case "(($ac_try" in | |
12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12176 | *) ac_try_echo=$ac_try;; | |
12177 | esac | |
8d138742 CE |
12178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12179 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12180 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12181 | ac_status=$? |
12182 | grep -v '^ *+' conftest.er1 >conftest.err | |
12183 | rm -f conftest.er1 | |
12184 | cat conftest.err >&5 | |
8d138742 | 12185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12186 | (exit $ac_status); } && { |
12187 | test -z "$ac_c_werror_flag" || | |
12188 | test ! -s conftest.err | |
12189 | } && test -s conftest.$ac_objext; then | |
8d138742 | 12190 | ac_lo=$ac_mid; break |
d9898ee8 | 12191 | else |
8d138742 | 12192 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12193 | sed 's/^/| /' conftest.$ac_ext >&5 |
12194 | ||
8d138742 CE |
12195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12196 | if test $ac_mid -le $ac_hi; then | |
12197 | ac_lo= ac_hi= | |
12198 | break | |
12199 | fi | |
12200 | ac_mid=`expr 2 '*' $ac_mid` | |
12201 | fi | |
d9898ee8 | 12202 | |
8d138742 CE |
12203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12204 | done | |
12205 | else | |
12206 | $as_echo "$as_me: failed program was:" >&5 | |
12207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12208 | |
8d138742 CE |
12209 | ac_lo= ac_hi= |
12210 | fi | |
d9898ee8 | 12211 | |
8d138742 CE |
12212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12213 | fi | |
12214 | ||
12215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12216 | # Binary search between lo and hi bounds. | |
12217 | while test "x$ac_lo" != "x$ac_hi"; do | |
12218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12219 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 12220 | /* confdefs.h. */ |
12221 | _ACEOF | |
12222 | cat confdefs.h >>conftest.$ac_ext | |
12223 | cat >>conftest.$ac_ext <<_ACEOF | |
12224 | /* end confdefs.h. */ | |
8d138742 | 12225 | $ac_includes_default |
d9898ee8 | 12226 | int |
12227 | main () | |
12228 | { | |
8d138742 CE |
12229 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)]; |
12230 | test_array [0] = 0 | |
d9898ee8 | 12231 | |
12232 | ; | |
12233 | return 0; | |
12234 | } | |
12235 | _ACEOF | |
12236 | rm -f conftest.$ac_objext | |
dd184caf | 12237 | if { (ac_try="$ac_compile" |
12238 | case "(($ac_try" in | |
12239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12240 | *) ac_try_echo=$ac_try;; | |
12241 | esac | |
8d138742 CE |
12242 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12243 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12244 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12245 | ac_status=$? |
12246 | grep -v '^ *+' conftest.er1 >conftest.err | |
12247 | rm -f conftest.er1 | |
12248 | cat conftest.err >&5 | |
8d138742 | 12249 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12250 | (exit $ac_status); } && { |
12251 | test -z "$ac_c_werror_flag" || | |
12252 | test ! -s conftest.err | |
12253 | } && test -s conftest.$ac_objext; then | |
8d138742 | 12254 | ac_hi=$ac_mid |
d9898ee8 | 12255 | else |
8d138742 | 12256 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12257 | sed 's/^/| /' conftest.$ac_ext >&5 |
12258 | ||
8d138742 CE |
12259 | ac_lo=`expr '(' $ac_mid ')' + 1` |
12260 | fi | |
d9898ee8 | 12261 | |
8d138742 CE |
12262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12263 | done | |
12264 | case $ac_lo in | |
12265 | ?*) ac_cv_sizeof_unsigned_long=$ac_lo;; | |
12266 | '') if test "$ac_cv_type_unsigned_long" = yes; then | |
12267 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
12268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12269 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) | |
12270 | See \`config.log' for more details." >&5 | |
12271 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long) | |
12272 | See \`config.log' for more details." >&2;} | |
12273 | { (exit 77); exit 77; }; }; } | |
12274 | else | |
12275 | ac_cv_sizeof_unsigned_long=0 | |
12276 | fi ;; | |
12277 | esac | |
d9898ee8 | 12278 | else |
12279 | cat >conftest.$ac_ext <<_ACEOF | |
12280 | /* confdefs.h. */ | |
12281 | _ACEOF | |
12282 | cat confdefs.h >>conftest.$ac_ext | |
12283 | cat >>conftest.$ac_ext <<_ACEOF | |
12284 | /* end confdefs.h. */ | |
12285 | $ac_includes_default | |
8d138742 CE |
12286 | static long int longval () { return (long int) (sizeof (unsigned long)); } |
12287 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); } | |
12288 | #include <stdio.h> | |
12289 | #include <stdlib.h> | |
d9898ee8 | 12290 | int |
12291 | main () | |
12292 | { | |
8d138742 CE |
12293 | |
12294 | FILE *f = fopen ("conftest.val", "w"); | |
12295 | if (! f) | |
12296 | return 1; | |
12297 | if (((long int) (sizeof (unsigned long))) < 0) | |
12298 | { | |
12299 | long int i = longval (); | |
12300 | if (i != ((long int) (sizeof (unsigned long)))) | |
12301 | return 1; | |
12302 | fprintf (f, "%ld", i); | |
12303 | } | |
12304 | else | |
12305 | { | |
12306 | unsigned long int i = ulongval (); | |
12307 | if (i != ((long int) (sizeof (unsigned long)))) | |
12308 | return 1; | |
12309 | fprintf (f, "%lu", i); | |
12310 | } | |
12311 | /* Do not output a trailing newline, as this causes \r\n confusion | |
12312 | on some platforms. */ | |
12313 | return ferror (f) || fclose (f) != 0; | |
12314 | ||
d9898ee8 | 12315 | ; |
12316 | return 0; | |
12317 | } | |
12318 | _ACEOF | |
8d138742 CE |
12319 | rm -f conftest$ac_exeext |
12320 | if { (ac_try="$ac_link" | |
dd184caf | 12321 | case "(($ac_try" in |
12322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12323 | *) ac_try_echo=$ac_try;; | |
12324 | esac | |
8d138742 CE |
12325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12326 | $as_echo "$ac_try_echo") >&5 | |
12327 | (eval "$ac_link") 2>&5 | |
d9898ee8 | 12328 | ac_status=$? |
8d138742 CE |
12329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12331 | { (case "(($ac_try" in | |
12332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12333 | *) ac_try_echo=$ac_try;; | |
12334 | esac | |
12335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12336 | $as_echo "$ac_try_echo") >&5 | |
12337 | (eval "$ac_try") 2>&5 | |
12338 | ac_status=$? | |
12339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); }; }; then | |
12341 | ac_cv_sizeof_unsigned_long=`cat conftest.val` | |
d9898ee8 | 12342 | else |
8d138742 CE |
12343 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12344 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 12345 | sed 's/^/| /' conftest.$ac_ext >&5 |
12346 | ||
8d138742 CE |
12347 | ( exit $ac_status ) |
12348 | if test "$ac_cv_type_unsigned_long" = yes; then | |
12349 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
12350 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12351 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) | |
12352 | See \`config.log' for more details." >&5 | |
12353 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long) | |
12354 | See \`config.log' for more details." >&2;} | |
12355 | { (exit 77); exit 77; }; }; } | |
12356 | else | |
12357 | ac_cv_sizeof_unsigned_long=0 | |
12358 | fi | |
d9898ee8 | 12359 | fi |
8d138742 CE |
12360 | rm -rf conftest.dSYM |
12361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12362 | fi | |
12363 | rm -f conftest.val | |
d9898ee8 | 12364 | fi |
8d138742 CE |
12365 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 |
12366 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
12367 | ||
12368 | ||
12369 | ||
12370 | cat >>confdefs.h <<_ACEOF | |
12371 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
12372 | _ACEOF | |
d9898ee8 | 12373 | |
8d138742 CE |
12374 | |
12375 | if test "$ac_cv_sizeof_unsigned_long" != 4 | |
12376 | then | |
12377 | # The cast to long int works around a bug in the HP C Compiler | |
dd184caf | 12378 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12379 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12380 | # This bug is HP SR number 8606223364. | |
8d138742 CE |
12381 | { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5 |
12382 | $as_echo_n "checking size of unsigned short... " >&6; } | |
12383 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then | |
12384 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12385 | else |
d9898ee8 | 12386 | if test "$cross_compiling" = yes; then |
12387 | # Depending upon the size, compute the lo and hi bounds. | |
12388 | cat >conftest.$ac_ext <<_ACEOF | |
12389 | /* confdefs.h. */ | |
12390 | _ACEOF | |
12391 | cat confdefs.h >>conftest.$ac_ext | |
12392 | cat >>conftest.$ac_ext <<_ACEOF | |
12393 | /* end confdefs.h. */ | |
12394 | $ac_includes_default | |
12395 | int | |
12396 | main () | |
12397 | { | |
8d138742 | 12398 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)]; |
d9898ee8 | 12399 | test_array [0] = 0 |
12400 | ||
12401 | ; | |
12402 | return 0; | |
12403 | } | |
12404 | _ACEOF | |
12405 | rm -f conftest.$ac_objext | |
dd184caf | 12406 | if { (ac_try="$ac_compile" |
12407 | case "(($ac_try" in | |
12408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12409 | *) ac_try_echo=$ac_try;; | |
12410 | esac | |
8d138742 CE |
12411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12412 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12413 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12414 | ac_status=$? |
12415 | grep -v '^ *+' conftest.er1 >conftest.err | |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
8d138742 | 12418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12419 | (exit $ac_status); } && { |
12420 | test -z "$ac_c_werror_flag" || | |
12421 | test ! -s conftest.err | |
12422 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 12423 | ac_lo=0 ac_mid=0 |
12424 | while :; do | |
12425 | cat >conftest.$ac_ext <<_ACEOF | |
12426 | /* confdefs.h. */ | |
12427 | _ACEOF | |
12428 | cat confdefs.h >>conftest.$ac_ext | |
12429 | cat >>conftest.$ac_ext <<_ACEOF | |
12430 | /* end confdefs.h. */ | |
12431 | $ac_includes_default | |
12432 | int | |
12433 | main () | |
12434 | { | |
8d138742 | 12435 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)]; |
d9898ee8 | 12436 | test_array [0] = 0 |
12437 | ||
12438 | ; | |
12439 | return 0; | |
12440 | } | |
12441 | _ACEOF | |
12442 | rm -f conftest.$ac_objext | |
dd184caf | 12443 | if { (ac_try="$ac_compile" |
12444 | case "(($ac_try" in | |
12445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12446 | *) ac_try_echo=$ac_try;; | |
12447 | esac | |
8d138742 CE |
12448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12449 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12450 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12451 | ac_status=$? |
12452 | grep -v '^ *+' conftest.er1 >conftest.err | |
12453 | rm -f conftest.er1 | |
12454 | cat conftest.err >&5 | |
8d138742 | 12455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12456 | (exit $ac_status); } && { |
12457 | test -z "$ac_c_werror_flag" || | |
12458 | test ! -s conftest.err | |
12459 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 12460 | ac_hi=$ac_mid; break |
12461 | else | |
8d138742 | 12462 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12463 | sed 's/^/| /' conftest.$ac_ext >&5 |
12464 | ||
dd184caf | 12465 | ac_lo=`expr $ac_mid + 1` |
12466 | if test $ac_lo -le $ac_mid; then | |
12467 | ac_lo= ac_hi= | |
12468 | break | |
12469 | fi | |
12470 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
d9898ee8 | 12471 | fi |
dd184caf | 12472 | |
12473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 12474 | done |
12475 | else | |
8d138742 | 12476 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12477 | sed 's/^/| /' conftest.$ac_ext >&5 |
12478 | ||
dd184caf | 12479 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 12480 | /* confdefs.h. */ |
12481 | _ACEOF | |
12482 | cat confdefs.h >>conftest.$ac_ext | |
12483 | cat >>conftest.$ac_ext <<_ACEOF | |
12484 | /* end confdefs.h. */ | |
12485 | $ac_includes_default | |
12486 | int | |
12487 | main () | |
12488 | { | |
8d138742 | 12489 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)]; |
d9898ee8 | 12490 | test_array [0] = 0 |
12491 | ||
12492 | ; | |
12493 | return 0; | |
12494 | } | |
12495 | _ACEOF | |
12496 | rm -f conftest.$ac_objext | |
dd184caf | 12497 | if { (ac_try="$ac_compile" |
12498 | case "(($ac_try" in | |
12499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12500 | *) ac_try_echo=$ac_try;; | |
12501 | esac | |
8d138742 CE |
12502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12503 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12504 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12505 | ac_status=$? |
12506 | grep -v '^ *+' conftest.er1 >conftest.err | |
12507 | rm -f conftest.er1 | |
12508 | cat conftest.err >&5 | |
8d138742 | 12509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12510 | (exit $ac_status); } && { |
12511 | test -z "$ac_c_werror_flag" || | |
12512 | test ! -s conftest.err | |
12513 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 12514 | ac_hi=-1 ac_mid=-1 |
12515 | while :; do | |
12516 | cat >conftest.$ac_ext <<_ACEOF | |
12517 | /* confdefs.h. */ | |
12518 | _ACEOF | |
12519 | cat confdefs.h >>conftest.$ac_ext | |
12520 | cat >>conftest.$ac_ext <<_ACEOF | |
12521 | /* end confdefs.h. */ | |
12522 | $ac_includes_default | |
12523 | int | |
12524 | main () | |
12525 | { | |
8d138742 | 12526 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)]; |
d9898ee8 | 12527 | test_array [0] = 0 |
12528 | ||
12529 | ; | |
12530 | return 0; | |
12531 | } | |
12532 | _ACEOF | |
12533 | rm -f conftest.$ac_objext | |
dd184caf | 12534 | if { (ac_try="$ac_compile" |
12535 | case "(($ac_try" in | |
12536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12537 | *) ac_try_echo=$ac_try;; | |
12538 | esac | |
8d138742 CE |
12539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12540 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12541 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12542 | ac_status=$? |
12543 | grep -v '^ *+' conftest.er1 >conftest.err | |
12544 | rm -f conftest.er1 | |
12545 | cat conftest.err >&5 | |
8d138742 | 12546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12547 | (exit $ac_status); } && { |
12548 | test -z "$ac_c_werror_flag" || | |
12549 | test ! -s conftest.err | |
12550 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 12551 | ac_lo=$ac_mid; break |
12552 | else | |
8d138742 | 12553 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12554 | sed 's/^/| /' conftest.$ac_ext >&5 |
12555 | ||
dd184caf | 12556 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12557 | if test $ac_mid -le $ac_hi; then | |
12558 | ac_lo= ac_hi= | |
12559 | break | |
12560 | fi | |
12561 | ac_mid=`expr 2 '*' $ac_mid` | |
d9898ee8 | 12562 | fi |
dd184caf | 12563 | |
12564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 12565 | done |
12566 | else | |
8d138742 | 12567 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12568 | sed 's/^/| /' conftest.$ac_ext >&5 |
12569 | ||
dd184caf | 12570 | ac_lo= ac_hi= |
d9898ee8 | 12571 | fi |
dd184caf | 12572 | |
12573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 12574 | fi |
dd184caf | 12575 | |
12576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 12577 | # Binary search between lo and hi bounds. |
12578 | while test "x$ac_lo" != "x$ac_hi"; do | |
12579 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12580 | cat >conftest.$ac_ext <<_ACEOF | |
12581 | /* confdefs.h. */ | |
12582 | _ACEOF | |
12583 | cat confdefs.h >>conftest.$ac_ext | |
12584 | cat >>conftest.$ac_ext <<_ACEOF | |
12585 | /* end confdefs.h. */ | |
12586 | $ac_includes_default | |
12587 | int | |
12588 | main () | |
12589 | { | |
8d138742 | 12590 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)]; |
d9898ee8 | 12591 | test_array [0] = 0 |
12592 | ||
12593 | ; | |
12594 | return 0; | |
12595 | } | |
12596 | _ACEOF | |
12597 | rm -f conftest.$ac_objext | |
dd184caf | 12598 | if { (ac_try="$ac_compile" |
12599 | case "(($ac_try" in | |
12600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12601 | *) ac_try_echo=$ac_try;; | |
12602 | esac | |
8d138742 CE |
12603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12604 | $as_echo "$ac_try_echo") >&5 | |
12605 | (eval "$ac_compile") 2>conftest.er1 | |
12606 | ac_status=$? | |
12607 | grep -v '^ *+' conftest.er1 >conftest.err | |
12608 | rm -f conftest.er1 | |
12609 | cat conftest.err >&5 | |
12610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12611 | (exit $ac_status); } && { | |
12612 | test -z "$ac_c_werror_flag" || | |
12613 | test ! -s conftest.err | |
12614 | } && test -s conftest.$ac_objext; then | |
12615 | ac_hi=$ac_mid | |
12616 | else | |
12617 | $as_echo "$as_me: failed program was:" >&5 | |
12618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12619 | ||
12620 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12621 | fi | |
12622 | ||
12623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12624 | done | |
12625 | case $ac_lo in | |
12626 | ?*) ac_cv_sizeof_unsigned_short=$ac_lo;; | |
12627 | '') if test "$ac_cv_type_unsigned_short" = yes; then | |
12628 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
12629 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12630 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) | |
12631 | See \`config.log' for more details." >&5 | |
12632 | $as_echo "$as_me: error: cannot compute sizeof (unsigned short) | |
12633 | See \`config.log' for more details." >&2;} | |
12634 | { (exit 77); exit 77; }; }; } | |
12635 | else | |
12636 | ac_cv_sizeof_unsigned_short=0 | |
12637 | fi ;; | |
12638 | esac | |
12639 | else | |
12640 | cat >conftest.$ac_ext <<_ACEOF | |
12641 | /* confdefs.h. */ | |
12642 | _ACEOF | |
12643 | cat confdefs.h >>conftest.$ac_ext | |
12644 | cat >>conftest.$ac_ext <<_ACEOF | |
12645 | /* end confdefs.h. */ | |
12646 | $ac_includes_default | |
12647 | static long int longval () { return (long int) (sizeof (unsigned short)); } | |
12648 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); } | |
12649 | #include <stdio.h> | |
12650 | #include <stdlib.h> | |
12651 | int | |
12652 | main () | |
12653 | { | |
12654 | ||
12655 | FILE *f = fopen ("conftest.val", "w"); | |
12656 | if (! f) | |
12657 | return 1; | |
12658 | if (((long int) (sizeof (unsigned short))) < 0) | |
12659 | { | |
12660 | long int i = longval (); | |
12661 | if (i != ((long int) (sizeof (unsigned short)))) | |
12662 | return 1; | |
12663 | fprintf (f, "%ld", i); | |
12664 | } | |
12665 | else | |
12666 | { | |
12667 | unsigned long int i = ulongval (); | |
12668 | if (i != ((long int) (sizeof (unsigned short)))) | |
12669 | return 1; | |
12670 | fprintf (f, "%lu", i); | |
12671 | } | |
12672 | /* Do not output a trailing newline, as this causes \r\n confusion | |
12673 | on some platforms. */ | |
12674 | return ferror (f) || fclose (f) != 0; | |
12675 | ||
12676 | ; | |
12677 | return 0; | |
12678 | } | |
12679 | _ACEOF | |
12680 | rm -f conftest$ac_exeext | |
12681 | if { (ac_try="$ac_link" | |
12682 | case "(($ac_try" in | |
12683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12684 | *) ac_try_echo=$ac_try;; | |
12685 | esac | |
12686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12687 | $as_echo "$ac_try_echo") >&5 | |
12688 | (eval "$ac_link") 2>&5 | |
12689 | ac_status=$? | |
12690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12692 | { (case "(($ac_try" in | |
12693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12694 | *) ac_try_echo=$ac_try;; | |
12695 | esac | |
12696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12697 | $as_echo "$ac_try_echo") >&5 | |
12698 | (eval "$ac_try") 2>&5 | |
12699 | ac_status=$? | |
12700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12701 | (exit $ac_status); }; }; then | |
12702 | ac_cv_sizeof_unsigned_short=`cat conftest.val` | |
12703 | else | |
12704 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
12705 | $as_echo "$as_me: failed program was:" >&5 | |
12706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12707 | ||
12708 | ( exit $ac_status ) | |
12709 | if test "$ac_cv_type_unsigned_short" = yes; then | |
12710 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
12711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12712 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) | |
12713 | See \`config.log' for more details." >&5 | |
12714 | $as_echo "$as_me: error: cannot compute sizeof (unsigned short) | |
12715 | See \`config.log' for more details." >&2;} | |
12716 | { (exit 77); exit 77; }; }; } | |
12717 | else | |
12718 | ac_cv_sizeof_unsigned_short=0 | |
12719 | fi | |
12720 | fi | |
12721 | rm -rf conftest.dSYM | |
12722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12723 | fi | |
12724 | rm -f conftest.val | |
12725 | fi | |
12726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 | |
12727 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | |
12728 | ||
12729 | ||
12730 | ||
12731 | cat >>confdefs.h <<_ACEOF | |
12732 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | |
12733 | _ACEOF | |
12734 | ||
12735 | ||
12736 | if test "$ac_cv_sizeof_unsigned_short" != 4 | |
12737 | then | |
12738 | { { $as_echo "$as_me:$LINENO: error: --with-int32 option is required" >&5 | |
12739 | $as_echo "$as_me: error: --with-int32 option is required" >&2;} | |
12740 | { (exit 1); exit 1; }; } | |
12741 | fi | |
12742 | int32="unsigned short" | |
12743 | fi | |
12744 | int32="unsigned long" | |
12745 | else | |
12746 | int32="unsigned" | |
12747 | fi | |
12748 | ||
12749 | fi | |
12750 | ||
12751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12752 | ||
12753 | fi | |
12754 | ||
12755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12756 | ||
12757 | ||
12758 | fi | |
12759 | ||
12760 | UINT32="$int32" | |
12761 | ||
12762 | ||
12763 | cat >>confdefs.h <<_ACEOF | |
12764 | #define MD5_WORD $UINT32 | |
12765 | _ACEOF | |
12766 | ||
12767 | ||
12768 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
12769 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
12770 | if test "${ac_cv_c_const+set}" = set; then | |
12771 | $as_echo_n "(cached) " >&6 | |
12772 | else | |
12773 | cat >conftest.$ac_ext <<_ACEOF | |
12774 | /* confdefs.h. */ | |
12775 | _ACEOF | |
12776 | cat confdefs.h >>conftest.$ac_ext | |
12777 | cat >>conftest.$ac_ext <<_ACEOF | |
12778 | /* end confdefs.h. */ | |
12779 | ||
12780 | int | |
12781 | main () | |
12782 | { | |
12783 | /* FIXME: Include the comments suggested by Paul. */ | |
12784 | #ifndef __cplusplus | |
12785 | /* Ultrix mips cc rejects this. */ | |
12786 | typedef int charset[2]; | |
12787 | const charset cs; | |
12788 | /* SunOS 4.1.1 cc rejects this. */ | |
12789 | char const *const *pcpcc; | |
12790 | char **ppc; | |
12791 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12792 | struct point {int x, y;}; | |
12793 | static struct point const zero = {0,0}; | |
12794 | /* AIX XL C 1.02.0.0 rejects this. | |
12795 | It does not let you subtract one const X* pointer from another in | |
12796 | an arm of an if-expression whose if-part is not a constant | |
12797 | expression */ | |
12798 | const char *g = "string"; | |
12799 | pcpcc = &g + (g ? g-g : 0); | |
12800 | /* HPUX 7.0 cc rejects these. */ | |
12801 | ++pcpcc; | |
12802 | ppc = (char**) pcpcc; | |
12803 | pcpcc = (char const *const *) ppc; | |
12804 | { /* SCO 3.2v4 cc rejects this. */ | |
12805 | char *t; | |
12806 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12807 | ||
12808 | *t++ = 0; | |
12809 | if (s) return 0; | |
12810 | } | |
12811 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12812 | int x[] = {25, 17}; | |
12813 | const int *foo = &x[0]; | |
12814 | ++foo; | |
12815 | } | |
12816 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12817 | typedef const int *iptr; | |
12818 | iptr p = 0; | |
12819 | ++p; | |
12820 | } | |
12821 | { /* AIX XL C 1.02.0.0 rejects this saying | |
12822 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12823 | struct s { int j; const int *ap[3]; }; | |
12824 | struct s *b; b->j = 5; | |
12825 | } | |
12826 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12827 | const int foo = 10; | |
12828 | if (!foo) return 0; | |
12829 | } | |
12830 | return !cs[0] && !zero.x; | |
12831 | #endif | |
12832 | ||
12833 | ; | |
12834 | return 0; | |
12835 | } | |
12836 | _ACEOF | |
12837 | rm -f conftest.$ac_objext | |
12838 | if { (ac_try="$ac_compile" | |
12839 | case "(($ac_try" in | |
12840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12841 | *) ac_try_echo=$ac_try;; | |
12842 | esac | |
12843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12844 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 12845 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 12846 | ac_status=$? |
12847 | grep -v '^ *+' conftest.er1 >conftest.err | |
12848 | rm -f conftest.er1 | |
12849 | cat conftest.err >&5 | |
8d138742 | 12850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12851 | (exit $ac_status); } && { |
12852 | test -z "$ac_c_werror_flag" || | |
12853 | test ! -s conftest.err | |
12854 | } && test -s conftest.$ac_objext; then | |
8d138742 | 12855 | ac_cv_c_const=yes |
d9898ee8 | 12856 | else |
8d138742 | 12857 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12858 | sed 's/^/| /' conftest.$ac_ext >&5 |
12859 | ||
8d138742 | 12860 | ac_cv_c_const=no |
d9898ee8 | 12861 | fi |
dd184caf | 12862 | |
12863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
12864 | fi |
12865 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
12866 | $as_echo "$ac_cv_c_const" >&6; } | |
12867 | if test $ac_cv_c_const = no; then | |
12868 | ||
12869 | cat >>confdefs.h <<\_ACEOF | |
12870 | #define const /**/ | |
d9898ee8 | 12871 | _ACEOF |
d9898ee8 | 12872 | |
8d138742 CE |
12873 | fi |
12874 | ||
12875 | ||
12876 | ||
12877 | ac_config_files="$ac_config_files Makefile" | |
12878 | ||
12879 | cat >confcache <<\_ACEOF | |
12880 | # This file is a shell script that caches the results of configure | |
12881 | # tests run on this system so they can be shared between configure | |
12882 | # scripts and configure runs, see configure's option --config-cache. | |
12883 | # It is not useful on other systems. If it contains results you don't | |
12884 | # want to keep, you may remove or edit it. | |
12885 | # | |
12886 | # config.status only pays attention to the cache file if you give it | |
12887 | # the --recheck option to rerun configure. | |
12888 | # | |
12889 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12890 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12891 | # following values. | |
12892 | ||
12893 | _ACEOF | |
12894 | ||
12895 | # The following way of writing the cache mishandles newlines in values, | |
12896 | # but we know of no workaround that is simple, portable, and efficient. | |
12897 | # So, we kill variables containing newlines. | |
12898 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12899 | # and sets the high bit in the cache file unless we assign to the vars. | |
12900 | ( | |
12901 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12902 | eval ac_val=\$$ac_var | |
12903 | case $ac_val in #( | |
12904 | *${as_nl}*) | |
12905 | case $ac_var in #( | |
12906 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
12907 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12908 | esac | |
12909 | case $ac_var in #( | |
12910 | _ | IFS | as_nl) ;; #( | |
12911 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12912 | *) $as_unset $ac_var ;; | |
12913 | esac ;; | |
12914 | esac | |
12915 | done | |
12916 | ||
12917 | (set) 2>&1 | | |
12918 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12919 | *${as_nl}ac_space=\ *) | |
12920 | # `set' does not quote correctly, so add quotes (double-quote | |
12921 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12922 | sed -n \ | |
12923 | "s/'/'\\\\''/g; | |
12924 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12925 | ;; #( | |
12926 | *) | |
12927 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12928 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12929 | ;; | |
12930 | esac | | |
12931 | sort | |
12932 | ) | | |
12933 | sed ' | |
12934 | /^ac_cv_env_/b end | |
12935 | t clear | |
12936 | :clear | |
12937 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12938 | t end | |
12939 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12940 | :end' >>confcache | |
12941 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12942 | if test -w "$cache_file"; then | |
12943 | test "x$cache_file" != "x/dev/null" && | |
12944 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
12945 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
12946 | cat confcache >$cache_file | |
d9898ee8 | 12947 | else |
8d138742 CE |
12948 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12949 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
12950 | fi | |
12951 | fi | |
12952 | rm -f confcache | |
d9898ee8 | 12953 | |
8d138742 CE |
12954 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12955 | # Let make expand exec_prefix. | |
12956 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12957 | ||
12958 | DEFS=-DHAVE_CONFIG_H | |
12959 | ||
12960 | ac_libobjs= | |
12961 | ac_ltlibobjs= | |
12962 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12963 | # 1. Remove the extension, and $U if already installed. | |
12964 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12965 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12966 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12967 | # will be set to the directory where LIBOBJS objects are built. | |
12968 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12969 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
12970 | done | |
12971 | LIBOBJS=$ac_libobjs | |
12972 | ||
12973 | LTLIBOBJS=$ac_ltlibobjs | |
12974 | ||
12975 | ||
12976 | if test -n "$EXEEXT"; then | |
12977 | am__EXEEXT_TRUE= | |
12978 | am__EXEEXT_FALSE='#' | |
12979 | else | |
12980 | am__EXEEXT_TRUE='#' | |
12981 | am__EXEEXT_FALSE= | |
12982 | fi | |
12983 | ||
12984 | if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then | |
12985 | { { $as_echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined. | |
12986 | Usually this means the macro was only invoked conditionally." >&5 | |
12987 | $as_echo "$as_me: error: conditional \"HMACC\" was never defined. | |
12988 | Usually this means the macro was only invoked conditionally." >&2;} | |
12989 | { (exit 1); exit 1; }; } | |
12990 | fi | |
12991 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
12992 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12993 | Usually this means the macro was only invoked conditionally." >&5 | |
12994 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12995 | Usually this means the macro was only invoked conditionally." >&2;} | |
12996 | { (exit 1); exit 1; }; } | |
12997 | fi | |
12998 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12999 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
13000 | Usually this means the macro was only invoked conditionally." >&5 | |
13001 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
13002 | Usually this means the macro was only invoked conditionally." >&2;} | |
13003 | { (exit 1); exit 1; }; } | |
13004 | fi | |
13005 | ||
13006 | : ${CONFIG_STATUS=./config.status} | |
13007 | ac_write_fail=0 | |
13008 | ac_clean_files_save=$ac_clean_files | |
13009 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13010 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
13011 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13012 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13013 | #! $SHELL | |
13014 | # Generated by $as_me. | |
13015 | # Run this file to recreate the current configuration. | |
13016 | # Compiler output produced by configure, useful for debugging | |
13017 | # configure, is in config.log if it exists. | |
13018 | ||
13019 | debug=false | |
13020 | ac_cs_recheck=false | |
13021 | ac_cs_silent=false | |
13022 | SHELL=\${CONFIG_SHELL-$SHELL} | |
d9898ee8 | 13023 | _ACEOF |
8d138742 CE |
13024 | |
13025 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13026 | ## --------------------- ## | |
13027 | ## M4sh Initialization. ## | |
13028 | ## --------------------- ## | |
13029 | ||
13030 | # Be more Bourne compatible | |
13031 | DUALCASE=1; export DUALCASE # for MKS sh | |
13032 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13033 | emulate sh | |
13034 | NULLCMD=: | |
13035 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13036 | # is contrary to our usage. Disable this feature. | |
13037 | alias -g '${1+"$@"}'='"$@"' | |
13038 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13039 | else |
8d138742 CE |
13040 | case `(set -o) 2>/dev/null` in |
13041 | *posix*) set -o posix ;; | |
13042 | esac | |
d9898ee8 | 13043 | |
d9898ee8 | 13044 | fi |
8d138742 CE |
13045 | |
13046 | ||
13047 | ||
13048 | ||
13049 | # PATH needs CR | |
13050 | # Avoid depending upon Character Ranges. | |
13051 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13052 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13053 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13054 | as_cr_digits='0123456789' | |
13055 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13056 | ||
13057 | as_nl=' | |
13058 | ' | |
13059 | export as_nl | |
13060 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13061 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13062 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13063 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13064 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13065 | as_echo='printf %s\n' | |
13066 | as_echo_n='printf %s' | |
13067 | else | |
13068 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13069 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13070 | as_echo_n='/usr/ucb/echo -n' | |
13071 | else | |
13072 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13073 | as_echo_n_body='eval | |
13074 | arg=$1; | |
13075 | case $arg in | |
13076 | *"$as_nl"*) | |
13077 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13078 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13079 | esac; | |
13080 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13081 | ' | |
13082 | export as_echo_n_body | |
13083 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13084 | fi | |
13085 | export as_echo_body | |
13086 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13087 | fi |
8d138742 CE |
13088 | |
13089 | # The user is always right. | |
13090 | if test "${PATH_SEPARATOR+set}" != set; then | |
13091 | PATH_SEPARATOR=: | |
13092 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13093 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13094 | PATH_SEPARATOR=';' | |
13095 | } | |
d9898ee8 | 13096 | fi |
dd184caf | 13097 | |
8d138742 CE |
13098 | # Support unset when possible. |
13099 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
13100 | as_unset=unset | |
13101 | else | |
13102 | as_unset=false | |
13103 | fi | |
dd184caf | 13104 | |
13105 | ||
8d138742 CE |
13106 | # IFS |
13107 | # We need space, tab and new line, in precisely that order. Quoting is | |
13108 | # there to prevent editors from complaining about space-tab. | |
13109 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13110 | # splitting by setting IFS to empty value.) | |
13111 | IFS=" "" $as_nl" | |
d9898ee8 | 13112 | |
8d138742 CE |
13113 | # Find who we are. Look in the path if we contain no directory separator. |
13114 | case $0 in | |
13115 | *[\\/]* ) as_myself=$0 ;; | |
13116 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13117 | for as_dir in $PATH | |
13118 | do | |
13119 | IFS=$as_save_IFS | |
13120 | test -z "$as_dir" && as_dir=. | |
13121 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13122 | done | |
13123 | IFS=$as_save_IFS | |
d9898ee8 | 13124 | |
8d138742 | 13125 | ;; |
dd184caf | 13126 | esac |
8d138742 CE |
13127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
13128 | # in which case we are not to be found in the path. | |
13129 | if test "x$as_myself" = x; then | |
13130 | as_myself=$0 | |
d9898ee8 | 13131 | fi |
8d138742 CE |
13132 | if test ! -f "$as_myself"; then |
13133 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13134 | { (exit 1); exit 1; } | |
d9898ee8 | 13135 | fi |
d9898ee8 | 13136 | |
8d138742 CE |
13137 | # Work around bugs in pre-3.0 UWIN ksh. |
13138 | for as_var in ENV MAIL MAILPATH | |
13139 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
13140 | done | |
13141 | PS1='$ ' | |
13142 | PS2='> ' | |
13143 | PS4='+ ' | |
d9898ee8 | 13144 | |
8d138742 CE |
13145 | # NLS nuisances. |
13146 | LC_ALL=C | |
13147 | export LC_ALL | |
13148 | LANGUAGE=C | |
13149 | export LANGUAGE | |
d9898ee8 | 13150 | |
8d138742 CE |
13151 | # Required to use basename. |
13152 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
13153 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13154 | as_expr=expr | |
d9898ee8 | 13155 | else |
8d138742 | 13156 | as_expr=false |
d9898ee8 | 13157 | fi |
dd184caf | 13158 | |
8d138742 CE |
13159 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13160 | as_basename=basename | |
d9898ee8 | 13161 | else |
8d138742 CE |
13162 | as_basename=false |
13163 | fi | |
d9898ee8 | 13164 | |
d9898ee8 | 13165 | |
8d138742 CE |
13166 | # Name of the executable. |
13167 | as_me=`$as_basename -- "$0" || | |
13168 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13169 | X"$0" : 'X\(//\)$' \| \ | |
13170 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13171 | $as_echo X/"$0" | | |
13172 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13173 | s//\1/ | |
13174 | q | |
13175 | } | |
13176 | /^X\/\(\/\/\)$/{ | |
13177 | s//\1/ | |
13178 | q | |
13179 | } | |
13180 | /^X\/\(\/\).*/{ | |
13181 | s//\1/ | |
13182 | q | |
13183 | } | |
13184 | s/.*/./; q'` | |
13185 | ||
13186 | # CDPATH. | |
13187 | $as_unset CDPATH | |
13188 | ||
13189 | ||
13190 | ||
13191 | as_lineno_1=$LINENO | |
13192 | as_lineno_2=$LINENO | |
13193 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13194 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
13195 | ||
13196 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
13197 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13198 | # line-number line after each line using $LINENO; the second 'sed' | |
13199 | # does the real work. The second script uses 'N' to pair each | |
13200 | # line-number line with the line containing $LINENO, and appends | |
13201 | # trailing '-' during substitution so that $LINENO is not a special | |
13202 | # case at line end. | |
13203 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13204 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
13205 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
13206 | sed -n ' | |
13207 | p | |
13208 | /[$]LINENO/= | |
13209 | ' <$as_myself | | |
13210 | sed ' | |
13211 | s/[$]LINENO.*/&-/ | |
13212 | t lineno | |
13213 | b | |
13214 | :lineno | |
13215 | N | |
13216 | :loop | |
13217 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13218 | t loop | |
13219 | s/-\n.*// | |
13220 | ' >$as_me.lineno && | |
13221 | chmod +x "$as_me.lineno" || | |
13222 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
13223 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13224 | |
8d138742 CE |
13225 | # Don't try to exec as it changes $[0], causing all sort of problems |
13226 | # (the dirname of $[0] is not the place where we might find the | |
13227 | # original and so on. Autoconf is especially sensitive to this). | |
13228 | . "./$as_me.lineno" | |
13229 | # Exit status is that of the last command. | |
13230 | exit | |
d9898ee8 | 13231 | } |
8d138742 CE |
13232 | |
13233 | ||
13234 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
13235 | as_dirname=dirname | |
d9898ee8 | 13236 | else |
8d138742 CE |
13237 | as_dirname=false |
13238 | fi | |
d9898ee8 | 13239 | |
8d138742 CE |
13240 | ECHO_C= ECHO_N= ECHO_T= |
13241 | case `echo -n x` in | |
13242 | -n*) | |
13243 | case `echo 'x\c'` in | |
13244 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13245 | *) ECHO_C='\c';; | |
13246 | esac;; | |
13247 | *) | |
13248 | ECHO_N='-n';; | |
13249 | esac | |
13250 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
13251 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13252 | as_expr=expr | |
13253 | else | |
13254 | as_expr=false | |
d9898ee8 | 13255 | fi |
dd184caf | 13256 | |
8d138742 CE |
13257 | rm -f conf$$ conf$$.exe conf$$.file |
13258 | if test -d conf$$.dir; then | |
13259 | rm -f conf$$.dir/conf$$.file | |
d9898ee8 | 13260 | else |
8d138742 CE |
13261 | rm -f conf$$.dir |
13262 | mkdir conf$$.dir 2>/dev/null | |
13263 | fi | |
13264 | if (echo >conf$$.file) 2>/dev/null; then | |
13265 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13266 | as_ln_s='ln -s' | |
13267 | # ... but there are two gotchas: | |
13268 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13269 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13270 | # In both cases, we have to default to `cp -p'. | |
13271 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13272 | as_ln_s='cp -p' | |
13273 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13274 | as_ln_s=ln | |
13275 | else | |
13276 | as_ln_s='cp -p' | |
13277 | fi | |
13278 | else | |
13279 | as_ln_s='cp -p' | |
13280 | fi | |
13281 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
13282 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 13283 | |
8d138742 CE |
13284 | if mkdir -p . 2>/dev/null; then |
13285 | as_mkdir_p=: | |
13286 | else | |
13287 | test -d ./-p && rmdir ./-p | |
13288 | as_mkdir_p=false | |
d9898ee8 | 13289 | fi |
dd184caf | 13290 | |
8d138742 CE |
13291 | if test -x / >/dev/null 2>&1; then |
13292 | as_test_x='test -x' | |
13293 | else | |
13294 | if ls -dL / >/dev/null 2>&1; then | |
13295 | as_ls_L_option=L | |
13296 | else | |
13297 | as_ls_L_option= | |
13298 | fi | |
13299 | as_test_x=' | |
13300 | eval sh -c '\'' | |
13301 | if test -d "$1"; then | |
13302 | test -d "$1/."; | |
13303 | else | |
13304 | case $1 in | |
13305 | -*)set "./$1";; | |
13306 | esac; | |
13307 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13308 | ???[sx]*):;;*)false;;esac;fi | |
13309 | '\'' sh | |
13310 | ' | |
d9898ee8 | 13311 | fi |
8d138742 | 13312 | as_executable_p=$as_test_x |
dd184caf | 13313 | |
8d138742 CE |
13314 | # Sed expression to map a string onto a valid CPP name. |
13315 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13316 | |
8d138742 CE |
13317 | # Sed expression to map a string onto a valid variable name. |
13318 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13319 | |
dd184caf | 13320 | |
8d138742 | 13321 | exec 6>&1 |
d9898ee8 | 13322 | |
8d138742 CE |
13323 | # Save the log message, to keep $[0] and so on meaningful, and to |
13324 | # report actual input values of CONFIG_FILES etc. instead of their | |
13325 | # values after options handling. | |
13326 | ac_log=" | |
13327 | This file was extended by libmd5 $as_me 1.21, which was | |
13328 | generated by GNU Autoconf 2.63. Invocation command line was | |
13329 | ||
13330 | CONFIG_FILES = $CONFIG_FILES | |
13331 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13332 | CONFIG_LINKS = $CONFIG_LINKS | |
13333 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13334 | $ $0 $@ | |
13335 | ||
13336 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13337 | " | |
d9898ee8 | 13338 | |
d9898ee8 | 13339 | _ACEOF |
8d138742 CE |
13340 | |
13341 | case $ac_config_files in *" | |
13342 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 13343 | esac |
8d138742 CE |
13344 | |
13345 | case $ac_config_headers in *" | |
13346 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
dd184caf | 13347 | esac |
d9898ee8 | 13348 | |
dd184caf | 13349 | |
8d138742 CE |
13350 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13351 | # Files that config.status was made for. | |
13352 | config_files="$ac_config_files" | |
13353 | config_headers="$ac_config_headers" | |
13354 | config_commands="$ac_config_commands" | |
13355 | ||
13356 | _ACEOF | |
13357 | ||
13358 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13359 | ac_cs_usage="\ | |
13360 | \`$as_me' instantiates files from templates according to the | |
13361 | current configuration. | |
13362 | ||
13363 | Usage: $0 [OPTION]... [FILE]... | |
13364 | ||
13365 | -h, --help print this help, then exit | |
13366 | -V, --version print version number and configuration settings, then exit | |
13367 | -q, --quiet, --silent | |
13368 | do not print progress messages | |
13369 | -d, --debug don't remove temporary files | |
13370 | --recheck update $as_me by reconfiguring in the same conditions | |
13371 | --file=FILE[:TEMPLATE] | |
13372 | instantiate the configuration file FILE | |
13373 | --header=FILE[:TEMPLATE] | |
13374 | instantiate the configuration header FILE | |
13375 | ||
13376 | Configuration files: | |
13377 | $config_files | |
13378 | ||
13379 | Configuration headers: | |
13380 | $config_headers | |
13381 | ||
13382 | Configuration commands: | |
13383 | $config_commands | |
dd184caf | 13384 | |
8d138742 | 13385 | Report bugs to <bug-autoconf@gnu.org>." |
dd184caf | 13386 | |
d9898ee8 | 13387 | _ACEOF |
8d138742 CE |
13388 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13389 | ac_cs_version="\\ | |
13390 | libmd5 config.status 1.21 | |
13391 | configured by $0, generated by GNU Autoconf 2.63, | |
13392 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 13393 | |
8d138742 CE |
13394 | Copyright (C) 2008 Free Software Foundation, Inc. |
13395 | This config.status script is free software; the Free Software Foundation | |
13396 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 13397 | |
8d138742 CE |
13398 | ac_pwd='$ac_pwd' |
13399 | srcdir='$srcdir' | |
13400 | INSTALL='$INSTALL' | |
13401 | MKDIR_P='$MKDIR_P' | |
13402 | AWK='$AWK' | |
13403 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 13404 | _ACEOF |
d9898ee8 | 13405 | |
8d138742 CE |
13406 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13407 | # The default lists apply if the user does not specify any file. | |
13408 | ac_need_defaults=: | |
13409 | while test $# != 0 | |
13410 | do | |
13411 | case $1 in | |
13412 | --*=*) | |
13413 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13414 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13415 | ac_shift=: | |
13416 | ;; | |
13417 | *) | |
13418 | ac_option=$1 | |
13419 | ac_optarg=$2 | |
13420 | ac_shift=shift | |
13421 | ;; | |
13422 | esac | |
dd184caf | 13423 | |
8d138742 CE |
13424 | case $ac_option in |
13425 | # Handling of the options. | |
13426 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13427 | ac_cs_recheck=: ;; | |
13428 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13429 | $as_echo "$ac_cs_version"; exit ;; | |
13430 | --debug | --debu | --deb | --de | --d | -d ) | |
13431 | debug=: ;; | |
13432 | --file | --fil | --fi | --f ) | |
13433 | $ac_shift | |
13434 | case $ac_optarg in | |
13435 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13436 | esac | |
13437 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
13438 | ac_need_defaults=false;; | |
13439 | --header | --heade | --head | --hea ) | |
13440 | $ac_shift | |
13441 | case $ac_optarg in | |
13442 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13443 | esac | |
13444 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
13445 | ac_need_defaults=false;; | |
13446 | --he | --h) | |
13447 | # Conflict between --help and --header | |
13448 | { $as_echo "$as_me: error: ambiguous option: $1 | |
13449 | Try \`$0 --help' for more information." >&2 | |
13450 | { (exit 1); exit 1; }; };; | |
13451 | --help | --hel | -h ) | |
13452 | $as_echo "$ac_cs_usage"; exit ;; | |
13453 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13454 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13455 | ac_cs_silent=: ;; | |
13456 | ||
13457 | # This is an error. | |
13458 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
13459 | Try \`$0 --help' for more information." >&2 | |
13460 | { (exit 1); exit 1; }; } ;; | |
13461 | ||
13462 | *) ac_config_targets="$ac_config_targets $1" | |
13463 | ac_need_defaults=false ;; | |
13464 | ||
13465 | esac | |
13466 | shift | |
13467 | done | |
13468 | ||
13469 | ac_configure_extra_args= | |
13470 | ||
13471 | if $ac_cs_silent; then | |
13472 | exec 6>/dev/null | |
13473 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 13474 | fi |
d9898ee8 | 13475 | |
d9898ee8 | 13476 | _ACEOF |
8d138742 CE |
13477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13478 | if \$ac_cs_recheck; then | |
13479 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13480 | shift | |
13481 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13482 | CONFIG_SHELL='$SHELL' | |
13483 | export CONFIG_SHELL | |
13484 | exec "\$@" | |
13485 | fi | |
d9898ee8 | 13486 | |
d9898ee8 | 13487 | _ACEOF |
8d138742 CE |
13488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13489 | exec 5>>config.log | |
d9898ee8 | 13490 | { |
8d138742 CE |
13491 | echo |
13492 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13493 | ## Running $as_me. ## | |
13494 | _ASBOX | |
13495 | $as_echo "$ac_log" | |
13496 | } >&5 | |
d9898ee8 | 13497 | |
d9898ee8 | 13498 | _ACEOF |
8d138742 CE |
13499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13500 | # | |
13501 | # INIT-COMMANDS | |
13502 | # | |
13503 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13504 | |
dd184caf | 13505 | |
8d138742 CE |
13506 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13507 | # if CDPATH is set. | |
13508 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13509 | |
8d138742 CE |
13510 | sed_quote_subst='$sed_quote_subst' |
13511 | double_quote_subst='$double_quote_subst' | |
13512 | delay_variable_subst='$delay_variable_subst' | |
13513 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13514 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13515 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13516 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13517 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13518 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13519 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13520 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13521 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13522 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13523 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13524 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13525 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13526 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13527 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13528 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13529 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13530 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13531 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13532 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13533 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13534 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13535 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13536 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13537 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13538 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13539 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13540 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13541 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
13542 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
13543 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13544 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13545 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13546 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13547 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13548 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13549 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13550 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13551 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13552 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13553 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13554 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13555 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13556 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13557 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
13558 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13559 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
13560 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13561 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13562 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13563 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13564 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13565 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13566 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13567 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13568 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
13569 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
13570 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13571 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13572 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13573 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
13574 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
13575 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13576 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13577 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13578 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13579 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13580 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13581 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13582 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13583 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13584 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13585 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13586 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13587 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13588 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13589 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13590 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13591 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13592 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13593 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13594 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13595 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13596 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13597 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13598 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13599 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13600 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13601 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13602 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13603 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13604 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13605 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13606 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13607 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13608 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13609 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13610 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13611 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13612 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13613 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13614 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13615 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13616 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13617 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13618 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13619 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13620 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13621 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13622 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13623 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13624 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13625 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13626 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13627 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13628 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13629 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13630 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13631 | ||
13632 | LTCC='$LTCC' | |
13633 | LTCFLAGS='$LTCFLAGS' | |
13634 | compiler='$compiler_DEFAULT' | |
13635 | ||
13636 | # Quote evaled strings. | |
13637 | for var in SED \ | |
13638 | GREP \ | |
13639 | EGREP \ | |
13640 | FGREP \ | |
13641 | LD \ | |
13642 | NM \ | |
13643 | LN_S \ | |
13644 | lt_SP2NL \ | |
13645 | lt_NL2SP \ | |
13646 | reload_flag \ | |
13647 | OBJDUMP \ | |
13648 | deplibs_check_method \ | |
13649 | file_magic_cmd \ | |
13650 | AR \ | |
13651 | AR_FLAGS \ | |
13652 | STRIP \ | |
13653 | RANLIB \ | |
13654 | CC \ | |
13655 | CFLAGS \ | |
13656 | compiler \ | |
13657 | lt_cv_sys_global_symbol_pipe \ | |
13658 | lt_cv_sys_global_symbol_to_cdecl \ | |
13659 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13660 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13661 | SHELL \ | |
13662 | ECHO \ | |
13663 | lt_prog_compiler_no_builtin_flag \ | |
13664 | lt_prog_compiler_wl \ | |
13665 | lt_prog_compiler_pic \ | |
13666 | lt_prog_compiler_static \ | |
13667 | lt_cv_prog_compiler_c_o \ | |
13668 | need_locks \ | |
13669 | DSYMUTIL \ | |
13670 | NMEDIT \ | |
13671 | LIPO \ | |
13672 | OTOOL \ | |
13673 | OTOOL64 \ | |
13674 | shrext_cmds \ | |
13675 | export_dynamic_flag_spec \ | |
13676 | whole_archive_flag_spec \ | |
13677 | compiler_needs_object \ | |
13678 | with_gnu_ld \ | |
13679 | allow_undefined_flag \ | |
13680 | no_undefined_flag \ | |
13681 | hardcode_libdir_flag_spec \ | |
13682 | hardcode_libdir_flag_spec_ld \ | |
13683 | hardcode_libdir_separator \ | |
13684 | fix_srcfile_path \ | |
13685 | exclude_expsyms \ | |
13686 | include_expsyms \ | |
13687 | file_list_spec \ | |
13688 | variables_saved_for_relink \ | |
13689 | libname_spec \ | |
13690 | library_names_spec \ | |
13691 | soname_spec \ | |
13692 | finish_eval \ | |
13693 | old_striplib \ | |
13694 | striplib; do | |
13695 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13696 | *[\\\\\\\`\\"\\\$]*) | |
13697 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13698 | ;; | |
13699 | *) | |
13700 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13701 | ;; | |
13702 | esac | |
13703 | done | |
d9898ee8 | 13704 | |
8d138742 CE |
13705 | # Double-quote double-evaled strings. |
13706 | for var in reload_cmds \ | |
13707 | old_postinstall_cmds \ | |
13708 | old_postuninstall_cmds \ | |
13709 | old_archive_cmds \ | |
13710 | extract_expsyms_cmds \ | |
13711 | old_archive_from_new_cmds \ | |
13712 | old_archive_from_expsyms_cmds \ | |
13713 | archive_cmds \ | |
13714 | archive_expsym_cmds \ | |
13715 | module_cmds \ | |
13716 | module_expsym_cmds \ | |
13717 | export_symbols_cmds \ | |
13718 | prelink_cmds \ | |
13719 | postinstall_cmds \ | |
13720 | postuninstall_cmds \ | |
13721 | finish_cmds \ | |
13722 | sys_lib_search_path_spec \ | |
13723 | sys_lib_dlsearch_path_spec; do | |
13724 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13725 | *[\\\\\\\`\\"\\\$]*) | |
13726 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13727 | ;; | |
13728 | *) | |
13729 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13730 | ;; | |
13731 | esac | |
13732 | done | |
d9898ee8 | 13733 | |
8d138742 CE |
13734 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
13735 | case \$lt_ECHO in | |
13736 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13737 | ;; | |
dd184caf | 13738 | esac |
d9898ee8 | 13739 | |
8d138742 CE |
13740 | ac_aux_dir='$ac_aux_dir' |
13741 | xsi_shell='$xsi_shell' | |
13742 | lt_shell_append='$lt_shell_append' | |
13743 | ||
13744 | # See if we are running on zsh, and set the options which allow our | |
13745 | # commands through without removal of \ escapes INIT. | |
13746 | if test -n "\${ZSH_VERSION+set}" ; then | |
13747 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13748 | fi |
dd184caf | 13749 | |
d9898ee8 | 13750 | |
8d138742 CE |
13751 | PACKAGE='$PACKAGE' |
13752 | VERSION='$VERSION' | |
13753 | TIMESTAMP='$TIMESTAMP' | |
13754 | RM='$RM' | |
13755 | ofile='$ofile' | |
13756 | ||
13757 | ||
dd184caf | 13758 | |
dd184caf | 13759 | |
d9898ee8 | 13760 | _ACEOF |
8d138742 CE |
13761 | |
13762 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13763 | ||
13764 | # Handling of arguments. | |
13765 | for ac_config_target in $ac_config_targets | |
13766 | do | |
13767 | case $ac_config_target in | |
13768 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13769 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13770 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13771 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13772 | ||
13773 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13774 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13775 | { (exit 1); exit 1; }; };; | |
13776 | esac | |
13777 | done | |
13778 | ||
13779 | ||
13780 | # If the user did not use the arguments to specify the items to instantiate, | |
13781 | # then the envvar interface is used. Set only those that are not. | |
13782 | # We use the long form for the default assignment because of an extremely | |
13783 | # bizarre bug on SunOS 4.1.3. | |
13784 | if $ac_need_defaults; then | |
13785 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13786 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13787 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13788 | fi | |
13789 | ||
13790 | # Have a temporary directory for convenience. Make it in the build tree | |
13791 | # simply because there is no reason against having it here, and in addition, | |
13792 | # creating and moving files from /tmp can sometimes cause problems. | |
13793 | # Hook for its removal unless debugging. | |
13794 | # Note that there is a small window in which the directory will not be cleaned: | |
13795 | # after its creation but before its name has been assigned to `$tmp'. | |
13796 | $debug || | |
d9898ee8 | 13797 | { |
8d138742 CE |
13798 | tmp= |
13799 | trap 'exit_status=$? | |
13800 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13801 | ' 0 | |
13802 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13803 | } | |
13804 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13805 | |
8d138742 CE |
13806 | { |
13807 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
13808 | test -n "$tmp" && test -d "$tmp" | |
13809 | } || | |
13810 | { | |
13811 | tmp=./conf$$-$RANDOM | |
13812 | (umask 077 && mkdir "$tmp") | |
13813 | } || | |
13814 | { | |
13815 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
13816 | { (exit 1); exit 1; } | |
d9898ee8 | 13817 | } |
d9898ee8 | 13818 | |
8d138742 CE |
13819 | # Set up the scripts for CONFIG_FILES section. |
13820 | # No need to generate them if there are no CONFIG_FILES. | |
13821 | # This happens for instance with `./config.status config.h'. | |
13822 | if test -n "$CONFIG_FILES"; then | |
dd184caf | 13823 | |
8d138742 CE |
13824 | |
13825 | ac_cr='\r' | |
13826 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13827 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13828 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 13829 | else |
8d138742 CE |
13830 | ac_cs_awk_cr=$ac_cr |
13831 | fi | |
13832 | ||
13833 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
d9898ee8 | 13834 | _ACEOF |
8d138742 CE |
13835 | |
13836 | ||
d9898ee8 | 13837 | { |
8d138742 CE |
13838 | echo "cat >conf$$subs.awk <<_ACEOF" && |
13839 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13840 | echo "_ACEOF" | |
13841 | } >conf$$subs.sh || | |
13842 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13843 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13844 | { (exit 1); exit 1; }; } | |
13845 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
13846 | ac_delim='%!_!# ' | |
13847 | for ac_last_try in false false false false false :; do | |
13848 | . ./conf$$subs.sh || | |
13849 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13850 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13851 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13852 | |
8d138742 CE |
13853 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13854 | if test $ac_delim_n = $ac_delim_num; then | |
13855 | break | |
13856 | elif $ac_last_try; then | |
13857 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13858 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13859 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13860 | else |
8d138742 CE |
13861 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13862 | fi | |
13863 | done | |
13864 | rm -f conf$$subs.sh | |
13865 | ||
13866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13867 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13868 | _ACEOF | |
13869 | sed -n ' | |
13870 | h | |
13871 | s/^/S["/; s/!.*/"]=/ | |
13872 | p | |
13873 | g | |
13874 | s/^[^!]*!// | |
13875 | :repl | |
13876 | t repl | |
13877 | s/'"$ac_delim"'$// | |
13878 | t delim | |
13879 | :nl | |
13880 | h | |
13881 | s/\(.\{148\}\).*/\1/ | |
13882 | t more1 | |
13883 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13884 | p | |
13885 | n | |
13886 | b repl | |
13887 | :more1 | |
13888 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13889 | p | |
13890 | g | |
13891 | s/.\{148\}// | |
13892 | t nl | |
13893 | :delim | |
13894 | h | |
13895 | s/\(.\{148\}\).*/\1/ | |
13896 | t more2 | |
13897 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13898 | p | |
13899 | b | |
13900 | :more2 | |
13901 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13902 | p | |
13903 | g | |
13904 | s/.\{148\}// | |
13905 | t delim | |
13906 | ' <conf$$subs.awk | sed ' | |
13907 | /^[^""]/{ | |
13908 | N | |
13909 | s/\n// | |
13910 | } | |
13911 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13912 | rm -f conf$$subs.awk | |
13913 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13914 | _ACAWK | |
13915 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13916 | for (key in S) S_is_set[key] = 1 | |
13917 | FS = "\a" | |
d9898ee8 | 13918 | |
d9898ee8 | 13919 | } |
8d138742 CE |
13920 | { |
13921 | line = $ 0 | |
13922 | nfields = split(line, field, "@") | |
13923 | substed = 0 | |
13924 | len = length(field[1]) | |
13925 | for (i = 2; i < nfields; i++) { | |
13926 | key = field[i] | |
13927 | keylen = length(key) | |
13928 | if (S_is_set[key]) { | |
13929 | value = S[key] | |
13930 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13931 | len += length(value) + length(field[++i]) | |
13932 | substed = 1 | |
13933 | } else | |
13934 | len += 1 + keylen | |
13935 | } | |
13936 | ||
13937 | print line | |
13938 | } | |
13939 | ||
13940 | _ACAWK | |
d9898ee8 | 13941 | _ACEOF |
8d138742 CE |
13942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13943 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13944 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 13945 | else |
8d138742 CE |
13946 | cat |
13947 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13948 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13949 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13950 | { (exit 1); exit 1; }; } | |
13951 | _ACEOF | |
d9898ee8 | 13952 | |
8d138742 CE |
13953 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13954 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13955 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13956 | # (actually we leave an empty line to preserve line numbers). | |
13957 | if test "x$srcdir" = x.; then | |
13958 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13959 | s/:*\$(srcdir):*/:/ | |
13960 | s/:*\${srcdir}:*/:/ | |
13961 | s/:*@srcdir@:*/:/ | |
13962 | s/^\([^=]*=[ ]*\):*/\1/ | |
13963 | s/:*$// | |
13964 | s/^[^=]*=[ ]*$// | |
13965 | }' | |
d9898ee8 | 13966 | fi |
dd184caf | 13967 | |
8d138742 CE |
13968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13969 | fi # test -n "$CONFIG_FILES" | |
dd184caf | 13970 | |
8d138742 CE |
13971 | # Set up the scripts for CONFIG_HEADERS section. |
13972 | # No need to generate them if there are no CONFIG_HEADERS. | |
13973 | # This happens for instance with `./config.status Makefile'. | |
13974 | if test -n "$CONFIG_HEADERS"; then | |
13975 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13976 | BEGIN { | |
d9898ee8 | 13977 | _ACEOF |
13978 | ||
8d138742 CE |
13979 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13980 | # here-document in config.status, that substitutes the proper values into | |
13981 | # config.h.in to produce config.h. | |
d9898ee8 | 13982 | |
8d138742 CE |
13983 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13984 | # handling of long lines. | |
13985 | ac_delim='%!_!# ' | |
13986 | for ac_last_try in false false :; do | |
13987 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13988 | if test -z "$ac_t"; then | |
13989 | break | |
13990 | elif $ac_last_try; then | |
13991 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13992 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
d9898ee8 | 13993 | { (exit 1); exit 1; }; } |
8d138742 CE |
13994 | else |
13995 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13996 | fi | |
13997 | done | |
13998 | ||
13999 | # For the awk script, D is an array of macro values keyed by name, | |
14000 | # likewise P contains macro parameters if any. Preserve backslash | |
14001 | # newline sequences. | |
14002 | ||
14003 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14004 | sed -n ' | |
14005 | s/.\{148\}/&'"$ac_delim"'/g | |
14006 | t rset | |
14007 | :rset | |
14008 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14009 | t def | |
14010 | d | |
14011 | :def | |
14012 | s/\\$// | |
14013 | t bsnl | |
14014 | s/["\\]/\\&/g | |
14015 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14016 | D["\1"]=" \3"/p | |
14017 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14018 | d | |
14019 | :bsnl | |
14020 | s/["\\]/\\&/g | |
14021 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14022 | D["\1"]=" \3\\\\\\n"\\/p | |
14023 | t cont | |
14024 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14025 | t cont | |
14026 | d | |
14027 | :cont | |
14028 | n | |
14029 | s/.\{148\}/&'"$ac_delim"'/g | |
14030 | t clear | |
14031 | :clear | |
14032 | s/\\$// | |
14033 | t bsnlc | |
14034 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14035 | d | |
14036 | :bsnlc | |
14037 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14038 | b cont | |
14039 | ' <confdefs.h | sed ' | |
14040 | s/'"$ac_delim"'/"\\\ | |
14041 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14042 | ||
14043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14044 | for (key in D) D_is_set[key] = 1 | |
14045 | FS = "\a" | |
14046 | } | |
14047 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14048 | line = \$ 0 | |
14049 | split(line, arg, " ") | |
14050 | if (arg[1] == "#") { | |
14051 | defundef = arg[2] | |
14052 | mac1 = arg[3] | |
14053 | } else { | |
14054 | defundef = substr(arg[1], 2) | |
14055 | mac1 = arg[2] | |
14056 | } | |
14057 | split(mac1, mac2, "(") #) | |
14058 | macro = mac2[1] | |
14059 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14060 | if (D_is_set[macro]) { | |
14061 | # Preserve the white space surrounding the "#". | |
14062 | print prefix "define", macro P[macro] D[macro] | |
14063 | next | |
14064 | } else { | |
14065 | # Replace #undef with comments. This is necessary, for example, | |
14066 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14067 | # on some systems where configure will not decide to define it. | |
14068 | if (defundef == "undef") { | |
14069 | print "/*", prefix defundef, macro, "*/" | |
14070 | next | |
14071 | } | |
14072 | } | |
14073 | } | |
14074 | { print } | |
14075 | _ACAWK | |
14076 | _ACEOF | |
14077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14078 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
14079 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
14080 | { (exit 1); exit 1; }; } | |
14081 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 14082 | |
dd184caf | 14083 | |
8d138742 CE |
14084 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14085 | shift | |
14086 | for ac_tag | |
14087 | do | |
14088 | case $ac_tag in | |
14089 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14090 | esac | |
14091 | case $ac_mode$ac_tag in | |
14092 | :[FHL]*:*);; | |
14093 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
14094 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
14095 | { (exit 1); exit 1; }; };; | |
14096 | :[FH]-) ac_tag=-:-;; | |
14097 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14098 | esac | |
14099 | ac_save_IFS=$IFS | |
14100 | IFS=: | |
14101 | set x $ac_tag | |
14102 | IFS=$ac_save_IFS | |
14103 | shift | |
14104 | ac_file=$1 | |
14105 | shift | |
d9898ee8 | 14106 | |
8d138742 CE |
14107 | case $ac_mode in |
14108 | :L) ac_source=$1;; | |
14109 | :[FH]) | |
14110 | ac_file_inputs= | |
14111 | for ac_f | |
14112 | do | |
14113 | case $ac_f in | |
14114 | -) ac_f="$tmp/stdin";; | |
14115 | *) # Look for the file first in the build tree, then in the source tree | |
14116 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14117 | # because $ac_f cannot contain `:'. | |
14118 | test -f "$ac_f" || | |
14119 | case $ac_f in | |
14120 | [\\/$]*) false;; | |
14121 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14122 | esac || | |
14123 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14124 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14125 | { (exit 1); exit 1; }; };; | |
14126 | esac | |
14127 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14128 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
14129 | done | |
d9898ee8 | 14130 | |
8d138742 CE |
14131 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14132 | # use $as_me), people would be surprised to read: | |
14133 | # /* config.h. Generated by config.status. */ | |
14134 | configure_input='Generated from '` | |
14135 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14136 | `' by configure.' | |
14137 | if test x"$ac_file" != x-; then | |
14138 | configure_input="$ac_file. $configure_input" | |
14139 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14140 | $as_echo "$as_me: creating $ac_file" >&6;} | |
14141 | fi | |
14142 | # Neutralize special characters interpreted by sed in replacement strings. | |
14143 | case $configure_input in #( | |
14144 | *\&* | *\|* | *\\* ) | |
14145 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14146 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14147 | *) ac_sed_conf_input=$configure_input;; | |
14148 | esac | |
dd184caf | 14149 | |
8d138742 CE |
14150 | case $ac_tag in |
14151 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
14152 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14153 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14154 | { (exit 1); exit 1; }; } ;; | |
14155 | esac | |
14156 | ;; | |
14157 | esac | |
dd184caf | 14158 | |
8d138742 CE |
14159 | ac_dir=`$as_dirname -- "$ac_file" || |
14160 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14161 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14162 | X"$ac_file" : 'X\(//\)$' \| \ | |
14163 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14164 | $as_echo X"$ac_file" | | |
14165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14166 | s//\1/ | |
14167 | q | |
14168 | } | |
14169 | /^X\(\/\/\)[^/].*/{ | |
14170 | s//\1/ | |
14171 | q | |
14172 | } | |
14173 | /^X\(\/\/\)$/{ | |
14174 | s//\1/ | |
14175 | q | |
14176 | } | |
14177 | /^X\(\/\).*/{ | |
14178 | s//\1/ | |
14179 | q | |
14180 | } | |
14181 | s/.*/./; q'` | |
14182 | { as_dir="$ac_dir" | |
14183 | case $as_dir in #( | |
14184 | -*) as_dir=./$as_dir;; | |
14185 | esac | |
14186 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
14187 | as_dirs= | |
14188 | while :; do | |
14189 | case $as_dir in #( | |
14190 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14191 | *) as_qdir=$as_dir;; | |
14192 | esac | |
14193 | as_dirs="'$as_qdir' $as_dirs" | |
14194 | as_dir=`$as_dirname -- "$as_dir" || | |
14195 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14196 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14197 | X"$as_dir" : 'X\(//\)$' \| \ | |
14198 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14199 | $as_echo X"$as_dir" | | |
14200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14201 | s//\1/ | |
14202 | q | |
14203 | } | |
14204 | /^X\(\/\/\)[^/].*/{ | |
14205 | s//\1/ | |
14206 | q | |
14207 | } | |
14208 | /^X\(\/\/\)$/{ | |
14209 | s//\1/ | |
14210 | q | |
14211 | } | |
14212 | /^X\(\/\).*/{ | |
14213 | s//\1/ | |
14214 | q | |
14215 | } | |
14216 | s/.*/./; q'` | |
14217 | test -d "$as_dir" && break | |
14218 | done | |
14219 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14220 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14221 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
14222 | { (exit 1); exit 1; }; }; } | |
14223 | ac_builddir=. | |
d9898ee8 | 14224 | |
8d138742 CE |
14225 | case "$ac_dir" in |
14226 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14227 | *) | |
14228 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14229 | # A ".." for each directory in $ac_dir_suffix. | |
14230 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14231 | case $ac_top_builddir_sub in | |
14232 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14233 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14234 | esac ;; | |
14235 | esac | |
14236 | ac_abs_top_builddir=$ac_pwd | |
14237 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14238 | # for backward compatibility: | |
14239 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 14240 | |
8d138742 CE |
14241 | case $srcdir in |
14242 | .) # We are building in place. | |
14243 | ac_srcdir=. | |
14244 | ac_top_srcdir=$ac_top_builddir_sub | |
14245 | ac_abs_top_srcdir=$ac_pwd ;; | |
14246 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14247 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14248 | ac_top_srcdir=$srcdir | |
14249 | ac_abs_top_srcdir=$srcdir ;; | |
14250 | *) # Relative name. | |
14251 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14252 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14253 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14254 | esac | |
14255 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 14256 | |
d9898ee8 | 14257 | |
8d138742 CE |
14258 | case $ac_mode in |
14259 | :F) | |
14260 | # | |
14261 | # CONFIG_FILE | |
14262 | # | |
d9898ee8 | 14263 | |
8d138742 CE |
14264 | case $INSTALL in |
14265 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14266 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14267 | esac | |
14268 | ac_MKDIR_P=$MKDIR_P | |
14269 | case $MKDIR_P in | |
14270 | [\\/$]* | ?:[\\/]* ) ;; | |
14271 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14272 | esac | |
d9898ee8 | 14273 | _ACEOF |
d9898ee8 | 14274 | |
8d138742 CE |
14275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14276 | # If the template does not know about datarootdir, expand it. | |
14277 | # FIXME: This hack should be removed a few years after 2.60. | |
14278 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
d9898ee8 | 14279 | |
8d138742 CE |
14280 | ac_sed_dataroot=' |
14281 | /datarootdir/ { | |
14282 | p | |
14283 | q | |
14284 | } | |
14285 | /@datadir@/p | |
14286 | /@docdir@/p | |
14287 | /@infodir@/p | |
14288 | /@localedir@/p | |
14289 | /@mandir@/p | |
14290 | ' | |
14291 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14292 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14293 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14294 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14295 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14296 | _ACEOF | |
14297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14298 | ac_datarootdir_hack=' | |
14299 | s&@datadir@&$datadir&g | |
14300 | s&@docdir@&$docdir&g | |
14301 | s&@infodir@&$infodir&g | |
14302 | s&@localedir@&$localedir&g | |
14303 | s&@mandir@&$mandir&g | |
14304 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14305 | esac | |
14306 | _ACEOF | |
14307 | ||
14308 | # Neutralize VPATH when `$srcdir' = `.'. | |
14309 | # Shell code in configure.ac might set extrasub. | |
14310 | # FIXME: do we really want to maintain this feature? | |
14311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14312 | ac_sed_extra="$ac_vpsub | |
14313 | $extrasub | |
14314 | _ACEOF | |
14315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14316 | :t | |
14317 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14318 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14319 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14320 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14321 | s&@srcdir@&$ac_srcdir&;t t | |
14322 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14323 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14324 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14325 | s&@builddir@&$ac_builddir&;t t | |
14326 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14327 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14328 | s&@INSTALL@&$ac_INSTALL&;t t | |
14329 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14330 | $ac_datarootdir_hack | |
14331 | " | |
14332 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14333 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14334 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14335 | { (exit 1); exit 1; }; } | |
d9898ee8 | 14336 | |
8d138742 CE |
14337 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14338 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14339 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14341 | which seems to be undefined. Please make sure it is defined." >&5 | |
14342 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14343 | which seems to be undefined. Please make sure it is defined." >&2;} | |
d9898ee8 | 14344 | |
8d138742 CE |
14345 | rm -f "$tmp/stdin" |
14346 | case $ac_file in | |
14347 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
14348 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14349 | esac \ | |
14350 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14351 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14352 | { (exit 1); exit 1; }; } | |
14353 | ;; | |
14354 | :H) | |
14355 | # | |
14356 | # CONFIG_HEADER | |
14357 | # | |
14358 | if test x"$ac_file" != x-; then | |
14359 | { | |
14360 | $as_echo "/* $configure_input */" \ | |
14361 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14362 | } >"$tmp/config.h" \ | |
14363 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14364 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14365 | { (exit 1); exit 1; }; } | |
14366 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14367 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14368 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
14369 | else | |
14370 | rm -f "$ac_file" | |
14371 | mv "$tmp/config.h" "$ac_file" \ | |
14372 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14373 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14374 | { (exit 1); exit 1; }; } | |
14375 | fi | |
14376 | else | |
14377 | $as_echo "/* $configure_input */" \ | |
14378 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14379 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
14380 | $as_echo "$as_me: error: could not create -" >&2;} | |
14381 | { (exit 1); exit 1; }; } | |
14382 | fi | |
14383 | # Compute "$ac_file"'s index in $config_headers. | |
14384 | _am_arg="$ac_file" | |
14385 | _am_stamp_count=1 | |
14386 | for _am_header in $config_headers :; do | |
14387 | case $_am_header in | |
14388 | $_am_arg | $_am_arg:* ) | |
14389 | break ;; | |
14390 | * ) | |
14391 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14392 | esac | |
14393 | done | |
14394 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14395 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14396 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14397 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14398 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14399 | $as_echo X"$_am_arg" | | |
14400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14401 | s//\1/ | |
14402 | q | |
14403 | } | |
14404 | /^X\(\/\/\)[^/].*/{ | |
14405 | s//\1/ | |
14406 | q | |
14407 | } | |
14408 | /^X\(\/\/\)$/{ | |
14409 | s//\1/ | |
14410 | q | |
14411 | } | |
14412 | /^X\(\/\).*/{ | |
14413 | s//\1/ | |
14414 | q | |
14415 | } | |
14416 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14417 | ;; | |
dd184caf | 14418 | |
8d138742 CE |
14419 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
14420 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14421 | ;; | |
14422 | esac | |
d9898ee8 | 14423 | |
d9898ee8 | 14424 | |
8d138742 CE |
14425 | case $ac_file$ac_mode in |
14426 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14427 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14428 | # are listed without --file. Let's play safe and only enable the eval | |
14429 | # if we detect the quoting. | |
14430 | case $CONFIG_FILES in | |
14431 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14432 | *) set x $CONFIG_FILES ;; | |
14433 | esac | |
14434 | shift | |
14435 | for mf | |
14436 | do | |
14437 | # Strip MF so we end up with the name of the file. | |
14438 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14439 | # Check whether this is an Automake generated Makefile or not. | |
14440 | # We used to match only the files named `Makefile.in', but | |
14441 | # some people rename them; so instead we look at the file content. | |
14442 | # Grep'ing the first line is not enough: some people post-process | |
14443 | # each Makefile.in and add a new line on top of each file to say so. | |
14444 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14445 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14446 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14447 | dirpart=`$as_dirname -- "$mf" || | |
14448 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14449 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14450 | X"$mf" : 'X\(//\)$' \| \ | |
14451 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14452 | $as_echo X"$mf" | | |
14453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14454 | s//\1/ | |
14455 | q | |
14456 | } | |
14457 | /^X\(\/\/\)[^/].*/{ | |
14458 | s//\1/ | |
14459 | q | |
14460 | } | |
14461 | /^X\(\/\/\)$/{ | |
14462 | s//\1/ | |
14463 | q | |
14464 | } | |
14465 | /^X\(\/\).*/{ | |
14466 | s//\1/ | |
14467 | q | |
14468 | } | |
14469 | s/.*/./; q'` | |
14470 | else | |
14471 | continue | |
14472 | fi | |
14473 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14474 | # from the Makefile without running `make'. | |
14475 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14476 | test -z "$DEPDIR" && continue | |
14477 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14478 | test -z "am__include" && continue | |
14479 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14480 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14481 | U=`sed -n 's/^U = //p' < "$mf"` | |
14482 | # Find all dependency output files, they are included files with | |
14483 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14484 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14485 | # expansion. | |
14486 | for file in `sed -n " | |
14487 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14488 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14489 | # Make sure the directory exists. | |
14490 | test -f "$dirpart/$file" && continue | |
14491 | fdir=`$as_dirname -- "$file" || | |
14492 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14493 | X"$file" : 'X\(//\)[^/]' \| \ | |
14494 | X"$file" : 'X\(//\)$' \| \ | |
14495 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14496 | $as_echo X"$file" | | |
14497 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14498 | s//\1/ | |
14499 | q | |
14500 | } | |
14501 | /^X\(\/\/\)[^/].*/{ | |
14502 | s//\1/ | |
14503 | q | |
14504 | } | |
14505 | /^X\(\/\/\)$/{ | |
14506 | s//\1/ | |
14507 | q | |
14508 | } | |
14509 | /^X\(\/\).*/{ | |
14510 | s//\1/ | |
14511 | q | |
14512 | } | |
14513 | s/.*/./; q'` | |
14514 | { as_dir=$dirpart/$fdir | |
14515 | case $as_dir in #( | |
14516 | -*) as_dir=./$as_dir;; | |
14517 | esac | |
14518 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
14519 | as_dirs= | |
14520 | while :; do | |
14521 | case $as_dir in #( | |
14522 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14523 | *) as_qdir=$as_dir;; | |
14524 | esac | |
14525 | as_dirs="'$as_qdir' $as_dirs" | |
14526 | as_dir=`$as_dirname -- "$as_dir" || | |
14527 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14528 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14529 | X"$as_dir" : 'X\(//\)$' \| \ | |
14530 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14531 | $as_echo X"$as_dir" | | |
14532 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14533 | s//\1/ | |
14534 | q | |
14535 | } | |
14536 | /^X\(\/\/\)[^/].*/{ | |
14537 | s//\1/ | |
14538 | q | |
14539 | } | |
14540 | /^X\(\/\/\)$/{ | |
14541 | s//\1/ | |
14542 | q | |
14543 | } | |
14544 | /^X\(\/\).*/{ | |
14545 | s//\1/ | |
14546 | q | |
14547 | } | |
14548 | s/.*/./; q'` | |
14549 | test -d "$as_dir" && break | |
14550 | done | |
14551 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14552 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14553 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
14554 | { (exit 1); exit 1; }; }; } | |
14555 | # echo "creating $dirpart/$file" | |
14556 | echo '# dummy' > "$dirpart/$file" | |
14557 | done | |
14558 | done | |
14559 | } | |
14560 | ;; | |
14561 | "libtool":C) | |
d9898ee8 | 14562 | |
8d138742 CE |
14563 | # See if we are running on zsh, and set the options which allow our |
14564 | # commands through without removal of \ escapes. | |
14565 | if test -n "${ZSH_VERSION+set}" ; then | |
14566 | setopt NO_GLOB_SUBST | |
14567 | fi | |
d9898ee8 | 14568 | |
8d138742 CE |
14569 | cfgfile="${ofile}T" |
14570 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14571 | $RM "$cfgfile" | |
d9898ee8 | 14572 | |
8d138742 CE |
14573 | cat <<_LT_EOF >> "$cfgfile" |
14574 | #! $SHELL | |
dd184caf | 14575 | |
8d138742 CE |
14576 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
14577 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14578 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14579 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 14580 | # |
8d138742 CE |
14581 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14582 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14583 | # Written by Gordon Matzigkeit, 1996 | |
d9898ee8 | 14584 | # |
8d138742 CE |
14585 | # This file is part of GNU Libtool. |
14586 | # | |
14587 | # GNU Libtool is free software; you can redistribute it and/or | |
14588 | # modify it under the terms of the GNU General Public License as | |
14589 | # published by the Free Software Foundation; either version 2 of | |
14590 | # the License, or (at your option) any later version. | |
14591 | # | |
14592 | # As a special exception to the GNU General Public License, | |
14593 | # if you distribute this file as part of a program or library that | |
14594 | # is built using GNU Libtool, you may include this file under the | |
14595 | # same distribution terms that you use for the rest of that program. | |
14596 | # | |
14597 | # GNU Libtool is distributed in the hope that it will be useful, | |
14598 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14599 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14600 | # GNU General Public License for more details. | |
14601 | # | |
14602 | # You should have received a copy of the GNU General Public License | |
14603 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14604 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14605 | # obtained by writing to the Free Software Foundation, Inc., | |
14606 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 14607 | |
d9898ee8 | 14608 | |
8d138742 CE |
14609 | # The names of the tagged configurations supported by this script. |
14610 | available_tags="" | |
dd184caf | 14611 | |
8d138742 | 14612 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14613 | |
8d138742 CE |
14614 | # Which release of libtool.m4 was used? |
14615 | macro_version=$macro_version | |
14616 | macro_revision=$macro_revision | |
d9898ee8 | 14617 | |
8d138742 CE |
14618 | # Whether or not to build shared libraries. |
14619 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14620 | |
8d138742 CE |
14621 | # Whether or not to build static libraries. |
14622 | build_old_libs=$enable_static | |
d9898ee8 | 14623 | |
8d138742 CE |
14624 | # What type of objects to build. |
14625 | pic_mode=$pic_mode | |
d9898ee8 | 14626 | |
8d138742 CE |
14627 | # Whether or not to optimize for fast installation. |
14628 | fast_install=$enable_fast_install | |
d9898ee8 | 14629 | |
8d138742 CE |
14630 | # The host system. |
14631 | host_alias=$host_alias | |
14632 | host=$host | |
14633 | host_os=$host_os | |
d9898ee8 | 14634 | |
8d138742 CE |
14635 | # The build system. |
14636 | build_alias=$build_alias | |
14637 | build=$build | |
14638 | build_os=$build_os | |
d9898ee8 | 14639 | |
8d138742 CE |
14640 | # A sed program that does not truncate output. |
14641 | SED=$lt_SED | |
d9898ee8 | 14642 | |
8d138742 CE |
14643 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14644 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 14645 | |
8d138742 CE |
14646 | # A grep program that handles long lines. |
14647 | GREP=$lt_GREP | |
dd184caf | 14648 | |
8d138742 CE |
14649 | # An ERE matcher. |
14650 | EGREP=$lt_EGREP | |
dd184caf | 14651 | |
8d138742 CE |
14652 | # A literal string matcher. |
14653 | FGREP=$lt_FGREP | |
dd184caf | 14654 | |
8d138742 CE |
14655 | # A BSD- or MS-compatible name lister. |
14656 | NM=$lt_NM | |
dd184caf | 14657 | |
8d138742 CE |
14658 | # Whether we need soft or hard links. |
14659 | LN_S=$lt_LN_S | |
dd184caf | 14660 | |
8d138742 CE |
14661 | # What is the maximum length of a command? |
14662 | max_cmd_len=$max_cmd_len | |
dd184caf | 14663 | |
8d138742 CE |
14664 | # Object file suffix (normally "o"). |
14665 | objext=$ac_objext | |
d9898ee8 | 14666 | |
8d138742 CE |
14667 | # Executable file suffix (normally ""). |
14668 | exeext=$exeext | |
d9898ee8 | 14669 | |
8d138742 CE |
14670 | # whether the shell understands "unset". |
14671 | lt_unset=$lt_unset | |
d9898ee8 | 14672 | |
8d138742 CE |
14673 | # turn spaces into newlines. |
14674 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14675 | |
8d138742 CE |
14676 | # turn newlines into spaces. |
14677 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 14678 | |
8d138742 CE |
14679 | # How to create reloadable object files. |
14680 | reload_flag=$lt_reload_flag | |
14681 | reload_cmds=$lt_reload_cmds | |
dd184caf | 14682 | |
8d138742 CE |
14683 | # An object symbol dumper. |
14684 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14685 | |
8d138742 CE |
14686 | # Method to check whether dependent libraries are shared objects. |
14687 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14688 | |
8d138742 CE |
14689 | # Command to use when deplibs_check_method == "file_magic". |
14690 | file_magic_cmd=$lt_file_magic_cmd | |
d9898ee8 | 14691 | |
8d138742 CE |
14692 | # The archiver. |
14693 | AR=$lt_AR | |
14694 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 14695 | |
8d138742 CE |
14696 | # A symbol stripping program. |
14697 | STRIP=$lt_STRIP | |
d9898ee8 | 14698 | |
8d138742 CE |
14699 | # Commands used to install an old-style archive. |
14700 | RANLIB=$lt_RANLIB | |
14701 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14702 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14703 | |
8d138742 CE |
14704 | # A C compiler. |
14705 | LTCC=$lt_CC | |
d9898ee8 | 14706 | |
8d138742 CE |
14707 | # LTCC compiler flags. |
14708 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14709 | |
8d138742 CE |
14710 | # Take the output of nm and produce a listing of raw symbols and C names. |
14711 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14712 | |
8d138742 CE |
14713 | # Transform the output of nm in a proper C declaration. |
14714 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14715 | |
8d138742 CE |
14716 | # Transform the output of nm in a C name address pair. |
14717 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 14718 | |
8d138742 CE |
14719 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14720 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 14721 | |
8d138742 CE |
14722 | # The name of the directory that contains temporary libtool files. |
14723 | objdir=$objdir | |
d9898ee8 | 14724 | |
8d138742 CE |
14725 | # Shell to use when invoking shell scripts. |
14726 | SHELL=$lt_SHELL | |
dd184caf | 14727 | |
8d138742 CE |
14728 | # An echo program that does not interpret backslashes. |
14729 | ECHO=$lt_ECHO | |
d9898ee8 | 14730 | |
8d138742 CE |
14731 | # Used to examine libraries when file_magic_cmd begins with "file". |
14732 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14733 | |
8d138742 CE |
14734 | # Must we lock files when doing compilation? |
14735 | need_locks=$lt_need_locks | |
d9898ee8 | 14736 | |
8d138742 CE |
14737 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14738 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14739 | |
8d138742 CE |
14740 | # Tool to change global to local symbols on Mac OS X. |
14741 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14742 | |
8d138742 CE |
14743 | # Tool to manipulate fat objects and archives on Mac OS X. |
14744 | LIPO=$lt_LIPO | |
d9898ee8 | 14745 | |
8d138742 CE |
14746 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14747 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14748 | |
8d138742 CE |
14749 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14750 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14751 | |
8d138742 CE |
14752 | # Old archive suffix (normally "a"). |
14753 | libext=$libext | |
d9898ee8 | 14754 | |
8d138742 CE |
14755 | # Shared library suffix (normally ".so"). |
14756 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14757 | |
8d138742 CE |
14758 | # The commands to extract the exported symbol list from a shared archive. |
14759 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14760 | |
8d138742 CE |
14761 | # Variables whose values should be saved in libtool wrapper scripts and |
14762 | # restored at link time. | |
14763 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14764 | |
8d138742 CE |
14765 | # Do we need the "lib" prefix for modules? |
14766 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14767 | |
8d138742 CE |
14768 | # Do we need a version for libraries? |
14769 | need_version=$need_version | |
d9898ee8 | 14770 | |
8d138742 CE |
14771 | # Library versioning type. |
14772 | version_type=$version_type | |
d9898ee8 | 14773 | |
8d138742 CE |
14774 | # Shared library runtime path variable. |
14775 | runpath_var=$runpath_var | |
d9898ee8 | 14776 | |
8d138742 CE |
14777 | # Shared library path variable. |
14778 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14779 | |
8d138742 CE |
14780 | # Is shlibpath searched before the hard-coded library search path? |
14781 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14782 | |
8d138742 CE |
14783 | # Format of library name prefix. |
14784 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14785 | |
8d138742 CE |
14786 | # List of archive names. First name is the real one, the rest are links. |
14787 | # The last name is the one that the linker finds with -lNAME | |
14788 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14789 | |
8d138742 CE |
14790 | # The coded name of the library, if different from the real name. |
14791 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14792 | |
8d138742 CE |
14793 | # Command to use after installation of a shared archive. |
14794 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14795 | |
8d138742 CE |
14796 | # Command to use after uninstallation of a shared archive. |
14797 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14798 | |
8d138742 CE |
14799 | # Commands used to finish a libtool library installation in a directory. |
14800 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14801 | |
8d138742 CE |
14802 | # As "finish_cmds", except a single script fragment to be evaled but |
14803 | # not shown. | |
14804 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14805 | |
8d138742 CE |
14806 | # Whether we should hardcode library paths into libraries. |
14807 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14808 | |
8d138742 CE |
14809 | # Compile-time system search path for libraries. |
14810 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14811 | |
8d138742 CE |
14812 | # Run-time system search path for libraries. |
14813 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 14814 | |
8d138742 CE |
14815 | # Whether dlopen is supported. |
14816 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14817 | |
8d138742 CE |
14818 | # Whether dlopen of programs is supported. |
14819 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14820 | |
8d138742 CE |
14821 | # Whether dlopen of statically linked programs is supported. |
14822 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14823 | |
8d138742 CE |
14824 | # Commands to strip libraries. |
14825 | old_striplib=$lt_old_striplib | |
14826 | striplib=$lt_striplib | |
d9898ee8 | 14827 | |
d9898ee8 | 14828 | |
8d138742 CE |
14829 | # The linker used to build libraries. |
14830 | LD=$lt_LD | |
d9898ee8 | 14831 | |
8d138742 CE |
14832 | # Commands used to build an old-style archive. |
14833 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14834 | |
8d138742 CE |
14835 | # A language specific compiler. |
14836 | CC=$lt_compiler | |
d9898ee8 | 14837 | |
8d138742 CE |
14838 | # Is the compiler the GNU compiler? |
14839 | with_gcc=$GCC | |
dd184caf | 14840 | |
8d138742 CE |
14841 | # Compiler flag to turn off builtin functions. |
14842 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14843 | |
8d138742 CE |
14844 | # How to pass a linker flag through the compiler. |
14845 | wl=$lt_lt_prog_compiler_wl | |
d9898ee8 | 14846 | |
8d138742 CE |
14847 | # Additional compiler flags for building library objects. |
14848 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14849 | |
8d138742 CE |
14850 | # Compiler flag to prevent dynamic linking. |
14851 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14852 | |
8d138742 CE |
14853 | # Does compiler simultaneously support -c and -o options? |
14854 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14855 | ||
14856 | # Whether or not to add -lc for building shared libraries. | |
14857 | build_libtool_need_lc=$archive_cmds_need_lc | |
14858 | ||
14859 | # Whether or not to disallow shared libs when runtime libs are static. | |
14860 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14861 | ||
14862 | # Compiler flag to allow reflexive dlopens. | |
14863 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14864 | |
8d138742 CE |
14865 | # Compiler flag to generate shared objects directly from archives. |
14866 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14867 | |
8d138742 CE |
14868 | # Whether the compiler copes with passing no objects directly. |
14869 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14870 | |
8d138742 CE |
14871 | # Create an old-style archive from a shared archive. |
14872 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14873 | |
8d138742 CE |
14874 | # Create a temporary old-style archive to link instead of a shared archive. |
14875 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14876 | |
8d138742 CE |
14877 | # Commands used to build a shared archive. |
14878 | archive_cmds=$lt_archive_cmds | |
14879 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14880 | |
8d138742 CE |
14881 | # Commands used to build a loadable module if different from building |
14882 | # a shared archive. | |
14883 | module_cmds=$lt_module_cmds | |
14884 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14885 | |
8d138742 CE |
14886 | # Whether we are building with GNU ld or not. |
14887 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14888 | |
8d138742 CE |
14889 | # Flag that allows shared libraries with undefined symbols to be built. |
14890 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 14891 | |
8d138742 CE |
14892 | # Flag that enforces no undefined symbols. |
14893 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 14894 | |
8d138742 CE |
14895 | # Flag to hardcode \$libdir into a binary during linking. |
14896 | # This must work even if \$libdir does not exist | |
14897 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14898 | |
8d138742 CE |
14899 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
14900 | # during linking. This must work even if \$libdir does not exist. | |
14901 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
dd184caf | 14902 | |
8d138742 CE |
14903 | # Whether we need a single "-rpath" flag with a separated argument. |
14904 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14905 | |
8d138742 CE |
14906 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
14907 | # DIR into the resulting binary. | |
14908 | hardcode_direct=$hardcode_direct | |
dd184caf | 14909 | |
8d138742 CE |
14910 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
14911 | # DIR into the resulting binary and the resulting library dependency is | |
14912 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14913 | # library is relocated. | |
14914 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 14915 | |
8d138742 CE |
14916 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14917 | # into the resulting binary. | |
14918 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14919 | |
8d138742 CE |
14920 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14921 | # into the resulting binary. | |
14922 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14923 | |
8d138742 CE |
14924 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14925 | # into the library and all subsequent libraries and executables linked | |
14926 | # against it. | |
14927 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14928 | |
8d138742 CE |
14929 | # Set to yes if linker adds runtime paths of dependent libraries |
14930 | # to runtime path list. | |
14931 | inherit_rpath=$inherit_rpath | |
dd184caf | 14932 | |
8d138742 CE |
14933 | # Whether libtool must link a program against all its dependency libraries. |
14934 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14935 | |
8d138742 CE |
14936 | # Fix the shell variable \$srcfile for the compiler. |
14937 | fix_srcfile_path=$lt_fix_srcfile_path | |
dd184caf | 14938 | |
8d138742 CE |
14939 | # Set to "yes" if exported symbols are required. |
14940 | always_export_symbols=$always_export_symbols | |
dd184caf | 14941 | |
8d138742 CE |
14942 | # The commands to list exported symbols. |
14943 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 14944 | |
8d138742 CE |
14945 | # Symbols that should not be listed in the preloaded symbols. |
14946 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 14947 | |
8d138742 CE |
14948 | # Symbols that must always be exported. |
14949 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14950 | |
8d138742 CE |
14951 | # Commands necessary for linking programs (against libraries) with templates. |
14952 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14953 | |
8d138742 CE |
14954 | # Specify filename containing input files. |
14955 | file_list_spec=$lt_file_list_spec | |
14956 | ||
14957 | # How to hardcode a shared library path into an executable. | |
14958 | hardcode_action=$hardcode_action | |
d9898ee8 | 14959 | |
8d138742 | 14960 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14961 | |
8d138742 | 14962 | _LT_EOF |
d9898ee8 | 14963 | |
8d138742 CE |
14964 | case $host_os in |
14965 | aix3*) | |
14966 | cat <<\_LT_EOF >> "$cfgfile" | |
14967 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14968 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14969 | # vanish in a puff of smoke. | |
14970 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14971 | COLLECT_NAMES= | |
14972 | export COLLECT_NAMES | |
14973 | fi | |
14974 | _LT_EOF | |
14975 | ;; | |
dd184caf | 14976 | esac |
8d138742 CE |
14977 | |
14978 | ||
14979 | ltmain="$ac_aux_dir/ltmain.sh" | |
14980 | ||
14981 | ||
14982 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14983 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14984 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14985 | # is reportedly fixed, but why not run on old versions too? | |
14986 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14987 | || (rm -f "$cfgfile"; exit 1) | |
14988 | ||
14989 | case $xsi_shell in | |
14990 | yes) | |
14991 | cat << \_LT_EOF >> "$cfgfile" | |
14992 | ||
14993 | # func_dirname file append nondir_replacement | |
14994 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14995 | # otherwise set result to NONDIR_REPLACEMENT. | |
14996 | func_dirname () | |
14997 | { | |
14998 | case ${1} in | |
14999 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15000 | * ) func_dirname_result="${3}" ;; | |
d9898ee8 | 15001 | esac |
8d138742 | 15002 | } |
d9898ee8 | 15003 | |
8d138742 CE |
15004 | # func_basename file |
15005 | func_basename () | |
15006 | { | |
15007 | func_basename_result="${1##*/}" | |
15008 | } | |
dd184caf | 15009 | |
8d138742 CE |
15010 | # func_dirname_and_basename file append nondir_replacement |
15011 | # perform func_basename and func_dirname in a single function | |
15012 | # call: | |
15013 | # dirname: Compute the dirname of FILE. If nonempty, | |
15014 | # add APPEND to the result, otherwise set result | |
15015 | # to NONDIR_REPLACEMENT. | |
15016 | # value returned in "$func_dirname_result" | |
15017 | # basename: Compute filename of FILE. | |
15018 | # value retuned in "$func_basename_result" | |
15019 | # Implementation must be kept synchronized with func_dirname | |
15020 | # and func_basename. For efficiency, we do not delegate to | |
15021 | # those functions but instead duplicate the functionality here. | |
15022 | func_dirname_and_basename () | |
15023 | { | |
15024 | case ${1} in | |
15025 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15026 | * ) func_dirname_result="${3}" ;; | |
15027 | esac | |
15028 | func_basename_result="${1##*/}" | |
dd184caf | 15029 | } |
dd184caf | 15030 | |
8d138742 CE |
15031 | # func_stripname prefix suffix name |
15032 | # strip PREFIX and SUFFIX off of NAME. | |
15033 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15034 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15035 | # dot (in which case that matches only a dot). | |
15036 | func_stripname () | |
15037 | { | |
15038 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15039 | # positional parameters, so assign one to ordinary parameter first. | |
15040 | func_stripname_result=${3} | |
15041 | func_stripname_result=${func_stripname_result#"${1}"} | |
15042 | func_stripname_result=${func_stripname_result%"${2}"} | |
15043 | } | |
dd184caf | 15044 | |
8d138742 CE |
15045 | # func_opt_split |
15046 | func_opt_split () | |
15047 | { | |
15048 | func_opt_split_opt=${1%%=*} | |
15049 | func_opt_split_arg=${1#*=} | |
15050 | } | |
dd184caf | 15051 | |
8d138742 CE |
15052 | # func_lo2o object |
15053 | func_lo2o () | |
15054 | { | |
15055 | case ${1} in | |
15056 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15057 | *) func_lo2o_result=${1} ;; | |
d9898ee8 | 15058 | esac |
8d138742 | 15059 | } |
d9898ee8 | 15060 | |
8d138742 CE |
15061 | # func_xform libobj-or-source |
15062 | func_xform () | |
15063 | { | |
15064 | func_xform_result=${1%.*}.lo | |
15065 | } | |
d9898ee8 | 15066 | |
8d138742 CE |
15067 | # func_arith arithmetic-term... |
15068 | func_arith () | |
15069 | { | |
15070 | func_arith_result=$(( $* )) | |
15071 | } | |
15072 | ||
15073 | # func_len string | |
15074 | # STRING may not start with a hyphen. | |
15075 | func_len () | |
15076 | { | |
15077 | func_len_result=${#1} | |
15078 | } | |
15079 | ||
15080 | _LT_EOF | |
15081 | ;; | |
15082 | *) # Bourne compatible functions. | |
15083 | cat << \_LT_EOF >> "$cfgfile" | |
15084 | ||
15085 | # func_dirname file append nondir_replacement | |
15086 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15087 | # otherwise set result to NONDIR_REPLACEMENT. | |
15088 | func_dirname () | |
15089 | { | |
15090 | # Extract subdirectory from the argument. | |
15091 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
15092 | if test "X$func_dirname_result" = "X${1}"; then | |
15093 | func_dirname_result="${3}" | |
d9898ee8 | 15094 | else |
8d138742 | 15095 | func_dirname_result="$func_dirname_result${2}" |
d9898ee8 | 15096 | fi |
8d138742 | 15097 | } |
d9898ee8 | 15098 | |
8d138742 CE |
15099 | # func_basename file |
15100 | func_basename () | |
15101 | { | |
15102 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
15103 | } | |
15104 | ||
15105 | ||
15106 | # func_stripname prefix suffix name | |
15107 | # strip PREFIX and SUFFIX off of NAME. | |
15108 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15109 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15110 | # dot (in which case that matches only a dot). | |
15111 | # func_strip_suffix prefix name | |
15112 | func_stripname () | |
15113 | { | |
15114 | case ${2} in | |
15115 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
15116 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
15117 | *) func_stripname_result=`$ECHO "X${3}" \ | |
15118 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
dd184caf | 15119 | esac |
8d138742 | 15120 | } |
d9898ee8 | 15121 | |
8d138742 CE |
15122 | # sed scripts: |
15123 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15124 | my_sed_long_arg='1s/^-[^=]*=//' | |
d9898ee8 | 15125 | |
8d138742 CE |
15126 | # func_opt_split |
15127 | func_opt_split () | |
15128 | { | |
15129 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
15130 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
15131 | } | |
15132 | ||
15133 | # func_lo2o object | |
15134 | func_lo2o () | |
15135 | { | |
15136 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
15137 | } | |
15138 | ||
15139 | # func_xform libobj-or-source | |
15140 | func_xform () | |
15141 | { | |
15142 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
15143 | } | |
15144 | ||
15145 | # func_arith arithmetic-term... | |
15146 | func_arith () | |
15147 | { | |
15148 | func_arith_result=`expr "$@"` | |
15149 | } | |
15150 | ||
15151 | # func_len string | |
15152 | # STRING may not start with a hyphen. | |
15153 | func_len () | |
15154 | { | |
15155 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15156 | } | |
15157 | ||
15158 | _LT_EOF | |
15159 | esac | |
15160 | ||
15161 | case $lt_shell_append in | |
15162 | yes) | |
15163 | cat << \_LT_EOF >> "$cfgfile" | |
15164 | ||
15165 | # func_append var value | |
15166 | # Append VALUE to the end of shell variable VAR. | |
15167 | func_append () | |
15168 | { | |
15169 | eval "$1+=\$2" | |
15170 | } | |
15171 | _LT_EOF | |
15172 | ;; | |
15173 | *) | |
15174 | cat << \_LT_EOF >> "$cfgfile" | |
15175 | ||
15176 | # func_append var value | |
15177 | # Append VALUE to the end of shell variable VAR. | |
15178 | func_append () | |
15179 | { | |
15180 | eval "$1=\$$1\$2" | |
15181 | } | |
15182 | ||
15183 | _LT_EOF | |
15184 | ;; | |
dd184caf | 15185 | esac |
8d138742 CE |
15186 | |
15187 | ||
15188 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15189 | || (rm -f "$cfgfile"; exit 1) | |
15190 | ||
15191 | mv -f "$cfgfile" "$ofile" || | |
15192 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15193 | chmod +x "$ofile" | |
15194 | ||
d9898ee8 | 15195 | ;; |
dd184caf | 15196 | |
d9898ee8 | 15197 | esac |
dd184caf | 15198 | done # for ac_tag |
d9898ee8 | 15199 | |
d9898ee8 | 15200 | |
15201 | { (exit 0); exit 0; } | |
15202 | _ACEOF | |
15203 | chmod +x $CONFIG_STATUS | |
15204 | ac_clean_files=$ac_clean_files_save | |
15205 | ||
8d138742 CE |
15206 | test $ac_write_fail = 0 || |
15207 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
15208 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
15209 | { (exit 1); exit 1; }; } | |
15210 | ||
d9898ee8 | 15211 | |
15212 | # configure is writing to config.log, and then calls config.status. | |
15213 | # config.status does its own redirection, appending to config.log. | |
15214 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15215 | # by configure, so config.status won't be able to write to it; its | |
15216 | # output is simply discarded. So we exec the FD to /dev/null, | |
15217 | # effectively closing config.log, so it can be properly (re)opened and | |
15218 | # appended to by config.status. When coming back to configure, we | |
15219 | # need to make the FD available again. | |
15220 | if test "$no_create" != yes; then | |
15221 | ac_cs_success=: | |
15222 | ac_config_status_args= | |
15223 | test "$silent" = yes && | |
15224 | ac_config_status_args="$ac_config_status_args --quiet" | |
15225 | exec 5>/dev/null | |
15226 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15227 | exec 5>>config.log | |
15228 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15229 | # would make configure fail if this is the last instruction. | |
15230 | $ac_cs_success || { (exit 1); exit 1; } | |
15231 | fi | |
8d138742 CE |
15232 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
15233 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15234 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15235 | fi | |
d9898ee8 | 15236 |